@peaske7/readit 0.1.0 → 0.1.2

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,550 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&u(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function u(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function Ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jf={exports:{}},Wu={};var Tg;function G2(){if(Tg)return Wu;Tg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(u,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var d in s)d!=="key"&&(o[d]=s[d])}else o=s;return s=o.ref,{$$typeof:e,type:u,key:c,ref:s!==void 0?s:null,props:o}}return Wu.Fragment=t,Wu.jsx=r,Wu.jsxs=r,Wu}var yg;function q2(){return yg||(yg=1,Jf.exports=G2()),Jf.exports}var Y=q2(),ed={exports:{}},Ue={};var Ag;function V2(){if(Ag)return Ue;Ag=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),A=Symbol.iterator;function y(D){return D===null||typeof D!="object"?null:(D=A&&D[A]||D["@@iterator"],typeof D=="function"?D:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,O={};function C(D,K,_){this.props=D,this.context=K,this.refs=O,this.updater=_||x}C.prototype.isReactComponent={},C.prototype.setState=function(D,K){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,K,"setState")},C.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function P(){}P.prototype=C.prototype;function M(D,K,_){this.props=D,this.context=K,this.refs=O,this.updater=_||x}var Q=M.prototype=new P;Q.constructor=M,R(Q,C.prototype),Q.isPureReactComponent=!0;var te=Array.isArray;function H(){}var ue={H:null,A:null,T:null,S:null},re=Object.prototype.hasOwnProperty;function Ae(D,K,_){var X=_.ref;return{$$typeof:e,type:D,key:K,ref:X!==void 0?X:null,props:_}}function z(D,K){return Ae(D.type,K,D.props)}function le(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function ce(D){var K={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(_){return K[_]})}var pe=/\/+/g;function be(D,K){return typeof D=="object"&&D!==null&&D.key!=null?ce(""+D.key):K.toString(36)}function oe(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(H,H):(D.status="pending",D.then(function(K){D.status==="pending"&&(D.status="fulfilled",D.value=K)},function(K){D.status==="pending"&&(D.status="rejected",D.reason=K)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function U(D,K,_,X,ee){var ye=typeof D;(ye==="undefined"||ye==="boolean")&&(D=null);var Se=!1;if(D===null)Se=!0;else switch(ye){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(D.$$typeof){case e:case t:Se=!0;break;case E:return Se=D._init,U(Se(D._payload),K,_,X,ee)}}if(Se)return ee=ee(D),Se=X===""?"."+be(D,0):X,te(ee)?(_="",Se!=null&&(_=Se.replace(pe,"$&/")+"/"),U(ee,K,_,"",function(st){return st})):ee!=null&&(le(ee)&&(ee=z(ee,_+(ee.key==null||D&&D.key===ee.key?"":(""+ee.key).replace(pe,"$&/")+"/")+Se)),K.push(ee)),1;Se=0;var xe=X===""?".":X+":";if(te(D))for(var Be=0;Be<D.length;Be++)X=D[Be],ye=xe+be(X,Be),Se+=U(X,K,_,ye,ee);else if(Be=y(D),typeof Be=="function")for(D=Be.call(D),Be=0;!(X=D.next()).done;)X=X.value,ye=xe+be(X,Be++),Se+=U(X,K,_,ye,ee);else if(ye==="object"){if(typeof D.then=="function")return U(oe(D),K,_,X,ee);throw K=String(D),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return Se}function J(D,K,_){if(D==null)return D;var X=[],ee=0;return U(D,X,"","",function(ye){return K.call(_,ye,ee++)}),X}function ne(D){if(D._status===-1){var K=D._result;K=K(),K.then(function(_){(D._status===0||D._status===-1)&&(D._status=1,D._result=_)},function(_){(D._status===0||D._status===-1)&&(D._status=2,D._result=_)}),D._status===-1&&(D._status=0,D._result=K)}if(D._status===1)return D._result.default;throw D._result}var Re=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},k={map:J,forEach:function(D,K,_){J(D,function(){K.apply(this,arguments)},_)},count:function(D){var K=0;return J(D,function(){K++}),K},toArray:function(D){return J(D,function(K){return K})||[]},only:function(D){if(!le(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ue.Activity=g,Ue.Children=k,Ue.Component=C,Ue.Fragment=r,Ue.Profiler=s,Ue.PureComponent=M,Ue.StrictMode=u,Ue.Suspense=p,Ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ue,Ue.__COMPILER_RUNTIME={__proto__:null,c:function(D){return ue.H.useMemoCache(D)}},Ue.cache=function(D){return function(){return D.apply(null,arguments)}},Ue.cacheSignal=function(){return null},Ue.cloneElement=function(D,K,_){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var X=R({},D.props),ee=D.key;if(K!=null)for(ye in K.key!==void 0&&(ee=""+K.key),K)!re.call(K,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&K.ref===void 0||(X[ye]=K[ye]);var ye=arguments.length-2;if(ye===1)X.children=_;else if(1<ye){for(var Se=Array(ye),xe=0;xe<ye;xe++)Se[xe]=arguments[xe+2];X.children=Se}return Ae(D.type,ee,X)},Ue.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:o,_context:D},D},Ue.createElement=function(D,K,_){var X,ee={},ye=null;if(K!=null)for(X in K.key!==void 0&&(ye=""+K.key),K)re.call(K,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ee[X]=K[X]);var Se=arguments.length-2;if(Se===1)ee.children=_;else if(1<Se){for(var xe=Array(Se),Be=0;Be<Se;Be++)xe[Be]=arguments[Be+2];ee.children=xe}if(D&&D.defaultProps)for(X in Se=D.defaultProps,Se)ee[X]===void 0&&(ee[X]=Se[X]);return Ae(D,ye,ee)},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(D){return{$$typeof:d,render:D}},Ue.isValidElement=le,Ue.lazy=function(D){return{$$typeof:E,_payload:{_status:-1,_result:D},_init:ne}},Ue.memo=function(D,K){return{$$typeof:h,type:D,compare:K===void 0?null:K}},Ue.startTransition=function(D){var K=ue.T,_={};ue.T=_;try{var X=D(),ee=ue.S;ee!==null&&ee(_,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(H,Re)}catch(ye){Re(ye)}finally{K!==null&&_.types!==null&&(K.types=_.types),ue.T=K}},Ue.unstable_useCacheRefresh=function(){return ue.H.useCacheRefresh()},Ue.use=function(D){return ue.H.use(D)},Ue.useActionState=function(D,K,_){return ue.H.useActionState(D,K,_)},Ue.useCallback=function(D,K){return ue.H.useCallback(D,K)},Ue.useContext=function(D){return ue.H.useContext(D)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(D,K){return ue.H.useDeferredValue(D,K)},Ue.useEffect=function(D,K){return ue.H.useEffect(D,K)},Ue.useEffectEvent=function(D){return ue.H.useEffectEvent(D)},Ue.useId=function(){return ue.H.useId()},Ue.useImperativeHandle=function(D,K,_){return ue.H.useImperativeHandle(D,K,_)},Ue.useInsertionEffect=function(D,K){return ue.H.useInsertionEffect(D,K)},Ue.useLayoutEffect=function(D,K){return ue.H.useLayoutEffect(D,K)},Ue.useMemo=function(D,K){return ue.H.useMemo(D,K)},Ue.useOptimistic=function(D,K){return ue.H.useOptimistic(D,K)},Ue.useReducer=function(D,K,_){return ue.H.useReducer(D,K,_)},Ue.useRef=function(D){return ue.H.useRef(D)},Ue.useState=function(D){return ue.H.useState(D)},Ue.useSyncExternalStore=function(D,K,_){return ue.H.useSyncExternalStore(D,K,_)},Ue.useTransition=function(){return ue.H.useTransition()},Ue.version="19.2.3",Ue}var Sg;function r0(){return Sg||(Sg=1,ed.exports=V2()),ed.exports}var fe=r0();const Te=Ol(fe);var td={exports:{}},Ju={},nd={exports:{}},ad={};var _g;function X2(){return _g||(_g=1,(function(e){function t(U,J){var ne=U.length;U.push(J);e:for(;0<ne;){var Re=ne-1>>>1,k=U[Re];if(0<s(k,J))U[Re]=J,U[ne]=k,ne=Re;else break e}}function r(U){return U.length===0?null:U[0]}function u(U){if(U.length===0)return null;var J=U[0],ne=U.pop();if(ne!==J){U[0]=ne;e:for(var Re=0,k=U.length,D=k>>>1;Re<D;){var K=2*(Re+1)-1,_=U[K],X=K+1,ee=U[X];if(0>s(_,ne))X<k&&0>s(ee,_)?(U[Re]=ee,U[X]=ne,Re=X):(U[Re]=_,U[K]=ne,Re=K);else if(X<k&&0>s(ee,ne))U[Re]=ee,U[X]=ne,Re=X;else break e}}return J}function s(U,J){var ne=U.sortIndex-J.sortIndex;return ne!==0?ne:U.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],h=[],E=1,g=null,A=3,y=!1,x=!1,R=!1,O=!1,C=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function Q(U){for(var J=r(h);J!==null;){if(J.callback===null)u(h);else if(J.startTime<=U)u(h),J.sortIndex=J.expirationTime,t(p,J);else break;J=r(h)}}function te(U){if(R=!1,Q(U),!x)if(r(p)!==null)x=!0,H||(H=!0,ce());else{var J=r(h);J!==null&&oe(te,J.startTime-U)}}var H=!1,ue=-1,re=5,Ae=-1;function z(){return O?!0:!(e.unstable_now()-Ae<re)}function le(){if(O=!1,H){var U=e.unstable_now();Ae=U;var J=!0;try{e:{x=!1,R&&(R=!1,P(ue),ue=-1),y=!0;var ne=A;try{t:{for(Q(U),g=r(p);g!==null&&!(g.expirationTime>U&&z());){var Re=g.callback;if(typeof Re=="function"){g.callback=null,A=g.priorityLevel;var k=Re(g.expirationTime<=U);if(U=e.unstable_now(),typeof k=="function"){g.callback=k,Q(U),J=!0;break t}g===r(p)&&u(p),Q(U)}else u(p);g=r(p)}if(g!==null)J=!0;else{var D=r(h);D!==null&&oe(te,D.startTime-U),J=!1}}break e}finally{g=null,A=ne,y=!1}J=void 0}}finally{J?ce():H=!1}}}var ce;if(typeof M=="function")ce=function(){M(le)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,be=pe.port2;pe.port1.onmessage=le,ce=function(){be.postMessage(null)}}else ce=function(){C(le,0)};function oe(U,J){ue=C(function(){U(e.unstable_now())},J)}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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return A},e.unstable_next=function(U){switch(A){case 1:case 2:case 3:var J=3;break;default:J=A}var ne=A;A=J;try{return U()}finally{A=ne}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(U,J){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ne=A;A=U;try{return J()}finally{A=ne}},e.unstable_scheduleCallback=function(U,J,ne){var Re=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Re+ne:Re):ne=Re,U){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=ne+k,U={id:E++,callback:J,priorityLevel:U,startTime:ne,expirationTime:k,sortIndex:-1},ne>Re?(U.sortIndex=ne,t(h,U),r(p)===null&&U===r(h)&&(R?(P(ue),ue=-1):R=!0,oe(te,ne-Re))):(U.sortIndex=k,t(p,U),x||y||(x=!0,H||(H=!0,ce()))),U},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(U){var J=A;return function(){var ne=A;A=J;try{return U.apply(this,arguments)}finally{A=ne}}}})(ad)),ad}var xg;function Q2(){return xg||(xg=1,nd.exports=X2()),nd.exports}var rd={exports:{}},pn={};var Cg;function K2(){if(Cg)return pn;Cg=1;var e=r0();function t(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)h+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(p,h,E){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:h,implementation:E}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return pn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,pn.createPortal=function(p,h){var E=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 o(p,h,null,E)},pn.flushSync=function(p){var h=c.T,E=u.p;try{if(c.T=null,u.p=2,p)return p()}finally{c.T=h,u.p=E,u.d.f()}},pn.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,u.d.C(p,h))},pn.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},pn.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var E=h.as,g=d(E,h.crossOrigin),A=typeof h.integrity=="string"?h.integrity:void 0,y=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;E==="style"?u.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:A,fetchPriority:y}):E==="script"&&u.d.X(p,{crossOrigin:g,integrity:A,fetchPriority:y,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},pn.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var E=d(h.as,h.crossOrigin);u.d.M(p,{crossOrigin:E,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&u.d.M(p)},pn.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var E=h.as,g=d(E,h.crossOrigin);u.d.L(p,E,{crossOrigin:g,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})}},pn.preloadModule=function(p,h){if(typeof p=="string")if(h){var E=d(h.as,h.crossOrigin);u.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:E,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else u.d.m(p)},pn.requestFormReset=function(p){u.d.r(p)},pn.unstable_batchedUpdates=function(p,h){return p(h)},pn.useFormState=function(p,h,E){return c.H.useFormState(p,h,E)},pn.useFormStatus=function(){return c.H.useHostTransitionStatus()},pn.version="19.2.3",pn}var Ng;function gb(){if(Ng)return rd.exports;Ng=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(),rd.exports=K2(),rd.exports}var vg;function Z2(){if(vg)return Ju;vg=1;var e=Q2(),t=r0(),r=gb();function u(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function o(n){var a=n,i=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(i=a.return),n=a.return;while(n)}return a.tag===3?i:null}function c(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function p(n){if(o(n)!==n)throw Error(u(188))}function h(n){var a=n.alternate;if(!a){if(a=o(n),a===null)throw Error(u(188));return a!==n?null:n}for(var i=n,l=a;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(l=f.return,l!==null){i=l;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return p(f),n;if(m===l)return p(f),a;m=m.sibling}throw Error(u(188))}if(i.return!==l.return)i=f,l=m;else{for(var T=!1,S=f.child;S;){if(S===i){T=!0,i=f,l=m;break}if(S===l){T=!0,l=f,i=m;break}S=S.sibling}if(!T){for(S=m.child;S;){if(S===i){T=!0,i=m,l=f;break}if(S===l){T=!0,l=m,i=f;break}S=S.sibling}if(!T)throw Error(u(189))}}if(i.alternate!==l)throw Error(u(190))}if(i.tag!==3)throw Error(u(188));return i.stateNode.current===i?n:a}function E(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=E(n),a!==null)return a;n=n.sibling}return null}var g=Object.assign,A=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),M=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),Ae=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function ce(n){return n===null||typeof n!="object"?null:(n=le&&n[le]||n["@@iterator"],typeof n=="function"?n:null)}var pe=Symbol.for("react.client.reference");function be(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===pe?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case R:return"Fragment";case C:return"Profiler";case O:return"StrictMode";case te:return"Suspense";case H:return"SuspenseList";case Ae:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case x:return"Portal";case M:return n.displayName||"Context";case P:return(n._context.displayName||"Context")+".Consumer";case Q:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case ue:return a=n.displayName||null,a!==null?a:be(n.type)||"Memo";case re:a=n._payload,n=n._init;try{return be(n(a))}catch{}}return null}var oe=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Re=[],k=-1;function D(n){return{current:n}}function K(n){0>k||(n.current=Re[k],Re[k]=null,k--)}function _(n,a){k++,Re[k]=n.current,n.current=a}var X=D(null),ee=D(null),ye=D(null),Se=D(null);function xe(n,a){switch(_(ye,a),_(ee,n),_(X,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?jp(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=jp(a),n=Yp(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}K(X),_(X,n)}function Be(){K(X),K(ee),K(ye)}function st(n){n.memoizedState!==null&&_(Se,n);var a=X.current,i=Yp(a,n.type);a!==i&&(_(ee,n),_(X,i))}function Ct(n){ee.current===n&&(K(X),K(ee)),Se.current===n&&(K(Se),Qu._currentValue=ne)}var Bt,Un;function Wt(n){if(Bt===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);Bt=a&&a[1]||"",Un=-1<i.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Bt+n+Un}var dn=!1;function Pn(n,a){if(!n||dn)return"";dn=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(Z){var V=Z}Reflect.construct(n,[],se)}else{try{se.call()}catch(Z){V=Z}n.call(se.prototype)}}else{try{throw Error()}catch(Z){V=Z}(se=n())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(Z){if(Z&&V&&typeof Z.stack=="string")return[Z.stack,V.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),T=m[0],S=m[1];if(T&&S){var L=T.split(`
4
+ `),q=S.split(`
5
+ `);for(f=l=0;l<L.length&&!L[l].includes("DetermineComponentFrameRoot");)l++;for(;f<q.length&&!q[f].includes("DetermineComponentFrameRoot");)f++;if(l===L.length||f===q.length)for(l=L.length-1,f=q.length-1;1<=l&&0<=f&&L[l]!==q[f];)f--;for(;1<=l&&0<=f;l--,f--)if(L[l]!==q[f]){if(l!==1||f!==1)do if(l--,f--,0>f||L[l]!==q[f]){var ae=`
6
+ `+L[l].replace(" at new "," at ");return n.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",n.displayName)),ae}while(1<=l&&0<=f);break}}}finally{dn=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?Wt(i):""}function xn(n,a){switch(n.tag){case 26:case 27:case 5:return Wt(n.type);case 16:return Wt("Lazy");case 13:return n.child!==a&&a!==null?Wt("Suspense Fallback"):Wt("Suspense");case 19:return Wt("SuspenseList");case 0:case 15:return Pn(n.type,!1);case 11:return Pn(n.type.render,!1);case 1:return Pn(n.type,!0);case 31:return Wt("Activity");default:return""}}function Cn(n){try{var a="",i=null;do a+=xn(n,i),i=n,n=n.return;while(n);return a}catch(l){return`
7
+ Error generating stack: `+l.message+`
8
+ `+l.stack}}var Dt=Object.prototype.hasOwnProperty,Fn=e.unstable_scheduleCallback,xa=e.unstable_cancelCallback,Ht=e.unstable_shouldYield,Zn=e.unstable_requestPaint,wt=e.unstable_now,ma=e.unstable_getCurrentPriorityLevel,W=e.unstable_ImmediatePriority,ge=e.unstable_UserBlockingPriority,De=e.unstable_NormalPriority,He=e.unstable_LowPriority,je=e.unstable_IdlePriority,Ut=e.log,qt=e.unstable_setDisableYieldValue,Ot=null,pt=null;function dt(n){if(typeof Ut=="function"&&qt(n),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Ot,n)}catch{}}var Qe=Math.clz32?Math.clz32:$n,Nn=Math.log,Vt=Math.LN2;function $n(n){return n>>>=0,n===0?32:31-(Nn(n)/Vt|0)|0}var pa=256,ga=262144,Ua=4194304;function hn(n){var a=n&42;if(a!==0)return a;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Me(n,a,i){var l=n.pendingLanes;if(l===0)return 0;var f=0,m=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var S=l&134217727;return S!==0?(l=S&~m,l!==0?f=hn(l):(T&=S,T!==0?f=hn(T):i||(i=S&~n,i!==0&&(f=hn(i))))):(S=l&~m,S!==0?f=hn(S):T!==0?f=hn(T):i||(i=l&~n,i!==0&&(f=hn(i)))),f===0?0:a!==0&&a!==f&&(a&m)===0&&(m=f&-f,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:f}function gt(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function qe(n,a){switch(n){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 Nt(){var n=Ua;return Ua<<=1,(Ua&62914560)===0&&(Ua=4194304),n}function Ca(n){for(var a=[],i=0;31>i;i++)a.push(n);return a}function bt(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Jt(n,a,i,l,f,m){var T=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var S=n.entanglements,L=n.expirationTimes,q=n.hiddenUpdates;for(i=T&~i;0<i;){var ae=31-Qe(i),se=1<<ae;S[ae]=0,L[ae]=-1;var V=q[ae];if(V!==null)for(q[ae]=null,ae=0;ae<V.length;ae++){var Z=V[ae];Z!==null&&(Z.lane&=-536870913)}i&=~se}l!==0&&Na(n,l,0),m!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=m&~(T&~a))}function Na(n,a,i){n.pendingLanes|=a,n.suspendedLanes&=~a;var l=31-Qe(a);n.entangledLanes|=a,n.entanglements[l]=n.entanglements[l]|1073741824|i&261930}function rn(n,a){var i=n.entangledLanes|=a;for(n=n.entanglements;i;){var l=31-Qe(i),f=1<<l;f&a|n[l]&a&&(n[l]|=a),i&=~f}}function mn(n,a){var i=a&-a;return i=(i&42)!==0?1:un(i),(i&(n.suspendedLanes|a))!==0?0:i}function un(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Xt(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function li(){var n=J.p;return n!==0?n:(n=window.event,n===void 0?32:dg(n.type))}function su(n,a){var i=J.p;try{return J.p=n,a()}finally{J.p=i}}var Wn=Math.random().toString(36).slice(2),Pt="__reactFiber$"+Wn,St="__reactProps$"+Wn,Pa="__reactContainer$"+Wn,si="__reactEvents$"+Wn,Ul="__reactListeners$"+Wn,Pl="__reactHandles$"+Wn,Fl="__reactResources$"+Wn,Oe="__reactMarker$"+Wn;function I(n){delete n[Pt],delete n[St],delete n[si],delete n[Ul],delete n[Pl]}function he(n){var a=n[Pt];if(a)return a;for(var i=n.parentNode;i;){if(a=i[Pa]||i[Pt]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(n=Zp(n);n!==null;){if(i=n[Pt])return i;n=Zp(n)}return a}n=i,i=n.parentNode}return null}function _e(n){if(n=n[Pt]||n[Pa]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function it(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(u(33))}function vt(n){var a=n[Fl];return a||(a=n[Fl]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ye(n){n[Oe]=!0}var ln=new Set,Jn={};function vn(n,a){va(n,a),va(n+"Capture",a)}function va(n,a){for(Jn[n]=a,n=0;n<a.length;n++)ln.add(a[n])}var Qt=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]*$"),ou={},cu={};function BT(n){return Dt.call(cu,n)?!0:Dt.call(ou,n)?!1:Qt.test(n)?cu[n]=!0:(ou[n]=!0,!1)}function zl(n,a,i){if(BT(a))if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+i)}}function jl(n,a,i){if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+i)}}function Fa(n,a,i,l){if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(a,i,""+l)}}function ea(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function I0(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function HT(n,a,i){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,m=l.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return f.call(this)},set:function(T){i=""+T,m.call(this,T)}}),Object.defineProperty(n,a,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(T){i=""+T},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function qo(n){if(!n._valueTracker){var a=I0(n)?"checked":"value";n._valueTracker=HT(n,a,""+n[a])}}function M0(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var i=a.getValue(),l="";return n&&(l=I0(n)?n.checked?"true":"false":n.value),n=l,n!==i?(a.setValue(n),!0):!1}function Yl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var UT=/[\n"\\]/g;function ta(n){return n.replace(UT,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Vo(n,a,i,l,f,m,T,S){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),a!=null?T==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+ea(a)):n.value!==""+ea(a)&&(n.value=""+ea(a)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),a!=null?Xo(n,T,ea(a)):i!=null?Xo(n,T,ea(i)):l!=null&&n.removeAttribute("value"),f==null&&m!=null&&(n.defaultChecked=!!m),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.name=""+ea(S):n.removeAttribute("name")}function B0(n,a,i,l,f,m,T,S){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){qo(n);return}i=i!=null?""+ea(i):"",a=a!=null?""+ea(a):i,S||a===n.value||(n.value=a),n.defaultValue=a}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=S?n.checked:!!l,n.defaultChecked=!!l,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T),qo(n)}function Xo(n,a,i){a==="number"&&Yl(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}function oi(n,a,i,l){if(n=n.options,a){a={};for(var f=0;f<i.length;f++)a["$"+i[f]]=!0;for(i=0;i<n.length;i++)f=a.hasOwnProperty("$"+n[i].value),n[i].selected!==f&&(n[i].selected=f),f&&l&&(n[i].defaultSelected=!0)}else{for(i=""+ea(i),a=null,f=0;f<n.length;f++){if(n[f].value===i){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}a!==null||n[f].disabled||(a=n[f])}a!==null&&(a.selected=!0)}}function H0(n,a,i){if(a!=null&&(a=""+ea(a),a!==n.value&&(n.value=a),i==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=i!=null?""+ea(i):""}function U0(n,a,i,l){if(a==null){if(l!=null){if(i!=null)throw Error(u(92));if(oe(l)){if(1<l.length)throw Error(u(93));l=l[0]}i=l}i==null&&(i=""),a=i}i=ea(a),n.defaultValue=i,l=n.textContent,l===i&&l!==""&&l!==null&&(n.value=l),qo(n)}function ci(n,a){if(a){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=a;return}}n.textContent=a}var PT=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 P0(n,a,i){var l=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":l?n.setProperty(a,i):typeof i!="number"||i===0||PT.has(a)?a==="float"?n.cssFloat=i:n[a]=(""+i).trim():n[a]=i+"px"}function F0(n,a,i){if(a!=null&&typeof a!="object")throw Error(u(62));if(n=n.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var f in a)l=a[f],a.hasOwnProperty(f)&&i[f]!==l&&P0(n,f,l)}else for(var m in a)a.hasOwnProperty(m)&&P0(n,m,a[m])}function Qo(n){if(n.indexOf("-")===-1)return!1;switch(n){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 FT=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"]]),zT=/^[\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 Gl(n){return zT.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function za(){}var Ko=null;function Zo(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var fi=null,di=null;function z0(n){var a=_e(n);if(a&&(n=a.stateNode)){var i=n[St]||null;e:switch(n=a.stateNode,a.type){case"input":if(Vo(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+ta(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var l=i[a];if(l!==n&&l.form===n.form){var f=l[St]||null;if(!f)throw Error(u(90));Vo(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<i.length;a++)l=i[a],l.form===n.form&&M0(l)}break e;case"textarea":H0(n,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&oi(n,!!i.multiple,a,!1)}}}var $o=!1;function j0(n,a,i){if($o)return n(a,i);$o=!0;try{var l=n(a);return l}finally{if($o=!1,(fi!==null||di!==null)&&(Ds(),fi&&(a=fi,n=di,di=fi=null,z0(a),n)))for(a=0;a<n.length;a++)z0(n[a])}}function fu(n,a){var i=n.stateNode;if(i===null)return null;var l=i[St]||null;if(l===null)return null;i=l[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":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(u(231,a,typeof i));return i}var ja=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wo=!1;if(ja)try{var du={};Object.defineProperty(du,"passive",{get:function(){Wo=!0}}),window.addEventListener("test",du,du),window.removeEventListener("test",du,du)}catch{Wo=!1}var lr=null,Jo=null,ql=null;function Y0(){if(ql)return ql;var n,a=Jo,i=a.length,l,f="value"in lr?lr.value:lr.textContent,m=f.length;for(n=0;n<i&&a[n]===f[n];n++);var T=i-n;for(l=1;l<=T&&a[i-l]===f[m-l];l++);return ql=f.slice(n,1<l?1-l:void 0)}function Vl(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Xl(){return!0}function G0(){return!1}function On(n){function a(i,l,f,m,T){this._reactName=i,this._targetInst=f,this.type=l,this.nativeEvent=m,this.target=T,this.currentTarget=null;for(var S in n)n.hasOwnProperty(S)&&(i=n[S],this[S]=i?i(m):m[S]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Xl:G0,this.isPropagationStopped=G0,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Xl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Xl)},persist:function(){},isPersistent:Xl}),a}var Ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ql=On(Ur),hu=g({},Ur,{view:0,detail:0}),jT=On(hu),ec,tc,mu,Kl=g({},hu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ac,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==mu&&(mu&&n.type==="mousemove"?(ec=n.screenX-mu.screenX,tc=n.screenY-mu.screenY):tc=ec=0,mu=n),ec)},movementY:function(n){return"movementY"in n?n.movementY:tc}}),q0=On(Kl),YT=g({},Kl,{dataTransfer:0}),GT=On(YT),qT=g({},hu,{relatedTarget:0}),nc=On(qT),VT=g({},Ur,{animationName:0,elapsedTime:0,pseudoElement:0}),XT=On(VT),QT=g({},Ur,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),KT=On(QT),ZT=g({},Ur,{data:0}),V0=On(ZT),$T={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WT={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"},JT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ey(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=JT[n])?!!a[n]:!1}function ac(){return ey}var ty=g({},hu,{key:function(n){if(n.key){var a=$T[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=Vl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?WT[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ac,charCode:function(n){return n.type==="keypress"?Vl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Vl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),ny=On(ty),ay=g({},Kl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),X0=On(ay),ry=g({},hu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ac}),iy=On(ry),uy=g({},Ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),ly=On(uy),sy=g({},Kl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),oy=On(sy),cy=g({},Ur,{newState:0,oldState:0}),fy=On(cy),dy=[9,13,27,32],rc=ja&&"CompositionEvent"in window,pu=null;ja&&"documentMode"in document&&(pu=document.documentMode);var hy=ja&&"TextEvent"in window&&!pu,Q0=ja&&(!rc||pu&&8<pu&&11>=pu),K0=" ",Z0=!1;function $0(n,a){switch(n){case"keyup":return dy.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function W0(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var hi=!1;function my(n,a){switch(n){case"compositionend":return W0(a);case"keypress":return a.which!==32?null:(Z0=!0,K0);case"textInput":return n=a.data,n===K0&&Z0?null:n;default:return null}}function py(n,a){if(hi)return n==="compositionend"||!rc&&$0(n,a)?(n=Y0(),ql=Jo=lr=null,hi=!1,n):null;switch(n){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 Q0&&a.locale!=="ko"?null:a.data;default:return null}}var gy={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 J0(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!gy[n.type]:a==="textarea"}function eh(n,a,i,l){fi?di?di.push(l):di=[l]:fi=l,a=Us(a,"onChange"),0<a.length&&(i=new Ql("onChange","change",null,i,l),n.push({event:i,listeners:a}))}var gu=null,bu=null;function by(n){Bp(n,0)}function Zl(n){var a=it(n);if(M0(a))return n}function th(n,a){if(n==="change")return a}var nh=!1;if(ja){var ic;if(ja){var uc="oninput"in document;if(!uc){var ah=document.createElement("div");ah.setAttribute("oninput","return;"),uc=typeof ah.oninput=="function"}ic=uc}else ic=!1;nh=ic&&(!document.documentMode||9<document.documentMode)}function rh(){gu&&(gu.detachEvent("onpropertychange",ih),bu=gu=null)}function ih(n){if(n.propertyName==="value"&&Zl(bu)){var a=[];eh(a,bu,n,Zo(n)),j0(by,a)}}function Ey(n,a,i){n==="focusin"?(rh(),gu=a,bu=i,gu.attachEvent("onpropertychange",ih)):n==="focusout"&&rh()}function Ty(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Zl(bu)}function yy(n,a){if(n==="click")return Zl(a)}function Ay(n,a){if(n==="input"||n==="change")return Zl(a)}function Sy(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var zn=typeof Object.is=="function"?Object.is:Sy;function Eu(n,a){if(zn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var i=Object.keys(n),l=Object.keys(a);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var f=i[l];if(!Dt.call(a,f)||!zn(n[f],a[f]))return!1}return!0}function uh(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function lh(n,a){var i=uh(n);n=0;for(var l;i;){if(i.nodeType===3){if(l=n+i.textContent.length,n<=a&&l>=a)return{node:i,offset:a-n};n=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=uh(i)}}function sh(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?sh(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function oh(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Yl(n.document);a instanceof n.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)n=a.contentWindow;else break;a=Yl(n.document)}return a}function lc(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var _y=ja&&"documentMode"in document&&11>=document.documentMode,mi=null,sc=null,Tu=null,oc=!1;function ch(n,a,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;oc||mi==null||mi!==Yl(l)||(l=mi,"selectionStart"in l&&lc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Tu&&Eu(Tu,l)||(Tu=l,l=Us(sc,"onSelect"),0<l.length&&(a=new Ql("onSelect","select",null,a,i),n.push({event:a,listeners:l}),a.target=mi)))}function Pr(n,a){var i={};return i[n.toLowerCase()]=a.toLowerCase(),i["Webkit"+n]="webkit"+a,i["Moz"+n]="moz"+a,i}var pi={animationend:Pr("Animation","AnimationEnd"),animationiteration:Pr("Animation","AnimationIteration"),animationstart:Pr("Animation","AnimationStart"),transitionrun:Pr("Transition","TransitionRun"),transitionstart:Pr("Transition","TransitionStart"),transitioncancel:Pr("Transition","TransitionCancel"),transitionend:Pr("Transition","TransitionEnd")},cc={},fh={};ja&&(fh=document.createElement("div").style,"AnimationEvent"in window||(delete pi.animationend.animation,delete pi.animationiteration.animation,delete pi.animationstart.animation),"TransitionEvent"in window||delete pi.transitionend.transition);function Fr(n){if(cc[n])return cc[n];if(!pi[n])return n;var a=pi[n],i;for(i in a)if(a.hasOwnProperty(i)&&i in fh)return cc[n]=a[i];return n}var dh=Fr("animationend"),hh=Fr("animationiteration"),mh=Fr("animationstart"),xy=Fr("transitionrun"),Cy=Fr("transitionstart"),Ny=Fr("transitioncancel"),ph=Fr("transitionend"),gh=new Map,fc="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(" ");fc.push("scrollEnd");function ba(n,a){gh.set(n,a),vn(a,[n])}var $l=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},na=[],gi=0,dc=0;function Wl(){for(var n=gi,a=dc=gi=0;a<n;){var i=na[a];na[a++]=null;var l=na[a];na[a++]=null;var f=na[a];na[a++]=null;var m=na[a];if(na[a++]=null,l!==null&&f!==null){var T=l.pending;T===null?f.next=f:(f.next=T.next,T.next=f),l.pending=f}m!==0&&bh(i,f,m)}}function Jl(n,a,i,l){na[gi++]=n,na[gi++]=a,na[gi++]=i,na[gi++]=l,dc|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function hc(n,a,i,l){return Jl(n,a,i,l),es(n)}function zr(n,a){return Jl(n,null,null,a),es(n)}function bh(n,a,i){n.lanes|=i;var l=n.alternate;l!==null&&(l.lanes|=i);for(var f=!1,m=n.return;m!==null;)m.childLanes|=i,l=m.alternate,l!==null&&(l.childLanes|=i),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(f=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,f&&a!==null&&(f=31-Qe(i),n=m.hiddenUpdates,l=n[f],l===null?n[f]=[a]:l.push(a),a.lane=i|536870912),m):null}function es(n){if(50<zu)throw zu=0,_f=null,Error(u(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var bi={};function vy(n,a,i,l){this.tag=n,this.key=i,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(n,a,i,l){return new vy(n,a,i,l)}function mc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Ya(n,a){var i=n.alternate;return i===null?(i=jn(n.tag,a,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=a,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&65011712,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,a=n.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function Eh(n,a){n.flags&=65011714;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,a=i.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function ts(n,a,i,l,f,m){var T=0;if(l=n,typeof n=="function")mc(n)&&(T=1);else if(typeof n=="string")T=w2(n,i,X.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Ae:return n=jn(31,i,a,f),n.elementType=Ae,n.lanes=m,n;case R:return jr(i.children,f,m,a);case O:T=8,f|=24;break;case C:return n=jn(12,i,a,f|2),n.elementType=C,n.lanes=m,n;case te:return n=jn(13,i,a,f),n.elementType=te,n.lanes=m,n;case H:return n=jn(19,i,a,f),n.elementType=H,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case M:T=10;break e;case P:T=9;break e;case Q:T=11;break e;case ue:T=14;break e;case re:T=16,l=null;break e}T=29,i=Error(u(130,n===null?"null":typeof n,"")),l=null}return a=jn(T,i,a,f),a.elementType=n,a.type=l,a.lanes=m,a}function jr(n,a,i,l){return n=jn(7,n,l,a),n.lanes=i,n}function pc(n,a,i){return n=jn(6,n,null,a),n.lanes=i,n}function Th(n){var a=jn(18,null,null,0);return a.stateNode=n,a}function gc(n,a,i){return a=jn(4,n.children!==null?n.children:[],n.key,a),a.lanes=i,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var yh=new WeakMap;function aa(n,a){if(typeof n=="object"&&n!==null){var i=yh.get(n);return i!==void 0?i:(a={value:n,source:a,stack:Cn(a)},yh.set(n,a),a)}return{value:n,source:a,stack:Cn(a)}}var Ei=[],Ti=0,ns=null,yu=0,ra=[],ia=0,sr=null,Oa=1,ka="";function Ga(n,a){Ei[Ti++]=yu,Ei[Ti++]=ns,ns=n,yu=a}function Ah(n,a,i){ra[ia++]=Oa,ra[ia++]=ka,ra[ia++]=sr,sr=n;var l=Oa;n=ka;var f=32-Qe(l)-1;l&=~(1<<f),i+=1;var m=32-Qe(a)+f;if(30<m){var T=f-f%5;m=(l&(1<<T)-1).toString(32),l>>=T,f-=T,Oa=1<<32-Qe(a)+f|i<<f|l,ka=m+n}else Oa=1<<m|i<<f|l,ka=n}function bc(n){n.return!==null&&(Ga(n,1),Ah(n,1,0))}function Ec(n){for(;n===ns;)ns=Ei[--Ti],Ei[Ti]=null,yu=Ei[--Ti],Ei[Ti]=null;for(;n===sr;)sr=ra[--ia],ra[ia]=null,ka=ra[--ia],ra[ia]=null,Oa=ra[--ia],ra[ia]=null}function Sh(n,a){ra[ia++]=Oa,ra[ia++]=ka,ra[ia++]=sr,Oa=a.id,ka=a.overflow,sr=n}var sn=null,yt=null,et=!1,or=null,ua=!1,Tc=Error(u(519));function cr(n){var a=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Au(aa(a,n)),Tc}function _h(n){var a=n.stateNode,i=n.type,l=n.memoizedProps;switch(a[Pt]=n,a[St]=l,i){case"dialog":Ze("cancel",a),Ze("close",a);break;case"iframe":case"object":case"embed":Ze("load",a);break;case"video":case"audio":for(i=0;i<Yu.length;i++)Ze(Yu[i],a);break;case"source":Ze("error",a);break;case"img":case"image":case"link":Ze("error",a),Ze("load",a);break;case"details":Ze("toggle",a);break;case"input":Ze("invalid",a),B0(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ze("invalid",a);break;case"textarea":Ze("invalid",a),U0(a,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||l.suppressHydrationWarning===!0||Fp(a.textContent,i)?(l.popover!=null&&(Ze("beforetoggle",a),Ze("toggle",a)),l.onScroll!=null&&Ze("scroll",a),l.onScrollEnd!=null&&Ze("scrollend",a),l.onClick!=null&&(a.onclick=za),a=!0):a=!1,a||cr(n,!0)}function xh(n){for(sn=n.return;sn;)switch(sn.tag){case 5:case 31:case 13:ua=!1;return;case 27:case 3:ua=!0;return;default:sn=sn.return}}function yi(n){if(n!==sn)return!1;if(!et)return xh(n),et=!0,!1;var a=n.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||Uf(n.type,n.memoizedProps)),i=!i),i&&yt&&cr(n),xh(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(u(317));yt=Kp(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(u(317));yt=Kp(n)}else a===27?(a=yt,xr(n.type)?(n=Yf,Yf=null,yt=n):yt=a):yt=sn?sa(n.stateNode.nextSibling):null;return!0}function Yr(){yt=sn=null,et=!1}function yc(){var n=or;return n!==null&&(wn===null?wn=n:wn.push.apply(wn,n),or=null),n}function Au(n){or===null?or=[n]:or.push(n)}var Ac=D(null),Gr=null,qa=null;function fr(n,a,i){_(Ac,a._currentValue),a._currentValue=i}function Va(n){n._currentValue=Ac.current,K(Ac)}function Sc(n,a,i){for(;n!==null;){var l=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),n===i)break;n=n.return}}function _c(n,a,i,l){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var m=f.dependencies;if(m!==null){var T=f.child;m=m.firstContext;e:for(;m!==null;){var S=m;m=f;for(var L=0;L<a.length;L++)if(S.context===a[L]){m.lanes|=i,S=m.alternate,S!==null&&(S.lanes|=i),Sc(m.return,i,n),l||(T=null);break e}m=S.next}}else if(f.tag===18){if(T=f.return,T===null)throw Error(u(341));T.lanes|=i,m=T.alternate,m!==null&&(m.lanes|=i),Sc(T,i,n),T=null}else T=f.child;if(T!==null)T.return=f;else for(T=f;T!==null;){if(T===n){T=null;break}if(f=T.sibling,f!==null){f.return=T.return,T=f;break}T=T.return}f=T}}function Ai(n,a,i,l){n=null;for(var f=a,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var T=f.alternate;if(T===null)throw Error(u(387));if(T=T.memoizedProps,T!==null){var S=f.type;zn(f.pendingProps.value,T.value)||(n!==null?n.push(S):n=[S])}}else if(f===Se.current){if(T=f.alternate,T===null)throw Error(u(387));T.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Qu):n=[Qu])}f=f.return}n!==null&&_c(a,n,i,l),a.flags|=262144}function as(n){for(n=n.firstContext;n!==null;){if(!zn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function qr(n){Gr=n,qa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function on(n){return Ch(Gr,n)}function rs(n,a){return Gr===null&&qr(n),Ch(n,a)}function Ch(n,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},qa===null){if(n===null)throw Error(u(308));qa=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else qa=qa.next=a;return i}var Oy=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(i,l){n.push(l)}};this.abort=function(){a.aborted=!0,n.forEach(function(i){return i()})}},ky=e.unstable_scheduleCallback,Ry=e.unstable_NormalPriority,Ft={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xc(){return{controller:new Oy,data:new Map,refCount:0}}function Su(n){n.refCount--,n.refCount===0&&ky(Ry,function(){n.controller.abort()})}var _u=null,Cc=0,Si=0,_i=null;function Dy(n,a){if(_u===null){var i=_u=[];Cc=0,Si=kf(),_i={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Cc++,a.then(Nh,Nh),a}function Nh(){if(--Cc===0&&_u!==null){_i!==null&&(_i.status="fulfilled");var n=_u;_u=null,Si=0,_i=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function wy(n,a){var i=[],l={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return n.then(function(){l.status="fulfilled",l.value=a;for(var f=0;f<i.length;f++)(0,i[f])(a)},function(f){for(l.status="rejected",l.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),l}var vh=U.S;U.S=function(n,a){cp=wt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Dy(n,a),vh!==null&&vh(n,a)};var Vr=D(null);function Nc(){var n=Vr.current;return n!==null?n:ht.pooledCache}function is(n,a){a===null?_(Vr,Vr.current):_(Vr,a.pool)}function Oh(){var n=Nc();return n===null?null:{parent:Ft._currentValue,pool:n}}var xi=Error(u(460)),vc=Error(u(474)),us=Error(u(542)),ls={then:function(){}};function kh(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Rh(n,a,i){switch(i=n[i],i===void 0?n.push(a):i!==a&&(a.then(za,za),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,wh(n),n;default:if(typeof a.status=="string")a.then(za,za);else{if(n=ht,n!==null&&100<n.shellSuspendCounter)throw Error(u(482));n=a,n.status="pending",n.then(function(l){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=l}},function(l){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,wh(n),n}throw Qr=a,xi}}function Xr(n){try{var a=n._init;return a(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Qr=i,xi):i}}var Qr=null;function Dh(){if(Qr===null)throw Error(u(459));var n=Qr;return Qr=null,n}function wh(n){if(n===xi||n===us)throw Error(u(483))}var Ci=null,xu=0;function ss(n){var a=xu;return xu+=1,Ci===null&&(Ci=[]),Rh(Ci,n,a)}function Cu(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function os(n,a){throw a.$$typeof===A?Error(u(525)):(n=Object.prototype.toString.call(a),Error(u(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function Lh(n){function a(F,B){if(n){var G=F.deletions;G===null?(F.deletions=[B],F.flags|=16):G.push(B)}}function i(F,B){if(!n)return null;for(;B!==null;)a(F,B),B=B.sibling;return null}function l(F){for(var B=new Map;F!==null;)F.key!==null?B.set(F.key,F):B.set(F.index,F),F=F.sibling;return B}function f(F,B){return F=Ya(F,B),F.index=0,F.sibling=null,F}function m(F,B,G){return F.index=G,n?(G=F.alternate,G!==null?(G=G.index,G<B?(F.flags|=67108866,B):G):(F.flags|=67108866,B)):(F.flags|=1048576,B)}function T(F){return n&&F.alternate===null&&(F.flags|=67108866),F}function S(F,B,G,ie){return B===null||B.tag!==6?(B=pc(G,F.mode,ie),B.return=F,B):(B=f(B,G),B.return=F,B)}function L(F,B,G,ie){var we=G.type;return we===R?ae(F,B,G.props.children,ie,G.key):B!==null&&(B.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===re&&Xr(we)===B.type)?(B=f(B,G.props),Cu(B,G),B.return=F,B):(B=ts(G.type,G.key,G.props,null,F.mode,ie),Cu(B,G),B.return=F,B)}function q(F,B,G,ie){return B===null||B.tag!==4||B.stateNode.containerInfo!==G.containerInfo||B.stateNode.implementation!==G.implementation?(B=gc(G,F.mode,ie),B.return=F,B):(B=f(B,G.children||[]),B.return=F,B)}function ae(F,B,G,ie,we){return B===null||B.tag!==7?(B=jr(G,F.mode,ie,we),B.return=F,B):(B=f(B,G),B.return=F,B)}function se(F,B,G){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=pc(""+B,F.mode,G),B.return=F,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case y:return G=ts(B.type,B.key,B.props,null,F.mode,G),Cu(G,B),G.return=F,G;case x:return B=gc(B,F.mode,G),B.return=F,B;case re:return B=Xr(B),se(F,B,G)}if(oe(B)||ce(B))return B=jr(B,F.mode,G,null),B.return=F,B;if(typeof B.then=="function")return se(F,ss(B),G);if(B.$$typeof===M)return se(F,rs(F,B),G);os(F,B)}return null}function V(F,B,G,ie){var we=B!==null?B.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return we!==null?null:S(F,B,""+G,ie);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case y:return G.key===we?L(F,B,G,ie):null;case x:return G.key===we?q(F,B,G,ie):null;case re:return G=Xr(G),V(F,B,G,ie)}if(oe(G)||ce(G))return we!==null?null:ae(F,B,G,ie,null);if(typeof G.then=="function")return V(F,B,ss(G),ie);if(G.$$typeof===M)return V(F,B,rs(F,G),ie);os(F,G)}return null}function Z(F,B,G,ie,we){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return F=F.get(G)||null,S(B,F,""+ie,we);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case y:return F=F.get(ie.key===null?G:ie.key)||null,L(B,F,ie,we);case x:return F=F.get(ie.key===null?G:ie.key)||null,q(B,F,ie,we);case re:return ie=Xr(ie),Z(F,B,G,ie,we)}if(oe(ie)||ce(ie))return F=F.get(G)||null,ae(B,F,ie,we,null);if(typeof ie.then=="function")return Z(F,B,G,ss(ie),we);if(ie.$$typeof===M)return Z(F,B,G,rs(B,ie),we);os(B,ie)}return null}function Ce(F,B,G,ie){for(var we=null,nt=null,ke=B,Fe=B=0,Je=null;ke!==null&&Fe<G.length;Fe++){ke.index>Fe?(Je=ke,ke=null):Je=ke.sibling;var at=V(F,ke,G[Fe],ie);if(at===null){ke===null&&(ke=Je);break}n&&ke&&at.alternate===null&&a(F,ke),B=m(at,B,Fe),nt===null?we=at:nt.sibling=at,nt=at,ke=Je}if(Fe===G.length)return i(F,ke),et&&Ga(F,Fe),we;if(ke===null){for(;Fe<G.length;Fe++)ke=se(F,G[Fe],ie),ke!==null&&(B=m(ke,B,Fe),nt===null?we=ke:nt.sibling=ke,nt=ke);return et&&Ga(F,Fe),we}for(ke=l(ke);Fe<G.length;Fe++)Je=Z(ke,F,Fe,G[Fe],ie),Je!==null&&(n&&Je.alternate!==null&&ke.delete(Je.key===null?Fe:Je.key),B=m(Je,B,Fe),nt===null?we=Je:nt.sibling=Je,nt=Je);return n&&ke.forEach(function(kr){return a(F,kr)}),et&&Ga(F,Fe),we}function Ie(F,B,G,ie){if(G==null)throw Error(u(151));for(var we=null,nt=null,ke=B,Fe=B=0,Je=null,at=G.next();ke!==null&&!at.done;Fe++,at=G.next()){ke.index>Fe?(Je=ke,ke=null):Je=ke.sibling;var kr=V(F,ke,at.value,ie);if(kr===null){ke===null&&(ke=Je);break}n&&ke&&kr.alternate===null&&a(F,ke),B=m(kr,B,Fe),nt===null?we=kr:nt.sibling=kr,nt=kr,ke=Je}if(at.done)return i(F,ke),et&&Ga(F,Fe),we;if(ke===null){for(;!at.done;Fe++,at=G.next())at=se(F,at.value,ie),at!==null&&(B=m(at,B,Fe),nt===null?we=at:nt.sibling=at,nt=at);return et&&Ga(F,Fe),we}for(ke=l(ke);!at.done;Fe++,at=G.next())at=Z(ke,F,Fe,at.value,ie),at!==null&&(n&&at.alternate!==null&&ke.delete(at.key===null?Fe:at.key),B=m(at,B,Fe),nt===null?we=at:nt.sibling=at,nt=at);return n&&ke.forEach(function(Y2){return a(F,Y2)}),et&&Ga(F,Fe),we}function ft(F,B,G,ie){if(typeof G=="object"&&G!==null&&G.type===R&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case y:e:{for(var we=G.key;B!==null;){if(B.key===we){if(we=G.type,we===R){if(B.tag===7){i(F,B.sibling),ie=f(B,G.props.children),ie.return=F,F=ie;break e}}else if(B.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===re&&Xr(we)===B.type){i(F,B.sibling),ie=f(B,G.props),Cu(ie,G),ie.return=F,F=ie;break e}i(F,B);break}else a(F,B);B=B.sibling}G.type===R?(ie=jr(G.props.children,F.mode,ie,G.key),ie.return=F,F=ie):(ie=ts(G.type,G.key,G.props,null,F.mode,ie),Cu(ie,G),ie.return=F,F=ie)}return T(F);case x:e:{for(we=G.key;B!==null;){if(B.key===we)if(B.tag===4&&B.stateNode.containerInfo===G.containerInfo&&B.stateNode.implementation===G.implementation){i(F,B.sibling),ie=f(B,G.children||[]),ie.return=F,F=ie;break e}else{i(F,B);break}else a(F,B);B=B.sibling}ie=gc(G,F.mode,ie),ie.return=F,F=ie}return T(F);case re:return G=Xr(G),ft(F,B,G,ie)}if(oe(G))return Ce(F,B,G,ie);if(ce(G)){if(we=ce(G),typeof we!="function")throw Error(u(150));return G=we.call(G),Ie(F,B,G,ie)}if(typeof G.then=="function")return ft(F,B,ss(G),ie);if(G.$$typeof===M)return ft(F,B,rs(F,G),ie);os(F,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,B!==null&&B.tag===6?(i(F,B.sibling),ie=f(B,G),ie.return=F,F=ie):(i(F,B),ie=pc(G,F.mode,ie),ie.return=F,F=ie),T(F)):i(F,B)}return function(F,B,G,ie){try{xu=0;var we=ft(F,B,G,ie);return Ci=null,we}catch(ke){if(ke===xi||ke===us)throw ke;var nt=jn(29,ke,null,F.mode);return nt.lanes=ie,nt.return=F,nt}}}var Kr=Lh(!0),Ih=Lh(!1),dr=!1;function Oc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kc(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function hr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function mr(n,a,i){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(rt&2)!==0){var f=l.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),l.pending=a,a=es(n),bh(n,null,i),a}return Jl(n,l,a,i),es(n)}function Nu(n,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var l=a.lanes;l&=n.pendingLanes,i|=l,a.lanes=i,rn(n,i)}}function Rc(n,a){var i=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var T={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=T:m=m.next=T,i=i.next}while(i!==null);m===null?f=m=a:m=m.next=a}else f=m=a;i={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=a:n.next=a,i.lastBaseUpdate=a}var Dc=!1;function vu(){if(Dc){var n=_i;if(n!==null)throw n}}function Ou(n,a,i,l){Dc=!1;var f=n.updateQueue;dr=!1;var m=f.firstBaseUpdate,T=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var L=S,q=L.next;L.next=null,T===null?m=q:T.next=q,T=L;var ae=n.alternate;ae!==null&&(ae=ae.updateQueue,S=ae.lastBaseUpdate,S!==T&&(S===null?ae.firstBaseUpdate=q:S.next=q,ae.lastBaseUpdate=L))}if(m!==null){var se=f.baseState;T=0,ae=q=L=null,S=m;do{var V=S.lane&-536870913,Z=V!==S.lane;if(Z?(We&V)===V:(l&V)===V){V!==0&&V===Si&&(Dc=!0),ae!==null&&(ae=ae.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var Ce=n,Ie=S;V=a;var ft=i;switch(Ie.tag){case 1:if(Ce=Ie.payload,typeof Ce=="function"){se=Ce.call(ft,se,V);break e}se=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Ie.payload,V=typeof Ce=="function"?Ce.call(ft,se,V):Ce,V==null)break e;se=g({},se,V);break e;case 2:dr=!0}}V=S.callback,V!==null&&(n.flags|=64,Z&&(n.flags|=8192),Z=f.callbacks,Z===null?f.callbacks=[V]:Z.push(V))}else Z={lane:V,tag:S.tag,payload:S.payload,callback:S.callback,next:null},ae===null?(q=ae=Z,L=se):ae=ae.next=Z,T|=V;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;Z=S,S=Z.next,Z.next=null,f.lastBaseUpdate=Z,f.shared.pending=null}}while(!0);ae===null&&(L=se),f.baseState=L,f.firstBaseUpdate=q,f.lastBaseUpdate=ae,m===null&&(f.shared.lanes=0),Tr|=T,n.lanes=T,n.memoizedState=se}}function Mh(n,a){if(typeof n!="function")throw Error(u(191,n));n.call(a)}function Bh(n,a){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)Mh(i[n],a)}var Ni=D(null),cs=D(0);function Hh(n,a){n=tr,_(cs,n),_(Ni,a),tr=n|a.baseLanes}function wc(){_(cs,tr),_(Ni,Ni.current)}function Lc(){tr=cs.current,K(Ni),K(cs)}var Yn=D(null),la=null;function pr(n){var a=n.alternate;_(Lt,Lt.current&1),_(Yn,n),la===null&&(a===null||Ni.current!==null||a.memoizedState!==null)&&(la=n)}function Ic(n){_(Lt,Lt.current),_(Yn,n),la===null&&(la=n)}function Uh(n){n.tag===22?(_(Lt,Lt.current),_(Yn,n),la===null&&(la=n)):gr()}function gr(){_(Lt,Lt.current),_(Yn,Yn.current)}function Gn(n){K(Yn),la===n&&(la=null),K(Lt)}var Lt=D(0);function fs(n){for(var a=n;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||zf(i)||jf(i)))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===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Xa=0,Pe=null,ot=null,zt=null,ds=!1,vi=!1,Zr=!1,hs=0,ku=0,Oi=null,Ly=0;function kt(){throw Error(u(321))}function Mc(n,a){if(a===null)return!1;for(var i=0;i<a.length&&i<n.length;i++)if(!zn(n[i],a[i]))return!1;return!0}function Bc(n,a,i,l,f,m){return Xa=m,Pe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,U.H=n===null||n.memoizedState===null?Am:$c,Zr=!1,m=i(l,f),Zr=!1,vi&&(m=Fh(a,i,l,f)),Ph(n),m}function Ph(n){U.H=wu;var a=ot!==null&&ot.next!==null;if(Xa=0,zt=ot=Pe=null,ds=!1,ku=0,Oi=null,a)throw Error(u(300));n===null||jt||(n=n.dependencies,n!==null&&as(n)&&(jt=!0))}function Fh(n,a,i,l){Pe=n;var f=0;do{if(vi&&(Oi=null),ku=0,vi=!1,25<=f)throw Error(u(301));if(f+=1,zt=ot=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}U.H=Sm,m=a(i,l)}while(vi);return m}function Iy(){var n=U.H,a=n.useState()[0];return a=typeof a.then=="function"?Ru(a):a,n=n.useState()[0],(ot!==null?ot.memoizedState:null)!==n&&(Pe.flags|=1024),a}function Hc(){var n=hs!==0;return hs=0,n}function Uc(n,a,i){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~i}function Pc(n){if(ds){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}ds=!1}Xa=0,zt=ot=Pe=null,vi=!1,ku=hs=0,Oi=null}function Tn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?Pe.memoizedState=zt=n:zt=zt.next=n,zt}function It(){if(ot===null){var n=Pe.alternate;n=n!==null?n.memoizedState:null}else n=ot.next;var a=zt===null?Pe.memoizedState:zt.next;if(a!==null)zt=a,ot=n;else{if(n===null)throw Pe.alternate===null?Error(u(467)):Error(u(310));ot=n,n={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},zt===null?Pe.memoizedState=zt=n:zt=zt.next=n}return zt}function ms(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ru(n){var a=ku;return ku+=1,Oi===null&&(Oi=[]),n=Rh(Oi,n,a),a=Pe,(zt===null?a.memoizedState:zt.next)===null&&(a=a.alternate,U.H=a===null||a.memoizedState===null?Am:$c),n}function ps(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Ru(n);if(n.$$typeof===M)return on(n)}throw Error(u(438,String(n)))}function Fc(n){var a=null,i=Pe.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var l=Pe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=ms(),Pe.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(n),l=0;l<n;l++)i[l]=z;return a.index++,i}function Qa(n,a){return typeof a=="function"?a(n):a}function gs(n){var a=It();return zc(a,ot,n)}function zc(n,a,i){var l=n.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=i;var f=n.baseQueue,m=l.pending;if(m!==null){if(f!==null){var T=f.next;f.next=m.next,m.next=T}a.baseQueue=f=m,l.pending=null}if(m=n.baseState,f===null)n.memoizedState=m;else{a=f.next;var S=T=null,L=null,q=a,ae=!1;do{var se=q.lane&-536870913;if(se!==q.lane?(We&se)===se:(Xa&se)===se){var V=q.revertLane;if(V===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),se===Si&&(ae=!0);else if((Xa&V)===V){q=q.next,V===Si&&(ae=!0);continue}else se={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},L===null?(S=L=se,T=m):L=L.next=se,Pe.lanes|=V,Tr|=V;se=q.action,Zr&&i(m,se),m=q.hasEagerState?q.eagerState:i(m,se)}else V={lane:se,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},L===null?(S=L=V,T=m):L=L.next=V,Pe.lanes|=se,Tr|=se;q=q.next}while(q!==null&&q!==a);if(L===null?T=m:L.next=S,!zn(m,n.memoizedState)&&(jt=!0,ae&&(i=_i,i!==null)))throw i;n.memoizedState=m,n.baseState=T,n.baseQueue=L,l.lastRenderedState=m}return f===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function jc(n){var a=It(),i=a.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=n;var l=i.dispatch,f=i.pending,m=a.memoizedState;if(f!==null){i.pending=null;var T=f=f.next;do m=n(m,T.action),T=T.next;while(T!==f);zn(m,a.memoizedState)||(jt=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,l]}function zh(n,a,i){var l=Pe,f=It(),m=et;if(m){if(i===void 0)throw Error(u(407));i=i()}else i=a();var T=!zn((ot||f).memoizedState,i);if(T&&(f.memoizedState=i,jt=!0),f=f.queue,qc(Gh.bind(null,l,f,n),[n]),f.getSnapshot!==a||T||zt!==null&&zt.memoizedState.tag&1){if(l.flags|=2048,ki(9,{destroy:void 0},Yh.bind(null,l,f,i,a),null),ht===null)throw Error(u(349));m||(Xa&127)!==0||jh(l,a,i)}return i}function jh(n,a,i){n.flags|=16384,n={getSnapshot:a,value:i},a=Pe.updateQueue,a===null?(a=ms(),Pe.updateQueue=a,a.stores=[n]):(i=a.stores,i===null?a.stores=[n]:i.push(n))}function Yh(n,a,i,l){a.value=i,a.getSnapshot=l,qh(a)&&Vh(n)}function Gh(n,a,i){return i(function(){qh(a)&&Vh(n)})}function qh(n){var a=n.getSnapshot;n=n.value;try{var i=a();return!zn(n,i)}catch{return!0}}function Vh(n){var a=zr(n,2);a!==null&&Ln(a,n,2)}function Yc(n){var a=Tn();if(typeof n=="function"){var i=n;if(n=i(),Zr){dt(!0);try{i()}finally{dt(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:n},a}function Xh(n,a,i,l){return n.baseState=i,zc(n,ot,typeof l=="function"?l:Qa)}function My(n,a,i,l,f){if(Ts(n))throw Error(u(485));if(n=a.action,n!==null){var m={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){m.listeners.push(T)}};U.T!==null?i(!0):m.isTransition=!1,l(m),i=a.pending,i===null?(m.next=a.pending=m,Qh(a,m)):(m.next=i.next,a.pending=i.next=m)}}function Qh(n,a){var i=a.action,l=a.payload,f=n.state;if(a.isTransition){var m=U.T,T={};U.T=T;try{var S=i(f,l),L=U.S;L!==null&&L(T,S),Kh(n,a,S)}catch(q){Gc(n,a,q)}finally{m!==null&&T.types!==null&&(m.types=T.types),U.T=m}}else try{m=i(f,l),Kh(n,a,m)}catch(q){Gc(n,a,q)}}function Kh(n,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Zh(n,a,l)},function(l){return Gc(n,a,l)}):Zh(n,a,i)}function Zh(n,a,i){a.status="fulfilled",a.value=i,$h(a),n.state=i,a=n.pending,a!==null&&(i=a.next,i===a?n.pending=null:(i=i.next,a.next=i,Qh(n,i)))}function Gc(n,a,i){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=i,$h(a),a=a.next;while(a!==l)}n.action=null}function $h(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function Wh(n,a){return a}function Jh(n,a){if(et){var i=ht.formState;if(i!==null){e:{var l=Pe;if(et){if(yt){t:{for(var f=yt,m=ua;f.nodeType!==8;){if(!m){f=null;break t}if(f=sa(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){yt=sa(f.nextSibling),l=f.data==="F!";break e}}cr(l)}l=!1}l&&(a=i[0])}}return i=Tn(),i.memoizedState=i.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wh,lastRenderedState:a},i.queue=l,i=Em.bind(null,Pe,l),l.dispatch=i,l=Yc(!1),m=Zc.bind(null,Pe,!1,l.queue),l=Tn(),f={state:a,dispatch:null,action:n,pending:null},l.queue=f,i=My.bind(null,Pe,f,m,i),f.dispatch=i,l.memoizedState=n,[a,i,!1]}function em(n){var a=It();return tm(a,ot,n)}function tm(n,a,i){if(a=zc(n,a,Wh)[0],n=gs(Qa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=Ru(a)}catch(T){throw T===xi?us:T}else l=a;a=It();var f=a.queue,m=f.dispatch;return i!==a.memoizedState&&(Pe.flags|=2048,ki(9,{destroy:void 0},By.bind(null,f,i),null)),[l,m,n]}function By(n,a){n.action=a}function nm(n){var a=It(),i=ot;if(i!==null)return tm(a,i,n);It(),a=a.memoizedState,i=It();var l=i.queue.dispatch;return i.memoizedState=n,[a,l,!1]}function ki(n,a,i,l){return n={tag:n,create:i,deps:l,inst:a,next:null},a=Pe.updateQueue,a===null&&(a=ms(),Pe.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=n.next=n:(l=i.next,i.next=n,n.next=l,a.lastEffect=n),n}function am(){return It().memoizedState}function bs(n,a,i,l){var f=Tn();Pe.flags|=n,f.memoizedState=ki(1|a,{destroy:void 0},i,l===void 0?null:l)}function Es(n,a,i,l){var f=It();l=l===void 0?null:l;var m=f.memoizedState.inst;ot!==null&&l!==null&&Mc(l,ot.memoizedState.deps)?f.memoizedState=ki(a,m,i,l):(Pe.flags|=n,f.memoizedState=ki(1|a,m,i,l))}function rm(n,a){bs(8390656,8,n,a)}function qc(n,a){Es(2048,8,n,a)}function Hy(n){Pe.flags|=4;var a=Pe.updateQueue;if(a===null)a=ms(),Pe.updateQueue=a,a.events=[n];else{var i=a.events;i===null?a.events=[n]:i.push(n)}}function im(n){var a=It().memoizedState;return Hy({ref:a,nextImpl:n}),function(){if((rt&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}function um(n,a){return Es(4,2,n,a)}function lm(n,a){return Es(4,4,n,a)}function sm(n,a){if(typeof a=="function"){n=n();var i=a(n);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function om(n,a,i){i=i!=null?i.concat([n]):null,Es(4,4,sm.bind(null,a,n),i)}function Vc(){}function cm(n,a){var i=It();a=a===void 0?null:a;var l=i.memoizedState;return a!==null&&Mc(a,l[1])?l[0]:(i.memoizedState=[n,a],n)}function fm(n,a){var i=It();a=a===void 0?null:a;var l=i.memoizedState;if(a!==null&&Mc(a,l[1]))return l[0];if(l=n(),Zr){dt(!0);try{n()}finally{dt(!1)}}return i.memoizedState=[l,a],l}function Xc(n,a,i){return i===void 0||(Xa&1073741824)!==0&&(We&261930)===0?n.memoizedState=a:(n.memoizedState=i,n=dp(),Pe.lanes|=n,Tr|=n,i)}function dm(n,a,i,l){return zn(i,a)?i:Ni.current!==null?(n=Xc(n,i,l),zn(n,a)||(jt=!0),n):(Xa&42)===0||(Xa&1073741824)!==0&&(We&261930)===0?(jt=!0,n.memoizedState=i):(n=dp(),Pe.lanes|=n,Tr|=n,a)}function hm(n,a,i,l,f){var m=J.p;J.p=m!==0&&8>m?m:8;var T=U.T,S={};U.T=S,Zc(n,!1,a,i);try{var L=f(),q=U.S;if(q!==null&&q(S,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var ae=wy(L,l);Du(n,a,ae,Xn(n))}else Du(n,a,l,Xn(n))}catch(se){Du(n,a,{then:function(){},status:"rejected",reason:se},Xn())}finally{J.p=m,T!==null&&S.types!==null&&(T.types=S.types),U.T=T}}function Uy(){}function Qc(n,a,i,l){if(n.tag!==5)throw Error(u(476));var f=mm(n).queue;hm(n,f,a,ne,i===null?Uy:function(){return pm(n),i(l)})}function mm(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:ne},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qa,lastRenderedState:i},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function pm(n){var a=mm(n);a.next===null&&(a=n.alternate.memoizedState),Du(n,a.next.queue,{},Xn())}function Kc(){return on(Qu)}function gm(){return It().memoizedState}function bm(){return It().memoizedState}function Py(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var i=Xn();n=hr(i);var l=mr(a,n,i);l!==null&&(Ln(l,a,i),Nu(l,a,i)),a={cache:xc()},n.payload=a;return}a=a.return}}function Fy(n,a,i){var l=Xn();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ts(n)?Tm(a,i):(i=hc(n,a,i,l),i!==null&&(Ln(i,n,l),ym(i,a,l)))}function Em(n,a,i){var l=Xn();Du(n,a,i,l)}function Du(n,a,i,l){var f={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Ts(n))Tm(a,f);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var T=a.lastRenderedState,S=m(T,i);if(f.hasEagerState=!0,f.eagerState=S,zn(S,T))return Jl(n,a,f,0),ht===null&&Wl(),!1}catch{}if(i=hc(n,a,f,l),i!==null)return Ln(i,n,l),ym(i,a,l),!0}return!1}function Zc(n,a,i,l){if(l={lane:2,revertLane:kf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ts(n)){if(a)throw Error(u(479))}else a=hc(n,i,l,2),a!==null&&Ln(a,n,2)}function Ts(n){var a=n.alternate;return n===Pe||a!==null&&a===Pe}function Tm(n,a){vi=ds=!0;var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}function ym(n,a,i){if((i&4194048)!==0){var l=a.lanes;l&=n.pendingLanes,i|=l,a.lanes=i,rn(n,i)}}var wu={readContext:on,use:ps,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};wu.useEffectEvent=kt;var Am={readContext:on,use:ps,useCallback:function(n,a){return Tn().memoizedState=[n,a===void 0?null:a],n},useContext:on,useEffect:rm,useImperativeHandle:function(n,a,i){i=i!=null?i.concat([n]):null,bs(4194308,4,sm.bind(null,a,n),i)},useLayoutEffect:function(n,a){return bs(4194308,4,n,a)},useInsertionEffect:function(n,a){bs(4,2,n,a)},useMemo:function(n,a){var i=Tn();a=a===void 0?null:a;var l=n();if(Zr){dt(!0);try{n()}finally{dt(!1)}}return i.memoizedState=[l,a],l},useReducer:function(n,a,i){var l=Tn();if(i!==void 0){var f=i(a);if(Zr){dt(!0);try{i(a)}finally{dt(!1)}}}else f=a;return l.memoizedState=l.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},l.queue=n,n=n.dispatch=Fy.bind(null,Pe,n),[l.memoizedState,n]},useRef:function(n){var a=Tn();return n={current:n},a.memoizedState=n},useState:function(n){n=Yc(n);var a=n.queue,i=Em.bind(null,Pe,a);return a.dispatch=i,[n.memoizedState,i]},useDebugValue:Vc,useDeferredValue:function(n,a){var i=Tn();return Xc(i,n,a)},useTransition:function(){var n=Yc(!1);return n=hm.bind(null,Pe,n.queue,!0,!1),Tn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,i){var l=Pe,f=Tn();if(et){if(i===void 0)throw Error(u(407));i=i()}else{if(i=a(),ht===null)throw Error(u(349));(We&127)!==0||jh(l,a,i)}f.memoizedState=i;var m={value:i,getSnapshot:a};return f.queue=m,rm(Gh.bind(null,l,m,n),[n]),l.flags|=2048,ki(9,{destroy:void 0},Yh.bind(null,l,m,i,a),null),i},useId:function(){var n=Tn(),a=ht.identifierPrefix;if(et){var i=ka,l=Oa;i=(l&~(1<<32-Qe(l)-1)).toString(32)+i,a="_"+a+"R_"+i,i=hs++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=Ly++,a="_"+a+"r_"+i.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:Kc,useFormState:Jh,useActionState:Jh,useOptimistic:function(n){var a=Tn();a.memoizedState=a.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=Zc.bind(null,Pe,!0,i),i.dispatch=a,[n,a]},useMemoCache:Fc,useCacheRefresh:function(){return Tn().memoizedState=Py.bind(null,Pe)},useEffectEvent:function(n){var a=Tn(),i={impl:n};return a.memoizedState=i,function(){if((rt&2)!==0)throw Error(u(440));return i.impl.apply(void 0,arguments)}}},$c={readContext:on,use:ps,useCallback:cm,useContext:on,useEffect:qc,useImperativeHandle:om,useInsertionEffect:um,useLayoutEffect:lm,useMemo:fm,useReducer:gs,useRef:am,useState:function(){return gs(Qa)},useDebugValue:Vc,useDeferredValue:function(n,a){var i=It();return dm(i,ot.memoizedState,n,a)},useTransition:function(){var n=gs(Qa)[0],a=It().memoizedState;return[typeof n=="boolean"?n:Ru(n),a]},useSyncExternalStore:zh,useId:gm,useHostTransitionStatus:Kc,useFormState:em,useActionState:em,useOptimistic:function(n,a){var i=It();return Xh(i,ot,n,a)},useMemoCache:Fc,useCacheRefresh:bm};$c.useEffectEvent=im;var Sm={readContext:on,use:ps,useCallback:cm,useContext:on,useEffect:qc,useImperativeHandle:om,useInsertionEffect:um,useLayoutEffect:lm,useMemo:fm,useReducer:jc,useRef:am,useState:function(){return jc(Qa)},useDebugValue:Vc,useDeferredValue:function(n,a){var i=It();return ot===null?Xc(i,n,a):dm(i,ot.memoizedState,n,a)},useTransition:function(){var n=jc(Qa)[0],a=It().memoizedState;return[typeof n=="boolean"?n:Ru(n),a]},useSyncExternalStore:zh,useId:gm,useHostTransitionStatus:Kc,useFormState:nm,useActionState:nm,useOptimistic:function(n,a){var i=It();return ot!==null?Xh(i,ot,n,a):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:Fc,useCacheRefresh:bm};Sm.useEffectEvent=im;function Wc(n,a,i,l){a=n.memoizedState,i=i(l,a),i=i==null?a:g({},a,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var Jc={enqueueSetState:function(n,a,i){n=n._reactInternals;var l=Xn(),f=hr(l);f.payload=a,i!=null&&(f.callback=i),a=mr(n,f,l),a!==null&&(Ln(a,n,l),Nu(a,n,l))},enqueueReplaceState:function(n,a,i){n=n._reactInternals;var l=Xn(),f=hr(l);f.tag=1,f.payload=a,i!=null&&(f.callback=i),a=mr(n,f,l),a!==null&&(Ln(a,n,l),Nu(a,n,l))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var i=Xn(),l=hr(i);l.tag=2,a!=null&&(l.callback=a),a=mr(n,l,i),a!==null&&(Ln(a,n,i),Nu(a,n,i))}};function _m(n,a,i,l,f,m,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,m,T):a.prototype&&a.prototype.isPureReactComponent?!Eu(i,l)||!Eu(f,m):!0}function xm(n,a,i,l){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,l),a.state!==n&&Jc.enqueueReplaceState(a,a.state,null)}function $r(n,a){var i=a;if("ref"in a){i={};for(var l in a)l!=="ref"&&(i[l]=a[l])}if(n=n.defaultProps){i===a&&(i=g({},i));for(var f in n)i[f]===void 0&&(i[f]=n[f])}return i}function Cm(n){$l(n)}function Nm(n){console.error(n)}function vm(n){$l(n)}function ys(n,a){try{var i=n.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function Om(n,a,i){try{var l=n.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function ef(n,a,i){return i=hr(i),i.tag=3,i.payload={element:null},i.callback=function(){ys(n,a)},i}function km(n){return n=hr(n),n.tag=3,n}function Rm(n,a,i,l){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=l.value;n.payload=function(){return f(m)},n.callback=function(){Om(a,i,l)}}var T=i.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){Om(a,i,l),typeof f!="function"&&(yr===null?yr=new Set([this]):yr.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function zy(n,a,i,l,f){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=i.alternate,a!==null&&Ai(a,i,f,!0),i=Yn.current,i!==null){switch(i.tag){case 31:case 13:return la===null?ws():i.alternate===null&&Rt===0&&(Rt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,l===ls?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([l]):a.add(l),Nf(n,l,f)),!1;case 22:return i.flags|=65536,l===ls?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([l]):i.add(l)),Nf(n,l,f)),!1}throw Error(u(435,i.tag))}return Nf(n,l,f),ws(),!1}if(et)return a=Yn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,l!==Tc&&(n=Error(u(422),{cause:l}),Au(aa(n,i)))):(l!==Tc&&(a=Error(u(423),{cause:l}),Au(aa(a,i))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,l=aa(l,i),f=ef(n.stateNode,l,f),Rc(n,f),Rt!==4&&(Rt=2)),!1;var m=Error(u(520),{cause:l});if(m=aa(m,i),Fu===null?Fu=[m]:Fu.push(m),Rt!==4&&(Rt=2),a===null)return!0;l=aa(l,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,n=f&-f,i.lanes|=n,n=ef(i.stateNode,l,n),Rc(i,n),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(yr===null||!yr.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=km(f),Rm(f,n,i,l),Rc(i,f),!1}i=i.return}while(i!==null);return!1}var tf=Error(u(461)),jt=!1;function cn(n,a,i,l){a.child=n===null?Ih(a,null,i,l):Kr(a,n.child,i,l)}function Dm(n,a,i,l,f){i=i.render;var m=a.ref;if("ref"in l){var T={};for(var S in l)S!=="ref"&&(T[S]=l[S])}else T=l;return qr(a),l=Bc(n,a,i,T,m,f),S=Hc(),n!==null&&!jt?(Uc(n,a,f),Ka(n,a,f)):(et&&S&&bc(a),a.flags|=1,cn(n,a,l,f),a.child)}function wm(n,a,i,l,f){if(n===null){var m=i.type;return typeof m=="function"&&!mc(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,Lm(n,a,m,l,f)):(n=ts(i.type,null,l,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(m=n.child,!cf(n,f)){var T=m.memoizedProps;if(i=i.compare,i=i!==null?i:Eu,i(T,l)&&n.ref===a.ref)return Ka(n,a,f)}return a.flags|=1,n=Ya(m,l),n.ref=a.ref,n.return=a,a.child=n}function Lm(n,a,i,l,f){if(n!==null){var m=n.memoizedProps;if(Eu(m,l)&&n.ref===a.ref)if(jt=!1,a.pendingProps=l=m,cf(n,f))(n.flags&131072)!==0&&(jt=!0);else return a.lanes=n.lanes,Ka(n,a,f)}return nf(n,a,i,l,f)}function Im(n,a,i,l){var f=l.children,m=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,n!==null){for(l=a.child=n.child,f=0;l!==null;)f=f|l.lanes|l.childLanes,l=l.sibling;l=f&~m}else l=0,a.child=null;return Mm(n,a,m,i,l)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&is(a,m!==null?m.cachePool:null),m!==null?Hh(a,m):wc(),Uh(a);else return l=a.lanes=536870912,Mm(n,a,m!==null?m.baseLanes|i:i,i,l)}else m!==null?(is(a,m.cachePool),Hh(a,m),gr(),a.memoizedState=null):(n!==null&&is(a,null),wc(),gr());return cn(n,a,f,i),a.child}function Lu(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Mm(n,a,i,l,f){var m=Nc();return m=m===null?null:{parent:Ft._currentValue,pool:m},a.memoizedState={baseLanes:i,cachePool:m},n!==null&&is(a,null),wc(),Uh(a),n!==null&&Ai(n,a,l,!0),a.childLanes=f,null}function As(n,a){return a=_s({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function Bm(n,a,i){return Kr(a,n.child,null,i),n=As(a,a.pendingProps),n.flags|=2,Gn(a),a.memoizedState=null,n}function jy(n,a,i){var l=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(et){if(l.mode==="hidden")return n=As(a,l),a.lanes=536870912,Lu(null,n);if(Ic(a),(n=yt)?(n=Qp(n,ua),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:sr!==null?{id:Oa,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},i=Th(n),i.return=a,a.child=i,sn=a,yt=null)):n=null,n===null)throw cr(a);return a.lanes=536870912,null}return As(a,l)}var m=n.memoizedState;if(m!==null){var T=m.dehydrated;if(Ic(a),f)if(a.flags&256)a.flags&=-257,a=Bm(n,a,i);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(u(558));else if(jt||Ai(n,a,i,!1),f=(i&n.childLanes)!==0,jt||f){if(l=ht,l!==null&&(T=mn(l,i),T!==0&&T!==m.retryLane))throw m.retryLane=T,zr(n,T),Ln(l,n,T),tf;ws(),a=Bm(n,a,i)}else n=m.treeContext,yt=sa(T.nextSibling),sn=a,et=!0,or=null,ua=!1,n!==null&&Sh(a,n),a=As(a,l),a.flags|=4096;return a}return n=Ya(n.child,{mode:l.mode,children:l.children}),n.ref=a.ref,a.child=n,n.return=a,n}function Ss(n,a){var i=a.ref;if(i===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(u(284));(n===null||n.ref!==i)&&(a.flags|=4194816)}}function nf(n,a,i,l,f){return qr(a),i=Bc(n,a,i,l,void 0,f),l=Hc(),n!==null&&!jt?(Uc(n,a,f),Ka(n,a,f)):(et&&l&&bc(a),a.flags|=1,cn(n,a,i,f),a.child)}function Hm(n,a,i,l,f,m){return qr(a),a.updateQueue=null,i=Fh(a,l,i,f),Ph(n),l=Hc(),n!==null&&!jt?(Uc(n,a,m),Ka(n,a,m)):(et&&l&&bc(a),a.flags|=1,cn(n,a,i,m),a.child)}function Um(n,a,i,l,f){if(qr(a),a.stateNode===null){var m=bi,T=i.contextType;typeof T=="object"&&T!==null&&(m=on(T)),m=new i(l,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Jc,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=l,m.state=a.memoizedState,m.refs={},Oc(a),T=i.contextType,m.context=typeof T=="object"&&T!==null?on(T):bi,m.state=a.memoizedState,T=i.getDerivedStateFromProps,typeof T=="function"&&(Wc(a,i,T,l),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(T=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),T!==m.state&&Jc.enqueueReplaceState(m,m.state,null),Ou(a,l,m,f),vu(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(n===null){m=a.stateNode;var S=a.memoizedProps,L=$r(i,S);m.props=L;var q=m.context,ae=i.contextType;T=bi,typeof ae=="object"&&ae!==null&&(T=on(ae));var se=i.getDerivedStateFromProps;ae=typeof se=="function"||typeof m.getSnapshotBeforeUpdate=="function",S=a.pendingProps!==S,ae||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S||q!==T)&&xm(a,m,l,T),dr=!1;var V=a.memoizedState;m.state=V,Ou(a,l,m,f),vu(),q=a.memoizedState,S||V!==q||dr?(typeof se=="function"&&(Wc(a,i,se,l),q=a.memoizedState),(L=dr||_m(a,i,L,l,V,q,T))?(ae||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=q),m.props=l,m.state=q,m.context=T,l=L):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{m=a.stateNode,kc(n,a),T=a.memoizedProps,ae=$r(i,T),m.props=ae,se=a.pendingProps,V=m.context,q=i.contextType,L=bi,typeof q=="object"&&q!==null&&(L=on(q)),S=i.getDerivedStateFromProps,(q=typeof S=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T!==se||V!==L)&&xm(a,m,l,L),dr=!1,V=a.memoizedState,m.state=V,Ou(a,l,m,f),vu();var Z=a.memoizedState;T!==se||V!==Z||dr||n!==null&&n.dependencies!==null&&as(n.dependencies)?(typeof S=="function"&&(Wc(a,i,S,l),Z=a.memoizedState),(ae=dr||_m(a,i,ae,l,V,Z,L)||n!==null&&n.dependencies!==null&&as(n.dependencies))?(q||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,Z,L),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,Z,L)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=Z),m.props=l,m.state=Z,m.context=L,l=ae):(typeof m.componentDidUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(a.flags|=1024),l=!1)}return m=l,Ss(n,a),l=(a.flags&128)!==0,m||l?(m=a.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,n!==null&&l?(a.child=Kr(a,n.child,null,f),a.child=Kr(a,null,i,f)):cn(n,a,i,f),a.memoizedState=m.state,n=a.child):n=Ka(n,a,f),n}function Pm(n,a,i,l){return Yr(),a.flags|=256,cn(n,a,i,l),a.child}var af={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rf(n){return{baseLanes:n,cachePool:Oh()}}function uf(n,a,i){return n=n!==null?n.childLanes&~i:0,a&&(n|=Vn),n}function Fm(n,a,i){var l=a.pendingProps,f=!1,m=(a.flags&128)!==0,T;if((T=m)||(T=n!==null&&n.memoizedState===null?!1:(Lt.current&2)!==0),T&&(f=!0,a.flags&=-129),T=(a.flags&32)!==0,a.flags&=-33,n===null){if(et){if(f?pr(a):gr(),(n=yt)?(n=Qp(n,ua),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:sr!==null?{id:Oa,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},i=Th(n),i.return=a,a.child=i,sn=a,yt=null)):n=null,n===null)throw cr(a);return jf(n)?a.lanes=32:a.lanes=536870912,null}var S=l.children;return l=l.fallback,f?(gr(),f=a.mode,S=_s({mode:"hidden",children:S},f),l=jr(l,f,i,null),S.return=a,l.return=a,S.sibling=l,a.child=S,l=a.child,l.memoizedState=rf(i),l.childLanes=uf(n,T,i),a.memoizedState=af,Lu(null,l)):(pr(a),lf(a,S))}var L=n.memoizedState;if(L!==null&&(S=L.dehydrated,S!==null)){if(m)a.flags&256?(pr(a),a.flags&=-257,a=sf(n,a,i)):a.memoizedState!==null?(gr(),a.child=n.child,a.flags|=128,a=null):(gr(),S=l.fallback,f=a.mode,l=_s({mode:"visible",children:l.children},f),S=jr(S,f,i,null),S.flags|=2,l.return=a,S.return=a,l.sibling=S,a.child=l,Kr(a,n.child,null,i),l=a.child,l.memoizedState=rf(i),l.childLanes=uf(n,T,i),a.memoizedState=af,a=Lu(null,l));else if(pr(a),jf(S)){if(T=S.nextSibling&&S.nextSibling.dataset,T)var q=T.dgst;T=q,l=Error(u(419)),l.stack="",l.digest=T,Au({value:l,source:null,stack:null}),a=sf(n,a,i)}else if(jt||Ai(n,a,i,!1),T=(i&n.childLanes)!==0,jt||T){if(T=ht,T!==null&&(l=mn(T,i),l!==0&&l!==L.retryLane))throw L.retryLane=l,zr(n,l),Ln(T,n,l),tf;zf(S)||ws(),a=sf(n,a,i)}else zf(S)?(a.flags|=192,a.child=n.child,a=null):(n=L.treeContext,yt=sa(S.nextSibling),sn=a,et=!0,or=null,ua=!1,n!==null&&Sh(a,n),a=lf(a,l.children),a.flags|=4096);return a}return f?(gr(),S=l.fallback,f=a.mode,L=n.child,q=L.sibling,l=Ya(L,{mode:"hidden",children:l.children}),l.subtreeFlags=L.subtreeFlags&65011712,q!==null?S=Ya(q,S):(S=jr(S,f,i,null),S.flags|=2),S.return=a,l.return=a,l.sibling=S,a.child=l,Lu(null,l),l=a.child,S=n.child.memoizedState,S===null?S=rf(i):(f=S.cachePool,f!==null?(L=Ft._currentValue,f=f.parent!==L?{parent:L,pool:L}:f):f=Oh(),S={baseLanes:S.baseLanes|i,cachePool:f}),l.memoizedState=S,l.childLanes=uf(n,T,i),a.memoizedState=af,Lu(n.child,l)):(pr(a),i=n.child,n=i.sibling,i=Ya(i,{mode:"visible",children:l.children}),i.return=a,i.sibling=null,n!==null&&(T=a.deletions,T===null?(a.deletions=[n],a.flags|=16):T.push(n)),a.child=i,a.memoizedState=null,i)}function lf(n,a){return a=_s({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function _s(n,a){return n=jn(22,n,null,a),n.lanes=0,n}function sf(n,a,i){return Kr(a,n.child,null,i),n=lf(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function zm(n,a,i){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a),Sc(n.return,a,i)}function of(n,a,i,l,f,m){var T=n.memoizedState;T===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:f,treeForkCount:m}:(T.isBackwards=a,T.rendering=null,T.renderingStartTime=0,T.last=l,T.tail=i,T.tailMode=f,T.treeForkCount=m)}function jm(n,a,i){var l=a.pendingProps,f=l.revealOrder,m=l.tail;l=l.children;var T=Lt.current,S=(T&2)!==0;if(S?(T=T&1|2,a.flags|=128):T&=1,_(Lt,T),cn(n,a,l,i),l=et?yu:0,!S&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&zm(n,i,a);else if(n.tag===19)zm(n,i,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(i=a.child,f=null;i!==null;)n=i.alternate,n!==null&&fs(n)===null&&(f=i),i=i.sibling;i=f,i===null?(f=a.child,a.child=null):(f=i.sibling,i.sibling=null),of(a,!1,f,i,m,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=a.child,a.child=null;f!==null;){if(n=f.alternate,n!==null&&fs(n)===null){a.child=f;break}n=f.sibling,f.sibling=i,i=f,f=n}of(a,!0,i,null,m,l);break;case"together":of(a,!1,null,null,void 0,l);break;default:a.memoizedState=null}return a.child}function Ka(n,a,i){if(n!==null&&(a.dependencies=n.dependencies),Tr|=a.lanes,(i&a.childLanes)===0)if(n!==null){if(Ai(n,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(u(153));if(a.child!==null){for(n=a.child,i=Ya(n,n.pendingProps),a.child=i,i.return=a;n.sibling!==null;)n=n.sibling,i=i.sibling=Ya(n,n.pendingProps),i.return=a;i.sibling=null}return a.child}function cf(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&as(n)))}function Yy(n,a,i){switch(a.tag){case 3:xe(a,a.stateNode.containerInfo),fr(a,Ft,n.memoizedState.cache),Yr();break;case 27:case 5:st(a);break;case 4:xe(a,a.stateNode.containerInfo);break;case 10:fr(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Ic(a),null;break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(pr(a),a.flags|=128,null):(i&a.child.childLanes)!==0?Fm(n,a,i):(pr(a),n=Ka(n,a,i),n!==null?n.sibling:null);pr(a);break;case 19:var f=(n.flags&128)!==0;if(l=(i&a.childLanes)!==0,l||(Ai(n,a,i,!1),l=(i&a.childLanes)!==0),f){if(l)return jm(n,a,i);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),_(Lt,Lt.current),l)break;return null;case 22:return a.lanes=0,Im(n,a,i,a.pendingProps);case 24:fr(a,Ft,n.memoizedState.cache)}return Ka(n,a,i)}function Ym(n,a,i){if(n!==null)if(n.memoizedProps!==a.pendingProps)jt=!0;else{if(!cf(n,i)&&(a.flags&128)===0)return jt=!1,Yy(n,a,i);jt=(n.flags&131072)!==0}else jt=!1,et&&(a.flags&1048576)!==0&&Ah(a,yu,a.index);switch(a.lanes=0,a.tag){case 16:e:{var l=a.pendingProps;if(n=Xr(a.elementType),a.type=n,typeof n=="function")mc(n)?(l=$r(n,l),a.tag=1,a=Um(null,a,n,l,i)):(a.tag=0,a=nf(null,a,n,l,i));else{if(n!=null){var f=n.$$typeof;if(f===Q){a.tag=11,a=Dm(null,a,n,l,i);break e}else if(f===ue){a.tag=14,a=wm(null,a,n,l,i);break e}}throw a=be(n)||n,Error(u(306,a,""))}}return a;case 0:return nf(n,a,a.type,a.pendingProps,i);case 1:return l=a.type,f=$r(l,a.pendingProps),Um(n,a,l,f,i);case 3:e:{if(xe(a,a.stateNode.containerInfo),n===null)throw Error(u(387));l=a.pendingProps;var m=a.memoizedState;f=m.element,kc(n,a),Ou(a,l,null,i);var T=a.memoizedState;if(l=T.cache,fr(a,Ft,l),l!==m.cache&&_c(a,[Ft],i,!0),vu(),l=T.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:T.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=Pm(n,a,l,i);break e}else if(l!==f){f=aa(Error(u(424)),a),Au(f),a=Pm(n,a,l,i);break e}else for(n=a.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,yt=sa(n.firstChild),sn=a,et=!0,or=null,ua=!0,i=Ih(a,null,l,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Yr(),l===f){a=Ka(n,a,i);break e}cn(n,a,l,i)}a=a.child}return a;case 26:return Ss(n,a),n===null?(i=eg(a.type,null,a.pendingProps,null))?a.memoizedState=i:et||(i=a.type,n=a.pendingProps,l=Ps(ye.current).createElement(i),l[Pt]=a,l[St]=n,fn(l,i,n),Ye(l),a.stateNode=l):a.memoizedState=eg(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return st(a),n===null&&et&&(l=a.stateNode=$p(a.type,a.pendingProps,ye.current),sn=a,ua=!0,f=yt,xr(a.type)?(Yf=f,yt=sa(l.firstChild)):yt=f),cn(n,a,a.pendingProps.children,i),Ss(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&et&&((f=l=yt)&&(l=T2(l,a.type,a.pendingProps,ua),l!==null?(a.stateNode=l,sn=a,yt=sa(l.firstChild),ua=!1,f=!0):f=!1),f||cr(a)),st(a),f=a.type,m=a.pendingProps,T=n!==null?n.memoizedProps:null,l=m.children,Uf(f,m)?l=null:T!==null&&Uf(f,T)&&(a.flags|=32),a.memoizedState!==null&&(f=Bc(n,a,Iy,null,null,i),Qu._currentValue=f),Ss(n,a),cn(n,a,l,i),a.child;case 6:return n===null&&et&&((n=i=yt)&&(i=y2(i,a.pendingProps,ua),i!==null?(a.stateNode=i,sn=a,yt=null,n=!0):n=!1),n||cr(a)),null;case 13:return Fm(n,a,i);case 4:return xe(a,a.stateNode.containerInfo),l=a.pendingProps,n===null?a.child=Kr(a,null,l,i):cn(n,a,l,i),a.child;case 11:return Dm(n,a,a.type,a.pendingProps,i);case 7:return cn(n,a,a.pendingProps,i),a.child;case 8:return cn(n,a,a.pendingProps.children,i),a.child;case 12:return cn(n,a,a.pendingProps.children,i),a.child;case 10:return l=a.pendingProps,fr(a,a.type,l.value),cn(n,a,l.children,i),a.child;case 9:return f=a.type._context,l=a.pendingProps.children,qr(a),f=on(f),l=l(f),a.flags|=1,cn(n,a,l,i),a.child;case 14:return wm(n,a,a.type,a.pendingProps,i);case 15:return Lm(n,a,a.type,a.pendingProps,i);case 19:return jm(n,a,i);case 31:return jy(n,a,i);case 22:return Im(n,a,i,a.pendingProps);case 24:return qr(a),l=on(Ft),n===null?(f=Nc(),f===null&&(f=ht,m=xc(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),a.memoizedState={parent:l,cache:f},Oc(a),fr(a,Ft,f)):((n.lanes&i)!==0&&(kc(n,a),Ou(a,null,null,i),vu()),f=n.memoizedState,m=a.memoizedState,f.parent!==l?(f={parent:l,cache:l},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),fr(a,Ft,l)):(l=m.cache,fr(a,Ft,l),l!==f.cache&&_c(a,[Ft],i,!0))),cn(n,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(u(156,a.tag))}function Za(n){n.flags|=4}function ff(n,a,i,l,f){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(gp())n.flags|=8192;else throw Qr=ls,vc}else n.flags&=-16777217}function Gm(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!ig(a))if(gp())n.flags|=8192;else throw Qr=ls,vc}function xs(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Nt():536870912,n.lanes|=a,Li|=a)}function Iu(n,a){if(!et)switch(n.tailMode){case"hidden":a=n.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function At(n){var a=n.alternate!==null&&n.alternate.child===n.child,i=0,l=0;if(a)for(var f=n.child;f!==null;)i|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)i|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=i,a}function Gy(n,a,i){var l=a.pendingProps;switch(Ec(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(a),null;case 1:return At(a),null;case 3:return i=a.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Va(Ft),Be(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(yi(a)?Za(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,yc())),At(a),null;case 26:var f=a.type,m=a.memoizedState;return n===null?(Za(a),m!==null?(At(a),Gm(a,m)):(At(a),ff(a,f,null,l,i))):m?m!==n.memoizedState?(Za(a),At(a),Gm(a,m)):(At(a),a.flags&=-16777217):(n=n.memoizedProps,n!==l&&Za(a),At(a),ff(a,f,n,l,i)),null;case 27:if(Ct(a),i=ye.current,f=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&Za(a);else{if(!l){if(a.stateNode===null)throw Error(u(166));return At(a),null}n=X.current,yi(a)?_h(a):(n=$p(f,l,i),a.stateNode=n,Za(a))}return At(a),null;case 5:if(Ct(a),f=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&Za(a);else{if(!l){if(a.stateNode===null)throw Error(u(166));return At(a),null}if(m=X.current,yi(a))_h(a);else{var T=Ps(ye.current);switch(m){case 1:m=T.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:m=T.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":m=T.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":m=T.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":m=T.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof l.is=="string"?T.createElement("select",{is:l.is}):T.createElement("select"),l.multiple?m.multiple=!0:l.size&&(m.size=l.size);break;default:m=typeof l.is=="string"?T.createElement(f,{is:l.is}):T.createElement(f)}}m[Pt]=a,m[St]=l;e:for(T=a.child;T!==null;){if(T.tag===5||T.tag===6)m.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===a)break e;for(;T.sibling===null;){if(T.return===null||T.return===a)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}a.stateNode=m;e:switch(fn(m,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Za(a)}}return At(a),ff(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,i),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==l&&Za(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(u(166));if(n=ye.current,yi(a)){if(n=a.stateNode,i=a.memoizedProps,l=null,f=sn,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}n[Pt]=a,n=!!(n.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Fp(n.nodeValue,i)),n||cr(a,!0)}else n=Ps(n).createTextNode(l),n[Pt]=a,a.stateNode=n}return At(a),null;case 31:if(i=a.memoizedState,n===null||n.memoizedState!==null){if(l=yi(a),i!==null){if(n===null){if(!l)throw Error(u(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(u(557));n[Pt]=a}else Yr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;At(a),n=!1}else i=yc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=i),n=!0;if(!n)return a.flags&256?(Gn(a),a):(Gn(a),null);if((a.flags&128)!==0)throw Error(u(558))}return At(a),null;case 13:if(l=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=yi(a),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(u(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(u(317));f[Pt]=a}else Yr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;At(a),f=!1}else f=yc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(Gn(a),a):(Gn(a),null)}return Gn(a),(a.flags&128)!==0?(a.lanes=i,a):(i=l!==null,n=n!==null&&n.memoizedState!==null,i&&(l=a.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==f&&(l.flags|=2048)),i!==n&&i&&(a.child.flags|=8192),xs(a,a.updateQueue),At(a),null);case 4:return Be(),n===null&&Lf(a.stateNode.containerInfo),At(a),null;case 10:return Va(a.type),At(a),null;case 19:if(K(Lt),l=a.memoizedState,l===null)return At(a),null;if(f=(a.flags&128)!==0,m=l.rendering,m===null)if(f)Iu(l,!1);else{if(Rt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(m=fs(n),m!==null){for(a.flags|=128,Iu(l,!1),n=m.updateQueue,a.updateQueue=n,xs(a,n),a.subtreeFlags=0,n=i,i=a.child;i!==null;)Eh(i,n),i=i.sibling;return _(Lt,Lt.current&1|2),et&&Ga(a,l.treeForkCount),a.child}n=n.sibling}l.tail!==null&&wt()>ks&&(a.flags|=128,f=!0,Iu(l,!1),a.lanes=4194304)}else{if(!f)if(n=fs(m),n!==null){if(a.flags|=128,f=!0,n=n.updateQueue,a.updateQueue=n,xs(a,n),Iu(l,!0),l.tail===null&&l.tailMode==="hidden"&&!m.alternate&&!et)return At(a),null}else 2*wt()-l.renderingStartTime>ks&&i!==536870912&&(a.flags|=128,f=!0,Iu(l,!1),a.lanes=4194304);l.isBackwards?(m.sibling=a.child,a.child=m):(n=l.last,n!==null?n.sibling=m:a.child=m,l.last=m)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=wt(),n.sibling=null,i=Lt.current,_(Lt,f?i&1|2:i&1),et&&Ga(a,l.treeForkCount),n):(At(a),null);case 22:case 23:return Gn(a),Lc(),l=a.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(i&536870912)!==0&&(a.flags&128)===0&&(At(a),a.subtreeFlags&6&&(a.flags|=8192)):At(a),i=a.updateQueue,i!==null&&xs(a,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(a.flags|=2048),n!==null&&K(Vr),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Va(Ft),At(a),null;case 25:return null;case 30:return null}throw Error(u(156,a.tag))}function qy(n,a){switch(Ec(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Va(Ft),Be(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Ct(a),null;case 31:if(a.memoizedState!==null){if(Gn(a),a.alternate===null)throw Error(u(340));Yr()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(Gn(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(u(340));Yr()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return K(Lt),null;case 4:return Be(),null;case 10:return Va(a.type),null;case 22:case 23:return Gn(a),Lc(),n!==null&&K(Vr),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Va(Ft),null;case 25:return null;default:return null}}function qm(n,a){switch(Ec(a),a.tag){case 3:Va(Ft),Be();break;case 26:case 27:case 5:Ct(a);break;case 4:Be();break;case 31:a.memoizedState!==null&&Gn(a);break;case 13:Gn(a);break;case 19:K(Lt);break;case 10:Va(a.type);break;case 22:case 23:Gn(a),Lc(),n!==null&&K(Vr);break;case 24:Va(Ft)}}function Mu(n,a){try{var i=a.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var f=l.next;i=f;do{if((i.tag&n)===n){l=void 0;var m=i.create,T=i.inst;l=m(),T.destroy=l}i=i.next}while(i!==f)}}catch(S){lt(a,a.return,S)}}function br(n,a,i){try{var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var m=f.next;l=m;do{if((l.tag&n)===n){var T=l.inst,S=T.destroy;if(S!==void 0){T.destroy=void 0,f=a;var L=i,q=S;try{q()}catch(ae){lt(f,L,ae)}}}l=l.next}while(l!==m)}}catch(ae){lt(a,a.return,ae)}}function Vm(n){var a=n.updateQueue;if(a!==null){var i=n.stateNode;try{Bh(a,i)}catch(l){lt(n,n.return,l)}}}function Xm(n,a,i){i.props=$r(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(l){lt(n,a,l)}}function Bu(n,a){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof i=="function"?n.refCleanup=i(l):i.current=l}}catch(f){lt(n,a,f)}}function Ra(n,a){var i=n.ref,l=n.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(f){lt(n,a,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){lt(n,a,f)}else i.current=null}function Qm(n){var a=n.type,i=n.memoizedProps,l=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(f){lt(n,n.return,f)}}function df(n,a,i){try{var l=n.stateNode;h2(l,n.type,i,a),l[St]=a}catch(f){lt(n,n.return,f)}}function Km(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&xr(n.type)||n.tag===4}function hf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Km(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&xr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function mf(n,a,i){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(n,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(n),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=za));else if(l!==4&&(l===27&&xr(n.type)&&(i=n.stateNode,a=null),n=n.child,n!==null))for(mf(n,a,i),n=n.sibling;n!==null;)mf(n,a,i),n=n.sibling}function Cs(n,a,i){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?i.insertBefore(n,a):i.appendChild(n);else if(l!==4&&(l===27&&xr(n.type)&&(i=n.stateNode),n=n.child,n!==null))for(Cs(n,a,i),n=n.sibling;n!==null;)Cs(n,a,i),n=n.sibling}function Zm(n){var a=n.stateNode,i=n.memoizedProps;try{for(var l=n.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);fn(a,l,i),a[Pt]=n,a[St]=i}catch(m){lt(n,n.return,m)}}var $a=!1,Yt=!1,pf=!1,$m=typeof WeakSet=="function"?WeakSet:Set,en=null;function Vy(n,a){if(n=n.containerInfo,Bf=Vs,n=oh(n),lc(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var f=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var T=0,S=-1,L=-1,q=0,ae=0,se=n,V=null;t:for(;;){for(var Z;se!==i||f!==0&&se.nodeType!==3||(S=T+f),se!==m||l!==0&&se.nodeType!==3||(L=T+l),se.nodeType===3&&(T+=se.nodeValue.length),(Z=se.firstChild)!==null;)V=se,se=Z;for(;;){if(se===n)break t;if(V===i&&++q===f&&(S=T),V===m&&++ae===l&&(L=T),(Z=se.nextSibling)!==null)break;se=V,V=se.parentNode}se=Z}i=S===-1||L===-1?null:{start:S,end:L}}else i=null}i=i||{start:0,end:0}}else i=null;for(Hf={focusedElem:n,selectionRange:i},Vs=!1,en=a;en!==null;)if(a=en,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,en=n;else for(;en!==null;){switch(a=en,m=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(i=0;i<n.length;i++)f=n[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,i=a,f=m.memoizedProps,m=m.memoizedState,l=i.stateNode;try{var Ce=$r(i.type,f);n=l.getSnapshotBeforeUpdate(Ce,m),l.__reactInternalSnapshotBeforeUpdate=n}catch(Ie){lt(i,i.return,Ie)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,i=n.nodeType,i===9)Ff(n);else if(i===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Ff(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(u(163))}if(n=a.sibling,n!==null){n.return=a.return,en=n;break}en=a.return}}function Wm(n,a,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Ja(n,i),l&4&&Mu(5,i);break;case 1:if(Ja(n,i),l&4)if(n=i.stateNode,a===null)try{n.componentDidMount()}catch(T){lt(i,i.return,T)}else{var f=$r(i.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(T){lt(i,i.return,T)}}l&64&&Vm(i),l&512&&Bu(i,i.return);break;case 3:if(Ja(n,i),l&64&&(n=i.updateQueue,n!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{Bh(n,a)}catch(T){lt(i,i.return,T)}}break;case 27:a===null&&l&4&&Zm(i);case 26:case 5:Ja(n,i),a===null&&l&4&&Qm(i),l&512&&Bu(i,i.return);break;case 12:Ja(n,i);break;case 31:Ja(n,i),l&4&&tp(n,i);break;case 13:Ja(n,i),l&4&&np(n,i),l&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=t2.bind(null,i),A2(n,i))));break;case 22:if(l=i.memoizedState!==null||$a,!l){a=a!==null&&a.memoizedState!==null||Yt,f=$a;var m=Yt;$a=l,(Yt=a)&&!m?er(n,i,(i.subtreeFlags&8772)!==0):Ja(n,i),$a=f,Yt=m}break;case 30:break;default:Ja(n,i)}}function Jm(n){var a=n.alternate;a!==null&&(n.alternate=null,Jm(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&I(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var _t=null,kn=!1;function Wa(n,a,i){for(i=i.child;i!==null;)ep(n,a,i),i=i.sibling}function ep(n,a,i){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Ot,i)}catch{}switch(i.tag){case 26:Yt||Ra(i,a),Wa(n,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Yt||Ra(i,a);var l=_t,f=kn;xr(i.type)&&(_t=i.stateNode,kn=!1),Wa(n,a,i),qu(i.stateNode),_t=l,kn=f;break;case 5:Yt||Ra(i,a);case 6:if(l=_t,f=kn,_t=null,Wa(n,a,i),_t=l,kn=f,_t!==null)if(kn)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(i.stateNode)}catch(m){lt(i,a,m)}else try{_t.removeChild(i.stateNode)}catch(m){lt(i,a,m)}break;case 18:_t!==null&&(kn?(n=_t,Vp(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),zi(n)):Vp(_t,i.stateNode));break;case 4:l=_t,f=kn,_t=i.stateNode.containerInfo,kn=!0,Wa(n,a,i),_t=l,kn=f;break;case 0:case 11:case 14:case 15:br(2,i,a),Yt||br(4,i,a),Wa(n,a,i);break;case 1:Yt||(Ra(i,a),l=i.stateNode,typeof l.componentWillUnmount=="function"&&Xm(i,a,l)),Wa(n,a,i);break;case 21:Wa(n,a,i);break;case 22:Yt=(l=Yt)||i.memoizedState!==null,Wa(n,a,i),Yt=l;break;default:Wa(n,a,i)}}function tp(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{zi(n)}catch(i){lt(a,a.return,i)}}}function np(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{zi(n)}catch(i){lt(a,a.return,i)}}function Xy(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new $m),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new $m),a;default:throw Error(u(435,n.tag))}}function Ns(n,a){var i=Xy(n);a.forEach(function(l){if(!i.has(l)){i.add(l);var f=n2.bind(null,n,l);l.then(f,f)}})}function Rn(n,a){var i=a.deletions;if(i!==null)for(var l=0;l<i.length;l++){var f=i[l],m=n,T=a,S=T;e:for(;S!==null;){switch(S.tag){case 27:if(xr(S.type)){_t=S.stateNode,kn=!1;break e}break;case 5:_t=S.stateNode,kn=!1;break e;case 3:case 4:_t=S.stateNode.containerInfo,kn=!0;break e}S=S.return}if(_t===null)throw Error(u(160));ep(m,T,f),_t=null,kn=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)ap(a,n),a=a.sibling}var Ea=null;function ap(n,a){var i=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Rn(a,n),Dn(n),l&4&&(br(3,n,n.return),Mu(3,n),br(5,n,n.return));break;case 1:Rn(a,n),Dn(n),l&512&&(Yt||i===null||Ra(i,i.return)),l&64&&$a&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var f=Ea;if(Rn(a,n),Dn(n),l&512&&(Yt||i===null||Ra(i,i.return)),l&4){var m=i!==null?i.memoizedState:null;if(l=n.memoizedState,i===null)if(l===null)if(n.stateNode===null){e:{l=n.type,i=n.memoizedProps,f=f.ownerDocument||f;t:switch(l){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Oe]||m[Pt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(l),f.head.insertBefore(m,f.querySelector("head > title"))),fn(m,l,i),m[Pt]=n,Ye(m),l=m;break e;case"link":var T=ag("link","href",f).get(l+(i.href||""));if(T){for(var S=0;S<T.length;S++)if(m=T[S],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){T.splice(S,1);break t}}m=f.createElement(l),fn(m,l,i),f.head.appendChild(m);break;case"meta":if(T=ag("meta","content",f).get(l+(i.content||""))){for(S=0;S<T.length;S++)if(m=T[S],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){T.splice(S,1);break t}}m=f.createElement(l),fn(m,l,i),f.head.appendChild(m);break;default:throw Error(u(468,l))}m[Pt]=n,Ye(m),l=m}n.stateNode=l}else rg(f,n.type,n.stateNode);else n.stateNode=ng(f,l,n.memoizedProps);else m!==l?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,l===null?rg(f,n.type,n.stateNode):ng(f,l,n.memoizedProps)):l===null&&n.stateNode!==null&&df(n,n.memoizedProps,i.memoizedProps)}break;case 27:Rn(a,n),Dn(n),l&512&&(Yt||i===null||Ra(i,i.return)),i!==null&&l&4&&df(n,n.memoizedProps,i.memoizedProps);break;case 5:if(Rn(a,n),Dn(n),l&512&&(Yt||i===null||Ra(i,i.return)),n.flags&32){f=n.stateNode;try{ci(f,"")}catch(Ce){lt(n,n.return,Ce)}}l&4&&n.stateNode!=null&&(f=n.memoizedProps,df(n,f,i!==null?i.memoizedProps:f)),l&1024&&(pf=!0);break;case 6:if(Rn(a,n),Dn(n),l&4){if(n.stateNode===null)throw Error(u(162));l=n.memoizedProps,i=n.stateNode;try{i.nodeValue=l}catch(Ce){lt(n,n.return,Ce)}}break;case 3:if(js=null,f=Ea,Ea=Fs(a.containerInfo),Rn(a,n),Ea=f,Dn(n),l&4&&i!==null&&i.memoizedState.isDehydrated)try{zi(a.containerInfo)}catch(Ce){lt(n,n.return,Ce)}pf&&(pf=!1,rp(n));break;case 4:l=Ea,Ea=Fs(n.stateNode.containerInfo),Rn(a,n),Dn(n),Ea=l;break;case 12:Rn(a,n),Dn(n);break;case 31:Rn(a,n),Dn(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Ns(n,l)));break;case 13:Rn(a,n),Dn(n),n.child.flags&8192&&n.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Os=wt()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Ns(n,l)));break;case 22:f=n.memoizedState!==null;var L=i!==null&&i.memoizedState!==null,q=$a,ae=Yt;if($a=q||f,Yt=ae||L,Rn(a,n),Yt=ae,$a=q,Dn(n),l&8192)e:for(a=n.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(i===null||L||$a||Yt||Wr(n)),i=null,a=n;;){if(a.tag===5||a.tag===26){if(i===null){L=i=a;try{if(m=L.stateNode,f)T=m.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{S=L.stateNode;var se=L.memoizedProps.style,V=se!=null&&se.hasOwnProperty("display")?se.display:null;S.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(Ce){lt(L,L.return,Ce)}}}else if(a.tag===6){if(i===null){L=a;try{L.stateNode.nodeValue=f?"":L.memoizedProps}catch(Ce){lt(L,L.return,Ce)}}}else if(a.tag===18){if(i===null){L=a;try{var Z=L.stateNode;f?Xp(Z,!0):Xp(L.stateNode,!1)}catch(Ce){lt(L,L.return,Ce)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=n.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,Ns(n,i))));break;case 19:Rn(a,n),Dn(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Ns(n,l)));break;case 30:break;case 21:break;default:Rn(a,n),Dn(n)}}function Dn(n){var a=n.flags;if(a&2){try{for(var i,l=n.return;l!==null;){if(Km(l)){i=l;break}l=l.return}if(i==null)throw Error(u(160));switch(i.tag){case 27:var f=i.stateNode,m=hf(n);Cs(n,m,f);break;case 5:var T=i.stateNode;i.flags&32&&(ci(T,""),i.flags&=-33);var S=hf(n);Cs(n,S,T);break;case 3:case 4:var L=i.stateNode.containerInfo,q=hf(n);mf(n,q,L);break;default:throw Error(u(161))}}catch(ae){lt(n,n.return,ae)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function rp(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;rp(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Ja(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Wm(n,a.alternate,a),a=a.sibling}function Wr(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:br(4,a,a.return),Wr(a);break;case 1:Ra(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&Xm(a,a.return,i),Wr(a);break;case 27:qu(a.stateNode);case 26:case 5:Ra(a,a.return),Wr(a);break;case 22:a.memoizedState===null&&Wr(a);break;case 30:Wr(a);break;default:Wr(a)}n=n.sibling}}function er(n,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,f=n,m=a,T=m.flags;switch(m.tag){case 0:case 11:case 15:er(f,m,i),Mu(4,m);break;case 1:if(er(f,m,i),l=m,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(q){lt(l,l.return,q)}if(l=m,f=l.updateQueue,f!==null){var S=l.stateNode;try{var L=f.shared.hiddenCallbacks;if(L!==null)for(f.shared.hiddenCallbacks=null,f=0;f<L.length;f++)Mh(L[f],S)}catch(q){lt(l,l.return,q)}}i&&T&64&&Vm(m),Bu(m,m.return);break;case 27:Zm(m);case 26:case 5:er(f,m,i),i&&l===null&&T&4&&Qm(m),Bu(m,m.return);break;case 12:er(f,m,i);break;case 31:er(f,m,i),i&&T&4&&tp(f,m);break;case 13:er(f,m,i),i&&T&4&&np(f,m);break;case 22:m.memoizedState===null&&er(f,m,i),Bu(m,m.return);break;case 30:break;default:er(f,m,i)}a=a.sibling}}function gf(n,a){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&Su(i))}function bf(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Su(n))}function Ta(n,a,i,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)ip(n,a,i,l),a=a.sibling}function ip(n,a,i,l){var f=a.flags;switch(a.tag){case 0:case 11:case 15:Ta(n,a,i,l),f&2048&&Mu(9,a);break;case 1:Ta(n,a,i,l);break;case 3:Ta(n,a,i,l),f&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Su(n)));break;case 12:if(f&2048){Ta(n,a,i,l),n=a.stateNode;try{var m=a.memoizedProps,T=m.id,S=m.onPostCommit;typeof S=="function"&&S(T,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(L){lt(a,a.return,L)}}else Ta(n,a,i,l);break;case 31:Ta(n,a,i,l);break;case 13:Ta(n,a,i,l);break;case 23:break;case 22:m=a.stateNode,T=a.alternate,a.memoizedState!==null?m._visibility&2?Ta(n,a,i,l):Hu(n,a):m._visibility&2?Ta(n,a,i,l):(m._visibility|=2,Ri(n,a,i,l,(a.subtreeFlags&10256)!==0||!1)),f&2048&&gf(T,a);break;case 24:Ta(n,a,i,l),f&2048&&bf(a.alternate,a);break;default:Ta(n,a,i,l)}}function Ri(n,a,i,l,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=n,T=a,S=i,L=l,q=T.flags;switch(T.tag){case 0:case 11:case 15:Ri(m,T,S,L,f),Mu(8,T);break;case 23:break;case 22:var ae=T.stateNode;T.memoizedState!==null?ae._visibility&2?Ri(m,T,S,L,f):Hu(m,T):(ae._visibility|=2,Ri(m,T,S,L,f)),f&&q&2048&&gf(T.alternate,T);break;case 24:Ri(m,T,S,L,f),f&&q&2048&&bf(T.alternate,T);break;default:Ri(m,T,S,L,f)}a=a.sibling}}function Hu(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=n,l=a,f=l.flags;switch(l.tag){case 22:Hu(i,l),f&2048&&gf(l.alternate,l);break;case 24:Hu(i,l),f&2048&&bf(l.alternate,l);break;default:Hu(i,l)}a=a.sibling}}var Uu=8192;function Di(n,a,i){if(n.subtreeFlags&Uu)for(n=n.child;n!==null;)up(n,a,i),n=n.sibling}function up(n,a,i){switch(n.tag){case 26:Di(n,a,i),n.flags&Uu&&n.memoizedState!==null&&L2(i,Ea,n.memoizedState,n.memoizedProps);break;case 5:Di(n,a,i);break;case 3:case 4:var l=Ea;Ea=Fs(n.stateNode.containerInfo),Di(n,a,i),Ea=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=Uu,Uu=16777216,Di(n,a,i),Uu=l):Di(n,a,i));break;default:Di(n,a,i)}}function lp(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function Pu(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];en=l,op(l,n)}lp(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)sp(n),n=n.sibling}function sp(n){switch(n.tag){case 0:case 11:case 15:Pu(n),n.flags&2048&&br(9,n,n.return);break;case 3:Pu(n);break;case 12:Pu(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,vs(n)):Pu(n);break;default:Pu(n)}}function vs(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];en=l,op(l,n)}lp(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:br(8,a,a.return),vs(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,vs(a));break;default:vs(a)}n=n.sibling}}function op(n,a){for(;en!==null;){var i=en;switch(i.tag){case 0:case 11:case 15:br(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Su(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,en=l;else e:for(i=n;en!==null;){l=en;var f=l.sibling,m=l.return;if(Jm(l),l===i){en=null;break e}if(f!==null){f.return=m,en=f;break e}en=m}}}var Qy={getCacheForType:function(n){var a=on(Ft),i=a.data.get(n);return i===void 0&&(i=n(),a.data.set(n,i)),i},cacheSignal:function(){return on(Ft).controller.signal}},Ky=typeof WeakMap=="function"?WeakMap:Map,rt=0,ht=null,Ke=null,We=0,ut=0,qn=null,Er=!1,wi=!1,Ef=!1,tr=0,Rt=0,Tr=0,Jr=0,Tf=0,Vn=0,Li=0,Fu=null,wn=null,yf=!1,Os=0,cp=0,ks=1/0,Rs=null,yr=null,Kt=0,Ar=null,Ii=null,nr=0,Af=0,Sf=null,fp=null,zu=0,_f=null;function Xn(){return(rt&2)!==0&&We!==0?We&-We:U.T!==null?kf():li()}function dp(){if(Vn===0)if((We&536870912)===0||et){var n=ga;ga<<=1,(ga&3932160)===0&&(ga=262144),Vn=n}else Vn=536870912;return n=Yn.current,n!==null&&(n.flags|=32),Vn}function Ln(n,a,i){(n===ht&&(ut===2||ut===9)||n.cancelPendingCommit!==null)&&(Mi(n,0),Sr(n,We,Vn,!1)),bt(n,i),((rt&2)===0||n!==ht)&&(n===ht&&((rt&2)===0&&(Jr|=i),Rt===4&&Sr(n,We,Vn,!1)),Da(n))}function hp(n,a,i){if((rt&6)!==0)throw Error(u(327));var l=!i&&(a&127)===0&&(a&n.expiredLanes)===0||gt(n,a),f=l?Wy(n,a):Cf(n,a,!0),m=l;do{if(f===0){wi&&!l&&Sr(n,a,0,!1);break}else{if(i=n.current.alternate,m&&!Zy(i)){f=Cf(n,a,!1),m=!1;continue}if(f===2){if(m=a,n.errorRecoveryDisabledLanes&m)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){a=T;e:{var S=n;f=Fu;var L=S.current.memoizedState.isDehydrated;if(L&&(Mi(S,T).flags|=256),T=Cf(S,T,!1),T!==2){if(Ef&&!L){S.errorRecoveryDisabledLanes|=m,Jr|=m,f=4;break e}m=wn,wn=f,m!==null&&(wn===null?wn=m:wn.push.apply(wn,m))}f=T}if(m=!1,f!==2)continue}}if(f===1){Mi(n,0),Sr(n,a,0,!0);break}e:{switch(l=n,m=f,m){case 0:case 1:throw Error(u(345));case 4:if((a&4194048)!==a)break;case 6:Sr(l,a,Vn,!Er);break e;case 2:wn=null;break;case 3:case 5:break;default:throw Error(u(329))}if((a&62914560)===a&&(f=Os+300-wt(),10<f)){if(Sr(l,a,Vn,!Er),Me(l,0,!0)!==0)break e;nr=a,l.timeoutHandle=Gp(mp.bind(null,l,i,wn,Rs,yf,a,Vn,Jr,Li,Er,m,"Throttled",-0,0),f);break e}mp(l,i,wn,Rs,yf,a,Vn,Jr,Li,Er,m,null,-0,0)}}break}while(!0);Da(n)}function mp(n,a,i,l,f,m,T,S,L,q,ae,se,V,Z){if(n.timeoutHandle=-1,se=a.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:za},up(a,m,se);var Ce=(m&62914560)===m?Os-wt():(m&4194048)===m?cp-wt():0;if(Ce=I2(se,Ce),Ce!==null){nr=m,n.cancelPendingCommit=Ce(Sp.bind(null,n,a,m,i,l,f,T,S,L,ae,se,null,V,Z)),Sr(n,m,T,!q);return}}Sp(n,a,m,i,l,f,T,S,L)}function Zy(n){for(var a=n;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var f=i[l],m=f.getSnapshot;f=f.value;try{if(!zn(m(),f))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Sr(n,a,i,l){a&=~Tf,a&=~Jr,n.suspendedLanes|=a,n.pingedLanes&=~a,l&&(n.warmLanes|=a),l=n.expirationTimes;for(var f=a;0<f;){var m=31-Qe(f),T=1<<m;l[m]=-1,f&=~T}i!==0&&Na(n,i,a)}function Ds(){return(rt&6)===0?(ju(0),!1):!0}function xf(){if(Ke!==null){if(ut===0)var n=Ke.return;else n=Ke,qa=Gr=null,Pc(n),Ci=null,xu=0,n=Ke;for(;n!==null;)qm(n.alternate,n),n=n.return;Ke=null}}function Mi(n,a){var i=n.timeoutHandle;i!==-1&&(n.timeoutHandle=-1,g2(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),nr=0,xf(),ht=n,Ke=i=Ya(n.current,null),We=a,ut=0,qn=null,Er=!1,wi=gt(n,a),Ef=!1,Li=Vn=Tf=Jr=Tr=Rt=0,wn=Fu=null,yf=!1,(a&8)!==0&&(a|=a&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=a;0<l;){var f=31-Qe(l),m=1<<f;a|=n[f],l&=~m}return tr=a,Wl(),i}function pp(n,a){Pe=null,U.H=wu,a===xi||a===us?(a=Dh(),ut=3):a===vc?(a=Dh(),ut=4):ut=a===tf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,qn=a,Ke===null&&(Rt=1,ys(n,aa(a,n.current)))}function gp(){var n=Yn.current;return n===null?!0:(We&4194048)===We?la===null:(We&62914560)===We||(We&536870912)!==0?n===la:!1}function bp(){var n=U.H;return U.H=wu,n===null?wu:n}function Ep(){var n=U.A;return U.A=Qy,n}function ws(){Rt=4,Er||(We&4194048)!==We&&Yn.current!==null||(wi=!0),(Tr&134217727)===0&&(Jr&134217727)===0||ht===null||Sr(ht,We,Vn,!1)}function Cf(n,a,i){var l=rt;rt|=2;var f=bp(),m=Ep();(ht!==n||We!==a)&&(Rs=null,Mi(n,a)),a=!1;var T=Rt;e:do try{if(ut!==0&&Ke!==null){var S=Ke,L=qn;switch(ut){case 8:xf(),T=6;break e;case 3:case 2:case 9:case 6:Yn.current===null&&(a=!0);var q=ut;if(ut=0,qn=null,Bi(n,S,L,q),i&&wi){T=0;break e}break;default:q=ut,ut=0,qn=null,Bi(n,S,L,q)}}$y(),T=Rt;break}catch(ae){pp(n,ae)}while(!0);return a&&n.shellSuspendCounter++,qa=Gr=null,rt=l,U.H=f,U.A=m,Ke===null&&(ht=null,We=0,Wl()),T}function $y(){for(;Ke!==null;)Tp(Ke)}function Wy(n,a){var i=rt;rt|=2;var l=bp(),f=Ep();ht!==n||We!==a?(Rs=null,ks=wt()+500,Mi(n,a)):wi=gt(n,a);e:do try{if(ut!==0&&Ke!==null){a=Ke;var m=qn;t:switch(ut){case 1:ut=0,qn=null,Bi(n,a,m,1);break;case 2:case 9:if(kh(m)){ut=0,qn=null,yp(a);break}a=function(){ut!==2&&ut!==9||ht!==n||(ut=7),Da(n)},m.then(a,a);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:kh(m)?(ut=0,qn=null,yp(a)):(ut=0,qn=null,Bi(n,a,m,7));break;case 5:var T=null;switch(Ke.tag){case 26:T=Ke.memoizedState;case 5:case 27:var S=Ke;if(T?ig(T):S.stateNode.complete){ut=0,qn=null;var L=S.sibling;if(L!==null)Ke=L;else{var q=S.return;q!==null?(Ke=q,Ls(q)):Ke=null}break t}}ut=0,qn=null,Bi(n,a,m,5);break;case 6:ut=0,qn=null,Bi(n,a,m,6);break;case 8:xf(),Rt=6;break e;default:throw Error(u(462))}}Jy();break}catch(ae){pp(n,ae)}while(!0);return qa=Gr=null,U.H=l,U.A=f,rt=i,Ke!==null?0:(ht=null,We=0,Wl(),Rt)}function Jy(){for(;Ke!==null&&!Ht();)Tp(Ke)}function Tp(n){var a=Ym(n.alternate,n,tr);n.memoizedProps=n.pendingProps,a===null?Ls(n):Ke=a}function yp(n){var a=n,i=a.alternate;switch(a.tag){case 15:case 0:a=Hm(i,a,a.pendingProps,a.type,void 0,We);break;case 11:a=Hm(i,a,a.pendingProps,a.type.render,a.ref,We);break;case 5:Pc(a);default:qm(i,a),a=Ke=Eh(a,tr),a=Ym(i,a,tr)}n.memoizedProps=n.pendingProps,a===null?Ls(n):Ke=a}function Bi(n,a,i,l){qa=Gr=null,Pc(a),Ci=null,xu=0;var f=a.return;try{if(zy(n,f,a,i,We)){Rt=1,ys(n,aa(i,n.current)),Ke=null;return}}catch(m){if(f!==null)throw Ke=f,m;Rt=1,ys(n,aa(i,n.current)),Ke=null;return}a.flags&32768?(et||l===1?n=!0:wi||(We&536870912)!==0?n=!1:(Er=n=!0,(l===2||l===9||l===3||l===6)&&(l=Yn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ap(a,n)):Ls(a)}function Ls(n){var a=n;do{if((a.flags&32768)!==0){Ap(a,Er);return}n=a.return;var i=Gy(a.alternate,a,tr);if(i!==null){Ke=i;return}if(a=a.sibling,a!==null){Ke=a;return}Ke=a=n}while(a!==null);Rt===0&&(Rt=5)}function Ap(n,a){do{var i=qy(n.alternate,n);if(i!==null){i.flags&=32767,Ke=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(n=n.sibling,n!==null)){Ke=n;return}Ke=n=i}while(n!==null);Rt=6,Ke=null}function Sp(n,a,i,l,f,m,T,S,L){n.cancelPendingCommit=null;do Is();while(Kt!==0);if((rt&6)!==0)throw Error(u(327));if(a!==null){if(a===n.current)throw Error(u(177));if(m=a.lanes|a.childLanes,m|=dc,Jt(n,i,m,T,S,L),n===ht&&(Ke=ht=null,We=0),Ii=a,Ar=n,nr=i,Af=m,Sf=f,fp=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,a2(De,function(){return vp(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,f=J.p,J.p=2,T=rt,rt|=4;try{Vy(n,a,i)}finally{rt=T,J.p=f,U.T=l}}Kt=1,_p(),xp(),Cp()}}function _p(){if(Kt===1){Kt=0;var n=Ar,a=Ii,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var l=J.p;J.p=2;var f=rt;rt|=4;try{ap(a,n);var m=Hf,T=oh(n.containerInfo),S=m.focusedElem,L=m.selectionRange;if(T!==S&&S&&S.ownerDocument&&sh(S.ownerDocument.documentElement,S)){if(L!==null&&lc(S)){var q=L.start,ae=L.end;if(ae===void 0&&(ae=q),"selectionStart"in S)S.selectionStart=q,S.selectionEnd=Math.min(ae,S.value.length);else{var se=S.ownerDocument||document,V=se&&se.defaultView||window;if(V.getSelection){var Z=V.getSelection(),Ce=S.textContent.length,Ie=Math.min(L.start,Ce),ft=L.end===void 0?Ie:Math.min(L.end,Ce);!Z.extend&&Ie>ft&&(T=ft,ft=Ie,Ie=T);var F=lh(S,Ie),B=lh(S,ft);if(F&&B&&(Z.rangeCount!==1||Z.anchorNode!==F.node||Z.anchorOffset!==F.offset||Z.focusNode!==B.node||Z.focusOffset!==B.offset)){var G=se.createRange();G.setStart(F.node,F.offset),Z.removeAllRanges(),Ie>ft?(Z.addRange(G),Z.extend(B.node,B.offset)):(G.setEnd(B.node,B.offset),Z.addRange(G))}}}}for(se=[],Z=S;Z=Z.parentNode;)Z.nodeType===1&&se.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<se.length;S++){var ie=se[S];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}Vs=!!Bf,Hf=Bf=null}finally{rt=f,J.p=l,U.T=i}}n.current=a,Kt=2}}function xp(){if(Kt===2){Kt=0;var n=Ar,a=Ii,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var l=J.p;J.p=2;var f=rt;rt|=4;try{Wm(n,a.alternate,a)}finally{rt=f,J.p=l,U.T=i}}Kt=3}}function Cp(){if(Kt===4||Kt===3){Kt=0,Zn();var n=Ar,a=Ii,i=nr,l=fp;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Kt=5:(Kt=0,Ii=Ar=null,Np(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(yr=null),Xt(i),a=a.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Ot,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=U.T,f=J.p,J.p=2,U.T=null;try{for(var m=n.onRecoverableError,T=0;T<l.length;T++){var S=l[T];m(S.value,{componentStack:S.stack})}}finally{U.T=a,J.p=f}}(nr&3)!==0&&Is(),Da(n),f=n.pendingLanes,(i&261930)!==0&&(f&42)!==0?n===_f?zu++:(zu=0,_f=n):zu=0,ju(0)}}function Np(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Su(a)))}function Is(){return _p(),xp(),Cp(),vp()}function vp(){if(Kt!==5)return!1;var n=Ar,a=Af;Af=0;var i=Xt(nr),l=U.T,f=J.p;try{J.p=32>i?32:i,U.T=null,i=Sf,Sf=null;var m=Ar,T=nr;if(Kt=0,Ii=Ar=null,nr=0,(rt&6)!==0)throw Error(u(331));var S=rt;if(rt|=4,sp(m.current),ip(m,m.current,T,i),rt=S,ju(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Ot,m)}catch{}return!0}finally{J.p=f,U.T=l,Np(n,a)}}function Op(n,a,i){a=aa(i,a),a=ef(n.stateNode,a,2),n=mr(n,a,2),n!==null&&(bt(n,2),Da(n))}function lt(n,a,i){if(n.tag===3)Op(n,n,i);else for(;a!==null;){if(a.tag===3){Op(a,n,i);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(yr===null||!yr.has(l))){n=aa(i,n),i=km(2),l=mr(a,i,2),l!==null&&(Rm(i,l,a,n),bt(l,2),Da(l));break}}a=a.return}}function Nf(n,a,i){var l=n.pingCache;if(l===null){l=n.pingCache=new Ky;var f=new Set;l.set(a,f)}else f=l.get(a),f===void 0&&(f=new Set,l.set(a,f));f.has(i)||(Ef=!0,f.add(i),n=e2.bind(null,n,a,i),a.then(n,n))}function e2(n,a,i){var l=n.pingCache;l!==null&&l.delete(a),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,ht===n&&(We&i)===i&&(Rt===4||Rt===3&&(We&62914560)===We&&300>wt()-Os?(rt&2)===0&&Mi(n,0):Tf|=i,Li===We&&(Li=0)),Da(n)}function kp(n,a){a===0&&(a=Nt()),n=zr(n,a),n!==null&&(bt(n,a),Da(n))}function t2(n){var a=n.memoizedState,i=0;a!==null&&(i=a.retryLane),kp(n,i)}function n2(n,a){var i=0;switch(n.tag){case 31:case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(i=f.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(a),kp(n,i)}function a2(n,a){return Fn(n,a)}var Ms=null,Hi=null,vf=!1,Bs=!1,Of=!1,_r=0;function Da(n){n!==Hi&&n.next===null&&(Hi===null?Ms=Hi=n:Hi=Hi.next=n),Bs=!0,vf||(vf=!0,i2())}function ju(n,a){if(!Of&&Bs){Of=!0;do for(var i=!1,l=Ms;l!==null;){if(n!==0){var f=l.pendingLanes;if(f===0)var m=0;else{var T=l.suspendedLanes,S=l.pingedLanes;m=(1<<31-Qe(42|n)+1)-1,m&=f&~(T&~S),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Lp(l,m))}else m=We,m=Me(l,l===ht?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||gt(l,m)||(i=!0,Lp(l,m));l=l.next}while(i);Of=!1}}function r2(){Rp()}function Rp(){Bs=vf=!1;var n=0;_r!==0&&p2()&&(n=_r);for(var a=wt(),i=null,l=Ms;l!==null;){var f=l.next,m=Dp(l,a);m===0?(l.next=null,i===null?Ms=f:i.next=f,f===null&&(Hi=i)):(i=l,(n!==0||(m&3)!==0)&&(Bs=!0)),l=f}Kt!==0&&Kt!==5||ju(n),_r!==0&&(_r=0)}function Dp(n,a){for(var i=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var T=31-Qe(m),S=1<<T,L=f[T];L===-1?((S&i)===0||(S&l)!==0)&&(f[T]=qe(S,a)):L<=a&&(n.expiredLanes|=S),m&=~S}if(a=ht,i=We,i=Me(n,n===a?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,i===0||n===a&&(ut===2||ut===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&xa(l),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||gt(n,i)){if(a=i&-i,a===n.callbackPriority)return a;switch(l!==null&&xa(l),Xt(i)){case 2:case 8:i=ge;break;case 32:i=De;break;case 268435456:i=je;break;default:i=De}return l=wp.bind(null,n),i=Fn(i,l),n.callbackPriority=a,n.callbackNode=i,a}return l!==null&&l!==null&&xa(l),n.callbackPriority=2,n.callbackNode=null,2}function wp(n,a){if(Kt!==0&&Kt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(Is()&&n.callbackNode!==i)return null;var l=We;return l=Me(n,n===ht?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(hp(n,l,a),Dp(n,wt()),n.callbackNode!=null&&n.callbackNode===i?wp.bind(null,n):null)}function Lp(n,a){if(Is())return null;hp(n,a,!0)}function i2(){b2(function(){(rt&6)!==0?Fn(W,r2):Rp()})}function kf(){if(_r===0){var n=Si;n===0&&(n=pa,pa<<=1,(pa&261888)===0&&(pa=256)),_r=n}return _r}function Ip(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Gl(""+n)}function Mp(n,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,n.id&&i.setAttribute("form",n.id),a.parentNode.insertBefore(i,a),n=new FormData(n),i.parentNode.removeChild(i),n}function u2(n,a,i,l,f){if(a==="submit"&&i&&i.stateNode===f){var m=Ip((f[St]||null).action),T=l.submitter;T&&(a=(a=T[St]||null)?Ip(a.formAction):T.getAttribute("formAction"),a!==null&&(m=a,T=null));var S=new Ql("action","action",null,l,f);n.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(_r!==0){var L=T?Mp(f,T):new FormData(f);Qc(i,{pending:!0,data:L,method:f.method,action:m},null,L)}}else typeof m=="function"&&(S.preventDefault(),L=T?Mp(f,T):new FormData(f),Qc(i,{pending:!0,data:L,method:f.method,action:m},m,L))},currentTarget:f}]})}}for(var Rf=0;Rf<fc.length;Rf++){var Df=fc[Rf],l2=Df.toLowerCase(),s2=Df[0].toUpperCase()+Df.slice(1);ba(l2,"on"+s2)}ba(dh,"onAnimationEnd"),ba(hh,"onAnimationIteration"),ba(mh,"onAnimationStart"),ba("dblclick","onDoubleClick"),ba("focusin","onFocus"),ba("focusout","onBlur"),ba(xy,"onTransitionRun"),ba(Cy,"onTransitionStart"),ba(Ny,"onTransitionCancel"),ba(ph,"onTransitionEnd"),va("onMouseEnter",["mouseout","mouseover"]),va("onMouseLeave",["mouseout","mouseover"]),va("onPointerEnter",["pointerout","pointerover"]),va("onPointerLeave",["pointerout","pointerover"]),vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vn("onBeforeInput",["compositionend","keypress","textInput","paste"]),vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yu="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(" "),o2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yu));function Bp(n,a){a=(a&4)!==0;for(var i=0;i<n.length;i++){var l=n[i],f=l.event;l=l.listeners;e:{var m=void 0;if(a)for(var T=l.length-1;0<=T;T--){var S=l[T],L=S.instance,q=S.currentTarget;if(S=S.listener,L!==m&&f.isPropagationStopped())break e;m=S,f.currentTarget=q;try{m(f)}catch(ae){$l(ae)}f.currentTarget=null,m=L}else for(T=0;T<l.length;T++){if(S=l[T],L=S.instance,q=S.currentTarget,S=S.listener,L!==m&&f.isPropagationStopped())break e;m=S,f.currentTarget=q;try{m(f)}catch(ae){$l(ae)}f.currentTarget=null,m=L}}}}function Ze(n,a){var i=a[si];i===void 0&&(i=a[si]=new Set);var l=n+"__bubble";i.has(l)||(Hp(a,n,2,!1),i.add(l))}function wf(n,a,i){var l=0;a&&(l|=4),Hp(i,n,l,a)}var Hs="_reactListening"+Math.random().toString(36).slice(2);function Lf(n){if(!n[Hs]){n[Hs]=!0,ln.forEach(function(i){i!=="selectionchange"&&(o2.has(i)||wf(i,!1,n),wf(i,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Hs]||(a[Hs]=!0,wf("selectionchange",!1,a))}}function Hp(n,a,i,l){switch(dg(a)){case 2:var f=H2;break;case 8:f=U2;break;default:f=Qf}i=f.bind(null,a,i,n),f=void 0,!Wo||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(a,i,{capture:!0,passive:f}):n.addEventListener(a,i,!0):f!==void 0?n.addEventListener(a,i,{passive:f}):n.addEventListener(a,i,!1)}function If(n,a,i,l,f){var m=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var T=l.tag;if(T===3||T===4){var S=l.stateNode.containerInfo;if(S===f)break;if(T===4)for(T=l.return;T!==null;){var L=T.tag;if((L===3||L===4)&&T.stateNode.containerInfo===f)return;T=T.return}for(;S!==null;){if(T=he(S),T===null)return;if(L=T.tag,L===5||L===6||L===26||L===27){l=m=T;continue e}S=S.parentNode}}l=l.return}j0(function(){var q=m,ae=Zo(i),se=[];e:{var V=gh.get(n);if(V!==void 0){var Z=Ql,Ce=n;switch(n){case"keypress":if(Vl(i)===0)break e;case"keydown":case"keyup":Z=ny;break;case"focusin":Ce="focus",Z=nc;break;case"focusout":Ce="blur",Z=nc;break;case"beforeblur":case"afterblur":Z=nc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=q0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=GT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=iy;break;case dh:case hh:case mh:Z=XT;break;case ph:Z=ly;break;case"scroll":case"scrollend":Z=jT;break;case"wheel":Z=oy;break;case"copy":case"cut":case"paste":Z=KT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=X0;break;case"toggle":case"beforetoggle":Z=fy}var Ie=(a&4)!==0,ft=!Ie&&(n==="scroll"||n==="scrollend"),F=Ie?V!==null?V+"Capture":null:V;Ie=[];for(var B=q,G;B!==null;){var ie=B;if(G=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||G===null||F===null||(ie=fu(B,F),ie!=null&&Ie.push(Gu(B,ie,G))),ft)break;B=B.return}0<Ie.length&&(V=new Z(V,Ce,null,i,ae),se.push({event:V,listeners:Ie}))}}if((a&7)===0){e:{if(V=n==="mouseover"||n==="pointerover",Z=n==="mouseout"||n==="pointerout",V&&i!==Ko&&(Ce=i.relatedTarget||i.fromElement)&&(he(Ce)||Ce[Pa]))break e;if((Z||V)&&(V=ae.window===ae?ae:(V=ae.ownerDocument)?V.defaultView||V.parentWindow:window,Z?(Ce=i.relatedTarget||i.toElement,Z=q,Ce=Ce?he(Ce):null,Ce!==null&&(ft=o(Ce),Ie=Ce.tag,Ce!==ft||Ie!==5&&Ie!==27&&Ie!==6)&&(Ce=null)):(Z=null,Ce=q),Z!==Ce)){if(Ie=q0,ie="onMouseLeave",F="onMouseEnter",B="mouse",(n==="pointerout"||n==="pointerover")&&(Ie=X0,ie="onPointerLeave",F="onPointerEnter",B="pointer"),ft=Z==null?V:it(Z),G=Ce==null?V:it(Ce),V=new Ie(ie,B+"leave",Z,i,ae),V.target=ft,V.relatedTarget=G,ie=null,he(ae)===q&&(Ie=new Ie(F,B+"enter",Ce,i,ae),Ie.target=G,Ie.relatedTarget=ft,ie=Ie),ft=ie,Z&&Ce)t:{for(Ie=c2,F=Z,B=Ce,G=0,ie=F;ie;ie=Ie(ie))G++;ie=0;for(var we=B;we;we=Ie(we))ie++;for(;0<G-ie;)F=Ie(F),G--;for(;0<ie-G;)B=Ie(B),ie--;for(;G--;){if(F===B||B!==null&&F===B.alternate){Ie=F;break t}F=Ie(F),B=Ie(B)}Ie=null}else Ie=null;Z!==null&&Up(se,V,Z,Ie,!1),Ce!==null&&ft!==null&&Up(se,ft,Ce,Ie,!0)}}e:{if(V=q?it(q):window,Z=V.nodeName&&V.nodeName.toLowerCase(),Z==="select"||Z==="input"&&V.type==="file")var nt=th;else if(J0(V))if(nh)nt=Ay;else{nt=Ty;var ke=Ey}else Z=V.nodeName,!Z||Z.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?q&&Qo(q.elementType)&&(nt=th):nt=yy;if(nt&&(nt=nt(n,q))){eh(se,nt,i,ae);break e}ke&&ke(n,V,q),n==="focusout"&&q&&V.type==="number"&&q.memoizedProps.value!=null&&Xo(V,"number",V.value)}switch(ke=q?it(q):window,n){case"focusin":(J0(ke)||ke.contentEditable==="true")&&(mi=ke,sc=q,Tu=null);break;case"focusout":Tu=sc=mi=null;break;case"mousedown":oc=!0;break;case"contextmenu":case"mouseup":case"dragend":oc=!1,ch(se,i,ae);break;case"selectionchange":if(_y)break;case"keydown":case"keyup":ch(se,i,ae)}var Fe;if(rc)e:{switch(n){case"compositionstart":var Je="onCompositionStart";break e;case"compositionend":Je="onCompositionEnd";break e;case"compositionupdate":Je="onCompositionUpdate";break e}Je=void 0}else hi?$0(n,i)&&(Je="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(Je="onCompositionStart");Je&&(Q0&&i.locale!=="ko"&&(hi||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&hi&&(Fe=Y0()):(lr=ae,Jo="value"in lr?lr.value:lr.textContent,hi=!0)),ke=Us(q,Je),0<ke.length&&(Je=new V0(Je,n,null,i,ae),se.push({event:Je,listeners:ke}),Fe?Je.data=Fe:(Fe=W0(i),Fe!==null&&(Je.data=Fe)))),(Fe=hy?my(n,i):py(n,i))&&(Je=Us(q,"onBeforeInput"),0<Je.length&&(ke=new V0("onBeforeInput","beforeinput",null,i,ae),se.push({event:ke,listeners:Je}),ke.data=Fe)),u2(se,n,q,i,ae)}Bp(se,a)})}function Gu(n,a,i){return{instance:n,listener:a,currentTarget:i}}function Us(n,a){for(var i=a+"Capture",l=[];n!==null;){var f=n,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=fu(n,i),f!=null&&l.unshift(Gu(n,f,m)),f=fu(n,a),f!=null&&l.push(Gu(n,f,m))),n.tag===3)return l;n=n.return}return[]}function c2(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Up(n,a,i,l,f){for(var m=a._reactName,T=[];i!==null&&i!==l;){var S=i,L=S.alternate,q=S.stateNode;if(S=S.tag,L!==null&&L===l)break;S!==5&&S!==26&&S!==27||q===null||(L=q,f?(q=fu(i,m),q!=null&&T.unshift(Gu(i,q,L))):f||(q=fu(i,m),q!=null&&T.push(Gu(i,q,L)))),i=i.return}T.length!==0&&n.push({event:a,listeners:T})}var f2=/\r\n?/g,d2=/\u0000|\uFFFD/g;function Pp(n){return(typeof n=="string"?n:""+n).replace(f2,`
9
+ `).replace(d2,"")}function Fp(n,a){return a=Pp(a),Pp(n)===a}function ct(n,a,i,l,f,m){switch(i){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||ci(n,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&ci(n,""+l);break;case"className":jl(n,"class",l);break;case"tabIndex":jl(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":jl(n,i,l);break;case"style":F0(n,l,m);break;case"data":if(a!=="object"){jl(n,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||i!=="href")){n.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(i);break}l=Gl(""+l),n.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(i,"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 m=="function"&&(i==="formAction"?(a!=="input"&&ct(n,a,"name",f.name,f,null),ct(n,a,"formEncType",f.formEncType,f,null),ct(n,a,"formMethod",f.formMethod,f,null),ct(n,a,"formTarget",f.formTarget,f,null)):(ct(n,a,"encType",f.encType,f,null),ct(n,a,"method",f.method,f,null),ct(n,a,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(i);break}l=Gl(""+l),n.setAttribute(i,l);break;case"onClick":l!=null&&(n.onclick=za);break;case"onScroll":l!=null&&Ze("scroll",n);break;case"onScrollEnd":l!=null&&Ze("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(i=l.__html,i!=null){if(f.children!=null)throw Error(u(60));n.innerHTML=i}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}i=Gl(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,""+l):n.removeAttribute(i);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":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":l===!0?n.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,l):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(i,l):n.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(i):n.setAttribute(i,l);break;case"popover":Ze("beforetoggle",n),Ze("toggle",n),zl(n,"popover",l);break;case"xlinkActuate":Fa(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Fa(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Fa(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Fa(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Fa(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Fa(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Fa(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Fa(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Fa(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":zl(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=FT.get(i)||i,zl(n,i,l))}}function Mf(n,a,i,l,f,m){switch(i){case"style":F0(n,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(i=l.__html,i!=null){if(f.children!=null)throw Error(u(60));n.innerHTML=i}}break;case"children":typeof l=="string"?ci(n,l):(typeof l=="number"||typeof l=="bigint")&&ci(n,""+l);break;case"onScroll":l!=null&&Ze("scroll",n);break;case"onScrollEnd":l!=null&&Ze("scrollend",n);break;case"onClick":l!=null&&(n.onclick=za);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jn.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),a=i.slice(2,f?i.length-7:void 0),m=n[St]||null,m=m!=null?m[i]:null,typeof m=="function"&&n.removeEventListener(a,m,f),typeof l=="function")){typeof m!="function"&&m!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(a,l,f);break e}i in n?n[i]=l:l===!0?n.setAttribute(i,""):zl(n,i,l)}}}function fn(n,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",n),Ze("load",n);var l=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var T=i[m];if(T!=null)switch(m){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,a));default:ct(n,a,m,T,i,null)}}f&&ct(n,a,"srcSet",i.srcSet,i,null),l&&ct(n,a,"src",i.src,i,null);return;case"input":Ze("invalid",n);var S=m=T=f=null,L=null,q=null;for(l in i)if(i.hasOwnProperty(l)){var ae=i[l];if(ae!=null)switch(l){case"name":f=ae;break;case"type":T=ae;break;case"checked":L=ae;break;case"defaultChecked":q=ae;break;case"value":m=ae;break;case"defaultValue":S=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(u(137,a));break;default:ct(n,a,l,ae,i,null)}}B0(n,m,S,L,q,T,f,!1);return;case"select":Ze("invalid",n),l=T=m=null;for(f in i)if(i.hasOwnProperty(f)&&(S=i[f],S!=null))switch(f){case"value":m=S;break;case"defaultValue":T=S;break;case"multiple":l=S;default:ct(n,a,f,S,i,null)}a=m,i=T,n.multiple=!!l,a!=null?oi(n,!!l,a,!1):i!=null&&oi(n,!!l,i,!0);return;case"textarea":Ze("invalid",n),m=f=l=null;for(T in i)if(i.hasOwnProperty(T)&&(S=i[T],S!=null))switch(T){case"value":l=S;break;case"defaultValue":f=S;break;case"children":m=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:ct(n,a,T,S,i,null)}U0(n,l,f,m);return;case"option":for(L in i)i.hasOwnProperty(L)&&(l=i[L],l!=null)&&(L==="selected"?n.selected=l&&typeof l!="function"&&typeof l!="symbol":ct(n,a,L,l,i,null));return;case"dialog":Ze("beforetoggle",n),Ze("toggle",n),Ze("cancel",n),Ze("close",n);break;case"iframe":case"object":Ze("load",n);break;case"video":case"audio":for(l=0;l<Yu.length;l++)Ze(Yu[l],n);break;case"image":Ze("error",n),Ze("load",n);break;case"details":Ze("toggle",n);break;case"embed":case"source":case"link":Ze("error",n),Ze("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in i)if(i.hasOwnProperty(q)&&(l=i[q],l!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,a));default:ct(n,a,q,l,i,null)}return;default:if(Qo(a)){for(ae in i)i.hasOwnProperty(ae)&&(l=i[ae],l!==void 0&&Mf(n,a,ae,l,i,void 0));return}}for(S in i)i.hasOwnProperty(S)&&(l=i[S],l!=null&&ct(n,a,S,l,i,null))}function h2(n,a,i,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,T=null,S=null,L=null,q=null,ae=null;for(Z in i){var se=i[Z];if(i.hasOwnProperty(Z)&&se!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":L=se;default:l.hasOwnProperty(Z)||ct(n,a,Z,null,l,se)}}for(var V in l){var Z=l[V];if(se=i[V],l.hasOwnProperty(V)&&(Z!=null||se!=null))switch(V){case"type":m=Z;break;case"name":f=Z;break;case"checked":q=Z;break;case"defaultChecked":ae=Z;break;case"value":T=Z;break;case"defaultValue":S=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(u(137,a));break;default:Z!==se&&ct(n,a,V,Z,l,se)}}Vo(n,T,S,L,q,ae,m,f);return;case"select":Z=T=S=V=null;for(m in i)if(L=i[m],i.hasOwnProperty(m)&&L!=null)switch(m){case"value":break;case"multiple":Z=L;default:l.hasOwnProperty(m)||ct(n,a,m,null,l,L)}for(f in l)if(m=l[f],L=i[f],l.hasOwnProperty(f)&&(m!=null||L!=null))switch(f){case"value":V=m;break;case"defaultValue":S=m;break;case"multiple":T=m;default:m!==L&&ct(n,a,f,m,l,L)}a=S,i=T,l=Z,V!=null?oi(n,!!i,V,!1):!!l!=!!i&&(a!=null?oi(n,!!i,a,!0):oi(n,!!i,i?[]:"",!1));return;case"textarea":Z=V=null;for(S in i)if(f=i[S],i.hasOwnProperty(S)&&f!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:ct(n,a,S,null,l,f)}for(T in l)if(f=l[T],m=i[T],l.hasOwnProperty(T)&&(f!=null||m!=null))switch(T){case"value":V=f;break;case"defaultValue":Z=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(u(91));break;default:f!==m&&ct(n,a,T,f,l,m)}H0(n,V,Z);return;case"option":for(var Ce in i)V=i[Ce],i.hasOwnProperty(Ce)&&V!=null&&!l.hasOwnProperty(Ce)&&(Ce==="selected"?n.selected=!1:ct(n,a,Ce,null,l,V));for(L in l)V=l[L],Z=i[L],l.hasOwnProperty(L)&&V!==Z&&(V!=null||Z!=null)&&(L==="selected"?n.selected=V&&typeof V!="function"&&typeof V!="symbol":ct(n,a,L,V,l,Z));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 i)V=i[Ie],i.hasOwnProperty(Ie)&&V!=null&&!l.hasOwnProperty(Ie)&&ct(n,a,Ie,null,l,V);for(q in l)if(V=l[q],Z=i[q],l.hasOwnProperty(q)&&V!==Z&&(V!=null||Z!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,a));break;default:ct(n,a,q,V,l,Z)}return;default:if(Qo(a)){for(var ft in i)V=i[ft],i.hasOwnProperty(ft)&&V!==void 0&&!l.hasOwnProperty(ft)&&Mf(n,a,ft,void 0,l,V);for(ae in l)V=l[ae],Z=i[ae],!l.hasOwnProperty(ae)||V===Z||V===void 0&&Z===void 0||Mf(n,a,ae,V,l,Z);return}}for(var F in i)V=i[F],i.hasOwnProperty(F)&&V!=null&&!l.hasOwnProperty(F)&&ct(n,a,F,null,l,V);for(se in l)V=l[se],Z=i[se],!l.hasOwnProperty(se)||V===Z||V==null&&Z==null||ct(n,a,se,V,l,Z)}function zp(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function m2(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var f=i[l],m=f.transferSize,T=f.initiatorType,S=f.duration;if(m&&S&&zp(T)){for(T=0,S=f.responseEnd,l+=1;l<i.length;l++){var L=i[l],q=L.startTime;if(q>S)break;var ae=L.transferSize,se=L.initiatorType;ae&&zp(se)&&(L=L.responseEnd,T+=ae*(L<S?1:(S-q)/(L-q)))}if(--l,a+=8*(m+T)/(f.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Bf=null,Hf=null;function Ps(n){return n.nodeType===9?n:n.ownerDocument}function jp(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Yp(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Uf(n,a){return n==="textarea"||n==="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 Pf=null;function p2(){var n=window.event;return n&&n.type==="popstate"?n===Pf?!1:(Pf=n,!0):(Pf=null,!1)}var Gp=typeof setTimeout=="function"?setTimeout:void 0,g2=typeof clearTimeout=="function"?clearTimeout:void 0,qp=typeof Promise=="function"?Promise:void 0,b2=typeof queueMicrotask=="function"?queueMicrotask:typeof qp<"u"?function(n){return qp.resolve(null).then(n).catch(E2)}:Gp;function E2(n){setTimeout(function(){throw n})}function xr(n){return n==="head"}function Vp(n,a){var i=a,l=0;do{var f=i.nextSibling;if(n.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(l===0){n.removeChild(f),zi(a);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")qu(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,qu(i);for(var m=i.firstChild;m;){var T=m.nextSibling,S=m.nodeName;m[Oe]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=T}}else i==="body"&&qu(n.ownerDocument.body);i=f}while(i);zi(a)}function Xp(n,a){var i=n;n=0;do{var l=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(n===0)break;n--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||n++;i=l}while(i)}function Ff(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Ff(i),I(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function T2(n,a,i,l){for(;n.nodeType===1;){var f=i;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Oe])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=sa(n.nextSibling),n===null)break}return null}function y2(n,a,i){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=sa(n.nextSibling),n===null))return null;return n}function Qp(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=sa(n.nextSibling),n===null))return null;return n}function zf(n){return n.data==="$?"||n.data==="$~"}function jf(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function A2(n,a){var i=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||i.readyState!=="loading")a();else{var l=function(){a(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function sa(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var Yf=null;function Kp(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"||i==="/&"){if(a===0)return sa(n.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}n=n.nextSibling}return null}function Zp(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return n;a--}else i!=="/$"&&i!=="/&"||a++}n=n.previousSibling}return null}function $p(n,a,i){switch(a=Ps(i),n){case"html":if(n=a.documentElement,!n)throw Error(u(452));return n;case"head":if(n=a.head,!n)throw Error(u(453));return n;case"body":if(n=a.body,!n)throw Error(u(454));return n;default:throw Error(u(451))}}function qu(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);I(n)}var oa=new Map,Wp=new Set;function Fs(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ar=J.d;J.d={f:S2,r:_2,D:x2,C:C2,L:N2,m:v2,X:k2,S:O2,M:R2};function S2(){var n=ar.f(),a=Ds();return n||a}function _2(n){var a=_e(n);a!==null&&a.tag===5&&a.type==="form"?pm(a):ar.r(n)}var Ui=typeof document>"u"?null:document;function Jp(n,a,i){var l=Ui;if(l&&typeof a=="string"&&a){var f=ta(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Wp.has(f)||(Wp.add(f),n={rel:n,crossOrigin:i,href:a},l.querySelector(f)===null&&(a=l.createElement("link"),fn(a,"link",n),Ye(a),l.head.appendChild(a)))}}function x2(n){ar.D(n),Jp("dns-prefetch",n,null)}function C2(n,a){ar.C(n,a),Jp("preconnect",n,a)}function N2(n,a,i){ar.L(n,a,i);var l=Ui;if(l&&n&&a){var f='link[rel="preload"][as="'+ta(a)+'"]';a==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+ta(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+ta(i.imageSizes)+'"]')):f+='[href="'+ta(n)+'"]';var m=f;switch(a){case"style":m=Pi(n);break;case"script":m=Fi(n)}oa.has(m)||(n=g({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:n,as:a},i),oa.set(m,n),l.querySelector(f)!==null||a==="style"&&l.querySelector(Vu(m))||a==="script"&&l.querySelector(Xu(m))||(a=l.createElement("link"),fn(a,"link",n),Ye(a),l.head.appendChild(a)))}}function v2(n,a){ar.m(n,a);var i=Ui;if(i&&n){var l=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+ta(l)+'"][href="'+ta(n)+'"]',m=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Fi(n)}if(!oa.has(m)&&(n=g({rel:"modulepreload",href:n},a),oa.set(m,n),i.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Xu(m)))return}l=i.createElement("link"),fn(l,"link",n),Ye(l),i.head.appendChild(l)}}}function O2(n,a,i){ar.S(n,a,i);var l=Ui;if(l&&n){var f=vt(l).hoistableStyles,m=Pi(n);a=a||"default";var T=f.get(m);if(!T){var S={loading:0,preload:null};if(T=l.querySelector(Vu(m)))S.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":a},i),(i=oa.get(m))&&Gf(n,i);var L=T=l.createElement("link");Ye(L),fn(L,"link",n),L._p=new Promise(function(q,ae){L.onload=q,L.onerror=ae}),L.addEventListener("load",function(){S.loading|=1}),L.addEventListener("error",function(){S.loading|=2}),S.loading|=4,zs(T,a,l)}T={type:"stylesheet",instance:T,count:1,state:S},f.set(m,T)}}}function k2(n,a){ar.X(n,a);var i=Ui;if(i&&n){var l=vt(i).hoistableScripts,f=Fi(n),m=l.get(f);m||(m=i.querySelector(Xu(f)),m||(n=g({src:n,async:!0},a),(a=oa.get(f))&&qf(n,a),m=i.createElement("script"),Ye(m),fn(m,"link",n),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function R2(n,a){ar.M(n,a);var i=Ui;if(i&&n){var l=vt(i).hoistableScripts,f=Fi(n),m=l.get(f);m||(m=i.querySelector(Xu(f)),m||(n=g({src:n,async:!0,type:"module"},a),(a=oa.get(f))&&qf(n,a),m=i.createElement("script"),Ye(m),fn(m,"link",n),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function eg(n,a,i,l){var f=(f=ye.current)?Fs(f):null;if(!f)throw Error(u(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Pi(i.href),i=vt(f).hoistableStyles,l=i.get(a),l||(l={type:"style",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=Pi(i.href);var m=vt(f).hoistableStyles,T=m.get(n);if(T||(f=f.ownerDocument||f,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,T),(m=f.querySelector(Vu(n)))&&!m._p&&(T.instance=m,T.state.loading=5),oa.has(n)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},oa.set(n,i),m||D2(f,n,i,T.state))),a&&l===null)throw Error(u(528,""));return T}if(a&&l!==null)throw Error(u(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Fi(i),i=vt(f).hoistableScripts,l=i.get(a),l||(l={type:"script",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,n))}}function Pi(n){return'href="'+ta(n)+'"'}function Vu(n){return'link[rel="stylesheet"]['+n+"]"}function tg(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function D2(n,a,i,l){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=n.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),fn(a,"link",i),Ye(a),n.head.appendChild(a))}function Fi(n){return'[src="'+ta(n)+'"]'}function Xu(n){return"script[async]"+n}function ng(n,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var l=n.querySelector('style[data-href~="'+ta(i.href)+'"]');if(l)return a.instance=l,Ye(l),l;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),Ye(l),fn(l,"style",f),zs(l,i.precedence,n),a.instance=l;case"stylesheet":f=Pi(i.href);var m=n.querySelector(Vu(f));if(m)return a.state.loading|=4,a.instance=m,Ye(m),m;l=tg(i),(f=oa.get(f))&&Gf(l,f),m=(n.ownerDocument||n).createElement("link"),Ye(m);var T=m;return T._p=new Promise(function(S,L){T.onload=S,T.onerror=L}),fn(m,"link",l),a.state.loading|=4,zs(m,i.precedence,n),a.instance=m;case"script":return m=Fi(i.src),(f=n.querySelector(Xu(m)))?(a.instance=f,Ye(f),f):(l=i,(f=oa.get(m))&&(l=g({},i),qf(l,f)),n=n.ownerDocument||n,f=n.createElement("script"),Ye(f),fn(f,"link",l),n.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(u(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,zs(l,i.precedence,n));return a.instance}function zs(n,a,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,m=f,T=0;T<l.length;T++){var S=l[T];if(S.dataset.precedence===a)m=S;else if(m!==f)break}m?m.parentNode.insertBefore(n,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(n,a.firstChild))}function Gf(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function qf(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var js=null;function ag(n,a,i){if(js===null){var l=new Map,f=js=new Map;f.set(i,l)}else f=js,l=f.get(i),l||(l=new Map,f.set(i,l));if(l.has(n))return l;for(l.set(n,null),i=i.getElementsByTagName(n),f=0;f<i.length;f++){var m=i[f];if(!(m[Oe]||m[Pt]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var T=m.getAttribute(a)||"";T=n+T;var S=l.get(T);S?S.push(m):l.set(T,[m])}}return l}function rg(n,a,i){n=n.ownerDocument||n,n.head.insertBefore(i,a==="title"?n.querySelector("head > title"):null)}function w2(n,a,i){if(i===1||a.itemProp!=null)return!1;switch(n){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"?(n=a.disabled,typeof a.precedence=="string"&&n==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 ig(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function L2(n,a,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=Pi(l.href),m=a.querySelector(Vu(f));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=Ys.bind(n),a.then(n,n)),i.state.loading|=4,i.instance=m,Ye(m);return}m=a.ownerDocument||a,l=tg(l),(f=oa.get(f))&&Gf(l,f),m=m.createElement("link"),Ye(m);var T=m;T._p=new Promise(function(S,L){T.onload=S,T.onerror=L}),fn(m,"link",l),i.instance=m}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(n.count++,i=Ys.bind(n),a.addEventListener("load",i),a.addEventListener("error",i))}}var Vf=0;function I2(n,a){return n.stylesheets&&n.count===0&&qs(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var l=setTimeout(function(){if(n.stylesheets&&qs(n,n.stylesheets),n.unsuspend){var m=n.unsuspend;n.unsuspend=null,m()}},6e4+a);0<n.imgBytes&&Vf===0&&(Vf=62500*m2());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&qs(n,n.stylesheets),n.unsuspend)){var m=n.unsuspend;n.unsuspend=null,m()}},(n.imgBytes>Vf?50:800)+a);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function Ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qs(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Gs=null;function qs(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Gs=new Map,a.forEach(M2,n),Gs=null,Ys.call(n))}function M2(n,a){if(!(a.state.loading&4)){var i=Gs.get(n);if(i)var l=i.get(null);else{i=new Map,Gs.set(n,i);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var T=f[m];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(i.set(T.dataset.precedence,T),l=T)}l&&i.set(null,l)}f=a.instance,T=f.getAttribute("data-precedence"),m=i.get(T)||l,m===l&&i.set(null,f),i.set(T,f),this.count++,l=Ys.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),m?m.parentNode.insertBefore(f,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),a.state.loading|=4}}var Qu={$$typeof:M,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function B2(n,a,i,l,f,m,T,S,L){this.tag=1,this.containerInfo=n,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=Ca(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ca(0),this.hiddenUpdates=Ca(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function ug(n,a,i,l,f,m,T,S,L,q,ae,se){return n=new B2(n,a,i,T,L,q,ae,se,S),a=1,m===!0&&(a|=24),m=jn(3,null,null,a),n.current=m,m.stateNode=n,a=xc(),a.refCount++,n.pooledCache=a,a.refCount++,m.memoizedState={element:l,isDehydrated:i,cache:a},Oc(m),n}function lg(n){return n?(n=bi,n):bi}function sg(n,a,i,l,f,m){f=lg(f),l.context===null?l.context=f:l.pendingContext=f,l=hr(a),l.payload={element:i},m=m===void 0?null:m,m!==null&&(l.callback=m),i=mr(n,l,a),i!==null&&(Ln(i,n,a),Nu(i,n,a))}function og(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<a?i:a}}function Xf(n,a){og(n,a),(n=n.alternate)&&og(n,a)}function cg(n){if(n.tag===13||n.tag===31){var a=zr(n,67108864);a!==null&&Ln(a,n,67108864),Xf(n,67108864)}}function fg(n){if(n.tag===13||n.tag===31){var a=Xn();a=un(a);var i=zr(n,a);i!==null&&Ln(i,n,a),Xf(n,a)}}var Vs=!0;function H2(n,a,i,l){var f=U.T;U.T=null;var m=J.p;try{J.p=2,Qf(n,a,i,l)}finally{J.p=m,U.T=f}}function U2(n,a,i,l){var f=U.T;U.T=null;var m=J.p;try{J.p=8,Qf(n,a,i,l)}finally{J.p=m,U.T=f}}function Qf(n,a,i,l){if(Vs){var f=Kf(l);if(f===null)If(n,a,l,Xs,i),hg(n,l);else if(F2(f,n,a,i,l))l.stopPropagation();else if(hg(n,l),a&4&&-1<P2.indexOf(n)){for(;f!==null;){var m=_e(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var T=hn(m.pendingLanes);if(T!==0){var S=m;for(S.pendingLanes|=2,S.entangledLanes|=2;T;){var L=1<<31-Qe(T);S.entanglements[1]|=L,T&=~L}Da(m),(rt&6)===0&&(ks=wt()+500,ju(0))}}break;case 31:case 13:S=zr(m,2),S!==null&&Ln(S,m,2),Ds(),Xf(m,2)}if(m=Kf(l),m===null&&If(n,a,l,Xs,i),m===f)break;f=m}f!==null&&l.stopPropagation()}else If(n,a,l,null,i)}}function Kf(n){return n=Zo(n),Zf(n)}var Xs=null;function Zf(n){if(Xs=null,n=he(n),n!==null){var a=o(n);if(a===null)n=null;else{var i=a.tag;if(i===13){if(n=c(a),n!==null)return n;n=null}else if(i===31){if(n=d(a),n!==null)return n;n=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Xs=n,null}function dg(n){switch(n){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(ma()){case W:return 2;case ge:return 8;case De:case He:return 32;case je:return 268435456;default:return 32}default:return 32}}var $f=!1,Cr=null,Nr=null,vr=null,Ku=new Map,Zu=new Map,Or=[],P2="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 hg(n,a){switch(n){case"focusin":case"focusout":Cr=null;break;case"dragenter":case"dragleave":Nr=null;break;case"mouseover":case"mouseout":vr=null;break;case"pointerover":case"pointerout":Ku.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zu.delete(a.pointerId)}}function $u(n,a,i,l,f,m){return n===null||n.nativeEvent!==m?(n={blockedOn:a,domEventName:i,eventSystemFlags:l,nativeEvent:m,targetContainers:[f]},a!==null&&(a=_e(a),a!==null&&cg(a)),n):(n.eventSystemFlags|=l,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function F2(n,a,i,l,f){switch(a){case"focusin":return Cr=$u(Cr,n,a,i,l,f),!0;case"dragenter":return Nr=$u(Nr,n,a,i,l,f),!0;case"mouseover":return vr=$u(vr,n,a,i,l,f),!0;case"pointerover":var m=f.pointerId;return Ku.set(m,$u(Ku.get(m)||null,n,a,i,l,f)),!0;case"gotpointercapture":return m=f.pointerId,Zu.set(m,$u(Zu.get(m)||null,n,a,i,l,f)),!0}return!1}function mg(n){var a=he(n.target);if(a!==null){var i=o(a);if(i!==null){if(a=i.tag,a===13){if(a=c(i),a!==null){n.blockedOn=a,su(n.priority,function(){fg(i)});return}}else if(a===31){if(a=d(i),a!==null){n.blockedOn=a,su(n.priority,function(){fg(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Qs(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var i=Kf(n.nativeEvent);if(i===null){i=n.nativeEvent;var l=new i.constructor(i.type,i);Ko=l,i.target.dispatchEvent(l),Ko=null}else return a=_e(i),a!==null&&cg(a),n.blockedOn=i,!1;a.shift()}return!0}function pg(n,a,i){Qs(n)&&i.delete(a)}function z2(){$f=!1,Cr!==null&&Qs(Cr)&&(Cr=null),Nr!==null&&Qs(Nr)&&(Nr=null),vr!==null&&Qs(vr)&&(vr=null),Ku.forEach(pg),Zu.forEach(pg)}function Ks(n,a){n.blockedOn===a&&(n.blockedOn=null,$f||($f=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,z2)))}var Zs=null;function gg(n){Zs!==n&&(Zs=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Zs===n&&(Zs=null);for(var a=0;a<n.length;a+=3){var i=n[a],l=n[a+1],f=n[a+2];if(typeof l!="function"){if(Zf(l||i)===null)continue;break}var m=_e(i);m!==null&&(n.splice(a,3),a-=3,Qc(m,{pending:!0,data:f,method:i.method,action:l},l,f))}}))}function zi(n){function a(L){return Ks(L,n)}Cr!==null&&Ks(Cr,n),Nr!==null&&Ks(Nr,n),vr!==null&&Ks(vr,n),Ku.forEach(a),Zu.forEach(a);for(var i=0;i<Or.length;i++){var l=Or[i];l.blockedOn===n&&(l.blockedOn=null)}for(;0<Or.length&&(i=Or[0],i.blockedOn===null);)mg(i),i.blockedOn===null&&Or.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var f=i[l],m=i[l+1],T=f[St]||null;if(typeof m=="function")T||gg(i);else if(T){var S=null;if(m&&m.hasAttribute("formAction")){if(f=m,T=m[St]||null)S=T.formAction;else if(Zf(f)!==null)continue}else S=T.action;typeof S=="function"?i[l+1]=S:(i.splice(l,3),l-=3),gg(i)}}}function bg(){function n(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(T){return f=T})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function Wf(n){this._internalRoot=n}$s.prototype.render=Wf.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(u(409));var i=a.current,l=Xn();sg(i,l,n,a,null,null)},$s.prototype.unmount=Wf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;sg(n.current,2,null,n,null,null),Ds(),a[Pa]=null}};function $s(n){this._internalRoot=n}$s.prototype.unstable_scheduleHydration=function(n){if(n){var a=li();n={blockedOn:null,target:n,priority:a};for(var i=0;i<Or.length&&a!==0&&a<Or[i].priority;i++);Or.splice(i,0,n),i===0&&mg(n)}};var Eg=t.version;if(Eg!=="19.2.3")throw Error(u(527,Eg,"19.2.3"));J.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(u(188)):(n=Object.keys(n).join(","),Error(u(268,n)));return n=h(a),n=n!==null?E(n):null,n=n===null?null:n.stateNode,n};var j2={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ws=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ws.isDisabled&&Ws.supportsFiber)try{Ot=Ws.inject(j2),pt=Ws}catch{}}return Ju.createRoot=function(n,a){if(!s(n))throw Error(u(299));var i=!1,l="",f=Cm,m=Nm,T=vm;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(T=a.onRecoverableError)),a=ug(n,1,!1,null,null,i,l,null,f,m,T,bg),n[Pa]=a.current,Lf(n),new Wf(a)},Ju.hydrateRoot=function(n,a,i){if(!s(n))throw Error(u(299));var l=!1,f="",m=Cm,T=Nm,S=vm,L=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(T=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError),i.formState!==void 0&&(L=i.formState)),a=ug(n,1,!0,a,i??null,l,f,L,m,T,S,bg),a.context=lg(null),i=a.current,l=Xn(),l=un(l),f=hr(l),f.callback=null,mr(i,f,l),i=l,a.current.lanes=i,bt(a,i),Da(a),n[Pa]=a.current,Lf(n),new $s(a)},Ju.version="19.2.3",Ju}var Og;function $2(){if(Og)return td.exports;Og=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(),td.exports=Z2(),td.exports}var W2=$2();const J2=Ol(W2);var eA=gb();const tA=Ol(eA);function nA(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const aA=e=>{switch(e){case"success":return uA;case"info":return sA;case"warning":return lA;case"error":return oA;default:return null}},rA=Array(12).fill(0),iA=({visible:e,className:t})=>Te.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Te.createElement("div",{className:"sonner-spinner"},rA.map((r,u)=>Te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${u}`})))),uA=Te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Te.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),lA=Te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Te.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),sA=Te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Te.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),oA=Te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Te.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),cA=Te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Te.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Te.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),fA=()=>{const[e,t]=Te.useState(document.hidden);return Te.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Ld=1;class dA{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:u,...s}=t,o=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Ld++,c=this.toasts.find(p=>p.id===o),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),c?this.toasts=this.toasts.map(p=>p.id===o?(this.publish({...p,...t,id:o,title:u}),{...p,...t,id:o,dismissible:d,title:u}):p):this.addToast({title:u,...s,dismissible:d,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(u=>u({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let u;r.loading!==void 0&&(u=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let o=u!==void 0,c;const d=s.then(async h=>{if(c=["resolve",h],Te.isValidElement(h))o=!1,this.create({id:u,type:"default",message:h});else if(mA(h)&&!h.ok){o=!1;const g=typeof r.error=="function"?await r.error(`HTTP error! status: ${h.status}`):r.error,A=typeof r.description=="function"?await r.description(`HTTP error! status: ${h.status}`):r.description,x=typeof g=="object"&&!Te.isValidElement(g)?g:{message:g};this.create({id:u,type:"error",description:A,...x})}else if(h instanceof Error){o=!1;const g=typeof r.error=="function"?await r.error(h):r.error,A=typeof r.description=="function"?await r.description(h):r.description,x=typeof g=="object"&&!Te.isValidElement(g)?g:{message:g};this.create({id:u,type:"error",description:A,...x})}else if(r.success!==void 0){o=!1;const g=typeof r.success=="function"?await r.success(h):r.success,A=typeof r.description=="function"?await r.description(h):r.description,x=typeof g=="object"&&!Te.isValidElement(g)?g:{message:g};this.create({id:u,type:"success",description:A,...x})}}).catch(async h=>{if(c=["reject",h],r.error!==void 0){o=!1;const E=typeof r.error=="function"?await r.error(h):r.error,g=typeof r.description=="function"?await r.description(h):r.description,y=typeof E=="object"&&!Te.isValidElement(E)?E:{message:E};this.create({id:u,type:"error",description:g,...y})}}).finally(()=>{o&&(this.dismiss(u),u=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((h,E)=>d.then(()=>c[0]==="reject"?E(c[1]):h(c[1])).catch(E));return typeof u!="string"&&typeof u!="number"?{unwrap:p}:Object.assign(u,{unwrap:p})},this.custom=(t,r)=>{const u=r?.id||Ld++;return this.create({jsx:t(u),id:u,...r}),u},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Bn=new dA,hA=(e,t)=>{const r=t?.id||Ld++;return Bn.addToast({title:e,...t,id:r}),r},mA=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",pA=hA,gA=()=>Bn.toasts,bA=()=>Bn.getActiveToasts(),Aa=Object.assign(pA,{success:Bn.success,info:Bn.info,warning:Bn.warning,error:Bn.error,custom:Bn.custom,message:Bn.message,promise:Bn.promise,dismiss:Bn.dismiss,loading:Bn.loading},{getHistory:gA,getToasts:bA});nA("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Js(e){return e.label!==void 0}const EA=3,TA="24px",yA="16px",kg=4e3,AA=356,SA=14,_A=45,xA=200;function wa(...e){return e.filter(Boolean).join(" ")}function CA(e){const[t,r]=e.split("-"),u=[];return t&&u.push(t),r&&u.push(r),u}const NA=e=>{var t,r,u,s,o,c,d,p,h;const{invert:E,toast:g,unstyled:A,interacting:y,setHeights:x,visibleToasts:R,heights:O,index:C,toasts:P,expanded:M,removeToast:Q,defaultRichColors:te,closeButton:H,style:ue,cancelButtonStyle:re,actionButtonStyle:Ae,className:z="",descriptionClassName:le="",duration:ce,position:pe,gap:be,expandByDefault:oe,classNames:U,icons:J,closeButtonAriaLabel:ne="Close toast"}=e,[Re,k]=Te.useState(null),[D,K]=Te.useState(null),[_,X]=Te.useState(!1),[ee,ye]=Te.useState(!1),[Se,xe]=Te.useState(!1),[Be,st]=Te.useState(!1),[Ct,Bt]=Te.useState(!1),[Un,Wt]=Te.useState(0),[dn,Pn]=Te.useState(0),xn=Te.useRef(g.duration||ce||kg),Cn=Te.useRef(null),Dt=Te.useRef(null),Fn=C===0,xa=C+1<=R,Ht=g.type,Zn=g.dismissible!==!1,wt=g.className||"",ma=g.descriptionClassName||"",W=Te.useMemo(()=>O.findIndex(Me=>Me.toastId===g.id)||0,[O,g.id]),ge=Te.useMemo(()=>{var Me;return(Me=g.closeButton)!=null?Me:H},[g.closeButton,H]),De=Te.useMemo(()=>g.duration||ce||kg,[g.duration,ce]),He=Te.useRef(0),je=Te.useRef(0),Ut=Te.useRef(0),qt=Te.useRef(null),[Ot,pt]=pe.split("-"),dt=Te.useMemo(()=>O.reduce((Me,gt,qe)=>qe>=W?Me:Me+gt.height,0),[O,W]),Qe=fA(),Nn=g.invert||E,Vt=Ht==="loading";je.current=Te.useMemo(()=>W*be+dt,[W,dt]),Te.useEffect(()=>{xn.current=De},[De]),Te.useEffect(()=>{X(!0)},[]),Te.useEffect(()=>{const Me=Dt.current;if(Me){const gt=Me.getBoundingClientRect().height;return Pn(gt),x(qe=>[{toastId:g.id,height:gt,position:g.position},...qe]),()=>x(qe=>qe.filter(Nt=>Nt.toastId!==g.id))}},[x,g.id]),Te.useLayoutEffect(()=>{if(!_)return;const Me=Dt.current,gt=Me.style.height;Me.style.height="auto";const qe=Me.getBoundingClientRect().height;Me.style.height=gt,Pn(qe),x(Nt=>Nt.find(bt=>bt.toastId===g.id)?Nt.map(bt=>bt.toastId===g.id?{...bt,height:qe}:bt):[{toastId:g.id,height:qe,position:g.position},...Nt])},[_,g.title,g.description,x,g.id,g.jsx,g.action,g.cancel]);const $n=Te.useCallback(()=>{ye(!0),Wt(je.current),x(Me=>Me.filter(gt=>gt.toastId!==g.id)),setTimeout(()=>{Q(g)},xA)},[g,Q,x,je]);Te.useEffect(()=>{if(g.promise&&Ht==="loading"||g.duration===1/0||g.type==="loading")return;let Me;return M||y||Qe?(()=>{if(Ut.current<He.current){const Nt=new Date().getTime()-He.current;xn.current=xn.current-Nt}Ut.current=new Date().getTime()})():xn.current!==1/0&&(He.current=new Date().getTime(),Me=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),$n()},xn.current)),()=>clearTimeout(Me)},[M,y,g,Ht,Qe,$n]),Te.useEffect(()=>{g.delete&&($n(),g.onDismiss==null||g.onDismiss.call(g,g))},[$n,g.delete]);function pa(){var Me;if(J?.loading){var gt;return Te.createElement("div",{className:wa(U?.loader,g==null||(gt=g.classNames)==null?void 0:gt.loader,"sonner-loader"),"data-visible":Ht==="loading"},J.loading)}return Te.createElement(iA,{className:wa(U?.loader,g==null||(Me=g.classNames)==null?void 0:Me.loader),visible:Ht==="loading"})}const ga=g.icon||J?.[Ht]||aA(Ht);var Ua,hn;return Te.createElement("li",{tabIndex:0,ref:Dt,className:wa(z,wt,U?.toast,g==null||(t=g.classNames)==null?void 0:t.toast,U?.default,U?.[Ht],g==null||(r=g.classNames)==null?void 0:r[Ht]),"data-sonner-toast":"","data-rich-colors":(Ua=g.richColors)!=null?Ua:te,"data-styled":!(g.jsx||g.unstyled||A),"data-mounted":_,"data-promise":!!g.promise,"data-swiped":Ct,"data-removed":ee,"data-visible":xa,"data-y-position":Ot,"data-x-position":pt,"data-index":C,"data-front":Fn,"data-swiping":Se,"data-dismissible":Zn,"data-type":Ht,"data-invert":Nn,"data-swipe-out":Be,"data-swipe-direction":D,"data-expanded":!!(M||oe&&_),"data-testid":g.testId,style:{"--index":C,"--toasts-before":C,"--z-index":P.length-C,"--offset":`${ee?Un:je.current}px`,"--initial-height":oe?"auto":`${dn}px`,...ue,...g.style},onDragEnd:()=>{xe(!1),k(null),qt.current=null},onPointerDown:Me=>{Me.button!==2&&(Vt||!Zn||(Cn.current=new Date,Wt(je.current),Me.target.setPointerCapture(Me.pointerId),Me.target.tagName!=="BUTTON"&&(xe(!0),qt.current={x:Me.clientX,y:Me.clientY})))},onPointerUp:()=>{var Me,gt,qe;if(Be||!Zn)return;qt.current=null;const Nt=Number(((Me=Dt.current)==null?void 0:Me.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ca=Number(((gt=Dt.current)==null?void 0:gt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),bt=new Date().getTime()-((qe=Cn.current)==null?void 0:qe.getTime()),Jt=Re==="x"?Nt:Ca,Na=Math.abs(Jt)/bt;if(Math.abs(Jt)>=_A||Na>.11){Wt(je.current),g.onDismiss==null||g.onDismiss.call(g,g),K(Re==="x"?Nt>0?"right":"left":Ca>0?"down":"up"),$n(),st(!0);return}else{var rn,mn;(rn=Dt.current)==null||rn.style.setProperty("--swipe-amount-x","0px"),(mn=Dt.current)==null||mn.style.setProperty("--swipe-amount-y","0px")}Bt(!1),xe(!1),k(null)},onPointerMove:Me=>{var gt,qe,Nt;if(!qt.current||!Zn||((gt=window.getSelection())==null?void 0:gt.toString().length)>0)return;const bt=Me.clientY-qt.current.y,Jt=Me.clientX-qt.current.x;var Na;const rn=(Na=e.swipeDirections)!=null?Na:CA(pe);!Re&&(Math.abs(Jt)>1||Math.abs(bt)>1)&&k(Math.abs(Jt)>Math.abs(bt)?"x":"y");let mn={x:0,y:0};const un=Xt=>1/(1.5+Math.abs(Xt)/20);if(Re==="y"){if(rn.includes("top")||rn.includes("bottom"))if(rn.includes("top")&&bt<0||rn.includes("bottom")&&bt>0)mn.y=bt;else{const Xt=bt*un(bt);mn.y=Math.abs(Xt)<Math.abs(bt)?Xt:bt}}else if(Re==="x"&&(rn.includes("left")||rn.includes("right")))if(rn.includes("left")&&Jt<0||rn.includes("right")&&Jt>0)mn.x=Jt;else{const Xt=Jt*un(Jt);mn.x=Math.abs(Xt)<Math.abs(Jt)?Xt:Jt}(Math.abs(mn.x)>0||Math.abs(mn.y)>0)&&Bt(!0),(qe=Dt.current)==null||qe.style.setProperty("--swipe-amount-x",`${mn.x}px`),(Nt=Dt.current)==null||Nt.style.setProperty("--swipe-amount-y",`${mn.y}px`)}},ge&&!g.jsx&&Ht!=="loading"?Te.createElement("button",{"aria-label":ne,"data-disabled":Vt,"data-close-button":!0,onClick:Vt||!Zn?()=>{}:()=>{$n(),g.onDismiss==null||g.onDismiss.call(g,g)},className:wa(U?.closeButton,g==null||(u=g.classNames)==null?void 0:u.closeButton)},(hn=J?.close)!=null?hn:cA):null,(Ht||g.icon||g.promise)&&g.icon!==null&&(J?.[Ht]!==null||g.icon)?Te.createElement("div",{"data-icon":"",className:wa(U?.icon,g==null||(s=g.classNames)==null?void 0:s.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||pa():null,g.type!=="loading"?ga:null):null,Te.createElement("div",{"data-content":"",className:wa(U?.content,g==null||(o=g.classNames)==null?void 0:o.content)},Te.createElement("div",{"data-title":"",className:wa(U?.title,g==null||(c=g.classNames)==null?void 0:c.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?Te.createElement("div",{"data-description":"",className:wa(le,ma,U?.description,g==null||(d=g.classNames)==null?void 0:d.description)},typeof g.description=="function"?g.description():g.description):null),Te.isValidElement(g.cancel)?g.cancel:g.cancel&&Js(g.cancel)?Te.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||re,onClick:Me=>{Js(g.cancel)&&Zn&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Me),$n())},className:wa(U?.cancelButton,g==null||(p=g.classNames)==null?void 0:p.cancelButton)},g.cancel.label):null,Te.isValidElement(g.action)?g.action:g.action&&Js(g.action)?Te.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||Ae,onClick:Me=>{Js(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Me),!Me.defaultPrevented&&$n())},className:wa(U?.actionButton,g==null||(h=g.classNames)==null?void 0:h.actionButton)},g.action.label):null)};function Rg(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function vA(e,t){const r={};return[e,t].forEach((u,s)=>{const o=s===1,c=o?"--mobile-offset":"--offset",d=o?yA:TA;function p(h){["top","right","bottom","left"].forEach(E=>{r[`${c}-${E}`]=typeof h=="number"?`${h}px`:h})}typeof u=="number"||typeof u=="string"?p(u):typeof u=="object"?["top","right","bottom","left"].forEach(h=>{u[h]===void 0?r[`${c}-${h}`]=d:r[`${c}-${h}`]=typeof u[h]=="number"?`${u[h]}px`:u[h]}):p(d)}),r}const OA=Te.forwardRef(function(t,r){const{id:u,invert:s,position:o="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:p,className:h,offset:E,mobileOffset:g,theme:A="light",richColors:y,duration:x,style:R,visibleToasts:O=EA,toastOptions:C,dir:P=Rg(),gap:M=SA,icons:Q,containerAriaLabel:te="Notifications"}=t,[H,ue]=Te.useState([]),re=Te.useMemo(()=>u?H.filter(_=>_.toasterId===u):H.filter(_=>!_.toasterId),[H,u]),Ae=Te.useMemo(()=>Array.from(new Set([o].concat(re.filter(_=>_.position).map(_=>_.position)))),[re,o]),[z,le]=Te.useState([]),[ce,pe]=Te.useState(!1),[be,oe]=Te.useState(!1),[U,J]=Te.useState(A!=="system"?A:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ne=Te.useRef(null),Re=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),k=Te.useRef(null),D=Te.useRef(!1),K=Te.useCallback(_=>{ue(X=>{var ee;return(ee=X.find(ye=>ye.id===_.id))!=null&&ee.delete||Bn.dismiss(_.id),X.filter(({id:ye})=>ye!==_.id)})},[]);return Te.useEffect(()=>Bn.subscribe(_=>{if(_.dismiss){requestAnimationFrame(()=>{ue(X=>X.map(ee=>ee.id===_.id?{...ee,delete:!0}:ee))});return}setTimeout(()=>{tA.flushSync(()=>{ue(X=>{const ee=X.findIndex(ye=>ye.id===_.id);return ee!==-1?[...X.slice(0,ee),{...X[ee],..._},...X.slice(ee+1)]:[_,...X]})})})}),[H]),Te.useEffect(()=>{if(A!=="system"){J(A);return}if(A==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?J("dark"):J("light")),typeof window>"u")return;const _=window.matchMedia("(prefers-color-scheme: dark)");try{_.addEventListener("change",({matches:X})=>{J(X?"dark":"light")})}catch{_.addListener(({matches:ee})=>{try{J(ee?"dark":"light")}catch(ye){console.error(ye)}})}},[A]),Te.useEffect(()=>{H.length<=1&&pe(!1)},[H]),Te.useEffect(()=>{const _=X=>{var ee;if(c.every(xe=>X[xe]||X.code===xe)){var Se;pe(!0),(Se=ne.current)==null||Se.focus()}X.code==="Escape"&&(document.activeElement===ne.current||(ee=ne.current)!=null&&ee.contains(document.activeElement))&&pe(!1)};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[c]),Te.useEffect(()=>{if(ne.current)return()=>{k.current&&(k.current.focus({preventScroll:!0}),k.current=null,D.current=!1)}},[ne.current]),Te.createElement("section",{ref:r,"aria-label":`${te} ${Re}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Ae.map((_,X)=>{var ee;const[ye,Se]=_.split("-");return re.length?Te.createElement("ol",{key:_,dir:P==="auto"?Rg():P,tabIndex:-1,ref:ne,className:h,"data-sonner-toaster":!0,"data-sonner-theme":U,"data-y-position":ye,"data-x-position":Se,style:{"--front-toast-height":`${((ee=z[0])==null?void 0:ee.height)||0}px`,"--width":`${AA}px`,"--gap":`${M}px`,...R,...vA(E,g)},onBlur:xe=>{D.current&&!xe.currentTarget.contains(xe.relatedTarget)&&(D.current=!1,k.current&&(k.current.focus({preventScroll:!0}),k.current=null))},onFocus:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||D.current||(D.current=!0,k.current=xe.relatedTarget)},onMouseEnter:()=>pe(!0),onMouseMove:()=>pe(!0),onMouseLeave:()=>{be||pe(!1)},onDragEnd:()=>pe(!1),onPointerDown:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||oe(!0)},onPointerUp:()=>oe(!1)},re.filter(xe=>!xe.position&&X===0||xe.position===_).map((xe,Be)=>{var st,Ct;return Te.createElement(NA,{key:xe.id,icons:Q,index:Be,toast:xe,defaultRichColors:y,duration:(st=C?.duration)!=null?st:x,className:C?.className,descriptionClassName:C?.descriptionClassName,invert:s,visibleToasts:O,closeButton:(Ct=C?.closeButton)!=null?Ct:p,interacting:be,position:_,style:C?.style,unstyled:C?.unstyled,classNames:C?.classNames,cancelButtonStyle:C?.cancelButtonStyle,actionButtonStyle:C?.actionButtonStyle,closeButtonAriaLabel:C?.closeButtonAriaLabel,removeToast:K,toasts:re.filter(Bt=>Bt.position==xe.position),heights:z.filter(Bt=>Bt.position==xe.position),setHeights:le,expandByDefault:d,gap:M,expanded:ce,swipeDirections:t.swipeDirections})})):null}))});function kA({selectedText:e,onSubmit:t,onCancel:r,onCopyRaw:u,onCopyForLLM:s}){const[o,c]=fe.useState(""),d=fe.useRef(null);fe.useEffect(()=>{e&&d.current&&window.matchMedia("(pointer: fine)").matches&&d.current.focus()},[e]),fe.useEffect(()=>{c("")},[e]);const p=()=>{t(o.trim()),c("")},h=E=>{E.key==="Enter"&&E.metaKey&&(E.preventDefault(),p()),E.key==="Escape"&&r()};return e?Y.jsxs("div",{"data-comment-input":!0,className:"border-t border-gray-200 pt-3 pb-2",children:[Y.jsxs("div",{className:"font-serif text-sm text-gray-400 italic mb-2 line-clamp-2",children:['"',e,'"']}),Y.jsx("textarea",{ref:d,value:o,onChange:E=>c(E.target.value),placeholder:"Add your comment...",className:"w-full px-2 py-1.5 text-sm border border-gray-200 resize-none focus:outline-none focus:border-gray-400",rows:2,onKeyDown:h}),Y.jsxs("div",{className:"flex justify-end items-center gap-3 mt-2 text-sm",children:[Y.jsxs("div",{className:"flex gap-1",children:[Y.jsx("button",{type:"button",onClick:u,className:"text-gray-300 hover:text-gray-500 transition-colors",title:"Copy raw text (⌘C)","aria-label":"Copy raw text",children:Y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Y.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),Y.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}),Y.jsx("button",{type:"button",onClick:s,className:"text-gray-300 hover:text-gray-500 transition-colors",title:"Copy with context for LLM (⌘⇧C)","aria-label":"Copy for LLM",children:Y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Y.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),Y.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}),Y.jsx("circle",{cx:"18",cy:"5",r:"3",fill:"currentColor"})]})})]}),Y.jsx("button",{type:"button",onClick:r,className:"text-gray-400 hover:text-gray-600",children:"Cancel"}),Y.jsx("button",{type:"button",onClick:p,className:"text-gray-600 underline hover:text-gray-900",title:"⌘↵",children:o.trim()?"Add Note":"Highlight"})]})]}):null}function bb(e){var t,r,u="";if(typeof e=="string"||typeof e=="number")u+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=bb(e[t]))&&(u&&(u+=" "),u+=r)}else for(r in e)e[r]&&(u&&(u+=" "),u+=r);return u}function Eb(){for(var e,t,r=0,u="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=bb(e))&&(u&&(u+=" "),u+=t);return u}const RA=(e,t)=>{const r=new Array(e.length+t.length);for(let u=0;u<e.length;u++)r[u]=e[u];for(let u=0;u<t.length;u++)r[e.length+u]=t[u];return r},DA=(e,t)=>({classGroupId:e,validator:t}),Tb=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Eo="-",Dg=[],wA="arbitrary..",LA=e=>{const t=MA(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:u}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return IA(c);const d=c.split(Eo),p=d[0]===""&&d.length>1?1:0;return yb(d,p,t)},getConflictingClassGroupIds:(c,d)=>{if(d){const p=u[c],h=r[c];return p?h?RA(h,p):p:h||Dg}return r[c]||Dg}}},yb=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],o=r.nextPart.get(s);if(o){const h=yb(e,t+1,o);if(h)return h}const c=r.validators;if(c===null)return;const d=t===0?e.join(Eo):e.slice(t).join(Eo),p=c.length;for(let h=0;h<p;h++){const E=c[h];if(E.validator(d))return E.classGroupId}},IA=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),u=t.slice(0,r);return u?wA+u:void 0})(),MA=e=>{const{theme:t,classGroups:r}=e;return BA(r,t)},BA=(e,t)=>{const r=Tb();for(const u in e){const s=e[u];i0(s,r,u,t)}return r},i0=(e,t,r,u)=>{const s=e.length;for(let o=0;o<s;o++){const c=e[o];HA(c,t,r,u)}},HA=(e,t,r,u)=>{if(typeof e=="string"){UA(e,t,r);return}if(typeof e=="function"){PA(e,t,r,u);return}FA(e,t,r,u)},UA=(e,t,r)=>{const u=e===""?t:Ab(t,e);u.classGroupId=r},PA=(e,t,r,u)=>{if(zA(e)){i0(e(u),t,r,u);return}t.validators===null&&(t.validators=[]),t.validators.push(DA(r,e))},FA=(e,t,r,u)=>{const s=Object.entries(e),o=s.length;for(let c=0;c<o;c++){const[d,p]=s[c];i0(p,Ab(t,d),r,u)}},Ab=(e,t)=>{let r=e;const u=t.split(Eo),s=u.length;for(let o=0;o<s;o++){const c=u[o];let d=r.nextPart.get(c);d||(d=Tb(),r.nextPart.set(c,d)),r=d}return r},zA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,jA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),u=Object.create(null);const s=(o,c)=>{r[o]=c,t++,t>e&&(t=0,u=r,r=Object.create(null))};return{get(o){let c=r[o];if(c!==void 0)return c;if((c=u[o])!==void 0)return s(o,c),c},set(o,c){o in r?r[o]=c:s(o,c)}}},Id="!",wg=":",YA=[],Lg=(e,t,r,u,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:u,isExternal:s}),GA=e=>{const{prefix:t,experimentalParseClassName:r}=e;let u=s=>{const o=[];let c=0,d=0,p=0,h;const E=s.length;for(let R=0;R<E;R++){const O=s[R];if(c===0&&d===0){if(O===wg){o.push(s.slice(p,R)),p=R+1;continue}if(O==="/"){h=R;continue}}O==="["?c++:O==="]"?c--:O==="("?d++:O===")"&&d--}const g=o.length===0?s:s.slice(p);let A=g,y=!1;g.endsWith(Id)?(A=g.slice(0,-1),y=!0):g.startsWith(Id)&&(A=g.slice(1),y=!0);const x=h&&h>p?h-p:void 0;return Lg(o,y,A,x)};if(t){const s=t+wg,o=u;u=c=>c.startsWith(s)?o(c.slice(s.length)):Lg(YA,!1,c,void 0,!0)}if(r){const s=u;u=o=>r({className:o,parseClassName:s})}return u},qA=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,u)=>{t.set(r,1e6+u)}),r=>{const u=[];let s=[];for(let o=0;o<r.length;o++){const c=r[o],d=c[0]==="[",p=t.has(c);d||p?(s.length>0&&(s.sort(),u.push(...s),s=[]),u.push(c)):s.push(c)}return s.length>0&&(s.sort(),u.push(...s)),u}},VA=e=>({cache:jA(e.cacheSize),parseClassName:GA(e),sortModifiers:qA(e),...LA(e)}),XA=/\s+/,QA=(e,t)=>{const{parseClassName:r,getClassGroupId:u,getConflictingClassGroupIds:s,sortModifiers:o}=t,c=[],d=e.trim().split(XA);let p="";for(let h=d.length-1;h>=0;h-=1){const E=d[h],{isExternal:g,modifiers:A,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:R}=r(E);if(g){p=E+(p.length>0?" "+p:p);continue}let O=!!R,C=u(O?x.substring(0,R):x);if(!C){if(!O){p=E+(p.length>0?" "+p:p);continue}if(C=u(x),!C){p=E+(p.length>0?" "+p:p);continue}O=!1}const P=A.length===0?"":A.length===1?A[0]:o(A).join(":"),M=y?P+Id:P,Q=M+C;if(c.indexOf(Q)>-1)continue;c.push(Q);const te=s(C,O);for(let H=0;H<te.length;++H){const ue=te[H];c.push(M+ue)}p=E+(p.length>0?" "+p:p)}return p},KA=(...e)=>{let t=0,r,u,s="";for(;t<e.length;)(r=e[t++])&&(u=Sb(r))&&(s&&(s+=" "),s+=u);return s},Sb=e=>{if(typeof e=="string")return e;let t,r="";for(let u=0;u<e.length;u++)e[u]&&(t=Sb(e[u]))&&(r&&(r+=" "),r+=t);return r},ZA=(e,...t)=>{let r,u,s,o;const c=p=>{const h=t.reduce((E,g)=>g(E),e());return r=VA(h),u=r.cache.get,s=r.cache.set,o=d,d(p)},d=p=>{const h=u(p);if(h)return h;const E=QA(p,r);return s(p,E),E};return o=c,(...p)=>o(KA(...p))},$A=[],Zt=e=>{const t=r=>r[e]||$A;return t.isThemeGetter=!0,t},_b=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,WA=/^\d+\/\d+$/,JA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eS=/\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$/,tS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ji=e=>WA.test(e),Ge=e=>!!e&&!Number.isNaN(Number(e)),Rr=e=>!!e&&Number.isInteger(Number(e)),id=e=>e.endsWith("%")&&Ge(e.slice(0,-1)),rr=e=>JA.test(e),rS=()=>!0,iS=e=>eS.test(e)&&!tS.test(e),Cb=()=>!1,uS=e=>nS.test(e),lS=e=>aS.test(e),sS=e=>!Ne(e)&&!ve(e),oS=e=>eu(e,Ob,Cb),Ne=e=>_b.test(e),ei=e=>eu(e,kb,iS),ud=e=>eu(e,mS,Ge),Ig=e=>eu(e,Nb,Cb),cS=e=>eu(e,vb,lS),eo=e=>eu(e,Rb,uS),ve=e=>xb.test(e),el=e=>tu(e,kb),fS=e=>tu(e,pS),Mg=e=>tu(e,Nb),dS=e=>tu(e,Ob),hS=e=>tu(e,vb),to=e=>tu(e,Rb,!0),eu=(e,t,r)=>{const u=_b.exec(e);return u?u[1]?t(u[1]):r(u[2]):!1},tu=(e,t,r=!1)=>{const u=xb.exec(e);return u?u[1]?t(u[1]):r:!1},Nb=e=>e==="position"||e==="percentage",vb=e=>e==="image"||e==="url",Ob=e=>e==="length"||e==="size"||e==="bg-size",kb=e=>e==="length",mS=e=>e==="number",pS=e=>e==="family-name",Rb=e=>e==="shadow",gS=()=>{const e=Zt("color"),t=Zt("font"),r=Zt("text"),u=Zt("font-weight"),s=Zt("tracking"),o=Zt("leading"),c=Zt("breakpoint"),d=Zt("container"),p=Zt("spacing"),h=Zt("radius"),E=Zt("shadow"),g=Zt("inset-shadow"),A=Zt("text-shadow"),y=Zt("drop-shadow"),x=Zt("blur"),R=Zt("perspective"),O=Zt("aspect"),C=Zt("ease"),P=Zt("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],te=()=>[...Q(),ve,Ne],H=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto","contain","none"],re=()=>[ve,Ne,p],Ae=()=>[ji,"full","auto",...re()],z=()=>[Rr,"none","subgrid",ve,Ne],le=()=>["auto",{span:["full",Rr,ve,Ne]},Rr,ve,Ne],ce=()=>[Rr,"auto",ve,Ne],pe=()=>["auto","min","max","fr",ve,Ne],be=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...re()],J=()=>[ji,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...re()],ne=()=>[e,ve,Ne],Re=()=>[...Q(),Mg,Ig,{position:[ve,Ne]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",dS,oS,{size:[ve,Ne]}],K=()=>[id,el,ei],_=()=>["","none","full",h,ve,Ne],X=()=>["",Ge,el,ei],ee=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[Ge,id,Mg,Ig],xe=()=>["","none",x,ve,Ne],Be=()=>["none",Ge,ve,Ne],st=()=>["none",Ge,ve,Ne],Ct=()=>[Ge,ve,Ne],Bt=()=>[ji,"full",...re()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rr],breakpoint:[rr],color:[rS],container:[rr],"drop-shadow":[rr],ease:["in","out","in-out"],font:[sS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rr],shadow:[rr],spacing:["px",Ge],text:[rr],"text-shadow":[rr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ji,Ne,ve,O]}],container:["container"],columns:[{columns:[Ge,Ne,ve,d]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:te()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:ue()}],"overscroll-x":[{"overscroll-x":ue()}],"overscroll-y":[{"overscroll-y":ue()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Ae()}],"inset-x":[{"inset-x":Ae()}],"inset-y":[{"inset-y":Ae()}],start:[{start:Ae()}],end:[{end:Ae()}],top:[{top:Ae()}],right:[{right:Ae()}],bottom:[{bottom:Ae()}],left:[{left:Ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Rr,"auto",ve,Ne]}],basis:[{basis:[ji,"full","auto",d,...re()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ge,ji,"auto","initial","none",Ne]}],grow:[{grow:["",Ge,ve,Ne]}],shrink:[{shrink:["",Ge,ve,Ne]}],order:[{order:[Rr,"first","last","none",ve,Ne]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:re()}],"gap-x":[{"gap-x":re()}],"gap-y":[{"gap-y":re()}],"justify-content":[{justify:[...be(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...be()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":be()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:re()}],px:[{px:re()}],py:[{py:re()}],ps:[{ps:re()}],pe:[{pe:re()}],pt:[{pt:re()}],pr:[{pr:re()}],pb:[{pb:re()}],pl:[{pl:re()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":re()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":re()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[d,"screen",...J()]}],"min-w":[{"min-w":[d,"screen","none",...J()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",r,el,ei]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,ve,ud]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",id,Ne]}],"font-family":[{font:[fS,Ne,t]}],"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,ve,Ne]}],"line-clamp":[{"line-clamp":[Ge,"none",ve,ud]}],leading:[{leading:[o,...re()]}],"list-image":[{"list-image":["none",ve,Ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,Ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ne()}],"text-color":[{text:ne()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ge,"from-font","auto",ve,ei]}],"text-decoration-color":[{decoration:ne()}],"underline-offset":[{"underline-offset":[Ge,"auto",ve,Ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:re()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,Ne]}],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",ve,Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Re()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rr,ve,Ne],radial:["",ve,Ne],conic:[Rr,ve,Ne]},hS,cS]}],"bg-color":[{bg:ne()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:ne()}],"gradient-via":[{via:ne()}],"gradient-to":[{to:ne()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:ne()}],"border-color-x":[{"border-x":ne()}],"border-color-y":[{"border-y":ne()}],"border-color-s":[{"border-s":ne()}],"border-color-e":[{"border-e":ne()}],"border-color-t":[{"border-t":ne()}],"border-color-r":[{"border-r":ne()}],"border-color-b":[{"border-b":ne()}],"border-color-l":[{"border-l":ne()}],"divide-color":[{divide:ne()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ge,ve,Ne]}],"outline-w":[{outline:["",Ge,el,ei]}],"outline-color":[{outline:ne()}],shadow:[{shadow:["","none",E,to,eo]}],"shadow-color":[{shadow:ne()}],"inset-shadow":[{"inset-shadow":["none",g,to,eo]}],"inset-shadow-color":[{"inset-shadow":ne()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ne()}],"ring-offset-w":[{"ring-offset":[Ge,ei]}],"ring-offset-color":[{"ring-offset":ne()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":ne()}],"text-shadow":[{"text-shadow":["none",A,to,eo]}],"text-shadow-color":[{"text-shadow":ne()}],opacity:[{opacity:[Ge,ve,Ne]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"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":[Ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":ne()}],"mask-image-linear-to-color":[{"mask-linear-to":ne()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":ne()}],"mask-image-t-to-color":[{"mask-t-to":ne()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":ne()}],"mask-image-r-to-color":[{"mask-r-to":ne()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":ne()}],"mask-image-b-to-color":[{"mask-b-to":ne()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":ne()}],"mask-image-l-to-color":[{"mask-l-to":ne()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":ne()}],"mask-image-x-to-color":[{"mask-x-to":ne()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":ne()}],"mask-image-y-to-color":[{"mask-y-to":ne()}],"mask-image-radial":[{"mask-radial":[ve,Ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":ne()}],"mask-image-radial-to-color":[{"mask-radial-to":ne()}],"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":Q()}],"mask-image-conic-pos":[{"mask-conic":[Ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":ne()}],"mask-image-conic-to-color":[{"mask-conic-to":ne()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Re()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,Ne]}],filter:[{filter:["","none",ve,Ne]}],blur:[{blur:xe()}],brightness:[{brightness:[Ge,ve,Ne]}],contrast:[{contrast:[Ge,ve,Ne]}],"drop-shadow":[{"drop-shadow":["","none",y,to,eo]}],"drop-shadow-color":[{"drop-shadow":ne()}],grayscale:[{grayscale:["",Ge,ve,Ne]}],"hue-rotate":[{"hue-rotate":[Ge,ve,Ne]}],invert:[{invert:["",Ge,ve,Ne]}],saturate:[{saturate:[Ge,ve,Ne]}],sepia:[{sepia:["",Ge,ve,Ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,Ne]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[Ge,ve,Ne]}],"backdrop-contrast":[{"backdrop-contrast":[Ge,ve,Ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ge,ve,Ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ge,ve,Ne]}],"backdrop-invert":[{"backdrop-invert":["",Ge,ve,Ne]}],"backdrop-opacity":[{"backdrop-opacity":[Ge,ve,Ne]}],"backdrop-saturate":[{"backdrop-saturate":[Ge,ve,Ne]}],"backdrop-sepia":[{"backdrop-sepia":["",Ge,ve,Ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":re()}],"border-spacing-x":[{"border-spacing-x":re()}],"border-spacing-y":[{"border-spacing-y":re()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,Ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ge,"initial",ve,Ne]}],ease:[{ease:["linear","initial",C,ve,Ne]}],delay:[{delay:[Ge,ve,Ne]}],animate:[{animate:["none",P,ve,Ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,ve,Ne]}],"perspective-origin":[{"perspective-origin":te()}],rotate:[{rotate:Be()}],"rotate-x":[{"rotate-x":Be()}],"rotate-y":[{"rotate-y":Be()}],"rotate-z":[{"rotate-z":Be()}],scale:[{scale:st()}],"scale-x":[{"scale-x":st()}],"scale-y":[{"scale-y":st()}],"scale-z":[{"scale-z":st()}],"scale-3d":["scale-3d"],skew:[{skew:Ct()}],"skew-x":[{"skew-x":Ct()}],"skew-y":[{"skew-y":Ct()}],transform:[{transform:[ve,Ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:te()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Bt()}],"translate-x":[{"translate-x":Bt()}],"translate-y":[{"translate-y":Bt()}],"translate-z":[{"translate-z":Bt()}],"translate-none":["translate-none"],accent:[{accent:ne()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ne()}],"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",ve,Ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":re()}],"scroll-mx":[{"scroll-mx":re()}],"scroll-my":[{"scroll-my":re()}],"scroll-ms":[{"scroll-ms":re()}],"scroll-me":[{"scroll-me":re()}],"scroll-mt":[{"scroll-mt":re()}],"scroll-mr":[{"scroll-mr":re()}],"scroll-mb":[{"scroll-mb":re()}],"scroll-ml":[{"scroll-ml":re()}],"scroll-p":[{"scroll-p":re()}],"scroll-px":[{"scroll-px":re()}],"scroll-py":[{"scroll-py":re()}],"scroll-ps":[{"scroll-ps":re()}],"scroll-pe":[{"scroll-pe":re()}],"scroll-pt":[{"scroll-pt":re()}],"scroll-pr":[{"scroll-pr":re()}],"scroll-pb":[{"scroll-pb":re()}],"scroll-pl":[{"scroll-pl":re()}],"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",ve,Ne]}],fill:[{fill:["none",...ne()]}],"stroke-w":[{stroke:[Ge,el,ei,ud]}],stroke:[{stroke:["none",...ne()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bS=ZA(gS);function da(...e){return bS(Eb(e))}function Md(e){return typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Md).join(""):typeof e=="object"&&e!==null&&"props"in e?Md(e.props.children):""}function ES(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}function TS({comment:e,onEdit:t,onDelete:r,onGoTo:u,onReanchor:s}){const[o,c]=fe.useState(!1),[d,p]=fe.useState(e.comment),h=fe.useRef(null),E=e.anchorConfidence==="unresolved",g=!E;fe.useEffect(()=>{o&&h.current&&h.current.focus()},[o]);const A=()=>{d.trim()&&(t(e.id,d),c(!1))},y=()=>{p(e.comment),c(!1)};return Y.jsxs("div",{className:da("group px-3 py-2 border-b border-gray-100 last:border-b-0",E&&"opacity-50"),children:[Y.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[Y.jsxs("span",{className:"font-serif text-sm text-gray-400 italic line-clamp-1",children:['"',e.selectedText,'"']}),E&&Y.jsx("span",{className:"text-xs text-gray-400 shrink-0",children:"· unresolved"})]}),o?Y.jsxs("div",{className:"space-y-2",children:[Y.jsx("textarea",{ref:h,value:d,onChange:x=>p(x.target.value),className:"w-full px-2 py-1.5 text-sm border border-gray-200 resize-none focus:outline-none focus:border-gray-400 font-serif",rows:2,onKeyDown:x=>{x.key==="Enter"&&x.metaKey&&A(),x.key==="Escape"&&y()}}),Y.jsxs("div",{className:"flex gap-3 text-sm",children:[Y.jsx("button",{type:"button",onClick:A,className:"text-gray-600 hover:text-gray-900",children:"Save"}),Y.jsx("button",{type:"button",onClick:y,className:"text-gray-400 hover:text-gray-600",children:"Cancel"})]})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx("p",{className:"font-serif text-sm text-gray-600 line-clamp-2",children:e.comment}),Y.jsxs("div",{className:"flex gap-3 mt-1.5 opacity-0 group-hover:opacity-100 transition-opacity text-xs",children:[Y.jsx("button",{type:"button",onClick:()=>c(!0),className:"text-gray-400 hover:text-gray-600",children:"Edit"}),Y.jsx("button",{type:"button",onClick:()=>r(e.id),className:"text-gray-400 hover:text-gray-600",children:"Delete"}),g&&Y.jsx("button",{type:"button",onClick:()=>u(e.id),className:"text-gray-400 hover:text-gray-600",children:"Go to"}),E&&s&&Y.jsx("button",{type:"button",onClick:()=>s(e.id),className:"text-gray-400 hover:text-gray-600",children:"Re-anchor"})]})]})]})}function yS({comments:e,onEdit:t,onDelete:r,onGoTo:u,onReanchor:s,onClose:o}){const c=e.filter(g=>g.anchorConfidence==="unresolved").length,d=e.length-c,p=[...e].sort((g,A)=>{const y=g.anchorConfidence==="unresolved",x=A.anchorConfidence==="unresolved";return y===x?0:y?1:-1}),h=g=>{u(g),o()},E=g=>{s?.(g),o()};return Y.jsxs("div",{className:"absolute right-0 top-full mt-1 bg-white rounded-lg shadow-lg shadow-gray-200/50 border border-gray-100 w-80 max-h-96 overflow-hidden animate-in",role:"dialog","aria-label":"Comment manager",children:[Y.jsxs("div",{className:"px-3 py-2 border-b border-gray-100 text-xs text-gray-400",children:[d,c>0&&Y.jsxs("span",{children:[" · ",c," unresolved"]})]}),Y.jsx("div",{className:"overflow-y-auto max-h-80",children:p.length===0?Y.jsx("div",{className:"px-3 py-4 text-sm text-gray-400 text-center",children:"No comments yet"}):p.map(g=>Y.jsx(TS,{comment:g,onEdit:t,onDelete:r,onGoTo:h,onReanchor:s?E:void 0},g.id))})]})}const AS=48,Yi=150,Bg=160,SS=AS;function _S({sortedComments:e,documentPositions:t,documentHeight:r,viewportHeight:u,hoveredCommentId:s,onCommentClick:o}){if(e.length===0||r===0)return null;const c=u-SS;return Y.jsx("div",{className:"fixed right-0 top-12 w-3 z-40",style:{height:c},children:e.map(d=>{const p=t[d.id];if(p===void 0)return null;const h=p/r*c,E=s===d.id;return Y.jsx("button",{type:"button",className:da("absolute left-0 right-0 h-1.5 rounded-l transition-all duration-150 cursor-pointer",E?"bg-amber-500 w-4 -translate-x-1":"bg-amber-500 hover:bg-amber-600 hover:w-4 hover:-translate-x-1"),style:{top:Math.max(0,Math.min(h,c-6))},onClick:()=>o(d.id),title:`"${d.selectedText.slice(0,30)}${d.selectedText.length>30?"...":""}"`},d.id)})})}const xS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),CS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,u)=>u?u.toUpperCase():r.toLowerCase()),Hg=e=>{const t=CS(e);return t.charAt(0).toUpperCase()+t.slice(1)},Db=(...e)=>e.filter((t,r,u)=>!!t&&t.trim()!==""&&u.indexOf(t)===r).join(" ").trim(),NS=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var vS={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 OS=fe.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:s="",children:o,iconNode:c,...d},p)=>fe.createElement("svg",{ref:p,...vS,width:t,height:t,stroke:e,strokeWidth:u?Number(r)*24/Number(t):r,className:Db("lucide",s),...!o&&!NS(d)&&{"aria-hidden":"true"},...d},[...c.map(([h,E])=>fe.createElement(h,E)),...Array.isArray(o)?o:[o]]));const kl=(e,t)=>{const r=fe.forwardRef(({className:u,...s},o)=>fe.createElement(OS,{ref:o,iconNode:t,className:Db(`lucide-${xS(Hg(e))}`,`lucide-${e}`,u),...s}));return r.displayName=Hg(e),r};const kS=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],RS=kl("chevron-left",kS);const DS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wS=kl("chevron-right",DS);const LS=[["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"}]],IS=kl("copy",LS);const MS=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],BS=kl("ellipsis",MS);const HS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],US=kl("x",HS);function PS({currentIndex:e,totalComments:t,onPrevious:r,onNext:u}){const[s,o]=fe.useState(!1),[c,d]=fe.useState(null);if(t<=1)return null;const p=()=>{d("prev"),r(),setTimeout(()=>d(null),200)},h=()=>{d("next"),u(),setTimeout(()=>d(null),200)};return Y.jsx("fieldset",{className:"fixed bottom-6 left-1/2 -translate-x-1/2 z-40",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:Y.jsxs("div",{className:da("inline-flex items-center gap-1 h-9 px-3 rounded-full","bg-white/90 backdrop-blur-md shadow-lg border border-gray-200/60","transition-all duration-300 ease-out",s?"opacity-100":"opacity-0"),children:[Y.jsx("button",{type:"button",onClick:p,className:da("w-7 h-7 flex items-center justify-center rounded-full transition-all duration-150","text-gray-400 hover:text-gray-600 hover:bg-gray-100",c==="prev"&&"scale-90 bg-gray-100 text-gray-600"),title:"Previous comment (Alt+↑)",children:Y.jsx(RS,{className:"w-4 h-4"})}),Y.jsxs("span",{className:da("px-3 text-sm tabular-nums text-gray-500 select-none min-w-[4rem] text-center","transition-transform duration-200 ease-out",c==="prev"&&"-translate-x-0.5",c==="next"&&"translate-x-0.5"),children:[e+1," of ",t]}),Y.jsx("button",{type:"button",onClick:h,className:da("w-7 h-7 flex items-center justify-center rounded-full transition-all duration-150","text-gray-400 hover:text-gray-600 hover:bg-gray-100",c==="next"&&"scale-90 bg-gray-100 text-gray-600"),title:"Next comment (Alt+↓)",children:Y.jsx(wS,{className:"w-4 h-4"})})]})})}function Ug(e){const t=[],r=String(e||"");let u=r.indexOf(","),s=0,o=!1;for(;!o;){u===-1&&(u=r.length,o=!0);const c=r.slice(s,u).trim();(c||!o)&&t.push(c),s=u+1,u=r.indexOf(",",s)}return t}function wb(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const FS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jS={};function Pg(e,t){return(jS.jsx?zS:FS).test(e)}const YS=/[ \t\n\f\r]/g;function GS(e){return typeof e=="object"?e.type==="text"?Fg(e.value):!1:Fg(e)}function Fg(e){return e.replace(YS,"")===""}class Rl{constructor(t,r,u){this.normal=r,this.property=t,u&&(this.space=u)}}Rl.prototype.normal={};Rl.prototype.property={};Rl.prototype.space=void 0;function Lb(e,t){const r={},u={};for(const s of e)Object.assign(r,s.property),Object.assign(u,s.normal);return new Rl(r,u,t)}function Sl(e){return e.toLowerCase()}class Hn{constructor(t,r){this.attribute=r,this.property=t}}Hn.prototype.attribute="";Hn.prototype.booleanish=!1;Hn.prototype.boolean=!1;Hn.prototype.commaOrSpaceSeparated=!1;Hn.prototype.commaSeparated=!1;Hn.prototype.defined=!1;Hn.prototype.mustUseProperty=!1;Hn.prototype.number=!1;Hn.prototype.overloadedBoolean=!1;Hn.prototype.property="";Hn.prototype.spaceSeparated=!1;Hn.prototype.space=void 0;let qS=0;const ze=ii(),Gt=ii(),Bd=ii(),Ee=ii(),Et=ii(),Zi=ii(),Qn=ii();function ii(){return 2**++qS}const Hd=Object.freeze(Object.defineProperty({__proto__:null,boolean:ze,booleanish:Gt,commaOrSpaceSeparated:Qn,commaSeparated:Zi,number:Ee,overloadedBoolean:Bd,spaceSeparated:Et},Symbol.toStringTag,{value:"Module"})),ld=Object.keys(Hd);class u0 extends Hn{constructor(t,r,u,s){let o=-1;if(super(t,r),zg(this,"space",s),typeof u=="number")for(;++o<ld.length;){const c=ld[o];zg(this,ld[o],(u&Hd[c])===Hd[c])}}}u0.prototype.defined=!0;function zg(e,t,r){r&&(e[t]=r)}function nu(e){const t={},r={};for(const[u,s]of Object.entries(e.properties)){const o=new u0(u,e.transform(e.attributes||{},u),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(u)&&(o.mustUseProperty=!0),t[u]=o,r[Sl(u)]=u,r[Sl(o.attribute)]=u}return new Rl(t,r,e.space)}const Ib=nu({properties:{ariaActiveDescendant:null,ariaAtomic:Gt,ariaAutoComplete:null,ariaBusy:Gt,ariaChecked:Gt,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:Et,ariaCurrent:null,ariaDescribedBy:Et,ariaDetails:null,ariaDisabled:Gt,ariaDropEffect:Et,ariaErrorMessage:null,ariaExpanded:Gt,ariaFlowTo:Et,ariaGrabbed:Gt,ariaHasPopup:null,ariaHidden:Gt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Et,ariaLevel:Ee,ariaLive:null,ariaModal:Gt,ariaMultiLine:Gt,ariaMultiSelectable:Gt,ariaOrientation:null,ariaOwns:Et,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Gt,ariaReadOnly:Gt,ariaRelevant:null,ariaRequired:Gt,ariaRoleDescription:Et,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Gt,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 Mb(e,t){return t in e?e[t]:t}function Bb(e,t){return Mb(e,t.toLowerCase())}const VS=nu({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zi,acceptCharset:Et,accessKey:Et,action:null,allow:null,allowFullScreen:ze,allowPaymentRequest:ze,allowUserMedia:ze,alt:null,as:null,async:ze,autoCapitalize:null,autoComplete:Et,autoFocus:ze,autoPlay:ze,blocking:Et,capture:null,charSet:null,checked:ze,cite:null,className:Et,cols:Ee,colSpan:null,content:null,contentEditable:Gt,controls:ze,controlsList:Et,coords:Ee|Zi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ze,defer:ze,dir:null,dirName:null,disabled:ze,download:Bd,draggable:Gt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ze,formTarget:null,headers:Et,height:Ee,hidden:Bd,high:Ee,href:null,hrefLang:null,htmlFor:Et,httpEquiv:Et,id:null,imageSizes:null,imageSrcSet:null,inert:ze,inputMode:null,integrity:null,is:null,isMap:ze,itemId:null,itemProp:Et,itemRef:Et,itemScope:ze,itemType:Et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ze,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:ze,muted:ze,name:null,nonce:null,noModule:ze,noValidate:ze,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:ze,optimum:Ee,pattern:null,ping:Et,placeholder:null,playsInline:ze,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ze,referrerPolicy:null,rel:Et,required:ze,reversed:ze,rows:Ee,rowSpan:Ee,sandbox:Et,scope:null,scoped:ze,seamless:ze,selected:ze,shadowRootClonable:ze,shadowRootDelegatesFocus:ze,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Gt,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:ze,useMap:null,value:Gt,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Et,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:ze,declare:ze,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:ze,noHref:ze,noShade:ze,noWrap:ze,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Gt,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ze,disableRemotePlayback:ze,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:Bb}),XS=nu({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",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:Qn,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:Et,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:ze,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:Zi,g2:Zi,glyphName:Zi,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:Qn,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,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:Et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qn,rev:Qn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qn,requiredFeatures:Qn,requiredFonts:Qn,requiredFormats:Qn,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:Qn,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:Qn,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:Qn,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:Mb}),Hb=nu({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()}}),Ub=nu({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Bb}),Pb=nu({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),QS={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"},KS=/[A-Z]/g,jg=/-[a-z]/g,ZS=/^data[-\w.:]+$/i;function Co(e,t){const r=Sl(t);let u=t,s=Hn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ZS.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(jg,WS);u="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!jg.test(o)){let c=o.replace(KS,$S);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=u0}return new s(u,t)}function $S(e){return"-"+e.toLowerCase()}function WS(e){return e.charAt(1).toUpperCase()}const Dl=Lb([Ib,VS,Hb,Ub,Pb],"html"),Br=Lb([Ib,XS,Hb,Ub,Pb],"svg");function Yg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Fb(e){return e.join(" ").trim()}var Gi={},sd,Gg;function JS(){if(Gg)return sd;Gg=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
10
+ `,h="/",E="*",g="",A="comment",y="declaration";function x(O,C){if(typeof O!="string")throw new TypeError("First argument must be a string");if(!O)return[];C=C||{};var P=1,M=1;function Q(be){var oe=be.match(t);oe&&(P+=oe.length);var U=be.lastIndexOf(p);M=~U?be.length-U:M+be.length}function te(){var be={line:P,column:M};return function(oe){return oe.position=new H(be),Ae(),oe}}function H(be){this.start=be,this.end={line:P,column:M},this.source=C.source}H.prototype.content=O;function ue(be){var oe=new Error(C.source+":"+P+":"+M+": "+be);if(oe.reason=be,oe.filename=C.source,oe.line=P,oe.column=M,oe.source=O,!C.silent)throw oe}function re(be){var oe=be.exec(O);if(oe){var U=oe[0];return Q(U),O=O.slice(U.length),oe}}function Ae(){re(r)}function z(be){var oe;for(be=be||[];oe=le();)oe!==!1&&be.push(oe);return be}function le(){var be=te();if(!(h!=O.charAt(0)||E!=O.charAt(1))){for(var oe=2;g!=O.charAt(oe)&&(E!=O.charAt(oe)||h!=O.charAt(oe+1));)++oe;if(oe+=2,g===O.charAt(oe-1))return ue("End of comment missing");var U=O.slice(2,oe-2);return M+=2,Q(U),O=O.slice(oe),M+=2,be({type:A,comment:U})}}function ce(){var be=te(),oe=re(u);if(oe){if(le(),!re(s))return ue("property missing ':'");var U=re(o),J=be({type:y,property:R(oe[0].replace(e,g)),value:U?R(U[0].replace(e,g)):g});return re(c),J}}function pe(){var be=[];z(be);for(var oe;oe=ce();)oe!==!1&&(be.push(oe),z(be));return be}return Ae(),pe()}function R(O){return O?O.replace(d,g):g}return sd=x,sd}var qg;function e_(){if(qg)return Gi;qg=1;var e=Gi&&Gi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=r;const t=e(JS());function r(u,s){let o=null;if(!u||typeof u!="string")return o;const c=(0,t.default)(u),d=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:h,value:E}=p;d?s(h,E,p):E&&(o=o||{},o[h]=E)}),o}return Gi}var tl={},Vg;function t_(){if(Vg)return tl;Vg=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(h){return!h||r.test(h)||e.test(h)},c=function(h,E){return E.toUpperCase()},d=function(h,E){return"".concat(E,"-")},p=function(h,E){return E===void 0&&(E={}),o(h)?h:(h=h.toLowerCase(),E.reactCompat?h=h.replace(s,d):h=h.replace(u,d),h.replace(t,c))};return tl.camelCase=p,tl}var nl,Xg;function n_(){if(Xg)return nl;Xg=1;var e=nl&&nl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(e_()),r=t_();function u(s,o){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(d,p){d&&p&&(c[(0,r.camelCase)(d,o)]=p)}),c}return u.default=u,nl=u,nl}var a_=n_();const r_=Ol(a_),No=zb("end"),Ba=zb("start");function zb(e){return t;function t(r){const u=r&&r.position&&r.position[e]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function i_(e){const t=Ba(e),r=No(e);if(t&&r)return{start:t,end:r}}function hl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Qg(e.position):"start"in e||"end"in e?Qg(e):"line"in e||"column"in e?Ud(e):""}function Ud(e){return Kg(e&&e.line)+":"+Kg(e&&e.column)}function Qg(e){return Ud(e&&e.start)+"-"+Ud(e&&e.end)}function Kg(e){return e&&typeof e=="number"?e:1}class bn extends Error{constructor(t,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let s="",o={},c=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?s=t:!o.cause&&t&&(c=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?o.ruleId=u:(o.source=u.slice(0,p),o.ruleId=u.slice(p+1))}if(!o.place&&o.ancestors&&o.ancestors){const p=o.ancestors[o.ancestors.length-1];p&&(o.place=p.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=hl(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}bn.prototype.file="";bn.prototype.name="";bn.prototype.reason="";bn.prototype.message="";bn.prototype.stack="";bn.prototype.column=void 0;bn.prototype.line=void 0;bn.prototype.ancestors=void 0;bn.prototype.cause=void 0;bn.prototype.fatal=void 0;bn.prototype.place=void 0;bn.prototype.ruleId=void 0;bn.prototype.source=void 0;const l0={}.hasOwnProperty,u_=new Map,l_=/[A-Z]/g,s_=new Set(["table","tbody","thead","tfoot","tr"]),o_=new Set(["td","th"]),jb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function c_(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let u;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=E_(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=b_(r,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:u,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Br:Dl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Yb(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function Yb(e,t,r){if(t.type==="element")return f_(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return d_(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return m_(e,t,r);if(t.type==="mdxjsEsm")return h_(e,t);if(t.type==="root")return p_(e,t,r);if(t.type==="text")return g_(e,t)}function f_(e,t,r){const u=e.schema;let s=u;t.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=Br,e.schema=s),e.ancestors.push(t);const o=qb(e,t.tagName,!1),c=T_(e,t);let d=o0(e,t);return s_.has(t.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!GS(p):!0})),Gb(e,c,o,t),s0(c,d),e.ancestors.pop(),e.schema=u,e.create(t,o,c,r)}function d_(e,t){if(t.data&&t.data.estree&&e.evaluater){const u=t.data.estree.body[0];return u.type,e.evaluater.evaluateExpression(u.expression)}_l(e,t.position)}function h_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);_l(e,t.position)}function m_(e,t,r){const u=e.schema;let s=u;t.name==="svg"&&u.space==="html"&&(s=Br,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:qb(e,t.name,!0),c=y_(e,t),d=o0(e,t);return Gb(e,c,o,t),s0(c,d),e.ancestors.pop(),e.schema=u,e.create(t,o,c,r)}function p_(e,t,r){const u={};return s0(u,o0(e,t)),e.create(t,e.Fragment,u,r)}function g_(e,t){return t.value}function Gb(e,t,r,u){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=u)}function s0(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function b_(e,t,r){return u;function u(s,o,c,d){const h=Array.isArray(c.children)?r:t;return d?h(o,c,d):h(o,c)}}function E_(e,t){return r;function r(u,s,o,c){const d=Array.isArray(o.children),p=Ba(u);return t(s,o,c,d,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function T_(e,t){const r={};let u,s;for(s in t.properties)if(s!=="children"&&l0.call(t.properties,s)){const o=A_(e,s,t.properties[s]);if(o){const[c,d]=o;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&o_.has(t.tagName)?u=d:r[c]=d}}if(u){const o=r.style||(r.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function y_(e,t){const r={};for(const u of t.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&e.evaluater){const o=u.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else _l(e,t.position);else{const s=u.name;let o;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&e.evaluater){const d=u.value.data.estree.body[0];d.type,o=e.evaluater.evaluateExpression(d.expression)}else _l(e,t.position);else o=u.value===null?!0:u.value;r[s]=o}return r}function o0(e,t){const r=[];let u=-1;const s=e.passKeys?new Map:u_;for(;++u<t.children.length;){const o=t.children[u];let c;if(e.passKeys){const p=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(p){const h=s.get(p)||0;c=p+"-"+h,s.set(p,h+1)}}const d=Yb(e,o,c);d!==void 0&&r.push(d)}return r}function A_(e,t,r){const u=Co(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?wb(r):Fb(r)),u.property==="style"){let s=typeof r=="object"?r:S_(e,String(r));return e.stylePropertyNameCase==="css"&&(s=__(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&u.space?QS[u.property]||u.property:u.attribute,r]}}function S_(e,t){try{return r_(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const u=r,s=new bn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=jb+"#cannot-parse-style-attribute",s}}function qb(e,t,r){let u;if(!r)u={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let o=-1,c;for(;++o<s.length;){const d=Pg(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(o&&d.type==="Literal"),optional:!1}:d}u=c}else u=Pg(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(u.type==="Literal"){const s=u.value;return l0.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(u);_l(e)}function _l(e,t){const r=new bn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=jb+"#cannot-handle-mdx-estrees-without-createevaluater",r}function __(e){const t={};let r;for(r in e)l0.call(e,r)&&(t[x_(r)]=e[r]);return t}function x_(e){let t=e.replace(l_,C_);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function C_(e){return"-"+e.toLowerCase()}const od={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"]},N_={};function c0(e,t){const r=N_,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Vb(e,u,s)}function Vb(e,t,r){if(v_(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Zg(e.children,t,r)}return Array.isArray(e)?Zg(e,t,r):""}function Zg(e,t,r){const u=[];let s=-1;for(;++s<e.length;)u[s]=Vb(e[s],t,r);return u.join("")}function v_(e){return!!(e&&typeof e=="object")}const $g=document.createElement("i");function xl(e){const t="&"+e+";";$g.innerHTML=t;const r=$g.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Kn(e,t,r,u){const s=e.length;let o=0,c;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,r=r>0?r:0,u.length<1e4)c=Array.from(u),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);o<u.length;)c=u.slice(o,o+1e4),c.unshift(t,0),e.splice(...c),o+=1e4,t+=1e4}function ca(e,t){return e.length>0?(Kn(e,e.length,0,t),e):t}const Wg={}.hasOwnProperty;function Xb(e){const t={};let r=-1;for(;++r<e.length;)O_(t,e[r]);return t}function O_(e,t){let r;for(r in t){const s=(Wg.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let c;if(o)for(c in o){Wg.call(s,c)||(s[c]=[]);const d=o[c];k_(s[c],Array.isArray(d)?d:d?[d]:[])}}}function k_(e,t){let r=-1;const u=[];for(;++r<t.length;)(t[r].add==="after"?e:u).push(t[r]);Kn(e,0,0,u)}function Qb(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Sa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const An=Hr(/[A-Za-z]/),gn=Hr(/[\dA-Za-z]/),R_=Hr(/[#-'*+\--9=?A-Z^-~]/);function To(e){return e!==null&&(e<32||e===127)}const Pd=Hr(/\d/),D_=Hr(/[\dA-Fa-f]/),w_=Hr(/[!-/:-@[-`{-~]/);function Le(e){return e!==null&&e<-2}function mt(e){return e!==null&&(e<0||e===32)}function $e(e){return e===-2||e===-1||e===32}const vo=Hr(new RegExp("\\p{P}|\\p{S}","u")),ri=Hr(/\s/);function Hr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function au(e){const t=[];let r=-1,u=0,s=0;for(;++r<e.length;){const o=e.charCodeAt(r);let c="";if(o===37&&gn(e.charCodeAt(r+1))&&gn(e.charCodeAt(r+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const d=e.charCodeAt(r+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),s=1):c="�"}else c=String.fromCharCode(o);c&&(t.push(e.slice(u,r),encodeURIComponent(c)),u=r+s+1,c=""),s&&(r+=s,s=0)}return t.join("")+e.slice(u)}function tt(e,t,r,u){const s=u?u-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(p){return $e(p)?(e.enter(r),d(p)):t(p)}function d(p){return $e(p)&&o++<s?(e.consume(p),d):(e.exit(r),t(p))}}const L_={tokenize:I_};function I_(e){const t=e.attempt(this.parser.constructs.contentInitial,u,s);let r;return t;function u(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),tt(e,t,"linePrefix")}function s(d){return e.enter("paragraph"),o(d)}function o(d){const p=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Le(d)?(e.consume(d),e.exit("chunkText"),o):(e.consume(d),c)}}const M_={tokenize:B_},Jg={tokenize:H_};function B_(e){const t=this,r=[];let u=0,s,o,c;return d;function d(M){if(u<r.length){const Q=r[u];return t.containerState=Q[1],e.attempt(Q[0].continuation,p,h)(M)}return h(M)}function p(M){if(u++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&P();const Q=t.events.length;let te=Q,H;for(;te--;)if(t.events[te][0]==="exit"&&t.events[te][1].type==="chunkFlow"){H=t.events[te][1].end;break}C(u);let ue=Q;for(;ue<t.events.length;)t.events[ue][1].end={...H},ue++;return Kn(t.events,te+1,0,t.events.slice(Q)),t.events.length=ue,h(M)}return d(M)}function h(M){if(u===r.length){if(!s)return A(M);if(s.currentConstruct&&s.currentConstruct.concrete)return x(M);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Jg,E,g)(M)}function E(M){return s&&P(),C(u),A(M)}function g(M){return t.parser.lazy[t.now().line]=u!==r.length,c=t.now().offset,x(M)}function A(M){return t.containerState={},e.attempt(Jg,y,x)(M)}function y(M){return u++,r.push([t.currentConstruct,t.containerState]),A(M)}function x(M){if(M===null){s&&P(),C(0),e.consume(M);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),R(M)}function R(M){if(M===null){O(e.exit("chunkFlow"),!0),C(0),e.consume(M);return}return Le(M)?(e.consume(M),O(e.exit("chunkFlow")),u=0,t.interrupt=void 0,d):(e.consume(M),R)}function O(M,Q){const te=t.sliceStream(M);if(Q&&te.push(null),M.previous=o,o&&(o.next=M),o=M,s.defineSkip(M.start),s.write(te),t.parser.lazy[M.start.line]){let H=s.events.length;for(;H--;)if(s.events[H][1].start.offset<c&&(!s.events[H][1].end||s.events[H][1].end.offset>c))return;const ue=t.events.length;let re=ue,Ae,z;for(;re--;)if(t.events[re][0]==="exit"&&t.events[re][1].type==="chunkFlow"){if(Ae){z=t.events[re][1].end;break}Ae=!0}for(C(u),H=ue;H<t.events.length;)t.events[H][1].end={...z},H++;Kn(t.events,re+1,0,t.events.slice(ue)),t.events.length=H}}function C(M){let Q=r.length;for(;Q-- >M;){const te=r[Q];t.containerState=te[1],te[0].exit.call(t,e)}r.length=M}function P(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function H_(e,t,r){return tt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $i(e){if(e===null||mt(e)||ri(e))return 1;if(vo(e))return 2}function Oo(e,t,r){const u=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!u.includes(o)&&(t=o(t,r),u.push(o))}return t}const Fd={name:"attention",resolveAll:U_,tokenize:P_};function U_(e,t){let r=-1,u,s,o,c,d,p,h,E;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(u=r;u--;)if(e[u][0]==="exit"&&e[u][1].type==="attentionSequence"&&e[u][1]._open&&t.sliceSerialize(e[u][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[u][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[u][1].end.offset-e[u][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;p=e[u][1].end.offset-e[u][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[u][1].end},A={...e[r][1].start};e1(g,-p),e1(A,p),c={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...e[u][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:A},o={type:p>1?"strongText":"emphasisText",start:{...e[u][1].end},end:{...e[r][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[u][1].end={...c.start},e[r][1].start={...d.end},h=[],e[u][1].end.offset-e[u][1].start.offset&&(h=ca(h,[["enter",e[u][1],t],["exit",e[u][1],t]])),h=ca(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",o,t]]),h=ca(h,Oo(t.parser.constructs.insideSpan.null,e.slice(u+1,r),t)),h=ca(h,[["exit",o,t],["enter",d,t],["exit",d,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(E=2,h=ca(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):E=0,Kn(e,u-1,r-u+3,h),r=u+h.length-E-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function P_(e,t){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,s=$i(u);let o;return c;function c(p){return o=p,e.enter("attentionSequence"),d(p)}function d(p){if(p===o)return e.consume(p),d;const h=e.exit("attentionSequence"),E=$i(p),g=!E||E===2&&s||r.includes(p),A=!s||s===2&&E||r.includes(u);return h._open=!!(o===42?g:g&&(s||!A)),h._close=!!(o===42?A:A&&(E||!g)),t(p)}}function e1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const F_={name:"autolink",tokenize:z_};function z_(e,t,r){let u=0;return s;function s(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(y){return An(y)?(e.consume(y),c):y===64?r(y):h(y)}function c(y){return y===43||y===45||y===46||gn(y)?(u=1,d(y)):h(y)}function d(y){return y===58?(e.consume(y),u=0,p):(y===43||y===45||y===46||gn(y))&&u++<32?(e.consume(y),d):(u=0,h(y))}function p(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||To(y)?r(y):(e.consume(y),p)}function h(y){return y===64?(e.consume(y),E):R_(y)?(e.consume(y),h):r(y)}function E(y){return gn(y)?g(y):r(y)}function g(y){return y===46?(e.consume(y),u=0,E):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):A(y)}function A(y){if((y===45||gn(y))&&u++<63){const x=y===45?A:g;return e.consume(y),x}return r(y)}}const wl={partial:!0,tokenize:j_};function j_(e,t,r){return u;function u(o){return $e(o)?tt(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||Le(o)?t(o):r(o)}}const Kb={continuation:{tokenize:G_},exit:q_,name:"blockQuote",tokenize:Y_};function Y_(e,t,r){const u=this;return s;function s(c){if(c===62){const d=u.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),o}return r(c)}function o(c){return $e(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function G_(e,t,r){const u=this;return s;function s(c){return $e(c)?tt(e,o,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return e.attempt(Kb,t,r)(c)}}function q_(e){e.exit("blockQuote")}const Zb={name:"characterEscape",tokenize:V_};function V_(e,t,r){return u;function u(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return w_(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}const $b={name:"characterReference",tokenize:X_};function X_(e,t,r){const u=this;let s=0,o,c;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),p}function p(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),o=31,c=gn,E(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=D_,E):(e.enter("characterReferenceValue"),o=7,c=Pd,E(g))}function E(g){if(g===59&&s){const A=e.exit("characterReferenceValue");return c===gn&&!xl(u.sliceSerialize(A))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(g)&&s++<o?(e.consume(g),E):r(g)}}const t1={partial:!0,tokenize:K_},n1={concrete:!0,name:"codeFenced",tokenize:Q_};function Q_(e,t,r){const u=this,s={partial:!0,tokenize:te};let o=0,c=0,d;return p;function p(H){return h(H)}function h(H){const ue=u.events[u.events.length-1];return o=ue&&ue[1].type==="linePrefix"?ue[2].sliceSerialize(ue[1],!0).length:0,d=H,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),E(H)}function E(H){return H===d?(c++,e.consume(H),E):c<3?r(H):(e.exit("codeFencedFenceSequence"),$e(H)?tt(e,g,"whitespace")(H):g(H))}function g(H){return H===null||Le(H)?(e.exit("codeFencedFence"),u.interrupt?t(H):e.check(t1,R,Q)(H)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),A(H))}function A(H){return H===null||Le(H)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(H)):$e(H)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),tt(e,y,"whitespace")(H)):H===96&&H===d?r(H):(e.consume(H),A)}function y(H){return H===null||Le(H)?g(H):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(H))}function x(H){return H===null||Le(H)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(H)):H===96&&H===d?r(H):(e.consume(H),x)}function R(H){return e.attempt(s,Q,O)(H)}function O(H){return e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),C}function C(H){return o>0&&$e(H)?tt(e,P,"linePrefix",o+1)(H):P(H)}function P(H){return H===null||Le(H)?e.check(t1,R,Q)(H):(e.enter("codeFlowValue"),M(H))}function M(H){return H===null||Le(H)?(e.exit("codeFlowValue"),P(H)):(e.consume(H),M)}function Q(H){return e.exit("codeFenced"),t(H)}function te(H,ue,re){let Ae=0;return z;function z(oe){return H.enter("lineEnding"),H.consume(oe),H.exit("lineEnding"),le}function le(oe){return H.enter("codeFencedFence"),$e(oe)?tt(H,ce,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(oe):ce(oe)}function ce(oe){return oe===d?(H.enter("codeFencedFenceSequence"),pe(oe)):re(oe)}function pe(oe){return oe===d?(Ae++,H.consume(oe),pe):Ae>=c?(H.exit("codeFencedFenceSequence"),$e(oe)?tt(H,be,"whitespace")(oe):be(oe)):re(oe)}function be(oe){return oe===null||Le(oe)?(H.exit("codeFencedFence"),ue(oe)):re(oe)}}}function K_(e,t,r){const u=this;return s;function s(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)}function o(c){return u.parser.lazy[u.now().line]?r(c):t(c)}}const cd={name:"codeIndented",tokenize:$_},Z_={partial:!0,tokenize:W_};function $_(e,t,r){const u=this;return s;function s(h){return e.enter("codeIndented"),tt(e,o,"linePrefix",5)(h)}function o(h){const E=u.events[u.events.length-1];return E&&E[1].type==="linePrefix"&&E[2].sliceSerialize(E[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?p(h):Le(h)?e.attempt(Z_,c,p)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Le(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),d)}function p(h){return e.exit("codeIndented"),t(h)}}function W_(e,t,r){const u=this;return s;function s(c){return u.parser.lazy[u.now().line]?r(c):Le(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):tt(e,o,"linePrefix",5)(c)}function o(c){const d=u.events[u.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Le(c)?s(c):r(c)}}const J_={name:"codeText",previous:tx,resolve:ex,tokenize:nx};function ex(e){let t=e.length-4,r=3,u,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(u=r;++u<t;)if(e[u][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(u=r-1,t++;++u<=t;)s===void 0?u!==t&&e[u][1].type!=="lineEnding"&&(s=u):(u===t||e[u][1].type==="lineEnding")&&(e[s][1].type="codeTextData",u!==s+2&&(e[s][1].end=e[u-1][1].end,e.splice(s+2,u-s-2),t-=u-s-2,u=s+2),s=void 0);return e}function tx(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function nx(e,t,r){let u=0,s,o;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),u++,d):(e.exit("codeTextSequence"),p(g))}function p(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),p):g===96?(o=e.enter("codeTextSequence"),s=0,E(g)):Le(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Le(g)?(e.exit("codeTextData"),p(g)):(e.consume(g),h)}function E(g){return g===96?(e.consume(g),s++,E):s===u?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(o.type="codeTextData",h(g))}}class ax{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(t,u):t>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(t,r,u){const s=r||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return u&&al(this.left,u),o.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),al(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),al(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);al(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);al(this.left,r.reverse())}}}function al(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Wb(e){const t={};let r=-1,u,s,o,c,d,p,h;const E=new ax(e);for(;++r<E.length;){for(;r in t;)r=t[r];if(u=E.get(r),r&&u[1].type==="chunkFlow"&&E.get(r-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,o=0,o<p.length&&p[o][1].type==="lineEndingBlank"&&(o+=2),o<p.length&&p[o][1].type==="content"))for(;++o<p.length&&p[o][1].type!=="content";)p[o][1].type==="chunkText"&&(p[o][1]._isInFirstContentOfListItem=!0,o++);if(u[0]==="enter")u[1].contentType&&(Object.assign(t,rx(E,r)),r=t[r],h=!0);else if(u[1]._container){for(o=r,s=void 0;o--;)if(c=E.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(E.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(u[1].end={...E.get(s)[1].start},d=E.slice(s,r),d.unshift(u),E.splice(s,r-s+1,d))}}return Kn(e,0,Number.POSITIVE_INFINITY,E.slice(0)),!h}function rx(e,t){const r=e.get(t)[1],u=e.get(t)[2];let s=t-1;const o=[];let c=r._tokenizer;c||(c=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],h={};let E,g,A=-1,y=r,x=0,R=0;const O=[R];for(;y;){for(;e.get(++s)[1]!==y;);o.push(s),y._tokenizer||(E=u.sliceStream(y),y.next||E.push(null),g&&c.defineSkip(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(E),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=y,y=y.next}for(y=r;++A<d.length;)d[A][0]==="exit"&&d[A-1][0]==="enter"&&d[A][1].type===d[A-1][1].type&&d[A][1].start.line!==d[A][1].end.line&&(R=A+1,O.push(R),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):O.pop(),A=O.length;A--;){const C=d.slice(O[A],O[A+1]),P=o.pop();p.push([P,P+C.length-1]),e.splice(P,2,C)}for(p.reverse(),A=-1;++A<p.length;)h[x+p[A][0]]=x+p[A][1],x+=p[A][1]-p[A][0]-1;return h}const ix={resolve:lx,tokenize:sx},ux={partial:!0,tokenize:ox};function lx(e){return Wb(e),e}function sx(e,t){let r;return u;function u(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?o(d):Le(d)?e.check(ux,c,o)(d):(e.consume(d),s)}function o(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function ox(e,t,r){const u=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),tt(e,o,"linePrefix")}function o(c){if(c===null||Le(c))return r(c);const d=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(u.parser.constructs.flow,r,t)(c)}}function Jb(e,t,r,u,s,o,c,d,p){const h=p||Number.POSITIVE_INFINITY;let E=0;return g;function g(C){return C===60?(e.enter(u),e.enter(s),e.enter(o),e.consume(C),e.exit(o),A):C===null||C===32||C===41||To(C)?r(C):(e.enter(u),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),R(C))}function A(C){return C===62?(e.enter(o),e.consume(C),e.exit(o),e.exit(s),e.exit(u),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(C))}function y(C){return C===62?(e.exit("chunkString"),e.exit(d),A(C)):C===null||C===60||Le(C)?r(C):(e.consume(C),C===92?x:y)}function x(C){return C===60||C===62||C===92?(e.consume(C),y):y(C)}function R(C){return!E&&(C===null||C===41||mt(C))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(u),t(C)):E<h&&C===40?(e.consume(C),E++,R):C===41?(e.consume(C),E--,R):C===null||C===32||C===40||To(C)?r(C):(e.consume(C),C===92?O:R)}function O(C){return C===40||C===41||C===92?(e.consume(C),R):R(C)}}function eE(e,t,r,u,s,o){const c=this;let d=0,p;return h;function h(y){return e.enter(u),e.enter(s),e.consume(y),e.exit(s),e.enter(o),E}function E(y){return d>999||y===null||y===91||y===93&&!p||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(y):y===93?(e.exit(o),e.enter(s),e.consume(y),e.exit(s),e.exit(u),t):Le(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),E):(e.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===null||y===91||y===93||Le(y)||d++>999?(e.exit("chunkString"),E(y)):(e.consume(y),p||(p=!$e(y)),y===92?A:g)}function A(y){return y===91||y===92||y===93?(e.consume(y),d++,g):g(y)}}function tE(e,t,r,u,s,o){let c;return d;function d(A){return A===34||A===39||A===40?(e.enter(u),e.enter(s),e.consume(A),e.exit(s),c=A===40?41:A,p):r(A)}function p(A){return A===c?(e.enter(s),e.consume(A),e.exit(s),e.exit(u),t):(e.enter(o),h(A))}function h(A){return A===c?(e.exit(o),p(c)):A===null?r(A):Le(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),tt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),E(A))}function E(A){return A===c||A===null||Le(A)?(e.exit("chunkString"),h(A)):(e.consume(A),A===92?g:E)}function g(A){return A===c||A===92?(e.consume(A),E):E(A)}}function ml(e,t){let r;return u;function u(s){return Le(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,u):$e(s)?tt(e,u,r?"linePrefix":"lineSuffix")(s):t(s)}}const cx={name:"definition",tokenize:dx},fx={partial:!0,tokenize:hx};function dx(e,t,r){const u=this;let s;return o;function o(y){return e.enter("definition"),c(y)}function c(y){return eE.call(u,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return s=Sa(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),p):r(y)}function p(y){return mt(y)?ml(e,h)(y):h(y)}function h(y){return Jb(e,E,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function E(y){return e.attempt(fx,g,g)(y)}function g(y){return $e(y)?tt(e,A,"whitespace")(y):A(y)}function A(y){return y===null||Le(y)?(e.exit("definition"),u.parser.defined.push(s),t(y)):r(y)}}function hx(e,t,r){return u;function u(d){return mt(d)?ml(e,s)(d):r(d)}function s(d){return tE(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return $e(d)?tt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Le(d)?t(d):r(d)}}const mx={name:"hardBreakEscape",tokenize:px};function px(e,t,r){return u;function u(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return Le(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const gx={name:"headingAtx",resolve:bx,tokenize:Ex};function bx(e,t){let r=e.length-2,u=3,s,o;return e[u][1].type==="whitespace"&&(u+=2),r-2>u&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&e[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(s={type:"atxHeadingText",start:e[u][1].start,end:e[r][1].end},o={type:"chunkText",start:e[u][1].start,end:e[r][1].end,contentType:"text"},Kn(e,u,r-u+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function Ex(e,t,r){let u=0;return s;function s(E){return e.enter("atxHeading"),o(E)}function o(E){return e.enter("atxHeadingSequence"),c(E)}function c(E){return E===35&&u++<6?(e.consume(E),c):E===null||mt(E)?(e.exit("atxHeadingSequence"),d(E)):r(E)}function d(E){return E===35?(e.enter("atxHeadingSequence"),p(E)):E===null||Le(E)?(e.exit("atxHeading"),t(E)):$e(E)?tt(e,d,"whitespace")(E):(e.enter("atxHeadingText"),h(E))}function p(E){return E===35?(e.consume(E),p):(e.exit("atxHeadingSequence"),d(E))}function h(E){return E===null||E===35||mt(E)?(e.exit("atxHeadingText"),d(E)):(e.consume(E),h)}}const Tx=["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"],a1=["pre","script","style","textarea"],yx={concrete:!0,name:"htmlFlow",resolveTo:_x,tokenize:xx},Ax={partial:!0,tokenize:Nx},Sx={partial:!0,tokenize:Cx};function _x(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 xx(e,t,r){const u=this;let s,o,c,d,p;return h;function h(_){return E(_)}function E(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),g}function g(_){return _===33?(e.consume(_),A):_===47?(e.consume(_),o=!0,R):_===63?(e.consume(_),s=3,u.interrupt?t:k):An(_)?(e.consume(_),c=String.fromCharCode(_),O):r(_)}function A(_){return _===45?(e.consume(_),s=2,y):_===91?(e.consume(_),s=5,d=0,x):An(_)?(e.consume(_),s=4,u.interrupt?t:k):r(_)}function y(_){return _===45?(e.consume(_),u.interrupt?t:k):r(_)}function x(_){const X="CDATA[";return _===X.charCodeAt(d++)?(e.consume(_),d===X.length?u.interrupt?t:ce:x):r(_)}function R(_){return An(_)?(e.consume(_),c=String.fromCharCode(_),O):r(_)}function O(_){if(_===null||_===47||_===62||mt(_)){const X=_===47,ee=c.toLowerCase();return!X&&!o&&a1.includes(ee)?(s=1,u.interrupt?t(_):ce(_)):Tx.includes(c.toLowerCase())?(s=6,X?(e.consume(_),C):u.interrupt?t(_):ce(_)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(_):o?P(_):M(_))}return _===45||gn(_)?(e.consume(_),c+=String.fromCharCode(_),O):r(_)}function C(_){return _===62?(e.consume(_),u.interrupt?t:ce):r(_)}function P(_){return $e(_)?(e.consume(_),P):z(_)}function M(_){return _===47?(e.consume(_),z):_===58||_===95||An(_)?(e.consume(_),Q):$e(_)?(e.consume(_),M):z(_)}function Q(_){return _===45||_===46||_===58||_===95||gn(_)?(e.consume(_),Q):te(_)}function te(_){return _===61?(e.consume(_),H):$e(_)?(e.consume(_),te):M(_)}function H(_){return _===null||_===60||_===61||_===62||_===96?r(_):_===34||_===39?(e.consume(_),p=_,ue):$e(_)?(e.consume(_),H):re(_)}function ue(_){return _===p?(e.consume(_),p=null,Ae):_===null||Le(_)?r(_):(e.consume(_),ue)}function re(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||mt(_)?te(_):(e.consume(_),re)}function Ae(_){return _===47||_===62||$e(_)?M(_):r(_)}function z(_){return _===62?(e.consume(_),le):r(_)}function le(_){return _===null||Le(_)?ce(_):$e(_)?(e.consume(_),le):r(_)}function ce(_){return _===45&&s===2?(e.consume(_),U):_===60&&s===1?(e.consume(_),J):_===62&&s===4?(e.consume(_),D):_===63&&s===3?(e.consume(_),k):_===93&&s===5?(e.consume(_),Re):Le(_)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(Ax,K,pe)(_)):_===null||Le(_)?(e.exit("htmlFlowData"),pe(_)):(e.consume(_),ce)}function pe(_){return e.check(Sx,be,K)(_)}function be(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),oe}function oe(_){return _===null||Le(_)?pe(_):(e.enter("htmlFlowData"),ce(_))}function U(_){return _===45?(e.consume(_),k):ce(_)}function J(_){return _===47?(e.consume(_),c="",ne):ce(_)}function ne(_){if(_===62){const X=c.toLowerCase();return a1.includes(X)?(e.consume(_),D):ce(_)}return An(_)&&c.length<8?(e.consume(_),c+=String.fromCharCode(_),ne):ce(_)}function Re(_){return _===93?(e.consume(_),k):ce(_)}function k(_){return _===62?(e.consume(_),D):_===45&&s===2?(e.consume(_),k):ce(_)}function D(_){return _===null||Le(_)?(e.exit("htmlFlowData"),K(_)):(e.consume(_),D)}function K(_){return e.exit("htmlFlow"),t(_)}}function Cx(e,t,r){const u=this;return s;function s(c){return Le(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):r(c)}function o(c){return u.parser.lazy[u.now().line]?r(c):t(c)}}function Nx(e,t,r){return u;function u(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(wl,t,r)}}const vx={name:"htmlText",tokenize:Ox};function Ox(e,t,r){const u=this;let s,o,c;return d;function d(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),p}function p(k){return k===33?(e.consume(k),h):k===47?(e.consume(k),te):k===63?(e.consume(k),M):An(k)?(e.consume(k),re):r(k)}function h(k){return k===45?(e.consume(k),E):k===91?(e.consume(k),o=0,x):An(k)?(e.consume(k),P):r(k)}function E(k){return k===45?(e.consume(k),y):r(k)}function g(k){return k===null?r(k):k===45?(e.consume(k),A):Le(k)?(c=g,J(k)):(e.consume(k),g)}function A(k){return k===45?(e.consume(k),y):g(k)}function y(k){return k===62?U(k):k===45?A(k):g(k)}function x(k){const D="CDATA[";return k===D.charCodeAt(o++)?(e.consume(k),o===D.length?R:x):r(k)}function R(k){return k===null?r(k):k===93?(e.consume(k),O):Le(k)?(c=R,J(k)):(e.consume(k),R)}function O(k){return k===93?(e.consume(k),C):R(k)}function C(k){return k===62?U(k):k===93?(e.consume(k),C):R(k)}function P(k){return k===null||k===62?U(k):Le(k)?(c=P,J(k)):(e.consume(k),P)}function M(k){return k===null?r(k):k===63?(e.consume(k),Q):Le(k)?(c=M,J(k)):(e.consume(k),M)}function Q(k){return k===62?U(k):M(k)}function te(k){return An(k)?(e.consume(k),H):r(k)}function H(k){return k===45||gn(k)?(e.consume(k),H):ue(k)}function ue(k){return Le(k)?(c=ue,J(k)):$e(k)?(e.consume(k),ue):U(k)}function re(k){return k===45||gn(k)?(e.consume(k),re):k===47||k===62||mt(k)?Ae(k):r(k)}function Ae(k){return k===47?(e.consume(k),U):k===58||k===95||An(k)?(e.consume(k),z):Le(k)?(c=Ae,J(k)):$e(k)?(e.consume(k),Ae):U(k)}function z(k){return k===45||k===46||k===58||k===95||gn(k)?(e.consume(k),z):le(k)}function le(k){return k===61?(e.consume(k),ce):Le(k)?(c=le,J(k)):$e(k)?(e.consume(k),le):Ae(k)}function ce(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),s=k,pe):Le(k)?(c=ce,J(k)):$e(k)?(e.consume(k),ce):(e.consume(k),be)}function pe(k){return k===s?(e.consume(k),s=void 0,oe):k===null?r(k):Le(k)?(c=pe,J(k)):(e.consume(k),pe)}function be(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||mt(k)?Ae(k):(e.consume(k),be)}function oe(k){return k===47||k===62||mt(k)?Ae(k):r(k)}function U(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):r(k)}function J(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),ne}function ne(k){return $e(k)?tt(e,Re,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):Re(k)}function Re(k){return e.enter("htmlTextData"),c(k)}}const f0={name:"labelEnd",resolveAll:wx,resolveTo:Lx,tokenize:Ix},kx={tokenize:Mx},Rx={tokenize:Bx},Dx={tokenize:Hx};function wx(e){let t=-1;const r=[];for(;++t<e.length;){const u=e[t][1];if(r.push(e[t]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const s=u.type==="labelImage"?4:2;u.type="data",t+=s}}return e.length!==r.length&&Kn(e,0,e.length,r),e}function Lx(e,t){let r=e.length,u=0,s,o,c,d;for(;r--;)if(s=e[r][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=r,s.type!=="labelLink")){u=2;break}}else s.type==="labelEnd"&&(c=r);const p={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[o][1].start},end:{...e[c][1].end}},E={type:"labelText",start:{...e[o+u+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",p,t],["enter",h,t]],d=ca(d,e.slice(o+1,o+u+3)),d=ca(d,[["enter",E,t]]),d=ca(d,Oo(t.parser.constructs.insideSpan.null,e.slice(o+u+4,c-3),t)),d=ca(d,[["exit",E,t],e[c-2],e[c-1],["exit",h,t]]),d=ca(d,e.slice(c+1)),d=ca(d,[["exit",p,t]]),Kn(e,o,e.length,d),e}function Ix(e,t,r){const u=this;let s=u.events.length,o,c;for(;s--;)if((u.events[s][1].type==="labelImage"||u.events[s][1].type==="labelLink")&&!u.events[s][1]._balanced){o=u.events[s][1];break}return d;function d(A){return o?o._inactive?g(A):(c=u.parser.defined.includes(Sa(u.sliceSerialize({start:o.end,end:u.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(A),e.exit("labelMarker"),e.exit("labelEnd"),p):r(A)}function p(A){return A===40?e.attempt(kx,E,c?E:g)(A):A===91?e.attempt(Rx,E,c?h:g)(A):c?E(A):g(A)}function h(A){return e.attempt(Dx,E,g)(A)}function E(A){return t(A)}function g(A){return o._balanced=!0,r(A)}}function Mx(e,t,r){return u;function u(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return mt(g)?ml(e,o)(g):o(g)}function o(g){return g===41?E(g):Jb(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return mt(g)?ml(e,p)(g):E(g)}function d(g){return r(g)}function p(g){return g===34||g===39||g===40?tE(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):E(g)}function h(g){return mt(g)?ml(e,E)(g):E(g)}function E(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function Bx(e,t,r){const u=this;return s;function s(d){return eE.call(u,e,o,c,"reference","referenceMarker","referenceString")(d)}function o(d){return u.parser.defined.includes(Sa(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}function Hx(e,t,r){return u;function u(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}const Ux={name:"labelStartImage",resolveAll:f0.resolveAll,tokenize:Px};function Px(e,t,r){const u=this;return s;function s(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),o}function o(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(d):t(d)}}const Fx={name:"labelStartLink",resolveAll:f0.resolveAll,tokenize:zx};function zx(e,t,r){const u=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(c):t(c)}}const fd={name:"lineEnding",tokenize:jx};function jx(e,t){return r;function r(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),tt(e,t,"linePrefix")}}const fo={name:"thematicBreak",tokenize:Yx};function Yx(e,t,r){let u=0,s;return o;function o(h){return e.enter("thematicBreak"),c(h)}function c(h){return s=h,d(h)}function d(h){return h===s?(e.enter("thematicBreakSequence"),p(h)):u>=3&&(h===null||Le(h))?(e.exit("thematicBreak"),t(h)):r(h)}function p(h){return h===s?(e.consume(h),u++,p):(e.exit("thematicBreakSequence"),$e(h)?tt(e,d,"whitespace")(h):d(h))}}const Mn={continuation:{tokenize:Xx},exit:Kx,name:"list",tokenize:Vx},Gx={partial:!0,tokenize:Zx},qx={partial:!0,tokenize:Qx};function Vx(e,t,r){const u=this,s=u.events[u.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(y){const x=u.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!u.containerState.marker||y===u.containerState.marker:Pd(y)){if(u.containerState.type||(u.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(fo,r,h)(y):h(y);if(!u.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(y)}return r(y)}function p(y){return Pd(y)&&++c<10?(e.consume(y),p):(!u.interrupt||c<2)&&(u.containerState.marker?y===u.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),h(y)):r(y)}function h(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||y,e.check(wl,u.interrupt?r:E,e.attempt(Gx,A,g))}function E(y){return u.containerState.initialBlankLine=!0,o++,A(y)}function g(y){return $e(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),A):r(y)}function A(y){return u.containerState.size=o+u.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function Xx(e,t,r){const u=this;return u.containerState._closeFlow=void 0,e.check(wl,s,o);function s(d){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,tt(e,t,"listItemIndent",u.containerState.size+1)(d)}function o(d){return u.containerState.furtherBlankLines||!$e(d)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,c(d)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,e.attempt(qx,t,c)(d))}function c(d){return u.containerState._closeFlow=!0,u.interrupt=void 0,tt(e,e.attempt(Mn,t,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function Qx(e,t,r){const u=this;return tt(e,s,"listItemIndent",u.containerState.size+1);function s(o){const c=u.events[u.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===u.containerState.size?t(o):r(o)}}function Kx(e){e.exit(this.containerState.type)}function Zx(e,t,r){const u=this;return tt(e,s,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=u.events[u.events.length-1];return!$e(o)&&c&&c[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const r1={name:"setextUnderline",resolveTo:$x,tokenize:Wx};function $x(e,t){let r=e.length,u,s,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){u=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const c={type:"setextHeading",start:{...e[u][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",c,t]),e.splice(o+1,0,["exit",e[u][1],t]),e[u][1].end={...e[o][1].end}):e[u][1]=c,e.push(["exit",c,t]),e}function Wx(e,t,r){const u=this;let s;return o;function o(h){let E=u.events.length,g;for(;E--;)if(u.events[E][1].type!=="lineEnding"&&u.events[E][1].type!=="linePrefix"&&u.events[E][1].type!=="content"){g=u.events[E][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||g)?(e.enter("setextHeadingLine"),s=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===s?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),$e(h)?tt(e,p,"lineSuffix")(h):p(h))}function p(h){return h===null||Le(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const Jx={tokenize:e3};function e3(e){const t=this,r=e.attempt(wl,u,e.attempt(this.parser.constructs.flowInitial,s,tt(e,e.attempt(this.parser.constructs.flow,s,e.attempt(ix,s)),"linePrefix")));return r;function u(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const t3={resolveAll:aE()},n3=nE("string"),a3=nE("text");function nE(e){return{resolveAll:aE(e==="text"?r3:void 0),tokenize:t};function t(r){const u=this,s=this.parser.constructs[e],o=r.attempt(s,c,d);return c;function c(E){return h(E)?o(E):d(E)}function d(E){if(E===null){r.consume(E);return}return r.enter("data"),r.consume(E),p}function p(E){return h(E)?(r.exit("data"),o(E)):(r.consume(E),p)}function h(E){if(E===null)return!0;const g=s[E];let A=-1;if(g)for(;++A<g.length;){const y=g[A];if(!y.previous||y.previous.call(u,u.previous))return!0}return!1}}}function aE(e){return t;function t(r,u){let s=-1,o;for(;++s<=r.length;)o===void 0?r[s]&&r[s][1].type==="data"&&(o=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==o+2&&(r[o][1].end=r[s-1][1].end,r.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(r,u):r}}function r3(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const u=e[r-1][1],s=t.sliceStream(u);let o=s.length,c=-1,d=0,p;for(;o--;){const h=s[o];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(h===-2)p=!0,d++;else if(h!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const h={type:r===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:u.start._bufferIndex+c,_index:u.start._index+o,line:u.end.line,column:u.end.column-d,offset:u.end.offset-d},end:{...u.end}};u.end={...h.start},u.start.offset===u.end.offset?Object.assign(u,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const i3={42:Mn,43:Mn,45:Mn,48:Mn,49:Mn,50:Mn,51:Mn,52:Mn,53:Mn,54:Mn,55:Mn,56:Mn,57:Mn,62:Kb},u3={91:cx},l3={[-2]:cd,[-1]:cd,32:cd},s3={35:gx,42:fo,45:[r1,fo],60:yx,61:r1,95:fo,96:n1,126:n1},o3={38:$b,92:Zb},c3={[-5]:fd,[-4]:fd,[-3]:fd,33:Ux,38:$b,42:Fd,60:[F_,vx],91:Fx,92:[mx,Zb],93:f0,95:Fd,96:J_},f3={null:[Fd,t3]},d3={null:[42,95]},h3={null:[]},m3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:d3,contentInitial:u3,disable:h3,document:i3,flow:s3,flowInitial:l3,insideSpan:f3,string:o3,text:c3},Symbol.toStringTag,{value:"Module"}));function p3(e,t,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},o=[];let c=[],d=[];const p={attempt:ue(te),check:ue(H),consume:P,enter:M,exit:Q,interrupt:ue(H,{interrupt:!0})},h={code:null,containerState:{},defineSkip:R,events:[],now:x,parser:e,previous:null,sliceSerialize:A,sliceStream:y,write:g};let E=t.tokenize.call(h,p);return t.resolveAll&&o.push(t),h;function g(le){return c=ca(c,le),O(),c[c.length-1]!==null?[]:(re(t,0),h.events=Oo(o,h.events,h),h.events)}function A(le,ce){return b3(y(le),ce)}function y(le){return g3(c,le)}function x(){const{_bufferIndex:le,_index:ce,line:pe,column:be,offset:oe}=u;return{_bufferIndex:le,_index:ce,line:pe,column:be,offset:oe}}function R(le){s[le.line]=le.column,z()}function O(){let le;for(;u._index<c.length;){const ce=c[u._index];if(typeof ce=="string")for(le=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===le&&u._bufferIndex<ce.length;)C(ce.charCodeAt(u._bufferIndex));else C(ce)}}function C(le){E=E(le)}function P(le){Le(le)?(u.line++,u.column=1,u.offset+=le===-3?2:1,z()):le!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===c[u._index].length&&(u._bufferIndex=-1,u._index++)),h.previous=le}function M(le,ce){const pe=ce||{};return pe.type=le,pe.start=x(),h.events.push(["enter",pe,h]),d.push(pe),pe}function Q(le){const ce=d.pop();return ce.end=x(),h.events.push(["exit",ce,h]),ce}function te(le,ce){re(le,ce.from)}function H(le,ce){ce.restore()}function ue(le,ce){return pe;function pe(be,oe,U){let J,ne,Re,k;return Array.isArray(be)?K(be):"tokenize"in be?K([be]):D(be);function D(ye){return Se;function Se(xe){const Be=xe!==null&&ye[xe],st=xe!==null&&ye.null,Ct=[...Array.isArray(Be)?Be:Be?[Be]:[],...Array.isArray(st)?st:st?[st]:[]];return K(Ct)(xe)}}function K(ye){return J=ye,ne=0,ye.length===0?U:_(ye[ne])}function _(ye){return Se;function Se(xe){return k=Ae(),Re=ye,ye.partial||(h.currentConstruct=ye),ye.name&&h.parser.constructs.disable.null.includes(ye.name)?ee():ye.tokenize.call(ce?Object.assign(Object.create(h),ce):h,p,X,ee)(xe)}}function X(ye){return le(Re,k),oe}function ee(ye){return k.restore(),++ne<J.length?_(J[ne]):U}}}function re(le,ce){le.resolveAll&&!o.includes(le)&&o.push(le),le.resolve&&Kn(h.events,ce,h.events.length-ce,le.resolve(h.events.slice(ce),h)),le.resolveTo&&(h.events=le.resolveTo(h.events,h))}function Ae(){const le=x(),ce=h.previous,pe=h.currentConstruct,be=h.events.length,oe=Array.from(d);return{from:be,restore:U};function U(){u=le,h.previous=ce,h.currentConstruct=pe,h.events.length=be,d=oe,z()}}function z(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function g3(e,t){const r=t.start._index,u=t.start._bufferIndex,s=t.end._index,o=t.end._bufferIndex;let c;if(r===s)c=[e[r].slice(u,o)];else{if(c=e.slice(r,s),u>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(u):c.shift()}o>0&&c.push(e[s].slice(0,o))}return c}function b3(e,t){let r=-1;const u=[];let s;for(;++r<e.length;){const o=e[r];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
11
+ `;break}case-3:{c=`\r
12
+ `;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&s)continue;c=" ";break}default:c=String.fromCharCode(o)}s=o===-2,u.push(c)}return u.join("")}function E3(e){const u={constructs:Xb([m3,...(e||{}).extensions||[]]),content:s(L_),defined:[],document:s(M_),flow:s(Jx),lazy:{},string:s(n3),text:s(a3)};return u;function s(o){return c;function c(d){return p3(u,o,d)}}}function T3(e){for(;!Wb(e););return e}const i1=/[\0\t\n\r]/g;function y3(){let e=1,t="",r=!0,u;return s;function s(o,c,d){const p=[];let h,E,g,A,y;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),g=0,t="",r&&(o.charCodeAt(0)===65279&&g++,r=void 0);g<o.length;){if(i1.lastIndex=g,h=i1.exec(o),A=h&&h.index!==void 0?h.index:o.length,y=o.charCodeAt(A),!h){t=o.slice(g);break}if(y===10&&g===A&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<A&&(p.push(o.slice(g,A)),e+=A-g),y){case 0:{p.push(65533),e++;break}case 9:{for(E=Math.ceil(e/4)*4,p.push(-2);e++<E;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:u=!0,e=1}g=A+1}return d&&(u&&p.push(-5),t&&p.push(t),p.push(null)),p}}const A3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function S3(e){return e.replace(A3,_3)}function _3(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),o=s===120||s===88;return Qb(r.slice(o?2:1),o?16:10)}return xl(r)||e}const rE={}.hasOwnProperty;function x3(e,t,r){return typeof t!="string"&&(r=t,t=void 0),C3(r)(T3(E3(r).document().write(y3()(e,t,!0))))}function C3(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Dt),autolinkProtocol:Ae,autolinkEmail:Ae,atxHeading:o(dn),blockQuote:o(st),characterEscape:Ae,characterReference:Ae,codeFenced:o(Ct),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(Ct,c),codeText:o(Bt,c),codeTextData:Ae,data:Ae,codeFlowValue:Ae,definition:o(Un),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(Wt),hardBreakEscape:o(Pn),hardBreakTrailing:o(Pn),htmlFlow:o(xn,c),htmlFlowData:Ae,htmlText:o(xn,c),htmlTextData:Ae,image:o(Cn),label:c,link:o(Dt),listItem:o(xa),listItemValue:A,listOrdered:o(Fn,g),listUnordered:o(Fn),paragraph:o(Ht),reference:_,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(dn),strong:o(Zn),thematicBreak:o(ma)},exit:{atxHeading:p(),atxHeadingSequence:te,autolink:p(),autolinkEmail:Be,autolinkProtocol:xe,blockQuote:p(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:ye,characterReference:Se,codeFenced:p(O),codeFencedFence:R,codeFencedFenceInfo:y,codeFencedFenceMeta:x,codeFlowValue:z,codeIndented:p(C),codeText:p(oe),codeTextData:z,data:z,definition:p(),definitionDestinationString:Q,definitionLabelString:P,definitionTitleString:M,emphasis:p(),hardBreakEscape:p(ce),hardBreakTrailing:p(ce),htmlFlow:p(pe),htmlFlowData:z,htmlText:p(be),htmlTextData:z,image:p(J),label:Re,labelText:ne,lineEnding:le,link:p(U),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:X,resourceDestinationString:k,resourceTitleString:D,resource:K,setextHeading:p(re),setextHeadingLineSequence:ue,setextHeadingText:H,strong:p(),thematicBreak:p()}};iE(t,(e||{}).mdastExtensions||[]);const r={};return u;function u(W){let ge={type:"root",children:[]};const De={stack:[ge],tokenStack:[],config:t,enter:d,exit:h,buffer:c,resume:E,data:r},He=[];let je=-1;for(;++je<W.length;)if(W[je][1].type==="listOrdered"||W[je][1].type==="listUnordered")if(W[je][0]==="enter")He.push(je);else{const Ut=He.pop();je=s(W,Ut,je)}for(je=-1;++je<W.length;){const Ut=t[W[je][0]];rE.call(Ut,W[je][1].type)&&Ut[W[je][1].type].call(Object.assign({sliceSerialize:W[je][2].sliceSerialize},De),W[je][1])}if(De.tokenStack.length>0){const Ut=De.tokenStack[De.tokenStack.length-1];(Ut[1]||u1).call(De,void 0,Ut[0])}for(ge.position={start:Dr(W.length>0?W[0][1].start:{line:1,column:1,offset:0}),end:Dr(W.length>0?W[W.length-2][1].end:{line:1,column:1,offset:0})},je=-1;++je<t.transforms.length;)ge=t.transforms[je](ge)||ge;return ge}function s(W,ge,De){let He=ge-1,je=-1,Ut=!1,qt,Ot,pt,dt;for(;++He<=De;){const Qe=W[He];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?je++:je--,dt=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(qt&&!dt&&!je&&!pt&&(pt=He),dt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dt=void 0}if(!je&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||je===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(qt){let Nn=He;for(Ot=void 0;Nn--;){const Vt=W[Nn];if(Vt[1].type==="lineEnding"||Vt[1].type==="lineEndingBlank"){if(Vt[0]==="exit")continue;Ot&&(W[Ot][1].type="lineEndingBlank",Ut=!0),Vt[1].type="lineEnding",Ot=Nn}else if(!(Vt[1].type==="linePrefix"||Vt[1].type==="blockQuotePrefix"||Vt[1].type==="blockQuotePrefixWhitespace"||Vt[1].type==="blockQuoteMarker"||Vt[1].type==="listItemIndent"))break}pt&&(!Ot||pt<Ot)&&(qt._spread=!0),qt.end=Object.assign({},Ot?W[Ot][1].start:Qe[1].end),W.splice(Ot||He,0,["exit",qt,Qe[2]]),He++,De++}if(Qe[1].type==="listItemPrefix"){const Nn={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};qt=Nn,W.splice(He,0,["enter",Nn,Qe[2]]),He++,De++,pt=void 0,dt=!0}}}return W[ge][1]._spread=Ut,De}function o(W,ge){return De;function De(He){d.call(this,W(He),He),ge&&ge.call(this,He)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(W,ge,De){this.stack[this.stack.length-1].children.push(W),this.stack.push(W),this.tokenStack.push([ge,De||void 0]),W.position={start:Dr(ge.start),end:void 0}}function p(W){return ge;function ge(De){W&&W.call(this,De),h.call(this,De)}}function h(W,ge){const De=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==W.type&&(ge?ge.call(this,W,He[0]):(He[1]||u1).call(this,W,He[0]));else throw new Error("Cannot close `"+W.type+"` ("+hl({start:W.start,end:W.end})+"): it’s not open");De.position.end=Dr(W.end)}function E(){return c0(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function A(W){if(this.data.expectingFirstListItemValue){const ge=this.stack[this.stack.length-2];ge.start=Number.parseInt(this.sliceSerialize(W),10),this.data.expectingFirstListItemValue=void 0}}function y(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.lang=W}function x(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.meta=W}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function O(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.value=W.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.value=W.replace(/(\r?\n|\r)$/g,"")}function P(W){const ge=this.resume(),De=this.stack[this.stack.length-1];De.label=ge,De.identifier=Sa(this.sliceSerialize(W)).toLowerCase()}function M(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.title=W}function Q(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.url=W}function te(W){const ge=this.stack[this.stack.length-1];if(!ge.depth){const De=this.sliceSerialize(W).length;ge.depth=De}}function H(){this.data.setextHeadingSlurpLineEnding=!0}function ue(W){const ge=this.stack[this.stack.length-1];ge.depth=this.sliceSerialize(W).codePointAt(0)===61?1:2}function re(){this.data.setextHeadingSlurpLineEnding=void 0}function Ae(W){const De=this.stack[this.stack.length-1].children;let He=De[De.length-1];(!He||He.type!=="text")&&(He=wt(),He.position={start:Dr(W.start),end:void 0},De.push(He)),this.stack.push(He)}function z(W){const ge=this.stack.pop();ge.value+=this.sliceSerialize(W),ge.position.end=Dr(W.end)}function le(W){const ge=this.stack[this.stack.length-1];if(this.data.atHardBreak){const De=ge.children[ge.children.length-1];De.position.end=Dr(W.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ge.type)&&(Ae.call(this,W),z.call(this,W))}function ce(){this.data.atHardBreak=!0}function pe(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.value=W}function be(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.value=W}function oe(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.value=W}function U(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ge,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function J(){const W=this.stack[this.stack.length-1];if(this.data.inReference){const ge=this.data.referenceType||"shortcut";W.type+="Reference",W.referenceType=ge,delete W.url,delete W.title}else delete W.identifier,delete W.label;this.data.referenceType=void 0}function ne(W){const ge=this.sliceSerialize(W),De=this.stack[this.stack.length-2];De.label=S3(ge),De.identifier=Sa(ge).toLowerCase()}function Re(){const W=this.stack[this.stack.length-1],ge=this.resume(),De=this.stack[this.stack.length-1];if(this.data.inReference=!0,De.type==="link"){const He=W.children;De.children=He}else De.alt=ge}function k(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.url=W}function D(){const W=this.resume(),ge=this.stack[this.stack.length-1];ge.title=W}function K(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function X(W){const ge=this.resume(),De=this.stack[this.stack.length-1];De.label=ge,De.identifier=Sa(this.sliceSerialize(W)).toLowerCase(),this.data.referenceType="full"}function ee(W){this.data.characterReferenceType=W.type}function ye(W){const ge=this.sliceSerialize(W),De=this.data.characterReferenceType;let He;De?(He=Qb(ge,De==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=xl(ge);const je=this.stack[this.stack.length-1];je.value+=He}function Se(W){const ge=this.stack.pop();ge.position.end=Dr(W.end)}function xe(W){z.call(this,W);const ge=this.stack[this.stack.length-1];ge.url=this.sliceSerialize(W)}function Be(W){z.call(this,W);const ge=this.stack[this.stack.length-1];ge.url="mailto:"+this.sliceSerialize(W)}function st(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function Bt(){return{type:"inlineCode",value:""}}function Un(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Wt(){return{type:"emphasis",children:[]}}function dn(){return{type:"heading",depth:0,children:[]}}function Pn(){return{type:"break"}}function xn(){return{type:"html",value:""}}function Cn(){return{type:"image",title:null,url:"",alt:null}}function Dt(){return{type:"link",title:null,url:"",children:[]}}function Fn(W){return{type:"list",ordered:W.type==="listOrdered",start:null,spread:W._spread,children:[]}}function xa(W){return{type:"listItem",spread:W._spread,checked:null,children:[]}}function Ht(){return{type:"paragraph",children:[]}}function Zn(){return{type:"strong",children:[]}}function wt(){return{type:"text",value:""}}function ma(){return{type:"thematicBreak"}}}function Dr(e){return{line:e.line,column:e.column,offset:e.offset}}function iE(e,t){let r=-1;for(;++r<t.length;){const u=t[r];Array.isArray(u)?iE(e,u):N3(e,u)}}function N3(e,t){let r;for(r in t)if(rE.call(t,r))switch(r){case"canContainEols":{const u=t[r];u&&e[r].push(...u);break}case"transforms":{const u=t[r];u&&e[r].push(...u);break}case"enter":case"exit":{const u=t[r];u&&Object.assign(e[r],u);break}}}function u1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+hl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+hl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+hl({start:t.start,end:t.end})+") is still open")}function v3(e){const t=this;t.parser=r;function r(u){return x3(u,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function O3(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function k3(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
13
+ `}]}function R3(e,t){const r=t.value?t.value+`
14
+ `:"",u={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(u.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function D3(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function w3(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function L3(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",u=String(t.identifier).toUpperCase(),s=au(u.toLowerCase()),o=e.footnoteOrder.indexOf(u);let c,d=e.footnoteCounts.get(u);d===void 0?(d=0,e.footnoteOrder.push(u),c=e.footnoteOrder.length):c=o+1,d+=1,e.footnoteCounts.set(u,d);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,p);const h={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,h),e.applyData(t,h)}function I3(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function M3(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function uE(e,t){const r=t.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+u}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=u:s.push({type:"text",value:u}),s}function B3(e,t){const r=String(t.identifier).toUpperCase(),u=e.definitionById.get(r);if(!u)return uE(e,t);const s={src:au(u.url||""),alt:t.alt};u.title!==null&&u.title!==void 0&&(s.title=u.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function H3(e,t){const r={src:au(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const u={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,u),e.applyData(t,u)}function U3(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,u),e.applyData(t,u)}function P3(e,t){const r=String(t.identifier).toUpperCase(),u=e.definitionById.get(r);if(!u)return uE(e,t);const s={href:au(u.url||"")};u.title!==null&&u.title!==void 0&&(s.title=u.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function F3(e,t){const r={href:au(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const u={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function z3(e,t,r){const u=e.all(t),s=r?j3(r):lE(t),o={},c=[];if(typeof t.checked=="boolean"){const E=u[0];let g;E&&E.type==="element"&&E.tagName==="p"?g=E:(g={type:"element",tagName:"p",properties:{},children:[]},u.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d<u.length;){const E=u[d];(s||d!==0||E.type!=="element"||E.tagName!=="p")&&c.push({type:"text",value:`
15
+ `}),E.type==="element"&&E.tagName==="p"&&!s?c.push(...E.children):c.push(E)}const p=u[u.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
16
+ `});const h={type:"element",tagName:"li",properties:o,children:c};return e.patch(t,h),e.applyData(t,h)}function j3(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let u=-1;for(;!t&&++u<r.length;)t=lE(r[u])}return t}function lE(e){const t=e.spread;return t??e.children.length>1}function Y3(e,t){const r={},u=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++s<u.length;){const c=u[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(u,!0)};return e.patch(t,o),e.applyData(t,o)}function G3(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function q3(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function V3(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function X3(e,t){const r=e.all(t),u=r.shift(),s=[];if(u){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([u],!0)};e.patch(t.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=Ba(t.children[1]),p=No(t.children[t.children.length-1]);d&&p&&(c.position={start:d,end:p}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function Q3(e,t,r){const u=r?r.children:void 0,o=(u?u.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:t.children.length;let p=-1;const h=[];for(;++p<d;){const g=t.children[p],A={},y=c?c[p]:void 0;y&&(A.align=y);let x={type:"element",tagName:o,properties:A,children:[]};g&&(x.children=e.all(g),e.patch(g,x),x=e.applyData(g,x)),h.push(x)}const E={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,E),e.applyData(t,E)}function K3(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const l1=9,s1=32;function Z3(e){const t=String(e),r=/\r?\n|\r/g;let u=r.exec(t),s=0;const o=[];for(;u;)o.push(o1(t.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=r.exec(t);return o.push(o1(t.slice(s),s>0,!1)),o.join("")}function o1(e,t,r){let u=0,s=e.length;if(t){let o=e.codePointAt(u);for(;o===l1||o===s1;)u++,o=e.codePointAt(u)}if(r){let o=e.codePointAt(s-1);for(;o===l1||o===s1;)s--,o=e.codePointAt(s-1)}return s>u?e.slice(u,s):""}function $3(e,t){const r={type:"text",value:Z3(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function W3(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const J3={blockquote:O3,break:k3,code:R3,delete:D3,emphasis:w3,footnoteReference:L3,heading:I3,html:M3,imageReference:B3,image:H3,inlineCode:U3,linkReference:P3,link:F3,listItem:z3,list:Y3,paragraph:G3,root:q3,strong:V3,table:X3,tableCell:K3,tableRow:Q3,text:$3,thematicBreak:W3,toml:no,yaml:no,definition:no,footnoteDefinition:no};function no(){}const sE=-1,ko=0,pl=1,yo=2,d0=3,h0=4,m0=5,p0=6,oE=7,cE=8,c1=typeof self=="object"?self:globalThis,eC=(e,t)=>{const r=(s,o)=>(e.set(o,s),s),u=s=>{if(e.has(s))return e.get(s);const[o,c]=t[s];switch(o){case ko:case sE:return r(c,s);case pl:{const d=r([],s);for(const p of c)d.push(u(p));return d}case yo:{const d=r({},s);for(const[p,h]of c)d[u(p)]=u(h);return d}case d0:return r(new Date(c),s);case h0:{const{source:d,flags:p}=c;return r(new RegExp(d,p),s)}case m0:{const d=r(new Map,s);for(const[p,h]of c)d.set(u(p),u(h));return d}case p0:{const d=r(new Set,s);for(const p of c)d.add(u(p));return d}case oE:{const{name:d,message:p}=c;return r(new c1[d](p),s)}case cE:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(new c1[o](c),s)};return u},f1=e=>eC(new Map,e)(0),qi="",{toString:tC}={},{keys:nC}=Object,rl=e=>{const t=typeof e;if(t!=="object"||!e)return[ko,t];const r=tC.call(e).slice(8,-1);switch(r){case"Array":return[pl,qi];case"Object":return[yo,qi];case"Date":return[d0,qi];case"RegExp":return[h0,qi];case"Map":return[m0,qi];case"Set":return[p0,qi];case"DataView":return[pl,r]}return r.includes("Array")?[pl,r]:r.includes("Error")?[oE,r]:[yo,r]},ao=([e,t])=>e===ko&&(t==="function"||t==="symbol"),aC=(e,t,r,u)=>{const s=(c,d)=>{const p=u.push(c)-1;return r.set(d,p),p},o=c=>{if(r.has(c))return r.get(c);let[d,p]=rl(c);switch(d){case ko:{let E=c;switch(p){case"bigint":d=cE,E=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);E=null;break;case"undefined":return s([sE],c)}return s([d,E],c)}case pl:{if(p){let A=c;return p==="DataView"?A=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(A=new Uint8Array(c)),s([p,[...A]],c)}const E=[],g=s([d,E],c);for(const A of c)E.push(o(A));return g}case yo:{if(p)switch(p){case"BigInt":return s([p,c.toString()],c);case"Boolean":case"Number":case"String":return s([p,c.valueOf()],c)}if(t&&"toJSON"in c)return o(c.toJSON());const E=[],g=s([d,E],c);for(const A of nC(c))(e||!ao(rl(c[A])))&&E.push([o(A),o(c[A])]);return g}case d0:return s([d,c.toISOString()],c);case h0:{const{source:E,flags:g}=c;return s([d,{source:E,flags:g}],c)}case m0:{const E=[],g=s([d,E],c);for(const[A,y]of c)(e||!(ao(rl(A))||ao(rl(y))))&&E.push([o(A),o(y)]);return g}case p0:{const E=[],g=s([d,E],c);for(const A of c)(e||!ao(rl(A)))&&E.push(o(A));return g}}const{message:h}=c;return s([d,{name:p,message:h}],c)};return o},d1=(e,{json:t,lossy:r}={})=>{const u=[];return aC(!(t||r),!!t,new Map,u)(e),u},Wi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?f1(d1(e,t)):structuredClone(e):(e,t)=>f1(d1(e,t));function rC(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function iC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function uC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||rC,u=e.options.footnoteBackLabel||iC,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[p]);if(!h)continue;const E=e.all(h),g=String(h.identifier).toUpperCase(),A=au(g.toLowerCase());let y=0;const x=[],R=e.footnoteCounts.get(g);for(;R!==void 0&&++y<=R;){x.length>0&&x.push({type:"text",value:" "});let P=typeof r=="string"?r:r(p,y);typeof P=="string"&&(P={type:"text",value:P}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+A+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,y),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const O=E[E.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const P=O.children[O.children.length-1];P&&P.type==="text"?P.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...x)}else E.push(...x);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+A},children:e.wrap(E,!0)};e.patch(h,C),d.push(C)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Wi(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
17
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
18
+ `}]}}const Ro=(function(e){if(e==null)return cC;if(typeof e=="function")return Do(e);if(typeof e=="object")return Array.isArray(e)?lC(e):sC(e);if(typeof e=="string")return oC(e);throw new Error("Expected function, string, or object as test")});function lC(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ro(e[r]);return Do(u);function u(...s){let o=-1;for(;++o<t.length;)if(t[o].apply(this,s))return!0;return!1}}function sC(e){const t=e;return Do(r);function r(u){const s=u;let o;for(o in e)if(s[o]!==t[o])return!1;return!0}}function oC(e){return Do(t);function t(r){return r&&r.type===e}}function Do(e){return t;function t(r,u,s){return!!(fC(r)&&e.call(this,r,typeof u=="number"?u:void 0,s||void 0))}}function cC(){return!0}function fC(e){return e!==null&&typeof e=="object"&&"type"in e}const fE=[],dC=!0,zd=!1,hC="skip";function dE(e,t,r,u){let s;typeof t=="function"&&typeof r!="function"?(u=r,r=t):s=t;const o=Ro(s),c=u?-1:1;d(e,void 0,[])();function d(p,h,E){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const y=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(A,"name",{value:"node ("+(p.type+(y?"<"+y+">":""))+")"})}return A;function A(){let y=fE,x,R,O;if((!t||o(p,h,E[E.length-1]||void 0))&&(y=mC(r(p,E)),y[0]===zd))return y;if("children"in p&&p.children){const C=p;if(C.children&&y[0]!==hC)for(R=(u?C.children.length:-1)+c,O=E.concat(C);R>-1&&R<C.children.length;){const P=C.children[R];if(x=d(P,R,O)(),x[0]===zd)return x;R=typeof x[1]=="number"?x[1]:R+c}}return y}}}function mC(e){return Array.isArray(e)?e:typeof e=="number"?[dC,e]:e==null?fE:[e]}function wo(e,t,r,u){let s,o,c;typeof t=="function"&&typeof r!="function"?(o=void 0,c=t,s=r):(o=t,c=r,s=u),dE(e,o,d,s);function d(p,h){const E=h[h.length-1],g=E?E.children.indexOf(p):void 0;return c(p,g,E)}}const jd={}.hasOwnProperty,pC={};function gC(e,t){const r=t||pC,u=new Map,s=new Map,o=new Map,c={...J3,...r.handlers},d={all:h,applyData:EC,definitionById:u,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:c,one:p,options:r,patch:bC,wrap:yC};return wo(e,function(E){if(E.type==="definition"||E.type==="footnoteDefinition"){const g=E.type==="definition"?u:s,A=String(E.identifier).toUpperCase();g.has(A)||g.set(A,E)}}),d;function p(E,g){const A=E.type,y=d.handlers[A];if(jd.call(d.handlers,A)&&y)return y(d,E,g);if(d.options.passThrough&&d.options.passThrough.includes(A)){if("children"in E){const{children:R,...O}=E,C=Wi(O);return C.children=d.all(E),C}return Wi(E)}return(d.options.unknownHandler||TC)(d,E,g)}function h(E){const g=[];if("children"in E){const A=E.children;let y=-1;for(;++y<A.length;){const x=d.one(A[y],E);if(x){if(y&&A[y-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=h1(x.value)),!Array.isArray(x)&&x.type==="element")){const R=x.children[0];R&&R.type==="text"&&(R.value=h1(R.value))}Array.isArray(x)?g.push(...x):g.push(x)}}}return g}}function bC(e,t){e.position&&(t.position=i_(e))}function EC(e,t){let r=t;if(e&&e.data){const u=e.data.hName,s=e.data.hChildren,o=e.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const c="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:c}}r.type==="element"&&o&&Object.assign(r.properties,Wi(o)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function TC(e,t){const r=t.data||{},u="value"in t&&!(jd.call(r,"hProperties")||jd.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function yC(e,t){const r=[];let u=-1;for(t&&r.push({type:"text",value:`
19
+ `});++u<e.length;)u&&r.push({type:"text",value:`
20
+ `}),r.push(e[u]);return t&&e.length>0&&r.push({type:"text",value:`
21
+ `}),r}function h1(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function m1(e,t){const r=gC(e,t),u=r.one(e,void 0),s=uC(r),o=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
22
+ `},s),o}function AC(e,t){return e&&"run"in e?async function(r,u){const s=m1(r,{file:u,...t});await e.run(s,u)}:function(r,u){return m1(r,{file:u,...e||t})}}function p1(e){if(e)throw e}var dd,g1;function SC(){if(g1)return dd;g1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},o=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var E=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!E&&!g)return!1;var A;for(A in h);return typeof A>"u"||e.call(h,A)},c=function(h,E){r&&E.name==="__proto__"?r(h,E.name,{enumerable:!0,configurable:!0,value:E.newValue,writable:!0}):h[E.name]=E.newValue},d=function(h,E){if(E==="__proto__")if(e.call(h,E)){if(u)return u(h,E).value}else return;return h[E]};return dd=function p(){var h,E,g,A,y,x,R=arguments[0],O=1,C=arguments.length,P=!1;for(typeof R=="boolean"&&(P=R,R=arguments[1]||{},O=2),(R==null||typeof R!="object"&&typeof R!="function")&&(R={});O<C;++O)if(h=arguments[O],h!=null)for(E in h)g=d(R,E),A=d(h,E),R!==A&&(P&&A&&(o(A)||(y=s(A)))?(y?(y=!1,x=g&&s(g)?g:[]):x=g&&o(g)?g:{},c(R,{name:E,newValue:p(P,x,A)})):typeof A<"u"&&c(R,{name:E,newValue:A}));return R},dd}var _C=SC();const hd=Ol(_C);function Yd(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 xC(){const e=[],t={run:r,use:u};return t;function r(...s){let o=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...s);function d(p,...h){const E=e[++o];let g=-1;if(p){c(p);return}for(;++g<s.length;)(h[g]===null||h[g]===void 0)&&(h[g]=s[g]);s=h,E?CC(E,d)(...h):c(null,...h)}}function u(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function CC(e,t){let r;return u;function u(...c){const d=e.length>c.length;let p;d&&c.push(s);try{p=e.apply(this,c)}catch(h){const E=h;if(d&&r)throw E;return s(E)}d||(p&&p.then&&typeof p.then=="function"?p.then(o,s):p instanceof Error?s(p):o(p))}function s(c,...d){r||(r=!0,t(c,...d))}function o(c){s(null,c)}}const Ia={basename:NC,dirname:vC,extname:OC,join:kC,sep:"/"};function NC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ll(e);let r=0,u=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){r=s+1;break}}else u<0&&(o=!0,u=s+1);return u<0?"":e.slice(r,u)}if(t===e)return"";let c=-1,d=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){r=s+1;break}}else c<0&&(o=!0,c=s+1),d>-1&&(e.codePointAt(s)===t.codePointAt(d--)?d<0&&(u=s):(d=-1,u=c));return r===u?u=c:u<0&&(u=e.length),e.slice(r,u)}function vC(e){if(Ll(e),e.length===0)return".";let t=-1,r=e.length,u;for(;--r;)if(e.codePointAt(r)===47){if(u){t=r;break}}else u||(u=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function OC(e){Ll(e);let t=e.length,r=-1,u=0,s=-1,o=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){u=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||r<0||o===0||o===1&&s===r-1&&s===u+1?"":e.slice(s,r)}function kC(...e){let t=-1,r;for(;++t<e.length;)Ll(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":RC(r)}function RC(e){Ll(e);const t=e.codePointAt(0)===47;let r=DC(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function DC(e,t){let r="",u=0,s=-1,o=0,c=-1,d,p;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(s===c-1||o===1))if(s!==c-1&&o===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",u=0):(r=r.slice(0,p),u=r.length-1-r.lastIndexOf("/")),s=c,o=0;continue}}else if(r.length>0){r="",u=0,s=c,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+e.slice(s+1,c):r=e.slice(s+1,c),u=c-s-1;s=c,o=0}else d===46&&o>-1?o++:o=-1}return r}function Ll(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wC={cwd:LC};function LC(){return"/"}function Gd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function IC(e){if(typeof e=="string")e=new URL(e);else if(!Gd(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 MC(e)}function MC(e){if(e.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const u=t.codePointAt(r+2);if(u===70||u===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 md=["history","path","basename","stem","extname","dirname"];class hE{constructor(t){let r;t?Gd(t)?r={path:t}:typeof t=="string"||BC(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":wC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<md.length;){const o=md[u];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let s;for(s in r)md.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Ia.basename(this.path):void 0}set basename(t){gd(t,"basename"),pd(t,"basename"),this.path=Ia.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ia.dirname(this.path):void 0}set dirname(t){b1(this.basename,"dirname"),this.path=Ia.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ia.extname(this.path):void 0}set extname(t){if(pd(t,"extname"),b1(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=Ia.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Gd(t)&&(t=IC(t)),gd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ia.basename(this.path,this.extname):void 0}set stem(t){gd(t,"stem"),pd(t,"stem"),this.path=Ia.join(this.dirname||"",t+(this.extname||""))}fail(t,r,u){const s=this.message(t,r,u);throw s.fatal=!0,s}info(t,r,u){const s=this.message(t,r,u);return s.fatal=void 0,s}message(t,r,u){const s=new bn(t,r,u);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 pd(e,t){if(e&&e.includes(Ia.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ia.sep+"`")}function gd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function b1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function BC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const HC=(function(e){const u=this.constructor.prototype,s=u[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,u),o}),UC={}.hasOwnProperty;class g0 extends HC{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=xC()}copy(){const t=new g0;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];t.use(...u)}return t.data(hd(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Td("data",this.frozen),this.namespace[t]=r,this):UC.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Td("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const s=r.call(t,...u);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=ro(t),u=this.parser||this.Parser;return bd("parse",u),u(String(r),r)}process(t,r){const u=this;return this.freeze(),bd("process",this.parser||this.Parser),Ed("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(o,c){const d=ro(t),p=u.parse(d);u.run(p,d,function(E,g,A){if(E||!g||!A)return h(E);const y=g,x=u.stringify(y,A);zC(x)?A.value=x:A.result=x,h(E,A)});function h(E,g){E||!g?c(E):o?o(g):r(void 0,g)}}}processSync(t){let r=!1,u;return this.freeze(),bd("processSync",this.parser||this.Parser),Ed("processSync",this.compiler||this.Compiler),this.process(t,s),T1("processSync","process",r),u;function s(o,c){r=!0,p1(o),u=c}}run(t,r,u){E1(t),this.freeze();const s=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?o(void 0,u):new Promise(o);function o(c,d){const p=ro(r);s.run(t,p,h);function h(E,g,A){const y=g||t;E?d(E):c?c(y):u(void 0,y,A)}}}runSync(t,r){let u=!1,s;return this.run(t,r,o),T1("runSync","run",u),s;function o(c,d){p1(c),s=d,u=!0}}stringify(t,r){this.freeze();const u=ro(r),s=this.compiler||this.Compiler;return Ed("stringify",s),E1(t),s(t,u)}use(t,...r){const u=this.attachers,s=this.namespace;if(Td("use",this.frozen),t!=null)if(typeof t=="function")p(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(h){if(typeof h=="function")p(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[E,...g]=h;p(E,g)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(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");d(h.plugins),h.settings&&(s.settings=hd(!0,s.settings,h.settings))}function d(h){let E=-1;if(h!=null)if(Array.isArray(h))for(;++E<h.length;){const g=h[E];o(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function p(h,E){let g=-1,A=-1;for(;++g<u.length;)if(u[g][0]===h){A=g;break}if(A===-1)u.push([h,...E]);else if(E.length>0){let[y,...x]=E;const R=u[A][1];Yd(R)&&Yd(y)&&(y=hd(!0,R,y)),u[A]=[h,y,...x]}}}}const PC=new g0().freeze();function bd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ed(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Td(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 E1(e){if(!Yd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function T1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ro(e){return FC(e)?e:new hE(e)}function FC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function zC(e){return typeof e=="string"||jC(e)}function jC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const YC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",y1=[],A1={allowDangerousHtml:!0},GC=/^(https?|ircs?|mailto|xmpp)$/i,qC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function VC(e){const t=XC(e),r=QC(e);return KC(t.runSync(t.parse(r),r),e)}function XC(e){const t=e.rehypePlugins||y1,r=e.remarkPlugins||y1,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...A1}:A1;return PC().use(v3).use(r).use(AC,u).use(t)}function QC(e){const t=e.children||"",r=new hE;return typeof t=="string"&&(r.value=t),r}function KC(e,t){const r=t.allowedElements,u=t.allowElement,s=t.components,o=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||ZC;for(const E of qC)Object.hasOwn(t,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+YC+E.id,void 0);return wo(e,h),c_(e,{Fragment:Y.Fragment,components:s,ignoreInvalidStyle:!0,jsx:Y.jsx,jsxs:Y.jsxs,passKeys:!0,passNode:!0});function h(E,g,A){if(E.type==="raw"&&A&&typeof g=="number")return c?A.children.splice(g,1):A.children[g]={type:"text",value:E.value},g;if(E.type==="element"){let y;for(y in od)if(Object.hasOwn(od,y)&&Object.hasOwn(E.properties,y)){const x=E.properties[y],R=od[y];(R===null||R.includes(E.tagName))&&(E.properties[y]=p(String(x||""),y,E))}}if(E.type==="element"){let y=r?!r.includes(E.tagName):o?o.includes(E.tagName):!1;if(!y&&u&&typeof g=="number"&&(y=!u(E,g,A)),y&&A&&typeof g=="number")return d&&E.children?A.children.splice(g,1,...E.children):A.children.splice(g,1),g}}}function ZC(e){const t=e.indexOf(":"),r=e.indexOf("?"),u=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||r!==-1&&t>r||u!==-1&&t>u||GC.test(e.slice(0,t))?e:""}const S1=/[#.]/g;function $C(e,t){const r=e||"",u={};let s=0,o,c;for(;s<r.length;){S1.lastIndex=s;const d=S1.exec(r),p=r.slice(s,d?d.index:r.length);p&&(o?o==="#"?u.id=p:Array.isArray(u.className)?u.className.push(p):u.className=[p]:c=p,s+=p.length),d&&(o=d[0],s++)}return{type:"element",tagName:c||t||"div",properties:u,children:[]}}function mE(e,t,r){const u=r?tN(r):void 0;function s(o,c,...d){let p;if(o==null){p={type:"root",children:[]};const h=c;d.unshift(h)}else{p=$C(o,t);const h=p.tagName.toLowerCase(),E=u?u.get(h):void 0;if(p.tagName=E||h,WC(c))d.unshift(c);else for(const[g,A]of Object.entries(c))JC(e,p.properties,g,A)}for(const h of d)qd(p.children,h);return p.type==="element"&&p.tagName==="template"&&(p.content={type:"root",children:p.children},p.children=[]),p}return s}function WC(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const u of r){const s=t[u];if(s&&typeof s=="object"){if(!Array.isArray(s))return!0;const o=s;for(const c of o)if(typeof c!="number"&&typeof c!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function JC(e,t,r,u){const s=Co(e,r);let o;if(u!=null){if(typeof u=="number"){if(Number.isNaN(u))return;o=u}else typeof u=="boolean"?o=u:typeof u=="string"?s.spaceSeparated?o=Yg(u):s.commaSeparated?o=Ug(u):s.commaOrSpaceSeparated?o=Yg(Ug(u).join(" ")):o=_1(s,s.property,u):Array.isArray(u)?o=[...u]:o=s.property==="style"?eN(u):String(u);if(Array.isArray(o)){const c=[];for(const d of o)c.push(_1(s,s.property,d));o=c}s.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[s.property]=o}}function qd(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 r of t)qd(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?qd(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function _1(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Sl(r)===Sl(t)))return!0}return r}function eN(e){const t=[];for(const[r,u]of Object.entries(e))t.push([r,u].join(": "));return t.join("; ")}function tN(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const nN=["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"],pE=mE(Dl,"div"),aN=mE(Br,"g",nN);function rN(e){const t=String(e),r=[];return{toOffset:s,toPoint:u};function u(o){if(typeof o=="number"&&o>-1&&o<=t.length){let c=0;for(;;){let d=r[c];if(d===void 0){const p=x1(t,r[c-1]);d=p===-1?t.length+1:p+1,r[c]=d}if(d>o)return{line:c+1,column:o-(c>0?r[c-1]:0)+1,offset:o};c++}}}function s(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;r.length<o.line;){const d=r[r.length-1],p=x1(t,d),h=p===-1?t.length+1:p+1;if(d===h)break;r.push(h)}const c=(o.line>1?r[o.line-2]:0)+o.column-1;if(c<r[o.line-1])return c}}}function x1(e,t){const r=e.indexOf("\r",t),u=e.indexOf(`
23
+ `,t);return u===-1?r:r===-1||r+1===u?u:r<u?r:u}const ni={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/"},gE={}.hasOwnProperty,iN=Object.prototype;function uN(e,t){const r=t||{};return b0({file:r.file||void 0,location:!1,schema:r.space==="svg"?Br:Dl,verbose:r.verbose||!1},e)}function b0(e,t){let r;switch(t.nodeName){case"#comment":{const u=t;return r={type:"comment",value:u.data},ho(e,u,r),r}case"#document":case"#document-fragment":{const u=t,s="mode"in u?u.mode==="quirks"||u.mode==="limited-quirks":!1;if(r={type:"root",children:bE(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const o=String(e.file),c=rN(o),d=c.toPoint(0),p=c.toPoint(o.length);r.position={start:d,end:p}}return r}case"#documentType":{const u=t;return r={type:"doctype"},ho(e,u,r),r}case"#text":{const u=t;return r={type:"text",value:u.value},ho(e,u,r),r}default:return r=lN(e,t),r}}function bE(e,t){let r=-1;const u=[];for(;++r<t.length;){const s=b0(e,t[r]);u.push(s)}return u}function lN(e,t){const r=e.schema;e.schema=t.namespaceURI===ni.svg?Br:Dl;let u=-1;const s={};for(;++u<t.attrs.length;){const d=t.attrs[u],p=(d.prefix?d.prefix+":":"")+d.name;gE.call(iN,p)||(s[p]=d.value)}const c=(e.schema.space==="svg"?aN:pE)(t.tagName,s,bE(e,t.childNodes));if(ho(e,t,c),c.tagName==="template"){const d=t,p=d.sourceCodeLocation,h=p&&p.startTag&&Qi(p.startTag),E=p&&p.endTag&&Qi(p.endTag),g=b0(e,d.content);h&&E&&e.file&&(g.position={start:h.end,end:E.start}),c.content=g}return e.schema=r,c}function ho(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const u=sN(e,r,t.sourceCodeLocation);u&&(e.location=!0,r.position=u)}}function sN(e,t,r){const u=Qi(r);if(t.type==="element"){const s=t.children[t.children.length-1];if(u&&!r.endTag&&s&&s.position&&s.position.end&&(u.end=Object.assign({},s.position.end)),e.verbose){const o={};let c;if(r.attrs)for(c in r.attrs)gE.call(r.attrs,c)&&(o[Co(e.schema,c).property]=Qi(r.attrs[c]));r.startTag;const d=Qi(r.startTag),p=r.endTag?Qi(r.endTag):void 0,h={opening:d};p&&(h.closing=p),h.properties=o,t.data={position:h}}}return u}function Qi(e){const t=C1({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=C1({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function C1(e){return e.line&&e.column?e:void 0}const N1={}.hasOwnProperty;function EE(e,t){const r=t||{};function u(s,...o){let c=u.invalid;const d=u.handlers;if(s&&N1.call(s,e)){const p=String(s[e]);c=N1.call(d,p)?d[p]:u.unknown}if(c)return c.call(this,s,...o)}return u.handlers=r.handlers||{},u.invalid=r.invalid,u.unknown=r.unknown,u}const oN={},cN={}.hasOwnProperty,TE=EE("type",{handlers:{root:dN,element:bN,text:pN,comment:gN,doctype:mN}});function fN(e,t){const u=(t||oN).space;return TE(e,u==="svg"?Br:Dl)}function dN(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=E0(e.children,r,t),ru(e,r),r}function hN(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=E0(e.children,r,t),ru(e,r),r}function mN(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ru(e,t),t}function pN(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ru(e,t),t}function gN(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ru(e,t),t}function bN(e,t){const r=t;let u=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(u=Br);const s=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&cN.call(e.properties,o)){const p=EN(u,o,e.properties[o]);p&&s.push(p)}}const c=u.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:ni[c],childNodes:[],parentNode:null};return d.childNodes=E0(e.children,d,u),ru(e,d),e.tagName==="template"&&e.content&&(d.content=hN(e.content,u)),d}function EN(e,t,r){const u=Co(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&u.boolean)return;Array.isArray(r)&&(r=u.commaSeparated?wb(r):Fb(r));const s={name:u.attribute,value:r===!0?"":String(r)};if(u.space&&u.space!=="html"&&u.space!=="svg"){const o=s.name.indexOf(":");o<0?s.prefix="":(s.name=s.name.slice(o+1),s.prefix=u.attribute.slice(0,o)),s.namespace=ni[u.space]}return s}function E0(e,t,r){let u=-1;const s=[];if(e)for(;++u<e.length;){const o=TE(e[u],r);o.parentNode=t,s.push(o)}return s}function ru(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const TN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],yN=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]),xt="�";var N;(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"})(N||(N={}));const In={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function yE(e){return e>=55296&&e<=57343}function AN(e){return e>=56320&&e<=57343}function SN(e,t){return(e-55296)*1024+9216+t}function AE(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function SE(e){return e>=64976&&e<=65007||yN.has(e)}var $;(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"})($||($={}));const _N=65536;class xN{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=_N,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,r){const{line:u,col:s,offset:o}=this,c=s+r,d=o+r;return{code:t,startLine:u,endLine:u,startCol:c,endCol:c,startOffset:d,endOffset:d}}_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 r=this.html.charCodeAt(this.pos+1);if(AN(r))return this.pos++,this._addGap(),SN(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,N.EOF;return this._err($.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,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let u=0;u<t.length;u++)if((this.html.charCodeAt(this.pos+u)|32)!==t.charCodeAt(u))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,N.EOF;const u=this.html.charCodeAt(r);return u===N.CARRIAGE_RETURN?N.LINE_FEED:u}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,N.EOF;let t=this.html.charCodeAt(this.pos);return t===N.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,N.LINE_FEED):t===N.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,yE(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===N.LINE_FEED||t===N.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){AE(t)?this._err($.controlCharacterInInputStream):SE(t)&&this._err($.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Xe;(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"})(Xe||(Xe={}));function _E(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const CN=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))),NN=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 vN(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=NN.get(e))!==null&&t!==void 0?t:e}var an;(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"})(an||(an={}));const ON=32;var Ir;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ir||(Ir={}));function Vd(e){return e>=an.ZERO&&e<=an.NINE}function kN(e){return e>=an.UPPER_A&&e<=an.UPPER_F||e>=an.LOWER_A&&e<=an.LOWER_F}function RN(e){return e>=an.UPPER_A&&e<=an.UPPER_Z||e>=an.LOWER_A&&e<=an.LOWER_Z||Vd(e)}function DN(e){return e===an.EQUALS||RN(e)}var tn;(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"})(tn||(tn={}));var ir;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ir||(ir={}));class wN{constructor(t,r,u){this.decodeTree=t,this.emitCodePoint=r,this.errors=u,this.state=tn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ir.Strict}startEntity(t){this.decodeMode=t,this.state=tn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case tn.EntityStart:return t.charCodeAt(r)===an.NUM?(this.state=tn.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=tn.NamedEntity,this.stateNamedEntity(t,r));case tn.NumericStart:return this.stateNumericStart(t,r);case tn.NumericDecimal:return this.stateNumericDecimal(t,r);case tn.NumericHex:return this.stateNumericHex(t,r);case tn.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|ON)===an.LOWER_X?(this.state=tn.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=tn.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,u,s){if(r!==u){const o=u-r;this.result=this.result*Math.pow(s,o)+Number.parseInt(t.substr(r,o),s),this.consumed+=o}}stateNumericHex(t,r){const u=r;for(;r<t.length;){const s=t.charCodeAt(r);if(Vd(s)||kN(s))r+=1;else return this.addToNumericResult(t,u,r,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,u,r,16),-1}stateNumericDecimal(t,r){const u=r;for(;r<t.length;){const s=t.charCodeAt(r);if(Vd(s))r+=1;else return this.addToNumericResult(t,u,r,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,u,r,10),-1}emitNumericEntity(t,r){var u;if(this.consumed<=r)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===an.SEMI)this.consumed+=1;else if(this.decodeMode===ir.Strict)return 0;return this.emitCodePoint(vN(this.result),this.consumed),this.errors&&(t!==an.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:u}=this;let s=u[this.treeIndex],o=(s&Ir.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const c=t.charCodeAt(r);if(this.treeIndex=LN(u,s,this.treeIndex+Math.max(1,o),c),this.treeIndex<0)return this.result===0||this.decodeMode===ir.Attribute&&(o===0||DN(c))?0:this.emitNotTerminatedNamedEntity();if(s=u[this.treeIndex],o=(s&Ir.VALUE_LENGTH)>>14,o!==0){if(c===an.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==ir.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:u}=this,s=(u[r]&Ir.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,u){const{decodeTree:s}=this;return this.emitCodePoint(r===1?s[t]&~Ir.VALUE_LENGTH:s[t+1],u),r===3&&this.emitCodePoint(s[t+2],u),u}end(){var t;switch(this.state){case tn.NamedEntity:return this.result!==0&&(this.decodeMode!==ir.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tn.NumericDecimal:return this.emitNumericEntity(0,2);case tn.NumericHex:return this.emitNumericEntity(0,3);case tn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tn.EntityStart:return 0}}}function LN(e,t,r,u){const s=(t&Ir.BRANCH_LENGTH)>>7,o=t&Ir.JUMP_TABLE;if(s===0)return o!==0&&u===o?r:-1;if(o){const p=u-o;return p<0||p>=s?-1:e[r+p]-1}let c=r,d=c+s-1;for(;c<=d;){const p=c+d>>>1,h=e[p];if(h<u)c=p+1;else if(h>u)d=p-1;else return e[p+s]}return-1}var de;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(de||(de={}));var ai;(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"})(ai||(ai={}));var fa;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(fa||(fa={}));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 b;(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"})(b||(b={}));const IN=new Map([[j.A,b.A],[j.ADDRESS,b.ADDRESS],[j.ANNOTATION_XML,b.ANNOTATION_XML],[j.APPLET,b.APPLET],[j.AREA,b.AREA],[j.ARTICLE,b.ARTICLE],[j.ASIDE,b.ASIDE],[j.B,b.B],[j.BASE,b.BASE],[j.BASEFONT,b.BASEFONT],[j.BGSOUND,b.BGSOUND],[j.BIG,b.BIG],[j.BLOCKQUOTE,b.BLOCKQUOTE],[j.BODY,b.BODY],[j.BR,b.BR],[j.BUTTON,b.BUTTON],[j.CAPTION,b.CAPTION],[j.CENTER,b.CENTER],[j.CODE,b.CODE],[j.COL,b.COL],[j.COLGROUP,b.COLGROUP],[j.DD,b.DD],[j.DESC,b.DESC],[j.DETAILS,b.DETAILS],[j.DIALOG,b.DIALOG],[j.DIR,b.DIR],[j.DIV,b.DIV],[j.DL,b.DL],[j.DT,b.DT],[j.EM,b.EM],[j.EMBED,b.EMBED],[j.FIELDSET,b.FIELDSET],[j.FIGCAPTION,b.FIGCAPTION],[j.FIGURE,b.FIGURE],[j.FONT,b.FONT],[j.FOOTER,b.FOOTER],[j.FOREIGN_OBJECT,b.FOREIGN_OBJECT],[j.FORM,b.FORM],[j.FRAME,b.FRAME],[j.FRAMESET,b.FRAMESET],[j.H1,b.H1],[j.H2,b.H2],[j.H3,b.H3],[j.H4,b.H4],[j.H5,b.H5],[j.H6,b.H6],[j.HEAD,b.HEAD],[j.HEADER,b.HEADER],[j.HGROUP,b.HGROUP],[j.HR,b.HR],[j.HTML,b.HTML],[j.I,b.I],[j.IMG,b.IMG],[j.IMAGE,b.IMAGE],[j.INPUT,b.INPUT],[j.IFRAME,b.IFRAME],[j.KEYGEN,b.KEYGEN],[j.LABEL,b.LABEL],[j.LI,b.LI],[j.LINK,b.LINK],[j.LISTING,b.LISTING],[j.MAIN,b.MAIN],[j.MALIGNMARK,b.MALIGNMARK],[j.MARQUEE,b.MARQUEE],[j.MATH,b.MATH],[j.MENU,b.MENU],[j.META,b.META],[j.MGLYPH,b.MGLYPH],[j.MI,b.MI],[j.MO,b.MO],[j.MN,b.MN],[j.MS,b.MS],[j.MTEXT,b.MTEXT],[j.NAV,b.NAV],[j.NOBR,b.NOBR],[j.NOFRAMES,b.NOFRAMES],[j.NOEMBED,b.NOEMBED],[j.NOSCRIPT,b.NOSCRIPT],[j.OBJECT,b.OBJECT],[j.OL,b.OL],[j.OPTGROUP,b.OPTGROUP],[j.OPTION,b.OPTION],[j.P,b.P],[j.PARAM,b.PARAM],[j.PLAINTEXT,b.PLAINTEXT],[j.PRE,b.PRE],[j.RB,b.RB],[j.RP,b.RP],[j.RT,b.RT],[j.RTC,b.RTC],[j.RUBY,b.RUBY],[j.S,b.S],[j.SCRIPT,b.SCRIPT],[j.SEARCH,b.SEARCH],[j.SECTION,b.SECTION],[j.SELECT,b.SELECT],[j.SOURCE,b.SOURCE],[j.SMALL,b.SMALL],[j.SPAN,b.SPAN],[j.STRIKE,b.STRIKE],[j.STRONG,b.STRONG],[j.STYLE,b.STYLE],[j.SUB,b.SUB],[j.SUMMARY,b.SUMMARY],[j.SUP,b.SUP],[j.TABLE,b.TABLE],[j.TBODY,b.TBODY],[j.TEMPLATE,b.TEMPLATE],[j.TEXTAREA,b.TEXTAREA],[j.TFOOT,b.TFOOT],[j.TD,b.TD],[j.TH,b.TH],[j.THEAD,b.THEAD],[j.TITLE,b.TITLE],[j.TR,b.TR],[j.TRACK,b.TRACK],[j.TT,b.TT],[j.U,b.U],[j.UL,b.UL],[j.SVG,b.SVG],[j.VAR,b.VAR],[j.WBR,b.WBR],[j.XMP,b.XMP]]);function iu(e){var t;return(t=IN.get(e))!==null&&t!==void 0?t:b.UNKNOWN}const me=b,MN={[de.HTML]:new Set([me.ADDRESS,me.APPLET,me.AREA,me.ARTICLE,me.ASIDE,me.BASE,me.BASEFONT,me.BGSOUND,me.BLOCKQUOTE,me.BODY,me.BR,me.BUTTON,me.CAPTION,me.CENTER,me.COL,me.COLGROUP,me.DD,me.DETAILS,me.DIR,me.DIV,me.DL,me.DT,me.EMBED,me.FIELDSET,me.FIGCAPTION,me.FIGURE,me.FOOTER,me.FORM,me.FRAME,me.FRAMESET,me.H1,me.H2,me.H3,me.H4,me.H5,me.H6,me.HEAD,me.HEADER,me.HGROUP,me.HR,me.HTML,me.IFRAME,me.IMG,me.INPUT,me.LI,me.LINK,me.LISTING,me.MAIN,me.MARQUEE,me.MENU,me.META,me.NAV,me.NOEMBED,me.NOFRAMES,me.NOSCRIPT,me.OBJECT,me.OL,me.P,me.PARAM,me.PLAINTEXT,me.PRE,me.SCRIPT,me.SECTION,me.SELECT,me.SOURCE,me.STYLE,me.SUMMARY,me.TABLE,me.TBODY,me.TD,me.TEMPLATE,me.TEXTAREA,me.TFOOT,me.TH,me.THEAD,me.TITLE,me.TR,me.TRACK,me.UL,me.WBR,me.XMP]),[de.MATHML]:new Set([me.MI,me.MO,me.MN,me.MS,me.MTEXT,me.ANNOTATION_XML]),[de.SVG]:new Set([me.TITLE,me.FOREIGN_OBJECT,me.DESC]),[de.XLINK]:new Set,[de.XML]:new Set,[de.XMLNS]:new Set},Xd=new Set([me.H1,me.H2,me.H3,me.H4,me.H5,me.H6]);j.STYLE,j.SCRIPT,j.XMP,j.IFRAME,j.NOEMBED,j.NOFRAMES,j.PLAINTEXT;var v;(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"})(v||(v={}));const Mt={DATA:v.DATA,RCDATA:v.RCDATA,RAWTEXT:v.RAWTEXT,SCRIPT_DATA:v.SCRIPT_DATA,PLAINTEXT:v.PLAINTEXT,CDATA_SECTION:v.CDATA_SECTION};function BN(e){return e>=N.DIGIT_0&&e<=N.DIGIT_9}function dl(e){return e>=N.LATIN_CAPITAL_A&&e<=N.LATIN_CAPITAL_Z}function HN(e){return e>=N.LATIN_SMALL_A&&e<=N.LATIN_SMALL_Z}function wr(e){return HN(e)||dl(e)}function v1(e){return wr(e)||BN(e)}function io(e){return e+32}function xE(e){return e===N.SPACE||e===N.LINE_FEED||e===N.TABULATION||e===N.FORM_FEED}function O1(e){return xE(e)||e===N.SOLIDUS||e===N.GREATER_THAN_SIGN}function UN(e){return e===N.NULL?$.nullCharacterReference:e>1114111?$.characterReferenceOutsideUnicodeRange:yE(e)?$.surrogateCharacterReference:SE(e)?$.noncharacterCharacterReference:AE(e)||e===N.CARRIAGE_RETURN?$.controlCharacterReference:null}class PN{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=v.DATA,this.returnState=v.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new xN(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new wN(CN,(u,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(u)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err($.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:u=>{this._err($.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+u)},validateNumericCharacterReference:u=>{const s=UN(u);s&&this._err(s,1)}}:void 0)}_err(t,r=0){var u,s;(s=(u=this.handler).onParseError)===null||s===void 0||s.call(u,this.preprocessor.getError(t,r))}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,r,u){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||u?.()}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 r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Xe.START_TAG,tagName:"",tagID:b.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Xe.END_TAG,tagName:"",tagID:b.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Xe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Xe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const u=this.currentToken;if(_E(u,this.currentAttr.name)===null){if(u.attrs.push(this.currentAttr),u.location&&this.currentLocation){const s=(t=(r=u.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err($.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=iu(t.tagName),t.type===Xe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err($.endTagWithAttributes),t.selfClosing&&this._err($.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 Xe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Xe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Xe.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:Xe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=xE(t)?Xe.WHITESPACE_CHARACTER:t===N.NULL?Xe.NULL_CHARACTER:Xe.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Xe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=v.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ir.Attribute:ir.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===v.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===v.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===v.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case v.DATA:{this._stateData(t);break}case v.RCDATA:{this._stateRcdata(t);break}case v.RAWTEXT:{this._stateRawtext(t);break}case v.SCRIPT_DATA:{this._stateScriptData(t);break}case v.PLAINTEXT:{this._statePlaintext(t);break}case v.TAG_OPEN:{this._stateTagOpen(t);break}case v.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case v.TAG_NAME:{this._stateTagName(t);break}case v.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case v.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case v.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case v.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case v.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case v.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case v.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case v.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case v.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case v.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case v.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case v.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case v.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case v.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case v.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case v.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case v.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case v.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case v.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case v.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case v.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case v.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case v.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case v.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case v.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case v.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case v.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case v.BOGUS_COMMENT:{this._stateBogusComment(t);break}case v.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case v.COMMENT_START:{this._stateCommentStart(t);break}case v.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case v.COMMENT:{this._stateComment(t);break}case v.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case v.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case v.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case v.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case v.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case v.COMMENT_END:{this._stateCommentEnd(t);break}case v.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case v.DOCTYPE:{this._stateDoctype(t);break}case v.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case v.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case v.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case v.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case v.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case v.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case v.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case v.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case v.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case v.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case v.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case v.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case v.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case v.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case v.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case v.CDATA_SECTION:{this._stateCdataSection(t);break}case v.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case v.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case v.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case v.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=v.TAG_OPEN;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err($.unexpectedNullCharacter),this._emitCodePoint(t);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case N.AMPERSAND:{this._startCharacterReference();break}case N.LESS_THAN_SIGN:{this.state=v.RCDATA_LESS_THAN_SIGN;break}case N.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(xt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case N.LESS_THAN_SIGN:{this.state=v.RAWTEXT_LESS_THAN_SIGN;break}case N.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(xt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_LESS_THAN_SIGN;break}case N.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(xt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case N.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(xt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(wr(t))this._createStartTagToken(),this.state=v.TAG_NAME,this._stateTagName(t);else switch(t){case N.EXCLAMATION_MARK:{this.state=v.MARKUP_DECLARATION_OPEN;break}case N.SOLIDUS:{this.state=v.END_TAG_OPEN;break}case N.QUESTION_MARK:{this._err($.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=v.BOGUS_COMMENT,this._stateBogusComment(t);break}case N.EOF:{this._err($.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=v.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(wr(t))this._createEndTagToken(),this.state=v.TAG_NAME,this._stateTagName(t);else switch(t){case N.GREATER_THAN_SIGN:{this._err($.missingEndTagName),this.state=v.DATA;break}case N.EOF:{this._err($.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=v.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=v.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this.state=v.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err($.unexpectedNullCharacter),r.tagName+=xt;break}case N.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(dl(t)?io(t):t)}}_stateRcdataLessThanSign(t){t===N.SOLIDUS?this.state=v.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=v.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){wr(t)?(this.state=v.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=v.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=v.BEFORE_ATTRIBUTE_NAME,!1;case N.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=v.SELF_CLOSING_START_TAG,!1;case N.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=v.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=v.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===N.SOLIDUS?this.state=v.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=v.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){wr(t)?(this.state=v.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=v.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=v.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case N.SOLIDUS:{this.state=v.SCRIPT_DATA_END_TAG_OPEN;break}case N.EXCLAMATION_MARK:{this.state=v.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=v.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){wr(t)?(this.state=v.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=v.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=v.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===N.HYPHEN_MINUS?(this.state=v.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=v.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===N.HYPHEN_MINUS?(this.state=v.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=v.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case N.HYPHEN_MINUS:{this.state=v.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(xt);break}case N.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=v.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err($.unexpectedNullCharacter),this.state=v.SCRIPT_DATA_ESCAPED,this._emitChars(xt);break}case N.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=v.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.GREATER_THAN_SIGN:{this.state=v.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err($.unexpectedNullCharacter),this.state=v.SCRIPT_DATA_ESCAPED,this._emitChars(xt);break}case N.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=v.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===N.SOLIDUS?this.state=v.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:wr(t)?(this._emitChars("<"),this.state=v.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=v.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){wr(t)?(this.state=v.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=v.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=v.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(In.SCRIPT,!1)&&O1(this.preprocessor.peek(In.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<In.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=v.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case N.HYPHEN_MINUS:{this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(xt);break}case N.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err($.unexpectedNullCharacter),this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xt);break}case N.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.GREATER_THAN_SIGN:{this.state=v.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err($.unexpectedNullCharacter),this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xt);break}case N.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===N.SOLIDUS?(this.state=v.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(In.SCRIPT,!1)&&O1(this.preprocessor.peek(In.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<In.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=v.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=v.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this.state=v.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._err($.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=v.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=v.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this._leaveAttrName(),this.state=v.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._leaveAttrName(),this.state=v.BEFORE_ATTRIBUTE_VALUE;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:{this._err($.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case N.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.name+=xt;break}default:this.currentAttr.name+=String.fromCodePoint(dl(t)?io(t):t)}}_stateAfterAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:{this.state=v.SELF_CLOSING_START_TAG;break}case N.EQUALS_SIGN:{this.state=v.BEFORE_ATTRIBUTE_VALUE;break}case N.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=v.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{this.state=v.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this.state=v.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err($.missingAttributeValue),this.state=v.DATA,this.emitCurrentTagToken();break}default:this.state=v.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case N.QUOTATION_MARK:{this.state=v.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=xt;break}case N.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case N.APOSTROPHE:{this.state=v.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=xt;break}case N.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=v.BEFORE_ATTRIBUTE_NAME;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=v.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=xt;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:case N.EQUALS_SIGN:case N.GRAVE_ACCENT:{this._err($.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case N.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=v.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this._leaveAttrValue(),this.state=v.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=v.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.missingWhitespaceBetweenAttributes),this.state=v.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case N.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=v.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.unexpectedSolidusInTag),this.state=v.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentComment(r);break}case N.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case N.NULL:{this._err($.unexpectedNullCharacter),r.data+=xt;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(In.DASH_DASH,!0)?(this._createCommentToken(In.DASH_DASH.length+1),this.state=v.COMMENT_START):this._consumeSequenceIfMatch(In.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(In.DOCTYPE.length+1),this.state=v.DOCTYPE):this._consumeSequenceIfMatch(In.CDATA_START,!0)?this.inForeignNode?this.state=v.CDATA_SECTION:(this._err($.cdataInHtmlContent),this._createCommentToken(In.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=v.BOGUS_COMMENT):this._ensureHibernation()||(this._err($.incorrectlyOpenedComment),this._createCommentToken(2),this.state=v.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case N.HYPHEN_MINUS:{this.state=v.COMMENT_START_DASH;break}case N.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=v.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=v.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=v.COMMENT_END;break}case N.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=v.DATA,this.emitCurrentComment(r);break}case N.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=v.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=v.COMMENT_END_DASH;break}case N.LESS_THAN_SIGN:{r.data+="<",this.state=v.COMMENT_LESS_THAN_SIGN;break}case N.NULL:{this._err($.unexpectedNullCharacter),r.data+=xt;break}case N.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case N.EXCLAMATION_MARK:{r.data+="!",this.state=v.COMMENT_LESS_THAN_SIGN_BANG;break}case N.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=v.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===N.HYPHEN_MINUS?this.state=v.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=v.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===N.HYPHEN_MINUS?this.state=v.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=v.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==N.GREATER_THAN_SIGN&&t!==N.EOF&&this._err($.nestedComment),this.state=v.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=v.COMMENT_END;break}case N.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=v.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentComment(r);break}case N.EXCLAMATION_MARK:{this.state=v.COMMENT_END_BANG;break}case N.HYPHEN_MINUS:{r.data+="-";break}case N.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=v.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{r.data+="--!",this.state=v.COMMENT_END_DASH;break}case N.GREATER_THAN_SIGN:{this._err($.incorrectlyClosedComment),this.state=v.DATA,this.emitCurrentComment(r);break}case N.EOF:{this._err($.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=v.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=v.BEFORE_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=v.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case N.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingWhitespaceBeforeDoctypeName),this.state=v.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(dl(t))this._createDoctypeToken(String.fromCharCode(io(t))),this.state=v.DOCTYPE_NAME;else switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.NULL:{this._err($.unexpectedNullCharacter),this._createDoctypeToken(xt),this.state=v.DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this._err($.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=v.DATA;break}case N.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=v.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=v.AFTER_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentDoctype(r);break}case N.NULL:{this._err($.unexpectedNullCharacter),r.name+=xt;break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(dl(t)?io(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(In.PUBLIC,!1)?this.state=v.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(In.SYSTEM,!1)?this.state=v.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err($.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=v.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=v.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=v.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=v.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{r.publicId="",this.state=v.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.publicId="",this.state=v.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=v.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=v.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err($.unexpectedNullCharacter),r.publicId+=xt;break}case N.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=v.DATA;break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case N.APOSTROPHE:{this.state=v.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err($.unexpectedNullCharacter),r.publicId+=xt;break}case N.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=v.DATA;break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=v.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case N.GREATER_THAN_SIGN:{this.state=v.DATA,this.emitCurrentDoctype(r);break}case N.QUOTATION_MARK:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=v.DATA;break}case N.QUOTATION_MARK:{r.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=v.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=v.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{r.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.systemId="",this.state=v.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=v.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=v.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err($.unexpectedNullCharacter),r.systemId+=xt;break}case N.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=v.DATA;break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case N.APOSTROPHE:{this.state=v.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err($.unexpectedNullCharacter),r.systemId+=xt;break}case N.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=v.DATA;break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=v.DATA;break}case N.EOF:{this._err($.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err($.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=v.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=v.DATA;break}case N.NULL:{this._err($.unexpectedNullCharacter);break}case N.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case N.RIGHT_SQUARE_BRACKET:{this.state=v.CDATA_SECTION_BRACKET;break}case N.EOF:{this._err($.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===N.RIGHT_SQUARE_BRACKET?this.state=v.CDATA_SECTION_END:(this._emitChars("]"),this.state=v.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case N.GREATER_THAN_SIGN:{this.state=v.DATA;break}case N.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=v.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(N.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&v1(this.preprocessor.peek(1))?v.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){v1(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===N.SEMICOLON&&this._err($.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const CE=new Set([b.DD,b.DT,b.LI,b.OPTGROUP,b.OPTION,b.P,b.RB,b.RP,b.RT,b.RTC]),k1=new Set([...CE,b.CAPTION,b.COLGROUP,b.TBODY,b.TD,b.TFOOT,b.TH,b.THEAD,b.TR]),Ao=new Set([b.APPLET,b.CAPTION,b.HTML,b.MARQUEE,b.OBJECT,b.TABLE,b.TD,b.TEMPLATE,b.TH]),FN=new Set([...Ao,b.OL,b.UL]),zN=new Set([...Ao,b.BUTTON]),R1=new Set([b.ANNOTATION_XML,b.MI,b.MN,b.MO,b.MS,b.MTEXT]),D1=new Set([b.DESC,b.FOREIGN_OBJECT,b.TITLE]),jN=new Set([b.TR,b.TEMPLATE,b.HTML]),YN=new Set([b.TBODY,b.TFOOT,b.THEAD,b.TEMPLATE,b.HTML]),GN=new Set([b.TABLE,b.TEMPLATE,b.HTML]),qN=new Set([b.TD,b.TH]);class VN{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,u){this.treeAdapter=r,this.handler=u,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=b.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===b.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===de.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const u=this._indexOf(t);this.items[u]=r,u===this.stackTop&&(this.current=r)}insertAfter(t,r,u){const s=this._indexOf(t)+1;this.items.splice(s,0,r),this.tagIDs.splice(s,0,u),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 r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==de.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const u=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(u,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Xd,de.HTML)}popUntilTableCellPopped(){this.popUntilPopped(qN,de.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let u=this.stackTop;u>=0;u--)if(t.has(this.tagIDs[u])&&this.treeAdapter.getNamespaceURI(this.items[u])===r)return u;return-1}clearBackTo(t,r){const u=this._indexOfTagNames(t,r);this.shortenToLength(u+1)}clearBackToTableContext(){this.clearBackTo(GN,de.HTML)}clearBackToTableBodyContext(){this.clearBackTo(YN,de.HTML)}clearBackToTableRowContext(){this.clearBackTo(jN,de.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===b.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===b.HTML}hasInDynamicScope(t,r){for(let u=this.stackTop;u>=0;u--){const s=this.tagIDs[u];switch(this.treeAdapter.getNamespaceURI(this.items[u])){case de.HTML:{if(s===t)return!0;if(r.has(s))return!1;break}case de.SVG:{if(D1.has(s))return!1;break}case de.MATHML:{if(R1.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ao)}hasInListItemScope(t){return this.hasInDynamicScope(t,FN)}hasInButtonScope(t){return this.hasInDynamicScope(t,zN)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case de.HTML:{if(Xd.has(r))return!0;if(Ao.has(r))return!1;break}case de.SVG:{if(D1.has(r))return!1;break}case de.MATHML:{if(R1.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===de.HTML)switch(this.tagIDs[r]){case t:return!0;case b.TABLE:case b.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===de.HTML)switch(this.tagIDs[t]){case b.TBODY:case b.THEAD:case b.TFOOT:return!0;case b.TABLE:case b.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===de.HTML)switch(this.tagIDs[r]){case t:return!0;case b.OPTION:case b.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&CE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&k1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&k1.has(this.currentTagId);)this.pop()}}const yd=3;var Ma;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ma||(Ma={}));const w1={type:Ma.Marker};class XN{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const u=[],s=r.length,o=this.treeAdapter.getTagName(t),c=this.treeAdapter.getNamespaceURI(t);for(let d=0;d<this.entries.length;d++){const p=this.entries[d];if(p.type===Ma.Marker)break;const{element:h}=p;if(this.treeAdapter.getTagName(h)===o&&this.treeAdapter.getNamespaceURI(h)===c){const E=this.treeAdapter.getAttrList(h);E.length===s&&u.push({idx:d,attrs:E})}}return u}_ensureNoahArkCondition(t){if(this.entries.length<yd)return;const r=this.treeAdapter.getAttrList(t),u=this._getNoahArkConditionCandidates(t,r);if(u.length<yd)return;const s=new Map(r.map(c=>[c.name,c.value]));let o=0;for(let c=0;c<u.length;c++){const d=u[c];d.attrs.every(p=>s.get(p.name)===p.value)&&(o+=1,o>=yd&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(w1)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ma.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const u=this.entries.indexOf(this.bookmark);this.entries.splice(u,0,{type:Ma.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(w1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(u=>u.type===Ma.Marker||this.treeAdapter.getTagName(u.element)===t);return r&&r.type===Ma.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Ma.Element&&r.element===t)}}const Lr={createDocument(){return{nodeName:"#document",mode:fa.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,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,r){const u=e.childNodes.indexOf(r);e.childNodes.splice(u,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,u){const s=e.childNodes.find(o=>o.nodeName==="#documentType");if(s)s.name=t,s.publicId=r,s.systemId=u;else{const o={nodeName:"#documentType",name:t,publicId:r,systemId:u,parentNode:null};Lr.appendChild(e,o)}},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 r=e.childNodes[e.childNodes.length-1];if(Lr.isTextNode(r)){r.value+=t;return}}Lr.appendChild(e,Lr.createTextNode(t))},insertTextBefore(e,t,r){const u=e.childNodes[e.childNodes.indexOf(r)-1];u&&Lr.isTextNode(u)?u.value+=t:Lr.insertBefore(e,Lr.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(u=>u.name));for(let u=0;u<t.length;u++)r.has(t[u].name)||e.attrs.push(t[u])},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}}},NE="html",QN="about:legacy-compat",KN="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",vE=["+//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//"],ZN=[...vE,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],$N=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),OE=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],WN=[...OE,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function L1(e,t){return t.some(r=>e.startsWith(r))}function JN(e){return e.name===NE&&e.publicId===null&&(e.systemId===null||e.systemId===QN)}function ev(e){if(e.name!==NE)return fa.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===KN)return fa.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),$N.has(r))return fa.QUIRKS;let u=t===null?ZN:vE;if(L1(r,u))return fa.QUIRKS;if(u=t===null?OE:WN,L1(r,u))return fa.LIMITED_QUIRKS}return fa.NO_QUIRKS}const I1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},tv="definitionurl",nv="definitionURL",av=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])),rv=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:de.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:de.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:de.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:de.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:de.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:de.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:de.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:de.XML}],["xml:space",{prefix:"xml",name:"space",namespace:de.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:de.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:de.XMLNS}]]),iv=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])),uv=new Set([b.B,b.BIG,b.BLOCKQUOTE,b.BODY,b.BR,b.CENTER,b.CODE,b.DD,b.DIV,b.DL,b.DT,b.EM,b.EMBED,b.H1,b.H2,b.H3,b.H4,b.H5,b.H6,b.HEAD,b.HR,b.I,b.IMG,b.LI,b.LISTING,b.MENU,b.META,b.NOBR,b.OL,b.P,b.PRE,b.RUBY,b.S,b.SMALL,b.SPAN,b.STRONG,b.STRIKE,b.SUB,b.SUP,b.TABLE,b.TT,b.U,b.UL,b.VAR]);function lv(e){const t=e.tagID;return t===b.FONT&&e.attrs.some(({name:u})=>u===ai.COLOR||u===ai.SIZE||u===ai.FACE)||uv.has(t)}function kE(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===tv){e.attrs[t].name=nv;break}}function RE(e){for(let t=0;t<e.attrs.length;t++){const r=av.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function T0(e){for(let t=0;t<e.attrs.length;t++){const r=rv.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function sv(e){const t=iv.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=iu(e.tagName))}function ov(e,t){return t===de.MATHML&&(e===b.MI||e===b.MO||e===b.MN||e===b.MS||e===b.MTEXT)}function cv(e,t,r){if(t===de.MATHML&&e===b.ANNOTATION_XML){for(let u=0;u<r.length;u++)if(r[u].name===ai.ENCODING){const s=r[u].value.toLowerCase();return s===I1.TEXT_HTML||s===I1.APPLICATION_XML}}return t===de.SVG&&(e===b.FOREIGN_OBJECT||e===b.DESC||e===b.TITLE)}function fv(e,t,r,u){return(!u||u===de.HTML)&&cv(e,t,r)||(!u||u===de.MATHML)&&ov(e,t)}const dv="hidden",hv=8,mv=3;var w;(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"})(w||(w={}));const pv={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},DE=new Set([b.TABLE,b.TBODY,b.TFOOT,b.THEAD,b.TR]),M1={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Lr,onParseError:null};class B1{constructor(t,r,u=null,s=null){this.fragmentContext=u,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=w.INITIAL,this.originalInsertionMode=w.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={...M1,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new PN(this.options,this),this.activeFormattingElements=new XN(this.treeAdapter),this.fragmentContextID=u?iu(this.treeAdapter.getTagName(u)):b.UNKNOWN,this._setContextModes(u??this.document,this.fragmentContextID),this.openElements=new VN(this.document,this.treeAdapter,this)}static parse(t,r){const u=new this(r);return u.tokenizer.write(t,!0),u.document}static getFragmentParser(t,r){const u={...M1,...r};t??(t=u.treeAdapter.createElement(j.TEMPLATE,de.HTML,[]));const s=u.treeAdapter.createElement("documentmock",de.HTML,[]),o=new this(u,s,t);return o.fragmentContextID===b.TEMPLATE&&o.tmplInsertionModeStack.unshift(w.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,u){var s;if(!this.onParseError)return;const o=(s=t.location)!==null&&s!==void 0?s:pv,c={code:r,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:u?o.startLine:o.endLine,endCol:u?o.startCol:o.endCol,endOffset:u?o.startOffset:o.endOffset};this.onParseError(c)}onItemPush(t,r,u){var s,o;(o=(s=this.treeAdapter).onItemPush)===null||o===void 0||o.call(s,t),u&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var u,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(u=this.treeAdapter).onItemPop)===null||s===void 0||s.call(u,t,this.openElements.current),r){let o,c;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,c=this.fragmentContextID):{current:o,currentTagId:c}=this.openElements,this._setContextModes(o,c)}}_setContextModes(t,r){const u=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===de.HTML;this.currentNotInHTML=!u,this.tokenizer.inForeignNode=!u&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,de.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=w.TEXT}switchToPlaintextParsing(){this.insertionMode=w.TEXT,this.originalInsertionMode=w.IN_BODY,this.tokenizer.state=Mt.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)!==de.HTML))switch(this.fragmentContextID){case b.TITLE:case b.TEXTAREA:{this.tokenizer.state=Mt.RCDATA;break}case b.STYLE:case b.XMP:case b.IFRAME:case b.NOEMBED:case b.NOFRAMES:case b.NOSCRIPT:{this.tokenizer.state=Mt.RAWTEXT;break}case b.SCRIPT:{this.tokenizer.state=Mt.SCRIPT_DATA;break}case b.PLAINTEXT:{this.tokenizer.state=Mt.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",u=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,u,s),t.location){const c=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));c&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const u=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,u)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const u=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(u??this.document,t)}}_appendElement(t,r){const u=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(u,t.location)}_insertElement(t,r){const u=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(u,t.location),this.openElements.push(u,t.tagID)}_insertFakeElement(t,r){const u=this.treeAdapter.createElement(t,de.HTML,[]);this._attachElementToTree(u,null),this.openElements.push(u,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,de.HTML,t.attrs),u=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,u),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(j.HTML,de.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,b.HTML)}_appendCommentNode(t,r){const u=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,u),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_insertCharacters(t){let r,u;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:u}=this._findFosterParentingLocation(),u?this.treeAdapter.insertTextBefore(r,t.chars,u):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const s=this.treeAdapter.getChildNodes(r),o=u?s.lastIndexOf(u):s.length,c=s[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:p,endCol:h,endOffset:E}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:p,endCol:h,endOffset:E})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}_adoptNodes(t,r){for(let u=this.treeAdapter.getFirstChild(t);u;u=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(u),this.treeAdapter.appendChild(r,u)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const u=r.location,s=this.treeAdapter.getTagName(t),o=r.type===Xe.END_TAG&&s===r.tagName?{endTag:{...u},endLine:u.endLine,endCol:u.endCol,endOffset:u.endOffset}:{endLine:u.startLine,endCol:u.startCol,endOffset:u.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,u;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,u=this.fragmentContextID):{current:r,currentTagId:u}=this.openElements,t.tagID===b.SVG&&this.treeAdapter.getTagName(r)===j.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===de.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===b.MGLYPH||t.tagID===b.MALIGNMARK)&&u!==void 0&&!this._isIntegrationPoint(u,r,de.HTML)}_processToken(t){switch(t.type){case Xe.CHARACTER:{this.onCharacter(t);break}case Xe.NULL_CHARACTER:{this.onNullCharacter(t);break}case Xe.COMMENT:{this.onComment(t);break}case Xe.DOCTYPE:{this.onDoctype(t);break}case Xe.START_TAG:{this._processStartTag(t);break}case Xe.END_TAG:{this.onEndTag(t);break}case Xe.EOF:{this.onEof(t);break}case Xe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,u){const s=this.treeAdapter.getNamespaceURI(r),o=this.treeAdapter.getAttrList(r);return fv(t,s,o,u)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(s=>s.type===Ma.Marker||this.openElements.contains(s.element)),u=r===-1?t-1:r-1;for(let s=u;s>=0;s--){const o=this.activeFormattingElements.entries[s];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=w.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(b.P),this.openElements.popUntilTagNamePopped(b.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case b.TR:{this.insertionMode=w.IN_ROW;return}case b.TBODY:case b.THEAD:case b.TFOOT:{this.insertionMode=w.IN_TABLE_BODY;return}case b.CAPTION:{this.insertionMode=w.IN_CAPTION;return}case b.COLGROUP:{this.insertionMode=w.IN_COLUMN_GROUP;return}case b.TABLE:{this.insertionMode=w.IN_TABLE;return}case b.BODY:{this.insertionMode=w.IN_BODY;return}case b.FRAMESET:{this.insertionMode=w.IN_FRAMESET;return}case b.SELECT:{this._resetInsertionModeForSelect(t);return}case b.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case b.HTML:{this.insertionMode=this.headElement?w.AFTER_HEAD:w.BEFORE_HEAD;return}case b.TD:case b.TH:{if(t>0){this.insertionMode=w.IN_CELL;return}break}case b.HEAD:{if(t>0){this.insertionMode=w.IN_HEAD;return}break}}this.insertionMode=w.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const u=this.openElements.tagIDs[r];if(u===b.TEMPLATE)break;if(u===b.TABLE){this.insertionMode=w.IN_SELECT_IN_TABLE;return}}this.insertionMode=w.IN_SELECT}_isElementCausesFosterParenting(t){return DE.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 r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case b.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===de.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case b.TABLE:{const u=this.treeAdapter.getParentNode(r);return u?{parent:u,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const u=this.treeAdapter.getNamespaceURI(t);return MN[u].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){q6(this,t);return}switch(this.insertionMode){case w.INITIAL:{il(this,t);break}case w.BEFORE_HTML:{gl(this,t);break}case w.BEFORE_HEAD:{bl(this,t);break}case w.IN_HEAD:{El(this,t);break}case w.IN_HEAD_NO_SCRIPT:{Tl(this,t);break}case w.AFTER_HEAD:{yl(this,t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:{LE(this,t);break}case w.TEXT:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{Ad(this,t);break}case w.IN_TABLE_TEXT:{PE(this,t);break}case w.IN_COLUMN_GROUP:{So(this,t);break}case w.AFTER_BODY:{_o(this,t);break}case w.AFTER_AFTER_BODY:{mo(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){G6(this,t);return}switch(this.insertionMode){case w.INITIAL:{il(this,t);break}case w.BEFORE_HTML:{gl(this,t);break}case w.BEFORE_HEAD:{bl(this,t);break}case w.IN_HEAD:{El(this,t);break}case w.IN_HEAD_NO_SCRIPT:{Tl(this,t);break}case w.AFTER_HEAD:{yl(this,t);break}case w.TEXT:{this._insertCharacters(t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{Ad(this,t);break}case w.IN_COLUMN_GROUP:{So(this,t);break}case w.AFTER_BODY:{_o(this,t);break}case w.AFTER_AFTER_BODY:{mo(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Qd(this,t);return}switch(this.insertionMode){case w.INITIAL:case w.BEFORE_HTML:case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_TEMPLATE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{Qd(this,t);break}case w.IN_TABLE_TEXT:{ul(this,t);break}case w.AFTER_BODY:{Sv(this,t);break}case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{_v(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case w.INITIAL:{xv(this,t);break}case w.BEFORE_HEAD:case w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:{this._err(t,$.misplacedDoctype);break}case w.IN_TABLE_TEXT:{ul(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,$.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?V6(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{il(this,t);break}case w.BEFORE_HTML:{Cv(this,t);break}case w.BEFORE_HEAD:{vv(this,t);break}case w.IN_HEAD:{_a(this,t);break}case w.IN_HEAD_NO_SCRIPT:{Rv(this,t);break}case w.AFTER_HEAD:{wv(this,t);break}case w.IN_BODY:{En(this,t);break}case w.IN_TABLE:{Ji(this,t);break}case w.IN_TABLE_TEXT:{ul(this,t);break}case w.IN_CAPTION:{O6(this,t);break}case w.IN_COLUMN_GROUP:{S0(this,t);break}case w.IN_TABLE_BODY:{Mo(this,t);break}case w.IN_ROW:{Bo(this,t);break}case w.IN_CELL:{D6(this,t);break}case w.IN_SELECT:{jE(this,t);break}case w.IN_SELECT_IN_TABLE:{L6(this,t);break}case w.IN_TEMPLATE:{M6(this,t);break}case w.AFTER_BODY:{H6(this,t);break}case w.IN_FRAMESET:{U6(this,t);break}case w.AFTER_FRAMESET:{F6(this,t);break}case w.AFTER_AFTER_BODY:{j6(this,t);break}case w.AFTER_AFTER_FRAMESET:{Y6(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?X6(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case w.INITIAL:{il(this,t);break}case w.BEFORE_HTML:{Nv(this,t);break}case w.BEFORE_HEAD:{Ov(this,t);break}case w.IN_HEAD:{kv(this,t);break}case w.IN_HEAD_NO_SCRIPT:{Dv(this,t);break}case w.AFTER_HEAD:{Lv(this,t);break}case w.IN_BODY:{Io(this,t);break}case w.TEXT:{E6(this,t);break}case w.IN_TABLE:{Cl(this,t);break}case w.IN_TABLE_TEXT:{ul(this,t);break}case w.IN_CAPTION:{k6(this,t);break}case w.IN_COLUMN_GROUP:{R6(this,t);break}case w.IN_TABLE_BODY:{Kd(this,t);break}case w.IN_ROW:{zE(this,t);break}case w.IN_CELL:{w6(this,t);break}case w.IN_SELECT:{YE(this,t);break}case w.IN_SELECT_IN_TABLE:{I6(this,t);break}case w.IN_TEMPLATE:{B6(this,t);break}case w.AFTER_BODY:{qE(this,t);break}case w.IN_FRAMESET:{P6(this,t);break}case w.AFTER_FRAMESET:{z6(this,t);break}case w.AFTER_AFTER_BODY:{mo(this,t);break}}}onEof(t){switch(this.insertionMode){case w.INITIAL:{il(this,t);break}case w.BEFORE_HTML:{gl(this,t);break}case w.BEFORE_HEAD:{bl(this,t);break}case w.IN_HEAD:{El(this,t);break}case w.IN_HEAD_NO_SCRIPT:{Tl(this,t);break}case w.AFTER_HEAD:{yl(this,t);break}case w.IN_BODY:case w.IN_TABLE:case w.IN_CAPTION:case w.IN_COLUMN_GROUP:case w.IN_TABLE_BODY:case w.IN_ROW:case w.IN_CELL:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:{HE(this,t);break}case w.TEXT:{T6(this,t);break}case w.IN_TABLE_TEXT:{ul(this,t);break}case w.IN_TEMPLATE:{GE(this,t);break}case w.AFTER_BODY:case w.IN_FRAMESET:case w.AFTER_FRAMESET:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{A0(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===N.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 w.IN_HEAD:case w.IN_HEAD_NO_SCRIPT:case w.AFTER_HEAD:case w.TEXT:case w.IN_COLUMN_GROUP:case w.IN_SELECT:case w.IN_SELECT_IN_TABLE:case w.IN_FRAMESET:case w.AFTER_FRAMESET:{this._insertCharacters(t);break}case w.IN_BODY:case w.IN_CAPTION:case w.IN_CELL:case w.IN_TEMPLATE:case w.AFTER_BODY:case w.AFTER_AFTER_BODY:case w.AFTER_AFTER_FRAMESET:{wE(this,t);break}case w.IN_TABLE:case w.IN_TABLE_BODY:case w.IN_ROW:{Ad(this,t);break}case w.IN_TABLE_TEXT:{UE(this,t);break}}}}function gv(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):BE(e,t),r}function bv(e,t){let r=null,u=e.openElements.stackTop;for(;u>=0;u--){const s=e.openElements.items[u];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[u])&&(r=s)}return r||(e.openElements.shortenToLength(Math.max(u,0)),e.activeFormattingElements.removeEntry(t)),r}function Ev(e,t,r){let u=t,s=e.openElements.getCommonAncestor(t);for(let o=0,c=s;c!==r;o++,c=s){s=e.openElements.getCommonAncestor(c);const d=e.activeFormattingElements.getElementEntry(c),p=d&&o>=mv;!d||p?(p&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=Tv(e,d),u===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(u),e.treeAdapter.appendChild(c,u),u=c)}return u}function Tv(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),u=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,u),t.element=u,u}function yv(e,t,r){const u=e.treeAdapter.getTagName(t),s=iu(u);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(r);else{const o=e.treeAdapter.getNamespaceURI(t);s===b.TEMPLATE&&o===de.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Av(e,t,r){const u=e.treeAdapter.getNamespaceURI(r.element),{token:s}=r,o=e.treeAdapter.createElement(s.tagName,u,s.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,s),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,o,s.tagID)}function y0(e,t){for(let r=0;r<hv;r++){const u=gv(e,t);if(!u)break;const s=bv(e,u);if(!s)break;e.activeFormattingElements.bookmark=u;const o=Ev(e,s,u.element),c=e.openElements.getCommonAncestor(u.element);e.treeAdapter.detachNode(o),c&&yv(e,c,o),Av(e,s,u)}}function Qd(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Sv(e,t){e._appendCommentNode(t,e.openElements.items[0])}function _v(e,t){e._appendCommentNode(t,e.document)}function A0(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let u=e.openElements.stackTop;u>=r;u--)e._setEndLocation(e.openElements.items[u],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const u=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(u);if(s&&!s.endTag&&(e._setEndLocation(u,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],c=e.treeAdapter.getNodeSourceCodeLocation(o);c&&!c.endTag&&e._setEndLocation(o,t)}}}}function xv(e,t){e._setDocumentType(t);const r=t.forceQuirks?fa.QUIRKS:ev(t);JN(t)||e._err(t,$.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=w.BEFORE_HTML}function il(e,t){e._err(t,$.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,fa.QUIRKS),e.insertionMode=w.BEFORE_HTML,e._processToken(t)}function Cv(e,t){t.tagID===b.HTML?(e._insertElement(t,de.HTML),e.insertionMode=w.BEFORE_HEAD):gl(e,t)}function Nv(e,t){const r=t.tagID;(r===b.HTML||r===b.HEAD||r===b.BODY||r===b.BR)&&gl(e,t)}function gl(e,t){e._insertFakeRootElement(),e.insertionMode=w.BEFORE_HEAD,e._processToken(t)}function vv(e,t){switch(t.tagID){case b.HTML:{En(e,t);break}case b.HEAD:{e._insertElement(t,de.HTML),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD;break}default:bl(e,t)}}function Ov(e,t){const r=t.tagID;r===b.HEAD||r===b.BODY||r===b.HTML||r===b.BR?bl(e,t):e._err(t,$.endTagWithoutMatchingOpenElement)}function bl(e,t){e._insertFakeElement(j.HEAD,b.HEAD),e.headElement=e.openElements.current,e.insertionMode=w.IN_HEAD,e._processToken(t)}function _a(e,t){switch(t.tagID){case b.HTML:{En(e,t);break}case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:{e._appendElement(t,de.HTML),t.ackSelfClosing=!0;break}case b.TITLE:{e._switchToTextParsing(t,Mt.RCDATA);break}case b.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Mt.RAWTEXT):(e._insertElement(t,de.HTML),e.insertionMode=w.IN_HEAD_NO_SCRIPT);break}case b.NOFRAMES:case b.STYLE:{e._switchToTextParsing(t,Mt.RAWTEXT);break}case b.SCRIPT:{e._switchToTextParsing(t,Mt.SCRIPT_DATA);break}case b.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=w.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(w.IN_TEMPLATE);break}case b.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:El(e,t)}}function kv(e,t){switch(t.tagID){case b.HEAD:{e.openElements.pop(),e.insertionMode=w.AFTER_HEAD;break}case b.BODY:case b.BR:case b.HTML:{El(e,t);break}case b.TEMPLATE:{ui(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function ui(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==b.TEMPLATE&&e._err(t,$.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(b.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,$.endTagWithoutMatchingOpenElement)}function El(e,t){e.openElements.pop(),e.insertionMode=w.AFTER_HEAD,e._processToken(t)}function Rv(e,t){switch(t.tagID){case b.HTML:{En(e,t);break}case b.BASEFONT:case b.BGSOUND:case b.HEAD:case b.LINK:case b.META:case b.NOFRAMES:case b.STYLE:{_a(e,t);break}case b.NOSCRIPT:{e._err(t,$.nestedNoscriptInHead);break}default:Tl(e,t)}}function Dv(e,t){switch(t.tagID){case b.NOSCRIPT:{e.openElements.pop(),e.insertionMode=w.IN_HEAD;break}case b.BR:{Tl(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Tl(e,t){const r=t.type===Xe.EOF?$.openElementsLeftAfterEof:$.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=w.IN_HEAD,e._processToken(t)}function wv(e,t){switch(t.tagID){case b.HTML:{En(e,t);break}case b.BODY:{e._insertElement(t,de.HTML),e.framesetOk=!1,e.insertionMode=w.IN_BODY;break}case b.FRAMESET:{e._insertElement(t,de.HTML),e.insertionMode=w.IN_FRAMESET;break}case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:case b.NOFRAMES:case b.SCRIPT:case b.STYLE:case b.TEMPLATE:case b.TITLE:{e._err(t,$.abandonedHeadElementChild),e.openElements.push(e.headElement,b.HEAD),_a(e,t),e.openElements.remove(e.headElement);break}case b.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:yl(e,t)}}function Lv(e,t){switch(t.tagID){case b.BODY:case b.HTML:case b.BR:{yl(e,t);break}case b.TEMPLATE:{ui(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function yl(e,t){e._insertFakeElement(j.BODY,b.BODY),e.insertionMode=w.IN_BODY,Lo(e,t)}function Lo(e,t){switch(t.type){case Xe.CHARACTER:{LE(e,t);break}case Xe.WHITESPACE_CHARACTER:{wE(e,t);break}case Xe.COMMENT:{Qd(e,t);break}case Xe.START_TAG:{En(e,t);break}case Xe.END_TAG:{Io(e,t);break}case Xe.EOF:{HE(e,t);break}}}function wE(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function LE(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Iv(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Mv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function Bv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,de.HTML),e.insertionMode=w.IN_FRAMESET)}function Hv(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,de.HTML)}function Uv(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Xd.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,de.HTML)}function Pv(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,de.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Fv(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,de.HTML),r||(e.formElement=e.openElements.current))}function zv(e,t){e.framesetOk=!1;const r=t.tagID;for(let u=e.openElements.stackTop;u>=0;u--){const s=e.openElements.tagIDs[u];if(r===b.LI&&s===b.LI||(r===b.DD||r===b.DT)&&(s===b.DD||s===b.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==b.ADDRESS&&s!==b.DIV&&s!==b.P&&e._isSpecialElement(e.openElements.items[u],s))break}e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,de.HTML)}function jv(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,de.HTML),e.tokenizer.state=Mt.PLAINTEXT}function Yv(e,t){e.openElements.hasInScope(b.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML),e.framesetOk=!1}function Gv(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(j.A);r&&(y0(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function qv(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Vv(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(b.NOBR)&&(y0(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,de.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Xv(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Qv(e,t){e.treeAdapter.getDocumentMode(e.document)!==fa.QUIRKS&&e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,de.HTML),e.framesetOk=!1,e.insertionMode=w.IN_TABLE}function IE(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,de.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ME(e){const t=_E(e,ai.TYPE);return t!=null&&t.toLowerCase()===dv}function Kv(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,de.HTML),ME(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Zv(e,t){e._appendElement(t,de.HTML),t.ackSelfClosing=!0}function $v(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._appendElement(t,de.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Wv(e,t){t.tagName=j.IMG,t.tagID=b.IMG,IE(e,t)}function Jv(e,t){e._insertElement(t,de.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Mt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=w.TEXT}function e6(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Mt.RAWTEXT)}function t6(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Mt.RAWTEXT)}function H1(e,t){e._switchToTextParsing(t,Mt.RAWTEXT)}function n6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===w.IN_TABLE||e.insertionMode===w.IN_CAPTION||e.insertionMode===w.IN_TABLE_BODY||e.insertionMode===w.IN_ROW||e.insertionMode===w.IN_CELL?w.IN_SELECT_IN_TABLE:w.IN_SELECT}function a6(e,t){e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML)}function r6(e,t){e.openElements.hasInScope(b.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,de.HTML)}function i6(e,t){e.openElements.hasInScope(b.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(b.RTC),e._insertElement(t,de.HTML)}function u6(e,t){e._reconstructActiveFormattingElements(),kE(t),T0(t),t.selfClosing?e._appendElement(t,de.MATHML):e._insertElement(t,de.MATHML),t.ackSelfClosing=!0}function l6(e,t){e._reconstructActiveFormattingElements(),RE(t),T0(t),t.selfClosing?e._appendElement(t,de.SVG):e._insertElement(t,de.SVG),t.ackSelfClosing=!0}function U1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML)}function En(e,t){switch(t.tagID){case b.I:case b.S:case b.B:case b.U:case b.EM:case b.TT:case b.BIG:case b.CODE:case b.FONT:case b.SMALL:case b.STRIKE:case b.STRONG:{qv(e,t);break}case b.A:{Gv(e,t);break}case b.H1:case b.H2:case b.H3:case b.H4:case b.H5:case b.H6:{Uv(e,t);break}case b.P:case b.DL:case b.OL:case b.UL:case b.DIV:case b.DIR:case b.NAV:case b.MAIN:case b.MENU:case b.ASIDE:case b.CENTER:case b.FIGURE:case b.FOOTER:case b.HEADER:case b.HGROUP:case b.DIALOG:case b.DETAILS:case b.ADDRESS:case b.ARTICLE:case b.SEARCH:case b.SECTION:case b.SUMMARY:case b.FIELDSET:case b.BLOCKQUOTE:case b.FIGCAPTION:{Hv(e,t);break}case b.LI:case b.DD:case b.DT:{zv(e,t);break}case b.BR:case b.IMG:case b.WBR:case b.AREA:case b.EMBED:case b.KEYGEN:{IE(e,t);break}case b.HR:{$v(e,t);break}case b.RB:case b.RTC:{r6(e,t);break}case b.RT:case b.RP:{i6(e,t);break}case b.PRE:case b.LISTING:{Pv(e,t);break}case b.XMP:{e6(e,t);break}case b.SVG:{l6(e,t);break}case b.HTML:{Iv(e,t);break}case b.BASE:case b.LINK:case b.META:case b.STYLE:case b.TITLE:case b.SCRIPT:case b.BGSOUND:case b.BASEFONT:case b.TEMPLATE:{_a(e,t);break}case b.BODY:{Mv(e,t);break}case b.FORM:{Fv(e,t);break}case b.NOBR:{Vv(e,t);break}case b.MATH:{u6(e,t);break}case b.TABLE:{Qv(e,t);break}case b.INPUT:{Kv(e,t);break}case b.PARAM:case b.TRACK:case b.SOURCE:{Zv(e,t);break}case b.IMAGE:{Wv(e,t);break}case b.BUTTON:{Yv(e,t);break}case b.APPLET:case b.OBJECT:case b.MARQUEE:{Xv(e,t);break}case b.IFRAME:{t6(e,t);break}case b.SELECT:{n6(e,t);break}case b.OPTION:case b.OPTGROUP:{a6(e,t);break}case b.NOEMBED:case b.NOFRAMES:{H1(e,t);break}case b.FRAMESET:{Bv(e,t);break}case b.TEXTAREA:{Jv(e,t);break}case b.NOSCRIPT:{e.options.scriptingEnabled?H1(e,t):U1(e,t);break}case b.PLAINTEXT:{jv(e,t);break}case b.COL:case b.TH:case b.TD:case b.TR:case b.HEAD:case b.FRAME:case b.TBODY:case b.TFOOT:case b.THEAD:case b.CAPTION:case b.COLGROUP:break;default:U1(e,t)}}function s6(e,t){if(e.openElements.hasInScope(b.BODY)&&(e.insertionMode=w.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function o6(e,t){e.openElements.hasInScope(b.BODY)&&(e.insertionMode=w.AFTER_BODY,qE(e,t))}function c6(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function f6(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(b.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(b.FORM):r&&e.openElements.remove(r))}function d6(e){e.openElements.hasInButtonScope(b.P)||e._insertFakeElement(j.P,b.P),e._closePElement()}function h6(e){e.openElements.hasInListItemScope(b.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(b.LI),e.openElements.popUntilTagNamePopped(b.LI))}function m6(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function p6(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function g6(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function b6(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(j.BR,b.BR),e.openElements.pop(),e.framesetOk=!1}function BE(e,t){const r=t.tagName,u=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const o=e.openElements.items[s],c=e.openElements.tagIDs[s];if(u===c&&(u!==b.UNKNOWN||e.treeAdapter.getTagName(o)===r)){e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(o,c))break}}function Io(e,t){switch(t.tagID){case b.A:case b.B:case b.I:case b.S:case b.U:case b.EM:case b.TT:case b.BIG:case b.CODE:case b.FONT:case b.NOBR:case b.SMALL:case b.STRIKE:case b.STRONG:{y0(e,t);break}case b.P:{d6(e);break}case b.DL:case b.UL:case b.OL:case b.DIR:case b.DIV:case b.NAV:case b.PRE:case b.MAIN:case b.MENU:case b.ASIDE:case b.BUTTON:case b.CENTER:case b.FIGURE:case b.FOOTER:case b.HEADER:case b.HGROUP:case b.DIALOG:case b.ADDRESS:case b.ARTICLE:case b.DETAILS:case b.SEARCH:case b.SECTION:case b.SUMMARY:case b.LISTING:case b.FIELDSET:case b.BLOCKQUOTE:case b.FIGCAPTION:{c6(e,t);break}case b.LI:{h6(e);break}case b.DD:case b.DT:{m6(e,t);break}case b.H1:case b.H2:case b.H3:case b.H4:case b.H5:case b.H6:{p6(e);break}case b.BR:{b6(e);break}case b.BODY:{s6(e,t);break}case b.HTML:{o6(e,t);break}case b.FORM:{f6(e);break}case b.APPLET:case b.OBJECT:case b.MARQUEE:{g6(e,t);break}case b.TEMPLATE:{ui(e,t);break}default:BE(e,t)}}function HE(e,t){e.tmplInsertionModeStack.length>0?GE(e,t):A0(e,t)}function E6(e,t){var r;t.tagID===b.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function T6(e,t){e._err(t,$.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ad(e,t){if(e.openElements.currentTagId!==void 0&&DE.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=w.IN_TABLE_TEXT,t.type){case Xe.CHARACTER:{PE(e,t);break}case Xe.WHITESPACE_CHARACTER:{UE(e,t);break}}else Il(e,t)}function y6(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,de.HTML),e.insertionMode=w.IN_CAPTION}function A6(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,de.HTML),e.insertionMode=w.IN_COLUMN_GROUP}function S6(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(j.COLGROUP,b.COLGROUP),e.insertionMode=w.IN_COLUMN_GROUP,S0(e,t)}function _6(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,de.HTML),e.insertionMode=w.IN_TABLE_BODY}function x6(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(j.TBODY,b.TBODY),e.insertionMode=w.IN_TABLE_BODY,Mo(e,t)}function C6(e,t){e.openElements.hasInTableScope(b.TABLE)&&(e.openElements.popUntilTagNamePopped(b.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function N6(e,t){ME(t)?e._appendElement(t,de.HTML):Il(e,t),t.ackSelfClosing=!0}function v6(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,de.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ji(e,t){switch(t.tagID){case b.TD:case b.TH:case b.TR:{x6(e,t);break}case b.STYLE:case b.SCRIPT:case b.TEMPLATE:{_a(e,t);break}case b.COL:{S6(e,t);break}case b.FORM:{v6(e,t);break}case b.TABLE:{C6(e,t);break}case b.TBODY:case b.TFOOT:case b.THEAD:{_6(e,t);break}case b.INPUT:{N6(e,t);break}case b.CAPTION:{y6(e,t);break}case b.COLGROUP:{A6(e,t);break}default:Il(e,t)}}function Cl(e,t){switch(t.tagID){case b.TABLE:{e.openElements.hasInTableScope(b.TABLE)&&(e.openElements.popUntilTagNamePopped(b.TABLE),e._resetInsertionMode());break}case b.TEMPLATE:{ui(e,t);break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TBODY:case b.TD:case b.TFOOT:case b.TH:case b.THEAD:case b.TR:break;default:Il(e,t)}}function Il(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Lo(e,t),e.fosterParentingEnabled=r}function UE(e,t){e.pendingCharacterTokens.push(t)}function PE(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ul(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Il(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const FE=new Set([b.CAPTION,b.COL,b.COLGROUP,b.TBODY,b.TD,b.TFOOT,b.TH,b.THEAD,b.TR]);function O6(e,t){const r=t.tagID;FE.has(r)?e.openElements.hasInTableScope(b.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,Ji(e,t)):En(e,t)}function k6(e,t){const r=t.tagID;switch(r){case b.CAPTION:case b.TABLE:{e.openElements.hasInTableScope(b.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_TABLE,r===b.TABLE&&Cl(e,t));break}case b.BODY:case b.COL:case b.COLGROUP:case b.HTML:case b.TBODY:case b.TD:case b.TFOOT:case b.TH:case b.THEAD:case b.TR:break;default:Io(e,t)}}function S0(e,t){switch(t.tagID){case b.HTML:{En(e,t);break}case b.COL:{e._appendElement(t,de.HTML),t.ackSelfClosing=!0;break}case b.TEMPLATE:{_a(e,t);break}default:So(e,t)}}function R6(e,t){switch(t.tagID){case b.COLGROUP:{e.openElements.currentTagId===b.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case b.TEMPLATE:{ui(e,t);break}case b.COL:break;default:So(e,t)}}function So(e,t){e.openElements.currentTagId===b.COLGROUP&&(e.openElements.pop(),e.insertionMode=w.IN_TABLE,e._processToken(t))}function Mo(e,t){switch(t.tagID){case b.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,de.HTML),e.insertionMode=w.IN_ROW;break}case b.TH:case b.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(j.TR,b.TR),e.insertionMode=w.IN_ROW,Bo(e,t);break}case b.CAPTION:case b.COL:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,Ji(e,t));break}default:Ji(e,t)}}function Kd(e,t){const r=t.tagID;switch(t.tagID){case b.TBODY:case b.TFOOT:case b.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE);break}case b.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE,Cl(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TD:case b.TH:case b.TR:break;default:Cl(e,t)}}function Bo(e,t){switch(t.tagID){case b.TH:case b.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,de.HTML),e.insertionMode=w.IN_CELL,e.activeFormattingElements.insertMarker();break}case b.CAPTION:case b.COL:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:case b.TR:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Mo(e,t));break}default:Ji(e,t)}}function zE(e,t){switch(t.tagID){case b.TR:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY);break}case b.TABLE:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Kd(e,t));break}case b.TBODY:case b.TFOOT:case b.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(b.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=w.IN_TABLE_BODY,Kd(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TD:case b.TH:break;default:Cl(e,t)}}function D6(e,t){const r=t.tagID;FE.has(r)?(e.openElements.hasInTableScope(b.TD)||e.openElements.hasInTableScope(b.TH))&&(e._closeTableCell(),Bo(e,t)):En(e,t)}function w6(e,t){const r=t.tagID;switch(r){case b.TD:case b.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=w.IN_ROW);break}case b.TABLE:case b.TBODY:case b.TFOOT:case b.THEAD:case b.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),zE(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:break;default:Io(e,t)}}function jE(e,t){switch(t.tagID){case b.HTML:{En(e,t);break}case b.OPTION:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e._insertElement(t,de.HTML);break}case b.OPTGROUP:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop(),e._insertElement(t,de.HTML);break}case b.HR:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop(),e._appendElement(t,de.HTML),t.ackSelfClosing=!0;break}case b.INPUT:case b.KEYGEN:case b.TEXTAREA:case b.SELECT:{e.openElements.hasInSelectScope(b.SELECT)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),t.tagID!==b.SELECT&&e._processStartTag(t));break}case b.SCRIPT:case b.TEMPLATE:{_a(e,t);break}}}function YE(e,t){switch(t.tagID){case b.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===b.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===b.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop();break}case b.OPTION:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop();break}case b.SELECT:{e.openElements.hasInSelectScope(b.SELECT)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode());break}case b.TEMPLATE:{ui(e,t);break}}}function L6(e,t){const r=t.tagID;r===b.CAPTION||r===b.TABLE||r===b.TBODY||r===b.TFOOT||r===b.THEAD||r===b.TR||r===b.TD||r===b.TH?(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),e._processStartTag(t)):jE(e,t)}function I6(e,t){const r=t.tagID;r===b.CAPTION||r===b.TABLE||r===b.TBODY||r===b.TFOOT||r===b.THEAD||r===b.TR||r===b.TD||r===b.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),e.onEndTag(t)):YE(e,t)}function M6(e,t){switch(t.tagID){case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:case b.NOFRAMES:case b.SCRIPT:case b.STYLE:case b.TEMPLATE:case b.TITLE:{_a(e,t);break}case b.CAPTION:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:{e.tmplInsertionModeStack[0]=w.IN_TABLE,e.insertionMode=w.IN_TABLE,Ji(e,t);break}case b.COL:{e.tmplInsertionModeStack[0]=w.IN_COLUMN_GROUP,e.insertionMode=w.IN_COLUMN_GROUP,S0(e,t);break}case b.TR:{e.tmplInsertionModeStack[0]=w.IN_TABLE_BODY,e.insertionMode=w.IN_TABLE_BODY,Mo(e,t);break}case b.TD:case b.TH:{e.tmplInsertionModeStack[0]=w.IN_ROW,e.insertionMode=w.IN_ROW,Bo(e,t);break}default:e.tmplInsertionModeStack[0]=w.IN_BODY,e.insertionMode=w.IN_BODY,En(e,t)}}function B6(e,t){t.tagID===b.TEMPLATE&&ui(e,t)}function GE(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(b.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):A0(e,t)}function H6(e,t){t.tagID===b.HTML?En(e,t):_o(e,t)}function qE(e,t){var r;if(t.tagID===b.HTML){if(e.fragmentContext||(e.insertionMode=w.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===b.HTML){e._setEndLocation(e.openElements.items[0],t);const u=e.openElements.items[1];u&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(u))===null||r===void 0)&&r.endTag)&&e._setEndLocation(u,t)}}else _o(e,t)}function _o(e,t){e.insertionMode=w.IN_BODY,Lo(e,t)}function U6(e,t){switch(t.tagID){case b.HTML:{En(e,t);break}case b.FRAMESET:{e._insertElement(t,de.HTML);break}case b.FRAME:{e._appendElement(t,de.HTML),t.ackSelfClosing=!0;break}case b.NOFRAMES:{_a(e,t);break}}}function P6(e,t){t.tagID===b.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==b.FRAMESET&&(e.insertionMode=w.AFTER_FRAMESET))}function F6(e,t){switch(t.tagID){case b.HTML:{En(e,t);break}case b.NOFRAMES:{_a(e,t);break}}}function z6(e,t){t.tagID===b.HTML&&(e.insertionMode=w.AFTER_AFTER_FRAMESET)}function j6(e,t){t.tagID===b.HTML?En(e,t):mo(e,t)}function mo(e,t){e.insertionMode=w.IN_BODY,Lo(e,t)}function Y6(e,t){switch(t.tagID){case b.HTML:{En(e,t);break}case b.NOFRAMES:{_a(e,t);break}}}function G6(e,t){t.chars=xt,e._insertCharacters(t)}function q6(e,t){e._insertCharacters(t),e.framesetOk=!1}function VE(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==de.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function V6(e,t){if(lv(t))VE(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),u=e.treeAdapter.getNamespaceURI(r);u===de.MATHML?kE(t):u===de.SVG&&(sv(t),RE(t)),T0(t),t.selfClosing?e._appendElement(t,u):e._insertElement(t,u),t.ackSelfClosing=!0}}function X6(e,t){if(t.tagID===b.P||t.tagID===b.BR){VE(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const u=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(u)===de.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(u);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(r);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 Q6=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,K6=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),P1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function XE(e,t){const r=iO(e),u=EE("type",{handlers:{root:Z6,element:$6,text:W6,comment:KE,doctype:J6,raw:tO},unknown:nO}),s={parser:r?new B1(P1):B1.getFragmentParser(void 0,P1),handle(d){u(d,s)},stitches:!1,options:t||{}};u(e,s),uu(s,Ba());const o=r?s.parser.document:s.parser.getFragment(),c=uN(o,{file:s.options.file});return s.stitches&&wo(c,"comment",function(d,p,h){const E=d;if(E.value.stitch&&h&&p!==void 0){const g=h.children;return g[p]=E.value.stitch,p}}),c.type==="root"&&c.children.length===1&&c.children[0].type===e.type?c.children[0]:c}function QE(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function Z6(e,t){QE(e.children,t)}function $6(e,t){aO(e,t),QE(e.children,t),rO(e,t)}function W6(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Xe.CHARACTER,chars:e.value,location:Ml(e)};uu(t,Ba(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function J6(e,t){const r={type:Xe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ml(e)};uu(t,Ba(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function eO(e,t){t.stitches=!0;const r=uO(e);if("children"in e&&"children"in r){const u=XE({type:"root",children:e.children},t.options);r.children=u.children}KE({type:"comment",value:{stitch:r}},t)}function KE(e,t){const r=e.value,u={type:Xe.COMMENT,data:r,location:Ml(e)};uu(t,Ba(e)),t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken)}function tO(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,ZE(t,Ba(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Q6,"&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 r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function nO(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))eO(r,t);else{let u="";throw K6.has(r.type)&&(u=". 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 `"+r.type+"` node"+u)}}function uu(e,t){ZE(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,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=Mt.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 ZE(e,t){if(t&&t.offset!==void 0){const r={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=r}}function aO(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Mt.PLAINTEXT)return;uu(t,Ba(e));const u=t.parser.openElements.current;let s="namespaceURI"in u?u.namespaceURI:ni.html;s===ni.html&&r==="svg"&&(s=ni.svg);const o=fN({...e,children:[]},{space:s===ni.svg?"svg":"html"}),c={type:Xe.START_TAG,tagName:r,tagID:iu(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:Ml(e)};t.parser.currentToken=c,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function rO(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&TN.includes(r)||t.parser.tokenizer.state===Mt.PLAINTEXT)return;uu(t,No(e));const u={type:Xe.END_TAG,tagName:r,tagID:iu(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ml(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Mt.RCDATA||t.parser.tokenizer.state===Mt.RAWTEXT||t.parser.tokenizer.state===Mt.SCRIPT_DATA)&&(t.parser.tokenizer.state=Mt.DATA)}function iO(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ml(e){const t=Ba(e)||{line:void 0,column:void 0,offset:void 0},r=No(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function uO(e){return"children"in e?Wi({...e,children:[]}):Wi(e)}function lO(e){return function(t,r){return XE(t,{...e,file:r})}}function F1(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let u=0,s=r.indexOf(t);for(;s!==-1;)u++,s=r.indexOf(t,s+t.length);return u}function sO(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oO(e,t,r){const s=Ro((r||{}).ignore||[]),o=cO(t);let c=-1;for(;++c<o.length;)dE(e,"text",d);function d(h,E){let g=-1,A;for(;++g<E.length;){const y=E[g],x=A?A.children:void 0;if(s(y,x?x.indexOf(y):void 0,A))return;A=y}if(A)return p(h,E)}function p(h,E){const g=E[E.length-1],A=o[c][0],y=o[c][1];let x=0;const O=g.children.indexOf(h);let C=!1,P=[];A.lastIndex=0;let M=A.exec(h.value);for(;M;){const Q=M.index,te={index:M.index,input:M.input,stack:[...E,h]};let H=y(...M,te);if(typeof H=="string"&&(H=H.length>0?{type:"text",value:H}:void 0),H===!1?A.lastIndex=Q+1:(x!==Q&&P.push({type:"text",value:h.value.slice(x,Q)}),Array.isArray(H)?P.push(...H):H&&P.push(H),x=Q+M[0].length,C=!0),!A.global)break;M=A.exec(h.value)}return C?(x<h.value.length&&P.push({type:"text",value:h.value.slice(x)}),g.children.splice(O,1,...P)):P=[h],O+P.length}}function cO(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let u=-1;for(;++u<r.length;){const s=r[u];t.push([fO(s[0]),dO(s[1])])}return t}function fO(e){return typeof e=="string"?new RegExp(sO(e),"g"):e}function dO(e){return typeof e=="function"?e:function(){return e}}const Sd="phrasing",_d=["autolink","link","image","label"];function hO(){return{transforms:[yO],enter:{literalAutolink:pO,literalAutolinkEmail:xd,literalAutolinkHttp:xd,literalAutolinkWww:xd},exit:{literalAutolink:TO,literalAutolinkEmail:EO,literalAutolinkHttp:gO,literalAutolinkWww:bO}}}function mO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Sd,notInConstruct:_d},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Sd,notInConstruct:_d},{character:":",before:"[ps]",after:"\\/",inConstruct:Sd,notInConstruct:_d}]}}function pO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xd(e){this.config.enter.autolinkProtocol.call(this,e)}function gO(e){this.config.exit.autolinkProtocol.call(this,e)}function bO(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 EO(e){this.config.exit.autolinkEmail.call(this,e)}function TO(e){this.exit(e)}function yO(e){oO(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,AO],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),SO]],{ignore:["link","linkReference"]})}function AO(e,t,r,u,s){let o="";if(!$E(s)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!_O(r)))return!1;const c=xO(r+u);if(!c[0])return!1;const d={type:"link",title:null,url:o+t+c[0],children:[{type:"text",value:t+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function SO(e,t,r,u){return!$E(u,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function _O(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 xO(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],u=r.indexOf(")");const s=F1(e,"(");let o=F1(e,")");for(;u!==-1&&s>o;)e+=r.slice(0,u+1),r=r.slice(u+1),u=r.indexOf(")"),o++;return[e,r]}function $E(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||ri(r)||vo(r))&&(!t||r!==47)}WE.peek=LO;function CO(){this.buffer()}function NO(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vO(){this.buffer()}function OO(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function kO(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Sa(this.sliceSerialize(e)).toLowerCase(),r.label=t}function RO(e){this.exit(e)}function DO(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Sa(this.sliceSerialize(e)).toLowerCase(),r.label=t}function wO(e){this.exit(e)}function LO(){return"["}function WE(e,t,r,u){const s=r.createTracker(u);let o=s.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return o+=s.move(r.safe(r.associationId(e),{after:"]",before:o})),d(),c(),o+=s.move("]"),o}function IO(){return{enter:{gfmFootnoteCallString:CO,gfmFootnoteCall:NO,gfmFootnoteDefinitionLabelString:vO,gfmFootnoteDefinition:OO},exit:{gfmFootnoteCallString:kO,gfmFootnoteCall:RO,gfmFootnoteDefinitionLabelString:DO,gfmFootnoteDefinition:wO}}}function MO(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:WE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(u,s,o,c){const d=o.createTracker(c);let p=d.move("[^");const h=o.enter("footnoteDefinition"),E=o.enter("label");return p+=d.move(o.safe(o.associationId(u),{before:p,after:"]"})),E(),p+=d.move("]:"),u.children&&u.children.length>0&&(d.shift(4),p+=d.move((t?`
24
+ `:" ")+o.indentLines(o.containerFlow(u,d.current()),t?JE:BO))),h(),p}}function BO(e,t,r){return t===0?e:JE(e,t,r)}function JE(e,t,r){return(r?"":" ")+e}const HO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];eT.peek=jO;function UO(){return{canContainEols:["delete"],enter:{strikethrough:FO},exit:{strikethrough:zO}}}function PO(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:HO}],handlers:{delete:eT}}}function FO(e){this.enter({type:"delete",children:[]},e)}function zO(e){this.exit(e)}function eT(e,t,r,u){const s=r.createTracker(u),o=r.enter("strikethrough");let c=s.move("~~");return c+=r.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),o(),c}function jO(){return"~"}function YO(e){return e.length}function GO(e,t){const r=t||{},u=(r.align||[]).concat(),s=r.stringLength||YO,o=[],c=[],d=[],p=[];let h=0,E=-1;for(;++E<e.length;){const R=[],O=[];let C=-1;for(e[E].length>h&&(h=e[E].length);++C<e[E].length;){const P=qO(e[E][C]);if(r.alignDelimiters!==!1){const M=s(P);O[C]=M,(p[C]===void 0||M>p[C])&&(p[C]=M)}R.push(P)}c[E]=R,d[E]=O}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<h;)o[g]=z1(u[g]);else{const R=z1(u);for(;++g<h;)o[g]=R}g=-1;const A=[],y=[];for(;++g<h;){const R=o[g];let O="",C="";R===99?(O=":",C=":"):R===108?O=":":R===114&&(C=":");let P=r.alignDelimiters===!1?1:Math.max(1,p[g]-O.length-C.length);const M=O+"-".repeat(P)+C;r.alignDelimiters!==!1&&(P=O.length+P+C.length,P>p[g]&&(p[g]=P),y[g]=P),A[g]=M}c.splice(1,0,A),d.splice(1,0,y),E=-1;const x=[];for(;++E<c.length;){const R=c[E],O=d[E];g=-1;const C=[];for(;++g<h;){const P=R[g]||"";let M="",Q="";if(r.alignDelimiters!==!1){const te=p[g]-(O[g]||0),H=o[g];H===114?M=" ".repeat(te):H===99?te%2?(M=" ".repeat(te/2+.5),Q=" ".repeat(te/2-.5)):(M=" ".repeat(te/2),Q=M):Q=" ".repeat(te)}r.delimiterStart!==!1&&!g&&C.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&P==="")&&(r.delimiterStart!==!1||g)&&C.push(" "),r.alignDelimiters!==!1&&C.push(M),C.push(P),r.alignDelimiters!==!1&&C.push(Q),r.padding!==!1&&C.push(" "),(r.delimiterEnd!==!1||g!==h-1)&&C.push("|")}x.push(r.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return x.join(`
25
+ `)}function qO(e){return e==null?"":String(e)}function z1(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 VO(e,t,r,u){const s=r.enter("blockquote"),o=r.createTracker(u);o.move("> "),o.shift(2);const c=r.indentLines(r.containerFlow(e,o.current()),XO);return s(),c}function XO(e,t,r){return">"+(r?"":" ")+e}function QO(e,t){return j1(e,t.inConstruct,!0)&&!j1(e,t.notInConstruct,!1)}function j1(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let u=-1;for(;++u<t.length;)if(e.includes(t[u]))return!0;return!1}function Y1(e,t,r,u){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
26
+ `&&QO(r.stack,r.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
27
+ `}function KO(e,t){const r=String(e);let u=r.indexOf(t),s=u,o=0,c=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===s?++o>c&&(c=o):o=1,s=u+t.length,u=r.indexOf(t,s);return c}function ZO(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 $O(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 WO(e,t,r,u){const s=$O(r),o=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(ZO(e,r)){const g=r.enter("codeIndented"),A=r.indentLines(o,JO);return g(),A}const d=r.createTracker(u),p=s.repeat(Math.max(KO(o,s)+1,3)),h=r.enter("codeFenced");let E=d.move(p);if(e.lang){const g=r.enter(`codeFencedLang${c}`);E+=d.move(r.safe(e.lang,{before:E,after:" ",encode:["`"],...d.current()})),g()}if(e.lang&&e.meta){const g=r.enter(`codeFencedMeta${c}`);E+=d.move(" "),E+=d.move(r.safe(e.meta,{before:E,after:`
28
+ `,encode:["`"],...d.current()})),g()}return E+=d.move(`
29
+ `),o&&(E+=d.move(o+`
30
+ `)),E+=d.move(p),h(),E}function JO(e,t,r){return(r?"":" ")+e}function _0(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 ek(e,t,r,u){const s=_0(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const p=r.createTracker(u);let h=p.move("[");return h+=p.move(r.safe(r.associationId(e),{before:h,after:"]",...p.current()})),h+=p.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=p.move("<"),h+=p.move(r.safe(e.url,{before:h,after:">",...p.current()})),h+=p.move(">")):(d=r.enter("destinationRaw"),h+=p.move(r.safe(e.url,{before:h,after:e.title?" ":`
31
+ `,...p.current()}))),d(),e.title&&(d=r.enter(`title${o}`),h+=p.move(" "+s),h+=p.move(r.safe(e.title,{before:h,after:s,...p.current()})),h+=p.move(s),d()),c(),h}function tk(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 Nl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function xo(e,t,r){const u=$i(e),s=$i(t);return u===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===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}}tT.peek=nk;function tT(e,t,r,u){const s=tk(r),o=r.enter("emphasis"),c=r.createTracker(u),d=c.move(s);let p=c.move(r.containerPhrasing(e,{after:s,before:d,...c.current()}));const h=p.charCodeAt(0),E=xo(u.before.charCodeAt(u.before.length-1),h,s);E.inside&&(p=Nl(h)+p.slice(1));const g=p.charCodeAt(p.length-1),A=xo(u.after.charCodeAt(0),g,s);A.inside&&(p=p.slice(0,-1)+Nl(g));const y=c.move(s);return o(),r.attentionEncodeSurroundingInfo={after:A.outside,before:E.outside},d+p+y}function nk(e,t,r){return r.options.emphasis||"*"}function ak(e,t){let r=!1;return wo(e,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return r=!0,zd}),!!((!e.depth||e.depth<3)&&c0(e)&&(t.options.setext||r))}function rk(e,t,r,u){const s=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(u);if(ak(e,r)){const E=r.enter("headingSetext"),g=r.enter("phrasing"),A=r.containerPhrasing(e,{...o.current(),before:`
32
+ `,after:`
33
+ `});return g(),E(),A+`
34
+ `+(s===1?"=":"-").repeat(A.length-(Math.max(A.lastIndexOf("\r"),A.lastIndexOf(`
35
+ `))+1))}const c="#".repeat(s),d=r.enter("headingAtx"),p=r.enter("phrasing");o.move(c+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
36
+ `,...o.current()});return/^[\t ]/.test(h)&&(h=Nl(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,r.options.closeAtx&&(h+=" "+c),p(),d(),h}nT.peek=ik;function nT(e){return e.value||""}function ik(){return"<"}aT.peek=uk;function aT(e,t,r,u){const s=_0(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const p=r.createTracker(u);let h=p.move("![");return h+=p.move(r.safe(e.alt,{before:h,after:"]",...p.current()})),h+=p.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=p.move("<"),h+=p.move(r.safe(e.url,{before:h,after:">",...p.current()})),h+=p.move(">")):(d=r.enter("destinationRaw"),h+=p.move(r.safe(e.url,{before:h,after:e.title?" ":")",...p.current()}))),d(),e.title&&(d=r.enter(`title${o}`),h+=p.move(" "+s),h+=p.move(r.safe(e.title,{before:h,after:s,...p.current()})),h+=p.move(s),d()),h+=p.move(")"),c(),h}function uk(){return"!"}rT.peek=lk;function rT(e,t,r,u){const s=e.referenceType,o=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(u);let p=d.move("![");const h=r.safe(e.alt,{before:p,after:"]",...d.current()});p+=d.move(h+"]["),c();const E=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(e),{before:p,after:"]",...d.current()});return c(),r.stack=E,o(),s==="full"||!h||h!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function lk(){return"!"}iT.peek=sk;function iT(e,t,r){let u=e.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(u);)s+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++o<r.unsafe.length;){const c=r.unsafe[o],d=r.compilePattern(c);let p;if(c.atBreak)for(;p=d.exec(u);){let h=p.index;u.charCodeAt(h)===10&&u.charCodeAt(h-1)===13&&h--,u=u.slice(0,h)+" "+u.slice(p.index+1)}}return s+u+s}function sk(){return"`"}function uT(e,t){const r=c0(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}lT.peek=ok;function lT(e,t,r,u){const s=_0(r),o=s==='"'?"Quote":"Apostrophe",c=r.createTracker(u);let d,p;if(uT(e,r)){const E=r.stack;r.stack=[],d=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),d(),r.stack=E,g}d=r.enter("link"),p=r.enter("label");let h=c.move("[");return h+=c.move(r.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),p(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(p=r.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(r.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(p=r.enter("destinationRaw"),h+=c.move(r.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),p(),e.title&&(p=r.enter(`title${o}`),h+=c.move(" "+s),h+=c.move(r.safe(e.title,{before:h,after:s,...c.current()})),h+=c.move(s),p()),h+=c.move(")"),d(),h}function ok(e,t,r){return uT(e,r)?"<":"["}sT.peek=ck;function sT(e,t,r,u){const s=e.referenceType,o=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(u);let p=d.move("[");const h=r.containerPhrasing(e,{before:p,after:"]",...d.current()});p+=d.move(h+"]["),c();const E=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(e),{before:p,after:"]",...d.current()});return c(),r.stack=E,o(),s==="full"||!h||h!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function ck(){return"["}function x0(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 fk(e){const t=x0(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function dk(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 oT(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 hk(e,t,r,u){const s=r.enter("list"),o=r.bulletCurrent;let c=e.ordered?dk(r):x0(r);const d=e.ordered?c==="."?")":".":fk(r);let p=t&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const E=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&E&&(!E.children||!E.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),oT(r)===c&&E){let g=-1;for(;++g<e.children.length;){const A=e.children[g];if(A&&A.type==="listItem"&&A.children&&A.children[0]&&A.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=d),r.bulletCurrent=c;const h=r.containerFlow(e,u);return r.bulletLastUsed=c,r.bulletCurrent=o,s(),h}function mk(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 pk(e,t,r,u){const s=mk(r);let o=r.bulletCurrent||x0(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let c=o.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(u);d.move(o+" ".repeat(c-o.length)),d.shift(c);const p=r.enter("listItem"),h=r.indentLines(r.containerFlow(e,d.current()),E);return p(),h;function E(g,A,y){return A?(y?"":" ".repeat(c))+g:(y?o:o+" ".repeat(c-o.length))+g}}function gk(e,t,r,u){const s=r.enter("paragraph"),o=r.enter("phrasing"),c=r.containerPhrasing(e,u);return o(),s(),c}const bk=Ro(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ek(e,t,r,u){return(e.children.some(function(c){return bk(c)})?r.containerPhrasing:r.containerFlow).call(r,e,u)}function Tk(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}cT.peek=yk;function cT(e,t,r,u){const s=Tk(r),o=r.enter("strong"),c=r.createTracker(u),d=c.move(s+s);let p=c.move(r.containerPhrasing(e,{after:s,before:d,...c.current()}));const h=p.charCodeAt(0),E=xo(u.before.charCodeAt(u.before.length-1),h,s);E.inside&&(p=Nl(h)+p.slice(1));const g=p.charCodeAt(p.length-1),A=xo(u.after.charCodeAt(0),g,s);A.inside&&(p=p.slice(0,-1)+Nl(g));const y=c.move(s+s);return o(),r.attentionEncodeSurroundingInfo={after:A.outside,before:E.outside},d+p+y}function yk(e,t,r){return r.options.strong||"*"}function Ak(e,t,r,u){return r.safe(e.value,u)}function Sk(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 _k(e,t,r){const u=(oT(r)+(r.options.ruleSpaces?" ":"")).repeat(Sk(r));return r.options.ruleSpaces?u.slice(0,-1):u}const fT={blockquote:VO,break:Y1,code:WO,definition:ek,emphasis:tT,hardBreak:Y1,heading:rk,html:nT,image:aT,imageReference:rT,inlineCode:iT,link:lT,linkReference:sT,list:hk,listItem:pk,paragraph:gk,root:Ek,strong:cT,text:Ak,thematicBreak:_k};function xk(){return{enter:{table:Ck,tableData:G1,tableHeader:G1,tableRow:vk},exit:{codeText:Ok,table:Nk,tableData:Cd,tableHeader:Cd,tableRow:Cd}}}function Ck(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function Nk(e){this.exit(e),this.data.inTable=void 0}function vk(e){this.enter({type:"tableRow",children:[]},e)}function Cd(e){this.exit(e)}function G1(e){this.enter({type:"tableCell",children:[]},e)}function Ok(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,kk));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function kk(e,t){return t==="|"?t:e}function Rk(e){const t=e||{},r=t.tableCellPadding,u=t.tablePipeAlign,s=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
37
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:A,table:c,tableCell:p,tableRow:d}};function c(y,x,R,O){return h(E(y,R,O),y.align)}function d(y,x,R,O){const C=g(y,R,O),P=h([C]);return P.slice(0,P.indexOf(`
38
+ `))}function p(y,x,R,O){const C=R.enter("tableCell"),P=R.enter("phrasing"),M=R.containerPhrasing(y,{...O,before:o,after:o});return P(),C(),M}function h(y,x){return GO(y,{align:x,alignDelimiters:u,padding:r,stringLength:s})}function E(y,x,R){const O=y.children;let C=-1;const P=[],M=x.enter("table");for(;++C<O.length;)P[C]=g(O[C],x,R);return M(),P}function g(y,x,R){const O=y.children;let C=-1;const P=[],M=x.enter("tableRow");for(;++C<O.length;)P[C]=p(O[C],y,x,R);return M(),P}function A(y,x,R){let O=fT.inlineCode(y,x,R);return R.stack.includes("tableCell")&&(O=O.replace(/\|/g,"\\$&")),O}}function Dk(){return{exit:{taskListCheckValueChecked:q1,taskListCheckValueUnchecked:q1,paragraph:Lk}}}function wk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ik}}}function q1(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Lk(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const u=r.children[0];if(u&&u.type==="text"){const s=t.children;let o=-1,c;for(;++o<s.length;){const d=s[o];if(d.type==="paragraph"){c=d;break}}c===r&&(u.value=u.value.slice(1),u.value.length===0?r.children.shift():r.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,r.position.start=Object.assign({},u.position.start)))}}this.exit(e)}function Ik(e,t,r,u){const s=e.children[0],o=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",d=r.createTracker(u);o&&d.move(c);let p=fT.listItem(e,t,r,{...u,...d.current()});return o&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),p;function h(E){return E+c}}function Mk(){return[hO(),IO(),UO(),xk(),Dk()]}function Bk(e){return{extensions:[mO(),MO(e),PO(),Rk(e),wk()]}}const Hk={tokenize:Yk,partial:!0},dT={tokenize:Gk,partial:!0},hT={tokenize:qk,partial:!0},mT={tokenize:Vk,partial:!0},Uk={tokenize:Xk,partial:!0},pT={name:"wwwAutolink",tokenize:zk,previous:bT},gT={name:"protocolAutolink",tokenize:jk,previous:ET},ur={name:"emailAutolink",tokenize:Fk,previous:TT},Ha={};function Pk(){return{text:Ha}}let ti=48;for(;ti<123;)Ha[ti]=ur,ti++,ti===58?ti=65:ti===91&&(ti=97);Ha[43]=ur;Ha[45]=ur;Ha[46]=ur;Ha[95]=ur;Ha[72]=[ur,gT];Ha[104]=[ur,gT];Ha[87]=[ur,pT];Ha[119]=[ur,pT];function Fk(e,t,r){const u=this;let s,o;return c;function c(g){return!Zd(g)||!TT.call(u,u.previous)||C0(u.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return Zd(g)?(e.consume(g),d):g===64?(e.consume(g),p):r(g)}function p(g){return g===46?e.check(Uk,E,h)(g):g===45||g===95||gn(g)?(o=!0,e.consume(g),p):E(g)}function h(g){return e.consume(g),s=!0,p}function E(g){return o&&s&&An(u.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):r(g)}}function zk(e,t,r){const u=this;return s;function s(c){return c!==87&&c!==119||!bT.call(u,u.previous)||C0(u.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Hk,e.attempt(dT,e.attempt(hT,o),r),r)(c))}function o(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function jk(e,t,r){const u=this;let s="",o=!1;return c;function c(g){return(g===72||g===104)&&ET.call(u,u.previous)&&!C0(u.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),d):r(g)}function d(g){if(An(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const A=s.toLowerCase();if(A==="http"||A==="https")return e.consume(g),p}return r(g)}function p(g){return g===47?(e.consume(g),o?h:(o=!0,p)):r(g)}function h(g){return g===null||To(g)||mt(g)||ri(g)||vo(g)?r(g):e.attempt(dT,e.attempt(hT,E),r)(g)}function E(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function Yk(e,t,r){let u=0;return s;function s(c){return(c===87||c===119)&&u<3?(u++,e.consume(c),s):c===46&&u===3?(e.consume(c),o):r(c)}function o(c){return c===null?r(c):t(c)}}function Gk(e,t,r){let u,s,o;return c;function c(h){return h===46||h===95?e.check(mT,p,d)(h):h===null||mt(h)||ri(h)||h!==45&&vo(h)?p(h):(o=!0,e.consume(h),c)}function d(h){return h===95?u=!0:(s=u,u=void 0),e.consume(h),c}function p(h){return s||u||!o?r(h):t(h)}}function qk(e,t){let r=0,u=0;return s;function s(c){return c===40?(r++,e.consume(c),s):c===41&&u<r?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(mT,t,o)(c):c===null||mt(c)||ri(c)?t(c):(e.consume(c),s)}function o(c){return c===41&&u++,e.consume(c),s}}function Vk(e,t,r){return u;function u(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),u):d===38?(e.consume(d),o):d===93?(e.consume(d),s):d===60||d===null||mt(d)||ri(d)?t(d):r(d)}function s(d){return d===null||d===40||d===91||mt(d)||ri(d)?t(d):u(d)}function o(d){return An(d)?c(d):r(d)}function c(d){return d===59?(e.consume(d),u):An(d)?(e.consume(d),c):r(d)}}function Xk(e,t,r){return u;function u(o){return e.consume(o),s}function s(o){return gn(o)?r(o):t(o)}}function bT(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||mt(e)}function ET(e){return!An(e)}function TT(e){return!(e===47||Zd(e))}function Zd(e){return e===43||e===45||e===46||e===95||gn(e)}function C0(e){let t=e.length,r=!1;for(;t--;){const u=e[t][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){r=!0;break}if(u._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const Qk={tokenize:n4,partial:!0};function Kk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Jk,continuation:{tokenize:e4},exit:t4}},text:{91:{name:"gfmFootnoteCall",tokenize:Wk},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Zk,resolveTo:$k}}}}function Zk(e,t,r){const u=this;let s=u.events.length;const o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c;for(;s--;){const p=u.events[s][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return d;function d(p){if(!c||!c._balanced)return r(p);const h=Sa(u.sliceSerialize({start:c.end,end:u.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?r(p):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),t(p))}}function $k(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[r+1],e[r+2],["enter",u,t],e[r+3],e[r+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",c,t],["exit",c,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",u,t]];return e.splice(r,e.length-r+1,...d),e}function Wk(e,t,r){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let o=0,c;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(o>999||g===93&&!c||g===null||g===91||mt(g))return r(g);if(g===93){e.exit("chunkString");const A=e.exit("gfmFootnoteCallString");return s.includes(Sa(u.sliceSerialize(A)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(g)}return mt(g)||(c=!0),o++,e.consume(g),g===92?E:h}function E(g){return g===91||g===92||g===93?(e.consume(g),o++,h):h(g)}}function Jk(e,t,r){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let o,c=0,d;return p;function p(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",E):r(x)}function E(x){if(c>999||x===93&&!d||x===null||x===91||mt(x))return r(x);if(x===93){e.exit("chunkString");const R=e.exit("gfmFootnoteDefinitionLabelString");return o=Sa(u.sliceSerialize(R)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),A}return mt(x)||(d=!0),c++,e.consume(x),x===92?g:E}function g(x){return x===91||x===92||x===93?(e.consume(x),c++,E):E(x)}function A(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),s.includes(o)||s.push(o),tt(e,y,"gfmFootnoteDefinitionWhitespace")):r(x)}function y(x){return t(x)}}function e4(e,t,r){return e.check(wl,t,e.attempt(Qk,t,r))}function t4(e){e.exit("gfmFootnoteDefinition")}function n4(e,t,r){const u=this;return tt(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const c=u.events[u.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(o):r(o)}}function a4(e){let r=(e||{}).singleTilde;const u={name:"strikethrough",tokenize:o,resolveAll:s};return r==null&&(r=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function s(c,d){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let h=p;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[p][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const E={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[p][1].end)},g={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[p][1].start)},A=[["enter",E,d],["enter",c[h][1],d],["exit",c[h][1],d],["enter",g,d]],y=d.parser.constructs.insideSpan.null;y&&Kn(A,A.length,0,Oo(y,c.slice(h+1,p),d)),Kn(A,A.length,0,[["exit",g,d],["enter",c[p][1],d],["exit",c[p][1],d],["exit",E,d]]),Kn(c,h-1,p-h+3,A),p=h+A.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function o(c,d,p){const h=this.previous,E=this.events;let g=0;return A;function A(x){return h===126&&E[E.length-1][1].type!=="characterEscape"?p(x):(c.enter("strikethroughSequenceTemporary"),y(x))}function y(x){const R=$i(h);if(x===126)return g>1?p(x):(c.consume(x),g++,y);if(g<2&&!r)return p(x);const O=c.exit("strikethroughSequenceTemporary"),C=$i(x);return O._open=!C||C===2&&!!R,O._close=!R||R===2&&!!C,d(x)}}}class r4{constructor(){this.map=[]}add(t,r,u){i4(this,t,r,u)}consume(t){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const u=[];for(;r>0;)r-=1,u.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];u.push(t.slice()),t.length=0;let s=u.pop();for(;s;){for(const o of s)t.push(o);s=u.pop()}this.map.length=0}}function i4(e,t,r,u){let s=0;if(!(r===0&&u.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=r,e.map[s][2].push(...u);return}s+=1}e.map.push([t,r,u])}}function u4(e,t){let r=!1;const u=[];for(;t<e.length;){const s=e[t];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&u.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=u.length-1;u[o]=u[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return u}function l4(){return{flow:{null:{name:"table",tokenize:s4,resolveAll:o4}}}}function s4(e,t,r){const u=this;let s=0,o=0,c;return d;function d(z){let le=u.events.length-1;for(;le>-1;){const be=u.events[le][1].type;if(be==="lineEnding"||be==="linePrefix")le--;else break}const ce=le>-1?u.events[le][1].type:null,pe=ce==="tableHead"||ce==="tableRow"?H:p;return pe===H&&u.parser.lazy[u.now().line]?r(z):pe(z)}function p(z){return e.enter("tableHead"),e.enter("tableRow"),h(z)}function h(z){return z===124||(c=!0,o+=1),E(z)}function E(z){return z===null?r(z):Le(z)?o>1?(o=0,u.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),y):r(z):$e(z)?tt(e,E,"whitespace")(z):(o+=1,c&&(c=!1,s+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),c=!0,E):(e.enter("data"),g(z)))}function g(z){return z===null||z===124||mt(z)?(e.exit("data"),E(z)):(e.consume(z),z===92?A:g)}function A(z){return z===92||z===124?(e.consume(z),g):g(z)}function y(z){return u.interrupt=!1,u.parser.lazy[u.now().line]?r(z):(e.enter("tableDelimiterRow"),c=!1,$e(z)?tt(e,x,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):x(z))}function x(z){return z===45||z===58?O(z):z===124?(c=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),R):te(z)}function R(z){return $e(z)?tt(e,O,"whitespace")(z):O(z)}function O(z){return z===58?(o+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),C):z===45?(o+=1,C(z)):z===null||Le(z)?Q(z):te(z)}function C(z){return z===45?(e.enter("tableDelimiterFiller"),P(z)):te(z)}function P(z){return z===45?(e.consume(z),P):z===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),M):(e.exit("tableDelimiterFiller"),M(z))}function M(z){return $e(z)?tt(e,Q,"whitespace")(z):Q(z)}function Q(z){return z===124?x(z):z===null||Le(z)?!c||s!==o?te(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(z)):te(z)}function te(z){return r(z)}function H(z){return e.enter("tableRow"),ue(z)}function ue(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),ue):z===null||Le(z)?(e.exit("tableRow"),t(z)):$e(z)?tt(e,ue,"whitespace")(z):(e.enter("data"),re(z))}function re(z){return z===null||z===124||mt(z)?(e.exit("data"),ue(z)):(e.consume(z),z===92?Ae:re)}function Ae(z){return z===92||z===124?(e.consume(z),re):re(z)}}function o4(e,t){let r=-1,u=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,p=0,h,E,g;const A=new r4;for(;++r<e.length;){const y=e[r],x=y[1];y[0]==="enter"?x.type==="tableHead"?(d=!1,p!==0&&(V1(A,t,p,h,E),E=void 0,p=0),h={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},A.add(r,0,[["enter",h,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(u=!0,g=void 0,o=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,E={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},A.add(r,0,[["enter",E,t]])),s=x.type==="tableDelimiterRow"?2:E?3:1):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(u=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],g=uo(A,t,o,s,void 0,g),o=[0,0,0,0]),c[2]=r)):x.type==="tableCellDivider"&&(u?u=!1:(o[1]!==0&&(c[0]=c[1],g=uo(A,t,o,s,void 0,g)),o=c,c=[o[1],r,0,0])):x.type==="tableHead"?(d=!0,p=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(p=r,o[1]!==0?(c[0]=c[1],g=uo(A,t,o,s,r,g)):c[1]!==0&&(g=uo(A,t,c,s,r,g)),s=0):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(c[3]=r)}for(p!==0&&V1(A,t,p,h,E),A.consume(t.events),r=-1;++r<t.events.length;){const y=t.events[r];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=u4(t.events,r))}return e}function uo(e,t,r,u,s,o){const c=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(o.end=Object.assign({},Xi(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));const p=Xi(t.events,r[1]);if(o={type:c,start:Object.assign({},p),end:Object.assign({},p)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){const h=Xi(t.events,r[2]),E=Xi(t.events,r[3]),g={type:d,start:Object.assign({},h),end:Object.assign({},E)};if(e.add(r[2],0,[["enter",g,t]]),u!==2){const A=t.events[r[2]],y=t.events[r[3]];if(A[1].end=Object.assign({},y[1].end),A[1].type="chunkText",A[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,R=r[3]-r[2]-1;e.add(x,R,[])}}e.add(r[3]+1,0,[["exit",g,t]])}return s!==void 0&&(o.end=Object.assign({},Xi(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function V1(e,t,r,u,s){const o=[],c=Xi(t.events,r);s&&(s.end=Object.assign({},c),o.push(["exit",s,t])),u.end=Object.assign({},c),o.push(["exit",u,t]),e.add(r+1,0,o)}function Xi(e,t){const r=e[t],u=r[0]==="enter"?"start":"end";return r[1][u]}const c4={name:"tasklistCheck",tokenize:d4};function f4(){return{text:{91:c4}}}function d4(e,t,r){const u=this;return s;function s(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?r(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),o)}function o(p){return mt(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),c):r(p)}function c(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(p)}function d(p){return Le(p)?t(p):$e(p)?e.check({tokenize:h4},t,r)(p):r(p)}}function h4(e,t,r){return tt(e,u,"whitespace");function u(s){return s===null?r(s):t(s)}}function m4(e){return Xb([Pk(),Kk(),a4(e),l4(),f4()])}const p4={};function g4(e){const t=this,r=e||p4,u=t.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),o=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),c=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(m4(r)),o.push(Mk()),c.push(Bk(r))}function b4(e,t,r){if(!t||!e)return;const u=[];let s=0;for(;s=e.indexOf(t,s),s!==-1;)u.push(s),s+=1;if(u.length===0)return;if(u.length===1)return{start:u[0],end:u[0]+t.length};const o=r??0;let c=u[0],d=Math.abs(c-o);for(const p of u){const h=Math.abs(p-o);h<d&&(d=h,c=p)}return{start:c,end:c+t.length}}const E4=new Set(["P","DIV","H1","H2","H3","H4","H5","H6","PRE","BLOCKQUOTE","LI","TR","BR"]);function N0(e){let t=e.parentElement;for(;t&&!E4.has(t.tagName);)t=t.parentElement;return t}function X1(e,t,r){let u=0,s=null;const o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);let c=o.nextNode();for(;c;){const d=N0(c);if(s&&d&&s!==d&&!s.contains(d)&&!d.contains(s)&&(u+=1),c===t)return u+r;u+=c.textContent?.length??0,s=d,c=o.nextNode()}return u}function T4(e){const t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);let r="",u=null,s=t.nextNode();for(;s;){const o=N0(s);u&&o&&u!==o&&!u.contains(o)&&!o.contains(u)&&(r+=`
39
+ `),r+=s.textContent??"",u=o,s=t.nextNode()}return r}function yT(e){const t=[];let r=0,u=null;const s=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);let o=s.nextNode();for(;o;){const c=N0(o);u&&c&&u!==c&&!u.contains(c)&&!c.contains(u)&&(r+=1);const d=o.textContent?.length??0;t.push({node:o,start:r,end:r+d}),r+=d,u=c,o=s.nextNode()}return t}const y4=5;function A4(e,t,r){return(e.slice(t,r).match(/\n/g)||[]).length+1}function S4(e,t,r,u){const o=yT(e).filter(c=>c.end>t&&c.start<r);if(o.length!==0)for(const{node:c,start:d}of o){const p=Math.max(0,t-d),h=Math.min(c.length,r-d);if(p>=h)continue;const E=document.createRange();E.setStart(c,p),E.setEnd(c,h);const g=document.createElement("mark");g.setAttribute(u.attribute,u.attributeValue);try{E.surroundContents(g)}catch{try{const A=E.extractContents();g.appendChild(A),E.insertNode(g)}catch{}}}}function _4(e,t,r,u,s){const c=yT(e).filter(E=>E.end>r&&E.start<u);if(c.length===0)return;const d=A4(t,r,u),p=s.isBracketMode??d>=y4;let h=!0;for(let E=0;E<c.length;E++){const{node:g,start:A}=c[E],y=E===c.length-1,x=Math.max(0,r-A),R=Math.min(g.length,u-A);if(x>=R)continue;const O=document.createRange();O.setStart(g,x),O.setEnd(g,R);const C=document.createElement("mark");C.setAttribute(s.attribute,s.attributeValue),C.setAttribute("data-color-index",String(s.colorIndex%4)),p&&(C.setAttribute("data-bracket-mode","true"),h&&C.setAttribute("data-bracket-start","true"),y&&C.setAttribute("data-bracket-end","true"));try{O.surroundContents(C)}catch{try{const P=O.extractContents();C.appendChild(P),O.insertNode(C)}catch{}}h=!1}}function Q1(e,t="mark[data-comment-id], mark[data-pending]"){const r=e.querySelectorAll(t);for(const u of r){const s=u.parentNode;if(s){for(;u.firstChild;)s.insertBefore(u.firstChild,u);s.removeChild(u)}}}function K1(e,t,r=0){const u={},s={},o=e.querySelectorAll("mark[data-comment-id]");for(const p of o){const h=p.getAttribute("data-comment-id");if(!h)continue;const E=p.getBoundingClientRect(),g=E.top-t.top;h in u||(u[h]=g,s[h]=E.top+r)}let c;const d=e.querySelector("mark[data-pending]");return d&&(c=d.getBoundingClientRect().top-t.top),{positions:u,documentPositions:s,pendingTop:c}}function AT(e){return e.type==="markdown"?x4(e):C4(e)}function x4(e){const{root:t,container:r,onSelect:u}=e;let s,o,c=null;const d=()=>{const A=window.getSelection();if(!A||A.isCollapsed)return;const y=A.toString().trim().replace(/\r?\n\s*/g,`
40
+ `);if(y.length===0)return;const x=A.getRangeAt(0),R=X1(t,x.startContainer,x.startOffset),O=X1(t,x.endContainer,x.endOffset);u(y,R,O)},p=A=>{if(!o)return;const x=A.target.closest("mark[data-comment-id]");x&&o(x.getAttribute("data-comment-id")??void 0)},h=A=>{if(!o)return;const y=A.target,x=A.relatedTarget,R=y.closest("mark[data-comment-id]");if(R){const O=x?.closest("mark[data-comment-id]");(!O||O.getAttribute("data-comment-id")!==R.getAttribute("data-comment-id"))&&o(void 0)}},E=()=>{if(!s)return;const A=r.getBoundingClientRect(),y=K1(t,A,window.scrollY);s(y)},g=()=>{c===null&&(c=requestAnimationFrame(()=>{E(),c=null}))};return t.addEventListener("mouseup",d),t.addEventListener("mouseover",p),t.addEventListener("mouseout",h),window.addEventListener("scroll",g,{passive:!0}),window.addEventListener("resize",E),{applyHighlights(A,y){Q1(t);const x=T4(t),R=A.map(O=>{const C=b4(x,O.selectedText,O.startOffset);return C?{...O,startOffset:C.start,endOffset:C.end}:null}).filter(O=>O!==null).sort((O,C)=>O.startOffset-C.startOffset);for(const O of R)_4(t,x,O.startOffset,O.endOffset,{attribute:"data-comment-id",attributeValue:O.id,colorIndex:0});y&&S4(t,y.startOffset,y.endOffset,{attribute:"data-pending",attributeValue:"true"}),requestAnimationFrame(()=>E())},clearHighlights(){Q1(t)},getPositions(){const A=r.getBoundingClientRect();return K1(t,A,window.scrollY)},onPositionsChange(A){return s=A,()=>{s=void 0}},onHighlightHover(A){return o=A,()=>{o=void 0}},dispose(){t.removeEventListener("mouseup",d),t.removeEventListener("mouseover",p),t.removeEventListener("mouseout",h),window.removeEventListener("scroll",g),window.removeEventListener("resize",E),c!==null&&cancelAnimationFrame(c),s=void 0,o=void 0}}}function C4(e){const{getIframe:t,onSelect:r}=e;let u=!1,s,o,c,d;const p=E=>{const g=t();if(!(!g||g.contentWindow!==E.source))switch(E.data.type){case"iframeReady":u=!0,d&&(h(d.comments,d.pending),d=void 0);break;case"textSelection":r(E.data.text,E.data.startOffset,E.data.endOffset);break;case"highlightPositions":if(s){const A={},y={};for(const[x,R]of Object.entries(E.data.positions))typeof R=="number"&&(A[x]=R);for(const[x,R]of Object.entries(E.data.documentPositions||{}))typeof R=="number"&&(y[x]=R);s({positions:A,documentPositions:y,pendingTop:typeof E.data.pendingTop=="number"?E.data.pendingTop:void 0})}break;case"highlightHover":o&&o(E.data.commentId);break;case"contentHeight":c&&typeof E.data.height=="number"&&c(E.data.height);break}},h=(E,g)=>{t()?.contentWindow?.postMessage({type:"applyHighlights",comments:E.map(y=>({id:y.id,selectedText:y.selectedText,startOffset:y.startOffset,endOffset:y.endOffset})),pendingSelection:g??null},"*")};return window.addEventListener("message",p),{applyHighlights(E,g){u?h(E,g):d={comments:E,pending:g}},clearHighlights(){u&&h([],void 0)},getPositions(){return{positions:{},documentPositions:{}}},onPositionsChange(E){return s=E,()=>{s=void 0}},onHighlightHover(E){return o=E,()=>{o=void 0}},onContentHeightChange(E){return c=E,()=>{c=void 0}},dispose(){window.removeEventListener("message",p),s=void 0,o=void 0,c=void 0,u=!1,d=void 0}}}function N4(e){return`
41
+ <script>
42
+ (function() {
43
+ const parentOrigin = ${JSON.stringify(e)};
44
+ const root = document.body;
45
+
46
+ // --- Core Functions (from core.ts) ---
47
+
48
+ function findTextPosition(textContent, selectedText, hintOffset) {
49
+ if (!selectedText || !textContent) {
50
+ return null;
51
+ }
52
+
53
+ const occurrences = [];
54
+ let idx = 0;
55
+
56
+ for (;;) {
57
+ idx = textContent.indexOf(selectedText, idx);
58
+ if (idx === -1) break;
59
+ occurrences.push(idx);
60
+ idx += 1;
61
+ }
62
+
63
+ if (occurrences.length === 0) {
64
+ return null;
65
+ }
66
+
67
+ if (occurrences.length === 1) {
68
+ return {
69
+ start: occurrences[0],
70
+ end: occurrences[0] + selectedText.length,
71
+ };
72
+ }
73
+
74
+ // Multiple occurrences: find closest to hint offset
75
+ const target = hintOffset ?? 0;
76
+ let closest = occurrences[0];
77
+ let minDist = Math.abs(closest - target);
78
+
79
+ for (const occ of occurrences) {
80
+ const dist = Math.abs(occ - target);
81
+ if (dist < minDist) {
82
+ minDist = dist;
83
+ closest = occ;
84
+ }
85
+ }
86
+
87
+ return {
88
+ start: closest,
89
+ end: closest + selectedText.length,
90
+ };
91
+ }
92
+
93
+ // --- DOM Functions (from dom.ts) ---
94
+
95
+ const BLOCK_ELEMENTS = new Set([
96
+ 'P', 'DIV', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6',
97
+ 'PRE', 'BLOCKQUOTE', 'LI', 'TR', 'BR'
98
+ ]);
99
+
100
+ function findBlockParent(node) {
101
+ let parent = node.parentElement;
102
+ while (parent && !BLOCK_ELEMENTS.has(parent.tagName)) {
103
+ parent = parent.parentElement;
104
+ }
105
+ return parent;
106
+ }
107
+
108
+ function getTextOffset(root, targetNode, targetOffset) {
109
+ let offset = 0;
110
+ let lastBlockParent = null;
111
+ const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT);
112
+
113
+ let node = walker.nextNode();
114
+ while (node) {
115
+ const blockParent = findBlockParent(node);
116
+
117
+ // Add newline when transitioning between different block parents
118
+ if (lastBlockParent && blockParent && lastBlockParent !== blockParent) {
119
+ if (!lastBlockParent.contains(blockParent) && !blockParent.contains(lastBlockParent)) {
120
+ offset += 1; // Account for the newline
121
+ }
122
+ }
123
+
124
+ if (node === targetNode) {
125
+ return offset + targetOffset;
126
+ }
127
+ offset += (node.textContent?.length ?? 0);
128
+ lastBlockParent = blockParent;
129
+ node = walker.nextNode();
130
+ }
131
+
132
+ return offset;
133
+ }
134
+
135
+ function getDOMTextContent(root) {
136
+ const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT);
137
+ let text = '';
138
+ let lastBlockParent = null;
139
+ let node = walker.nextNode();
140
+
141
+ while (node) {
142
+ const blockParent = findBlockParent(node);
143
+
144
+ // Insert newline when transitioning between different block parents
145
+ if (lastBlockParent && blockParent && lastBlockParent !== blockParent) {
146
+ if (!lastBlockParent.contains(blockParent) && !blockParent.contains(lastBlockParent)) {
147
+ text += '\\n';
148
+ }
149
+ }
150
+
151
+ text += node.textContent ?? '';
152
+ lastBlockParent = blockParent;
153
+ node = walker.nextNode();
154
+ }
155
+
156
+ return text;
157
+ }
158
+
159
+ function collectTextNodes(root) {
160
+ const textNodes = [];
161
+ let currentOffset = 0;
162
+ let lastBlockParent = null;
163
+
164
+ const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT);
165
+ let node = walker.nextNode();
166
+
167
+ while (node) {
168
+ const blockParent = findBlockParent(node);
169
+
170
+ // Account for newline when transitioning between different block parents
171
+ // (same logic as getDOMTextContent)
172
+ if (lastBlockParent && blockParent && lastBlockParent !== blockParent) {
173
+ if (!lastBlockParent.contains(blockParent) && !blockParent.contains(lastBlockParent)) {
174
+ currentOffset += 1; // Account for the newline
175
+ }
176
+ }
177
+
178
+ const length = node.textContent?.length ?? 0;
179
+ textNodes.push({
180
+ node: node,
181
+ start: currentOffset,
182
+ end: currentOffset + length,
183
+ });
184
+ currentOffset += length;
185
+ lastBlockParent = blockParent;
186
+ node = walker.nextNode();
187
+ }
188
+
189
+ return textNodes;
190
+ }
191
+
192
+ function applyHighlightToRange(root, startOffset, endOffset, style) {
193
+ const textNodes = collectTextNodes(root);
194
+
195
+ const overlappingNodes = textNodes.filter(
196
+ n => n.end > startOffset && n.start < endOffset
197
+ );
198
+
199
+ if (overlappingNodes.length === 0) {
200
+ return;
201
+ }
202
+
203
+ for (const { node: textNode, start } of overlappingNodes) {
204
+ const nodeStart = Math.max(0, startOffset - start);
205
+ const nodeEnd = Math.min(textNode.length, endOffset - start);
206
+
207
+ if (nodeStart >= nodeEnd) {
208
+ continue;
209
+ }
210
+
211
+ const range = document.createRange();
212
+ range.setStart(textNode, nodeStart);
213
+ range.setEnd(textNode, nodeEnd);
214
+
215
+ const mark = document.createElement('mark');
216
+ mark.setAttribute(style.attribute, style.attributeValue);
217
+
218
+ try {
219
+ range.surroundContents(mark);
220
+ } catch (e) {
221
+ // Range crosses element boundaries (e.g., syntax-highlighted code blocks)
222
+ // Use extractContents + insertNode as fallback
223
+ try {
224
+ const fragment = range.extractContents();
225
+ mark.appendChild(fragment);
226
+ range.insertNode(mark);
227
+ } catch (e2) {
228
+ // If even extractContents fails, skip this node
229
+ }
230
+ }
231
+ }
232
+ }
233
+
234
+ function clearHighlights(root) {
235
+ const marks = root.querySelectorAll('mark[data-comment-id], mark[data-pending]');
236
+
237
+ for (const mark of marks) {
238
+ const parent = mark.parentNode;
239
+ if (parent) {
240
+ while (mark.firstChild) {
241
+ parent.insertBefore(mark.firstChild, mark);
242
+ }
243
+ parent.removeChild(mark);
244
+ }
245
+ }
246
+ }
247
+
248
+ function collectHighlightPositions(root) {
249
+ const positions = {};
250
+ const documentPositions = {};
251
+ const scrollY = window.scrollY || 0;
252
+
253
+ const marks = root.querySelectorAll('mark[data-comment-id]');
254
+ for (const mark of marks) {
255
+ const commentId = mark.getAttribute('data-comment-id');
256
+ if (!commentId || positions[commentId] !== undefined) continue;
257
+
258
+ const rect = mark.getBoundingClientRect();
259
+ positions[commentId] = rect.top;
260
+ documentPositions[commentId] = rect.top + scrollY;
261
+ }
262
+
263
+ let pendingTop = null;
264
+ const pendingMark = root.querySelector('mark[data-pending]');
265
+ if (pendingMark) {
266
+ const pendingRect = pendingMark.getBoundingClientRect();
267
+ pendingTop = pendingRect.top;
268
+ }
269
+
270
+ return { positions, documentPositions, pendingTop };
271
+ }
272
+
273
+ // --- Selection Handler ---
274
+
275
+ document.addEventListener('mouseup', function() {
276
+ const selection = window.getSelection();
277
+ if (!selection || selection.isCollapsed) return;
278
+
279
+ // Normalize whitespace: collapse any sequence of whitespace containing newlines
280
+ // Browser's selection.toString() includes CSS margins as extra newlines/spaces
281
+ const text = selection.toString().trim().replace(/\\r?\\n\\s*/g, '\\n');
282
+ if (text.length === 0) return;
283
+
284
+ const range = selection.getRangeAt(0);
285
+ const startOffset = getTextOffset(root, range.startContainer, range.startOffset);
286
+ const endOffset = getTextOffset(root, range.endContainer, range.endOffset);
287
+
288
+ parent.postMessage({
289
+ type: 'textSelection',
290
+ text: text,
291
+ startOffset: startOffset,
292
+ endOffset: endOffset
293
+ }, parentOrigin);
294
+ });
295
+
296
+ // --- Message Handler ---
297
+
298
+ window.addEventListener('message', function(event) {
299
+ // Handle scroll to heading request from parent
300
+ if (event.data.type === 'scrollToHeading') {
301
+ const id = event.data.id;
302
+ const element = document.getElementById(id);
303
+ if (element) {
304
+ element.scrollIntoView({ behavior: 'smooth', block: 'start' });
305
+ }
306
+ return;
307
+ }
308
+
309
+ if (event.data.type === 'applyHighlights') {
310
+ clearHighlights(root);
311
+
312
+ const comments = event.data.comments || [];
313
+ const pending = event.data.pendingSelection;
314
+
315
+ const textContent = getDOMTextContent(root);
316
+
317
+ // Resolve anchors and apply highlights
318
+ const resolved = comments
319
+ .map(function(c) {
320
+ const anchor = findTextPosition(textContent, c.selectedText, c.startOffset);
321
+ if (anchor) {
322
+ return { id: c.id, startOffset: anchor.start, endOffset: anchor.end };
323
+ }
324
+ return { id: c.id, startOffset: c.startOffset, endOffset: c.endOffset };
325
+ })
326
+ .sort(function(a, b) { return a.startOffset - b.startOffset; });
327
+
328
+ for (const comment of resolved) {
329
+ applyHighlightToRange(root, comment.startOffset, comment.endOffset, {
330
+ attribute: 'data-comment-id',
331
+ attributeValue: comment.id
332
+ });
333
+ }
334
+
335
+ if (pending) {
336
+ applyHighlightToRange(root, pending.startOffset, pending.endOffset, {
337
+ attribute: 'data-pending',
338
+ attributeValue: 'true'
339
+ });
340
+ }
341
+
342
+ setTimeout(function() {
343
+ reportPositions();
344
+ reportContentHeight();
345
+ }, 50);
346
+ }
347
+ });
348
+
349
+ // --- Position Reporting ---
350
+
351
+ function reportPositions() {
352
+ const result = collectHighlightPositions(root);
353
+ parent.postMessage({
354
+ type: 'highlightPositions',
355
+ positions: result.positions,
356
+ documentPositions: result.documentPositions,
357
+ pendingTop: result.pendingTop
358
+ }, parentOrigin);
359
+ }
360
+
361
+ // --- Content Height Reporting ---
362
+
363
+ function reportContentHeight() {
364
+ parent.postMessage({
365
+ type: 'contentHeight',
366
+ height: document.body.scrollHeight
367
+ }, parentOrigin);
368
+ }
369
+
370
+ window.addEventListener('scroll', reportPositions, { passive: true });
371
+ document.addEventListener('scroll', reportPositions, { passive: true });
372
+ window.addEventListener('resize', function() {
373
+ reportPositions();
374
+ reportContentHeight();
375
+ });
376
+ window.addEventListener('load', reportContentHeight);
377
+
378
+ // --- Hover Handlers ---
379
+
380
+ document.addEventListener('mouseover', function(e) {
381
+ const mark = e.target.closest('mark[data-comment-id]');
382
+ if (mark) {
383
+ parent.postMessage({
384
+ type: 'highlightHover',
385
+ commentId: mark.getAttribute('data-comment-id')
386
+ }, parentOrigin);
387
+ }
388
+ });
389
+
390
+ document.addEventListener('mouseout', function(e) {
391
+ const mark = e.target.closest('mark[data-comment-id]');
392
+ if (mark) {
393
+ const related = e.relatedTarget?.closest?.('mark[data-comment-id]');
394
+ if (!related || related.getAttribute('data-comment-id') !== mark.getAttribute('data-comment-id')) {
395
+ parent.postMessage({ type: 'highlightHover', commentId: null }, parentOrigin);
396
+ }
397
+ }
398
+ });
399
+
400
+ // --- Ready Signal ---
401
+
402
+ parent.postMessage({ type: 'iframeReady' }, parentOrigin);
403
+
404
+ // --- Ensure Heading IDs for TOC navigation ---
405
+
406
+ function ensureHeadingIds() {
407
+ const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
408
+ const seenIds = {};
409
+
410
+ for (const heading of headings) {
411
+ if (!heading.id) {
412
+ let id = (heading.textContent || '')
413
+ .toLowerCase()
414
+ .trim()
415
+ .replace(/[^a-z0-9 -]/g, '')
416
+ .replace(/ +/g, '-')
417
+ .replace(/-+/g, '-');
418
+
419
+ // Handle duplicates
420
+ const baseId = id;
421
+ const count = seenIds[baseId] || 0;
422
+ if (count > 0) {
423
+ id = baseId + '-' + count;
424
+ }
425
+ seenIds[baseId] = count + 1;
426
+
427
+ heading.id = id;
428
+ }
429
+ }
430
+ }
431
+ ensureHeadingIds();
432
+
433
+ // Height reporting delays to catch layout shifts
434
+ const HEIGHT_REPORT_DELAY_SHORT = 100;
435
+ const HEIGHT_REPORT_DELAY_LONG = 500;
436
+
437
+ // Report initial height reliably - use multiple strategies
438
+ function scheduleHeightReport() {
439
+ // Immediate report
440
+ reportContentHeight();
441
+ // Delayed report to catch layout shifts
442
+ setTimeout(reportContentHeight, HEIGHT_REPORT_DELAY_SHORT);
443
+ setTimeout(reportContentHeight, HEIGHT_REPORT_DELAY_LONG);
444
+ }
445
+
446
+ if (document.readyState === 'complete') {
447
+ scheduleHeightReport();
448
+ } else {
449
+ window.addEventListener('load', scheduleHeightReport);
450
+ }
451
+
452
+ // Watch for content size changes with ResizeObserver
453
+ if (typeof ResizeObserver !== 'undefined') {
454
+ const resizeObserver = new ResizeObserver(function() {
455
+ reportContentHeight();
456
+ });
457
+ resizeObserver.observe(document.body);
458
+ }
459
+ })();
460
+ <\/script>
461
+ `}function v4(e,t){if(e==null)return{};var r={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(t.indexOf(u)!==-1)continue;r[u]=e[u]}return r}function O4(e,t){if(e==null)return{};var r,u,s=v4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(u=0;u<o.length;u++)r=o[u],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function $d(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,u=Array(t);r<t;r++)u[r]=e[r];return u}function k4(e){if(Array.isArray(e))return $d(e)}function R4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function D4(e,t){if(e){if(typeof e=="string")return $d(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$d(e,t):void 0}}function w4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
462
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wd(e){return k4(e)||R4(e)||D4(e)||w4()}function vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vl(e)}function L4(e,t){if(vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var u=r.call(e,t);if(vl(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function I4(e){var t=L4(e,"string");return vl(t)=="symbol"?t:t+""}function ST(e,t,r){return(t=I4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var u in r)({}).hasOwnProperty.call(r,u)&&(e[u]=r[u])}return e},Jd.apply(null,arguments)}function Z1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,u)}return r}function Ki(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z1(Object(r),!0).forEach(function(u){ST(e,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z1(Object(r)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(r,u))})}return e}function M4(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Nd={};function B4(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Nd[t]||(Nd[t]=M4(e)),Nd[t]}function H4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,u=e.filter(function(o){return o!=="token"}),s=B4(u);return s.reduce(function(o,c){return Ki(Ki({},o),r[c])},t)}function $1(e){return e.join(" ")}function U4(e,t){var r=0;return function(u){return r+=1,u.map(function(s,o){return _T({node:s,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(o)})})}}function _T(e){var t=e.node,r=e.stylesheet,u=e.style,s=u===void 0?{}:u,o=e.useInlineStyles,c=e.key,d=t.properties,p=t.type,h=t.tagName,E=t.value;if(p==="text")return E;if(h){var g=U4(r,o),A;if(!o)A=Ki(Ki({},d),{},{className:$1(d.className)});else{var y=Object.keys(r).reduce(function(C,P){return P.split(".").forEach(function(M){C.includes(M)||C.push(M)}),C},[]),x=d.className&&d.className.includes("token")?["token"]:[],R=d.className&&x.concat(d.className.filter(function(C){return!y.includes(C)}));A=Ki(Ki({},d),{},{className:$1(R)||void 0,style:H4(d.className,Object.assign({},d.style,s),r)})}var O=g(t.children);return Te.createElement(h,Jd({key:c},A),O)}}const P4=(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1});var F4=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function W1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,u)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W1(Object(r),!0).forEach(function(u){ST(e,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W1(Object(r)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(r,u))})}return e}var z4=/\n/g;function j4(e){return e.match(z4)}function Y4(e){var t=e.lines,r=e.startingLineNumber,u=e.style;return t.map(function(s,o){var c=o+r;return Te.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof u=="function"?u(c):u},"".concat(c,`
463
+ `))})}function G4(e){var t=e.codeString,r=e.codeStyle,u=e.containerStyle,s=u===void 0?{float:"left",paddingRight:"10px"}:u,o=e.numberStyle,c=o===void 0?{}:o,d=e.startingLineNumber;return Te.createElement("code",{style:Object.assign({},r,s)},Y4({lines:t.replace(/\n$/,"").split(`
464
+ `),style:c,startingLineNumber:d}))}function q4(e){return"".concat(e.toString().length,".25em")}function xT(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function CT(e,t,r){var u={display:"inline-block",minWidth:q4(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},s=typeof e=="function"?e(t):e,o=Mr(Mr({},u),s);return o}function po(e){var t=e.children,r=e.lineNumber,u=e.lineNumberStyle,s=e.largestLineNumber,o=e.showInlineLineNumbers,c=e.lineProps,d=c===void 0?{}:c,p=e.className,h=p===void 0?[]:p,E=e.showLineNumbers,g=e.wrapLongLines,A=e.wrapLines,y=A===void 0?!1:A,x=y?Mr({},typeof d=="function"?d(r):d):{};if(x.className=x.className?[].concat(Wd(x.className.trim().split(/\s+/)),Wd(h)):h,r&&o){var R=CT(u,r,s);t.unshift(xT(r,R))}return g&E&&(x.style=Mr({display:"flex"},x.style)),{type:"element",tagName:"span",properties:x,children:t}}function NT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var u=0;u<e.length;u++){var s=e[u];if(s.type==="text")r.push(po({children:[s],className:Wd(new Set(t))}));else if(s.children){var o,c=t.concat(((o=s.properties)===null||o===void 0?void 0:o.className)||[]);NT(s.children,c).forEach(function(d){return r.push(d)})}}return r}function V4(e,t,r,u,s,o,c,d,p){var h,E=NT(e.value),g=[],A=-1,y=0;function x(te,H){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return po({children:te,lineNumber:H,lineNumberStyle:d,largestLineNumber:c,showInlineLineNumbers:s,lineProps:r,className:ue,showLineNumbers:u,wrapLongLines:p,wrapLines:t})}function R(te,H){if(u&&H&&s){var ue=CT(d,H,c);te.unshift(xT(H,ue))}return te}function O(te,H){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||ue.length>0?x(te,H,ue):R(te,H)}for(var C=function(){var H=E[y],ue=H.children[0].value,re=j4(ue);if(re){var Ae=ue.split(`
465
+ `);Ae.forEach(function(z,le){var ce=u&&g.length+o,pe={type:"text",value:"".concat(z,`
466
+ `)};if(le===0){var be=E.slice(A+1,y).concat(po({children:[pe],className:H.properties.className})),oe=O(be,ce);g.push(oe)}else if(le===Ae.length-1){var U=E[y+1]&&E[y+1].children&&E[y+1].children[0],J={type:"text",value:"".concat(z)};if(U){var ne=po({children:[J],className:H.properties.className});E.splice(y+1,0,ne)}else{var Re=[J],k=O(Re,ce,H.properties.className);g.push(k)}}else{var D=[pe],K=O(D,ce,H.properties.className);g.push(K)}}),A=y}y++};y<E.length;)C();if(A!==E.length-1){var P=E.slice(A+1,E.length);if(P&&P.length){var M=u&&g.length+o,Q=O(P,M);g.push(Q)}}return t?g:(h=[]).concat.apply(h,g)}function X4(e){var t=e.rows,r=e.stylesheet,u=e.useInlineStyles;return t.map(function(s,o){return _T({node:s,stylesheet:r,useInlineStyles:u,key:"code-segment-".concat(o)})})}function vT(e){return e&&typeof e.highlightAuto<"u"}function Q4(e){var t=e.astGenerator,r=e.language,u=e.code,s=e.defaultCodeValue;if(vT(t)){var o=P4(t,r);return r==="text"?{value:s,language:"text"}:o?t.highlight(r,u):t.highlightAuto(u)}try{return r&&r!=="text"?{value:t.highlight(u,r)}:{value:s}}catch{return{value:s}}}function K4(e,t){return function(u){var s,o,c=u.language,d=u.children,p=u.style,h=p===void 0?t:p,E=u.customStyle,g=E===void 0?{}:E,A=u.codeTagProps,y=A===void 0?{className:c?"language-".concat(c):void 0,style:Mr(Mr({},h['code[class*="language-"]']),h['code[class*="language-'.concat(c,'"]')])}:A,x=u.useInlineStyles,R=x===void 0?!0:x,O=u.showLineNumbers,C=O===void 0?!1:O,P=u.showInlineLineNumbers,M=P===void 0?!0:P,Q=u.startingLineNumber,te=Q===void 0?1:Q,H=u.lineNumberContainerStyle,ue=u.lineNumberStyle,re=ue===void 0?{}:ue,Ae=u.wrapLines,z=u.wrapLongLines,le=z===void 0?!1:z,ce=u.lineProps,pe=ce===void 0?{}:ce,be=u.renderer,oe=u.PreTag,U=oe===void 0?"pre":oe,J=u.CodeTag,ne=J===void 0?"code":J,Re=u.code,k=Re===void 0?(Array.isArray(d)?d[0]:d)||"":Re,D=u.astGenerator,K=O4(u,F4);D=D||e;var _=C?Te.createElement(G4,{containerStyle:H,codeStyle:y.style||{},numberStyle:re,startingLineNumber:te,codeString:k}):null,X=h.hljs||h['pre[class*="language-"]']||{backgroundColor:"#fff"},ee=vT(D)?"hljs":"prismjs",ye=R?Object.assign({},K,{style:Object.assign({},X,g)}):Object.assign({},K,{className:K.className?"".concat(ee," ").concat(K.className):ee,style:Object.assign({},g)});if(le?y.style=Mr({whiteSpace:"pre-wrap"},y.style):y.style=Mr({whiteSpace:"pre"},y.style),!D)return Te.createElement(U,ye,_,Te.createElement(ne,y,k));(Ae===void 0&&be||le)&&(Ae=!0),be=be||X4;var Se=[{type:"text",value:k}],xe=Q4({astGenerator:D,language:c,code:k,defaultCodeValue:Se});xe.language===null&&(xe.value=Se);var Be=(s=(o=k.match(/\n/g))===null||o===void 0?void 0:o.length)!==null&&s!==void 0?s:0,st=te+Be,Ct=V4(xe,Ae,pe,C,M,te,st,re,le);return Te.createElement(U,ye,Te.createElement(ne,y,!M&&_,be({rows:Ct,stylesheet:h,useInlineStyles:R})))}}const Z4=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],J1={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function OT(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function $4(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function W4(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function eb(e){return W4(e)||OT(e)}const J4=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function eR(e,t){const r={},u=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,s=[];let o=0,c=-1,d="",p,h;r.position&&("start"in r.position||"indent"in r.position?(h=r.position.indent,p=r.position.start):p=r.position);let E=(p?p.line:0)||1,g=(p?p.column:0)||1,A=x(),y;for(o--;++o<=e.length;)if(y===10&&(g=(h?h[c]:0)||1),y=e.charCodeAt(o),y===38){const C=e.charCodeAt(o+1);if(C===9||C===10||C===12||C===32||C===38||C===60||Number.isNaN(C)||u&&C===u){d+=String.fromCharCode(y),g++;continue}const P=o+1;let M=P,Q=P,te;if(C===35){Q=++M;const pe=e.charCodeAt(Q);pe===88||pe===120?(te="hexadecimal",Q=++M):te="decimal"}else te="named";let H="",ue="",re="";const Ae=te==="named"?eb:te==="decimal"?OT:$4;for(Q--;++Q<=e.length;){const pe=e.charCodeAt(Q);if(!Ae(pe))break;re+=String.fromCharCode(pe),te==="named"&&Z4.includes(re)&&(H=re,ue=xl(re))}let z=e.charCodeAt(Q)===59;if(z){Q++;const pe=te==="named"?xl(re):!1;pe&&(H=re,ue=pe)}let le=1+Q-P,ce="";if(!(!z&&r.nonTerminated===!1))if(!re)te!=="named"&&R(4,le);else if(te==="named"){if(z&&!ue)R(5,1);else if(H!==re&&(Q=M+H.length,le=1+Q-M,z=!1),!z){const pe=H?1:3;if(r.attribute){const be=e.charCodeAt(Q);be===61?(R(pe,le),ue=""):eb(be)?ue="":R(pe,le)}else R(pe,le)}ce=ue}else{z||R(2,le);let pe=Number.parseInt(re,te==="hexadecimal"?16:10);if(tR(pe))R(7,le),ce="�";else if(pe in J1)R(6,le),ce=J1[pe];else{let be="";nR(pe)&&R(6,le),pe>65535&&(pe-=65536,be+=String.fromCharCode(pe>>>10|55296),pe=56320|pe&1023),ce=be+String.fromCharCode(pe)}}if(ce){O(),A=x(),o=Q-1,g+=Q-P+1,s.push(ce);const pe=x();pe.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,ce,{start:A,end:pe},e.slice(P-1,Q)),A=pe}else re=e.slice(P-1,Q),d+=re,g+=re.length,o=Q-1}else y===10&&(E++,c++,g=0),Number.isNaN(y)?O():(d+=String.fromCharCode(y),g++);return s.join("");function x(){return{line:E,column:g,offset:o+((p?p.offset:0)||0)}}function R(C,P){let M;r.warning&&(M=x(),M.column+=P,M.offset+=P,r.warning.call(r.warningContext||void 0,J4[C],M,C))}function O(){d&&(s.push(d),r.text&&r.text.call(r.textContext||void 0,d,{start:A,end:x()}),d="")}}function tR(e){return e>=55296&&e<=57343||e>1114111}function nR(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var aR=0,lo={},nn={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++aR}),e.__id},clone:function e(t,r){r=r||{};var u,s;switch(nn.util.type(t)){case"Object":if(s=nn.util.objId(t),r[s])return r[s];u={},r[s]=u;for(var o in t)t.hasOwnProperty(o)&&(u[o]=e(t[o],r));return u;case"Array":return s=nn.util.objId(t),r[s]?r[s]:(u=[],r[s]=u,t.forEach(function(c,d){u[d]=e(c,r)}),u);default:return t}}},languages:{plain:lo,plaintext:lo,text:lo,txt:lo,extend:function(e,t){var r=nn.util.clone(nn.languages[e]);for(var u in t)r[u]=t[u];return r},insertBefore:function(e,t,r,u){u=u||nn.languages;var s=u[e],o={};for(var c in s)if(s.hasOwnProperty(c)){if(c==t)for(var d in r)r.hasOwnProperty(d)&&(o[d]=r[d]);r.hasOwnProperty(c)||(o[c]=s[c])}var p=u[e];return u[e]=o,nn.languages.DFS(nn.languages,function(h,E){E===p&&h!=e&&(this[h]=o)}),o},DFS:function e(t,r,u,s){s=s||{};var o=nn.util.objId;for(var c in t)if(t.hasOwnProperty(c)){r.call(t,c,t[c],u||c);var d=t[c],p=nn.util.type(d);p==="Object"&&!s[o(d)]?(s[o(d)]=!0,e(d,r,null,s)):p==="Array"&&!s[o(d)]&&(s[o(d)]=!0,e(d,r,c,s))}}},plugins:{},highlight:function(e,t,r){var u={code:e,grammar:t,language:r};if(nn.hooks.run("before-tokenize",u),!u.grammar)throw new Error('The language "'+u.language+'" has no grammar.');return u.tokens=nn.tokenize(u.code,u.grammar),nn.hooks.run("after-tokenize",u),Al.stringify(nn.util.encode(u.tokens),u.language)},tokenize:function(e,t){var r=t.rest;if(r){for(var u in r)t[u]=r[u];delete t.rest}var s=new rR;return go(s,s.head,e),kT(e,s,t,s.head,0),uR(s)},hooks:{all:{},add:function(e,t){var r=nn.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=nn.hooks.all[e];if(!(!r||!r.length))for(var u=0,s;s=r[u++];)s(t)}},Token:Al};function Al(e,t,r,u){this.type=e,this.content=t,this.alias=r,this.length=(u||"").length|0}function tb(e,t,r,u){e.lastIndex=t;var s=e.exec(r);if(s&&u&&s[1]){var o=s[1].length;s.index+=o,s[0]=s[0].slice(o)}return s}function kT(e,t,r,u,s,o){for(var c in r)if(!(!r.hasOwnProperty(c)||!r[c])){var d=r[c];d=Array.isArray(d)?d:[d];for(var p=0;p<d.length;++p){if(o&&o.cause==c+","+p)return;var h=d[p],E=h.inside,g=!!h.lookbehind,A=!!h.greedy,y=h.alias;if(A&&!h.pattern.global){var x=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,x+"g")}for(var R=h.pattern||h,O=u.next,C=s;O!==t.tail&&!(o&&C>=o.reach);C+=O.value.length,O=O.next){var P=O.value;if(t.length>e.length)return;if(!(P instanceof Al)){var M=1,Q;if(A){if(Q=tb(R,C,e,g),!Q||Q.index>=e.length)break;var re=Q.index,te=Q.index+Q[0].length,H=C;for(H+=O.value.length;re>=H;)O=O.next,H+=O.value.length;if(H-=O.value.length,C=H,O.value instanceof Al)continue;for(var ue=O;ue!==t.tail&&(H<te||typeof ue.value=="string");ue=ue.next)M++,H+=ue.value.length;M--,P=e.slice(C,H),Q.index-=C}else if(Q=tb(R,0,P,g),!Q)continue;var re=Q.index,Ae=Q[0],z=P.slice(0,re),le=P.slice(re+Ae.length),ce=C+P.length;o&&ce>o.reach&&(o.reach=ce);var pe=O.prev;z&&(pe=go(t,pe,z),C+=z.length),iR(t,pe,M);var be=new Al(c,E?nn.tokenize(Ae,E):Ae,y,Ae);if(O=go(t,pe,be),le&&go(t,O,le),M>1){var oe={cause:c+","+p,reach:ce};kT(e,t,r,O.prev,C,oe),o&&oe.reach>o.reach&&(o.reach=oe.reach)}}}}}}function rR(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function go(e,t,r){var u=t.next,s={value:r,prev:t,next:u};return t.next=s,u.prev=s,e.length++,s}function iR(e,t,r){for(var u=t.next,s=0;s<r&&u!==e.tail;s++)u=u.next;t.next=u,u.prev=t,e.length-=s}function uR(e){for(var t=[],r=e.head.next;r!==e.tail;)t.push(r.value),r=r.next;return t}const RT=nn;function DT(){}DT.prototype=RT;const $t=new DT;$t.highlight=lR;$t.register=sR;$t.alias=oR;$t.registered=cR;$t.listLanguages=fR;$t.util.encode=dR;$t.Token.stringify=e0;function lR(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let r,u;if(t&&typeof t=="object")r=t;else{if(u=t,typeof u!="string")throw new TypeError("Expected `string` for `name`, got `"+u+"`");if(Object.hasOwn($t.languages,u))r=$t.languages[u];else throw new Error("Unknown language: `"+u+"` is not registered")}return{type:"root",children:RT.highlight.call($t,e,r,u)}}function sR(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn($t.languages,e.displayName)||e($t)}function oR(e,t){const r=$t.languages;let u={};typeof e=="string"?t&&(u[e]=t):u=e;let s;for(s in u)if(Object.hasOwn(u,s)){const o=u[s],c=typeof o=="string"?[o]:o;let d=-1;for(;++d<c.length;)r[c[d]]=r[s]}}function cR(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return Object.hasOwn($t.languages,e)}function fR(){const e=$t.languages,t=[];let r;for(r in e)Object.hasOwn(e,r)&&typeof e[r]=="object"&&t.push(r);return t}function e0(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const u=[];let s=-1;for(;++s<e.length;)e[s]!==null&&e[s]!==void 0&&e[s]!==""&&u.push(e0(e[s],t));return u}const r={attributes:{},classes:["token",e.type],content:e0(e.content,t),language:t,tag:"span",type:e.type};return e.alias&&r.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),$t.hooks.run("wrap",r),pE(r.tag+"."+r.classes.join("."),hR(r.attributes),r.content)}function dR(e){return e}function hR(e){let t;for(t in e)Object.hasOwn(e,t)&&(e[t]=eR(e[t]));return e}var Tt=K4($t,{});Tt.registerLanguage=function(e,t){return $t.register(t)};Tt.alias=function(e,t){return $t.alias(e,t)};Ho.displayName="markup";Ho.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Ho(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,u){var s={};s["language-"+u]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[u]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};o["language-"+u]={pattern:/[\s\S]+/,inside:e.languages[u]};var c={};c[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}v0.displayName="css";v0.aliases=[];function v0(e){(function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var u=t.languages.markup;u&&(u.tag.addInlined("style","css"),u.tag.addAttribute("style","css"))})(e)}Uo.displayName="clike";Uo.aliases=[];function Uo(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}lu.displayName="javascript";lu.aliases=["js"];function lu(e){e.register(Uo),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}O0.displayName="sql";O0.aliases=[];function O0(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Bl.displayName="bash";Bl.aliases=["sh","shell"];function Bl(e){(function(t){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",u={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},s={bash:u,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:s},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:u}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:s},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:s.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:s.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},u.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],c=s.variable[1].inside,d=0;d<o.length;d++)c[o[d]]=t.languages.bash[o[d]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}Po.displayName="yaml";Po.aliases=["yml"];function Po(e){(function(t){var r=/[*&][^\s[\]{},]+/,u=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,s="(?:"+u.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+u.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),c=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function d(p,h){h=(h||"").replace(/m/g,"")+"m";var E=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return s}).replace(/<<value>>/g,function(){return p});return RegExp(E,h)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return s})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return s}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+c+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:d(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:d(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:d(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:d(c),lookbehind:!0,greedy:!0},number:{pattern:d(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:u,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}Fo.displayName="markdown";Fo.aliases=["md"];function Fo(e){e.register(Ho),(function(t){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function u(d){return d=d.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var s=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return s}),c=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+c+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+c+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(s),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+c+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(s),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:u(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:u(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:u(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:u(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(p){d!==p&&(t.languages.markdown[d].inside.content.inside[p]=t.languages.markdown[p])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function p(h){if(!(!h||typeof h=="string"))for(var E=0,g=h.length;E<g;E++){var A=h[E];if(A.type!=="code"){p(A.content);continue}var y=A.content[1],x=A.content[3];if(y&&x&&y.type==="code-language"&&x.type==="code-block"&&typeof y.content=="string"){var R=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");R=(/[a-z][\w-]*/i.exec(R)||[""])[0].toLowerCase();var O="language-"+R;x.alias?typeof x.alias=="string"?x.alias=[x.alias,O]:x.alias.push(O):x.alias=[O]}}}p(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var p="",h=0,E=d.classes.length;h<E;h++){var g=d.classes[h],A=/language-(.+)/.exec(g);if(A){p=A[1];break}}var y=t.languages[p];if(y)d.content=t.highlight(d.content.value,y,p);else if(p&&p!=="none"&&t.plugins.autoloader){var x="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=x,t.plugins.autoloader.loadLanguages(p,function(){var R=document.getElementById(x);R&&(R.innerHTML=t.highlight(R.textContent,t.languages[p],p))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown})(e)}k0.displayName="diff";k0.aliases=[];function k0(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(u){var s=r[u],o=[];/^\w+$/.test(u)||o.push(/\w+/.exec(u)[0]),u==="diff"&&o.push("bold"),t.languages.diff[u]={pattern:RegExp("^(?:["+s+`].*(?:\r
467
+ ?|
468
+ |(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(u)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:r})})(e)}R0.displayName="go";R0.aliases=[];function R0(e){e.register(Uo),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}D0.displayName="graphql";D0.aliases=[];function D0(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var u=r.tokens.filter(function(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),s=0;function o(O){return u[s+O]}function c(O,C){C=C||0;for(var P=0;P<O.length;P++){var M=o(P+C);if(!M||M.type!==O[P])return!1}return!0}function d(O,C){for(var P=1,M=s;M<u.length;M++){var Q=u[M],te=Q.content;if(Q.type==="punctuation"&&typeof te=="string"){if(O.test(te))P++;else if(C.test(te)&&(P--,P===0))return M}}return-1}function p(O,C){var P=O.alias;P?Array.isArray(P)||(O.alias=P=[P]):O.alias=P=[],P.push(C)}for(;s<u.length;){var h=u[s++];if(h.type==="keyword"&&h.content==="mutation"){var E=[];if(c(["definition-mutation","punctuation"])&&o(1).content==="("){s+=2;var g=d(/^\($/,/^\)$/);if(g===-1)continue;for(;s<g;s++){var A=o(0);A.type==="variable"&&(p(A,"variable-input"),E.push(A.content))}s=g+1}if(c(["punctuation","property-query"])&&o(0).content==="{"&&(s++,p(o(0),"property-mutation"),E.length>0)){var y=d(/^\{$/,/^\}$/);if(y===-1)continue;for(var x=s;x<y;x++){var R=u[x];R.type==="variable"&&E.indexOf(R.content)>=0&&p(R,"variable-input")}}}}})}w0.displayName="json";w0.aliases=["webmanifest"];function w0(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}Hl.displayName="typescript";Hl.aliases=["ts"];function Hl(e){e.register(lu),(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var r=t.languages.extend("typescript",{});delete r["class-name"],t.languages.typescript["class-name"].inside=r,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),t.languages.ts=t.languages.typescript})(e)}zo.displayName="python";zo.aliases=["py"];function zo(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}jo.displayName="jsx";jo.aliases=[];function jo(e){e.register(lu),e.register(Ho),(function(t){var r=t.util.clone(t.languages.javascript),u=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,s=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function c(h,E){return h=h.replace(/<S>/g,function(){return u}).replace(/<BRACES>/g,function(){return s}).replace(/<SPREAD>/g,function(){return o}),RegExp(h,E)}o=c(o).source,t.languages.jsx=t.languages.extend("markup",r),t.languages.jsx.tag.pattern=c(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=r.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:c(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:c(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var d=function(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(d).join(""):""},p=function(h){for(var E=[],g=0;g<h.length;g++){var A=h[g],y=!1;if(typeof A!="string"&&(A.type==="tag"&&A.content[0]&&A.content[0].type==="tag"?A.content[0].content[0].content==="</"?E.length>0&&E[E.length-1].tagName===d(A.content[0].content[1])&&E.pop():A.content[A.content.length-1].content==="/>"||E.push({tagName:d(A.content[0].content[1]),openedBraces:0}):E.length>0&&A.type==="punctuation"&&A.content==="{"?E[E.length-1].openedBraces++:E.length>0&&E[E.length-1].openedBraces>0&&A.type==="punctuation"&&A.content==="}"?E[E.length-1].openedBraces--:y=!0),(y||typeof A=="string")&&E.length>0&&E[E.length-1].openedBraces===0){var x=d(A);g<h.length-1&&(typeof h[g+1]=="string"||h[g+1].type==="plain-text")&&(x+=d(h[g+1]),h.splice(g+1,1)),g>0&&(typeof h[g-1]=="string"||h[g-1].type==="plain-text")&&(x=d(h[g-1])+x,h.splice(g-1,1),g--),h[g]=new t.Token("plain-text",x,null,x)}A.content&&typeof A.content!="string"&&p(A.content)}};t.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||p(h.tokens)})})(e)}L0.displayName="tsx";L0.aliases=[];function L0(e){e.register(jo),e.register(Hl),(function(t){var r=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",r),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var u=t.languages.tsx.tag;u.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+u.pattern.source+")",u.pattern.flags),u.lookbehind=!0})(e)}Yo.displayName="rust";Yo.aliases=[];function Yo(e){(function(t){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,u=0;u<2;u++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}const mR={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}};Tt.registerLanguage("bash",Bl);Tt.registerLanguage("sh",Bl);Tt.registerLanguage("shell",Bl);Tt.registerLanguage("css",v0);Tt.registerLanguage("diff",k0);Tt.registerLanguage("go",R0);Tt.registerLanguage("graphql",D0);Tt.registerLanguage("javascript",lu);Tt.registerLanguage("js",lu);Tt.registerLanguage("json",w0);Tt.registerLanguage("jsx",jo);Tt.registerLanguage("markdown",Fo);Tt.registerLanguage("md",Fo);Tt.registerLanguage("python",zo);Tt.registerLanguage("py",zo);Tt.registerLanguage("rust",Yo);Tt.registerLanguage("rs",Yo);Tt.registerLanguage("sql",O0);Tt.registerLanguage("tsx",L0);Tt.registerLanguage("typescript",Hl);Tt.registerLanguage("ts",Hl);Tt.registerLanguage("yaml",Po);Tt.registerLanguage("yml",Po);function pR({className:e,children:t}){const r=e?.match(/language-(\w+)/),u=r?.[1]??"",s=String(t).replace(/\n$/,"");return!r&&!String(t).includes(`
469
+ `)?Y.jsx("code",{className:e,children:t}):Y.jsx(Tt,{style:mR,language:u,PreTag:"div",customStyle:{margin:"1.5em 0",borderRadius:"0.5em",fontSize:"0.875em"},children:s})}const{entries:wT,setPrototypeOf:nb,isFrozen:gR,getPrototypeOf:bR,getOwnPropertyDescriptor:ER}=Object;let{freeze:Sn,seal:ha,create:t0}=Object,{apply:n0,construct:a0}=typeof Reflect<"u"&&Reflect;Sn||(Sn=function(t){return t});ha||(ha=function(t){return t});n0||(n0=function(t,r){for(var u=arguments.length,s=new Array(u>2?u-2:0),o=2;o<u;o++)s[o-2]=arguments[o];return t.apply(r,s)});a0||(a0=function(t){for(var r=arguments.length,u=new Array(r>1?r-1:0),s=1;s<r;s++)u[s-1]=arguments[s];return new t(...u)});const so=_n(Array.prototype.forEach),TR=_n(Array.prototype.lastIndexOf),ab=_n(Array.prototype.pop),ll=_n(Array.prototype.push),yR=_n(Array.prototype.splice),bo=_n(String.prototype.toLowerCase),vd=_n(String.prototype.toString),Od=_n(String.prototype.match),sl=_n(String.prototype.replace),AR=_n(String.prototype.indexOf),SR=_n(String.prototype.trim),ya=_n(Object.prototype.hasOwnProperty),yn=_n(RegExp.prototype.test),ol=_R(TypeError);function _n(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,u=new Array(r>1?r-1:0),s=1;s<r;s++)u[s-1]=arguments[s];return n0(e,t,u)}}function _R(e){return function(){for(var t=arguments.length,r=new Array(t),u=0;u<t;u++)r[u]=arguments[u];return a0(e,r)}}function Ve(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bo;nb&&nb(e,null);let u=t.length;for(;u--;){let s=t[u];if(typeof s=="string"){const o=r(s);o!==s&&(gR(t)||(t[u]=o),s=o)}e[s]=!0}return e}function xR(e){for(let t=0;t<e.length;t++)ya(e,t)||(e[t]=null);return e}function La(e){const t=t0(null);for(const[r,u]of wT(e))ya(e,r)&&(Array.isArray(u)?t[r]=xR(u):u&&typeof u=="object"&&u.constructor===Object?t[r]=La(u):t[r]=u);return t}function cl(e,t){for(;e!==null;){const u=ER(e,t);if(u){if(u.get)return _n(u.get);if(typeof u.value=="function")return _n(u.value)}e=bR(e)}function r(){return null}return r}const rb=Sn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),kd=Sn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Rd=Sn(["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"]),CR=Sn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Dd=Sn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),NR=Sn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ib=Sn(["#text"]),ub=Sn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),wd=Sn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lb=Sn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),oo=Sn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vR=ha(/\{\{[\w\W]*|[\w\W]*\}\}/gm),OR=ha(/<%[\w\W]*|[\w\W]*%>/gm),kR=ha(/\$\{[\w\W]*/gm),RR=ha(/^data-[\-\w.\u00B7-\uFFFF]+$/),DR=ha(/^aria-[\-\w]+$/),LT=ha(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wR=ha(/^(?:\w+script|data):/i),LR=ha(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),IT=ha(/^html$/i),IR=ha(/^[a-z][.\w]*(-[.\w]+)+$/i);var sb=Object.freeze({__proto__:null,ARIA_ATTR:DR,ATTR_WHITESPACE:LR,CUSTOM_ELEMENT:IR,DATA_ATTR:RR,DOCTYPE_NAME:IT,ERB_EXPR:OR,IS_ALLOWED_URI:LT,IS_SCRIPT_OR_DATA:wR,MUSTACHE_EXPR:vR,TMPLIT_EXPR:kR});const fl={element:1,text:3,progressingInstruction:7,comment:8,document:9},MR=function(){return typeof window>"u"?null:window},BR=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let u=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(u=r.getAttribute(s));const o="dompurify"+(u?"#"+u:"");try{return t.createPolicy(o,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ob=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function MT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:MR();const t=Oe=>MT(Oe);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==fl.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const u=r,s=u.currentScript,{DocumentFragment:o,HTMLTemplateElement:c,Node:d,Element:p,NodeFilter:h,NamedNodeMap:E=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:A,trustedTypes:y}=e,x=p.prototype,R=cl(x,"cloneNode"),O=cl(x,"remove"),C=cl(x,"nextSibling"),P=cl(x,"childNodes"),M=cl(x,"parentNode");if(typeof c=="function"){const Oe=r.createElement("template");Oe.content&&Oe.content.ownerDocument&&(r=Oe.content.ownerDocument)}let Q,te="";const{implementation:H,createNodeIterator:ue,createDocumentFragment:re,getElementsByTagName:Ae}=r,{importNode:z}=u;let le=ob();t.isSupported=typeof wT=="function"&&typeof M=="function"&&H&&H.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ce,ERB_EXPR:pe,TMPLIT_EXPR:be,DATA_ATTR:oe,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:J,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:Re}=sb;let{IS_ALLOWED_URI:k}=sb,D=null;const K=Ve({},[...rb,...kd,...Rd,...Dd,...ib]);let _=null;const X=Ve({},[...ub,...wd,...lb,...oo]);let ee=Object.seal(t0(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ye=null,Se=null;const xe=Object.seal(t0(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Be=!0,st=!0,Ct=!1,Bt=!0,Un=!1,Wt=!0,dn=!1,Pn=!1,xn=!1,Cn=!1,Dt=!1,Fn=!1,xa=!0,Ht=!1;const Zn="user-content-";let wt=!0,ma=!1,W={},ge=null;const De=Ve({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let He=null;const je=Ve({},["audio","video","img","source","image","track"]);let Ut=null;const qt=Ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ot="http://www.w3.org/1998/Math/MathML",pt="http://www.w3.org/2000/svg",dt="http://www.w3.org/1999/xhtml";let Qe=dt,Nn=!1,Vt=null;const $n=Ve({},[Ot,pt,dt],vd);let pa=Ve({},["mi","mo","mn","ms","mtext"]),ga=Ve({},["annotation-xml"]);const Ua=Ve({},["title","style","font","a","script"]);let hn=null;const Me=["application/xhtml+xml","text/html"],gt="text/html";let qe=null,Nt=null;const Ca=r.createElement("form"),bt=function(I){return I instanceof RegExp||I instanceof Function},Jt=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Nt&&Nt===I)){if((!I||typeof I!="object")&&(I={}),I=La(I),hn=Me.indexOf(I.PARSER_MEDIA_TYPE)===-1?gt:I.PARSER_MEDIA_TYPE,qe=hn==="application/xhtml+xml"?vd:bo,D=ya(I,"ALLOWED_TAGS")?Ve({},I.ALLOWED_TAGS,qe):K,_=ya(I,"ALLOWED_ATTR")?Ve({},I.ALLOWED_ATTR,qe):X,Vt=ya(I,"ALLOWED_NAMESPACES")?Ve({},I.ALLOWED_NAMESPACES,vd):$n,Ut=ya(I,"ADD_URI_SAFE_ATTR")?Ve(La(qt),I.ADD_URI_SAFE_ATTR,qe):qt,He=ya(I,"ADD_DATA_URI_TAGS")?Ve(La(je),I.ADD_DATA_URI_TAGS,qe):je,ge=ya(I,"FORBID_CONTENTS")?Ve({},I.FORBID_CONTENTS,qe):De,ye=ya(I,"FORBID_TAGS")?Ve({},I.FORBID_TAGS,qe):La({}),Se=ya(I,"FORBID_ATTR")?Ve({},I.FORBID_ATTR,qe):La({}),W=ya(I,"USE_PROFILES")?I.USE_PROFILES:!1,Be=I.ALLOW_ARIA_ATTR!==!1,st=I.ALLOW_DATA_ATTR!==!1,Ct=I.ALLOW_UNKNOWN_PROTOCOLS||!1,Bt=I.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Un=I.SAFE_FOR_TEMPLATES||!1,Wt=I.SAFE_FOR_XML!==!1,dn=I.WHOLE_DOCUMENT||!1,Cn=I.RETURN_DOM||!1,Dt=I.RETURN_DOM_FRAGMENT||!1,Fn=I.RETURN_TRUSTED_TYPE||!1,xn=I.FORCE_BODY||!1,xa=I.SANITIZE_DOM!==!1,Ht=I.SANITIZE_NAMED_PROPS||!1,wt=I.KEEP_CONTENT!==!1,ma=I.IN_PLACE||!1,k=I.ALLOWED_URI_REGEXP||LT,Qe=I.NAMESPACE||dt,pa=I.MATHML_TEXT_INTEGRATION_POINTS||pa,ga=I.HTML_INTEGRATION_POINTS||ga,ee=I.CUSTOM_ELEMENT_HANDLING||{},I.CUSTOM_ELEMENT_HANDLING&&bt(I.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=I.CUSTOM_ELEMENT_HANDLING.tagNameCheck),I.CUSTOM_ELEMENT_HANDLING&&bt(I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),I.CUSTOM_ELEMENT_HANDLING&&typeof I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Un&&(st=!1),Dt&&(Cn=!0),W&&(D=Ve({},ib),_=[],W.html===!0&&(Ve(D,rb),Ve(_,ub)),W.svg===!0&&(Ve(D,kd),Ve(_,wd),Ve(_,oo)),W.svgFilters===!0&&(Ve(D,Rd),Ve(_,wd),Ve(_,oo)),W.mathMl===!0&&(Ve(D,Dd),Ve(_,lb),Ve(_,oo))),I.ADD_TAGS&&(typeof I.ADD_TAGS=="function"?xe.tagCheck=I.ADD_TAGS:(D===K&&(D=La(D)),Ve(D,I.ADD_TAGS,qe))),I.ADD_ATTR&&(typeof I.ADD_ATTR=="function"?xe.attributeCheck=I.ADD_ATTR:(_===X&&(_=La(_)),Ve(_,I.ADD_ATTR,qe))),I.ADD_URI_SAFE_ATTR&&Ve(Ut,I.ADD_URI_SAFE_ATTR,qe),I.FORBID_CONTENTS&&(ge===De&&(ge=La(ge)),Ve(ge,I.FORBID_CONTENTS,qe)),I.ADD_FORBID_CONTENTS&&(ge===De&&(ge=La(ge)),Ve(ge,I.ADD_FORBID_CONTENTS,qe)),wt&&(D["#text"]=!0),dn&&Ve(D,["html","head","body"]),D.table&&(Ve(D,["tbody"]),delete ye.tbody),I.TRUSTED_TYPES_POLICY){if(typeof I.TRUSTED_TYPES_POLICY.createHTML!="function")throw ol('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof I.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ol('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=I.TRUSTED_TYPES_POLICY,te=Q.createHTML("")}else Q===void 0&&(Q=BR(y,s)),Q!==null&&typeof te=="string"&&(te=Q.createHTML(""));Sn&&Sn(I),Nt=I}},Na=Ve({},[...kd,...Rd,...CR]),rn=Ve({},[...Dd,...NR]),mn=function(I){let he=M(I);(!he||!he.tagName)&&(he={namespaceURI:Qe,tagName:"template"});const _e=bo(I.tagName),it=bo(he.tagName);return Vt[I.namespaceURI]?I.namespaceURI===pt?he.namespaceURI===dt?_e==="svg":he.namespaceURI===Ot?_e==="svg"&&(it==="annotation-xml"||pa[it]):!!Na[_e]:I.namespaceURI===Ot?he.namespaceURI===dt?_e==="math":he.namespaceURI===pt?_e==="math"&&ga[it]:!!rn[_e]:I.namespaceURI===dt?he.namespaceURI===pt&&!ga[it]||he.namespaceURI===Ot&&!pa[it]?!1:!rn[_e]&&(Ua[_e]||!Na[_e]):!!(hn==="application/xhtml+xml"&&Vt[I.namespaceURI]):!1},un=function(I){ll(t.removed,{element:I});try{M(I).removeChild(I)}catch{O(I)}},Xt=function(I,he){try{ll(t.removed,{attribute:he.getAttributeNode(I),from:he})}catch{ll(t.removed,{attribute:null,from:he})}if(he.removeAttribute(I),I==="is")if(Cn||Dt)try{un(he)}catch{}else try{he.setAttribute(I,"")}catch{}},li=function(I){let he=null,_e=null;if(xn)I="<remove></remove>"+I;else{const Ye=Od(I,/^[\r\n\t ]+/);_e=Ye&&Ye[0]}hn==="application/xhtml+xml"&&Qe===dt&&(I='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+I+"</body></html>");const it=Q?Q.createHTML(I):I;if(Qe===dt)try{he=new A().parseFromString(it,hn)}catch{}if(!he||!he.documentElement){he=H.createDocument(Qe,"template",null);try{he.documentElement.innerHTML=Nn?te:it}catch{}}const vt=he.body||he.documentElement;return I&&_e&&vt.insertBefore(r.createTextNode(_e),vt.childNodes[0]||null),Qe===dt?Ae.call(he,dn?"html":"body")[0]:dn?he.documentElement:vt},su=function(I){return ue.call(I.ownerDocument||I,I,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Wn=function(I){return I instanceof g&&(typeof I.nodeName!="string"||typeof I.textContent!="string"||typeof I.removeChild!="function"||!(I.attributes instanceof E)||typeof I.removeAttribute!="function"||typeof I.setAttribute!="function"||typeof I.namespaceURI!="string"||typeof I.insertBefore!="function"||typeof I.hasChildNodes!="function")},Pt=function(I){return typeof d=="function"&&I instanceof d};function St(Oe,I,he){so(Oe,_e=>{_e.call(t,I,he,Nt)})}const Pa=function(I){let he=null;if(St(le.beforeSanitizeElements,I,null),Wn(I))return un(I),!0;const _e=qe(I.nodeName);if(St(le.uponSanitizeElement,I,{tagName:_e,allowedTags:D}),Wt&&I.hasChildNodes()&&!Pt(I.firstElementChild)&&yn(/<[/\w!]/g,I.innerHTML)&&yn(/<[/\w!]/g,I.textContent)||I.nodeType===fl.progressingInstruction||Wt&&I.nodeType===fl.comment&&yn(/<[/\w]/g,I.data))return un(I),!0;if(!(xe.tagCheck instanceof Function&&xe.tagCheck(_e))&&(!D[_e]||ye[_e])){if(!ye[_e]&&Ul(_e)&&(ee.tagNameCheck instanceof RegExp&&yn(ee.tagNameCheck,_e)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(_e)))return!1;if(wt&&!ge[_e]){const it=M(I)||I.parentNode,vt=P(I)||I.childNodes;if(vt&&it){const Ye=vt.length;for(let ln=Ye-1;ln>=0;--ln){const Jn=R(vt[ln],!0);Jn.__removalCount=(I.__removalCount||0)+1,it.insertBefore(Jn,C(I))}}}return un(I),!0}return I instanceof p&&!mn(I)||(_e==="noscript"||_e==="noembed"||_e==="noframes")&&yn(/<\/no(script|embed|frames)/i,I.innerHTML)?(un(I),!0):(Un&&I.nodeType===fl.text&&(he=I.textContent,so([ce,pe,be],it=>{he=sl(he,it," ")}),I.textContent!==he&&(ll(t.removed,{element:I.cloneNode()}),I.textContent=he)),St(le.afterSanitizeElements,I,null),!1)},si=function(I,he,_e){if(xa&&(he==="id"||he==="name")&&(_e in r||_e in Ca))return!1;if(!(st&&!Se[he]&&yn(oe,he))){if(!(Be&&yn(U,he))){if(!(xe.attributeCheck instanceof Function&&xe.attributeCheck(he,I))){if(!_[he]||Se[he]){if(!(Ul(I)&&(ee.tagNameCheck instanceof RegExp&&yn(ee.tagNameCheck,I)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(I))&&(ee.attributeNameCheck instanceof RegExp&&yn(ee.attributeNameCheck,he)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(he,I))||he==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&yn(ee.tagNameCheck,_e)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(_e))))return!1}else if(!Ut[he]){if(!yn(k,sl(_e,ne,""))){if(!((he==="src"||he==="xlink:href"||he==="href")&&I!=="script"&&AR(_e,"data:")===0&&He[I])){if(!(Ct&&!yn(J,sl(_e,ne,"")))){if(_e)return!1}}}}}}}return!0},Ul=function(I){return I!=="annotation-xml"&&Od(I,Re)},Pl=function(I){St(le.beforeSanitizeAttributes,I,null);const{attributes:he}=I;if(!he||Wn(I))return;const _e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_,forceKeepAttr:void 0};let it=he.length;for(;it--;){const vt=he[it],{name:Ye,namespaceURI:ln,value:Jn}=vt,vn=qe(Ye),va=Jn;let Qt=Ye==="value"?va:SR(va);if(_e.attrName=vn,_e.attrValue=Qt,_e.keepAttr=!0,_e.forceKeepAttr=void 0,St(le.uponSanitizeAttribute,I,_e),Qt=_e.attrValue,Ht&&(vn==="id"||vn==="name")&&(Xt(Ye,I),Qt=Zn+Qt),Wt&&yn(/((--!?|])>)|<\/(style|title|textarea)/i,Qt)){Xt(Ye,I);continue}if(vn==="attributename"&&Od(Qt,"href")){Xt(Ye,I);continue}if(_e.forceKeepAttr)continue;if(!_e.keepAttr){Xt(Ye,I);continue}if(!Bt&&yn(/\/>/i,Qt)){Xt(Ye,I);continue}Un&&so([ce,pe,be],cu=>{Qt=sl(Qt,cu," ")});const ou=qe(I.nodeName);if(!si(ou,vn,Qt)){Xt(Ye,I);continue}if(Q&&typeof y=="object"&&typeof y.getAttributeType=="function"&&!ln)switch(y.getAttributeType(ou,vn)){case"TrustedHTML":{Qt=Q.createHTML(Qt);break}case"TrustedScriptURL":{Qt=Q.createScriptURL(Qt);break}}if(Qt!==va)try{ln?I.setAttributeNS(ln,Ye,Qt):I.setAttribute(Ye,Qt),Wn(I)?un(I):ab(t.removed)}catch{Xt(Ye,I)}}St(le.afterSanitizeAttributes,I,null)},Fl=function Oe(I){let he=null;const _e=su(I);for(St(le.beforeSanitizeShadowDOM,I,null);he=_e.nextNode();)St(le.uponSanitizeShadowNode,he,null),Pa(he),Pl(he),he.content instanceof o&&Oe(he.content);St(le.afterSanitizeShadowDOM,I,null)};return t.sanitize=function(Oe){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=null,_e=null,it=null,vt=null;if(Nn=!Oe,Nn&&(Oe="<!-->"),typeof Oe!="string"&&!Pt(Oe))if(typeof Oe.toString=="function"){if(Oe=Oe.toString(),typeof Oe!="string")throw ol("dirty is not a string, aborting")}else throw ol("toString is not a function");if(!t.isSupported)return Oe;if(Pn||Jt(I),t.removed=[],typeof Oe=="string"&&(ma=!1),ma){if(Oe.nodeName){const Jn=qe(Oe.nodeName);if(!D[Jn]||ye[Jn])throw ol("root node is forbidden and cannot be sanitized in-place")}}else if(Oe instanceof d)he=li("<!---->"),_e=he.ownerDocument.importNode(Oe,!0),_e.nodeType===fl.element&&_e.nodeName==="BODY"||_e.nodeName==="HTML"?he=_e:he.appendChild(_e);else{if(!Cn&&!Un&&!dn&&Oe.indexOf("<")===-1)return Q&&Fn?Q.createHTML(Oe):Oe;if(he=li(Oe),!he)return Cn?null:Fn?te:""}he&&xn&&un(he.firstChild);const Ye=su(ma?Oe:he);for(;it=Ye.nextNode();)Pa(it),Pl(it),it.content instanceof o&&Fl(it.content);if(ma)return Oe;if(Cn){if(Dt)for(vt=re.call(he.ownerDocument);he.firstChild;)vt.appendChild(he.firstChild);else vt=he;return(_.shadowroot||_.shadowrootmode)&&(vt=z.call(u,vt,!0)),vt}let ln=dn?he.outerHTML:he.innerHTML;return dn&&D["!doctype"]&&he.ownerDocument&&he.ownerDocument.doctype&&he.ownerDocument.doctype.name&&yn(IT,he.ownerDocument.doctype.name)&&(ln="<!DOCTYPE "+he.ownerDocument.doctype.name+`>
470
+ `+ln),Un&&so([ce,pe,be],Jn=>{ln=sl(ln,Jn," ")}),Q&&Fn?Q.createHTML(ln):ln},t.setConfig=function(){let Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jt(Oe),Pn=!0},t.clearConfig=function(){Nt=null,Pn=!1},t.isValidAttribute=function(Oe,I,he){Nt||Jt({});const _e=qe(Oe),it=qe(I);return si(_e,it,he)},t.addHook=function(Oe,I){typeof I=="function"&&ll(le[Oe],I)},t.removeHook=function(Oe,I){if(I!==void 0){const he=TR(le[Oe],I);return he===-1?void 0:yR(le[Oe],he,1)[0]}return ab(le[Oe])},t.removeHooks=function(Oe){le[Oe]=[]},t.removeAllHooks=function(){le=ob()},t}var HR=MT();const UR=`
471
+ /* Critical layout - must override external CSS to ensure proper sizing */
472
+ html {
473
+ width: 100% !important;
474
+ }
475
+ body {
476
+ width: 100% !important;
477
+ min-width: 65ch;
478
+ box-sizing: border-box !important;
479
+ margin: 0;
480
+ }
481
+
482
+ /* Prose styles as fallback - zero specificity via :where(), easily overridden */
483
+ :where(body:not([class])) {
484
+ max-width: 65ch;
485
+ margin-left: auto;
486
+ margin-right: auto;
487
+ padding: 2rem 1rem;
488
+ line-height: 1.75;
489
+ color: #374151;
490
+ font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
491
+ }
492
+ :where(body:not([class])) :where(h1, h2, h3, h4, h5, h6) {
493
+ color: #111827;
494
+ font-weight: 600;
495
+ line-height: 1.25;
496
+ margin-top: 2em;
497
+ margin-bottom: 0.5em;
498
+ }
499
+ :where(body:not([class])) :where(h1) { font-size: 2.25em; margin-top: 0; }
500
+ :where(body:not([class])) :where(h2) { font-size: 1.5em; }
501
+ :where(body:not([class])) :where(h3) { font-size: 1.25em; }
502
+ :where(body:not([class])) :where(h4) { font-size: 1.125em; }
503
+ :where(body:not([class])) :where(p) { margin: 1em 0; }
504
+ :where(body:not([class])) :where(ul, ol) { padding-left: 1.5em; margin: 1em 0; }
505
+ :where(body:not([class])) :where(li) { margin: 0.5em 0; }
506
+ :where(body:not([class])) :where(a) { color: #2563eb; text-decoration: underline; }
507
+ :where(body:not([class])) :where(code) { background: #f3f4f6; padding: 0.2em 0.4em; border-radius: 0.25em; font-size: 0.875em; }
508
+ :where(body:not([class])) :where(pre) { background: #f3f4f6; padding: 1em; border-radius: 0.5em; overflow-x: auto; }
509
+ :where(body:not([class])) :where(pre code) { background: none; padding: 0; }
510
+ :where(body:not([class])) :where(blockquote) { border-left: 4px solid #e5e7eb; padding-left: 1em; color: #6b7280; margin: 1em 0; font-style: italic; }
511
+ :where(body:not([class])) :where(hr) { border: none; border-top: 1px solid #e5e7eb; margin: 2em 0; }
512
+ :where(body:not([class])) :where(table) { border-collapse: collapse; width: 100%; margin: 1em 0; }
513
+ :where(body:not([class])) :where(th, td) { border: 1px solid #e5e7eb; padding: 0.5em 1em; text-align: left; }
514
+ :where(body:not([class])) :where(th) { background: #f9fafb; font-weight: 600; }
515
+ :where(body:not([class])) :where(img) { max-width: 100%; height: auto; }
516
+
517
+ /* Highlight styles - warm ink palette */
518
+ mark[data-comment-id] {
519
+ background: rgba(245, 222, 160, 0.5);
520
+ cursor: pointer;
521
+ transition: background-color 0.15s ease;
522
+ }
523
+ mark[data-comment-id]:hover {
524
+ background-color: rgba(228, 195, 110, 0.65);
525
+ }
526
+ mark[data-comment-id]:active {
527
+ background-color: rgba(228, 195, 110, 0.75);
528
+ }
529
+ mark[data-pending] { background: rgba(180, 180, 180, 0.3); cursor: text; }
530
+ `;function PR(e){return HR.sanitize(e,{ADD_TAGS:["style"],ADD_ATTR:["style"],FORBID_TAGS:["script","iframe","object","embed","form"],FORBID_ATTR:["onerror","onload","onclick","onmouseover"]}).replace(/<\/iframe/gi,"&lt;/iframe")}function FR(e,t){return/<\/head>/i.test(e)?e.replace(/<\/head>/i,`${t}</head>`):/<head[^>]*>/i.test(e)?e.replace(/(<head[^>]*>)/i,`$1${t}`):t+e}function zR({html:e,comments:t,pendingSelection:r,onTextSelect:u,onHighlightPositionsChange:s,onHighlightHover:o}){const c=fe.useRef(null),d=fe.useRef(null),[p,h]=fe.useState(0),E=fe.useMemo(()=>{const g=PR(e),A=`<style id="readit-base-styles">${UR}</style>`;return FR(g,A)+N4(window.location.origin)},[e]);return fe.useEffect(()=>{const g=AT({type:"iframe",getIframe:()=>c.current,onSelect:u});d.current=g;const A=s?g.onPositionsChange(R=>{const O=c.current,C=O?O.getBoundingClientRect().top+window.scrollY:0,P={};for(const[M,Q]of Object.entries(R.documentPositions))P[M]=Q+C;s(R.positions,P,R.pendingTop)}):()=>{},y=o?g.onHighlightHover(o):()=>{},x=g.onContentHeightChange?.(R=>{h(R)});return()=>{A(),y(),x?.(),g.dispose(),d.current=null}},[u,s,o]),fe.useEffect(()=>{const g=d.current;if(!g)return;const A=t.map(y=>({id:y.id,selectedText:y.selectedText,startOffset:y.startOffset,endOffset:y.endOffset}));g.applyHighlights(A,r??void 0)},[t,r]),fe.useEffect(()=>{const g=A=>{const{text:y,startOffset:x,endOffset:R}=A.detail;u(y,x,R)};return window.addEventListener("test:select-text",g),()=>window.removeEventListener("test:select-text",g)},[u]),Y.jsx("iframe",{ref:c,srcDoc:E,sandbox:"allow-scripts allow-same-origin",title:"Document content",className:"w-full border-0",style:{height:p||"100%"}})}function Vi(e,t,r){const u=`h${e}`;return function({children:o,...c}){const d=Md(o);let p="";for(let h=r.current;h<t.length;h++){const E=t[h];if(E.level===e&&E.text===d){p=E.id,r.current=h+1;break}}if(!p){for(const h of t)if(h.level===e&&h.text===d){p=h.id;break}}return Y.jsx(u,{id:p,...c,children:o})}}function jR({content:e,type:t,comments:r,headings:u,pendingSelection:s,onTextSelect:o,onHighlightPositionsChange:c,onHighlightHover:d}){const p=fe.useRef(null),h=fe.useRef(null),E=fe.useRef(null),g=fe.useRef(0);fe.useEffect(()=>{if(t!=="markdown"||!p.current||!h.current)return;const y=AT({type:"markdown",root:p.current,container:h.current,onSelect:o});E.current=y;const x=c?y.onPositionsChange(O=>{c(O.positions,O.documentPositions,O.pendingTop)}):()=>{},R=d?y.onHighlightHover(d):()=>{};return()=>{x(),R(),y.dispose(),E.current=null}},[t,o,c,d]),fe.useEffect(()=>{if(t!=="markdown")return;let y,x;return y=requestAnimationFrame(()=>{x=requestAnimationFrame(()=>{const R=E.current;if(!R)return;const O=r.map(C=>({id:C.id,selectedText:C.selectedText,startOffset:C.startOffset,endOffset:C.endOffset}));R.applyHighlights(O,s??void 0)})}),()=>{cancelAnimationFrame(y),cancelAnimationFrame(x)}},[r,e,t,s]),fe.useEffect(()=>{if(t!=="markdown")return;const y=x=>{const{text:R,startOffset:O,endOffset:C}=x.detail;o(R,O,C)};return window.addEventListener("test:select-text",y),()=>window.removeEventListener("test:select-text",y)},[t,o]);const A=fe.useMemo(()=>({h1:Vi(1,u,g),h2:Vi(2,u,g),h3:Vi(3,u,g),h4:Vi(4,u,g),h5:Vi(5,u,g),h6:Vi(6,u,g),code:pR}),[u]);return t==="html"?Y.jsx("main",{className:"flex-1 min-w-0 flex flex-col",children:Y.jsx(zR,{html:e,comments:r,pendingSelection:s,onTextSelect:o,onHighlightPositionsChange:c,onHighlightHover:d},e)}):(g.current=0,Y.jsx("div",{ref:h,className:"flex-1 min-w-0",children:Y.jsx("article",{ref:p,className:"prose",children:Y.jsx(VC,{components:A,remarkPlugins:[g4],rehypePlugins:[lO],children:e},e)})}))}function YR({isOpen:e,onClose:t}){const[r,u]=fe.useState(null),[s,o]=fe.useState(!0),[c,d]=fe.useState(null);fe.useEffect(()=>{if(!e){u(null),o(!0),d(null);return}(async()=>{try{const E=await fetch("/api/comments/raw");if(!E.ok)throw new Error("Failed to fetch raw comments");const g=await E.json();u(g)}catch(E){d(E instanceof Error?E.message:"Unknown error")}finally{o(!1)}})()},[e]),fe.useEffect(()=>{if(!e)return;const h=E=>{E.key==="Escape"&&t()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,t]);const p=fe.useCallback(async()=>{if(r?.content)try{await navigator.clipboard.writeText(r.content),Aa.success("Copied to clipboard")}catch{Aa.error("Failed to copy")}},[r?.content]);return e?Y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[Y.jsx("button",{type:"button",className:"absolute inset-0 bg-black/20 backdrop-blur-sm cursor-default",onClick:t,"aria-label":"Close modal"}),Y.jsxs("div",{className:"relative bg-white rounded-lg shadow-lg shadow-gray-200/50 border border-gray-100 w-full max-w-2xl max-h-[80vh] flex flex-col animate-in",role:"dialog","aria-label":"Raw comments file",children:[Y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-gray-100",children:[Y.jsx("h2",{className:"font-serif text-sm text-gray-900",children:"Raw Comments"}),Y.jsxs("div",{className:"flex items-center gap-2",children:[r?.content&&Y.jsx("button",{type:"button",onClick:p,className:"p-1.5 rounded-md text-gray-400 hover:text-gray-600 hover:bg-gray-50 transition-colors",title:"Copy to clipboard",children:Y.jsx(IS,{className:"w-4 h-4"})}),Y.jsx("button",{type:"button",onClick:t,className:"p-1.5 rounded-md text-gray-400 hover:text-gray-600 hover:bg-gray-50 transition-colors",title:"Close",children:Y.jsx(US,{className:"w-4 h-4"})})]})]}),r?.path&&Y.jsx("div",{className:"px-4 py-2 border-b border-gray-50 text-xs text-gray-400 font-mono truncate",children:r.path}),Y.jsxs("div",{className:"flex-1 overflow-auto p-4",children:[s&&Y.jsx("div",{className:"text-sm text-gray-400 text-center py-8",children:"Loading..."}),c&&Y.jsx("div",{className:"text-sm text-red-500 text-center py-8",children:c}),!s&&!c&&r?.content===null&&Y.jsx("div",{className:"text-sm text-gray-400 text-center py-8",children:"No comments file yet. Add comments to create one."}),!s&&!c&&r?.content&&Y.jsx("pre",{className:"text-xs text-gray-600 font-mono whitespace-pre-wrap break-words leading-relaxed",children:r.content})]})]})]}):null}function GR({fileName:e,comments:t,onCopyAll:r,onCopyAllRaw:u,onExportJson:s,onReload:o,onEditComment:c,onDeleteComment:d,onGoToComment:p,onReanchorComment:h,reanchorMode:E}){const[g,A]=fe.useState(!1),[y,x]=fe.useState(!1),[R,O]=fe.useState(!1),C=fe.useRef(null),P=fe.useRef(null),M=t.length;return fe.useEffect(()=>{if(!g&&!y)return;const Q=H=>{C.current&&!C.current.contains(H.target)&&A(!1),P.current&&!P.current.contains(H.target)&&x(!1)},te=H=>{H.key==="Escape"&&(A(!1),x(!1))};return document.addEventListener("mousedown",Q),document.addEventListener("keydown",te),()=>{document.removeEventListener("mousedown",Q),document.removeEventListener("keydown",te)}},[g,y]),Y.jsxs(Y.Fragment,{children:[Y.jsx("header",{className:"sticky top-0 z-50 bg-white/95 backdrop-blur-sm border-b border-gray-100",children:Y.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-3 flex items-center justify-between",children:[Y.jsxs("div",{className:"flex items-center gap-3",children:[Y.jsx("h1",{className:"font-serif text-lg tracking-tight text-gray-900",children:"readit"}),Y.jsx("span",{className:"text-gray-200 font-light",children:"—"}),Y.jsx("span",{className:"font-serif text-gray-400 text-sm truncate max-w-[200px]",children:e})]}),Y.jsxs("div",{className:"flex items-center gap-3",children:[E&&Y.jsx("span",{className:"text-xs text-gray-400 italic",children:"Select text to re-anchor"}),M>0&&Y.jsxs("div",{className:"relative",ref:P,children:[Y.jsxs("button",{type:"button",onClick:()=>x(!y),className:da("inline-flex items-center gap-1 text-xs tabular-nums select-none transition-colors",y?"text-gray-600":"text-gray-400 hover:text-gray-600"),title:`${M} comment${M!==1?"s":""}`,children:[Y.jsx("span",{className:"text-gray-300",children:"·"}),M]}),y&&Y.jsx(yS,{comments:t,onEdit:c,onDelete:d,onGoTo:p,onReanchor:h,onClose:()=>x(!1)})]}),Y.jsxs("div",{className:"relative",ref:C,children:[Y.jsx("button",{type:"button",onClick:()=>A(!g),className:da("p-1.5 rounded-md transition-colors duration-150",g?"bg-gray-100 text-gray-600":"text-gray-300 hover:text-gray-500 hover:bg-gray-50"),"aria-label":"Actions menu","aria-expanded":g,children:Y.jsx(BS,{className:"w-4 h-4"})}),g&&Y.jsxs("div",{className:"absolute right-0 top-full mt-1 py-1 bg-white rounded-lg shadow-lg shadow-gray-200/50 border border-gray-100 min-w-[140px] animate-in",role:"menu",children:[Y.jsx("button",{type:"button",onClick:()=>{o(),A(!1)},className:"w-full px-3 py-1.5 text-left text-sm text-gray-600 hover:bg-gray-50 hover:text-gray-900 transition-colors",role:"menuitem",children:"Reload"}),M>0&&Y.jsxs(Y.Fragment,{children:[Y.jsx("button",{type:"button",onClick:()=>{r(),A(!1)},className:"w-full px-3 py-1.5 text-left text-sm text-gray-600 hover:bg-gray-50 hover:text-gray-900 transition-colors",role:"menuitem",title:"Copy in prompt format for AI assistants",children:"Copy All (AI)"}),Y.jsx("button",{type:"button",onClick:()=>{u(),A(!1)},className:"w-full px-3 py-1.5 text-left text-sm text-gray-600 hover:bg-gray-50 hover:text-gray-900 transition-colors",role:"menuitem",title:"Copy as plain text",children:"Copy All (Raw)"}),Y.jsx("button",{type:"button",onClick:()=>{s(),A(!1)},className:"w-full px-3 py-1.5 text-left text-sm text-gray-600 hover:bg-gray-50 hover:text-gray-900 transition-colors",role:"menuitem",children:"Export JSON"}),Y.jsx("button",{type:"button",onClick:()=>{O(!0),A(!1)},className:"w-full px-3 py-1.5 text-left text-sm text-gray-600 hover:bg-gray-50 hover:text-gray-900 transition-colors",role:"menuitem",children:"View Raw"})]})]})]})]})]})}),Y.jsx(YR,{isOpen:R,onClose:()=>O(!1)})]})}const cb=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fb=Eb,Go=(e,t)=>r=>{var u;if(t?.variants==null)return fb(e,r?.class,r?.className);const{variants:s,defaultVariants:o}=t,c=Object.keys(s).map(h=>{const E=r?.[h],g=o?.[h];if(E===null)return null;const A=cb(E)||cb(g);return s[h][A]}),d=r&&Object.entries(r).reduce((h,E)=>{let[g,A]=E;return A===void 0||(h[g]=A),h},{}),p=t==null||(u=t.compoundVariants)===null||u===void 0?void 0:u.reduce((h,E)=>{let{class:g,className:A,...y}=E;return Object.entries(y).every(x=>{let[R,O]=x;return Array.isArray(O)?O.includes({...o,...d}[R]):{...o,...d}[R]===O})?[...h,g,A]:h},[]);return fb(e,c,p,r?.class,r?.className)},qR=Go("",{variants:{confidence:{exact:"",normalized:"",fuzzy:"",unresolved:"opacity-60"}},defaultVariants:{confidence:"exact"}}),VR=Go("text-sm italic mb-1 line-clamp-1 flex items-center gap-1 transition-colors duration-150",{variants:{hovered:{true:"text-gray-600",false:"text-gray-400"}},defaultVariants:{hovered:!1}}),XR=Go("text-sm whitespace-pre-wrap transition-colors duration-150",{variants:{hovered:{true:"text-gray-800",false:"text-gray-500"}},defaultVariants:{hovered:!1}}),db=Go("absolute -left-4 top-2 text-xs tabular-nums transition-colors duration-150",{variants:{hovered:{true:"text-gray-600",false:"text-gray-400"}},defaultVariants:{hovered:!1}});function QR({comment:e,top:t,isHovered:r=!1,commentIndex:u=0,onEdit:s,onDelete:o,onCopyRaw:c,onCopyForLLM:d,onHover:p}){const[h,E]=fe.useState(!1),[g,A]=fe.useState(e.comment),y=e.comment.trim().length>0,x=()=>{s(e.id,g),E(!1)},R=()=>{c(e)},O=new Date(e.createdAt).toLocaleString();return!y&&!h?Y.jsxs("article",{className:"absolute left-0 right-0 group",style:{top:t},title:`Added: ${O}`,onMouseEnter:()=>p?.(e.id),onMouseLeave:()=>p?.(void 0),children:[Y.jsx("span",{className:db({hovered:r}),children:"—"}),Y.jsx("div",{className:"pt-2 pb-2 pl-3",children:Y.jsxs("div",{className:da("flex items-center gap-1.5 text-xs text-gray-400 transition-opacity duration-150",r?"opacity-100":"opacity-0 group-hover:opacity-100"),children:[Y.jsx("button",{type:"button",onClick:()=>E(!0),className:"hover:text-gray-600",children:"Add note"}),Y.jsx("span",{children:"·"}),Y.jsx("button",{type:"button",onClick:()=>o(e.id),className:"hover:text-red-500",children:"Delete"})]})})]}):Y.jsxs("article",{className:"absolute left-0 right-0 group",style:{top:t},title:`Added: ${O}`,onMouseEnter:()=>p?.(e.id),onMouseLeave:()=>p?.(void 0),children:[Y.jsx("span",{className:db({hovered:r}),children:u+1}),Y.jsxs("div",{className:da("relative border-t border-gray-100 pt-3 pb-2 pl-3 transition-all duration-200",qR({confidence:e.anchorConfidence||"exact"})),children:[!h&&Y.jsx("div",{className:da("font-serif",VR({hovered:r})),children:Y.jsxs("span",{children:['"',e.selectedText,'"']})}),h?Y.jsxs("div",{className:"space-y-2",children:[Y.jsx("textarea",{value:g,onChange:C=>A(C.target.value),className:"w-full px-2 py-1.5 text-sm border border-gray-200 resize-none focus:outline-none focus:border-gray-400",rows:2,onKeyDown:C=>{C.key==="Enter"&&C.metaKey&&x(),C.key==="Escape"&&(E(!1),A(e.comment))}}),Y.jsxs("div",{className:"flex gap-3 text-sm",children:[Y.jsx("button",{type:"button",onClick:x,className:"text-gray-600 underline hover:text-gray-900",children:"Save"}),Y.jsx("button",{type:"button",onClick:()=>{E(!1),A(e.comment)},className:"text-gray-400 hover:text-gray-600",children:"Cancel"})]})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx("p",{className:da("font-serif",XR({hovered:r})),children:e.comment}),Y.jsxs("div",{className:"flex items-center gap-1.5 mt-2 opacity-0 group-hover:opacity-100 transition-opacity text-xs text-gray-400",children:[Y.jsx("button",{type:"button",onClick:()=>E(!0),className:"hover:text-gray-600",children:"Edit"}),Y.jsx("span",{children:"·"}),Y.jsx("button",{type:"button",onClick:()=>o(e.id),className:"hover:text-red-500",children:"Delete"}),Y.jsx("span",{children:"·"}),Y.jsx("button",{type:"button",onClick:R,className:"hover:text-gray-600",title:"Copy raw text (⌘C)",children:"Copy"}),Y.jsx("span",{children:"·"}),Y.jsx("button",{type:"button",onClick:()=>d(e),className:"hover:text-gray-600",title:"Copy with context for LLM (⌘⇧C)",children:"LLM"})]})]})]})]})}function KR({sortedComments:e,highlightPositions:t,onEditComment:r,onDeleteComment:u,onCopyCommentRaw:s,onCopyCommentForLLM:o,pendingSelectionTop:c,hoveredCommentId:d,onHoverComment:p}){const h=fe.useMemo(()=>{const E=e.filter(y=>y.id in t).map(y=>({commentId:y.id,top:t[y.id]}));if(E.sort((y,x)=>y.top-x.top),c!=null){const y=c,x=c+Bg;for(const R of E)R.top+Yi>y&&R.top<x&&(R.top<y?R.top=Math.max(0,y-Yi):R.top=x);E.sort((R,O)=>R.top-O.top)}const g=c??1/0,A=c!=null?c+Bg:1/0;for(let y=E.length-2;y>=0;y--){const x=E[y],R=E[y+1];R.top>=g||R.top-x.top<Yi&&(x.top=Math.max(0,R.top-Yi))}for(let y=1;y<E.length;y++){const x=E[y-1],R=E[y];if(R.top-x.top<Yi){let O=x.top+Yi;O>=g&&O<A&&(O=A),R.top=O}}return new Map(E.map(y=>[y.commentId,y.top]))},[e,t,c]);return e.length===0?null:Y.jsx("div",{className:"relative w-64",children:e.map((E,g)=>{const A=h.get(E.id);return A===void 0?null:Y.jsx(QR,{comment:E,top:A,isHovered:d===E.id,commentIndex:g,onEdit:r,onDelete:u,onCopyRaw:s,onCopyForLLM:o,onHover:p},E.id)})})}function ZR({headings:e,activeId:t,onHeadingClick:r}){const[u,s]=fe.useState(new Set),o=fe.useMemo(()=>{const p=new Set;let h=null;for(const E of e)E.level===2?h=E.id:E.level>2&&h?p.add(h):E.level===1&&(h=null);return p},[e]),c=fe.useMemo(()=>{let p=null;return e.filter(h=>h.level<=2?(h.level===2?p=h.id:p=null,!0):p&&u.has(p))},[e,u]),d=p=>{s(h=>{const E=new Set(h);return E.has(p)?E.delete(p):E.add(p),E})};return e.length===0?null:Y.jsx("nav",{className:"toc","aria-label":"Table of contents",children:c.map(p=>{const h=p.level===2&&o.has(p.id),E=u.has(p.id);return Y.jsxs("a",{href:`#${p.id}`,title:p.text,className:`toc-item toc-level-${p.level}${t===p.id?" toc-active":""}`,onClick:g=>{g.preventDefault(),h&&d(p.id),r(p.id)},children:[p.text,h&&Y.jsx("span",{className:"toc-toggle ml-1 opacity-40",children:E?"▾":"▸"})]},p.id)})})}function $R(e){const[t,r]=fe.useState(0),[u,s]=fe.useState();fe.useEffect(()=>{r(p=>p>=e.length?Math.max(0,e.length-1):p)},[e.length]);const o=fe.useCallback(p=>{const h=`mark[data-comment-id="${p}"]`,E=x=>{x.scrollIntoView({behavior:"smooth",block:"center"}),s(p),setTimeout(()=>s(void 0),1500)},g=document.querySelector(h);if(g){E(g);return}const y=document.querySelector("iframe")?.contentDocument?.querySelector(h);y&&E(y)},[]),c=fe.useCallback(()=>{if(e.length===0)return;const p=t===0?e.length-1:t-1;r(p),o(e[p].id)},[t,e,o]),d=fe.useCallback(()=>{if(e.length===0)return;const p=t===e.length-1?0:t+1;r(p),o(e[p].id)},[t,e,o]);return fe.useEffect(()=>{if(e.length<=1)return;const p=h=>{h.key==="ArrowUp"&&h.altKey&&(h.preventDefault(),c()),h.key==="ArrowDown"&&h.altKey&&(h.preventDefault(),d())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[e.length,c,d]),{currentIndex:t,hoveredCommentId:u,setHoveredCommentId:s,navigateToComment:o,navigatePrevious:c,navigateNext:d}}function WR(e,t={}){const{clean:r=!1}=t,[u,s]=fe.useState([]),[o,c]=fe.useState(!0),[d,p]=fe.useState(void 0),h=fe.useRef(new Map),E=fe.useCallback(async({operationId:R,optimisticUpdate:O,apiCall:C,onSuccess:P,errorMessage:M})=>{const Q=[...u];h.current.set(R,Q),s(O),p(void 0);try{const te=await C();P&&s(H=>P(te,H))}catch(te){console.error(`${M}:`,te),p(te instanceof Error?te.message:M);const H=h.current.get(R);H&&s(H)}finally{h.current.delete(R)}},[u]);fe.useEffect(()=>{if(!e){c(!1);return}(async()=>{c(!0),p(void 0);try{if(r){await fetch("/api/comments",{method:"DELETE"}),s([]),c(!1);return}const O=await fetch("/api/comments");if(!O.ok)throw new Error(`Failed to load comments: ${O.statusText}`);const C=await O.json();s(C.comments||[])}catch(O){console.error("Failed to load comments:",O),p(O instanceof Error?O.message:"Failed to load comments"),s([])}finally{c(!1)}})()},[e,r]);const g=fe.useCallback((R,O,C,P)=>{const M=`temp-${crypto.randomUUID()}`,Q={id:M,selectedText:R,comment:O.trim(),createdAt:new Date().toISOString(),startOffset:C,endOffset:P};E({operationId:M,optimisticUpdate:te=>[...te,Q],apiCall:async()=>{const te=await fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({selectedText:R,comment:O.trim(),startOffset:C,endOffset:P})});if(!te.ok)throw new Error(`Failed to add comment: ${te.statusText}`);return te.json()},onSuccess:(te,H)=>H.map(ue=>ue.id===M?te.comment:ue),errorMessage:"Failed to add comment"})},[E]),A=fe.useCallback(R=>{E({operationId:`delete-${R}`,optimisticUpdate:O=>O.filter(C=>C.id!==R),apiCall:async()=>{const O=await fetch(`/api/comments/${R}`,{method:"DELETE"});if(!O.ok)throw new Error(`Failed to delete comment: ${O.statusText}`)},errorMessage:"Failed to delete comment"})},[E]),y=fe.useCallback((R,O)=>{const C=O.trim();C&&E({operationId:`edit-${R}`,optimisticUpdate:P=>P.map(M=>M.id===R?{...M,comment:C}:M),apiCall:async()=>{const P=await fetch(`/api/comments/${R}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({comment:C})});if(!P.ok)throw new Error(`Failed to update comment: ${P.statusText}`)},errorMessage:"Failed to edit comment"})},[E]),x=fe.useCallback((R,O,C,P)=>{E({operationId:`reanchor-${R}`,optimisticUpdate:M=>M.map(Q=>Q.id===R?{...Q,selectedText:O,startOffset:C,endOffset:P,anchorConfidence:"exact"}:Q),apiCall:async()=>{const M=await fetch(`/api/comments/${R}/reanchor`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({selectedText:O,startOffset:C,endOffset:P})});if(!M.ok)throw new Error(`Failed to re-anchor comment: ${M.statusText}`);return M.json()},onSuccess:(M,Q)=>Q.map(te=>te.id===R?M.comment:te),errorMessage:"Failed to re-anchor comment"})},[E]);return{comments:u,isLoading:o,error:d,addComment:g,deleteComment:A,editComment:y,reanchorComment:x}}function JR(){const[e,t]=fe.useState(null),[r,u]=fe.useState(null);fe.useEffect(()=>{async function o(){try{const c=await fetch("/api/document");if(!c.ok)throw new Error(`Server error: ${c.status}`);const d=await c.json();t(d)}catch(c){u(c instanceof Error?c.message:"Failed to load document")}}o()},[]);const s=fe.useCallback(async()=>{try{const o=await fetch("/api/document");if(!o.ok)throw new Error(`Server error: ${o.status}`);const c=await o.json();t(c),Aa.success("Document reloaded")}catch(o){Aa.error(o instanceof Error?o.message:"Failed to reload")}},[]);return fe.useEffect(()=>{const o=new EventSource("/api/document/stream");return o.onmessage=c=>{c.data==="update"&&s()},()=>o.close()},[s]),{document:e,error:r,reload:s}}function eD(e){let t=e.replace(/^(`{3,}|~{3,}).*$[\s\S]*?^\1\s*$/gm,"");return t=t.replace(/(?:^|\n\n)((?:(?:[ ]{4}|\t).+\n?)+)/g,`
531
+
532
+ `),t}function tD(e){const t=[],r=new Map,u=eD(e),s=/^(#{1,6})\s+(.+)$/gm;let o=s.exec(u);for(;o!==null;){const c=o[1].length,d=o[2].trim(),p=ES(d),h=r.get(p)??0,E=h>0?`${p}-${h}`:p;r.set(p,h+1),t.push({id:E,text:d,level:c}),o=s.exec(u)}return t}function nD(e){return e.toLowerCase().trim().replace(/[^a-z0-9 -]/g,"").replace(/ +/g,"-").replace(/-+/g,"-")}function aD(e){const t=[],r=new Map,u=/<h([1-6])([^>]*)>([^<]+)<\/h\1>/gi;let s=u.exec(e);for(;s!==null;){const o=Number.parseInt(s[1],10),c=s[2],d=s[3].replace(/<[^>]+>/g,"").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').trim();if(d){const p=/\sid=["']([^"']+)["']/i.exec(c),h=p?p[1]:(()=>{const E=nD(d),g=r.get(E)??0;return r.set(E,g+1),g>0?`${E}-${g}`:E})();t.push({id:h,text:d,level:o})}s=u.exec(e)}return t}function rD(e,t){return fe.useMemo(()=>!e||!t?[]:t==="markdown"?tD(e):aD(e),[e,t])}function iD(){const[e,t]=fe.useState(null),r=fe.useCallback(s=>{t({commentId:s})},[]),u=fe.useCallback(()=>{t(null)},[]);return{reanchorTarget:e,startReanchor:r,cancelReanchor:u}}function uD(){const[e,t]=fe.useState({documentHeight:0,viewportHeight:0,scrollTop:0}),r=fe.useRef(null);return fe.useEffect(()=>{const u=()=>{t({documentHeight:document.body.scrollHeight,viewportHeight:window.innerHeight,scrollTop:window.scrollY})},s=()=>{r.current===null&&(r.current=requestAnimationFrame(()=>{u(),r.current=null}))};return u(),window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",u),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",u),r.current!==null&&cancelAnimationFrame(r.current)}},[]),e}function lD(e){const[t,r]=fe.useState(null),u=fe.useRef(!1);return fe.useEffect(()=>{if(e.length===0){r(null),u.current=!1;return}const s=new Map,o=new IntersectionObserver(c=>{for(const d of c){const p=d.target.id;d.isIntersecting?s.set(p,d.boundingClientRect.top):s.delete(p)}if(s.size>0){let d=null,p=Number.POSITIVE_INFINITY;for(const[h,E]of s){const g=Math.abs(E);g<p&&(p=g,d=h)}d&&r(d)}},{rootMargin:"-10% 0px -70% 0px",threshold:0});u.current||(r(e[0]),u.current=!0);for(const c of e){const d=document.getElementById(c);d&&o.observe(d)}return()=>{o.disconnect()}},[e]),t}function sD(){const[e,t]=fe.useState(null),[r,u]=fe.useState({}),[s,o]=fe.useState({}),[c,d]=fe.useState();fe.useEffect(()=>{if(!e)return;const g=A=>{const y=A.target;y.closest("[data-comment-input]")||y.closest("mark[data-pending]")||y.closest("mark[data-comment-id]")||(t(null),window.getSelection()?.removeAllRanges())};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[e]);const p=fe.useCallback((g,A,y)=>{t({text:g,startOffset:A,endOffset:y})},[]),h=fe.useCallback((g,A,y)=>{u(g),o(A),d(y)},[]),E=fe.useCallback(()=>{t(null),window.getSelection()?.removeAllRanges()},[]);return{selection:e,highlightPositions:r,documentPositions:s,pendingSelectionTop:c,onTextSelect:p,onPositionsChange:h,clearSelection:E}}const oD=2,cD=10,fD=200;function dD(e){let t=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/gi,"");return t=t.replace(/<[^>]+>/g,""),t=t.replace(/&nbsp;/g," "),t=t.replace(/&lt;/g,"<"),t=t.replace(/&gt;/g,">"),t=t.replace(/&amp;/g,"&"),t=t.replace(/&quot;/g,'"'),t=t.replace(/&#39;/g,"'"),t=t.replace(/&#(\d+);/g,(r,u)=>String.fromCharCode(Number.parseInt(u,10))),t=t.replace(/&#x([0-9a-f]+);/gi,(r,u)=>String.fromCharCode(Number.parseInt(u,16))),t}function hD(e){return/<[a-z][\s\S]*>/i.test(e)}function mD(e,t=fD){return e.length<=t?e:`${e.slice(0,t-3)}...`}function hb(e,t,r,u=oD){const c=(hD(e)?dD(e):e).replace(/\r\n/g,`
533
+ `).split(`
534
+ `);let d=0,p=-1,h=-1,E=0,g=0;for(let C=0;C<c.length;C++){const P=c[C].length,M=d+P;if(p===-1&&M>=t&&(p=C,E=t-d),M>=r){h=C,g=r-d;break}d+=P+1}p===-1&&(p=0),h===-1&&(h=c.length-1);const A=Math.max(0,p-u),y=Math.min(c.length-1,h+u),x=[],O=h-p+1>cD;for(let C=A;C<=y;C++){let P=c[C];if(O){const M=p+2,Q=h-2;if(C>M&&C<Q){C===M+1&&x.push("...");continue}}if(C===p&&C===h){const M=P.slice(0,E),Q=P.slice(E,g),te=P.slice(g);P=`${M}>>> ${Q} <<<${te}`}else if(C===p){const M=P.slice(0,E),Q=P.slice(E);P=`${M}>>> ${Q}`}else if(C===h){const M=P.slice(0,g),Q=P.slice(g);P=`${M} <<<${Q}`}x.push(mD(P))}return{lines:x,startLine:p+1,endLine:h+1}}function mb({context:e,fileName:t,comment:r}){const u=`# From: ${t}`,s=`Lines ${e.startLine}-${e.endLine}:`,o=["---",...e.lines,"---"].join(`
535
+ `),c=[u,"",s,o];return r&&c.push("",`Comment: ${r}`),c.join(`
536
+ `)}function pD(e,t){const r=e.map(u=>`---
537
+ Selected text: "${u.selectedText}"
538
+ Comment: ${u.comment}`).join(`
539
+
540
+ `);return`# Review Comments for ${t}
541
+
542
+ ${r}`}function gD(e){return e.map(t=>`${t.selectedText}
543
+
544
+ ${t.comment}`).join(`
545
+
546
+ ---
547
+
548
+ `)}function bD(e,t){const r={filePath:t.filePath,fileName:t.fileName,exportedAt:new Date().toISOString(),comments:e.map(c=>({selectedText:c.selectedText,comment:c.comment,createdAt:c.createdAt}))},u=new Blob([JSON.stringify(r,null,2)],{type:"application/json"}),s=URL.createObjectURL(u),o=window.document.createElement("a");o.href=s,o.download=`${t.fileName}-comments.json`,o.click(),URL.revokeObjectURL(s)}function ED(e,t,r=.25){const u=t*r;return Math.max(0,e-u)}function pb(e,t,r){return t+(r??0)+e.top}function co(e,t=30){return e.length<=t?e:`${e.slice(0,t)}…`}function TD(){const{document:e,error:t,reload:r}=JR(),{selection:u,highlightPositions:s,documentPositions:o,pendingSelectionTop:c,onTextSelect:d,onPositionsChange:p,clearSelection:h}=sD(),{comments:E,error:g,addComment:A,deleteComment:y,editComment:x,reanchorComment:R}=WR(e?.filePath||null,{clean:e?.clean}),{reanchorTarget:O,startReanchor:C,cancelReanchor:P}=iD(),M=fe.useMemo(()=>[...E].sort((X,ee)=>X.startOffset-ee.startOffset),[E]),{currentIndex:Q,hoveredCommentId:te,setHoveredCommentId:H,navigateToComment:ue,navigatePrevious:re,navigateNext:Ae}=$R(M),z=uD(),le=rD(e?.content??null,e?.type??null),ce=lD(le.map(X=>X.id)),pe=fe.useCallback(X=>{let ee=null,ye;if(e?.type==="html"){const xe=window.document.querySelector("iframe");if(ee=xe?.contentDocument?.getElementById(X)??null,ee&&xe){const Be=xe.getBoundingClientRect();ye=pb(ee.getBoundingClientRect(),window.scrollY,Be.top)}else return}else if(ee=window.document.getElementById(X),ee)ye=pb(ee.getBoundingClientRect(),window.scrollY);else return;const Se=ED(ye,window.innerHeight);window.scrollTo({top:Se,behavior:"smooth"})},[e?.type]);fe.useEffect(()=>{const X=new EventSource("/api/heartbeat");return()=>X.close()},[]),fe.useEffect(()=>{g&&Aa.error(g)},[g]);const be=fe.useCallback(X=>{u&&(A(u.text,X,u.startOffset,u.endOffset),h())},[u,A,h]),oe=fe.useCallback(()=>{!u||!O||(R(O.commentId,u.text,u.startOffset,u.endOffset),P(),h())},[u,O,R,P,h]),U=fe.useCallback(()=>{P(),h()},[P,h]),J=fe.useCallback(()=>{if(!e)return;const X=pD(E,e.fileName);navigator.clipboard.writeText(X),Aa.success("Copied all comments")},[E,e]),ne=fe.useCallback(()=>{if(!e)return;const X=gD(E);navigator.clipboard.writeText(X),Aa.success("Copied all comments as raw text")},[E,e]),Re=fe.useCallback(()=>{e&&bD(E,e)},[E,e]),k=fe.useCallback(()=>{u&&(navigator.clipboard.writeText(u.text),Aa.success(`Copied: "${co(u.text)}"`),h())},[u,h]),D=fe.useCallback(()=>{if(!u||!e)return;const X=hb(e.content,u.startOffset,u.endOffset),ee=mb({context:X,fileName:e.fileName});navigator.clipboard.writeText(ee),Aa.success(`Copied for LLM: "${co(u.text)}"`),h()},[u,e,h]),K=fe.useCallback(X=>{const ee=`${X.selectedText}
549
+
550
+ ${X.comment}`;navigator.clipboard.writeText(ee),Aa.success(`Copied: "${co(X.comment)}"`)},[]),_=fe.useCallback(X=>{if(!e)return;const ee=hb(e.content,X.startOffset,X.endOffset),ye=mb({context:ee,fileName:e.fileName,comment:X.comment});navigator.clipboard.writeText(ye),Aa.success(`Copied for LLM: "${co(X.comment)}"`)},[e]);return fe.useEffect(()=>{if(!u)return;const X=ee=>{ee.key==="c"&&ee.metaKey&&(ee.preventDefault(),ee.shiftKey?D():k()),ee.key==="Escape"&&h()};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[u,k,D,h]),fe.useEffect(()=>{const X=window.document.querySelectorAll("mark[data-comment-id]");for(const ee of X)ee.getAttribute("data-comment-id")===te?ee.setAttribute("data-focused","true"):ee.removeAttribute("data-focused")},[te]),t?Y.jsx("div",{className:"min-h-screen bg-white text-gray-900 flex items-center justify-center",children:Y.jsx("div",{className:"text-red-600",children:t})}):e?Y.jsxs("div",{className:"min-h-screen bg-white text-gray-900 flex flex-col",children:[Y.jsx(OA,{position:"bottom-right",icons:{success:null,error:null,info:null,warning:null},toastOptions:{unstyled:!0,duration:2e3,classNames:{toast:"backdrop-blur-sm bg-white/90 border border-gray-100 px-3 py-2 text-xs text-gray-500 shadow-sm rounded-md"}}}),Y.jsx(GR,{fileName:e.fileName,comments:E,onCopyAll:J,onCopyAllRaw:ne,onExportJson:Re,onReload:r,onEditComment:x,onDeleteComment:y,onGoToComment:ue,onReanchorComment:C,reanchorMode:O}),Y.jsxs("div",{className:`flex-1 flex gap-4 max-w-7xl mx-auto w-full ${te?"has-comment-focus":""}`,children:[le.length>0&&Y.jsx("aside",{className:"w-48 flex-shrink-0 py-6 pl-6 hidden xl:block",children:Y.jsx("div",{className:"sticky top-64 max-h-[calc(100vh-17rem)] overflow-y-auto",children:Y.jsx(ZR,{headings:le,activeId:ce,onHeadingClick:pe})})}),Y.jsx("div",{className:"flex-1 px-6 py-6",children:Y.jsx(jR,{content:e.content,type:e.type,comments:E,headings:le,pendingSelection:u??void 0,onTextSelect:d,onHighlightPositionsChange:p,onHighlightHover:H})}),Y.jsxs("div",{className:"w-72 flex-shrink-0 py-6 pr-4 relative",children:[u&&c!==void 0&&Y.jsx("div",{className:"absolute left-0 right-0 z-10 bg-white",style:{top:c},children:O!==null?Y.jsxs("div",{className:"border-t border-gray-200 pt-2 pb-3 pl-6",children:[Y.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Re-anchor to this selection?"}),Y.jsxs("p",{className:"font-serif text-sm text-gray-400 italic line-clamp-2 mb-2",children:['"',u.text,'"']}),Y.jsxs("div",{className:"flex gap-3 text-sm",children:[Y.jsx("button",{type:"button",onClick:oe,className:"text-gray-600 hover:text-gray-900",children:"Confirm"}),Y.jsx("button",{type:"button",onClick:U,className:"text-gray-400 hover:text-gray-600",children:"Cancel"})]})]}):Y.jsx(kA,{selectedText:u.text,onSubmit:be,onCancel:h,onCopyRaw:k,onCopyForLLM:D})}),Y.jsx(KR,{sortedComments:M,highlightPositions:s,pendingSelectionTop:u?c:void 0,hoveredCommentId:te,onEditComment:x,onDeleteComment:y,onCopyCommentRaw:K,onCopyCommentForLLM:_,onHoverComment:H})]})]}),Y.jsx(_S,{sortedComments:M,documentPositions:o,documentHeight:z.documentHeight,viewportHeight:z.viewportHeight,hoveredCommentId:te,onCommentClick:ue}),Y.jsx(PS,{currentIndex:Q,totalComments:M.length,onPrevious:re,onNext:Ae}),Y.jsx("footer",{className:"py-4 text-center text-sm text-gray-400",children:"Made with ❤️ by Jay and Claude"})]}):Y.jsx("div",{className:"min-h-screen bg-white text-gray-900 flex items-center justify-center",children:Y.jsx("div",{className:"text-gray-500",children:"Loading..."})})}J2.createRoot(document.getElementById("root")).render(Y.jsx(Te.StrictMode,{children:Y.jsx(TD,{})}));