(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function l(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(o){if(o.ep)return;o.ep=!0;const u=l(o);fetch(o.href,u)}})();function id(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ef={exports:{}},jr={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var og;function j1(){if(og)return jr;og=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(r,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var h in o)h!=="key"&&(u[h]=o[h])}else u=o;return o=u.ref,{$$typeof:t,type:r,key:c,ref:o!==void 0?o:null,props:u}}return jr.Fragment=a,jr.jsx=l,jr.jsxs=l,jr}var cg;function B1(){return cg||(cg=1,ef.exports=j1()),ef.exports}var m=B1(),tf={exports:{}},Be={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ug;function I1(){if(ug)return Be;ug=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),_=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=_&&M[_]||M["@@iterator"],typeof M=="function"?M:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,A={};function w(M,B,N){this.props=M,this.context=B,this.refs=A,this.updater=N||S}w.prototype.isReactComponent={},w.prototype.setState=function(M,B){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,B,"setState")},w.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function C(){}C.prototype=w.prototype;function z(M,B,N){this.props=M,this.context=B,this.refs=A,this.updater=N||S}var q=z.prototype=new C;q.constructor=z,T(q,w.prototype),q.isPureReactComponent=!0;var K=Array.isArray;function D(){}var Z={H:null,A:null,T:null,S:null},oe=Object.prototype.hasOwnProperty;function de(M,B,N){var ce=N.ref;return{$$typeof:t,type:M,key:B,ref:ce!==void 0?ce:null,props:N}}function U(M,B){return de(M.type,B,M.props)}function re(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function ae(M){var B={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(N){return B[N]})}var ie=/\/+/g;function Y(M,B){return typeof M=="object"&&M!==null&&M.key!=null?ae(""+M.key):B.toString(36)}function H(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(D,D):(M.status="pending",M.then(function(B){M.status==="pending"&&(M.status="fulfilled",M.value=B)},function(B){M.status==="pending"&&(M.status="rejected",M.reason=B)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function L(M,B,N,ce,pe){var he=typeof M;(he==="undefined"||he==="boolean")&&(M=null);var ze=!1;if(M===null)ze=!0;else switch(he){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(M.$$typeof){case t:case a:ze=!0;break;case b:return ze=M._init,L(ze(M._payload),B,N,ce,pe)}}if(ze)return pe=pe(M),ze=ce===""?"."+Y(M,0):ce,K(pe)?(N="",ze!=null&&(N=ze.replace(ie,"$&/")+"/"),L(pe,B,N,"",function(ft){return ft})):pe!=null&&(re(pe)&&(pe=U(pe,N+(pe.key==null||M&&M.key===pe.key?"":(""+pe.key).replace(ie,"$&/")+"/")+ze)),B.push(pe)),1;ze=0;var Le=ce===""?".":ce+":";if(K(M))for(var qe=0;qe<M.length;qe++)ce=M[qe],he=Le+Y(ce,qe),ze+=L(ce,B,N,he,pe);else if(qe=v(M),typeof qe=="function")for(M=qe.call(M),qe=0;!(ce=M.next()).done;)ce=ce.value,he=Le+Y(ce,qe++),ze+=L(ce,B,N,he,pe);else if(he==="object"){if(typeof M.then=="function")return L(H(M),B,N,ce,pe);throw B=String(M),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ze}function X(M,B,N){if(M==null)return M;var ce=[],pe=0;return L(M,ce,"","",function(he){return B.call(N,he,pe++)}),ce}function ne(M){if(M._status===-1){var B=M._result;B=B(),B.then(function(N){(M._status===0||M._status===-1)&&(M._status=1,M._result=N)},function(N){(M._status===0||M._status===-1)&&(M._status=2,M._result=N)}),M._status===-1&&(M._status=0,M._result=B)}if(M._status===1)return M._result.default;throw M._result}var le=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},k={map:X,forEach:function(M,B,N){X(M,function(){B.apply(this,arguments)},N)},count:function(M){var B=0;return X(M,function(){B++}),B},toArray:function(M){return X(M,function(B){return B})||[]},only:function(M){if(!re(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return Be.Activity=x,Be.Children=k,Be.Component=w,Be.Fragment=l,Be.Profiler=o,Be.PureComponent=z,Be.StrictMode=r,Be.Suspense=g,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,Be.__COMPILER_RUNTIME={__proto__:null,c:function(M){return Z.H.useMemoCache(M)}},Be.cache=function(M){return function(){return M.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(M,B,N){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ce=T({},M.props),pe=M.key;if(B!=null)for(he in B.key!==void 0&&(pe=""+B.key),B)!oe.call(B,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&B.ref===void 0||(ce[he]=B[he]);var he=arguments.length-2;if(he===1)ce.children=N;else if(1<he){for(var ze=Array(he),Le=0;Le<he;Le++)ze[Le]=arguments[Le+2];ce.children=ze}return de(M.type,pe,ce)},Be.createContext=function(M){return M={$$typeof:c,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:u,_context:M},M},Be.createElement=function(M,B,N){var ce,pe={},he=null;if(B!=null)for(ce in B.key!==void 0&&(he=""+B.key),B)oe.call(B,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(pe[ce]=B[ce]);var ze=arguments.length-2;if(ze===1)pe.children=N;else if(1<ze){for(var Le=Array(ze),qe=0;qe<ze;qe++)Le[qe]=arguments[qe+2];pe.children=Le}if(M&&M.defaultProps)for(ce in ze=M.defaultProps,ze)pe[ce]===void 0&&(pe[ce]=ze[ce]);return de(M,he,pe)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(M){return{$$typeof:h,render:M}},Be.isValidElement=re,Be.lazy=function(M){return{$$typeof:b,_payload:{_status:-1,_result:M},_init:ne}},Be.memo=function(M,B){return{$$typeof:p,type:M,compare:B===void 0?null:B}},Be.startTransition=function(M){var B=Z.T,N={};Z.T=N;try{var ce=M(),pe=Z.S;pe!==null&&pe(N,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(D,le)}catch(he){le(he)}finally{B!==null&&N.types!==null&&(B.types=N.types),Z.T=B}},Be.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},Be.use=function(M){return Z.H.use(M)},Be.useActionState=function(M,B,N){return Z.H.useActionState(M,B,N)},Be.useCallback=function(M,B){return Z.H.useCallback(M,B)},Be.useContext=function(M){return Z.H.useContext(M)},Be.useDebugValue=function(){},Be.useDeferredValue=function(M,B){return Z.H.useDeferredValue(M,B)},Be.useEffect=function(M,B){return Z.H.useEffect(M,B)},Be.useEffectEvent=function(M){return Z.H.useEffectEvent(M)},Be.useId=function(){return Z.H.useId()},Be.useImperativeHandle=function(M,B,N){return Z.H.useImperativeHandle(M,B,N)},Be.useInsertionEffect=function(M,B){return Z.H.useInsertionEffect(M,B)},Be.useLayoutEffect=function(M,B){return Z.H.useLayoutEffect(M,B)},Be.useMemo=function(M,B){return Z.H.useMemo(M,B)},Be.useOptimistic=function(M,B){return Z.H.useOptimistic(M,B)},Be.useReducer=function(M,B,N){return Z.H.useReducer(M,B,N)},Be.useRef=function(M){return Z.H.useRef(M)},Be.useState=function(M){return Z.H.useState(M)},Be.useSyncExternalStore=function(M,B,N){return Z.H.useSyncExternalStore(M,B,N)},Be.useTransition=function(){return Z.H.useTransition()},Be.version="19.2.4",Be}var fg;function ad(){return fg||(fg=1,tf.exports=I1()),tf.exports}var F=ad(),nf={exports:{}},Br={},af={exports:{}},lf={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var dg;function U1(){return dg||(dg=1,(function(t){function a(L,X){var ne=L.length;L.push(X);e:for(;0<ne;){var le=ne-1>>>1,k=L[le];if(0<o(k,X))L[le]=X,L[ne]=k,ne=le;else break e}}function l(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var X=L[0],ne=L.pop();if(ne!==X){L[0]=ne;e:for(var le=0,k=L.length,M=k>>>1;le<M;){var B=2*(le+1)-1,N=L[B],ce=B+1,pe=L[ce];if(0>o(N,ne))ce<k&&0>o(pe,N)?(L[le]=pe,L[ce]=ne,le=ce):(L[le]=N,L[B]=ne,le=B);else if(ce<k&&0>o(pe,ne))L[le]=pe,L[ce]=ne,le=ce;else break e}}return X}function o(L,X){var ne=L.sortIndex-X.sortIndex;return ne!==0?ne:L.id-X.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,h=c.now();t.unstable_now=function(){return c.now()-h}}var g=[],p=[],b=1,x=null,_=3,v=!1,S=!1,T=!1,A=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function q(L){for(var X=l(p);X!==null;){if(X.callback===null)r(p);else if(X.startTime<=L)r(p),X.sortIndex=X.expirationTime,a(g,X);else break;X=l(p)}}function K(L){if(T=!1,q(L),!S)if(l(g)!==null)S=!0,D||(D=!0,ae());else{var X=l(p);X!==null&&H(K,X.startTime-L)}}var D=!1,Z=-1,oe=5,de=-1;function U(){return A?!0:!(t.unstable_now()-de<oe)}function re(){if(A=!1,D){var L=t.unstable_now();de=L;var X=!0;try{e:{S=!1,T&&(T=!1,C(Z),Z=-1),v=!0;var ne=_;try{t:{for(q(L),x=l(g);x!==null&&!(x.expirationTime>L&&U());){var le=x.callback;if(typeof le=="function"){x.callback=null,_=x.priorityLevel;var k=le(x.expirationTime<=L);if(L=t.unstable_now(),typeof k=="function"){x.callback=k,q(L),X=!0;break t}x===l(g)&&r(g),q(L)}else r(g);x=l(g)}if(x!==null)X=!0;else{var M=l(p);M!==null&&H(K,M.startTime-L),X=!1}}break e}finally{x=null,_=ne,v=!1}X=void 0}}finally{X?ae():D=!1}}}var ae;if(typeof z=="function")ae=function(){z(re)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,Y=ie.port2;ie.port1.onmessage=re,ae=function(){Y.postMessage(null)}}else ae=function(){w(re,0)};function H(L,X){Z=w(function(){L(t.unstable_now())},X)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_next=function(L){switch(_){case 1:case 2:case 3:var X=3;break;default:X=_}var ne=_;_=X;try{return L()}finally{_=ne}},t.unstable_requestPaint=function(){A=!0},t.unstable_runWithPriority=function(L,X){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ne=_;_=L;try{return X()}finally{_=ne}},t.unstable_scheduleCallback=function(L,X,ne){var le=t.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?le+ne:le):ne=le,L){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,L={id:b++,callback:X,priorityLevel:L,startTime:ne,expirationTime:k,sortIndex:-1},ne>le?(L.sortIndex=ne,a(p,L),l(g)===null&&L===l(p)&&(T?(C(Z),Z=-1):T=!0,H(K,ne-le))):(L.sortIndex=k,a(g,L),S||v||(S=!0,D||(D=!0,ae()))),L},t.unstable_shouldYield=U,t.unstable_wrapCallback=function(L){var X=_;return function(){var ne=_;_=X;try{return L.apply(this,arguments)}finally{_=ne}}}})(lf)),lf}var mg;function H1(){return mg||(mg=1,af.exports=U1()),af.exports}var rf={exports:{}},ln={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hg;function F1(){if(hg)return ln;hg=1;var t=ad();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(g,p,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:g,containerInfo:p,implementation:b}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ln.createPortal=function(g,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return u(g,p,null,b)},ln.flushSync=function(g){var p=c.T,b=r.p;try{if(c.T=null,r.p=2,g)return g()}finally{c.T=p,r.p=b,r.d.f()}},ln.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(g,p))},ln.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},ln.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var b=p.as,x=h(b,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,v=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?r.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:_,fetchPriority:v}):b==="script"&&r.d.X(g,{crossOrigin:x,integrity:_,fetchPriority:v,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ln.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);r.d.M(g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(g)},ln.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,x=h(b,p.crossOrigin);r.d.L(g,b,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ln.preloadModule=function(g,p){if(typeof g=="string")if(p){var b=h(p.as,p.crossOrigin);r.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(g)},ln.requestFormReset=function(g){r.d.r(g)},ln.unstable_batchedUpdates=function(g,p){return g(p)},ln.useFormState=function(g,p,b){return c.H.useFormState(g,p,b)},ln.useFormStatus=function(){return c.H.useHostTransitionStatus()},ln.version="19.2.4",ln}var pg;function F0(){if(pg)return rf.exports;pg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),rf.exports=F1(),rf.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gg;function $1(){if(gg)return Br;gg=1;var t=H1(),a=ad(),l=F0();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(u(e)!==e)throw Error(r(188))}function p(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(r(188));return n!==e?null:e}for(var i=e,s=n;;){var f=i.return;if(f===null)break;var d=f.alternate;if(d===null){if(s=f.return,s!==null){i=s;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===i)return g(f),e;if(d===s)return g(f),n;d=d.sibling}throw Error(r(188))}if(i.return!==s.return)i=f,s=d;else{for(var y=!1,E=f.child;E;){if(E===i){y=!0,i=f,s=d;break}if(E===s){y=!0,s=f,i=d;break}E=E.sibling}if(!y){for(E=d.child;E;){if(E===i){y=!0,i=d,s=f;break}if(E===s){y=!0,s=d,i=f;break}E=E.sibling}if(!y)throw Error(r(189))}}if(i.alternate!==s)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?e:n}function b(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=b(e),n!==null)return n;e=e.sibling}return null}var x=Object.assign,_=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function Y(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case w:return"Profiler";case A:return"StrictMode";case K:return"Suspense";case D:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case z:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case q:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return n=e.displayName||null,n!==null?n:Y(e.type)||"Memo";case oe:n=e._payload,e=e._init;try{return Y(e(n))}catch{}}return null}var H=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},le=[],k=-1;function M(e){return{current:e}}function B(e){0>k||(e.current=le[k],le[k]=null,k--)}function N(e,n){k++,le[k]=e.current,e.current=n}var ce=M(null),pe=M(null),he=M(null),ze=M(null);function Le(e,n){switch(N(he,n),N(pe,e),N(ce,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Op(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Op(n),e=zp(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(ce),N(ce,e)}function qe(){B(ce),B(pe),B(he)}function ft(e){e.memoizedState!==null&&N(ze,e);var n=ce.current,i=zp(n,e.type);n!==i&&(N(pe,e),N(ce,i))}function se(e){pe.current===e&&(B(ce),B(pe)),ze.current===e&&(B(ze),zr._currentValue=ne)}var Re,lt;function We(e){if(Re===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Re=n&&n[1]||"",lt=-1<i.stack.indexOf(`
    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Re+e+lt}var It=!1;function Ce(e,n){if(!e||It)return"";It=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(V){var P=V}Reflect.construct(e,[],te)}else{try{te.call()}catch(V){P=V}e.call(te.prototype)}}else{try{throw Error()}catch(V){P=V}(te=e())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(V){if(V&&P&&typeof V.stack=="string")return[V.stack,P.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=s.DetermineComponentFrameRoot(),y=d[0],E=d[1];if(y&&E){var O=y.split(`
`),G=E.split(`
`);for(f=s=0;s<O.length&&!O[s].includes("DetermineComponentFrameRoot");)s++;for(;f<G.length&&!G[f].includes("DetermineComponentFrameRoot");)f++;if(s===O.length||f===G.length)for(s=O.length-1,f=G.length-1;1<=s&&0<=f&&O[s]!==G[f];)f--;for(;1<=s&&0<=f;s--,f--)if(O[s]!==G[f]){if(s!==1||f!==1)do if(s--,f--,0>f||O[s]!==G[f]){var J=`
`+O[s].replace(" at new "," at ");return e.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",e.displayName)),J}while(1<=s&&0<=f);break}}}finally{It=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?We(i):""}function Tt(e,n){switch(e.tag){case 26:case 27:case 5:return We(e.type);case 16:return We("Lazy");case 13:return e.child!==n&&n!==null?We("Suspense Fallback"):We("Suspense");case 19:return We("SuspenseList");case 0:case 15:return Ce(e.type,!1);case 11:return Ce(e.type.render,!1);case 1:return Ce(e.type,!0);case 31:return We("Activity");default:return""}}function be(e){try{var n="",i=null;do n+=Tt(e,i),i=e,e=e.return;while(e);return n}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}var Ue=Object.prototype.hasOwnProperty,yt=t.unstable_scheduleCallback,Ut=t.unstable_cancelCallback,Wn=t.unstable_shouldYield,Ha=t.unstable_requestPaint,At=t.unstable_now,Fa=t.unstable_getCurrentPriorityLevel,Q=t.unstable_ImmediatePriority,me=t.unstable_UserBlockingPriority,Te=t.unstable_NormalPriority,Ge=t.unstable_LowPriority,tt=t.unstable_IdlePriority,on=t.log,Yn=t.unstable_setDisableYieldValue,Xt=null,Ct=null;function tn(e){if(typeof on=="function"&&Yn(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Xt,e)}catch{}}var rt=Math.clz32?Math.clz32:os,ei=Math.log,cn=Math.LN2;function os(e){return e>>>=0,e===0?32:31-(ei(e)/cn|0)|0}var da=256,$a=262144,ma=4194304;function hn(e){var n=e&42;if(n!==0)return n;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function R(e,n,i){var s=e.pendingLanes;if(s===0)return 0;var f=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var E=s&134217727;return E!==0?(s=E&~d,s!==0?f=hn(s):(y&=E,y!==0?f=hn(y):i||(i=E&~e,i!==0&&(f=hn(i))))):(E=s&~d,E!==0?f=hn(E):y!==0?f=hn(y):i||(i=s&~e,i!==0&&(f=hn(i)))),f===0?0:n!==0&&n!==f&&(n&d)===0&&(d=f&-f,i=n&-n,d>=i||d===32&&(i&4194048)!==0)?n:f}function W(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function xe(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 De(){var e=ma;return ma<<=1,(ma&62914560)===0&&(ma=4194304),e}function Et(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function gt(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ve(e,n,i,s,f,d){var y=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var E=e.entanglements,O=e.expirationTimes,G=e.hiddenUpdates;for(i=y&~i;0<i;){var J=31-rt(i),te=1<<J;E[J]=0,O[J]=-1;var P=G[J];if(P!==null)for(G[J]=null,J=0;J<P.length;J++){var V=P[J];V!==null&&(V.lane&=-536870913)}i&=~te}s!==0&&ye(e,s,0),d!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~n))}function ye(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-rt(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|i&261930}function Oe(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var s=31-rt(i),f=1<<s;f&n|e[s]&n&&(e[s]|=n),i&=~f}}function Rt(e,n){var i=n&-n;return i=(i&42)!==0?1:wt(i),(i&(e.suspendedLanes|n))!==0?0:i}function wt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function fi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qa(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:tg(e.type))}function Ga(e,n){var i=X.p;try{return X.p=e,n()}finally{X.p=i}}var ti=Math.random().toString(36).slice(2),Dt="__reactFiber$"+ti,nn="__reactProps$"+ti,ji="__reactContainer$"+ti,ql="__reactEvents$"+ti,cs="__reactListeners$"+ti,Pa="__reactHandles$"+ti,us="__reactResources$"+ti,ha="__reactMarker$"+ti;function Gl(e){delete e[Dt],delete e[nn],delete e[ql],delete e[cs],delete e[Pa]}function un(e){var n=e[Dt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[ji]||i[Dt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Up(e);e!==null;){if(i=e[Dt])return i;e=Up(e)}return n}e=i,i=e.parentNode}return null}function di(e){if(e=e[Dt]||e[ji]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Bi(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function Ii(e){var n=e[us];return n||(n=e[us]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Ht(e){e[ha]=!0}var fs=new Set,pa={};function mi(e,n){ue(e,n),ue(e+"Capture",n)}function ue(e,n){for(pa[e]=n,e=0;e<n.length;e++)fs.add(n[e])}var Ne=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]*$"),Pe={},st={};function Lt(e){return Ue.call(st,e)?!0:Ue.call(Pe,e)?!1:Ne.test(e)?st[e]=!0:(Pe[e]=!0,!1)}function an(e,n,i){if(Lt(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function wn(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function pn(e,n,i,s){if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+s)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kn(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ds(e,n,i){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,d=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(y){i=""+y,d.call(this,y)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(y){i=""+y},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ya(e){if(!e._valueTracker){var n=kn(e)?"checked":"value";e._valueTracker=ds(e,n,""+e[n])}}function Pl(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),s="";return e&&(s=kn(e)?e.checked?"true":"false":e.value),e=s,e!==i?(n.setValue(e),!0):!1}function Ka(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Wo=/[\n"\\]/g;function gn(e){return e.replace(Wo,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Yl(e,n,i,s,f,d,y,E){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),n!=null?y==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+_t(n)):e.value!==""+_t(n)&&(e.value=""+_t(n)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),n!=null?Va(e,y,_t(n)):i!=null?Va(e,y,_t(i)):s!=null&&e.removeAttribute("value"),f==null&&d!=null&&(e.defaultChecked=!!d),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+_t(E):e.removeAttribute("name")}function ga(e,n,i,s,f,d,y,E){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||n!=null)){Ya(e);return}i=i!=null?""+_t(i):"",n=n!=null?""+_t(n):i,E||n===e.value||(e.value=n),e.defaultValue=n}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=E?e.checked:!!s,e.defaultChecked=!!s,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Ya(e)}function Va(e,n,i){n==="number"&&Ka(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Zt(e,n,i,s){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&s&&(e[i].defaultSelected=!0)}else{for(i=""+_t(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,s&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function ms(e,n,i){if(n!=null&&(n=""+_t(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+_t(i):""}function Xa(e,n,i,s){if(n==null){if(s!=null){if(i!=null)throw Error(r(92));if(H(s)){if(1<s.length)throw Error(r(93));s=s[0]}i=s}i==null&&(i=""),n=i}i=_t(n),e.defaultValue=i,s=e.textContent,s===i&&s!==""&&s!==null&&(e.value=s),Ya(e)}function Me(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var hs=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 Ft(e,n,i){var s=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,i):typeof i!="number"||i===0||hs.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function ot(e,n,i){if(n!=null&&typeof n!="object")throw Error(r(62));if(e=e.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var f in n)s=n[f],n.hasOwnProperty(f)&&i[f]!==s&&Ft(e,f,s)}else for(var d in n)n.hasOwnProperty(d)&&Ft(e,d,n[d])}function Ui(e){if(e.indexOf("-")===-1)return!1;switch(e){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 hi=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"]]),Kl=/^[\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 Hi(e){return Kl.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ge(){}var Ee=null;function Ie(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xe=null,Mt=null;function jn(e){var n=di(e);if(n&&(e=n.stateNode)){var i=e[nn]||null;e:switch(e=n.stateNode,n.type){case"input":if(Yl(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+gn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var s=i[n];if(s!==e&&s.form===e.form){var f=s[nn]||null;if(!f)throw Error(r(90));Yl(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)s=i[n],s.form===e.form&&Pl(s)}break e;case"textarea":ms(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Zt(e,!!i.multiple,n,!1)}}}var Vl=!1;function ps(e,n,i){if(Vl)return e(n,i);Vl=!0;try{var s=e(n);return s}finally{if(Vl=!1,(Xe!==null||Mt!==null)&&(no(),Xe&&(n=Xe,e=Mt,Mt=Xe=null,jn(n),e)))for(n=0;n<e.length;n++)jn(e[n])}}function Xl(e,n){var i=e.stateNode;if(i===null)return null;var s=i[nn]||null;if(s===null)return null;i=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(r(231,n,typeof i));return i}var pi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ec=!1;if(pi)try{var Zl={};Object.defineProperty(Zl,"passive",{get:function(){ec=!0}}),window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{ec=!1}var Fi=null,tc=null,gs=null;function zd(){if(gs)return gs;var e,n=tc,i=n.length,s,f="value"in Fi?Fi.value:Fi.textContent,d=f.length;for(e=0;e<i&&n[e]===f[e];e++);var y=i-e;for(s=1;s<=y&&n[i-s]===f[d-s];s++);return gs=f.slice(e,1<s?1-s:void 0)}function bs(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function xs(){return!0}function Rd(){return!1}function bn(e){function n(i,s,f,d,y){this._reactName=i,this._targetInst=f,this.type=s,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(i=e[E],this[E]=i?i(d):d[E]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?xs:Rd,this.isPropagationStopped=Rd,this}return x(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=xs)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=xs)},persist:function(){},isPersistent:xs}),n}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ys=bn(ba),Ql=x({},ba,{view:0,detail:0}),Dx=bn(Ql),nc,ic,Jl,_s=x({},Ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jl&&(Jl&&e.type==="mousemove"?(nc=e.screenX-Jl.screenX,ic=e.screenY-Jl.screenY):ic=nc=0,Jl=e),nc)},movementY:function(e){return"movementY"in e?e.movementY:ic}}),Dd=bn(_s),Lx=x({},_s,{dataTransfer:0}),jx=bn(Lx),Bx=x({},Ql,{relatedTarget:0}),ac=bn(Bx),Ix=x({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),Ux=bn(Ix),Hx=x({},ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fx=bn(Hx),$x=x({},ba,{data:0}),Ld=bn($x),qx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gx={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"},Px={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yx(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Px[e])?!!n[e]:!1}function lc(){return Yx}var Kx=x({},Ql,{key:function(e){if(e.key){var n=qx[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=bs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Gx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lc,charCode:function(e){return e.type==="keypress"?bs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vx=bn(Kx),Xx=x({},_s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=bn(Xx),Zx=x({},Ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lc}),Qx=bn(Zx),Jx=x({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wx=bn(Jx),ey=x({},_s,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ty=bn(ey),ny=x({},ba,{newState:0,oldState:0}),iy=bn(ny),ay=[9,13,27,32],rc=pi&&"CompositionEvent"in window,Wl=null;pi&&"documentMode"in document&&(Wl=document.documentMode);var ly=pi&&"TextEvent"in window&&!Wl,Bd=pi&&(!rc||Wl&&8<Wl&&11>=Wl),Id=" ",Ud=!1;function Hd(e,n){switch(e){case"keyup":return ay.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Za=!1;function ry(e,n){switch(e){case"compositionend":return Fd(n);case"keypress":return n.which!==32?null:(Ud=!0,Id);case"textInput":return e=n.data,e===Id&&Ud?null:e;default:return null}}function sy(e,n){if(Za)return e==="compositionend"||!rc&&Hd(e,n)?(e=zd(),gs=tc=Fi=null,Za=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Bd&&n.locale!=="ko"?null:n.data;default:return null}}var oy={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 $d(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!oy[e.type]:n==="textarea"}function qd(e,n,i,s){Xe?Mt?Mt.push(s):Mt=[s]:Xe=s,n=co(n,"onChange"),0<n.length&&(i=new ys("onChange","change",null,i,s),e.push({event:i,listeners:n}))}var er=null,tr=null;function cy(e){wp(e,0)}function vs(e){var n=Bi(e);if(Pl(n))return e}function Gd(e,n){if(e==="change")return n}var Pd=!1;if(pi){var sc;if(pi){var oc="oninput"in document;if(!oc){var Yd=document.createElement("div");Yd.setAttribute("oninput","return;"),oc=typeof Yd.oninput=="function"}sc=oc}else sc=!1;Pd=sc&&(!document.documentMode||9<document.documentMode)}function Kd(){er&&(er.detachEvent("onpropertychange",Vd),tr=er=null)}function Vd(e){if(e.propertyName==="value"&&vs(tr)){var n=[];qd(n,tr,e,Ie(e)),ps(cy,n)}}function uy(e,n,i){e==="focusin"?(Kd(),er=n,tr=i,er.attachEvent("onpropertychange",Vd)):e==="focusout"&&Kd()}function fy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vs(tr)}function dy(e,n){if(e==="click")return vs(n)}function my(e,n){if(e==="input"||e==="change")return vs(n)}function hy(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Tn=typeof Object.is=="function"?Object.is:hy;function nr(e,n){if(Tn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var f=i[s];if(!Ue.call(n,f)||!Tn(e[f],n[f]))return!1}return!0}function Xd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zd(e,n){var i=Xd(e);e=0;for(var s;i;){if(i.nodeType===3){if(s=e+i.textContent.length,e<=n&&s>=n)return{node:i,offset:n-e};e=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Xd(i)}}function Qd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Qd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Jd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ka(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Ka(e.document)}return n}function cc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var py=pi&&"documentMode"in document&&11>=document.documentMode,Qa=null,uc=null,ir=null,fc=!1;function Wd(e,n,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;fc||Qa==null||Qa!==Ka(s)||(s=Qa,"selectionStart"in s&&cc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ir&&nr(ir,s)||(ir=s,s=co(uc,"onSelect"),0<s.length&&(n=new ys("onSelect","select",null,n,i),e.push({event:n,listeners:s}),n.target=Qa)))}function xa(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var Ja={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionrun:xa("Transition","TransitionRun"),transitionstart:xa("Transition","TransitionStart"),transitioncancel:xa("Transition","TransitionCancel"),transitionend:xa("Transition","TransitionEnd")},dc={},em={};pi&&(em=document.createElement("div").style,"AnimationEvent"in window||(delete Ja.animationend.animation,delete Ja.animationiteration.animation,delete Ja.animationstart.animation),"TransitionEvent"in window||delete Ja.transitionend.transition);function ya(e){if(dc[e])return dc[e];if(!Ja[e])return e;var n=Ja[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in em)return dc[e]=n[i];return e}var tm=ya("animationend"),nm=ya("animationiteration"),im=ya("animationstart"),gy=ya("transitionrun"),by=ya("transitionstart"),xy=ya("transitioncancel"),am=ya("transitionend"),lm=new Map,mc="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(" ");mc.push("scrollEnd");function Kn(e,n){lm.set(e,n),mi(n,[e])}var Es=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Bn=[],Wa=0,hc=0;function Ss(){for(var e=Wa,n=hc=Wa=0;n<e;){var i=Bn[n];Bn[n++]=null;var s=Bn[n];Bn[n++]=null;var f=Bn[n];Bn[n++]=null;var d=Bn[n];if(Bn[n++]=null,s!==null&&f!==null){var y=s.pending;y===null?f.next=f:(f.next=y.next,y.next=f),s.pending=f}d!==0&&rm(i,f,d)}}function Ns(e,n,i,s){Bn[Wa++]=e,Bn[Wa++]=n,Bn[Wa++]=i,Bn[Wa++]=s,hc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function pc(e,n,i,s){return Ns(e,n,i,s),ws(e)}function _a(e,n){return Ns(e,null,null,n),ws(e)}function rm(e,n,i){e.lanes|=i;var s=e.alternate;s!==null&&(s.lanes|=i);for(var f=!1,d=e.return;d!==null;)d.childLanes|=i,s=d.alternate,s!==null&&(s.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(f=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,f&&n!==null&&(f=31-rt(i),e=d.hiddenUpdates,s=e[f],s===null?e[f]=[n]:s.push(n),n.lane=i|536870912),d):null}function ws(e){if(50<wr)throw wr=0,Nu=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var el={};function yy(e,n,i,s){this.tag=e,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=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function An(e,n,i,s){return new yy(e,n,i,s)}function gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gi(e,n){var i=e.alternate;return i===null?(i=An(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function sm(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function ks(e,n,i,s,f,d){var y=0;if(s=e,typeof e=="function")gc(e)&&(y=1);else if(typeof e=="string")y=N1(e,i,ce.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=An(31,i,n,f),e.elementType=de,e.lanes=d,e;case T:return va(i.children,f,d,n);case A:y=8,f|=24;break;case w:return e=An(12,i,n,f|2),e.elementType=w,e.lanes=d,e;case K:return e=An(13,i,n,f),e.elementType=K,e.lanes=d,e;case D:return e=An(19,i,n,f),e.elementType=D,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:y=10;break e;case C:y=9;break e;case q:y=11;break e;case Z:y=14;break e;case oe:y=16,s=null;break e}y=29,i=Error(r(130,e===null?"null":typeof e,"")),s=null}return n=An(y,i,n,f),n.elementType=e,n.type=s,n.lanes=d,n}function va(e,n,i,s){return e=An(7,e,s,n),e.lanes=i,e}function bc(e,n,i){return e=An(6,e,null,n),e.lanes=i,e}function om(e){var n=An(18,null,null,0);return n.stateNode=e,n}function xc(e,n,i){return n=An(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var cm=new WeakMap;function In(e,n){if(typeof e=="object"&&e!==null){var i=cm.get(e);return i!==void 0?i:(n={value:e,source:n,stack:be(n)},cm.set(e,n),n)}return{value:e,source:n,stack:be(n)}}var tl=[],nl=0,Ts=null,ar=0,Un=[],Hn=0,$i=null,ni=1,ii="";function bi(e,n){tl[nl++]=ar,tl[nl++]=Ts,Ts=e,ar=n}function um(e,n,i){Un[Hn++]=ni,Un[Hn++]=ii,Un[Hn++]=$i,$i=e;var s=ni;e=ii;var f=32-rt(s)-1;s&=~(1<<f),i+=1;var d=32-rt(n)+f;if(30<d){var y=f-f%5;d=(s&(1<<y)-1).toString(32),s>>=y,f-=y,ni=1<<32-rt(n)+f|i<<f|s,ii=d+e}else ni=1<<d|i<<f|s,ii=e}function yc(e){e.return!==null&&(bi(e,1),um(e,1,0))}function _c(e){for(;e===Ts;)Ts=tl[--nl],tl[nl]=null,ar=tl[--nl],tl[nl]=null;for(;e===$i;)$i=Un[--Hn],Un[Hn]=null,ii=Un[--Hn],Un[Hn]=null,ni=Un[--Hn],Un[Hn]=null}function fm(e,n){Un[Hn++]=ni,Un[Hn++]=ii,Un[Hn++]=$i,ni=n.id,ii=n.overflow,$i=e}var Qt=null,St=null,Je=!1,qi=null,Fn=!1,vc=Error(r(519));function Gi(e){var n=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw lr(In(n,e)),vc}function dm(e){var n=e.stateNode,i=e.type,s=e.memoizedProps;switch(n[Dt]=e,n[nn]=s,i){case"dialog":Ke("cancel",n),Ke("close",n);break;case"iframe":case"object":case"embed":Ke("load",n);break;case"video":case"audio":for(i=0;i<Tr.length;i++)Ke(Tr[i],n);break;case"source":Ke("error",n);break;case"img":case"image":case"link":Ke("error",n),Ke("load",n);break;case"details":Ke("toggle",n);break;case"input":Ke("invalid",n),ga(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ke("invalid",n);break;case"textarea":Ke("invalid",n),Xa(n,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||s.suppressHydrationWarning===!0||Mp(n.textContent,i)?(s.popover!=null&&(Ke("beforetoggle",n),Ke("toggle",n)),s.onScroll!=null&&Ke("scroll",n),s.onScrollEnd!=null&&Ke("scrollend",n),s.onClick!=null&&(n.onclick=ge),n=!0):n=!1,n||Gi(e,!0)}function mm(e){for(Qt=e.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:Fn=!1;return;case 27:case 3:Fn=!0;return;default:Qt=Qt.return}}function il(e){if(e!==Qt)return!1;if(!Je)return mm(e),Je=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Uu(e.type,e.memoizedProps)),i=!i),i&&St&&Gi(e),mm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));St=Ip(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));St=Ip(e)}else n===27?(n=St,aa(e.type)?(e=Gu,Gu=null,St=e):St=n):St=Qt?qn(e.stateNode.nextSibling):null;return!0}function Ea(){St=Qt=null,Je=!1}function Ec(){var e=qi;return e!==null&&(vn===null?vn=e:vn.push.apply(vn,e),qi=null),e}function lr(e){qi===null?qi=[e]:qi.push(e)}var Sc=M(null),Sa=null,xi=null;function Pi(e,n,i){N(Sc,n._currentValue),n._currentValue=i}function yi(e){e._currentValue=Sc.current,B(Sc)}function Nc(e,n,i){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===i)break;e=e.return}}function wc(e,n,i,s){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var d=f.dependencies;if(d!==null){var y=f.child;d=d.firstContext;e:for(;d!==null;){var E=d;d=f;for(var O=0;O<n.length;O++)if(E.context===n[O]){d.lanes|=i,E=d.alternate,E!==null&&(E.lanes|=i),Nc(d.return,i,e),s||(y=null);break e}d=E.next}}else if(f.tag===18){if(y=f.return,y===null)throw Error(r(341));y.lanes|=i,d=y.alternate,d!==null&&(d.lanes|=i),Nc(y,i,e),y=null}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===e){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}}function al(e,n,i,s){e=null;for(var f=n,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var y=f.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var E=f.type;Tn(f.pendingProps.value,y.value)||(e!==null?e.push(E):e=[E])}}else if(f===ze.current){if(y=f.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(zr):e=[zr])}f=f.return}e!==null&&wc(n,e,i,s),n.flags|=262144}function As(e){for(e=e.firstContext;e!==null;){if(!Tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Na(e){Sa=e,xi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Jt(e){return hm(Sa,e)}function Ms(e,n){return Sa===null&&Na(e),hm(e,n)}function hm(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},xi===null){if(e===null)throw Error(r(308));xi=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else xi=xi.next=n;return i}var _y=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},vy=t.unstable_scheduleCallback,Ey=t.unstable_NormalPriority,$t={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kc(){return{controller:new _y,data:new Map,refCount:0}}function rr(e){e.refCount--,e.refCount===0&&vy(Ey,function(){e.controller.abort()})}var sr=null,Tc=0,ll=0,rl=null;function Sy(e,n){if(sr===null){var i=sr=[];Tc=0,ll=Cu(),rl={status:"pending",value:void 0,then:function(s){i.push(s)}}}return Tc++,n.then(pm,pm),n}function pm(){if(--Tc===0&&sr!==null){rl!==null&&(rl.status="fulfilled");var e=sr;sr=null,ll=0,rl=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Ny(e,n){var i=[],s={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(s.status="rejected",s.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),s}var gm=L.S;L.S=function(e,n){Wh=At(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Sy(e,n),gm!==null&&gm(e,n)};var wa=M(null);function Ac(){var e=wa.current;return e!==null?e:bt.pooledCache}function Cs(e,n){n===null?N(wa,wa.current):N(wa,n.pool)}function bm(){var e=Ac();return e===null?null:{parent:$t._currentValue,pool:e}}var sl=Error(r(460)),Mc=Error(r(474)),Os=Error(r(542)),zs={then:function(){}};function xm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ym(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(ge,ge),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,vm(e),e;default:if(typeof n.status=="string")n.then(ge,ge);else{if(e=bt,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=s}},function(s){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,vm(e),e}throw Ta=n,sl}}function ka(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Ta=i,sl):i}}var Ta=null;function _m(){if(Ta===null)throw Error(r(459));var e=Ta;return Ta=null,e}function vm(e){if(e===sl||e===Os)throw Error(r(483))}var ol=null,or=0;function Rs(e){var n=or;return or+=1,ol===null&&(ol=[]),ym(ol,e,n)}function cr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Ds(e,n){throw n.$$typeof===_?Error(r(525)):(e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Em(e){function n(I,j){if(e){var $=I.deletions;$===null?(I.deletions=[j],I.flags|=16):$.push(j)}}function i(I,j){if(!e)return null;for(;j!==null;)n(I,j),j=j.sibling;return null}function s(I){for(var j=new Map;I!==null;)I.key!==null?j.set(I.key,I):j.set(I.index,I),I=I.sibling;return j}function f(I,j){return I=gi(I,j),I.index=0,I.sibling=null,I}function d(I,j,$){return I.index=$,e?($=I.alternate,$!==null?($=$.index,$<j?(I.flags|=67108866,j):$):(I.flags|=67108866,j)):(I.flags|=1048576,j)}function y(I){return e&&I.alternate===null&&(I.flags|=67108866),I}function E(I,j,$,ee){return j===null||j.tag!==6?(j=bc($,I.mode,ee),j.return=I,j):(j=f(j,$),j.return=I,j)}function O(I,j,$,ee){var we=$.type;return we===T?J(I,j,$.props.children,ee,$.key):j!==null&&(j.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===oe&&ka(we)===j.type)?(j=f(j,$.props),cr(j,$),j.return=I,j):(j=ks($.type,$.key,$.props,null,I.mode,ee),cr(j,$),j.return=I,j)}function G(I,j,$,ee){return j===null||j.tag!==4||j.stateNode.containerInfo!==$.containerInfo||j.stateNode.implementation!==$.implementation?(j=xc($,I.mode,ee),j.return=I,j):(j=f(j,$.children||[]),j.return=I,j)}function J(I,j,$,ee,we){return j===null||j.tag!==7?(j=va($,I.mode,ee,we),j.return=I,j):(j=f(j,$),j.return=I,j)}function te(I,j,$){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=bc(""+j,I.mode,$),j.return=I,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case v:return $=ks(j.type,j.key,j.props,null,I.mode,$),cr($,j),$.return=I,$;case S:return j=xc(j,I.mode,$),j.return=I,j;case oe:return j=ka(j),te(I,j,$)}if(H(j)||ae(j))return j=va(j,I.mode,$,null),j.return=I,j;if(typeof j.then=="function")return te(I,Rs(j),$);if(j.$$typeof===z)return te(I,Ms(I,j),$);Ds(I,j)}return null}function P(I,j,$,ee){var we=j!==null?j.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return we!==null?null:E(I,j,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case v:return $.key===we?O(I,j,$,ee):null;case S:return $.key===we?G(I,j,$,ee):null;case oe:return $=ka($),P(I,j,$,ee)}if(H($)||ae($))return we!==null?null:J(I,j,$,ee,null);if(typeof $.then=="function")return P(I,j,Rs($),ee);if($.$$typeof===z)return P(I,j,Ms(I,$),ee);Ds(I,$)}return null}function V(I,j,$,ee,we){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return I=I.get($)||null,E(j,I,""+ee,we);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case v:return I=I.get(ee.key===null?$:ee.key)||null,O(j,I,ee,we);case S:return I=I.get(ee.key===null?$:ee.key)||null,G(j,I,ee,we);case oe:return ee=ka(ee),V(I,j,$,ee,we)}if(H(ee)||ae(ee))return I=I.get($)||null,J(j,I,ee,we,null);if(typeof ee.then=="function")return V(I,j,$,Rs(ee),we);if(ee.$$typeof===z)return V(I,j,$,Ms(j,ee),we);Ds(j,ee)}return null}function _e(I,j,$,ee){for(var we=null,nt=null,Se=j,Fe=j=0,Qe=null;Se!==null&&Fe<$.length;Fe++){Se.index>Fe?(Qe=Se,Se=null):Qe=Se.sibling;var it=P(I,Se,$[Fe],ee);if(it===null){Se===null&&(Se=Qe);break}e&&Se&&it.alternate===null&&n(I,Se),j=d(it,j,Fe),nt===null?we=it:nt.sibling=it,nt=it,Se=Qe}if(Fe===$.length)return i(I,Se),Je&&bi(I,Fe),we;if(Se===null){for(;Fe<$.length;Fe++)Se=te(I,$[Fe],ee),Se!==null&&(j=d(Se,j,Fe),nt===null?we=Se:nt.sibling=Se,nt=Se);return Je&&bi(I,Fe),we}for(Se=s(Se);Fe<$.length;Fe++)Qe=V(Se,I,Fe,$[Fe],ee),Qe!==null&&(e&&Qe.alternate!==null&&Se.delete(Qe.key===null?Fe:Qe.key),j=d(Qe,j,Fe),nt===null?we=Qe:nt.sibling=Qe,nt=Qe);return e&&Se.forEach(function(ca){return n(I,ca)}),Je&&bi(I,Fe),we}function Ae(I,j,$,ee){if($==null)throw Error(r(151));for(var we=null,nt=null,Se=j,Fe=j=0,Qe=null,it=$.next();Se!==null&&!it.done;Fe++,it=$.next()){Se.index>Fe?(Qe=Se,Se=null):Qe=Se.sibling;var ca=P(I,Se,it.value,ee);if(ca===null){Se===null&&(Se=Qe);break}e&&Se&&ca.alternate===null&&n(I,Se),j=d(ca,j,Fe),nt===null?we=ca:nt.sibling=ca,nt=ca,Se=Qe}if(it.done)return i(I,Se),Je&&bi(I,Fe),we;if(Se===null){for(;!it.done;Fe++,it=$.next())it=te(I,it.value,ee),it!==null&&(j=d(it,j,Fe),nt===null?we=it:nt.sibling=it,nt=it);return Je&&bi(I,Fe),we}for(Se=s(Se);!it.done;Fe++,it=$.next())it=V(Se,I,Fe,it.value,ee),it!==null&&(e&&it.alternate!==null&&Se.delete(it.key===null?Fe:it.key),j=d(it,j,Fe),nt===null?we=it:nt.sibling=it,nt=it);return e&&Se.forEach(function(L1){return n(I,L1)}),Je&&bi(I,Fe),we}function ht(I,j,$,ee){if(typeof $=="object"&&$!==null&&$.type===T&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case v:e:{for(var we=$.key;j!==null;){if(j.key===we){if(we=$.type,we===T){if(j.tag===7){i(I,j.sibling),ee=f(j,$.props.children),ee.return=I,I=ee;break e}}else if(j.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===oe&&ka(we)===j.type){i(I,j.sibling),ee=f(j,$.props),cr(ee,$),ee.return=I,I=ee;break e}i(I,j);break}else n(I,j);j=j.sibling}$.type===T?(ee=va($.props.children,I.mode,ee,$.key),ee.return=I,I=ee):(ee=ks($.type,$.key,$.props,null,I.mode,ee),cr(ee,$),ee.return=I,I=ee)}return y(I);case S:e:{for(we=$.key;j!==null;){if(j.key===we)if(j.tag===4&&j.stateNode.containerInfo===$.containerInfo&&j.stateNode.implementation===$.implementation){i(I,j.sibling),ee=f(j,$.children||[]),ee.return=I,I=ee;break e}else{i(I,j);break}else n(I,j);j=j.sibling}ee=xc($,I.mode,ee),ee.return=I,I=ee}return y(I);case oe:return $=ka($),ht(I,j,$,ee)}if(H($))return _e(I,j,$,ee);if(ae($)){if(we=ae($),typeof we!="function")throw Error(r(150));return $=we.call($),Ae(I,j,$,ee)}if(typeof $.then=="function")return ht(I,j,Rs($),ee);if($.$$typeof===z)return ht(I,j,Ms(I,$),ee);Ds(I,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,j!==null&&j.tag===6?(i(I,j.sibling),ee=f(j,$),ee.return=I,I=ee):(i(I,j),ee=bc($,I.mode,ee),ee.return=I,I=ee),y(I)):i(I,j)}return function(I,j,$,ee){try{or=0;var we=ht(I,j,$,ee);return ol=null,we}catch(Se){if(Se===sl||Se===Os)throw Se;var nt=An(29,Se,null,I.mode);return nt.lanes=ee,nt.return=I,nt}finally{}}}var Aa=Em(!0),Sm=Em(!1),Yi=!1;function Cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Oc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ki(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vi(e,n,i){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(at&2)!==0){var f=s.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),s.pending=n,n=ws(e),rm(e,null,i),n}return Ns(e,s,n,i),ws(e)}function ur(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,i|=s,n.lanes=i,Oe(e,i)}}function zc(e,n){var i=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var f=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var y={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?f=d=y:d=d.next=y,i=i.next}while(i!==null);d===null?f=d=n:d=d.next=n}else f=d=n;i={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Rc=!1;function fr(){if(Rc){var e=rl;if(e!==null)throw e}}function dr(e,n,i,s){Rc=!1;var f=e.updateQueue;Yi=!1;var d=f.firstBaseUpdate,y=f.lastBaseUpdate,E=f.shared.pending;if(E!==null){f.shared.pending=null;var O=E,G=O.next;O.next=null,y===null?d=G:y.next=G,y=O;var J=e.alternate;J!==null&&(J=J.updateQueue,E=J.lastBaseUpdate,E!==y&&(E===null?J.firstBaseUpdate=G:E.next=G,J.lastBaseUpdate=O))}if(d!==null){var te=f.baseState;y=0,J=G=O=null,E=d;do{var P=E.lane&-536870913,V=P!==E.lane;if(V?(Ze&P)===P:(s&P)===P){P!==0&&P===ll&&(Rc=!0),J!==null&&(J=J.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var _e=e,Ae=E;P=n;var ht=i;switch(Ae.tag){case 1:if(_e=Ae.payload,typeof _e=="function"){te=_e.call(ht,te,P);break e}te=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Ae.payload,P=typeof _e=="function"?_e.call(ht,te,P):_e,P==null)break e;te=x({},te,P);break e;case 2:Yi=!0}}P=E.callback,P!==null&&(e.flags|=64,V&&(e.flags|=8192),V=f.callbacks,V===null?f.callbacks=[P]:V.push(P))}else V={lane:P,tag:E.tag,payload:E.payload,callback:E.callback,next:null},J===null?(G=J=V,O=te):J=J.next=V,y|=P;if(E=E.next,E===null){if(E=f.shared.pending,E===null)break;V=E,E=V.next,V.next=null,f.lastBaseUpdate=V,f.shared.pending=null}}while(!0);J===null&&(O=te),f.baseState=O,f.firstBaseUpdate=G,f.lastBaseUpdate=J,d===null&&(f.shared.lanes=0),Wi|=y,e.lanes=y,e.memoizedState=te}}function Nm(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function wm(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Nm(i[e],n)}var cl=M(null),Ls=M(0);function km(e,n){e=Ai,N(Ls,e),N(cl,n),Ai=e|n.baseLanes}function Dc(){N(Ls,Ai),N(cl,cl.current)}function Lc(){Ai=Ls.current,B(cl),B(Ls)}var Mn=M(null),$n=null;function Xi(e){var n=e.alternate;N(jt,jt.current&1),N(Mn,e),$n===null&&(n===null||cl.current!==null||n.memoizedState!==null)&&($n=e)}function jc(e){N(jt,jt.current),N(Mn,e),$n===null&&($n=e)}function Tm(e){e.tag===22?(N(jt,jt.current),N(Mn,e),$n===null&&($n=e)):Zi()}function Zi(){N(jt,jt.current),N(Mn,Mn.current)}function Cn(e){B(Mn),$n===e&&($n=null),B(jt)}var jt=M(0);function js(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||$u(i)||qu(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var _i=0,He=null,dt=null,qt=null,Bs=!1,ul=!1,Ma=!1,Is=0,mr=0,fl=null,wy=0;function Ot(){throw Error(r(321))}function Bc(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Tn(e[i],n[i]))return!1;return!0}function Ic(e,n,i,s,f,d){return _i=d,He=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,L.H=e===null||e.memoizedState===null?uh:Wc,Ma=!1,d=i(s,f),Ma=!1,ul&&(d=Mm(n,i,s,f)),Am(e),d}function Am(e){L.H=gr;var n=dt!==null&&dt.next!==null;if(_i=0,qt=dt=He=null,Bs=!1,mr=0,fl=null,n)throw Error(r(300));e===null||Gt||(e=e.dependencies,e!==null&&As(e)&&(Gt=!0))}function Mm(e,n,i,s){He=e;var f=0;do{if(ul&&(fl=null),mr=0,ul=!1,25<=f)throw Error(r(301));if(f+=1,qt=dt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}L.H=fh,d=n(i,s)}while(ul);return d}function ky(){var e=L.H,n=e.useState()[0];return n=typeof n.then=="function"?hr(n):n,e=e.useState()[0],(dt!==null?dt.memoizedState:null)!==e&&(He.flags|=1024),n}function Uc(){var e=Is!==0;return Is=0,e}function Hc(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function Fc(e){if(Bs){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Bs=!1}_i=0,qt=dt=He=null,ul=!1,mr=Is=0,fl=null}function fn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qt===null?He.memoizedState=qt=e:qt=qt.next=e,qt}function Bt(){if(dt===null){var e=He.alternate;e=e!==null?e.memoizedState:null}else e=dt.next;var n=qt===null?He.memoizedState:qt.next;if(n!==null)qt=n,dt=e;else{if(e===null)throw He.alternate===null?Error(r(467)):Error(r(310));dt=e,e={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},qt===null?He.memoizedState=qt=e:qt=qt.next=e}return qt}function Us(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hr(e){var n=mr;return mr+=1,fl===null&&(fl=[]),e=ym(fl,e,n),n=He,(qt===null?n.memoizedState:qt.next)===null&&(n=n.alternate,L.H=n===null||n.memoizedState===null?uh:Wc),e}function Hs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return hr(e);if(e.$$typeof===z)return Jt(e)}throw Error(r(438,String(e)))}function $c(e){var n=null,i=He.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var s=He.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Us(),He.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),s=0;s<e;s++)i[s]=U;return n.index++,i}function vi(e,n){return typeof n=="function"?n(e):n}function Fs(e){var n=Bt();return qc(n,dt,e)}function qc(e,n,i){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=i;var f=e.baseQueue,d=s.pending;if(d!==null){if(f!==null){var y=f.next;f.next=d.next,d.next=y}n.baseQueue=f=d,s.pending=null}if(d=e.baseState,f===null)e.memoizedState=d;else{n=f.next;var E=y=null,O=null,G=n,J=!1;do{var te=G.lane&-536870913;if(te!==G.lane?(Ze&te)===te:(_i&te)===te){var P=G.revertLane;if(P===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),te===ll&&(J=!0);else if((_i&P)===P){G=G.next,P===ll&&(J=!0);continue}else te={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},O===null?(E=O=te,y=d):O=O.next=te,He.lanes|=P,Wi|=P;te=G.action,Ma&&i(d,te),d=G.hasEagerState?G.eagerState:i(d,te)}else P={lane:te,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},O===null?(E=O=P,y=d):O=O.next=P,He.lanes|=te,Wi|=te;G=G.next}while(G!==null&&G!==n);if(O===null?y=d:O.next=E,!Tn(d,e.memoizedState)&&(Gt=!0,J&&(i=rl,i!==null)))throw i;e.memoizedState=d,e.baseState=y,e.baseQueue=O,s.lastRenderedState=d}return f===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Gc(e){var n=Bt(),i=n.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=e;var s=i.dispatch,f=i.pending,d=n.memoizedState;if(f!==null){i.pending=null;var y=f=f.next;do d=e(d,y.action),y=y.next;while(y!==f);Tn(d,n.memoizedState)||(Gt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),i.lastRenderedState=d}return[d,s]}function Cm(e,n,i){var s=He,f=Bt(),d=Je;if(d){if(i===void 0)throw Error(r(407));i=i()}else i=n();var y=!Tn((dt||f).memoizedState,i);if(y&&(f.memoizedState=i,Gt=!0),f=f.queue,Kc(Rm.bind(null,s,f,e),[e]),f.getSnapshot!==n||y||qt!==null&&qt.memoizedState.tag&1){if(s.flags|=2048,dl(9,{destroy:void 0},zm.bind(null,s,f,i,n),null),bt===null)throw Error(r(349));d||(_i&127)!==0||Om(s,n,i)}return i}function Om(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=He.updateQueue,n===null?(n=Us(),He.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function zm(e,n,i,s){n.value=i,n.getSnapshot=s,Dm(n)&&Lm(e)}function Rm(e,n,i){return i(function(){Dm(n)&&Lm(e)})}function Dm(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Tn(e,i)}catch{return!0}}function Lm(e){var n=_a(e,2);n!==null&&En(n,e,2)}function Pc(e){var n=fn();if(typeof e=="function"){var i=e;if(e=i(),Ma){tn(!0);try{i()}finally{tn(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:e},n}function jm(e,n,i,s){return e.baseState=i,qc(e,dt,typeof s=="function"?s:vi)}function Ty(e,n,i,s,f){if(Gs(e))throw Error(r(485));if(e=n.action,e!==null){var d={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};L.T!==null?i(!0):d.isTransition=!1,s(d),i=n.pending,i===null?(d.next=n.pending=d,Bm(n,d)):(d.next=i.next,n.pending=i.next=d)}}function Bm(e,n){var i=n.action,s=n.payload,f=e.state;if(n.isTransition){var d=L.T,y={};L.T=y;try{var E=i(f,s),O=L.S;O!==null&&O(y,E),Im(e,n,E)}catch(G){Yc(e,n,G)}finally{d!==null&&y.types!==null&&(d.types=y.types),L.T=d}}else try{d=i(f,s),Im(e,n,d)}catch(G){Yc(e,n,G)}}function Im(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){Um(e,n,s)},function(s){return Yc(e,n,s)}):Um(e,n,i)}function Um(e,n,i){n.status="fulfilled",n.value=i,Hm(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Bm(e,i)))}function Yc(e,n,i){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=i,Hm(n),n=n.next;while(n!==s)}e.action=null}function Hm(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Fm(e,n){return n}function $m(e,n){if(Je){var i=bt.formState;if(i!==null){e:{var s=He;if(Je){if(St){t:{for(var f=St,d=Fn;f.nodeType!==8;){if(!d){f=null;break t}if(f=qn(f.nextSibling),f===null){f=null;break t}}d=f.data,f=d==="F!"||d==="F"?f:null}if(f){St=qn(f.nextSibling),s=f.data==="F!";break e}}Gi(s)}s=!1}s&&(n=i[0])}}return i=fn(),i.memoizedState=i.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fm,lastRenderedState:n},i.queue=s,i=sh.bind(null,He,s),s.dispatch=i,s=Pc(!1),d=Jc.bind(null,He,!1,s.queue),s=fn(),f={state:n,dispatch:null,action:e,pending:null},s.queue=f,i=Ty.bind(null,He,f,d,i),f.dispatch=i,s.memoizedState=e,[n,i,!1]}function qm(e){var n=Bt();return Gm(n,dt,e)}function Gm(e,n,i){if(n=qc(e,n,Fm)[0],e=Fs(vi)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=hr(n)}catch(y){throw y===sl?Os:y}else s=n;n=Bt();var f=n.queue,d=f.dispatch;return i!==n.memoizedState&&(He.flags|=2048,dl(9,{destroy:void 0},Ay.bind(null,f,i),null)),[s,d,e]}function Ay(e,n){e.action=n}function Pm(e){var n=Bt(),i=dt;if(i!==null)return Gm(n,i,e);Bt(),n=n.memoizedState,i=Bt();var s=i.queue.dispatch;return i.memoizedState=e,[n,s,!1]}function dl(e,n,i,s){return e={tag:e,create:i,deps:s,inst:n,next:null},n=He.updateQueue,n===null&&(n=Us(),He.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(s=i.next,i.next=e,e.next=s,n.lastEffect=e),e}function Ym(){return Bt().memoizedState}function $s(e,n,i,s){var f=fn();He.flags|=e,f.memoizedState=dl(1|n,{destroy:void 0},i,s===void 0?null:s)}function qs(e,n,i,s){var f=Bt();s=s===void 0?null:s;var d=f.memoizedState.inst;dt!==null&&s!==null&&Bc(s,dt.memoizedState.deps)?f.memoizedState=dl(n,d,i,s):(He.flags|=e,f.memoizedState=dl(1|n,d,i,s))}function Km(e,n){$s(8390656,8,e,n)}function Kc(e,n){qs(2048,8,e,n)}function My(e){He.flags|=4;var n=He.updateQueue;if(n===null)n=Us(),He.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Vm(e){var n=Bt().memoizedState;return My({ref:n,nextImpl:e}),function(){if((at&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function Xm(e,n){return qs(4,2,e,n)}function Zm(e,n){return qs(4,4,e,n)}function Qm(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Jm(e,n,i){i=i!=null?i.concat([e]):null,qs(4,4,Qm.bind(null,n,e),i)}function Vc(){}function Wm(e,n){var i=Bt();n=n===void 0?null:n;var s=i.memoizedState;return n!==null&&Bc(n,s[1])?s[0]:(i.memoizedState=[e,n],e)}function eh(e,n){var i=Bt();n=n===void 0?null:n;var s=i.memoizedState;if(n!==null&&Bc(n,s[1]))return s[0];if(s=e(),Ma){tn(!0);try{e()}finally{tn(!1)}}return i.memoizedState=[s,n],s}function Xc(e,n,i){return i===void 0||(_i&1073741824)!==0&&(Ze&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=tp(),He.lanes|=e,Wi|=e,i)}function th(e,n,i,s){return Tn(i,n)?i:cl.current!==null?(e=Xc(e,i,s),Tn(e,n)||(Gt=!0),e):(_i&42)===0||(_i&1073741824)!==0&&(Ze&261930)===0?(Gt=!0,e.memoizedState=i):(e=tp(),He.lanes|=e,Wi|=e,n)}function nh(e,n,i,s,f){var d=X.p;X.p=d!==0&&8>d?d:8;var y=L.T,E={};L.T=E,Jc(e,!1,n,i);try{var O=f(),G=L.S;if(G!==null&&G(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var J=Ny(O,s);pr(e,n,J,Rn(e))}else pr(e,n,s,Rn(e))}catch(te){pr(e,n,{then:function(){},status:"rejected",reason:te},Rn())}finally{X.p=d,y!==null&&E.types!==null&&(y.types=E.types),L.T=y}}function Cy(){}function Zc(e,n,i,s){if(e.tag!==5)throw Error(r(476));var f=ih(e).queue;nh(e,f,n,ne,i===null?Cy:function(){return ah(e),i(s)})}function ih(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:ne},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function ah(e){var n=ih(e);n.next===null&&(n=e.alternate.memoizedState),pr(e,n.next.queue,{},Rn())}function Qc(){return Jt(zr)}function lh(){return Bt().memoizedState}function rh(){return Bt().memoizedState}function Oy(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=Rn();e=Ki(i);var s=Vi(n,e,i);s!==null&&(En(s,n,i),ur(s,n,i)),n={cache:kc()},e.payload=n;return}n=n.return}}function zy(e,n,i){var s=Rn();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Gs(e)?oh(n,i):(i=pc(e,n,i,s),i!==null&&(En(i,e,s),ch(i,n,s)))}function sh(e,n,i){var s=Rn();pr(e,n,i,s)}function pr(e,n,i,s){var f={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Gs(e))oh(n,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var y=n.lastRenderedState,E=d(y,i);if(f.hasEagerState=!0,f.eagerState=E,Tn(E,y))return Ns(e,n,f,0),bt===null&&Ss(),!1}catch{}finally{}if(i=pc(e,n,f,s),i!==null)return En(i,e,s),ch(i,n,s),!0}return!1}function Jc(e,n,i,s){if(s={lane:2,revertLane:Cu(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Gs(e)){if(n)throw Error(r(479))}else n=pc(e,i,s,2),n!==null&&En(n,e,2)}function Gs(e){var n=e.alternate;return e===He||n!==null&&n===He}function oh(e,n){ul=Bs=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function ch(e,n,i){if((i&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,i|=s,n.lanes=i,Oe(e,i)}}var gr={readContext:Jt,use:Hs,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot};gr.useEffectEvent=Ot;var uh={readContext:Jt,use:Hs,useCallback:function(e,n){return fn().memoizedState=[e,n===void 0?null:n],e},useContext:Jt,useEffect:Km,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,$s(4194308,4,Qm.bind(null,n,e),i)},useLayoutEffect:function(e,n){return $s(4194308,4,e,n)},useInsertionEffect:function(e,n){$s(4,2,e,n)},useMemo:function(e,n){var i=fn();n=n===void 0?null:n;var s=e();if(Ma){tn(!0);try{e()}finally{tn(!1)}}return i.memoizedState=[s,n],s},useReducer:function(e,n,i){var s=fn();if(i!==void 0){var f=i(n);if(Ma){tn(!0);try{i(n)}finally{tn(!1)}}}else f=n;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=zy.bind(null,He,e),[s.memoizedState,e]},useRef:function(e){var n=fn();return e={current:e},n.memoizedState=e},useState:function(e){e=Pc(e);var n=e.queue,i=sh.bind(null,He,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:Vc,useDeferredValue:function(e,n){var i=fn();return Xc(i,e,n)},useTransition:function(){var e=Pc(!1);return e=nh.bind(null,He,e.queue,!0,!1),fn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var s=He,f=fn();if(Je){if(i===void 0)throw Error(r(407));i=i()}else{if(i=n(),bt===null)throw Error(r(349));(Ze&127)!==0||Om(s,n,i)}f.memoizedState=i;var d={value:i,getSnapshot:n};return f.queue=d,Km(Rm.bind(null,s,d,e),[e]),s.flags|=2048,dl(9,{destroy:void 0},zm.bind(null,s,d,i,n),null),i},useId:function(){var e=fn(),n=bt.identifierPrefix;if(Je){var i=ii,s=ni;i=(s&~(1<<32-rt(s)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Is++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=wy++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Qc,useFormState:$m,useActionState:$m,useOptimistic:function(e){var n=fn();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Jc.bind(null,He,!0,i),i.dispatch=n,[e,n]},useMemoCache:$c,useCacheRefresh:function(){return fn().memoizedState=Oy.bind(null,He)},useEffectEvent:function(e){var n=fn(),i={impl:e};return n.memoizedState=i,function(){if((at&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}},Wc={readContext:Jt,use:Hs,useCallback:Wm,useContext:Jt,useEffect:Kc,useImperativeHandle:Jm,useInsertionEffect:Xm,useLayoutEffect:Zm,useMemo:eh,useReducer:Fs,useRef:Ym,useState:function(){return Fs(vi)},useDebugValue:Vc,useDeferredValue:function(e,n){var i=Bt();return th(i,dt.memoizedState,e,n)},useTransition:function(){var e=Fs(vi)[0],n=Bt().memoizedState;return[typeof e=="boolean"?e:hr(e),n]},useSyncExternalStore:Cm,useId:lh,useHostTransitionStatus:Qc,useFormState:qm,useActionState:qm,useOptimistic:function(e,n){var i=Bt();return jm(i,dt,e,n)},useMemoCache:$c,useCacheRefresh:rh};Wc.useEffectEvent=Vm;var fh={readContext:Jt,use:Hs,useCallback:Wm,useContext:Jt,useEffect:Kc,useImperativeHandle:Jm,useInsertionEffect:Xm,useLayoutEffect:Zm,useMemo:eh,useReducer:Gc,useRef:Ym,useState:function(){return Gc(vi)},useDebugValue:Vc,useDeferredValue:function(e,n){var i=Bt();return dt===null?Xc(i,e,n):th(i,dt.memoizedState,e,n)},useTransition:function(){var e=Gc(vi)[0],n=Bt().memoizedState;return[typeof e=="boolean"?e:hr(e),n]},useSyncExternalStore:Cm,useId:lh,useHostTransitionStatus:Qc,useFormState:Pm,useActionState:Pm,useOptimistic:function(e,n){var i=Bt();return dt!==null?jm(i,dt,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:$c,useCacheRefresh:rh};fh.useEffectEvent=Vm;function eu(e,n,i,s){n=e.memoizedState,i=i(s,n),i=i==null?n:x({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var tu={enqueueSetState:function(e,n,i){e=e._reactInternals;var s=Rn(),f=Ki(s);f.payload=n,i!=null&&(f.callback=i),n=Vi(e,f,s),n!==null&&(En(n,e,s),ur(n,e,s))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var s=Rn(),f=Ki(s);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=Vi(e,f,s),n!==null&&(En(n,e,s),ur(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=Rn(),s=Ki(i);s.tag=2,n!=null&&(s.callback=n),n=Vi(e,s,i),n!==null&&(En(n,e,i),ur(n,e,i))}};function dh(e,n,i,s,f,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,y):n.prototype&&n.prototype.isPureReactComponent?!nr(i,s)||!nr(f,d):!0}function mh(e,n,i,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,s),n.state!==e&&tu.enqueueReplaceState(n,n.state,null)}function Ca(e,n){var i=n;if("ref"in n){i={};for(var s in n)s!=="ref"&&(i[s]=n[s])}if(e=e.defaultProps){i===n&&(i=x({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function hh(e){Es(e)}function ph(e){console.error(e)}function gh(e){Es(e)}function Ps(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function bh(e,n,i){try{var s=e.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function nu(e,n,i){return i=Ki(i),i.tag=3,i.payload={element:null},i.callback=function(){Ps(e,n)},i}function xh(e){return e=Ki(e),e.tag=3,e}function yh(e,n,i,s){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var d=s.value;e.payload=function(){return f(d)},e.callback=function(){bh(n,i,s)}}var y=i.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){bh(n,i,s),typeof f!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})})}function Ry(e,n,i,s,f){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=i.alternate,n!==null&&al(n,i,f,!0),i=Mn.current,i!==null){switch(i.tag){case 31:case 13:return $n===null?io():i.alternate===null&&zt===0&&(zt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,s===zs?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([s]):n.add(s),Tu(e,s,f)),!1;case 22:return i.flags|=65536,s===zs?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([s]):i.add(s)),Tu(e,s,f)),!1}throw Error(r(435,i.tag))}return Tu(e,s,f),io(),!1}if(Je)return n=Mn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,s!==vc&&(e=Error(r(422),{cause:s}),lr(In(e,i)))):(s!==vc&&(n=Error(r(423),{cause:s}),lr(In(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,s=In(s,i),f=nu(e.stateNode,s,f),zc(e,f),zt!==4&&(zt=2)),!1;var d=Error(r(520),{cause:s});if(d=In(d,i),Nr===null?Nr=[d]:Nr.push(d),zt!==4&&(zt=2),n===null)return!0;s=In(s,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=nu(i.stateNode,s,e),zc(i,e),!1;case 1:if(n=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ea===null||!ea.has(d))))return i.flags|=65536,f&=-f,i.lanes|=f,f=xh(f),yh(f,e,i,s),zc(i,f),!1}i=i.return}while(i!==null);return!1}var iu=Error(r(461)),Gt=!1;function Wt(e,n,i,s){n.child=e===null?Sm(n,null,i,s):Aa(n,e.child,i,s)}function _h(e,n,i,s,f){i=i.render;var d=n.ref;if("ref"in s){var y={};for(var E in s)E!=="ref"&&(y[E]=s[E])}else y=s;return Na(n),s=Ic(e,n,i,y,d,f),E=Uc(),e!==null&&!Gt?(Hc(e,n,f),Ei(e,n,f)):(Je&&E&&yc(n),n.flags|=1,Wt(e,n,s,f),n.child)}function vh(e,n,i,s,f){if(e===null){var d=i.type;return typeof d=="function"&&!gc(d)&&d.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=d,Eh(e,n,d,s,f)):(e=ks(i.type,null,s,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!fu(e,f)){var y=d.memoizedProps;if(i=i.compare,i=i!==null?i:nr,i(y,s)&&e.ref===n.ref)return Ei(e,n,f)}return n.flags|=1,e=gi(d,s),e.ref=n.ref,e.return=n,n.child=e}function Eh(e,n,i,s,f){if(e!==null){var d=e.memoizedProps;if(nr(d,s)&&e.ref===n.ref)if(Gt=!1,n.pendingProps=s=d,fu(e,f))(e.flags&131072)!==0&&(Gt=!0);else return n.lanes=e.lanes,Ei(e,n,f)}return au(e,n,i,s,f)}function Sh(e,n,i,s){var f=s.children,d=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(s=n.child=e.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~d}else s=0,n.child=null;return Nh(e,n,d,i,s)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Cs(n,d!==null?d.cachePool:null),d!==null?km(n,d):Dc(),Tm(n);else return s=n.lanes=536870912,Nh(e,n,d!==null?d.baseLanes|i:i,i,s)}else d!==null?(Cs(n,d.cachePool),km(n,d),Zi(),n.memoizedState=null):(e!==null&&Cs(n,null),Dc(),Zi());return Wt(e,n,f,i),n.child}function br(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Nh(e,n,i,s,f){var d=Ac();return d=d===null?null:{parent:$t._currentValue,pool:d},n.memoizedState={baseLanes:i,cachePool:d},e!==null&&Cs(n,null),Dc(),Tm(n),e!==null&&al(e,n,s,!0),n.childLanes=f,null}function Ys(e,n){return n=Vs({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function wh(e,n,i){return Aa(n,e.child,null,i),e=Ys(n,n.pendingProps),e.flags|=2,Cn(n),n.memoizedState=null,e}function Dy(e,n,i){var s=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Je){if(s.mode==="hidden")return e=Ys(n,s),n.lanes=536870912,br(null,e);if(jc(n),(e=St)?(e=Bp(e,Fn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:$i!==null?{id:ni,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},i=om(e),i.return=n,n.child=i,Qt=n,St=null)):e=null,e===null)throw Gi(n);return n.lanes=536870912,null}return Ys(n,s)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(jc(n),f)if(n.flags&256)n.flags&=-257,n=wh(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(r(558));else if(Gt||al(e,n,i,!1),f=(i&e.childLanes)!==0,Gt||f){if(s=bt,s!==null&&(y=Rt(s,i),y!==0&&y!==d.retryLane))throw d.retryLane=y,_a(e,y),En(s,e,y),iu;io(),n=wh(e,n,i)}else e=d.treeContext,St=qn(y.nextSibling),Qt=n,Je=!0,qi=null,Fn=!1,e!==null&&fm(n,e),n=Ys(n,s),n.flags|=4096;return n}return e=gi(e.child,{mode:s.mode,children:s.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Ks(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function au(e,n,i,s,f){return Na(n),i=Ic(e,n,i,s,void 0,f),s=Uc(),e!==null&&!Gt?(Hc(e,n,f),Ei(e,n,f)):(Je&&s&&yc(n),n.flags|=1,Wt(e,n,i,f),n.child)}function kh(e,n,i,s,f,d){return Na(n),n.updateQueue=null,i=Mm(n,s,i,f),Am(e),s=Uc(),e!==null&&!Gt?(Hc(e,n,d),Ei(e,n,d)):(Je&&s&&yc(n),n.flags|=1,Wt(e,n,i,d),n.child)}function Th(e,n,i,s,f){if(Na(n),n.stateNode===null){var d=el,y=i.contextType;typeof y=="object"&&y!==null&&(d=Jt(y)),d=new i(s,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=tu,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=s,d.state=n.memoizedState,d.refs={},Cc(n),y=i.contextType,d.context=typeof y=="object"&&y!==null?Jt(y):el,d.state=n.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(eu(n,i,y,s),d.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&tu.enqueueReplaceState(d,d.state,null),dr(n,s,d,f),fr(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){d=n.stateNode;var E=n.memoizedProps,O=Ca(i,E);d.props=O;var G=d.context,J=i.contextType;y=el,typeof J=="object"&&J!==null&&(y=Jt(J));var te=i.getDerivedStateFromProps;J=typeof te=="function"||typeof d.getSnapshotBeforeUpdate=="function",E=n.pendingProps!==E,J||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(E||G!==y)&&mh(n,d,s,y),Yi=!1;var P=n.memoizedState;d.state=P,dr(n,s,d,f),fr(),G=n.memoizedState,E||P!==G||Yi?(typeof te=="function"&&(eu(n,i,te,s),G=n.memoizedState),(O=Yi||dh(n,i,O,s,P,G,y))?(J||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=G),d.props=s,d.state=G,d.context=y,s=O):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{d=n.stateNode,Oc(e,n),y=n.memoizedProps,J=Ca(i,y),d.props=J,te=n.pendingProps,P=d.context,G=i.contextType,O=el,typeof G=="object"&&G!==null&&(O=Jt(G)),E=i.getDerivedStateFromProps,(G=typeof E=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==te||P!==O)&&mh(n,d,s,O),Yi=!1,P=n.memoizedState,d.state=P,dr(n,s,d,f),fr();var V=n.memoizedState;y!==te||P!==V||Yi||e!==null&&e.dependencies!==null&&As(e.dependencies)?(typeof E=="function"&&(eu(n,i,E,s),V=n.memoizedState),(J=Yi||dh(n,i,J,s,P,V,O)||e!==null&&e.dependencies!==null&&As(e.dependencies))?(G||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,V,O),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,V,O)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=V),d.props=s,d.state=V,d.context=O,s=J):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&P===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&P===e.memoizedState||(n.flags|=1024),s=!1)}return d=s,Ks(e,n),s=(n.flags&128)!==0,d||s?(d=n.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&s?(n.child=Aa(n,e.child,null,f),n.child=Aa(n,null,i,f)):Wt(e,n,i,f),n.memoizedState=d.state,e=n.child):e=Ei(e,n,f),e}function Ah(e,n,i,s){return Ea(),n.flags|=256,Wt(e,n,i,s),n.child}var lu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ru(e){return{baseLanes:e,cachePool:bm()}}function su(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=zn),e}function Mh(e,n,i){var s=n.pendingProps,f=!1,d=(n.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(jt.current&2)!==0),y&&(f=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,e===null){if(Je){if(f?Xi(n):Zi(),(e=St)?(e=Bp(e,Fn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:$i!==null?{id:ni,overflow:ii}:null,retryLane:536870912,hydrationErrors:null},i=om(e),i.return=n,n.child=i,Qt=n,St=null)):e=null,e===null)throw Gi(n);return qu(e)?n.lanes=32:n.lanes=536870912,null}var E=s.children;return s=s.fallback,f?(Zi(),f=n.mode,E=Vs({mode:"hidden",children:E},f),s=va(s,f,i,null),E.return=n,s.return=n,E.sibling=s,n.child=E,s=n.child,s.memoizedState=ru(i),s.childLanes=su(e,y,i),n.memoizedState=lu,br(null,s)):(Xi(n),ou(n,E))}var O=e.memoizedState;if(O!==null&&(E=O.dehydrated,E!==null)){if(d)n.flags&256?(Xi(n),n.flags&=-257,n=cu(e,n,i)):n.memoizedState!==null?(Zi(),n.child=e.child,n.flags|=128,n=null):(Zi(),E=s.fallback,f=n.mode,s=Vs({mode:"visible",children:s.children},f),E=va(E,f,i,null),E.flags|=2,s.return=n,E.return=n,s.sibling=E,n.child=s,Aa(n,e.child,null,i),s=n.child,s.memoizedState=ru(i),s.childLanes=su(e,y,i),n.memoizedState=lu,n=br(null,s));else if(Xi(n),qu(E)){if(y=E.nextSibling&&E.nextSibling.dataset,y)var G=y.dgst;y=G,s=Error(r(419)),s.stack="",s.digest=y,lr({value:s,source:null,stack:null}),n=cu(e,n,i)}else if(Gt||al(e,n,i,!1),y=(i&e.childLanes)!==0,Gt||y){if(y=bt,y!==null&&(s=Rt(y,i),s!==0&&s!==O.retryLane))throw O.retryLane=s,_a(e,s),En(y,e,s),iu;$u(E)||io(),n=cu(e,n,i)}else $u(E)?(n.flags|=192,n.child=e.child,n=null):(e=O.treeContext,St=qn(E.nextSibling),Qt=n,Je=!0,qi=null,Fn=!1,e!==null&&fm(n,e),n=ou(n,s.children),n.flags|=4096);return n}return f?(Zi(),E=s.fallback,f=n.mode,O=e.child,G=O.sibling,s=gi(O,{mode:"hidden",children:s.children}),s.subtreeFlags=O.subtreeFlags&65011712,G!==null?E=gi(G,E):(E=va(E,f,i,null),E.flags|=2),E.return=n,s.return=n,s.sibling=E,n.child=s,br(null,s),s=n.child,E=e.child.memoizedState,E===null?E=ru(i):(f=E.cachePool,f!==null?(O=$t._currentValue,f=f.parent!==O?{parent:O,pool:O}:f):f=bm(),E={baseLanes:E.baseLanes|i,cachePool:f}),s.memoizedState=E,s.childLanes=su(e,y,i),n.memoizedState=lu,br(e.child,s)):(Xi(n),i=e.child,e=i.sibling,i=gi(i,{mode:"visible",children:s.children}),i.return=n,i.sibling=null,e!==null&&(y=n.deletions,y===null?(n.deletions=[e],n.flags|=16):y.push(e)),n.child=i,n.memoizedState=null,i)}function ou(e,n){return n=Vs({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Vs(e,n){return e=An(22,e,null,n),e.lanes=0,e}function cu(e,n,i){return Aa(n,e.child,null,i),e=ou(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Ch(e,n,i){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Nc(e.return,n,i)}function uu(e,n,i,s,f,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:f,treeForkCount:d}:(y.isBackwards=n,y.rendering=null,y.renderingStartTime=0,y.last=s,y.tail=i,y.tailMode=f,y.treeForkCount=d)}function Oh(e,n,i){var s=n.pendingProps,f=s.revealOrder,d=s.tail;s=s.children;var y=jt.current,E=(y&2)!==0;if(E?(y=y&1|2,n.flags|=128):y&=1,N(jt,y),Wt(e,n,s,i),s=Je?ar:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ch(e,i,n);else if(e.tag===19)Ch(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&js(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),uu(n,!1,f,i,d,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&js(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}uu(n,!0,i,null,d,s);break;case"together":uu(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function Ei(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Wi|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(al(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,i=gi(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=gi(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function fu(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&As(e)))}function Ly(e,n,i){switch(n.tag){case 3:Le(n,n.stateNode.containerInfo),Pi(n,$t,e.memoizedState.cache),Ea();break;case 27:case 5:ft(n);break;case 4:Le(n,n.stateNode.containerInfo);break;case 10:Pi(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,jc(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Xi(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Mh(e,n,i):(Xi(n),e=Ei(e,n,i),e!==null?e.sibling:null);Xi(n);break;case 19:var f=(e.flags&128)!==0;if(s=(i&n.childLanes)!==0,s||(al(e,n,i,!1),s=(i&n.childLanes)!==0),f){if(s)return Oh(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),N(jt,jt.current),s)break;return null;case 22:return n.lanes=0,Sh(e,n,i,n.pendingProps);case 24:Pi(n,$t,e.memoizedState.cache)}return Ei(e,n,i)}function zh(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)Gt=!0;else{if(!fu(e,i)&&(n.flags&128)===0)return Gt=!1,Ly(e,n,i);Gt=(e.flags&131072)!==0}else Gt=!1,Je&&(n.flags&1048576)!==0&&um(n,ar,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(e=ka(n.elementType),n.type=e,typeof e=="function")gc(e)?(s=Ca(e,s),n.tag=1,n=Th(null,n,e,s,i)):(n.tag=0,n=au(null,n,e,s,i));else{if(e!=null){var f=e.$$typeof;if(f===q){n.tag=11,n=_h(null,n,e,s,i);break e}else if(f===Z){n.tag=14,n=vh(null,n,e,s,i);break e}}throw n=Y(e)||e,Error(r(306,n,""))}}return n;case 0:return au(e,n,n.type,n.pendingProps,i);case 1:return s=n.type,f=Ca(s,n.pendingProps),Th(e,n,s,f,i);case 3:e:{if(Le(n,n.stateNode.containerInfo),e===null)throw Error(r(387));s=n.pendingProps;var d=n.memoizedState;f=d.element,Oc(e,n),dr(n,s,null,i);var y=n.memoizedState;if(s=y.cache,Pi(n,$t,s),s!==d.cache&&wc(n,[$t],i,!0),fr(),s=y.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Ah(e,n,s,i);break e}else if(s!==f){f=In(Error(r(424)),n),lr(f),n=Ah(e,n,s,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(St=qn(e.firstChild),Qt=n,Je=!0,qi=null,Fn=!0,i=Sm(n,null,s,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Ea(),s===f){n=Ei(e,n,i);break e}Wt(e,n,s,i)}n=n.child}return n;case 26:return Ks(e,n),e===null?(i=qp(n.type,null,n.pendingProps,null))?n.memoizedState=i:Je||(i=n.type,e=n.pendingProps,s=uo(he.current).createElement(i),s[Dt]=n,s[nn]=e,en(s,i,e),Ht(s),n.stateNode=s):n.memoizedState=qp(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return ft(n),e===null&&Je&&(s=n.stateNode=Hp(n.type,n.pendingProps,he.current),Qt=n,Fn=!0,f=St,aa(n.type)?(Gu=f,St=qn(s.firstChild)):St=f),Wt(e,n,n.pendingProps.children,i),Ks(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Je&&((f=s=St)&&(s=f1(s,n.type,n.pendingProps,Fn),s!==null?(n.stateNode=s,Qt=n,St=qn(s.firstChild),Fn=!1,f=!0):f=!1),f||Gi(n)),ft(n),f=n.type,d=n.pendingProps,y=e!==null?e.memoizedProps:null,s=d.children,Uu(f,d)?s=null:y!==null&&Uu(f,y)&&(n.flags|=32),n.memoizedState!==null&&(f=Ic(e,n,ky,null,null,i),zr._currentValue=f),Ks(e,n),Wt(e,n,s,i),n.child;case 6:return e===null&&Je&&((e=i=St)&&(i=d1(i,n.pendingProps,Fn),i!==null?(n.stateNode=i,Qt=n,St=null,e=!0):e=!1),e||Gi(n)),null;case 13:return Mh(e,n,i);case 4:return Le(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=Aa(n,null,s,i):Wt(e,n,s,i),n.child;case 11:return _h(e,n,n.type,n.pendingProps,i);case 7:return Wt(e,n,n.pendingProps,i),n.child;case 8:return Wt(e,n,n.pendingProps.children,i),n.child;case 12:return Wt(e,n,n.pendingProps.children,i),n.child;case 10:return s=n.pendingProps,Pi(n,n.type,s.value),Wt(e,n,s.children,i),n.child;case 9:return f=n.type._context,s=n.pendingProps.children,Na(n),f=Jt(f),s=s(f),n.flags|=1,Wt(e,n,s,i),n.child;case 14:return vh(e,n,n.type,n.pendingProps,i);case 15:return Eh(e,n,n.type,n.pendingProps,i);case 19:return Oh(e,n,i);case 31:return Dy(e,n,i);case 22:return Sh(e,n,i,n.pendingProps);case 24:return Na(n),s=Jt($t),e===null?(f=Ac(),f===null&&(f=bt,d=kc(),f.pooledCache=d,d.refCount++,d!==null&&(f.pooledCacheLanes|=i),f=d),n.memoizedState={parent:s,cache:f},Cc(n),Pi(n,$t,f)):((e.lanes&i)!==0&&(Oc(e,n),dr(n,null,null,i),fr()),f=e.memoizedState,d=n.memoizedState,f.parent!==s?(f={parent:s,cache:s},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),Pi(n,$t,s)):(s=d.cache,Pi(n,$t,s),s!==f.cache&&wc(n,[$t],i,!0))),Wt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function Si(e){e.flags|=4}function du(e,n,i,s,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(lp())e.flags|=8192;else throw Ta=zs,Mc}else e.flags&=-16777217}function Rh(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Vp(n))if(lp())e.flags|=8192;else throw Ta=zs,Mc}function Xs(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?De():536870912,e.lanes|=n,gl|=n)}function xr(e,n){if(!Je)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Nt(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,s=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=s,e.childLanes=i,n}function jy(e,n,i){var s=n.pendingProps;switch(_c(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(n),null;case 1:return Nt(n),null;case 3:return i=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),yi($t),qe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(il(n)?Si(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ec())),Nt(n),null;case 26:var f=n.type,d=n.memoizedState;return e===null?(Si(n),d!==null?(Nt(n),Rh(n,d)):(Nt(n),du(n,f,null,s,i))):d?d!==e.memoizedState?(Si(n),Nt(n),Rh(n,d)):(Nt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==s&&Si(n),Nt(n),du(n,f,e,s,i)),null;case 27:if(se(n),i=he.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&Si(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return Nt(n),null}e=ce.current,il(n)?dm(n):(e=Hp(f,s,i),n.stateNode=e,Si(n))}return Nt(n),null;case 5:if(se(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&Si(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return Nt(n),null}if(d=ce.current,il(n))dm(n);else{var y=uo(he.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof s.is=="string"?y.createElement("select",{is:s.is}):y.createElement("select"),s.multiple?d.multiple=!0:s.size&&(d.size=s.size);break;default:d=typeof s.is=="string"?y.createElement(f,{is:s.is}):y.createElement(f)}}d[Dt]=n,d[nn]=s;e:for(y=n.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===n)break e;for(;y.sibling===null;){if(y.return===null||y.return===n)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}n.stateNode=d;e:switch(en(d,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Si(n)}}return Nt(n),du(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&Si(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(r(166));if(e=he.current,il(n)){if(e=n.stateNode,i=n.memoizedProps,s=null,f=Qt,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[Dt]=n,e=!!(e.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||Mp(e.nodeValue,i)),e||Gi(n,!0)}else e=uo(e).createTextNode(s),e[Dt]=n,n.stateNode=e}return Nt(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(s=il(n),i!==null){if(e===null){if(!s)throw Error(r(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Dt]=n}else Ea(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Nt(n),e=!1}else i=Ec(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(Cn(n),n):(Cn(n),null);if((n.flags&128)!==0)throw Error(r(558))}return Nt(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=il(n),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(r(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[Dt]=n}else Ea(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Nt(n),f=!1}else f=Ec(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Cn(n),n):(Cn(n),null)}return Cn(n),(n.flags&128)!==0?(n.lanes=i,n):(i=s!==null,e=e!==null&&e.memoizedState!==null,i&&(s=n.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),d=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==f&&(s.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),Xs(n,n.updateQueue),Nt(n),null);case 4:return qe(),e===null&&Du(n.stateNode.containerInfo),Nt(n),null;case 10:return yi(n.type),Nt(n),null;case 19:if(B(jt),s=n.memoizedState,s===null)return Nt(n),null;if(f=(n.flags&128)!==0,d=s.rendering,d===null)if(f)xr(s,!1);else{if(zt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=js(e),d!==null){for(n.flags|=128,xr(s,!1),e=d.updateQueue,n.updateQueue=e,Xs(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)sm(i,e),i=i.sibling;return N(jt,jt.current&1|2),Je&&bi(n,s.treeForkCount),n.child}e=e.sibling}s.tail!==null&&At()>eo&&(n.flags|=128,f=!0,xr(s,!1),n.lanes=4194304)}else{if(!f)if(e=js(d),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,Xs(n,e),xr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!d.alternate&&!Je)return Nt(n),null}else 2*At()-s.renderingStartTime>eo&&i!==536870912&&(n.flags|=128,f=!0,xr(s,!1),n.lanes=4194304);s.isBackwards?(d.sibling=n.child,n.child=d):(e=s.last,e!==null?e.sibling=d:n.child=d,s.last=d)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=At(),e.sibling=null,i=jt.current,N(jt,f?i&1|2:i&1),Je&&bi(n,s.treeForkCount),e):(Nt(n),null);case 22:case 23:return Cn(n),Lc(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(i&536870912)!==0&&(n.flags&128)===0&&(Nt(n),n.subtreeFlags&6&&(n.flags|=8192)):Nt(n),i=n.updateQueue,i!==null&&Xs(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048),e!==null&&B(wa),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),yi($t),Nt(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function By(e,n){switch(_c(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return yi($t),qe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return se(n),null;case 31:if(n.memoizedState!==null){if(Cn(n),n.alternate===null)throw Error(r(340));Ea()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Cn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Ea()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return B(jt),null;case 4:return qe(),null;case 10:return yi(n.type),null;case 22:case 23:return Cn(n),Lc(),e!==null&&B(wa),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return yi($t),null;case 25:return null;default:return null}}function Dh(e,n){switch(_c(n),n.tag){case 3:yi($t),qe();break;case 26:case 27:case 5:se(n);break;case 4:qe();break;case 31:n.memoizedState!==null&&Cn(n);break;case 13:Cn(n);break;case 19:B(jt);break;case 10:yi(n.type);break;case 22:case 23:Cn(n),Lc(),e!==null&&B(wa);break;case 24:yi($t)}}function yr(e,n){try{var i=n.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var f=s.next;i=f;do{if((i.tag&e)===e){s=void 0;var d=i.create,y=i.inst;s=d(),y.destroy=s}i=i.next}while(i!==f)}}catch(E){ut(n,n.return,E)}}function Qi(e,n,i){try{var s=n.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var d=f.next;s=d;do{if((s.tag&e)===e){var y=s.inst,E=y.destroy;if(E!==void 0){y.destroy=void 0,f=n;var O=i,G=E;try{G()}catch(J){ut(f,O,J)}}}s=s.next}while(s!==d)}}catch(J){ut(n,n.return,J)}}function Lh(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{wm(n,i)}catch(s){ut(e,e.return,s)}}}function jh(e,n,i){i.props=Ca(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(s){ut(e,n,s)}}function _r(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof i=="function"?e.refCleanup=i(s):i.current=s}}catch(f){ut(e,n,f)}}function ai(e,n){var i=e.ref,s=e.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(f){ut(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){ut(e,n,f)}else i.current=null}function Bh(e){var n=e.type,i=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(f){ut(e,e.return,f)}}function mu(e,n,i){try{var s=e.stateNode;l1(s,e.type,i,n),s[nn]=n}catch(f){ut(e,e.return,f)}}function Ih(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ih(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&aa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pu(e,n,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=ge));else if(s!==4&&(s===27&&aa(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(pu(e,n,i),e=e.sibling;e!==null;)pu(e,n,i),e=e.sibling}function Zs(e,n,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(s!==4&&(s===27&&aa(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Zs(e,n,i),e=e.sibling;e!==null;)Zs(e,n,i),e=e.sibling}function Uh(e){var n=e.stateNode,i=e.memoizedProps;try{for(var s=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);en(n,s,i),n[Dt]=e,n[nn]=i}catch(d){ut(e,e.return,d)}}var Ni=!1,Pt=!1,gu=!1,Hh=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function Iy(e,n){if(e=e.containerInfo,Bu=xo,e=Jd(e),cc(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var f=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var y=0,E=-1,O=-1,G=0,J=0,te=e,P=null;t:for(;;){for(var V;te!==i||f!==0&&te.nodeType!==3||(E=y+f),te!==d||s!==0&&te.nodeType!==3||(O=y+s),te.nodeType===3&&(y+=te.nodeValue.length),(V=te.firstChild)!==null;)P=te,te=V;for(;;){if(te===e)break t;if(P===i&&++G===f&&(E=y),P===d&&++J===s&&(O=y),(V=te.nextSibling)!==null)break;te=P,P=te.parentNode}te=V}i=E===-1||O===-1?null:{start:E,end:O}}else i=null}i=i||{start:0,end:0}}else i=null;for(Iu={focusedElem:e,selectionRange:i},xo=!1,Vt=n;Vt!==null;)if(n=Vt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Vt=e;else for(;Vt!==null;){switch(n=Vt,d=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)f=e[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=n,f=d.memoizedProps,d=d.memoizedState,s=i.stateNode;try{var _e=Ca(i.type,f);e=s.getSnapshotBeforeUpdate(_e,d),s.__reactInternalSnapshotBeforeUpdate=e}catch(Ae){ut(i,i.return,Ae)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)Fu(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Fu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=n.sibling,e!==null){e.return=n.return,Vt=e;break}Vt=n.return}}function Fh(e,n,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:ki(e,i),s&4&&yr(5,i);break;case 1:if(ki(e,i),s&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(y){ut(i,i.return,y)}else{var f=Ca(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(y){ut(i,i.return,y)}}s&64&&Lh(i),s&512&&_r(i,i.return);break;case 3:if(ki(e,i),s&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{wm(e,n)}catch(y){ut(i,i.return,y)}}break;case 27:n===null&&s&4&&Uh(i);case 26:case 5:ki(e,i),n===null&&s&4&&Bh(i),s&512&&_r(i,i.return);break;case 12:ki(e,i);break;case 31:ki(e,i),s&4&&Gh(e,i);break;case 13:ki(e,i),s&4&&Ph(e,i),s&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=Ky.bind(null,i),m1(e,i))));break;case 22:if(s=i.memoizedState!==null||Ni,!s){n=n!==null&&n.memoizedState!==null||Pt,f=Ni;var d=Pt;Ni=s,(Pt=n)&&!d?Ti(e,i,(i.subtreeFlags&8772)!==0):ki(e,i),Ni=f,Pt=d}break;case 30:break;default:ki(e,i)}}function $h(e){var n=e.alternate;n!==null&&(e.alternate=null,$h(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Gl(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var kt=null,xn=!1;function wi(e,n,i){for(i=i.child;i!==null;)qh(e,n,i),i=i.sibling}function qh(e,n,i){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Xt,i)}catch{}switch(i.tag){case 26:Pt||ai(i,n),wi(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Pt||ai(i,n);var s=kt,f=xn;aa(i.type)&&(kt=i.stateNode,xn=!1),wi(e,n,i),Mr(i.stateNode),kt=s,xn=f;break;case 5:Pt||ai(i,n);case 6:if(s=kt,f=xn,kt=null,wi(e,n,i),kt=s,xn=f,kt!==null)if(xn)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(i.stateNode)}catch(d){ut(i,n,d)}else try{kt.removeChild(i.stateNode)}catch(d){ut(i,n,d)}break;case 18:kt!==null&&(xn?(e=kt,Lp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Nl(e)):Lp(kt,i.stateNode));break;case 4:s=kt,f=xn,kt=i.stateNode.containerInfo,xn=!0,wi(e,n,i),kt=s,xn=f;break;case 0:case 11:case 14:case 15:Qi(2,i,n),Pt||Qi(4,i,n),wi(e,n,i);break;case 1:Pt||(ai(i,n),s=i.stateNode,typeof s.componentWillUnmount=="function"&&jh(i,n,s)),wi(e,n,i);break;case 21:wi(e,n,i);break;case 22:Pt=(s=Pt)||i.memoizedState!==null,wi(e,n,i),Pt=s;break;default:wi(e,n,i)}}function Gh(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Nl(e)}catch(i){ut(n,n.return,i)}}}function Ph(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nl(e)}catch(i){ut(n,n.return,i)}}function Uy(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Hh),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Hh),n;default:throw Error(r(435,e.tag))}}function Qs(e,n){var i=Uy(e);n.forEach(function(s){if(!i.has(s)){i.add(s);var f=Vy.bind(null,e,s);s.then(f,f)}})}function yn(e,n){var i=n.deletions;if(i!==null)for(var s=0;s<i.length;s++){var f=i[s],d=e,y=n,E=y;e:for(;E!==null;){switch(E.tag){case 27:if(aa(E.type)){kt=E.stateNode,xn=!1;break e}break;case 5:kt=E.stateNode,xn=!1;break e;case 3:case 4:kt=E.stateNode.containerInfo,xn=!0;break e}E=E.return}if(kt===null)throw Error(r(160));qh(d,y,f),kt=null,xn=!1,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Yh(n,e),n=n.sibling}var Vn=null;function Yh(e,n){var i=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yn(n,e),_n(e),s&4&&(Qi(3,e,e.return),yr(3,e),Qi(5,e,e.return));break;case 1:yn(n,e),_n(e),s&512&&(Pt||i===null||ai(i,i.return)),s&64&&Ni&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var f=Vn;if(yn(n,e),_n(e),s&512&&(Pt||i===null||ai(i,i.return)),s&4){var d=i!==null?i.memoizedState:null;if(s=e.memoizedState,i===null)if(s===null)if(e.stateNode===null){e:{s=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":d=f.getElementsByTagName("title")[0],(!d||d[ha]||d[Dt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=f.createElement(s),f.head.insertBefore(d,f.querySelector("head > title"))),en(d,s,i),d[Dt]=e,Ht(d),s=d;break e;case"link":var y=Yp("link","href",f).get(s+(i.href||""));if(y){for(var E=0;E<y.length;E++)if(d=y[E],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){y.splice(E,1);break t}}d=f.createElement(s),en(d,s,i),f.head.appendChild(d);break;case"meta":if(y=Yp("meta","content",f).get(s+(i.content||""))){for(E=0;E<y.length;E++)if(d=y[E],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){y.splice(E,1);break t}}d=f.createElement(s),en(d,s,i),f.head.appendChild(d);break;default:throw Error(r(468,s))}d[Dt]=e,Ht(d),s=d}e.stateNode=s}else Kp(f,e.type,e.stateNode);else e.stateNode=Pp(f,s,e.memoizedProps);else d!==s?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,s===null?Kp(f,e.type,e.stateNode):Pp(f,s,e.memoizedProps)):s===null&&e.stateNode!==null&&mu(e,e.memoizedProps,i.memoizedProps)}break;case 27:yn(n,e),_n(e),s&512&&(Pt||i===null||ai(i,i.return)),i!==null&&s&4&&mu(e,e.memoizedProps,i.memoizedProps);break;case 5:if(yn(n,e),_n(e),s&512&&(Pt||i===null||ai(i,i.return)),e.flags&32){f=e.stateNode;try{Me(f,"")}catch(_e){ut(e,e.return,_e)}}s&4&&e.stateNode!=null&&(f=e.memoizedProps,mu(e,f,i!==null?i.memoizedProps:f)),s&1024&&(gu=!0);break;case 6:if(yn(n,e),_n(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,i=e.stateNode;try{i.nodeValue=s}catch(_e){ut(e,e.return,_e)}}break;case 3:if(ho=null,f=Vn,Vn=fo(n.containerInfo),yn(n,e),Vn=f,_n(e),s&4&&i!==null&&i.memoizedState.isDehydrated)try{Nl(n.containerInfo)}catch(_e){ut(e,e.return,_e)}gu&&(gu=!1,Kh(e));break;case 4:s=Vn,Vn=fo(e.stateNode.containerInfo),yn(n,e),_n(e),Vn=s;break;case 12:yn(n,e),_n(e);break;case 31:yn(n,e),_n(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Qs(e,s)));break;case 13:yn(n,e),_n(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Ws=At()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Qs(e,s)));break;case 22:f=e.memoizedState!==null;var O=i!==null&&i.memoizedState!==null,G=Ni,J=Pt;if(Ni=G||f,Pt=J||O,yn(n,e),Pt=J,Ni=G,_n(e),s&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||O||Ni||Pt||Oa(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){O=i=n;try{if(d=O.stateNode,f)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{E=O.stateNode;var te=O.memoizedProps.style,P=te!=null&&te.hasOwnProperty("display")?te.display:null;E.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(_e){ut(O,O.return,_e)}}}else if(n.tag===6){if(i===null){O=n;try{O.stateNode.nodeValue=f?"":O.memoizedProps}catch(_e){ut(O,O.return,_e)}}}else if(n.tag===18){if(i===null){O=n;try{var V=O.stateNode;f?jp(V,!0):jp(O.stateNode,!1)}catch(_e){ut(O,O.return,_e)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,Qs(e,i))));break;case 19:yn(n,e),_n(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Qs(e,s)));break;case 30:break;case 21:break;default:yn(n,e),_n(e)}}function _n(e){var n=e.flags;if(n&2){try{for(var i,s=e.return;s!==null;){if(Ih(s)){i=s;break}s=s.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var f=i.stateNode,d=hu(e);Zs(e,d,f);break;case 5:var y=i.stateNode;i.flags&32&&(Me(y,""),i.flags&=-33);var E=hu(e);Zs(e,E,y);break;case 3:case 4:var O=i.stateNode.containerInfo,G=hu(e);pu(e,G,O);break;default:throw Error(r(161))}}catch(J){ut(e,e.return,J)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Kh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Kh(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function ki(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Fh(e,n.alternate,n),n=n.sibling}function Oa(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Qi(4,n,n.return),Oa(n);break;case 1:ai(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&jh(n,n.return,i),Oa(n);break;case 27:Mr(n.stateNode);case 26:case 5:ai(n,n.return),Oa(n);break;case 22:n.memoizedState===null&&Oa(n);break;case 30:Oa(n);break;default:Oa(n)}e=e.sibling}}function Ti(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,f=e,d=n,y=d.flags;switch(d.tag){case 0:case 11:case 15:Ti(f,d,i),yr(4,d);break;case 1:if(Ti(f,d,i),s=d,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(G){ut(s,s.return,G)}if(s=d,f=s.updateQueue,f!==null){var E=s.stateNode;try{var O=f.shared.hiddenCallbacks;if(O!==null)for(f.shared.hiddenCallbacks=null,f=0;f<O.length;f++)Nm(O[f],E)}catch(G){ut(s,s.return,G)}}i&&y&64&&Lh(d),_r(d,d.return);break;case 27:Uh(d);case 26:case 5:Ti(f,d,i),i&&s===null&&y&4&&Bh(d),_r(d,d.return);break;case 12:Ti(f,d,i);break;case 31:Ti(f,d,i),i&&y&4&&Gh(f,d);break;case 13:Ti(f,d,i),i&&y&4&&Ph(f,d);break;case 22:d.memoizedState===null&&Ti(f,d,i),_r(d,d.return);break;case 30:break;default:Ti(f,d,i)}n=n.sibling}}function bu(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&rr(i))}function xu(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&rr(e))}function Xn(e,n,i,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Vh(e,n,i,s),n=n.sibling}function Vh(e,n,i,s){var f=n.flags;switch(n.tag){case 0:case 11:case 15:Xn(e,n,i,s),f&2048&&yr(9,n);break;case 1:Xn(e,n,i,s);break;case 3:Xn(e,n,i,s),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&rr(e)));break;case 12:if(f&2048){Xn(e,n,i,s),e=n.stateNode;try{var d=n.memoizedProps,y=d.id,E=d.onPostCommit;typeof E=="function"&&E(y,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){ut(n,n.return,O)}}else Xn(e,n,i,s);break;case 31:Xn(e,n,i,s);break;case 13:Xn(e,n,i,s);break;case 23:break;case 22:d=n.stateNode,y=n.alternate,n.memoizedState!==null?d._visibility&2?Xn(e,n,i,s):vr(e,n):d._visibility&2?Xn(e,n,i,s):(d._visibility|=2,ml(e,n,i,s,(n.subtreeFlags&10256)!==0||!1)),f&2048&&bu(y,n);break;case 24:Xn(e,n,i,s),f&2048&&xu(n.alternate,n);break;default:Xn(e,n,i,s)}}function ml(e,n,i,s,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var d=e,y=n,E=i,O=s,G=y.flags;switch(y.tag){case 0:case 11:case 15:ml(d,y,E,O,f),yr(8,y);break;case 23:break;case 22:var J=y.stateNode;y.memoizedState!==null?J._visibility&2?ml(d,y,E,O,f):vr(d,y):(J._visibility|=2,ml(d,y,E,O,f)),f&&G&2048&&bu(y.alternate,y);break;case 24:ml(d,y,E,O,f),f&&G&2048&&xu(y.alternate,y);break;default:ml(d,y,E,O,f)}n=n.sibling}}function vr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,s=n,f=s.flags;switch(s.tag){case 22:vr(i,s),f&2048&&bu(s.alternate,s);break;case 24:vr(i,s),f&2048&&xu(s.alternate,s);break;default:vr(i,s)}n=n.sibling}}var Er=8192;function hl(e,n,i){if(e.subtreeFlags&Er)for(e=e.child;e!==null;)Xh(e,n,i),e=e.sibling}function Xh(e,n,i){switch(e.tag){case 26:hl(e,n,i),e.flags&Er&&e.memoizedState!==null&&w1(i,Vn,e.memoizedState,e.memoizedProps);break;case 5:hl(e,n,i);break;case 3:case 4:var s=Vn;Vn=fo(e.stateNode.containerInfo),hl(e,n,i),Vn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Er,Er=16777216,hl(e,n,i),Er=s):hl(e,n,i));break;default:hl(e,n,i)}}function Zh(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Sr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];Vt=s,Jh(s,e)}Zh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qh(e),e=e.sibling}function Qh(e){switch(e.tag){case 0:case 11:case 15:Sr(e),e.flags&2048&&Qi(9,e,e.return);break;case 3:Sr(e);break;case 12:Sr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Js(e)):Sr(e);break;default:Sr(e)}}function Js(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var s=n[i];Vt=s,Jh(s,e)}Zh(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Qi(8,n,n.return),Js(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Js(n));break;default:Js(n)}e=e.sibling}}function Jh(e,n){for(;Vt!==null;){var i=Vt;switch(i.tag){case 0:case 11:case 15:Qi(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:rr(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,Vt=s;else e:for(i=e;Vt!==null;){s=Vt;var f=s.sibling,d=s.return;if($h(s),s===i){Vt=null;break e}if(f!==null){f.return=d,Vt=f;break e}Vt=d}}}var Hy={getCacheForType:function(e){var n=Jt($t),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return Jt($t).controller.signal}},Fy=typeof WeakMap=="function"?WeakMap:Map,at=0,bt=null,Ye=null,Ze=0,ct=0,On=null,Ji=!1,pl=!1,yu=!1,Ai=0,zt=0,Wi=0,za=0,_u=0,zn=0,gl=0,Nr=null,vn=null,vu=!1,Ws=0,Wh=0,eo=1/0,to=null,ea=null,Kt=0,ta=null,bl=null,Mi=0,Eu=0,Su=null,ep=null,wr=0,Nu=null;function Rn(){return(at&2)!==0&&Ze!==0?Ze&-Ze:L.T!==null?Cu():qa()}function tp(){if(zn===0)if((Ze&536870912)===0||Je){var e=$a;$a<<=1,($a&3932160)===0&&($a=262144),zn=e}else zn=536870912;return e=Mn.current,e!==null&&(e.flags|=32),zn}function En(e,n,i){(e===bt&&(ct===2||ct===9)||e.cancelPendingCommit!==null)&&(xl(e,0),na(e,Ze,zn,!1)),gt(e,i),((at&2)===0||e!==bt)&&(e===bt&&((at&2)===0&&(za|=i),zt===4&&na(e,Ze,zn,!1)),li(e))}function np(e,n,i){if((at&6)!==0)throw Error(r(327));var s=!i&&(n&127)===0&&(n&e.expiredLanes)===0||W(e,n),f=s?Gy(e,n):ku(e,n,!0),d=s;do{if(f===0){pl&&!s&&na(e,n,0,!1);break}else{if(i=e.current.alternate,d&&!$y(i)){f=ku(e,n,!1),d=!1;continue}if(f===2){if(d=n,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){n=y;e:{var E=e;f=Nr;var O=E.current.memoizedState.isDehydrated;if(O&&(xl(E,y).flags|=256),y=ku(E,y,!1),y!==2){if(yu&&!O){E.errorRecoveryDisabledLanes|=d,za|=d,f=4;break e}d=vn,vn=f,d!==null&&(vn===null?vn=d:vn.push.apply(vn,d))}f=y}if(d=!1,f!==2)continue}}if(f===1){xl(e,0),na(e,n,0,!0);break}e:{switch(s=e,d=f,d){case 0:case 1:throw Error(r(345));case 4:if((n&4194048)!==n)break;case 6:na(s,n,zn,!Ji);break e;case 2:vn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(f=Ws+300-At(),10<f)){if(na(s,n,zn,!Ji),R(s,0,!0)!==0)break e;Mi=n,s.timeoutHandle=Rp(ip.bind(null,s,i,vn,to,vu,n,zn,za,gl,Ji,d,"Throttled",-0,0),f);break e}ip(s,i,vn,to,vu,n,zn,za,gl,Ji,d,null,-0,0)}}break}while(!0);li(e)}function ip(e,n,i,s,f,d,y,E,O,G,J,te,P,V){if(e.timeoutHandle=-1,te=n.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ge},Xh(n,d,te);var _e=(d&62914560)===d?Ws-At():(d&4194048)===d?Wh-At():0;if(_e=k1(te,_e),_e!==null){Mi=d,e.cancelPendingCommit=_e(fp.bind(null,e,n,d,i,s,f,y,E,O,J,te,null,P,V)),na(e,d,y,!G);return}}fp(e,n,d,i,s,f,y,E,O)}function $y(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var f=i[s],d=f.getSnapshot;f=f.value;try{if(!Tn(d(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function na(e,n,i,s){n&=~_u,n&=~za,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var f=n;0<f;){var d=31-rt(f),y=1<<d;s[d]=-1,f&=~y}i!==0&&ye(e,i,n)}function no(){return(at&6)===0?(kr(0),!1):!0}function wu(){if(Ye!==null){if(ct===0)var e=Ye.return;else e=Ye,xi=Sa=null,Fc(e),ol=null,or=0,e=Ye;for(;e!==null;)Dh(e.alternate,e),e=e.return;Ye=null}}function xl(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,o1(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Mi=0,wu(),bt=e,Ye=i=gi(e.current,null),Ze=n,ct=0,On=null,Ji=!1,pl=W(e,n),yu=!1,gl=zn=_u=za=Wi=zt=0,vn=Nr=null,vu=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var f=31-rt(s),d=1<<f;n|=e[f],s&=~d}return Ai=n,Ss(),i}function ap(e,n){He=null,L.H=gr,n===sl||n===Os?(n=_m(),ct=3):n===Mc?(n=_m(),ct=4):ct=n===iu?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,On=n,Ye===null&&(zt=1,Ps(e,In(n,e.current)))}function lp(){var e=Mn.current;return e===null?!0:(Ze&4194048)===Ze?$n===null:(Ze&62914560)===Ze||(Ze&536870912)!==0?e===$n:!1}function rp(){var e=L.H;return L.H=gr,e===null?gr:e}function sp(){var e=L.A;return L.A=Hy,e}function io(){zt=4,Ji||(Ze&4194048)!==Ze&&Mn.current!==null||(pl=!0),(Wi&134217727)===0&&(za&134217727)===0||bt===null||na(bt,Ze,zn,!1)}function ku(e,n,i){var s=at;at|=2;var f=rp(),d=sp();(bt!==e||Ze!==n)&&(to=null,xl(e,n)),n=!1;var y=zt;e:do try{if(ct!==0&&Ye!==null){var E=Ye,O=On;switch(ct){case 8:wu(),y=6;break e;case 3:case 2:case 9:case 6:Mn.current===null&&(n=!0);var G=ct;if(ct=0,On=null,yl(e,E,O,G),i&&pl){y=0;break e}break;default:G=ct,ct=0,On=null,yl(e,E,O,G)}}qy(),y=zt;break}catch(J){ap(e,J)}while(!0);return n&&e.shellSuspendCounter++,xi=Sa=null,at=s,L.H=f,L.A=d,Ye===null&&(bt=null,Ze=0,Ss()),y}function qy(){for(;Ye!==null;)op(Ye)}function Gy(e,n){var i=at;at|=2;var s=rp(),f=sp();bt!==e||Ze!==n?(to=null,eo=At()+500,xl(e,n)):pl=W(e,n);e:do try{if(ct!==0&&Ye!==null){n=Ye;var d=On;t:switch(ct){case 1:ct=0,On=null,yl(e,n,d,1);break;case 2:case 9:if(xm(d)){ct=0,On=null,cp(n);break}n=function(){ct!==2&&ct!==9||bt!==e||(ct=7),li(e)},d.then(n,n);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:xm(d)?(ct=0,On=null,cp(n)):(ct=0,On=null,yl(e,n,d,7));break;case 5:var y=null;switch(Ye.tag){case 26:y=Ye.memoizedState;case 5:case 27:var E=Ye;if(y?Vp(y):E.stateNode.complete){ct=0,On=null;var O=E.sibling;if(O!==null)Ye=O;else{var G=E.return;G!==null?(Ye=G,ao(G)):Ye=null}break t}}ct=0,On=null,yl(e,n,d,5);break;case 6:ct=0,On=null,yl(e,n,d,6);break;case 8:wu(),zt=6;break e;default:throw Error(r(462))}}Py();break}catch(J){ap(e,J)}while(!0);return xi=Sa=null,L.H=s,L.A=f,at=i,Ye!==null?0:(bt=null,Ze=0,Ss(),zt)}function Py(){for(;Ye!==null&&!Wn();)op(Ye)}function op(e){var n=zh(e.alternate,e,Ai);e.memoizedProps=e.pendingProps,n===null?ao(e):Ye=n}function cp(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=kh(i,n,n.pendingProps,n.type,void 0,Ze);break;case 11:n=kh(i,n,n.pendingProps,n.type.render,n.ref,Ze);break;case 5:Fc(n);default:Dh(i,n),n=Ye=sm(n,Ai),n=zh(i,n,Ai)}e.memoizedProps=e.pendingProps,n===null?ao(e):Ye=n}function yl(e,n,i,s){xi=Sa=null,Fc(n),ol=null,or=0;var f=n.return;try{if(Ry(e,f,n,i,Ze)){zt=1,Ps(e,In(i,e.current)),Ye=null;return}}catch(d){if(f!==null)throw Ye=f,d;zt=1,Ps(e,In(i,e.current)),Ye=null;return}n.flags&32768?(Je||s===1?e=!0:pl||(Ze&536870912)!==0?e=!1:(Ji=e=!0,(s===2||s===9||s===3||s===6)&&(s=Mn.current,s!==null&&s.tag===13&&(s.flags|=16384))),up(n,e)):ao(n)}function ao(e){var n=e;do{if((n.flags&32768)!==0){up(n,Ji);return}e=n.return;var i=jy(n.alternate,n,Ai);if(i!==null){Ye=i;return}if(n=n.sibling,n!==null){Ye=n;return}Ye=n=e}while(n!==null);zt===0&&(zt=5)}function up(e,n){do{var i=By(e.alternate,e);if(i!==null){i.flags&=32767,Ye=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){Ye=e;return}Ye=e=i}while(e!==null);zt=6,Ye=null}function fp(e,n,i,s,f,d,y,E,O){e.cancelPendingCommit=null;do lo();while(Kt!==0);if((at&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(d=n.lanes|n.childLanes,d|=hc,ve(e,i,d,y,E,O),e===bt&&(Ye=bt=null,Ze=0),bl=n,ta=e,Mi=i,Eu=d,Su=f,ep=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Xy(Te,function(){return gp(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=L.T,L.T=null,f=X.p,X.p=2,y=at,at|=4;try{Iy(e,n,i)}finally{at=y,X.p=f,L.T=s}}Kt=1,dp(),mp(),hp()}}function dp(){if(Kt===1){Kt=0;var e=ta,n=bl,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=L.T,L.T=null;var s=X.p;X.p=2;var f=at;at|=4;try{Yh(n,e);var d=Iu,y=Jd(e.containerInfo),E=d.focusedElem,O=d.selectionRange;if(y!==E&&E&&E.ownerDocument&&Qd(E.ownerDocument.documentElement,E)){if(O!==null&&cc(E)){var G=O.start,J=O.end;if(J===void 0&&(J=G),"selectionStart"in E)E.selectionStart=G,E.selectionEnd=Math.min(J,E.value.length);else{var te=E.ownerDocument||document,P=te&&te.defaultView||window;if(P.getSelection){var V=P.getSelection(),_e=E.textContent.length,Ae=Math.min(O.start,_e),ht=O.end===void 0?Ae:Math.min(O.end,_e);!V.extend&&Ae>ht&&(y=ht,ht=Ae,Ae=y);var I=Zd(E,Ae),j=Zd(E,ht);if(I&&j&&(V.rangeCount!==1||V.anchorNode!==I.node||V.anchorOffset!==I.offset||V.focusNode!==j.node||V.focusOffset!==j.offset)){var $=te.createRange();$.setStart(I.node,I.offset),V.removeAllRanges(),Ae>ht?(V.addRange($),V.extend(j.node,j.offset)):($.setEnd(j.node,j.offset),V.addRange($))}}}}for(te=[],V=E;V=V.parentNode;)V.nodeType===1&&te.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<te.length;E++){var ee=te[E];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}xo=!!Bu,Iu=Bu=null}finally{at=f,X.p=s,L.T=i}}e.current=n,Kt=2}}function mp(){if(Kt===2){Kt=0;var e=ta,n=bl,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=L.T,L.T=null;var s=X.p;X.p=2;var f=at;at|=4;try{Fh(e,n.alternate,n)}finally{at=f,X.p=s,L.T=i}}Kt=3}}function hp(){if(Kt===4||Kt===3){Kt=0,Ha();var e=ta,n=bl,i=Mi,s=ep;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Kt=5:(Kt=0,bl=ta=null,pp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(ea=null),fi(i),n=n.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(Xt,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=L.T,f=X.p,X.p=2,L.T=null;try{for(var d=e.onRecoverableError,y=0;y<s.length;y++){var E=s[y];d(E.value,{componentStack:E.stack})}}finally{L.T=n,X.p=f}}(Mi&3)!==0&&lo(),li(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===Nu?wr++:(wr=0,Nu=e):wr=0,kr(0)}}function pp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,rr(n)))}function lo(){return dp(),mp(),hp(),gp()}function gp(){if(Kt!==5)return!1;var e=ta,n=Eu;Eu=0;var i=fi(Mi),s=L.T,f=X.p;try{X.p=32>i?32:i,L.T=null,i=Su,Su=null;var d=ta,y=Mi;if(Kt=0,bl=ta=null,Mi=0,(at&6)!==0)throw Error(r(331));var E=at;if(at|=4,Qh(d.current),Vh(d,d.current,y,i),at=E,kr(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Xt,d)}catch{}return!0}finally{X.p=f,L.T=s,pp(e,n)}}function bp(e,n,i){n=In(i,n),n=nu(e.stateNode,n,2),e=Vi(e,n,2),e!==null&&(gt(e,2),li(e))}function ut(e,n,i){if(e.tag===3)bp(e,e,i);else for(;n!==null;){if(n.tag===3){bp(n,e,i);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ea===null||!ea.has(s))){e=In(i,e),i=xh(2),s=Vi(n,i,2),s!==null&&(yh(i,s,n,e),gt(s,2),li(s));break}}n=n.return}}function Tu(e,n,i){var s=e.pingCache;if(s===null){s=e.pingCache=new Fy;var f=new Set;s.set(n,f)}else f=s.get(n),f===void 0&&(f=new Set,s.set(n,f));f.has(i)||(yu=!0,f.add(i),e=Yy.bind(null,e,n,i),n.then(e,e))}function Yy(e,n,i){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,bt===e&&(Ze&i)===i&&(zt===4||zt===3&&(Ze&62914560)===Ze&&300>At()-Ws?(at&2)===0&&xl(e,0):_u|=i,gl===Ze&&(gl=0)),li(e)}function xp(e,n){n===0&&(n=De()),e=_a(e,n),e!==null&&(gt(e,n),li(e))}function Ky(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),xp(e,i)}function Vy(e,n){var i=0;switch(e.tag){case 31:case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(n),xp(e,i)}function Xy(e,n){return yt(e,n)}var ro=null,_l=null,Au=!1,so=!1,Mu=!1,ia=0;function li(e){e!==_l&&e.next===null&&(_l===null?ro=_l=e:_l=_l.next=e),so=!0,Au||(Au=!0,Qy())}function kr(e,n){if(!Mu&&so){Mu=!0;do for(var i=!1,s=ro;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var d=0;else{var y=s.suspendedLanes,E=s.pingedLanes;d=(1<<31-rt(42|e)+1)-1,d&=f&~(y&~E),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Ep(s,d))}else d=Ze,d=R(s,s===bt?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(d&3)===0||W(s,d)||(i=!0,Ep(s,d));s=s.next}while(i);Mu=!1}}function Zy(){yp()}function yp(){so=Au=!1;var e=0;ia!==0&&s1()&&(e=ia);for(var n=At(),i=null,s=ro;s!==null;){var f=s.next,d=_p(s,n);d===0?(s.next=null,i===null?ro=f:i.next=f,f===null&&(_l=i)):(i=s,(e!==0||(d&3)!==0)&&(so=!0)),s=f}Kt!==0&&Kt!==5||kr(e),ia!==0&&(ia=0)}function _p(e,n){for(var i=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-rt(d),E=1<<y,O=f[y];O===-1?((E&i)===0||(E&s)!==0)&&(f[y]=xe(E,n)):O<=n&&(e.expiredLanes|=E),d&=~E}if(n=bt,i=Ze,i=R(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,i===0||e===n&&(ct===2||ct===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ut(s),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||W(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(s!==null&&Ut(s),fi(i)){case 2:case 8:i=me;break;case 32:i=Te;break;case 268435456:i=tt;break;default:i=Te}return s=vp.bind(null,e),i=yt(i,s),e.callbackPriority=n,e.callbackNode=i,n}return s!==null&&s!==null&&Ut(s),e.callbackPriority=2,e.callbackNode=null,2}function vp(e,n){if(Kt!==0&&Kt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(lo()&&e.callbackNode!==i)return null;var s=Ze;return s=R(e,e===bt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(np(e,s,n),_p(e,At()),e.callbackNode!=null&&e.callbackNode===i?vp.bind(null,e):null)}function Ep(e,n){if(lo())return null;np(e,n,!0)}function Qy(){c1(function(){(at&6)!==0?yt(Q,Zy):yp()})}function Cu(){if(ia===0){var e=ll;e===0&&(e=da,da<<=1,(da&261888)===0&&(da=256)),ia=e}return ia}function Sp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hi(""+e)}function Np(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function Jy(e,n,i,s,f){if(n==="submit"&&i&&i.stateNode===f){var d=Sp((f[nn]||null).action),y=s.submitter;y&&(n=(n=y[nn]||null)?Sp(n.formAction):y.getAttribute("formAction"),n!==null&&(d=n,y=null));var E=new ys("action","action",null,s,f);e.push({event:E,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ia!==0){var O=y?Np(f,y):new FormData(f);Zc(i,{pending:!0,data:O,method:f.method,action:d},null,O)}}else typeof d=="function"&&(E.preventDefault(),O=y?Np(f,y):new FormData(f),Zc(i,{pending:!0,data:O,method:f.method,action:d},d,O))},currentTarget:f}]})}}for(var Ou=0;Ou<mc.length;Ou++){var zu=mc[Ou],Wy=zu.toLowerCase(),e1=zu[0].toUpperCase()+zu.slice(1);Kn(Wy,"on"+e1)}Kn(tm,"onAnimationEnd"),Kn(nm,"onAnimationIteration"),Kn(im,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(gy,"onTransitionRun"),Kn(by,"onTransitionStart"),Kn(xy,"onTransitionCancel"),Kn(am,"onTransitionEnd"),ue("onMouseEnter",["mouseout","mouseover"]),ue("onMouseLeave",["mouseout","mouseover"]),ue("onPointerEnter",["pointerout","pointerover"]),ue("onPointerLeave",["pointerout","pointerover"]),mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mi("onBeforeInput",["compositionend","keypress","textInput","paste"]),mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="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(" "),t1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tr));function wp(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var s=e[i],f=s.event;s=s.listeners;e:{var d=void 0;if(n)for(var y=s.length-1;0<=y;y--){var E=s[y],O=E.instance,G=E.currentTarget;if(E=E.listener,O!==d&&f.isPropagationStopped())break e;d=E,f.currentTarget=G;try{d(f)}catch(J){Es(J)}f.currentTarget=null,d=O}else for(y=0;y<s.length;y++){if(E=s[y],O=E.instance,G=E.currentTarget,E=E.listener,O!==d&&f.isPropagationStopped())break e;d=E,f.currentTarget=G;try{d(f)}catch(J){Es(J)}f.currentTarget=null,d=O}}}}function Ke(e,n){var i=n[ql];i===void 0&&(i=n[ql]=new Set);var s=e+"__bubble";i.has(s)||(kp(n,e,2,!1),i.add(s))}function Ru(e,n,i){var s=0;n&&(s|=4),kp(i,e,s,n)}var oo="_reactListening"+Math.random().toString(36).slice(2);function Du(e){if(!e[oo]){e[oo]=!0,fs.forEach(function(i){i!=="selectionchange"&&(t1.has(i)||Ru(i,!1,e),Ru(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[oo]||(n[oo]=!0,Ru("selectionchange",!1,n))}}function kp(e,n,i,s){switch(tg(n)){case 2:var f=M1;break;case 8:f=C1;break;default:f=Xu}i=f.bind(null,n,i,e),f=void 0,!ec||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),s?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function Lu(e,n,i,s,f){var d=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var y=s.tag;if(y===3||y===4){var E=s.stateNode.containerInfo;if(E===f)break;if(y===4)for(y=s.return;y!==null;){var O=y.tag;if((O===3||O===4)&&y.stateNode.containerInfo===f)return;y=y.return}for(;E!==null;){if(y=un(E),y===null)return;if(O=y.tag,O===5||O===6||O===26||O===27){s=d=y;continue e}E=E.parentNode}}s=s.return}ps(function(){var G=d,J=Ie(i),te=[];e:{var P=lm.get(e);if(P!==void 0){var V=ys,_e=e;switch(e){case"keypress":if(bs(i)===0)break e;case"keydown":case"keyup":V=Vx;break;case"focusin":_e="focus",V=ac;break;case"focusout":_e="blur",V=ac;break;case"beforeblur":case"afterblur":V=ac;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":V=Dd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=jx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=Qx;break;case tm:case nm:case im:V=Ux;break;case am:V=Wx;break;case"scroll":case"scrollend":V=Dx;break;case"wheel":V=ty;break;case"copy":case"cut":case"paste":V=Fx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=jd;break;case"toggle":case"beforetoggle":V=iy}var Ae=(n&4)!==0,ht=!Ae&&(e==="scroll"||e==="scrollend"),I=Ae?P!==null?P+"Capture":null:P;Ae=[];for(var j=G,$;j!==null;){var ee=j;if($=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||$===null||I===null||(ee=Xl(j,I),ee!=null&&Ae.push(Ar(j,ee,$))),ht)break;j=j.return}0<Ae.length&&(P=new V(P,_e,null,i,J),te.push({event:P,listeners:Ae}))}}if((n&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",P&&i!==Ee&&(_e=i.relatedTarget||i.fromElement)&&(un(_e)||_e[ji]))break e;if((V||P)&&(P=J.window===J?J:(P=J.ownerDocument)?P.defaultView||P.parentWindow:window,V?(_e=i.relatedTarget||i.toElement,V=G,_e=_e?un(_e):null,_e!==null&&(ht=u(_e),Ae=_e.tag,_e!==ht||Ae!==5&&Ae!==27&&Ae!==6)&&(_e=null)):(V=null,_e=G),V!==_e)){if(Ae=Dd,ee="onMouseLeave",I="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(Ae=jd,ee="onPointerLeave",I="onPointerEnter",j="pointer"),ht=V==null?P:Bi(V),$=_e==null?P:Bi(_e),P=new Ae(ee,j+"leave",V,i,J),P.target=ht,P.relatedTarget=$,ee=null,un(J)===G&&(Ae=new Ae(I,j+"enter",_e,i,J),Ae.target=$,Ae.relatedTarget=ht,ee=Ae),ht=ee,V&&_e)t:{for(Ae=n1,I=V,j=_e,$=0,ee=I;ee;ee=Ae(ee))$++;ee=0;for(var we=j;we;we=Ae(we))ee++;for(;0<$-ee;)I=Ae(I),$--;for(;0<ee-$;)j=Ae(j),ee--;for(;$--;){if(I===j||j!==null&&I===j.alternate){Ae=I;break t}I=Ae(I),j=Ae(j)}Ae=null}else Ae=null;V!==null&&Tp(te,P,V,Ae,!1),_e!==null&&ht!==null&&Tp(te,ht,_e,Ae,!0)}}e:{if(P=G?Bi(G):window,V=P.nodeName&&P.nodeName.toLowerCase(),V==="select"||V==="input"&&P.type==="file")var nt=Gd;else if($d(P))if(Pd)nt=my;else{nt=fy;var Se=uy}else V=P.nodeName,!V||V.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?G&&Ui(G.elementType)&&(nt=Gd):nt=dy;if(nt&&(nt=nt(e,G))){qd(te,nt,i,J);break e}Se&&Se(e,P,G),e==="focusout"&&G&&P.type==="number"&&G.memoizedProps.value!=null&&Va(P,"number",P.value)}switch(Se=G?Bi(G):window,e){case"focusin":($d(Se)||Se.contentEditable==="true")&&(Qa=Se,uc=G,ir=null);break;case"focusout":ir=uc=Qa=null;break;case"mousedown":fc=!0;break;case"contextmenu":case"mouseup":case"dragend":fc=!1,Wd(te,i,J);break;case"selectionchange":if(py)break;case"keydown":case"keyup":Wd(te,i,J)}var Fe;if(rc)e:{switch(e){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else Za?Hd(e,i)&&(Qe="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Qe="onCompositionStart");Qe&&(Bd&&i.locale!=="ko"&&(Za||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&Za&&(Fe=zd()):(Fi=J,tc="value"in Fi?Fi.value:Fi.textContent,Za=!0)),Se=co(G,Qe),0<Se.length&&(Qe=new Ld(Qe,e,null,i,J),te.push({event:Qe,listeners:Se}),Fe?Qe.data=Fe:(Fe=Fd(i),Fe!==null&&(Qe.data=Fe)))),(Fe=ly?ry(e,i):sy(e,i))&&(Qe=co(G,"onBeforeInput"),0<Qe.length&&(Se=new Ld("onBeforeInput","beforeinput",null,i,J),te.push({event:Se,listeners:Qe}),Se.data=Fe)),Jy(te,e,G,i,J)}wp(te,n)})}function Ar(e,n,i){return{instance:e,listener:n,currentTarget:i}}function co(e,n){for(var i=n+"Capture",s=[];e!==null;){var f=e,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=Xl(e,i),f!=null&&s.unshift(Ar(e,f,d)),f=Xl(e,n),f!=null&&s.push(Ar(e,f,d))),e.tag===3)return s;e=e.return}return[]}function n1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tp(e,n,i,s,f){for(var d=n._reactName,y=[];i!==null&&i!==s;){var E=i,O=E.alternate,G=E.stateNode;if(E=E.tag,O!==null&&O===s)break;E!==5&&E!==26&&E!==27||G===null||(O=G,f?(G=Xl(i,d),G!=null&&y.unshift(Ar(i,G,O))):f||(G=Xl(i,d),G!=null&&y.push(Ar(i,G,O)))),i=i.return}y.length!==0&&e.push({event:n,listeners:y})}var i1=/\r\n?/g,a1=/\u0000|\uFFFD/g;function Ap(e){return(typeof e=="string"?e:""+e).replace(i1,`
`).replace(a1,"")}function Mp(e,n){return n=Ap(n),Ap(e)===n}function mt(e,n,i,s,f,d){switch(i){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Me(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Me(e,""+s);break;case"className":wn(e,"class",s);break;case"tabIndex":wn(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":wn(e,i,s);break;case"style":ot(e,s,d);break;case"data":if(n!=="object"){wn(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=Hi(""+s),e.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){e.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 d=="function"&&(i==="formAction"?(n!=="input"&&mt(e,n,"name",f.name,f,null),mt(e,n,"formEncType",f.formEncType,f,null),mt(e,n,"formMethod",f.formMethod,f,null),mt(e,n,"formTarget",f.formTarget,f,null)):(mt(e,n,"encType",f.encType,f,null),mt(e,n,"method",f.method,f,null),mt(e,n,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}s=Hi(""+s),e.setAttribute(i,s);break;case"onClick":s!=null&&(e.onclick=ge);break;case"onScroll":s!=null&&Ke("scroll",e);break;case"onScrollEnd":s!=null&&Ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=i}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}i=Hi(""+s),e.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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""+s):e.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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":s===!0?e.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,s):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(i,s):e.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(i):e.setAttribute(i,s);break;case"popover":Ke("beforetoggle",e),Ke("toggle",e),an(e,"popover",s);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":an(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=hi.get(i)||i,an(e,i,s))}}function ju(e,n,i,s,f,d){switch(i){case"style":ot(e,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(r(60));e.innerHTML=i}}break;case"children":typeof s=="string"?Me(e,s):(typeof s=="number"||typeof s=="bigint")&&Me(e,""+s);break;case"onScroll":s!=null&&Ke("scroll",e);break;case"onScrollEnd":s!=null&&Ke("scrollend",e);break;case"onClick":s!=null&&(e.onclick=ge);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pa.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),d=e[nn]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(n,d,f),typeof s=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,s,f);break e}i in e?e[i]=s:s===!0?e.setAttribute(i,""):an(e,i,s)}}}function en(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ke("error",e),Ke("load",e);var s=!1,f=!1,d;for(d in i)if(i.hasOwnProperty(d)){var y=i[d];if(y!=null)switch(d){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:mt(e,n,d,y,i,null)}}f&&mt(e,n,"srcSet",i.srcSet,i,null),s&&mt(e,n,"src",i.src,i,null);return;case"input":Ke("invalid",e);var E=d=y=f=null,O=null,G=null;for(s in i)if(i.hasOwnProperty(s)){var J=i[s];if(J!=null)switch(s){case"name":f=J;break;case"type":y=J;break;case"checked":O=J;break;case"defaultChecked":G=J;break;case"value":d=J;break;case"defaultValue":E=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,n));break;default:mt(e,n,s,J,i,null)}}ga(e,d,E,O,G,y,f,!1);return;case"select":Ke("invalid",e),s=y=d=null;for(f in i)if(i.hasOwnProperty(f)&&(E=i[f],E!=null))switch(f){case"value":d=E;break;case"defaultValue":y=E;break;case"multiple":s=E;default:mt(e,n,f,E,i,null)}n=d,i=y,e.multiple=!!s,n!=null?Zt(e,!!s,n,!1):i!=null&&Zt(e,!!s,i,!0);return;case"textarea":Ke("invalid",e),d=f=s=null;for(y in i)if(i.hasOwnProperty(y)&&(E=i[y],E!=null))switch(y){case"value":s=E;break;case"defaultValue":f=E;break;case"children":d=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:mt(e,n,y,E,i,null)}Xa(e,s,f,d);return;case"option":for(O in i)if(i.hasOwnProperty(O)&&(s=i[O],s!=null))switch(O){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:mt(e,n,O,s,i,null)}return;case"dialog":Ke("beforetoggle",e),Ke("toggle",e),Ke("cancel",e),Ke("close",e);break;case"iframe":case"object":Ke("load",e);break;case"video":case"audio":for(s=0;s<Tr.length;s++)Ke(Tr[s],e);break;case"image":Ke("error",e),Ke("load",e);break;case"details":Ke("toggle",e);break;case"embed":case"source":case"link":Ke("error",e),Ke("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in i)if(i.hasOwnProperty(G)&&(s=i[G],s!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:mt(e,n,G,s,i,null)}return;default:if(Ui(n)){for(J in i)i.hasOwnProperty(J)&&(s=i[J],s!==void 0&&ju(e,n,J,s,i,void 0));return}}for(E in i)i.hasOwnProperty(E)&&(s=i[E],s!=null&&mt(e,n,E,s,i,null))}function l1(e,n,i,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,y=null,E=null,O=null,G=null,J=null;for(V in i){var te=i[V];if(i.hasOwnProperty(V)&&te!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":O=te;default:s.hasOwnProperty(V)||mt(e,n,V,null,s,te)}}for(var P in s){var V=s[P];if(te=i[P],s.hasOwnProperty(P)&&(V!=null||te!=null))switch(P){case"type":d=V;break;case"name":f=V;break;case"checked":G=V;break;case"defaultChecked":J=V;break;case"value":y=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,n));break;default:V!==te&&mt(e,n,P,V,s,te)}}Yl(e,y,E,O,G,J,d,f);return;case"select":V=y=E=P=null;for(d in i)if(O=i[d],i.hasOwnProperty(d)&&O!=null)switch(d){case"value":break;case"multiple":V=O;default:s.hasOwnProperty(d)||mt(e,n,d,null,s,O)}for(f in s)if(d=s[f],O=i[f],s.hasOwnProperty(f)&&(d!=null||O!=null))switch(f){case"value":P=d;break;case"defaultValue":E=d;break;case"multiple":y=d;default:d!==O&&mt(e,n,f,d,s,O)}n=E,i=y,s=V,P!=null?Zt(e,!!i,P,!1):!!s!=!!i&&(n!=null?Zt(e,!!i,n,!0):Zt(e,!!i,i?[]:"",!1));return;case"textarea":V=P=null;for(E in i)if(f=i[E],i.hasOwnProperty(E)&&f!=null&&!s.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:mt(e,n,E,null,s,f)}for(y in s)if(f=s[y],d=i[y],s.hasOwnProperty(y)&&(f!=null||d!=null))switch(y){case"value":P=f;break;case"defaultValue":V=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==d&&mt(e,n,y,f,s,d)}ms(e,P,V);return;case"option":for(var _e in i)if(P=i[_e],i.hasOwnProperty(_e)&&P!=null&&!s.hasOwnProperty(_e))switch(_e){case"selected":e.selected=!1;break;default:mt(e,n,_e,null,s,P)}for(O in s)if(P=s[O],V=i[O],s.hasOwnProperty(O)&&P!==V&&(P!=null||V!=null))switch(O){case"selected":e.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:mt(e,n,O,P,s,V)}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 Ae in i)P=i[Ae],i.hasOwnProperty(Ae)&&P!=null&&!s.hasOwnProperty(Ae)&&mt(e,n,Ae,null,s,P);for(G in s)if(P=s[G],V=i[G],s.hasOwnProperty(G)&&P!==V&&(P!=null||V!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(137,n));break;default:mt(e,n,G,P,s,V)}return;default:if(Ui(n)){for(var ht in i)P=i[ht],i.hasOwnProperty(ht)&&P!==void 0&&!s.hasOwnProperty(ht)&&ju(e,n,ht,void 0,s,P);for(J in s)P=s[J],V=i[J],!s.hasOwnProperty(J)||P===V||P===void 0&&V===void 0||ju(e,n,J,P,s,V);return}}for(var I in i)P=i[I],i.hasOwnProperty(I)&&P!=null&&!s.hasOwnProperty(I)&&mt(e,n,I,null,s,P);for(te in s)P=s[te],V=i[te],!s.hasOwnProperty(te)||P===V||P==null&&V==null||mt(e,n,te,P,s,V)}function Cp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function r1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var f=i[s],d=f.transferSize,y=f.initiatorType,E=f.duration;if(d&&E&&Cp(y)){for(y=0,E=f.responseEnd,s+=1;s<i.length;s++){var O=i[s],G=O.startTime;if(G>E)break;var J=O.transferSize,te=O.initiatorType;J&&Cp(te)&&(O=O.responseEnd,y+=J*(O<E?1:(E-G)/(O-G)))}if(--s,n+=8*(d+y)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Bu=null,Iu=null;function uo(e){return e.nodeType===9?e:e.ownerDocument}function Op(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zp(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Uu(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Hu=null;function s1(){var e=window.event;return e&&e.type==="popstate"?e===Hu?!1:(Hu=e,!0):(Hu=null,!1)}var Rp=typeof setTimeout=="function"?setTimeout:void 0,o1=typeof clearTimeout=="function"?clearTimeout:void 0,Dp=typeof Promise=="function"?Promise:void 0,c1=typeof queueMicrotask=="function"?queueMicrotask:typeof Dp<"u"?function(e){return Dp.resolve(null).then(e).catch(u1)}:Rp;function u1(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Lp(e,n){var i=n,s=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(s===0){e.removeChild(f),Nl(n);return}s--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")s++;else if(i==="html")Mr(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Mr(i);for(var d=i.firstChild;d;){var y=d.nextSibling,E=d.nodeName;d[ha]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=y}}else i==="body"&&Mr(e.ownerDocument.body);i=f}while(i);Nl(n)}function jp(e,n){var i=e;e=0;do{var s=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=s}while(i)}function Fu(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Fu(i),Gl(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function f1(e,n,i,s){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ha])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=qn(e.nextSibling),e===null)break}return null}function d1(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=qn(e.nextSibling),e===null))return null;return e}function Bp(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=qn(e.nextSibling),e===null))return null;return e}function $u(e){return e.data==="$?"||e.data==="$~"}function qu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function m1(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var s=function(){n(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function qn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Gu=null;function Ip(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return qn(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function Up(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function Hp(e,n,i){switch(n=uo(i),e){case"html":if(e=n.documentElement,!e)throw Error(r(452));return e;case"head":if(e=n.head,!e)throw Error(r(453));return e;case"body":if(e=n.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Mr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Gl(e)}var Gn=new Map,Fp=new Set;function fo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ci=X.d;X.d={f:h1,r:p1,D:g1,C:b1,L:x1,m:y1,X:v1,S:_1,M:E1};function h1(){var e=Ci.f(),n=no();return e||n}function p1(e){var n=di(e);n!==null&&n.tag===5&&n.type==="form"?ah(n):Ci.r(e)}var vl=typeof document>"u"?null:document;function $p(e,n,i){var s=vl;if(s&&typeof n=="string"&&n){var f=gn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Fp.has(f)||(Fp.add(f),e={rel:e,crossOrigin:i,href:n},s.querySelector(f)===null&&(n=s.createElement("link"),en(n,"link",e),Ht(n),s.head.appendChild(n)))}}function g1(e){Ci.D(e),$p("dns-prefetch",e,null)}function b1(e,n){Ci.C(e,n),$p("preconnect",e,n)}function x1(e,n,i){Ci.L(e,n,i);var s=vl;if(s&&e&&n){var f='link[rel="preload"][as="'+gn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+gn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+gn(i.imageSizes)+'"]')):f+='[href="'+gn(e)+'"]';var d=f;switch(n){case"style":d=El(e);break;case"script":d=Sl(e)}Gn.has(d)||(e=x({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),Gn.set(d,e),s.querySelector(f)!==null||n==="style"&&s.querySelector(Cr(d))||n==="script"&&s.querySelector(Or(d))||(n=s.createElement("link"),en(n,"link",e),Ht(n),s.head.appendChild(n)))}}function y1(e,n){Ci.m(e,n);var i=vl;if(i&&e){var s=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+gn(s)+'"][href="'+gn(e)+'"]',d=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Sl(e)}if(!Gn.has(d)&&(e=x({rel:"modulepreload",href:e},n),Gn.set(d,e),i.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Or(d)))return}s=i.createElement("link"),en(s,"link",e),Ht(s),i.head.appendChild(s)}}}function _1(e,n,i){Ci.S(e,n,i);var s=vl;if(s&&e){var f=Ii(s).hoistableStyles,d=El(e);n=n||"default";var y=f.get(d);if(!y){var E={loading:0,preload:null};if(y=s.querySelector(Cr(d)))E.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":n},i),(i=Gn.get(d))&&Pu(e,i);var O=y=s.createElement("link");Ht(O),en(O,"link",e),O._p=new Promise(function(G,J){O.onload=G,O.onerror=J}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,mo(y,n,s)}y={type:"stylesheet",instance:y,count:1,state:E},f.set(d,y)}}}function v1(e,n){Ci.X(e,n);var i=vl;if(i&&e){var s=Ii(i).hoistableScripts,f=Sl(e),d=s.get(f);d||(d=i.querySelector(Or(f)),d||(e=x({src:e,async:!0},n),(n=Gn.get(f))&&Yu(e,n),d=i.createElement("script"),Ht(d),en(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(f,d))}}function E1(e,n){Ci.M(e,n);var i=vl;if(i&&e){var s=Ii(i).hoistableScripts,f=Sl(e),d=s.get(f);d||(d=i.querySelector(Or(f)),d||(e=x({src:e,async:!0,type:"module"},n),(n=Gn.get(f))&&Yu(e,n),d=i.createElement("script"),Ht(d),en(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(f,d))}}function qp(e,n,i,s){var f=(f=he.current)?fo(f):null;if(!f)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=El(i.href),i=Ii(f).hoistableStyles,s=i.get(n),s||(s={type:"style",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=El(i.href);var d=Ii(f).hoistableStyles,y=d.get(e);if(y||(f=f.ownerDocument||f,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=f.querySelector(Cr(e)))&&!d._p&&(y.instance=d,y.state.loading=5),Gn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Gn.set(e,i),d||S1(f,e,i,y.state))),n&&s===null)throw Error(r(528,""));return y}if(n&&s!==null)throw Error(r(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Sl(i),i=Ii(f).hoistableScripts,s=i.get(n),s||(s={type:"script",instance:null,count:0,state:null},i.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function El(e){return'href="'+gn(e)+'"'}function Cr(e){return'link[rel="stylesheet"]['+e+"]"}function Gp(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function S1(e,n,i,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),en(n,"link",i),Ht(n),e.head.appendChild(n))}function Sl(e){return'[src="'+gn(e)+'"]'}function Or(e){return"script[async]"+e}function Pp(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+gn(i.href)+'"]');if(s)return n.instance=s,Ht(s),s;var f=x({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Ht(s),en(s,"style",f),mo(s,i.precedence,e),n.instance=s;case"stylesheet":f=El(i.href);var d=e.querySelector(Cr(f));if(d)return n.state.loading|=4,n.instance=d,Ht(d),d;s=Gp(i),(f=Gn.get(f))&&Pu(s,f),d=(e.ownerDocument||e).createElement("link"),Ht(d);var y=d;return y._p=new Promise(function(E,O){y.onload=E,y.onerror=O}),en(d,"link",s),n.state.loading|=4,mo(d,i.precedence,e),n.instance=d;case"script":return d=Sl(i.src),(f=e.querySelector(Or(d)))?(n.instance=f,Ht(f),f):(s=i,(f=Gn.get(d))&&(s=x({},i),Yu(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),Ht(f),en(f,"link",s),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(r(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,mo(s,i.precedence,e));return n.instance}function mo(e,n,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,d=f,y=0;y<s.length;y++){var E=s[y];if(E.dataset.precedence===n)d=E;else if(d!==f)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function Pu(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Yu(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var ho=null;function Yp(e,n,i){if(ho===null){var s=new Map,f=ho=new Map;f.set(i,s)}else f=ho,s=f.get(i),s||(s=new Map,f.set(i,s));if(s.has(e))return s;for(s.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var d=i[f];if(!(d[ha]||d[Dt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(n)||"";y=e+y;var E=s.get(y);E?E.push(d):s.set(y,[d])}}return s}function Kp(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function N1(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Vp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function w1(e,n,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=El(s.href),d=n.querySelector(Cr(f));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=po.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=d,Ht(d);return}d=n.ownerDocument||n,s=Gp(s),(f=Gn.get(f))&&Pu(s,f),d=d.createElement("link"),Ht(d);var y=d;y._p=new Promise(function(E,O){y.onload=E,y.onerror=O}),en(d,"link",s),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=po.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var Ku=0;function k1(e,n){return e.stylesheets&&e.count===0&&bo(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var s=setTimeout(function(){if(e.stylesheets&&bo(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+n);0<e.imgBytes&&Ku===0&&(Ku=62500*r1());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bo(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Ku?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function po(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var go=null;function bo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,go=new Map,n.forEach(T1,e),go=null,po.call(e))}function T1(e,n){if(!(n.state.loading&4)){var i=go.get(e);if(i)var s=i.get(null);else{i=new Map,go.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var y=f[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(i.set(y.dataset.precedence,y),s=y)}s&&i.set(null,s)}f=n.instance,y=f.getAttribute("data-precedence"),d=i.get(y)||s,d===s&&i.set(null,f),i.set(y,f),this.count++,s=po.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),d?d.parentNode.insertBefore(f,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var zr={$$typeof:z,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function A1(e,n,i,s,f,d,y,E,O){this.tag=1,this.containerInfo=e,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=Et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Et(0),this.hiddenUpdates=Et(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Xp(e,n,i,s,f,d,y,E,O,G,J,te){return e=new A1(e,n,i,y,O,G,J,te,E),n=1,d===!0&&(n|=24),d=An(3,null,null,n),e.current=d,d.stateNode=e,n=kc(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:s,isDehydrated:i,cache:n},Cc(d),e}function Zp(e){return e?(e=el,e):el}function Qp(e,n,i,s,f,d){f=Zp(f),s.context===null?s.context=f:s.pendingContext=f,s=Ki(n),s.payload={element:i},d=d===void 0?null:d,d!==null&&(s.callback=d),i=Vi(e,s,n),i!==null&&(En(i,e,n),ur(i,e,n))}function Jp(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Vu(e,n){Jp(e,n),(e=e.alternate)&&Jp(e,n)}function Wp(e){if(e.tag===13||e.tag===31){var n=_a(e,67108864);n!==null&&En(n,e,67108864),Vu(e,67108864)}}function eg(e){if(e.tag===13||e.tag===31){var n=Rn();n=wt(n);var i=_a(e,n);i!==null&&En(i,e,n),Vu(e,n)}}var xo=!0;function M1(e,n,i,s){var f=L.T;L.T=null;var d=X.p;try{X.p=2,Xu(e,n,i,s)}finally{X.p=d,L.T=f}}function C1(e,n,i,s){var f=L.T;L.T=null;var d=X.p;try{X.p=8,Xu(e,n,i,s)}finally{X.p=d,L.T=f}}function Xu(e,n,i,s){if(xo){var f=Zu(s);if(f===null)Lu(e,n,s,yo,i),ng(e,s);else if(z1(f,e,n,i,s))s.stopPropagation();else if(ng(e,s),n&4&&-1<O1.indexOf(e)){for(;f!==null;){var d=di(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=hn(d.pendingLanes);if(y!==0){var E=d;for(E.pendingLanes|=2,E.entangledLanes|=2;y;){var O=1<<31-rt(y);E.entanglements[1]|=O,y&=~O}li(d),(at&6)===0&&(eo=At()+500,kr(0))}}break;case 31:case 13:E=_a(d,2),E!==null&&En(E,d,2),no(),Vu(d,2)}if(d=Zu(s),d===null&&Lu(e,n,s,yo,i),d===f)break;f=d}f!==null&&s.stopPropagation()}else Lu(e,n,s,null,i)}}function Zu(e){return e=Ie(e),Qu(e)}var yo=null;function Qu(e){if(yo=null,e=un(e),e!==null){var n=u(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===31){if(e=h(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return yo=e,null}function tg(e){switch(e){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(Fa()){case Q:return 2;case me:return 8;case Te:case Ge:return 32;case tt:return 268435456;default:return 32}default:return 32}}var Ju=!1,la=null,ra=null,sa=null,Rr=new Map,Dr=new Map,oa=[],O1="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 ng(e,n){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ra=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":Rr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(n.pointerId)}}function Lr(e,n,i,s,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:i,eventSystemFlags:s,nativeEvent:d,targetContainers:[f]},n!==null&&(n=di(n),n!==null&&Wp(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function z1(e,n,i,s,f){switch(n){case"focusin":return la=Lr(la,e,n,i,s,f),!0;case"dragenter":return ra=Lr(ra,e,n,i,s,f),!0;case"mouseover":return sa=Lr(sa,e,n,i,s,f),!0;case"pointerover":var d=f.pointerId;return Rr.set(d,Lr(Rr.get(d)||null,e,n,i,s,f)),!0;case"gotpointercapture":return d=f.pointerId,Dr.set(d,Lr(Dr.get(d)||null,e,n,i,s,f)),!0}return!1}function ig(e){var n=un(e.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,Ga(e.priority,function(){eg(i)});return}}else if(n===31){if(n=h(i),n!==null){e.blockedOn=n,Ga(e.priority,function(){eg(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _o(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=Zu(e.nativeEvent);if(i===null){i=e.nativeEvent;var s=new i.constructor(i.type,i);Ee=s,i.target.dispatchEvent(s),Ee=null}else return n=di(i),n!==null&&Wp(n),e.blockedOn=i,!1;n.shift()}return!0}function ag(e,n,i){_o(e)&&i.delete(n)}function R1(){Ju=!1,la!==null&&_o(la)&&(la=null),ra!==null&&_o(ra)&&(ra=null),sa!==null&&_o(sa)&&(sa=null),Rr.forEach(ag),Dr.forEach(ag)}function vo(e,n){e.blockedOn===n&&(e.blockedOn=null,Ju||(Ju=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,R1)))}var Eo=null;function lg(e){Eo!==e&&(Eo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Eo===e&&(Eo=null);for(var n=0;n<e.length;n+=3){var i=e[n],s=e[n+1],f=e[n+2];if(typeof s!="function"){if(Qu(s||i)===null)continue;break}var d=di(i);d!==null&&(e.splice(n,3),n-=3,Zc(d,{pending:!0,data:f,method:i.method,action:s},s,f))}}))}function Nl(e){function n(O){return vo(O,e)}la!==null&&vo(la,e),ra!==null&&vo(ra,e),sa!==null&&vo(sa,e),Rr.forEach(n),Dr.forEach(n);for(var i=0;i<oa.length;i++){var s=oa[i];s.blockedOn===e&&(s.blockedOn=null)}for(;0<oa.length&&(i=oa[0],i.blockedOn===null);)ig(i),i.blockedOn===null&&oa.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var f=i[s],d=i[s+1],y=f[nn]||null;if(typeof d=="function")y||lg(i);else if(y){var E=null;if(d&&d.hasAttribute("formAction")){if(f=d,y=d[nn]||null)E=y.formAction;else if(Qu(f)!==null)continue}else E=y.action;typeof E=="function"?i[s+1]=E:(i.splice(s,3),s-=3),lg(i)}}}function rg(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return f=y})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),s||setTimeout(i,20)}function i(){if(!s&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Wu(e){this._internalRoot=e}So.prototype.render=Wu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var i=n.current,s=Rn();Qp(i,s,e,n,null,null)},So.prototype.unmount=Wu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Qp(e.current,2,null,e,null,null),no(),n[ji]=null}};function So(e){this._internalRoot=e}So.prototype.unstable_scheduleHydration=function(e){if(e){var n=qa();e={blockedOn:null,target:e,priority:n};for(var i=0;i<oa.length&&n!==0&&n<oa[i].priority;i++);oa.splice(i,0,e),i===0&&ig(e)}};var sg=a.version;if(sg!=="19.2.4")throw Error(r(527,sg,"19.2.4"));X.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(n),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var D1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var No=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!No.isDisabled&&No.supportsFiber)try{Xt=No.inject(D1),Ct=No}catch{}}return Br.createRoot=function(e,n){if(!o(e))throw Error(r(299));var i=!1,s="",f=hh,d=ph,y=gh;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError)),n=Xp(e,1,!1,null,null,i,s,null,f,d,y,rg),e[ji]=n.current,Du(e),new Wu(n)},Br.hydrateRoot=function(e,n,i){if(!o(e))throw Error(r(299));var s=!1,f="",d=hh,y=ph,E=gh,O=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError),i.formState!==void 0&&(O=i.formState)),n=Xp(e,1,!0,n,i??null,s,f,O,d,y,E,rg),n.context=Zp(null),i=n.current,s=Rn(),s=wt(s),f=Ki(s),f.callback=null,Vi(i,f,s),i=s,n.current.lanes=i,gt(n,i),li(n),e[ji]=n.current,Du(e),new So(n)},Br.version="19.2.4",Br}var bg;function q1(){if(bg)return nf.exports;bg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),nf.exports=$1(),nf.exports}var G1=q1();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $0=(...t)=>t.filter((a,l,r)=>!!a&&a.trim()!==""&&r.indexOf(a)===l).join(" ").trim();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y1=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,l,r)=>r?r.toUpperCase():l.toLowerCase());/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xg=t=>{const a=Y1(t);return a.charAt(0).toUpperCase()+a.slice(1)};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var K1={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"};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V1=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X1=F.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:o="",children:u,iconNode:c,...h},g)=>F.createElement("svg",{ref:g,...K1,width:a,height:a,stroke:t,strokeWidth:r?Number(l)*24/Number(a):l,className:$0("lucide",o),...!u&&!V1(h)&&{"aria-hidden":"true"},...h},[...c.map(([p,b])=>F.createElement(p,b)),...Array.isArray(u)?u:[u]]));/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const je=(t,a)=>{const l=F.forwardRef(({className:r,...o},u)=>F.createElement(X1,{ref:u,iconNode:a,className:$0(`lucide-${P1(xg(t))}`,`lucide-${t}`,r),...o}));return l.displayName=xg(t),l};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Q1=je("arrow-left",Z1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J1=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],jl=je("bot",J1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W1=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],e_=je("bug",W1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t_=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],n_=je("calendar",t_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i_=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],q0=je("chart-column",i_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a_=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ld=je("check",a_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ri=je("chevron-down",l_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Di=je("chevron-right",r_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s_=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],o_=je("chevron-up",s_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],rd=je("clock",c_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u_=[["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"}]],f_=je("copy",u_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d_=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],m_=je("cpu",d_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h_=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],p_=je("dollar-sign",h_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g_=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Io=je("download",g_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b_=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],yg=je("file-archive",b_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x_=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],G0=je("file-code",x_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y_=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],P0=je("file-plus-corner",y_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const __=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],v_=je("file-up",__);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E_=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Xr=je("folder-open",E_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S_=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Y0=je("git-branch",S_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N_=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],K0=je("hash",N_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w_=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],k_=je("heart",w_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T_=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],V0=je("layers",T_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A_=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],X0=je("lightbulb",A_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M_=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],C_=je("list",M_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O_=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Da=je("loader-circle",O_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z_=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],R_=je("menu",z_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D_=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Zr=je("message-square",D_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L_=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],j_=je("monitor",L_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],I_=je("panel-left-close",B_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U_=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Z0=je("pencil",U_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H_=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],sd=je("search",H_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F_=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],$_=je("settings",F_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q_=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Q0=je("share-2",q_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G_=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],P_=je("sliders-horizontal",G_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y_=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],K_=je("sparkles",Y_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V_=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Lf=je("square-check-big",V_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}]],_g=je("square-minus",X_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],jf=je("square",Z_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q_=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],J0=je("terminal",Q_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J_=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],W_=je("trash-2",J_);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ev=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],tv=je("upload",ev);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nv=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],od=je("wrench",nv);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Hl=je("x",iv);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const av=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],W0=je("zap",av);function vg({title:t,message:a,confirmLabel:l="Confirm",cancelLabel:r="Cancel",onConfirm:o,onCancel:u,loading:c=!1}){return m.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[m.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:u}),m.jsxs("div",{className:"relative bg-zinc-900 border border-zinc-700 rounded-lg shadow-2xl w-full max-w-md mx-4",children:[m.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-zinc-800",children:[m.jsx("h2",{className:"text-sm font-semibold text-zinc-100",children:t}),m.jsx("button",{onClick:u,className:"text-zinc-500 hover:text-zinc-300 transition",children:m.jsx(Hl,{className:"w-4 h-4"})})]}),m.jsx("div",{className:"px-5 py-4",children:m.jsx("p",{className:"text-sm text-zinc-300 whitespace-pre-line",children:a})}),m.jsxs("div",{className:"flex justify-end gap-2 px-5 py-3 border-t border-zinc-800",children:[m.jsx("button",{onClick:u,disabled:c,className:"px-3 py-1.5 text-xs text-zinc-400 hover:text-zinc-200 border border-zinc-700 hover:border-zinc-600 rounded transition disabled:opacity-50",children:r}),m.jsx("button",{onClick:o,disabled:c,className:"px-3 py-1.5 text-xs text-white bg-cyan-600 hover:bg-cyan-500 rounded transition disabled:opacity-50 disabled:cursor-not-allowed",children:c?"Sending...":l})]})]})]})}const lv=["My donated sessions may contain code snippets, file paths, and conversation content from my coding agent interactions.","Donated data will be used for academic research on coding agent behavior by CHATS-Lab at Northeastern University.","I have reviewed the selected sessions and confirm they do not contain sensitive credentials, API keys, or private information I wish to keep confidential.","Donated data may be shared in anonymized or aggregated form in research publications and datasets."];function rv({sessionCount:t,onConfirm:a,onCancel:l}){const[r,o]=F.useState(!1);return m.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[m.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:l}),m.jsxs("div",{className:"relative bg-zinc-900 border border-zinc-700 rounded-lg shadow-2xl w-full max-w-lg mx-4",children:[m.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-zinc-800",children:[m.jsxs("h2",{className:"text-sm font-semibold text-zinc-100",children:["Donate ",t," Session",t!==1?"s":""]}),m.jsx("button",{onClick:l,className:"text-zinc-500 hover:text-zinc-300 transition",children:m.jsx(Hl,{className:"w-4 h-4"})})]}),m.jsxs("div",{className:"px-5 py-4 space-y-4",children:[m.jsxs("p",{className:"text-sm text-zinc-300",children:["Your sessions will be donated to"," ",m.jsx("a",{href:"https://github.com/CHATS-lab",target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300 underline",children:"CHATS-Lab"})," ","at Northeastern University for research on coding agent behavior."]}),m.jsxs("div",{className:"space-y-2 text-xs text-zinc-400",children:[m.jsx("p",{className:"font-medium text-zinc-300",children:"By donating, you acknowledge that:"}),m.jsx("ul",{className:"space-y-1.5 list-disc list-inside",children:lv.map((u,c)=>m.jsx("li",{children:u},c))})]}),m.jsxs("label",{className:"flex items-start gap-2.5 cursor-pointer group",children:[m.jsx("input",{type:"checkbox",checked:r,onChange:u=>o(u.target.checked),className:"mt-0.5 w-4 h-4 rounded border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-0 cursor-pointer"}),m.jsx("span",{className:"text-xs text-zinc-300 group-hover:text-zinc-100 transition select-none",children:"I have read and agree to the above terms"})]})]}),m.jsxs("div",{className:"flex justify-end gap-2 px-5 py-3 border-t border-zinc-800",children:[m.jsx("button",{onClick:l,className:"px-3 py-1.5 text-xs text-zinc-400 hover:text-zinc-200 border border-zinc-700 hover:border-zinc-600 rounded transition",children:"Cancel"}),m.jsx("button",{onClick:a,disabled:!r,className:"px-3 py-1.5 text-xs text-white bg-rose-600 hover:bg-rose-500 rounded transition disabled:opacity-40 disabled:cursor-not-allowed",children:"Donate"})]})]})]})}function Bf({side:t,onResize:a}){const l=F.useRef(!1),r=F.useRef(0),o=F.useCallback(h=>{if(!l.current)return;const g=h.clientX-r.current;r.current=h.clientX,a(t==="left"?g:-g)},[a,t]),u=F.useCallback(()=>{l.current=!1,document.body.style.cursor="",document.body.style.userSelect=""},[]);F.useEffect(()=>(document.addEventListener("mousemove",o),document.addEventListener("mouseup",u),()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",u)}),[o,u]);const c=h=>{h.preventDefault(),l.current=!0,r.current=h.clientX,document.body.style.cursor="col-resize",document.body.style.userSelect="none"};return m.jsx("div",{onMouseDown:c,className:`absolute top-0 bottom-0 w-1 cursor-col-resize z-20 hover:bg-cyan-500/40 active:bg-cyan-500/60 transition-colors ${t==="left"?"right-0":"left-0"}`})}const Qr=60,Bl=3600,Eg=86400;function Sg(t){if(!t)return"";const a=Math.floor((Date.now()-new Date(t).getTime())/1e3);return a<Qr?"now":a<Bl?`${Math.floor(a/Qr)}m`:a<Eg?`${Math.floor(a/Bl)}h`:`${Math.floor(a/Eg)}d`}const sv=/<(?:system-reminder|command-name|command-message|user-prompt-submit-hook|local-command-caveat|local-command-stdout|task-notification)[^>]*>[\s\S]*?<\/(?:system-reminder|command-name|command-message|user-prompt-submit-hook|local-command-caveat|local-command-stdout|task-notification)>/g;function Jr(t){return t.replace(sv,"").trim()}function Uo(t,a){return t.length<=a?t:t.slice(0,a)+"..."}function Rl(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:String(t)}function Qn(t){return t>=1e3?`$${(t/1e3).toFixed(1)}K`:t>=1?`$${t.toFixed(2)}`:t>=.01?`$${t.toFixed(2)}`:t>0?"<$0.01":"$0.00"}function zi(t){if(!t||t<=0)return"0m";const a=Math.floor(t/Bl),l=Math.floor(t%Bl/Qr),r=[];return a>0&&r.push(`${a}h`),(l>0||r.length===0)&&r.push(`${l}m`),r.join(" ")}function Il(t){return Jr(typeof t=="string"?t:t.filter(a=>a.type==="text"&&a.text).map(a=>a.text).join(`

`))}function If(t){return Il(t.message)}function Dl(t){if(!t)return"Unknown";const l=t.replace(/[\\/]+$/,"").split(/[\\/]/).filter(Boolean);return l.length===0?t:l.slice(-2).join("/")}function sf(t){const a=Math.floor(t/Bl),l=Math.floor(t%Bl/Qr),r=Math.floor(t%Qr);return a>0?`${a}:${String(l).padStart(2,"0")}:${String(r).padStart(2,"0")}`:`${l}:${String(r).padStart(2,"0")}`}function ov(t,a){const l=new Date(t);return isNaN(l.getTime())?"":a&&(()=>{const o=new Date(a);return o.getFullYear()===l.getFullYear()&&o.getMonth()===l.getMonth()&&o.getDate()===l.getDate()})()?l.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}):l.toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}function cv(t){const a=new Date(t);return isNaN(a.getTime())?"":a.toLocaleString(void 0,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"})}const uv=[{key:"user_prompts",label:"User prompts",description:"All messages typed by the user"},{key:"agent_content",label:"Agent responses & tool calls",description:"Agent messages, tool names, and arguments"},{key:"session_id",label:"Session ID",description:"Match against session identifiers"}];function fv({sources:t,onApply:a,onClose:l}){const r=new Set(t),o=u=>{r.has(u)?r.delete(u):r.add(u),a(new Set(r))};return m.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[m.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:l}),m.jsxs("div",{className:"relative bg-zinc-900 border border-zinc-700 rounded-lg shadow-2xl w-full max-w-sm mx-4",children:[m.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-zinc-800",children:[m.jsx("h2",{className:"text-sm font-semibold text-zinc-100",children:"Search Options"}),m.jsx("button",{onClick:l,className:"text-zinc-500 hover:text-zinc-300 transition",children:m.jsx(Hl,{className:"w-4 h-4"})})]}),m.jsx("div",{className:"px-5 py-4 space-y-3",children:uv.map(u=>m.jsxs("label",{className:"flex items-start gap-3 cursor-pointer group",children:[m.jsx("input",{type:"checkbox",checked:t.has(u.key),onChange:()=>o(u.key),className:"mt-0.5 accent-cyan-500 w-4 h-4 rounded border-zinc-600 bg-zinc-800"}),m.jsxs("div",{children:[m.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100 transition",children:u.label}),m.jsx("p",{className:"text-xs text-zinc-500",children:u.description})]})]},u.key))}),m.jsx("div",{className:"flex justify-end gap-2 px-5 py-3 border-t border-zinc-800",children:m.jsx("button",{onClick:l,className:"px-3 py-1.5 text-xs text-zinc-400 hover:text-zinc-200 transition",children:"Close"})})]})]})}const eb="flex gap-0.5 bg-zinc-800 rounded p-0.5",Ho="flex-1 flex items-center justify-center gap-1.5 text-xs py-1.5 rounded transition",La="bg-zinc-700 text-zinc-100",ja="text-zinc-500 hover:text-zinc-300",dv="text-[11px] text-zinc-400 mt-0.5 leading-tight",tb="text-zinc-400 text-xs";function mv({sessions:t,selectedId:a,onSelect:l,checkedIds:r,onCheckedChange:o,viewMode:u,onViewModeChange:c,agentFilter:h,onAgentFilterChange:g,availableAgents:p}){const{fetchWithToken:b}=ss(),[x,_]=F.useState(""),[v,S]=F.useState(new Set),[T,A]=F.useState(null),[w,C]=F.useState(!1),[z,q]=F.useState(!1),[K,D]=F.useState(()=>new Set(["user_prompts"])),Z=F.useRef(null),oe=300,de=new Set(["user_prompts"]),U=K.size!==de.size||![...de].every(B=>K.has(B)),re=F.useCallback((B,N)=>{if(!B.trim()){A(null),C(!1);return}C(!0);const ce=new URLSearchParams({q:B.trim(),sources:[...N].join(",")});b(`/api/sessions/search?${ce}`).then(pe=>pe.json()).then(pe=>A(new Set(pe))).catch(pe=>{console.error("Search failed:",pe),A(null)}).finally(()=>C(!1))},[b]);F.useEffect(()=>(Z.current&&clearTimeout(Z.current),Z.current=setTimeout(()=>re(x,K),oe),()=>{Z.current&&clearTimeout(Z.current)}),[x,K,re]);const ae=t.filter(B=>{var N;return h!=="all"&&((N=B.agent)==null?void 0:N.name)!==h?!1:x&&T!==null?T.has(B.session_id):!0}),ie=new Set(ae.map(B=>B.session_id)),Y=[...r].filter(B=>ie.has(B)),H=ae.length>0&&Y.length===ae.length,L=Y.length>0&&!H,X=F.useMemo(()=>{const B=new Map;for(const N of ae){const ce=N.project_path||"Unknown",pe=B.get(ce)||[];pe.push(N),B.set(ce,pe)}return B},[ae]),ne=B=>{B==="project"&&u!=="project"&&S(new Set),c(B)},le=B=>{const N=new Set(v);N.has(B)?N.delete(B):N.add(B),S(N)},k=()=>{if(H){const B=new Set(r);for(const N of ae)B.delete(N.session_id);o(B)}else{const B=new Set(r);for(const N of ae)B.add(N.session_id);o(B)}},M=B=>{const N=new Set(r);N.has(B)?N.delete(B):N.add(B),o(N)};return m.jsxs("div",{className:"flex flex-col flex-1 min-h-0",children:[m.jsxs("div",{className:"p-3 space-y-2 border-b border-zinc-800",children:[m.jsxs("div",{className:eb,children:[m.jsxs("button",{onClick:()=>ne("project"),className:`${Ho} ${u==="project"?La:ja}`,children:[m.jsx(Xr,{className:"w-3.5 h-3.5"}),"By Project"]}),m.jsxs("button",{onClick:()=>ne("time"),className:`${Ho} ${u==="time"?La:ja}`,children:[m.jsx(rd,{className:"w-3.5 h-3.5"}),"By Time"]})]}),m.jsxs("div",{className:"relative",children:[w?m.jsx(Da,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-cyan-400 animate-spin"}):m.jsx(sd,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-zinc-500"}),m.jsx("input",{type:"text",placeholder:"Search sessions...",value:x,onChange:B=>_(B.target.value),className:"w-full bg-zinc-800 text-zinc-200 text-sm rounded pl-7 pr-8 py-1.5 border border-zinc-700 focus:outline-none focus:border-cyan-600 placeholder:text-zinc-500"}),m.jsx("button",{onClick:()=>q(!0),className:"absolute right-1.5 top-1/2 -translate-y-1/2 p-0.5 text-zinc-500 hover:text-zinc-300 transition",title:"Search options",children:m.jsxs("div",{className:"relative",children:[m.jsx(P_,{className:"w-3.5 h-3.5"}),U&&m.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-1.5 h-1.5 bg-cyan-400 rounded-full"})]})})]}),z&&m.jsx(fv,{sources:K,onApply:D,onClose:()=>q(!1)}),p.length>0&&m.jsxs("div",{className:"relative",children:[m.jsx(jl,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-zinc-500"}),m.jsxs("select",{value:h,onChange:B=>g(B.target.value),className:"w-full bg-zinc-800 text-zinc-200 text-sm rounded pl-7 pr-2 py-1.5 border border-zinc-700 focus:outline-none focus:border-cyan-600 appearance-none cursor-pointer",children:[m.jsx("option",{value:"all",children:"All agents"}),p.map(B=>m.jsx("option",{value:B,children:B},B))]})]}),m.jsxs("button",{onClick:k,className:"flex items-center gap-1.5 text-xs text-zinc-300 hover:text-zinc-100 transition",children:[H?m.jsx(Lf,{className:"w-3.5 h-3.5 text-cyan-400"}):L?m.jsx(_g,{className:"w-3.5 h-3.5 text-cyan-400"}):m.jsx(jf,{className:"w-3.5 h-3.5"}),"Select all (",ae.length,")"]})]}),m.jsx("div",{className:"flex-1 overflow-y-auto",children:u==="time"?ae.map(B=>m.jsx(Ng,{session:B,selectedId:a,checkedIds:r,onSelect:l,onToggle:M,showProject:!0},B.session_id)):Array.from(X.entries()).map(([B,N])=>{const ce=N.map(Le=>Le.session_id),pe=ce.every(Le=>r.has(Le)),he=!pe&&ce.some(Le=>r.has(Le)),ze=Le=>{Le.stopPropagation();const qe=new Set(r);if(pe)for(const ft of ce)qe.delete(ft);else for(const ft of ce)qe.add(ft);o(qe)};return m.jsxs("div",{children:[m.jsxs("div",{className:"sticky top-0 z-10 w-full flex items-center gap-1 bg-zinc-900 border-b border-zinc-800 text-sm text-zinc-200",children:[m.jsx("button",{onClick:ze,className:"shrink-0 pl-3 pr-1 py-2 text-zinc-500 hover:text-cyan-400 transition",title:pe?"Deselect project":"Select project",children:pe?m.jsx(Lf,{className:"w-3.5 h-3.5 text-cyan-400"}):he?m.jsx(_g,{className:"w-3.5 h-3.5 text-cyan-400"}):m.jsx(jf,{className:"w-3.5 h-3.5"})}),m.jsxs("button",{onClick:()=>le(B),className:"flex-1 flex items-center gap-2 pr-3 py-2 hover:text-zinc-100 transition min-w-0",children:[v.has(B)?m.jsx(Ri,{className:"w-3.5 h-3.5 shrink-0"}):m.jsx(Di,{className:"w-3.5 h-3.5 shrink-0"}),m.jsx(Xr,{className:"w-3.5 h-3.5 shrink-0 text-zinc-500"}),m.jsx("span",{className:"truncate font-medium",title:B,children:Dl(B)}),m.jsx("span",{className:"ml-auto text-zinc-500 shrink-0",children:N.length})]})]}),v.has(B)&&N.map(Le=>m.jsx(Ng,{session:Le,selectedId:a,checkedIds:r,onSelect:l,onToggle:M,showProject:!1},Le.session_id))]},B)})})]})}function Ng({session:t,selectedId:a,checkedIds:l,onSelect:r,onToggle:o,showProject:u}){return m.jsxs("div",{className:`flex items-center border-b border-zinc-800/50 transition-all duration-200 ${a===t.session_id?"bg-cyan-600/15 border-l-2 border-l-cyan-400":"hover:bg-zinc-800/50 border-l-2 border-l-transparent"}`,children:[m.jsx("button",{onClick:c=>{c.stopPropagation(),o(t.session_id)},className:`shrink-0 pr-1 text-zinc-500 hover:text-cyan-400 transition ${u?"pl-3":"pl-8"}`,children:l.has(t.session_id)?m.jsx(Lf,{className:"w-3.5 h-3.5 text-cyan-400"}):m.jsx(jf,{className:"w-3.5 h-3.5"})}),m.jsxs("button",{onClick:()=>r(t.session_id),className:"flex-1 text-left pr-3 py-2.5 min-w-0",children:[u&&m.jsxs("div",{className:"flex items-center justify-between mb-0.5",children:[m.jsx("span",{className:"text-xs text-zinc-400 uppercase tracking-wide",title:t.project_path||"",children:Dl(t.project_path||"")}),m.jsx("span",{className:"text-xs text-zinc-400",children:Sg(t.timestamp??null)})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("p",{className:"text-sm text-zinc-200 line-clamp-2 leading-relaxed flex-1 min-w-0",children:Uo(t.first_message||"",120)||"Empty session"}),!u&&m.jsx("span",{className:"text-xs text-zinc-400 shrink-0",children:Sg(t.timestamp??null)})]})]})]})}class hv{diff(a,l,r={}){let o;typeof r=="function"?(o=r,r={}):"callback"in r&&(o=r.callback);const u=this.castInput(a,r),c=this.castInput(l,r),h=this.removeEmpty(this.tokenize(u,r)),g=this.removeEmpty(this.tokenize(c,r));return this.diffWithOptionsObj(h,g,r,o)}diffWithOptionsObj(a,l,r,o){var u;const c=C=>{if(C=this.postProcess(C,r),o){setTimeout(function(){o(C)},0);return}else return C},h=l.length,g=a.length;let p=1,b=h+g;r.maxEditLength!=null&&(b=Math.min(b,r.maxEditLength));const x=(u=r.timeout)!==null&&u!==void 0?u:1/0,_=Date.now()+x,v=[{oldPos:-1,lastComponent:void 0}];let S=this.extractCommon(v[0],l,a,0,r);if(v[0].oldPos+1>=g&&S+1>=h)return c(this.buildValues(v[0].lastComponent,l,a));let T=-1/0,A=1/0;const w=()=>{for(let C=Math.max(T,-p);C<=Math.min(A,p);C+=2){let z;const q=v[C-1],K=v[C+1];q&&(v[C-1]=void 0);let D=!1;if(K){const oe=K.oldPos-C;D=K&&0<=oe&&oe<h}const Z=q&&q.oldPos+1<g;if(!D&&!Z){v[C]=void 0;continue}if(!Z||D&&q.oldPos<K.oldPos?z=this.addToPath(K,!0,!1,0,r):z=this.addToPath(q,!1,!0,1,r),S=this.extractCommon(z,l,a,C,r),z.oldPos+1>=g&&S+1>=h)return c(this.buildValues(z.lastComponent,l,a))||!0;v[C]=z,z.oldPos+1>=g&&(A=Math.min(A,C-1)),S+1>=h&&(T=Math.max(T,C+1))}p++};if(o)(function C(){setTimeout(function(){if(p>b||Date.now()>_)return o(void 0);w()||C()},0)})();else for(;p<=b&&Date.now()<=_;){const C=w();if(C)return C}}addToPath(a,l,r,o,u){const c=a.lastComponent;return c&&!u.oneChangePerToken&&c.added===l&&c.removed===r?{oldPos:a.oldPos+o,lastComponent:{count:c.count+1,added:l,removed:r,previousComponent:c.previousComponent}}:{oldPos:a.oldPos+o,lastComponent:{count:1,added:l,removed:r,previousComponent:c}}}extractCommon(a,l,r,o,u){const c=l.length,h=r.length;let g=a.oldPos,p=g-o,b=0;for(;p+1<c&&g+1<h&&this.equals(r[g+1],l[p+1],u);)p++,g++,b++,u.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return b&&!u.oneChangePerToken&&(a.lastComponent={count:b,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=g,p}equals(a,l,r){return r.comparator?r.comparator(a,l):a===l||!!r.ignoreCase&&a.toLowerCase()===l.toLowerCase()}removeEmpty(a){const l=[];for(let r=0;r<a.length;r++)a[r]&&l.push(a[r]);return l}castInput(a,l){return a}tokenize(a,l){return Array.from(a)}join(a){return a.join("")}postProcess(a,l){return a}get useLongestToken(){return!1}buildValues(a,l,r){const o=[];let u;for(;a;)o.push(a),u=a.previousComponent,delete a.previousComponent,a=u;o.reverse();const c=o.length;let h=0,g=0,p=0;for(;h<c;h++){const b=o[h];if(b.removed)b.value=this.join(r.slice(p,p+b.count)),p+=b.count;else{if(!b.added&&this.useLongestToken){let x=l.slice(g,g+b.count);x=x.map(function(_,v){const S=r[p+v];return S.length>_.length?S:_}),b.value=this.join(x)}else b.value=this.join(l.slice(g,g+b.count));g+=b.count,b.added||(p+=b.count)}}return o}}class pv extends hv{constructor(){super(...arguments),this.tokenize=bv}equals(a,l,r){return r.ignoreWhitespace?((!r.newlineIsToken||!a.includes(`
`))&&(a=a.trim()),(!r.newlineIsToken||!l.includes(`
`))&&(l=l.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(a.endsWith(`
`)&&(a=a.slice(0,-1)),l.endsWith(`
`)&&(l=l.slice(0,-1))),super.equals(a,l,r)}}const gv=new pv;function wg(t,a,l){return gv.diff(t,a,l)}function bv(t,a){a.stripTrailingCr&&(t=t.replace(/\r\n/g,`
`));const l=[],r=t.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let o=0;o<r.length;o++){const u=r[o];o%2&&!a.newlineIsToken?l[l.length-1]+=u:l.push(u)}return l}const xv={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function kg(t,a,l,r,o,u,c){let h;c?typeof c=="function"?h={callback:c}:h=c:h={},typeof h.context>"u"&&(h.context=4);const g=h.context;if(h.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(h.callback){const{callback:b}=h;wg(l,r,Object.assign(Object.assign({},h),{callback:x=>{const _=p(x);b(_)}}))}else return p(wg(l,r,h));function p(b){if(!b)return;b.push({value:"",lines:[]});function x(C){return C.map(function(z){return" "+z})}const _=[];let v=0,S=0,T=[],A=1,w=1;for(let C=0;C<b.length;C++){const z=b[C],q=z.lines||_v(z.value);if(z.lines=q,z.added||z.removed){if(!v){const K=b[C-1];v=A,S=w,K&&(T=g>0?x(K.lines.slice(-g)):[],v-=T.length,S-=T.length)}for(const K of q)T.push((z.added?"+":"-")+K);z.added?w+=q.length:A+=q.length}else{if(v)if(q.length<=g*2&&C<b.length-2)for(const K of x(q))T.push(K);else{const K=Math.min(q.length,g);for(const Z of x(q.slice(0,K)))T.push(Z);const D={oldStart:v,oldLines:A-v+K,newStart:S,newLines:w-S+K,lines:T};_.push(D),v=0,S=0,T=[]}A+=q.length,w+=q.length}}for(const C of _)for(let z=0;z<C.lines.length;z++)C.lines[z].endsWith(`
`)?C.lines[z]=C.lines[z].slice(0,-1):(C.lines.splice(z+1,0,"\\ No newline at end of file"),z++);return{oldFileName:t,newFileName:a,oldHeader:o,newHeader:u,hunks:_}}}function Uf(t,a){if(a||(a=xv),Array.isArray(t)){if(t.length>1&&!a.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return t.map(r=>Uf(r,a)).join(`
`)}const l=[];a.includeIndex&&t.oldFileName==t.newFileName&&l.push("Index: "+t.oldFileName),a.includeUnderline&&l.push("==================================================================="),a.includeFileHeaders&&(l.push("--- "+t.oldFileName+(typeof t.oldHeader>"u"?"":"	"+t.oldHeader)),l.push("+++ "+t.newFileName+(typeof t.newHeader>"u"?"":"	"+t.newHeader)));for(let r=0;r<t.hunks.length;r++){const o=t.hunks[r];o.oldLines===0&&(o.oldStart-=1),o.newLines===0&&(o.newStart-=1),l.push("@@ -"+o.oldStart+","+o.oldLines+" +"+o.newStart+","+o.newLines+" @@");for(const u of o.lines)l.push(u)}return l.join(`
`)+`
`}function yv(t,a,l,r,o,u,c){if(typeof c=="function"&&(c={callback:c}),c!=null&&c.callback){const{callback:h}=c;kg(t,a,l,r,o,u,Object.assign(Object.assign({},c),{callback:g=>{h(g?Uf(g,c.headerOptions):void 0)}}))}else{const h=kg(t,a,l,r,o,u,c);return h?Uf(h,c==null?void 0:c.headerOptions):void 0}}function _v(t){const a=t.endsWith(`
`),l=t.split(`
`).map(r=>r+`
`);return a?l.pop():l.push(l.pop().slice(0,-1)),l}function vv(t,a){const l={};return(t[t.length-1]===""?[...t,""]:t).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const Ev=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Nv={};function Tg(t,a){return(Nv.jsx?Sv:Ev).test(t)}const wv=/[ \t\n\f\r]/g;function kv(t){return typeof t=="object"?t.type==="text"?Ag(t.value):!1:Ag(t)}function Ag(t){return t.replace(wv,"")===""}class ts{constructor(a,l,r){this.normal=l,this.property=a,r&&(this.space=r)}}ts.prototype.normal={};ts.prototype.property={};ts.prototype.space=void 0;function nb(t,a){const l={},r={};for(const o of t)Object.assign(l,o.property),Object.assign(r,o.normal);return new ts(l,r,a)}function Hf(t){return t.toLowerCase()}class Nn{constructor(a,l){this.attribute=l,this.property=a}}Nn.prototype.attribute="";Nn.prototype.booleanish=!1;Nn.prototype.boolean=!1;Nn.prototype.commaOrSpaceSeparated=!1;Nn.prototype.commaSeparated=!1;Nn.prototype.defined=!1;Nn.prototype.mustUseProperty=!1;Nn.prototype.number=!1;Nn.prototype.overloadedBoolean=!1;Nn.prototype.property="";Nn.prototype.spaceSeparated=!1;Nn.prototype.space=void 0;let Tv=0;const $e=Ia(),Yt=Ia(),Ff=Ia(),fe=Ia(),vt=Ia(),Ll=Ia(),Dn=Ia();function Ia(){return 2**++Tv}const $f=Object.freeze(Object.defineProperty({__proto__:null,boolean:$e,booleanish:Yt,commaOrSpaceSeparated:Dn,commaSeparated:Ll,number:fe,overloadedBoolean:Ff,spaceSeparated:vt},Symbol.toStringTag,{value:"Module"})),of=Object.keys($f);class cd extends Nn{constructor(a,l,r,o){let u=-1;if(super(a,l),Mg(this,"space",o),typeof r=="number")for(;++u<of.length;){const c=of[u];Mg(this,of[u],(r&$f[c])===$f[c])}}}cd.prototype.defined=!0;function Mg(t,a,l){l&&(t[a]=l)}function Fl(t){const a={},l={};for(const[r,o]of Object.entries(t.properties)){const u=new cd(r,t.transform(t.attributes||{},r),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),a[r]=u,l[Hf(r)]=r,l[Hf(u.attribute)]=r}return new ts(a,l,t.space)}const ib=Fl({properties:{ariaActiveDescendant:null,ariaAtomic:Yt,ariaAutoComplete:null,ariaBusy:Yt,ariaChecked:Yt,ariaColCount:fe,ariaColIndex:fe,ariaColSpan:fe,ariaControls:vt,ariaCurrent:null,ariaDescribedBy:vt,ariaDetails:null,ariaDisabled:Yt,ariaDropEffect:vt,ariaErrorMessage:null,ariaExpanded:Yt,ariaFlowTo:vt,ariaGrabbed:Yt,ariaHasPopup:null,ariaHidden:Yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vt,ariaLevel:fe,ariaLive:null,ariaModal:Yt,ariaMultiLine:Yt,ariaMultiSelectable:Yt,ariaOrientation:null,ariaOwns:vt,ariaPlaceholder:null,ariaPosInSet:fe,ariaPressed:Yt,ariaReadOnly:Yt,ariaRelevant:null,ariaRequired:Yt,ariaRoleDescription:vt,ariaRowCount:fe,ariaRowIndex:fe,ariaRowSpan:fe,ariaSelected:Yt,ariaSetSize:fe,ariaSort:null,ariaValueMax:fe,ariaValueMin:fe,ariaValueNow:fe,ariaValueText:null,role:null},transform(t,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function ab(t,a){return a in t?t[a]:a}function lb(t,a){return ab(t,a.toLowerCase())}const Av=Fl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ll,acceptCharset:vt,accessKey:vt,action:null,allow:null,allowFullScreen:$e,allowPaymentRequest:$e,allowUserMedia:$e,alt:null,as:null,async:$e,autoCapitalize:null,autoComplete:vt,autoFocus:$e,autoPlay:$e,blocking:vt,capture:null,charSet:null,checked:$e,cite:null,className:vt,cols:fe,colSpan:null,content:null,contentEditable:Yt,controls:$e,controlsList:vt,coords:fe|Ll,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$e,defer:$e,dir:null,dirName:null,disabled:$e,download:Ff,draggable:Yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$e,formTarget:null,headers:vt,height:fe,hidden:Ff,high:fe,href:null,hrefLang:null,htmlFor:vt,httpEquiv:vt,id:null,imageSizes:null,imageSrcSet:null,inert:$e,inputMode:null,integrity:null,is:null,isMap:$e,itemId:null,itemProp:vt,itemRef:vt,itemScope:$e,itemType:vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$e,low:fe,manifest:null,max:null,maxLength:fe,media:null,method:null,min:null,minLength:fe,multiple:$e,muted:$e,name:null,nonce:null,noModule:$e,noValidate:$e,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:$e,optimum:fe,pattern:null,ping:vt,placeholder:null,playsInline:$e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$e,referrerPolicy:null,rel:vt,required:$e,reversed:$e,rows:fe,rowSpan:fe,sandbox:vt,scope:null,scoped:$e,seamless:$e,selected:$e,shadowRootClonable:$e,shadowRootDelegatesFocus:$e,shadowRootMode:null,shape:null,size:fe,sizes:null,slot:null,span:fe,spellCheck:Yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:fe,step:null,style:null,tabIndex:fe,target:null,title:null,translate:null,type:null,typeMustMatch:$e,useMap:null,value:Yt,width:fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vt,axis:null,background:null,bgColor:null,border:fe,borderColor:null,bottomMargin:fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$e,declare:$e,event:null,face:null,frame:null,frameBorder:null,hSpace:fe,leftMargin:fe,link:null,longDesc:null,lowSrc:null,marginHeight:fe,marginWidth:fe,noResize:$e,noHref:$e,noShade:$e,noWrap:$e,object:null,profile:null,prompt:null,rev:null,rightMargin:fe,rules:null,scheme:null,scrolling:Yt,standby:null,summary:null,text:null,topMargin:fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$e,disableRemotePlayback:$e,prefix:null,property:null,results:fe,security:null,unselectable:null},space:"html",transform:lb}),Mv=Fl({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:Dn,accentHeight:fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:fe,amplitude:fe,arabicForm:null,ascent:fe,attributeName:null,attributeType:null,azimuth:fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:fe,by:null,calcMode:null,capHeight:fe,className:vt,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:fe,diffuseConstant:fe,direction:null,display:null,dur:null,divisor:fe,dominantBaseline:null,download:$e,dx:null,dy:null,edgeMode:null,editable:null,elevation:fe,enableBackground:null,end:null,event:null,exponent:fe,externalResourcesRequired:null,fill:null,fillOpacity:fe,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:Ll,g2:Ll,glyphName:Ll,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:fe,horizOriginX:fe,horizOriginY:fe,id:null,ideographic:fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:fe,k:fe,k1:fe,k2:fe,k3:fe,k4:fe,kernelMatrix:Dn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:fe,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:fe,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:fe,overlineThickness:fe,paintOrder:null,panose1:null,path:null,pathLength:fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:fe,pointsAtY:fe,pointsAtZ:fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dn,rev:Dn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dn,requiredFeatures:Dn,requiredFonts:Dn,requiredFormats:Dn,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:fe,specularExponent:fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:fe,strikethroughThickness:fe,string:null,stroke:null,strokeDashArray:Dn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:fe,strokeOpacity:fe,strokeWidth:null,style:null,surfaceScale:fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dn,tabIndex:fe,tableValues:null,target:null,targetX:fe,targetY:fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:fe,underlineThickness:fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:fe,values:null,vAlphabetic:fe,vMathematical:fe,vectorEffect:null,vHanging:fe,vIdeographic:fe,version:null,vertAdvY:fe,vertOriginX:fe,vertOriginY:fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ab}),rb=Fl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,a){return"xlink:"+a.slice(5).toLowerCase()}}),sb=Fl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lb}),ob=Fl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,a){return"xml:"+a.slice(3).toLowerCase()}}),Cv={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"},Ov=/[A-Z]/g,Cg=/-[a-z]/g,zv=/^data[-\w.:]+$/i;function Rv(t,a){const l=Hf(a);let r=a,o=Nn;if(l in t.normal)return t.property[t.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&zv.test(a)){if(a.charAt(4)==="-"){const u=a.slice(5).replace(Cg,Lv);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=a.slice(4);if(!Cg.test(u)){let c=u.replace(Ov,Dv);c.charAt(0)!=="-"&&(c="-"+c),a="data"+c}}o=cd}return new o(r,a)}function Dv(t){return"-"+t.toLowerCase()}function Lv(t){return t.charAt(1).toUpperCase()}const jv=nb([ib,Av,rb,sb,ob],"html"),ud=nb([ib,Mv,rb,sb,ob],"svg");function Bv(t){return t.join(" ").trim()}var wl={},cf,Og;function Iv(){if(Og)return cf;Og=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,l=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,h=/^\s+|\s+$/g,g=`
`,p="/",b="*",x="",_="comment",v="declaration";function S(A,w){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];w=w||{};var C=1,z=1;function q(Y){var H=Y.match(a);H&&(C+=H.length);var L=Y.lastIndexOf(g);z=~L?Y.length-L:z+Y.length}function K(){var Y={line:C,column:z};return function(H){return H.position=new D(Y),de(),H}}function D(Y){this.start=Y,this.end={line:C,column:z},this.source=w.source}D.prototype.content=A;function Z(Y){var H=new Error(w.source+":"+C+":"+z+": "+Y);if(H.reason=Y,H.filename=w.source,H.line=C,H.column=z,H.source=A,!w.silent)throw H}function oe(Y){var H=Y.exec(A);if(H){var L=H[0];return q(L),A=A.slice(L.length),H}}function de(){oe(l)}function U(Y){var H;for(Y=Y||[];H=re();)H!==!1&&Y.push(H);return Y}function re(){var Y=K();if(!(p!=A.charAt(0)||b!=A.charAt(1))){for(var H=2;x!=A.charAt(H)&&(b!=A.charAt(H)||p!=A.charAt(H+1));)++H;if(H+=2,x===A.charAt(H-1))return Z("End of comment missing");var L=A.slice(2,H-2);return z+=2,q(L),A=A.slice(H),z+=2,Y({type:_,comment:L})}}function ae(){var Y=K(),H=oe(r);if(H){if(re(),!oe(o))return Z("property missing ':'");var L=oe(u),X=Y({type:v,property:T(H[0].replace(t,x)),value:L?T(L[0].replace(t,x)):x});return oe(c),X}}function ie(){var Y=[];U(Y);for(var H;H=ae();)H!==!1&&(Y.push(H),U(Y));return Y}return de(),ie()}function T(A){return A?A.replace(h,x):x}return cf=S,cf}var zg;function Uv(){if(zg)return wl;zg=1;var t=wl&&wl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wl,"__esModule",{value:!0}),wl.default=l;const a=t(Iv());function l(r,o){let u=null;if(!r||typeof r!="string")return u;const c=(0,a.default)(r),h=typeof o=="function";return c.forEach(g=>{if(g.type!=="declaration")return;const{property:p,value:b}=g;h?o(p,b,g):b&&(u=u||{},u[p]=b)}),u}return wl}var Ir={},Rg;function Hv(){if(Rg)return Ir;Rg=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,l=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(p){return!p||l.test(p)||t.test(p)},c=function(p,b){return b.toUpperCase()},h=function(p,b){return"".concat(b,"-")},g=function(p,b){return b===void 0&&(b={}),u(p)?p:(p=p.toLowerCase(),b.reactCompat?p=p.replace(o,h):p=p.replace(r,h),p.replace(a,c))};return Ir.camelCase=g,Ir}var Ur,Dg;function Fv(){if(Dg)return Ur;Dg=1;var t=Ur&&Ur.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},a=t(Uv()),l=Hv();function r(o,u){var c={};return!o||typeof o!="string"||(0,a.default)(o,function(h,g){h&&g&&(c[(0,l.camelCase)(h,u)]=g)}),c}return r.default=r,Ur=r,Ur}var $v=Fv();const qv=id($v),cb=ub("end"),fd=ub("start");function ub(t){return a;function a(l){const r=l&&l.position&&l.position[t]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Gv(t){const a=fd(t),l=cb(t);if(a&&l)return{start:a,end:l}}function Yr(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Lg(t.position):"start"in t||"end"in t?Lg(t):"line"in t||"column"in t?qf(t):""}function qf(t){return jg(t&&t.line)+":"+jg(t&&t.column)}function Lg(t){return qf(t&&t.start)+"-"+qf(t&&t.end)}function jg(t){return t&&typeof t=="number"?t:1}class sn extends Error{constructor(a,l,r){super(),typeof l=="string"&&(r=l,l=void 0);let o="",u={},c=!1;if(l&&("line"in l&&"column"in l?u={place:l}:"start"in l&&"end"in l?u={place:l}:"type"in l?u={ancestors:[l],place:l.position}:u={...l}),typeof a=="string"?o=a:!u.cause&&a&&(c=!0,o=a.message,u.cause=a),!u.ruleId&&!u.source&&typeof r=="string"){const g=r.indexOf(":");g===-1?u.ruleId=r:(u.source=r.slice(0,g),u.ruleId=r.slice(g+1))}if(!u.place&&u.ancestors&&u.ancestors){const g=u.ancestors[u.ancestors.length-1];g&&(u.place=g.position)}const h=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=h?h.line:void 0,this.name=Yr(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}sn.prototype.file="";sn.prototype.name="";sn.prototype.reason="";sn.prototype.message="";sn.prototype.stack="";sn.prototype.column=void 0;sn.prototype.line=void 0;sn.prototype.ancestors=void 0;sn.prototype.cause=void 0;sn.prototype.fatal=void 0;sn.prototype.place=void 0;sn.prototype.ruleId=void 0;sn.prototype.source=void 0;const dd={}.hasOwnProperty,Pv=new Map,Yv=/[A-Z]/g,Kv=new Set(["table","tbody","thead","tfoot","tr"]),Vv=new Set(["td","th"]),fb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Xv(t,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=a.filePath||void 0;let r;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=iE(l,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=nE(l,a.jsx,a.jsxs)}const o={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:r,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?ud:jv,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},u=db(o,t,void 0);return u&&typeof u!="string"?u:o.create(t,o.Fragment,{children:u||void 0},void 0)}function db(t,a,l){if(a.type==="element")return Zv(t,a,l);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Qv(t,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Wv(t,a,l);if(a.type==="mdxjsEsm")return Jv(t,a);if(a.type==="root")return eE(t,a,l);if(a.type==="text")return tE(t,a)}function Zv(t,a,l){const r=t.schema;let o=r;a.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=ud,t.schema=o),t.ancestors.push(a);const u=hb(t,a.tagName,!1),c=aE(t,a);let h=hd(t,a);return Kv.has(a.tagName)&&(h=h.filter(function(g){return typeof g=="string"?!kv(g):!0})),mb(t,c,u,a),md(c,h),t.ancestors.pop(),t.schema=r,t.create(a,u,c,l)}function Qv(t,a){if(a.data&&a.data.estree&&t.evaluater){const r=a.data.estree.body[0];return r.type,t.evaluater.evaluateExpression(r.expression)}Wr(t,a.position)}function Jv(t,a){if(a.data&&a.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(a.data.estree);Wr(t,a.position)}function Wv(t,a,l){const r=t.schema;let o=r;a.name==="svg"&&r.space==="html"&&(o=ud,t.schema=o),t.ancestors.push(a);const u=a.name===null?t.Fragment:hb(t,a.name,!0),c=lE(t,a),h=hd(t,a);return mb(t,c,u,a),md(c,h),t.ancestors.pop(),t.schema=r,t.create(a,u,c,l)}function eE(t,a,l){const r={};return md(r,hd(t,a)),t.create(a,t.Fragment,r,l)}function tE(t,a){return a.value}function mb(t,a,l,r){typeof l!="string"&&l!==t.Fragment&&t.passNode&&(a.node=r)}function md(t,a){if(a.length>0){const l=a.length>1?a:a[0];l&&(t.children=l)}}function nE(t,a,l){return r;function r(o,u,c,h){const p=Array.isArray(c.children)?l:a;return h?p(u,c,h):p(u,c)}}function iE(t,a){return l;function l(r,o,u,c){const h=Array.isArray(u.children),g=fd(r);return a(o,u,c,h,{columnNumber:g?g.column-1:void 0,fileName:t,lineNumber:g?g.line:void 0},void 0)}}function aE(t,a){const l={};let r,o;for(o in a.properties)if(o!=="children"&&dd.call(a.properties,o)){const u=rE(t,o,a.properties[o]);if(u){const[c,h]=u;t.tableCellAlignToStyle&&c==="align"&&typeof h=="string"&&Vv.has(a.tagName)?r=h:l[c]=h}}if(r){const u=l.style||(l.style={});u[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return l}function lE(t,a){const l={};for(const r of a.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&t.evaluater){const u=r.data.estree.body[0];u.type;const c=u.expression;c.type;const h=c.properties[0];h.type,Object.assign(l,t.evaluater.evaluateExpression(h.argument))}else Wr(t,a.position);else{const o=r.name;let u;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&t.evaluater){const h=r.value.data.estree.body[0];h.type,u=t.evaluater.evaluateExpression(h.expression)}else Wr(t,a.position);else u=r.value===null?!0:r.value;l[o]=u}return l}function hd(t,a){const l=[];let r=-1;const o=t.passKeys?new Map:Pv;for(;++r<a.children.length;){const u=a.children[r];let c;if(t.passKeys){const g=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(g){const p=o.get(g)||0;c=g+"-"+p,o.set(g,p+1)}}const h=db(t,u,c);h!==void 0&&l.push(h)}return l}function rE(t,a,l){const r=Rv(t.schema,a);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=r.commaSeparated?vv(l):Bv(l)),r.property==="style"){let o=typeof l=="object"?l:sE(t,String(l));return t.stylePropertyNameCase==="css"&&(o=oE(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&r.space?Cv[r.property]||r.property:r.attribute,l]}}function sE(t,a){try{return qv(a,{reactCompat:!0})}catch(l){if(t.ignoreInvalidStyle)return{};const r=l,o=new sn("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=fb+"#cannot-parse-style-attribute",o}}function hb(t,a,l){let r;if(!l)r={type:"Literal",value:a};else if(a.includes(".")){const o=a.split(".");let u=-1,c;for(;++u<o.length;){const h=Tg(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};c=c?{type:"MemberExpression",object:c,property:h,computed:!!(u&&h.type==="Literal"),optional:!1}:h}r=c}else r=Tg(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(r.type==="Literal"){const o=r.value;return dd.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(r);Wr(t)}function Wr(t,a){const l=new sn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=t.filePath||void 0,l.url=fb+"#cannot-handle-mdx-estrees-without-createevaluater",l}function oE(t){const a={};let l;for(l in t)dd.call(t,l)&&(a[cE(l)]=t[l]);return a}function cE(t){let a=t.replace(Yv,uE);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function uE(t){return"-"+t.toLowerCase()}const uf={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"]},fE={};function pd(t,a){const l=fE,r=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,o=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return pb(t,r,o)}function pb(t,a,l){if(dE(t)){if("value"in t)return t.type==="html"&&!l?"":t.value;if(a&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Bg(t.children,a,l)}return Array.isArray(t)?Bg(t,a,l):""}function Bg(t,a,l){const r=[];let o=-1;for(;++o<t.length;)r[o]=pb(t[o],a,l);return r.join("")}function dE(t){return!!(t&&typeof t=="object")}const Ig=document.createElement("i");function gd(t){const a="&"+t+";";Ig.innerHTML=a;const l=Ig.textContent;return l.charCodeAt(l.length-1)===59&&t!=="semi"||l===a?!1:l}function Ln(t,a,l,r){const o=t.length;let u=0,c;if(a<0?a=-a>o?0:o+a:a=a>o?o:a,l=l>0?l:0,r.length<1e4)c=Array.from(r),c.unshift(a,l),t.splice(...c);else for(l&&t.splice(a,l);u<r.length;)c=r.slice(u,u+1e4),c.unshift(a,0),t.splice(...c),u+=1e4,a+=1e4}function Pn(t,a){return t.length>0?(Ln(t,t.length,0,a),t):a}const Ug={}.hasOwnProperty;function gb(t){const a={};let l=-1;for(;++l<t.length;)mE(a,t[l]);return a}function mE(t,a){let l;for(l in a){const o=(Ug.call(t,l)?t[l]:void 0)||(t[l]={}),u=a[l];let c;if(u)for(c in u){Ug.call(o,c)||(o[c]=[]);const h=u[c];hE(o[c],Array.isArray(h)?h:h?[h]:[])}}}function hE(t,a){let l=-1;const r=[];for(;++l<a.length;)(a[l].add==="after"?t:r).push(a[l]);Ln(t,0,0,r)}function bb(t,a){const l=Number.parseInt(t,a);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function Jn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const mn=fa(/[A-Za-z]/),rn=fa(/[\dA-Za-z]/),pE=fa(/[#-'*+\--9=?A-Z^-~]/);function Fo(t){return t!==null&&(t<32||t===127)}const Gf=fa(/\d/),gE=fa(/[\dA-Fa-f]/),bE=fa(/[!-/:-@[-`{-~]/);function ke(t){return t!==null&&t<-2}function xt(t){return t!==null&&(t<0||t===32)}function Ve(t){return t===-2||t===-1||t===32}const Vo=fa(new RegExp("\\p{P}|\\p{S}","u")),Ba=fa(/\s/);function fa(t){return a;function a(l){return l!==null&&l>-1&&t.test(String.fromCharCode(l))}}function $l(t){const a=[];let l=-1,r=0,o=0;for(;++l<t.length;){const u=t.charCodeAt(l);let c="";if(u===37&&rn(t.charCodeAt(l+1))&&rn(t.charCodeAt(l+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const h=t.charCodeAt(l+1);u<56320&&h>56319&&h<57344?(c=String.fromCharCode(u,h),o=1):c="�"}else c=String.fromCharCode(u);c&&(a.push(t.slice(r,l),encodeURIComponent(c)),r=l+o+1,c=""),o&&(l+=o,o=0)}return a.join("")+t.slice(r)}function et(t,a,l,r){const o=r?r-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(g){return Ve(g)?(t.enter(l),h(g)):a(g)}function h(g){return Ve(g)&&u++<o?(t.consume(g),h):(t.exit(l),a(g))}}const xE={tokenize:yE};function yE(t){const a=t.attempt(this.parser.constructs.contentInitial,r,o);let l;return a;function r(h){if(h===null){t.consume(h);return}return t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),et(t,a,"linePrefix")}function o(h){return t.enter("paragraph"),u(h)}function u(h){const g=t.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=g),l=g,c(h)}function c(h){if(h===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(h);return}return ke(h)?(t.consume(h),t.exit("chunkText"),u):(t.consume(h),c)}}const _E={tokenize:vE},Hg={tokenize:EE};function vE(t){const a=this,l=[];let r=0,o,u,c;return h;function h(z){if(r<l.length){const q=l[r];return a.containerState=q[1],t.attempt(q[0].continuation,g,p)(z)}return p(z)}function g(z){if(r++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,o&&C();const q=a.events.length;let K=q,D;for(;K--;)if(a.events[K][0]==="exit"&&a.events[K][1].type==="chunkFlow"){D=a.events[K][1].end;break}w(r);let Z=q;for(;Z<a.events.length;)a.events[Z][1].end={...D},Z++;return Ln(a.events,K+1,0,a.events.slice(q)),a.events.length=Z,p(z)}return h(z)}function p(z){if(r===l.length){if(!o)return _(z);if(o.currentConstruct&&o.currentConstruct.concrete)return S(z);a.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return a.containerState={},t.check(Hg,b,x)(z)}function b(z){return o&&C(),w(r),_(z)}function x(z){return a.parser.lazy[a.now().line]=r!==l.length,c=a.now().offset,S(z)}function _(z){return a.containerState={},t.attempt(Hg,v,S)(z)}function v(z){return r++,l.push([a.currentConstruct,a.containerState]),_(z)}function S(z){if(z===null){o&&C(),w(0),t.consume(z);return}return o=o||a.parser.flow(a.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),T(z)}function T(z){if(z===null){A(t.exit("chunkFlow"),!0),w(0),t.consume(z);return}return ke(z)?(t.consume(z),A(t.exit("chunkFlow")),r=0,a.interrupt=void 0,h):(t.consume(z),T)}function A(z,q){const K=a.sliceStream(z);if(q&&K.push(null),z.previous=u,u&&(u.next=z),u=z,o.defineSkip(z.start),o.write(K),a.parser.lazy[z.start.line]){let D=o.events.length;for(;D--;)if(o.events[D][1].start.offset<c&&(!o.events[D][1].end||o.events[D][1].end.offset>c))return;const Z=a.events.length;let oe=Z,de,U;for(;oe--;)if(a.events[oe][0]==="exit"&&a.events[oe][1].type==="chunkFlow"){if(de){U=a.events[oe][1].end;break}de=!0}for(w(r),D=Z;D<a.events.length;)a.events[D][1].end={...U},D++;Ln(a.events,oe+1,0,a.events.slice(Z)),a.events.length=D}}function w(z){let q=l.length;for(;q-- >z;){const K=l[q];a.containerState=K[1],K[0].exit.call(a,t)}l.length=z}function C(){o.write([null]),u=void 0,o=void 0,a.containerState._closeFlow=void 0}}function EE(t,a,l){return et(t,t.attempt(this.parser.constructs.document,a,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ul(t){if(t===null||xt(t)||Ba(t))return 1;if(Vo(t))return 2}function Xo(t,a,l){const r=[];let o=-1;for(;++o<t.length;){const u=t[o].resolveAll;u&&!r.includes(u)&&(a=u(a,l),r.push(u))}return a}const Pf={name:"attention",resolveAll:SE,tokenize:NE};function SE(t,a){let l=-1,r,o,u,c,h,g,p,b;for(;++l<t.length;)if(t[l][0]==="enter"&&t[l][1].type==="attentionSequence"&&t[l][1]._close){for(r=l;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&a.sliceSerialize(t[r][1]).charCodeAt(0)===a.sliceSerialize(t[l][1]).charCodeAt(0)){if((t[r][1]._close||t[l][1]._open)&&(t[l][1].end.offset-t[l][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[l][1].end.offset-t[l][1].start.offset)%3))continue;g=t[r][1].end.offset-t[r][1].start.offset>1&&t[l][1].end.offset-t[l][1].start.offset>1?2:1;const x={...t[r][1].end},_={...t[l][1].start};Fg(x,-g),Fg(_,g),c={type:g>1?"strongSequence":"emphasisSequence",start:x,end:{...t[r][1].end}},h={type:g>1?"strongSequence":"emphasisSequence",start:{...t[l][1].start},end:_},u={type:g>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[l][1].start}},o={type:g>1?"strong":"emphasis",start:{...c.start},end:{...h.end}},t[r][1].end={...c.start},t[l][1].start={...h.end},p=[],t[r][1].end.offset-t[r][1].start.offset&&(p=Pn(p,[["enter",t[r][1],a],["exit",t[r][1],a]])),p=Pn(p,[["enter",o,a],["enter",c,a],["exit",c,a],["enter",u,a]]),p=Pn(p,Xo(a.parser.constructs.insideSpan.null,t.slice(r+1,l),a)),p=Pn(p,[["exit",u,a],["enter",h,a],["exit",h,a],["exit",o,a]]),t[l][1].end.offset-t[l][1].start.offset?(b=2,p=Pn(p,[["enter",t[l][1],a],["exit",t[l][1],a]])):b=0,Ln(t,r-1,l-r+3,p),l=r+p.length-b-2;break}}for(l=-1;++l<t.length;)t[l][1].type==="attentionSequence"&&(t[l][1].type="data");return t}function NE(t,a){const l=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Ul(r);let u;return c;function c(g){return u=g,t.enter("attentionSequence"),h(g)}function h(g){if(g===u)return t.consume(g),h;const p=t.exit("attentionSequence"),b=Ul(g),x=!b||b===2&&o||l.includes(g),_=!o||o===2&&b||l.includes(r);return p._open=!!(u===42?x:x&&(o||!_)),p._close=!!(u===42?_:_&&(b||!x)),a(g)}}function Fg(t,a){t.column+=a,t.offset+=a,t._bufferIndex+=a}const wE={name:"autolink",tokenize:kE};function kE(t,a,l){let r=0;return o;function o(v){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),u}function u(v){return mn(v)?(t.consume(v),c):v===64?l(v):p(v)}function c(v){return v===43||v===45||v===46||rn(v)?(r=1,h(v)):p(v)}function h(v){return v===58?(t.consume(v),r=0,g):(v===43||v===45||v===46||rn(v))&&r++<32?(t.consume(v),h):(r=0,p(v))}function g(v){return v===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),a):v===null||v===32||v===60||Fo(v)?l(v):(t.consume(v),g)}function p(v){return v===64?(t.consume(v),b):pE(v)?(t.consume(v),p):l(v)}function b(v){return rn(v)?x(v):l(v)}function x(v){return v===46?(t.consume(v),r=0,b):v===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(v),t.exit("autolinkMarker"),t.exit("autolink"),a):_(v)}function _(v){if((v===45||rn(v))&&r++<63){const S=v===45?_:x;return t.consume(v),S}return l(v)}}const ns={partial:!0,tokenize:TE};function TE(t,a,l){return r;function r(u){return Ve(u)?et(t,o,"linePrefix")(u):o(u)}function o(u){return u===null||ke(u)?a(u):l(u)}}const xb={continuation:{tokenize:ME},exit:CE,name:"blockQuote",tokenize:AE};function AE(t,a,l){const r=this;return o;function o(c){if(c===62){const h=r.containerState;return h.open||(t.enter("blockQuote",{_container:!0}),h.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),u}return l(c)}function u(c){return Ve(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),a):(t.exit("blockQuotePrefix"),a(c))}}function ME(t,a,l){const r=this;return o;function o(c){return Ve(c)?et(t,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return t.attempt(xb,a,l)(c)}}function CE(t){t.exit("blockQuote")}const yb={name:"characterEscape",tokenize:OE};function OE(t,a,l){return r;function r(u){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(u),t.exit("escapeMarker"),o}function o(u){return bE(u)?(t.enter("characterEscapeValue"),t.consume(u),t.exit("characterEscapeValue"),t.exit("characterEscape"),a):l(u)}}const _b={name:"characterReference",tokenize:zE};function zE(t,a,l){const r=this;let o=0,u,c;return h;function h(x){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(x),t.exit("characterReferenceMarker"),g}function g(x){return x===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(x),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),u=31,c=rn,b(x))}function p(x){return x===88||x===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(x),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),u=6,c=gE,b):(t.enter("characterReferenceValue"),u=7,c=Gf,b(x))}function b(x){if(x===59&&o){const _=t.exit("characterReferenceValue");return c===rn&&!gd(r.sliceSerialize(_))?l(x):(t.enter("characterReferenceMarker"),t.consume(x),t.exit("characterReferenceMarker"),t.exit("characterReference"),a)}return c(x)&&o++<u?(t.consume(x),b):l(x)}}const $g={partial:!0,tokenize:DE},qg={concrete:!0,name:"codeFenced",tokenize:RE};function RE(t,a,l){const r=this,o={partial:!0,tokenize:K};let u=0,c=0,h;return g;function g(D){return p(D)}function p(D){const Z=r.events[r.events.length-1];return u=Z&&Z[1].type==="linePrefix"?Z[2].sliceSerialize(Z[1],!0).length:0,h=D,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),b(D)}function b(D){return D===h?(c++,t.consume(D),b):c<3?l(D):(t.exit("codeFencedFenceSequence"),Ve(D)?et(t,x,"whitespace")(D):x(D))}function x(D){return D===null||ke(D)?(t.exit("codeFencedFence"),r.interrupt?a(D):t.check($g,T,q)(D)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),_(D))}function _(D){return D===null||ke(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),x(D)):Ve(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),et(t,v,"whitespace")(D)):D===96&&D===h?l(D):(t.consume(D),_)}function v(D){return D===null||ke(D)?x(D):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),S(D))}function S(D){return D===null||ke(D)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),x(D)):D===96&&D===h?l(D):(t.consume(D),S)}function T(D){return t.attempt(o,q,A)(D)}function A(D){return t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),w}function w(D){return u>0&&Ve(D)?et(t,C,"linePrefix",u+1)(D):C(D)}function C(D){return D===null||ke(D)?t.check($g,T,q)(D):(t.enter("codeFlowValue"),z(D))}function z(D){return D===null||ke(D)?(t.exit("codeFlowValue"),C(D)):(t.consume(D),z)}function q(D){return t.exit("codeFenced"),a(D)}function K(D,Z,oe){let de=0;return U;function U(H){return D.enter("lineEnding"),D.consume(H),D.exit("lineEnding"),re}function re(H){return D.enter("codeFencedFence"),Ve(H)?et(D,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):ae(H)}function ae(H){return H===h?(D.enter("codeFencedFenceSequence"),ie(H)):oe(H)}function ie(H){return H===h?(de++,D.consume(H),ie):de>=c?(D.exit("codeFencedFenceSequence"),Ve(H)?et(D,Y,"whitespace")(H):Y(H)):oe(H)}function Y(H){return H===null||ke(H)?(D.exit("codeFencedFence"),Z(H)):oe(H)}}}function DE(t,a,l){const r=this;return o;function o(c){return c===null?l(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u)}function u(c){return r.parser.lazy[r.now().line]?l(c):a(c)}}const ff={name:"codeIndented",tokenize:jE},LE={partial:!0,tokenize:BE};function jE(t,a,l){const r=this;return o;function o(p){return t.enter("codeIndented"),et(t,u,"linePrefix",5)(p)}function u(p){const b=r.events[r.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(p):l(p)}function c(p){return p===null?g(p):ke(p)?t.attempt(LE,c,g)(p):(t.enter("codeFlowValue"),h(p))}function h(p){return p===null||ke(p)?(t.exit("codeFlowValue"),c(p)):(t.consume(p),h)}function g(p){return t.exit("codeIndented"),a(p)}}function BE(t,a,l){const r=this;return o;function o(c){return r.parser.lazy[r.now().line]?l(c):ke(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):et(t,u,"linePrefix",5)(c)}function u(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):ke(c)?o(c):l(c)}}const IE={name:"codeText",previous:HE,resolve:UE,tokenize:FE};function UE(t){let a=t.length-4,l=3,r,o;if((t[l][1].type==="lineEnding"||t[l][1].type==="space")&&(t[a][1].type==="lineEnding"||t[a][1].type==="space")){for(r=l;++r<a;)if(t[r][1].type==="codeTextData"){t[l][1].type="codeTextPadding",t[a][1].type="codeTextPadding",l+=2,a-=2;break}}for(r=l-1,a++;++r<=a;)o===void 0?r!==a&&t[r][1].type!=="lineEnding"&&(o=r):(r===a||t[r][1].type==="lineEnding")&&(t[o][1].type="codeTextData",r!==o+2&&(t[o][1].end=t[r-1][1].end,t.splice(o+2,r-o-2),a-=r-o-2,r=o+2),o=void 0);return t}function HE(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function FE(t,a,l){let r=0,o,u;return c;function c(x){return t.enter("codeText"),t.enter("codeTextSequence"),h(x)}function h(x){return x===96?(t.consume(x),r++,h):(t.exit("codeTextSequence"),g(x))}function g(x){return x===null?l(x):x===32?(t.enter("space"),t.consume(x),t.exit("space"),g):x===96?(u=t.enter("codeTextSequence"),o=0,b(x)):ke(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),g):(t.enter("codeTextData"),p(x))}function p(x){return x===null||x===32||x===96||ke(x)?(t.exit("codeTextData"),g(x)):(t.consume(x),p)}function b(x){return x===96?(t.consume(x),o++,b):o===r?(t.exit("codeTextSequence"),t.exit("codeText"),a(x)):(u.type="codeTextData",p(x))}}class $E{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,l){const r=l??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(a,r):a>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(a,l,r){const o=l||0;this.setCursor(Math.trunc(a));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Hr(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Hr(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Hr(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const l=this.left.splice(a,Number.POSITIVE_INFINITY);Hr(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Hr(this.left,l.reverse())}}}function Hr(t,a){let l=0;if(a.length<1e4)t.push(...a);else for(;l<a.length;)t.push(...a.slice(l,l+1e4)),l+=1e4}function vb(t){const a={};let l=-1,r,o,u,c,h,g,p;const b=new $E(t);for(;++l<b.length;){for(;l in a;)l=a[l];if(r=b.get(l),l&&r[1].type==="chunkFlow"&&b.get(l-1)[1].type==="listItemPrefix"&&(g=r[1]._tokenizer.events,u=0,u<g.length&&g[u][1].type==="lineEndingBlank"&&(u+=2),u<g.length&&g[u][1].type==="content"))for(;++u<g.length&&g[u][1].type!=="content";)g[u][1].type==="chunkText"&&(g[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(a,qE(b,l)),l=a[l],p=!0);else if(r[1]._container){for(u=l,o=void 0;u--;)if(c=b.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(b.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(r[1].end={...b.get(o)[1].start},h=b.slice(o,l),h.unshift(r),b.splice(o,l-o+1,h))}}return Ln(t,0,Number.POSITIVE_INFINITY,b.slice(0)),!p}function qE(t,a){const l=t.get(a)[1],r=t.get(a)[2];let o=a-1;const u=[];let c=l._tokenizer;c||(c=r.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const h=c.events,g=[],p={};let b,x,_=-1,v=l,S=0,T=0;const A=[T];for(;v;){for(;t.get(++o)[1]!==v;);u.push(o),v._tokenizer||(b=r.sliceStream(v),v.next||b.push(null),x&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),x=v,v=v.next}for(v=l;++_<h.length;)h[_][0]==="exit"&&h[_-1][0]==="enter"&&h[_][1].type===h[_-1][1].type&&h[_][1].start.line!==h[_][1].end.line&&(T=_+1,A.push(T),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):A.pop(),_=A.length;_--;){const w=h.slice(A[_],A[_+1]),C=u.pop();g.push([C,C+w.length-1]),t.splice(C,2,w)}for(g.reverse(),_=-1;++_<g.length;)p[S+g[_][0]]=S+g[_][1],S+=g[_][1]-g[_][0]-1;return p}const GE={resolve:YE,tokenize:KE},PE={partial:!0,tokenize:VE};function YE(t){return vb(t),t}function KE(t,a){let l;return r;function r(h){return t.enter("content"),l=t.enter("chunkContent",{contentType:"content"}),o(h)}function o(h){return h===null?u(h):ke(h)?t.check(PE,c,u)(h):(t.consume(h),o)}function u(h){return t.exit("chunkContent"),t.exit("content"),a(h)}function c(h){return t.consume(h),t.exit("chunkContent"),l.next=t.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,o}}function VE(t,a,l){const r=this;return o;function o(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),et(t,u,"linePrefix")}function u(c){if(c===null||ke(c))return l(c);const h=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?a(c):t.interrupt(r.parser.constructs.flow,l,a)(c)}}function Eb(t,a,l,r,o,u,c,h,g){const p=g||Number.POSITIVE_INFINITY;let b=0;return x;function x(w){return w===60?(t.enter(r),t.enter(o),t.enter(u),t.consume(w),t.exit(u),_):w===null||w===32||w===41||Fo(w)?l(w):(t.enter(r),t.enter(c),t.enter(h),t.enter("chunkString",{contentType:"string"}),T(w))}function _(w){return w===62?(t.enter(u),t.consume(w),t.exit(u),t.exit(o),t.exit(r),a):(t.enter(h),t.enter("chunkString",{contentType:"string"}),v(w))}function v(w){return w===62?(t.exit("chunkString"),t.exit(h),_(w)):w===null||w===60||ke(w)?l(w):(t.consume(w),w===92?S:v)}function S(w){return w===60||w===62||w===92?(t.consume(w),v):v(w)}function T(w){return!b&&(w===null||w===41||xt(w))?(t.exit("chunkString"),t.exit(h),t.exit(c),t.exit(r),a(w)):b<p&&w===40?(t.consume(w),b++,T):w===41?(t.consume(w),b--,T):w===null||w===32||w===40||Fo(w)?l(w):(t.consume(w),w===92?A:T)}function A(w){return w===40||w===41||w===92?(t.consume(w),T):T(w)}}function Sb(t,a,l,r,o,u){const c=this;let h=0,g;return p;function p(v){return t.enter(r),t.enter(o),t.consume(v),t.exit(o),t.enter(u),b}function b(v){return h>999||v===null||v===91||v===93&&!g||v===94&&!h&&"_hiddenFootnoteSupport"in c.parser.constructs?l(v):v===93?(t.exit(u),t.enter(o),t.consume(v),t.exit(o),t.exit(r),a):ke(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),b):(t.enter("chunkString",{contentType:"string"}),x(v))}function x(v){return v===null||v===91||v===93||ke(v)||h++>999?(t.exit("chunkString"),b(v)):(t.consume(v),g||(g=!Ve(v)),v===92?_:x)}function _(v){return v===91||v===92||v===93?(t.consume(v),h++,x):x(v)}}function Nb(t,a,l,r,o,u){let c;return h;function h(_){return _===34||_===39||_===40?(t.enter(r),t.enter(o),t.consume(_),t.exit(o),c=_===40?41:_,g):l(_)}function g(_){return _===c?(t.enter(o),t.consume(_),t.exit(o),t.exit(r),a):(t.enter(u),p(_))}function p(_){return _===c?(t.exit(u),g(c)):_===null?l(_):ke(_)?(t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),et(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),b(_))}function b(_){return _===c||_===null||ke(_)?(t.exit("chunkString"),p(_)):(t.consume(_),_===92?x:b)}function x(_){return _===c||_===92?(t.consume(_),b):b(_)}}function Kr(t,a){let l;return r;function r(o){return ke(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),l=!0,r):Ve(o)?et(t,r,l?"linePrefix":"lineSuffix")(o):a(o)}}const XE={name:"definition",tokenize:QE},ZE={partial:!0,tokenize:JE};function QE(t,a,l){const r=this;let o;return u;function u(v){return t.enter("definition"),c(v)}function c(v){return Sb.call(r,t,h,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function h(v){return o=Jn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),v===58?(t.enter("definitionMarker"),t.consume(v),t.exit("definitionMarker"),g):l(v)}function g(v){return xt(v)?Kr(t,p)(v):p(v)}function p(v){return Eb(t,b,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function b(v){return t.attempt(ZE,x,x)(v)}function x(v){return Ve(v)?et(t,_,"whitespace")(v):_(v)}function _(v){return v===null||ke(v)?(t.exit("definition"),r.parser.defined.push(o),a(v)):l(v)}}function JE(t,a,l){return r;function r(h){return xt(h)?Kr(t,o)(h):l(h)}function o(h){return Nb(t,u,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function u(h){return Ve(h)?et(t,c,"whitespace")(h):c(h)}function c(h){return h===null||ke(h)?a(h):l(h)}}const WE={name:"hardBreakEscape",tokenize:eS};function eS(t,a,l){return r;function r(u){return t.enter("hardBreakEscape"),t.consume(u),o}function o(u){return ke(u)?(t.exit("hardBreakEscape"),a(u)):l(u)}}const tS={name:"headingAtx",resolve:nS,tokenize:iS};function nS(t,a){let l=t.length-2,r=3,o,u;return t[r][1].type==="whitespace"&&(r+=2),l-2>r&&t[l][1].type==="whitespace"&&(l-=2),t[l][1].type==="atxHeadingSequence"&&(r===l-1||l-4>r&&t[l-2][1].type==="whitespace")&&(l-=r+1===l?2:4),l>r&&(o={type:"atxHeadingText",start:t[r][1].start,end:t[l][1].end},u={type:"chunkText",start:t[r][1].start,end:t[l][1].end,contentType:"text"},Ln(t,r,l-r+1,[["enter",o,a],["enter",u,a],["exit",u,a],["exit",o,a]])),t}function iS(t,a,l){let r=0;return o;function o(b){return t.enter("atxHeading"),u(b)}function u(b){return t.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&r++<6?(t.consume(b),c):b===null||xt(b)?(t.exit("atxHeadingSequence"),h(b)):l(b)}function h(b){return b===35?(t.enter("atxHeadingSequence"),g(b)):b===null||ke(b)?(t.exit("atxHeading"),a(b)):Ve(b)?et(t,h,"whitespace")(b):(t.enter("atxHeadingText"),p(b))}function g(b){return b===35?(t.consume(b),g):(t.exit("atxHeadingSequence"),h(b))}function p(b){return b===null||b===35||xt(b)?(t.exit("atxHeadingText"),h(b)):(t.consume(b),p)}}const aS=["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"],Gg=["pre","script","style","textarea"],lS={concrete:!0,name:"htmlFlow",resolveTo:oS,tokenize:cS},rS={partial:!0,tokenize:fS},sS={partial:!0,tokenize:uS};function oS(t){let a=t.length;for(;a--&&!(t[a][0]==="enter"&&t[a][1].type==="htmlFlow"););return a>1&&t[a-2][1].type==="linePrefix"&&(t[a][1].start=t[a-2][1].start,t[a+1][1].start=t[a-2][1].start,t.splice(a-2,2)),t}function cS(t,a,l){const r=this;let o,u,c,h,g;return p;function p(N){return b(N)}function b(N){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(N),x}function x(N){return N===33?(t.consume(N),_):N===47?(t.consume(N),u=!0,T):N===63?(t.consume(N),o=3,r.interrupt?a:k):mn(N)?(t.consume(N),c=String.fromCharCode(N),A):l(N)}function _(N){return N===45?(t.consume(N),o=2,v):N===91?(t.consume(N),o=5,h=0,S):mn(N)?(t.consume(N),o=4,r.interrupt?a:k):l(N)}function v(N){return N===45?(t.consume(N),r.interrupt?a:k):l(N)}function S(N){const ce="CDATA[";return N===ce.charCodeAt(h++)?(t.consume(N),h===ce.length?r.interrupt?a:ae:S):l(N)}function T(N){return mn(N)?(t.consume(N),c=String.fromCharCode(N),A):l(N)}function A(N){if(N===null||N===47||N===62||xt(N)){const ce=N===47,pe=c.toLowerCase();return!ce&&!u&&Gg.includes(pe)?(o=1,r.interrupt?a(N):ae(N)):aS.includes(c.toLowerCase())?(o=6,ce?(t.consume(N),w):r.interrupt?a(N):ae(N)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?l(N):u?C(N):z(N))}return N===45||rn(N)?(t.consume(N),c+=String.fromCharCode(N),A):l(N)}function w(N){return N===62?(t.consume(N),r.interrupt?a:ae):l(N)}function C(N){return Ve(N)?(t.consume(N),C):U(N)}function z(N){return N===47?(t.consume(N),U):N===58||N===95||mn(N)?(t.consume(N),q):Ve(N)?(t.consume(N),z):U(N)}function q(N){return N===45||N===46||N===58||N===95||rn(N)?(t.consume(N),q):K(N)}function K(N){return N===61?(t.consume(N),D):Ve(N)?(t.consume(N),K):z(N)}function D(N){return N===null||N===60||N===61||N===62||N===96?l(N):N===34||N===39?(t.consume(N),g=N,Z):Ve(N)?(t.consume(N),D):oe(N)}function Z(N){return N===g?(t.consume(N),g=null,de):N===null||ke(N)?l(N):(t.consume(N),Z)}function oe(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||xt(N)?K(N):(t.consume(N),oe)}function de(N){return N===47||N===62||Ve(N)?z(N):l(N)}function U(N){return N===62?(t.consume(N),re):l(N)}function re(N){return N===null||ke(N)?ae(N):Ve(N)?(t.consume(N),re):l(N)}function ae(N){return N===45&&o===2?(t.consume(N),L):N===60&&o===1?(t.consume(N),X):N===62&&o===4?(t.consume(N),M):N===63&&o===3?(t.consume(N),k):N===93&&o===5?(t.consume(N),le):ke(N)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(rS,B,ie)(N)):N===null||ke(N)?(t.exit("htmlFlowData"),ie(N)):(t.consume(N),ae)}function ie(N){return t.check(sS,Y,B)(N)}function Y(N){return t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),H}function H(N){return N===null||ke(N)?ie(N):(t.enter("htmlFlowData"),ae(N))}function L(N){return N===45?(t.consume(N),k):ae(N)}function X(N){return N===47?(t.consume(N),c="",ne):ae(N)}function ne(N){if(N===62){const ce=c.toLowerCase();return Gg.includes(ce)?(t.consume(N),M):ae(N)}return mn(N)&&c.length<8?(t.consume(N),c+=String.fromCharCode(N),ne):ae(N)}function le(N){return N===93?(t.consume(N),k):ae(N)}function k(N){return N===62?(t.consume(N),M):N===45&&o===2?(t.consume(N),k):ae(N)}function M(N){return N===null||ke(N)?(t.exit("htmlFlowData"),B(N)):(t.consume(N),M)}function B(N){return t.exit("htmlFlow"),a(N)}}function uS(t,a,l){const r=this;return o;function o(c){return ke(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u):l(c)}function u(c){return r.parser.lazy[r.now().line]?l(c):a(c)}}function fS(t,a,l){return r;function r(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(ns,a,l)}}const dS={name:"htmlText",tokenize:mS};function mS(t,a,l){const r=this;let o,u,c;return h;function h(k){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(k),g}function g(k){return k===33?(t.consume(k),p):k===47?(t.consume(k),K):k===63?(t.consume(k),z):mn(k)?(t.consume(k),oe):l(k)}function p(k){return k===45?(t.consume(k),b):k===91?(t.consume(k),u=0,S):mn(k)?(t.consume(k),C):l(k)}function b(k){return k===45?(t.consume(k),v):l(k)}function x(k){return k===null?l(k):k===45?(t.consume(k),_):ke(k)?(c=x,X(k)):(t.consume(k),x)}function _(k){return k===45?(t.consume(k),v):x(k)}function v(k){return k===62?L(k):k===45?_(k):x(k)}function S(k){const M="CDATA[";return k===M.charCodeAt(u++)?(t.consume(k),u===M.length?T:S):l(k)}function T(k){return k===null?l(k):k===93?(t.consume(k),A):ke(k)?(c=T,X(k)):(t.consume(k),T)}function A(k){return k===93?(t.consume(k),w):T(k)}function w(k){return k===62?L(k):k===93?(t.consume(k),w):T(k)}function C(k){return k===null||k===62?L(k):ke(k)?(c=C,X(k)):(t.consume(k),C)}function z(k){return k===null?l(k):k===63?(t.consume(k),q):ke(k)?(c=z,X(k)):(t.consume(k),z)}function q(k){return k===62?L(k):z(k)}function K(k){return mn(k)?(t.consume(k),D):l(k)}function D(k){return k===45||rn(k)?(t.consume(k),D):Z(k)}function Z(k){return ke(k)?(c=Z,X(k)):Ve(k)?(t.consume(k),Z):L(k)}function oe(k){return k===45||rn(k)?(t.consume(k),oe):k===47||k===62||xt(k)?de(k):l(k)}function de(k){return k===47?(t.consume(k),L):k===58||k===95||mn(k)?(t.consume(k),U):ke(k)?(c=de,X(k)):Ve(k)?(t.consume(k),de):L(k)}function U(k){return k===45||k===46||k===58||k===95||rn(k)?(t.consume(k),U):re(k)}function re(k){return k===61?(t.consume(k),ae):ke(k)?(c=re,X(k)):Ve(k)?(t.consume(k),re):de(k)}function ae(k){return k===null||k===60||k===61||k===62||k===96?l(k):k===34||k===39?(t.consume(k),o=k,ie):ke(k)?(c=ae,X(k)):Ve(k)?(t.consume(k),ae):(t.consume(k),Y)}function ie(k){return k===o?(t.consume(k),o=void 0,H):k===null?l(k):ke(k)?(c=ie,X(k)):(t.consume(k),ie)}function Y(k){return k===null||k===34||k===39||k===60||k===61||k===96?l(k):k===47||k===62||xt(k)?de(k):(t.consume(k),Y)}function H(k){return k===47||k===62||xt(k)?de(k):l(k)}function L(k){return k===62?(t.consume(k),t.exit("htmlTextData"),t.exit("htmlText"),a):l(k)}function X(k){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),ne}function ne(k){return Ve(k)?et(t,le,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):le(k)}function le(k){return t.enter("htmlTextData"),c(k)}}const bd={name:"labelEnd",resolveAll:bS,resolveTo:xS,tokenize:yS},hS={tokenize:_S},pS={tokenize:vS},gS={tokenize:ES};function bS(t){let a=-1;const l=[];for(;++a<t.length;){const r=t[a][1];if(l.push(t[a]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",a+=o}}return t.length!==l.length&&Ln(t,0,t.length,l),t}function xS(t,a){let l=t.length,r=0,o,u,c,h;for(;l--;)if(o=t[l][1],u){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[l][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(t[l][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(u=l,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(c=l);const g={type:t[u][1].type==="labelLink"?"link":"image",start:{...t[u][1].start},end:{...t[t.length-1][1].end}},p={type:"label",start:{...t[u][1].start},end:{...t[c][1].end}},b={type:"labelText",start:{...t[u+r+2][1].end},end:{...t[c-2][1].start}};return h=[["enter",g,a],["enter",p,a]],h=Pn(h,t.slice(u+1,u+r+3)),h=Pn(h,[["enter",b,a]]),h=Pn(h,Xo(a.parser.constructs.insideSpan.null,t.slice(u+r+4,c-3),a)),h=Pn(h,[["exit",b,a],t[c-2],t[c-1],["exit",p,a]]),h=Pn(h,t.slice(c+1)),h=Pn(h,[["exit",g,a]]),Ln(t,u,t.length,h),t}function yS(t,a,l){const r=this;let o=r.events.length,u,c;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){u=r.events[o][1];break}return h;function h(_){return u?u._inactive?x(_):(c=r.parser.defined.includes(Jn(r.sliceSerialize({start:u.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(_),t.exit("labelMarker"),t.exit("labelEnd"),g):l(_)}function g(_){return _===40?t.attempt(hS,b,c?b:x)(_):_===91?t.attempt(pS,b,c?p:x)(_):c?b(_):x(_)}function p(_){return t.attempt(gS,b,x)(_)}function b(_){return a(_)}function x(_){return u._balanced=!0,l(_)}}function _S(t,a,l){return r;function r(x){return t.enter("resource"),t.enter("resourceMarker"),t.consume(x),t.exit("resourceMarker"),o}function o(x){return xt(x)?Kr(t,u)(x):u(x)}function u(x){return x===41?b(x):Eb(t,c,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(x)}function c(x){return xt(x)?Kr(t,g)(x):b(x)}function h(x){return l(x)}function g(x){return x===34||x===39||x===40?Nb(t,p,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(x):b(x)}function p(x){return xt(x)?Kr(t,b)(x):b(x)}function b(x){return x===41?(t.enter("resourceMarker"),t.consume(x),t.exit("resourceMarker"),t.exit("resource"),a):l(x)}}function vS(t,a,l){const r=this;return o;function o(h){return Sb.call(r,t,u,c,"reference","referenceMarker","referenceString")(h)}function u(h){return r.parser.defined.includes(Jn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?a(h):l(h)}function c(h){return l(h)}}function ES(t,a,l){return r;function r(u){return t.enter("reference"),t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),o}function o(u){return u===93?(t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),t.exit("reference"),a):l(u)}}const SS={name:"labelStartImage",resolveAll:bd.resolveAll,tokenize:NS};function NS(t,a,l){const r=this;return o;function o(h){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(h),t.exit("labelImageMarker"),u}function u(h){return h===91?(t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelImage"),c):l(h)}function c(h){return h===94&&"_hiddenFootnoteSupport"in r.parser.constructs?l(h):a(h)}}const wS={name:"labelStartLink",resolveAll:bd.resolveAll,tokenize:kS};function kS(t,a,l){const r=this;return o;function o(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?l(c):a(c)}}const df={name:"lineEnding",tokenize:TS};function TS(t,a){return l;function l(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),et(t,a,"linePrefix")}}const Bo={name:"thematicBreak",tokenize:AS};function AS(t,a,l){let r=0,o;return u;function u(p){return t.enter("thematicBreak"),c(p)}function c(p){return o=p,h(p)}function h(p){return p===o?(t.enter("thematicBreakSequence"),g(p)):r>=3&&(p===null||ke(p))?(t.exit("thematicBreak"),a(p)):l(p)}function g(p){return p===o?(t.consume(p),r++,g):(t.exit("thematicBreakSequence"),Ve(p)?et(t,h,"whitespace")(p):h(p))}}const Sn={continuation:{tokenize:zS},exit:DS,name:"list",tokenize:OS},MS={partial:!0,tokenize:LS},CS={partial:!0,tokenize:RS};function OS(t,a,l){const r=this,o=r.events[r.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return h;function h(v){const S=r.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!r.containerState.marker||v===r.containerState.marker:Gf(v)){if(r.containerState.type||(r.containerState.type=S,t.enter(S,{_container:!0})),S==="listUnordered")return t.enter("listItemPrefix"),v===42||v===45?t.check(Bo,l,p)(v):p(v);if(!r.interrupt||v===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),g(v)}return l(v)}function g(v){return Gf(v)&&++c<10?(t.consume(v),g):(!r.interrupt||c<2)&&(r.containerState.marker?v===r.containerState.marker:v===41||v===46)?(t.exit("listItemValue"),p(v)):l(v)}function p(v){return t.enter("listItemMarker"),t.consume(v),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||v,t.check(ns,r.interrupt?l:b,t.attempt(MS,_,x))}function b(v){return r.containerState.initialBlankLine=!0,u++,_(v)}function x(v){return Ve(v)?(t.enter("listItemPrefixWhitespace"),t.consume(v),t.exit("listItemPrefixWhitespace"),_):l(v)}function _(v){return r.containerState.size=u+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,a(v)}}function zS(t,a,l){const r=this;return r.containerState._closeFlow=void 0,t.check(ns,o,u);function o(h){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,et(t,a,"listItemIndent",r.containerState.size+1)(h)}function u(h){return r.containerState.furtherBlankLines||!Ve(h)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,c(h)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(CS,a,c)(h))}function c(h){return r.containerState._closeFlow=!0,r.interrupt=void 0,et(t,t.attempt(Sn,a,l),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function RS(t,a,l){const r=this;return et(t,o,"listItemIndent",r.containerState.size+1);function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===r.containerState.size?a(u):l(u)}}function DS(t){t.exit(this.containerState.type)}function LS(t,a,l){const r=this;return et(t,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const c=r.events[r.events.length-1];return!Ve(u)&&c&&c[1].type==="listItemPrefixWhitespace"?a(u):l(u)}}const Pg={name:"setextUnderline",resolveTo:jS,tokenize:BS};function jS(t,a){let l=t.length,r,o,u;for(;l--;)if(t[l][0]==="enter"){if(t[l][1].type==="content"){r=l;break}t[l][1].type==="paragraph"&&(o=l)}else t[l][1].type==="content"&&t.splice(l,1),!u&&t[l][1].type==="definition"&&(u=l);const c={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",u?(t.splice(o,0,["enter",c,a]),t.splice(u+1,0,["exit",t[r][1],a]),t[r][1].end={...t[u][1].end}):t[r][1]=c,t.push(["exit",c,a]),t}function BS(t,a,l){const r=this;let o;return u;function u(p){let b=r.events.length,x;for(;b--;)if(r.events[b][1].type!=="lineEnding"&&r.events[b][1].type!=="linePrefix"&&r.events[b][1].type!=="content"){x=r.events[b][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||x)?(t.enter("setextHeadingLine"),o=p,c(p)):l(p)}function c(p){return t.enter("setextHeadingLineSequence"),h(p)}function h(p){return p===o?(t.consume(p),h):(t.exit("setextHeadingLineSequence"),Ve(p)?et(t,g,"lineSuffix")(p):g(p))}function g(p){return p===null||ke(p)?(t.exit("setextHeadingLine"),a(p)):l(p)}}const IS={tokenize:US};function US(t){const a=this,l=t.attempt(ns,r,t.attempt(this.parser.constructs.flowInitial,o,et(t,t.attempt(this.parser.constructs.flow,o,t.attempt(GE,o)),"linePrefix")));return l;function r(u){if(u===null){t.consume(u);return}return t.enter("lineEndingBlank"),t.consume(u),t.exit("lineEndingBlank"),a.currentConstruct=void 0,l}function o(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),a.currentConstruct=void 0,l}}const HS={resolveAll:kb()},FS=wb("string"),$S=wb("text");function wb(t){return{resolveAll:kb(t==="text"?qS:void 0),tokenize:a};function a(l){const r=this,o=this.parser.constructs[t],u=l.attempt(o,c,h);return c;function c(b){return p(b)?u(b):h(b)}function h(b){if(b===null){l.consume(b);return}return l.enter("data"),l.consume(b),g}function g(b){return p(b)?(l.exit("data"),u(b)):(l.consume(b),g)}function p(b){if(b===null)return!0;const x=o[b];let _=-1;if(x)for(;++_<x.length;){const v=x[_];if(!v.previous||v.previous.call(r,r.previous))return!0}return!1}}}function kb(t){return a;function a(l,r){let o=-1,u;for(;++o<=l.length;)u===void 0?l[o]&&l[o][1].type==="data"&&(u=o,o++):(!l[o]||l[o][1].type!=="data")&&(o!==u+2&&(l[u][1].end=l[o-1][1].end,l.splice(u+2,o-u-2),o=u+2),u=void 0);return t?t(l,r):l}}function qS(t,a){let l=0;for(;++l<=t.length;)if((l===t.length||t[l][1].type==="lineEnding")&&t[l-1][1].type==="data"){const r=t[l-1][1],o=a.sliceStream(r);let u=o.length,c=-1,h=0,g;for(;u--;){const p=o[u];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)h++,c--;if(c)break;c=-1}else if(p===-2)g=!0,h++;else if(p!==-1){u++;break}}if(a._contentTypeTextTrailing&&l===t.length&&(h=0),h){const p={type:l===t.length||g||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:r.start._bufferIndex+c,_index:r.start._index+u,line:r.end.line,column:r.end.column-h,offset:r.end.offset-h},end:{...r.end}};r.end={...p.start},r.start.offset===r.end.offset?Object.assign(r,p):(t.splice(l,0,["enter",p,a],["exit",p,a]),l+=2)}l++}return t}const GS={42:Sn,43:Sn,45:Sn,48:Sn,49:Sn,50:Sn,51:Sn,52:Sn,53:Sn,54:Sn,55:Sn,56:Sn,57:Sn,62:xb},PS={91:XE},YS={[-2]:ff,[-1]:ff,32:ff},KS={35:tS,42:Bo,45:[Pg,Bo],60:lS,61:Pg,95:Bo,96:qg,126:qg},VS={38:_b,92:yb},XS={[-5]:df,[-4]:df,[-3]:df,33:SS,38:_b,42:Pf,60:[wE,dS],91:wS,92:[WE,yb],93:bd,95:Pf,96:IE},ZS={null:[Pf,HS]},QS={null:[42,95]},JS={null:[]},WS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:QS,contentInitial:PS,disable:JS,document:GS,flow:KS,flowInitial:YS,insideSpan:ZS,string:VS,text:XS},Symbol.toStringTag,{value:"Module"}));function eN(t,a,l){let r={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const o={},u=[];let c=[],h=[];const g={attempt:Z(K),check:Z(D),consume:C,enter:z,exit:q,interrupt:Z(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:T,events:[],now:S,parser:t,previous:null,sliceSerialize:_,sliceStream:v,write:x};let b=a.tokenize.call(p,g);return a.resolveAll&&u.push(a),p;function x(re){return c=Pn(c,re),A(),c[c.length-1]!==null?[]:(oe(a,0),p.events=Xo(u,p.events,p),p.events)}function _(re,ae){return nN(v(re),ae)}function v(re){return tN(c,re)}function S(){const{_bufferIndex:re,_index:ae,line:ie,column:Y,offset:H}=r;return{_bufferIndex:re,_index:ae,line:ie,column:Y,offset:H}}function T(re){o[re.line]=re.column,U()}function A(){let re;for(;r._index<c.length;){const ae=c[r._index];if(typeof ae=="string")for(re=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===re&&r._bufferIndex<ae.length;)w(ae.charCodeAt(r._bufferIndex));else w(ae)}}function w(re){b=b(re)}function C(re){ke(re)?(r.line++,r.column=1,r.offset+=re===-3?2:1,U()):re!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===c[r._index].length&&(r._bufferIndex=-1,r._index++)),p.previous=re}function z(re,ae){const ie=ae||{};return ie.type=re,ie.start=S(),p.events.push(["enter",ie,p]),h.push(ie),ie}function q(re){const ae=h.pop();return ae.end=S(),p.events.push(["exit",ae,p]),ae}function K(re,ae){oe(re,ae.from)}function D(re,ae){ae.restore()}function Z(re,ae){return ie;function ie(Y,H,L){let X,ne,le,k;return Array.isArray(Y)?B(Y):"tokenize"in Y?B([Y]):M(Y);function M(he){return ze;function ze(Le){const qe=Le!==null&&he[Le],ft=Le!==null&&he.null,se=[...Array.isArray(qe)?qe:qe?[qe]:[],...Array.isArray(ft)?ft:ft?[ft]:[]];return B(se)(Le)}}function B(he){return X=he,ne=0,he.length===0?L:N(he[ne])}function N(he){return ze;function ze(Le){return k=de(),le=he,he.partial||(p.currentConstruct=he),he.name&&p.parser.constructs.disable.null.includes(he.name)?pe():he.tokenize.call(ae?Object.assign(Object.create(p),ae):p,g,ce,pe)(Le)}}function ce(he){return re(le,k),H}function pe(he){return k.restore(),++ne<X.length?N(X[ne]):L}}}function oe(re,ae){re.resolveAll&&!u.includes(re)&&u.push(re),re.resolve&&Ln(p.events,ae,p.events.length-ae,re.resolve(p.events.slice(ae),p)),re.resolveTo&&(p.events=re.resolveTo(p.events,p))}function de(){const re=S(),ae=p.previous,ie=p.currentConstruct,Y=p.events.length,H=Array.from(h);return{from:Y,restore:L};function L(){r=re,p.previous=ae,p.currentConstruct=ie,p.events.length=Y,h=H,U()}}function U(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function tN(t,a){const l=a.start._index,r=a.start._bufferIndex,o=a.end._index,u=a.end._bufferIndex;let c;if(l===o)c=[t[l].slice(r,u)];else{if(c=t.slice(l,o),r>-1){const h=c[0];typeof h=="string"?c[0]=h.slice(r):c.shift()}u>0&&c.push(t[o].slice(0,u))}return c}function nN(t,a){let l=-1;const r=[];let o;for(;++l<t.length;){const u=t[l];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
`;break}case-3:{c=`\r
`;break}case-2:{c=a?" ":"	";break}case-1:{if(!a&&o)continue;c=" ";break}default:c=String.fromCharCode(u)}o=u===-2,r.push(c)}return r.join("")}function iN(t){const r={constructs:gb([WS,...(t||{}).extensions||[]]),content:o(xE),defined:[],document:o(_E),flow:o(IS),lazy:{},string:o(FS),text:o($S)};return r;function o(u){return c;function c(h){return eN(r,u,h)}}}function aN(t){for(;!vb(t););return t}const Yg=/[\0\t\n\r]/g;function lN(){let t=1,a="",l=!0,r;return o;function o(u,c,h){const g=[];let p,b,x,_,v;for(u=a+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),x=0,a="",l&&(u.charCodeAt(0)===65279&&x++,l=void 0);x<u.length;){if(Yg.lastIndex=x,p=Yg.exec(u),_=p&&p.index!==void 0?p.index:u.length,v=u.charCodeAt(_),!p){a=u.slice(x);break}if(v===10&&x===_&&r)g.push(-3),r=void 0;else switch(r&&(g.push(-5),r=void 0),x<_&&(g.push(u.slice(x,_)),t+=_-x),v){case 0:{g.push(65533),t++;break}case 9:{for(b=Math.ceil(t/4)*4,g.push(-2);t++<b;)g.push(-1);break}case 10:{g.push(-4),t=1;break}default:r=!0,t=1}x=_+1}return h&&(r&&g.push(-5),a&&g.push(a),g.push(null)),g}}const rN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sN(t){return t.replace(rN,oN)}function oN(t,a,l){if(a)return a;if(l.charCodeAt(0)===35){const o=l.charCodeAt(1),u=o===120||o===88;return bb(l.slice(u?2:1),u?16:10)}return gd(l)||t}const Tb={}.hasOwnProperty;function cN(t,a,l){return a&&typeof a=="object"&&(l=a,a=void 0),uN(l)(aN(iN(l).document().write(lN()(t,a,!0))))}function uN(t){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Ue),autolinkProtocol:de,autolinkEmail:de,atxHeading:u(It),blockQuote:u(ft),characterEscape:de,characterReference:de,codeFenced:u(se),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(se,c),codeText:u(Re,c),codeTextData:de,data:de,codeFlowValue:de,definition:u(lt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(We),hardBreakEscape:u(Ce),hardBreakTrailing:u(Ce),htmlFlow:u(Tt,c),htmlFlowData:de,htmlText:u(Tt,c),htmlTextData:de,image:u(be),label:c,link:u(Ue),listItem:u(Ut),listItemValue:_,listOrdered:u(yt,x),listUnordered:u(yt),paragraph:u(Wn),reference:N,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(It),strong:u(Ha),thematicBreak:u(Fa)},exit:{atxHeading:g(),atxHeadingSequence:K,autolink:g(),autolinkEmail:qe,autolinkProtocol:Le,blockQuote:g(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:he,characterReference:ze,codeFenced:g(A),codeFencedFence:T,codeFencedFenceInfo:v,codeFencedFenceMeta:S,codeFlowValue:U,codeIndented:g(w),codeText:g(H),codeTextData:U,data:U,definition:g(),definitionDestinationString:q,definitionLabelString:C,definitionTitleString:z,emphasis:g(),hardBreakEscape:g(ae),hardBreakTrailing:g(ae),htmlFlow:g(ie),htmlFlowData:U,htmlText:g(Y),htmlTextData:U,image:g(X),label:le,labelText:ne,lineEnding:re,link:g(L),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:ce,resourceDestinationString:k,resourceTitleString:M,resource:B,setextHeading:g(oe),setextHeadingLineSequence:Z,setextHeadingText:D,strong:g(),thematicBreak:g()}};Ab(a,(t||{}).mdastExtensions||[]);const l={};return r;function r(Q){let me={type:"root",children:[]};const Te={stack:[me],tokenStack:[],config:a,enter:h,exit:p,buffer:c,resume:b,data:l},Ge=[];let tt=-1;for(;++tt<Q.length;)if(Q[tt][1].type==="listOrdered"||Q[tt][1].type==="listUnordered")if(Q[tt][0]==="enter")Ge.push(tt);else{const on=Ge.pop();tt=o(Q,on,tt)}for(tt=-1;++tt<Q.length;){const on=a[Q[tt][0]];Tb.call(on,Q[tt][1].type)&&on[Q[tt][1].type].call(Object.assign({sliceSerialize:Q[tt][2].sliceSerialize},Te),Q[tt][1])}if(Te.tokenStack.length>0){const on=Te.tokenStack[Te.tokenStack.length-1];(on[1]||Kg).call(Te,void 0,on[0])}for(me.position={start:ua(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:ua(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},tt=-1;++tt<a.transforms.length;)me=a.transforms[tt](me)||me;return me}function o(Q,me,Te){let Ge=me-1,tt=-1,on=!1,Yn,Xt,Ct,tn;for(;++Ge<=Te;){const rt=Q[Ge];switch(rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{rt[0]==="enter"?tt++:tt--,tn=void 0;break}case"lineEndingBlank":{rt[0]==="enter"&&(Yn&&!tn&&!tt&&!Ct&&(Ct=Ge),tn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:tn=void 0}if(!tt&&rt[0]==="enter"&&rt[1].type==="listItemPrefix"||tt===-1&&rt[0]==="exit"&&(rt[1].type==="listUnordered"||rt[1].type==="listOrdered")){if(Yn){let ei=Ge;for(Xt=void 0;ei--;){const cn=Q[ei];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;Xt&&(Q[Xt][1].type="lineEndingBlank",on=!0),cn[1].type="lineEnding",Xt=ei}else if(!(cn[1].type==="linePrefix"||cn[1].type==="blockQuotePrefix"||cn[1].type==="blockQuotePrefixWhitespace"||cn[1].type==="blockQuoteMarker"||cn[1].type==="listItemIndent"))break}Ct&&(!Xt||Ct<Xt)&&(Yn._spread=!0),Yn.end=Object.assign({},Xt?Q[Xt][1].start:rt[1].end),Q.splice(Xt||Ge,0,["exit",Yn,rt[2]]),Ge++,Te++}if(rt[1].type==="listItemPrefix"){const ei={type:"listItem",_spread:!1,start:Object.assign({},rt[1].start),end:void 0};Yn=ei,Q.splice(Ge,0,["enter",ei,rt[2]]),Ge++,Te++,Ct=void 0,tn=!0}}}return Q[me][1]._spread=on,Te}function u(Q,me){return Te;function Te(Ge){h.call(this,Q(Ge),Ge),me&&me.call(this,Ge)}}function c(){this.stack.push({type:"fragment",children:[]})}function h(Q,me,Te){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([me,Te||void 0]),Q.position={start:ua(me.start),end:void 0}}function g(Q){return me;function me(Te){Q&&Q.call(this,Te),p.call(this,Te)}}function p(Q,me){const Te=this.stack.pop(),Ge=this.tokenStack.pop();if(Ge)Ge[0].type!==Q.type&&(me?me.call(this,Q,Ge[0]):(Ge[1]||Kg).call(this,Q,Ge[0]));else throw new Error("Cannot close `"+Q.type+"` ("+Yr({start:Q.start,end:Q.end})+"): it’s not open");Te.position.end=ua(Q.end)}function b(){return pd(this.stack.pop())}function x(){this.data.expectingFirstListItemValue=!0}function _(Q){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function v(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.lang=Q}function S(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.meta=Q}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.value=Q.replace(/(\r?\n|\r)$/g,"")}function C(Q){const me=this.resume(),Te=this.stack[this.stack.length-1];Te.label=me,Te.identifier=Jn(this.sliceSerialize(Q)).toLowerCase()}function z(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.title=Q}function q(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.url=Q}function K(Q){const me=this.stack[this.stack.length-1];if(!me.depth){const Te=this.sliceSerialize(Q).length;me.depth=Te}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function Z(Q){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function oe(){this.data.setextHeadingSlurpLineEnding=void 0}function de(Q){const Te=this.stack[this.stack.length-1].children;let Ge=Te[Te.length-1];(!Ge||Ge.type!=="text")&&(Ge=At(),Ge.position={start:ua(Q.start),end:void 0},Te.push(Ge)),this.stack.push(Ge)}function U(Q){const me=this.stack.pop();me.value+=this.sliceSerialize(Q),me.position.end=ua(Q.end)}function re(Q){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Te=me.children[me.children.length-1];Te.position.end=ua(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(me.type)&&(de.call(this,Q),U.call(this,Q))}function ae(){this.data.atHardBreak=!0}function ie(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.value=Q}function Y(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.value=Q}function H(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.value=Q}function L(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=me,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function X(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=me,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ne(Q){const me=this.sliceSerialize(Q),Te=this.stack[this.stack.length-2];Te.label=sN(me),Te.identifier=Jn(me).toLowerCase()}function le(){const Q=this.stack[this.stack.length-1],me=this.resume(),Te=this.stack[this.stack.length-1];if(this.data.inReference=!0,Te.type==="link"){const Ge=Q.children;Te.children=Ge}else Te.alt=me}function k(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.url=Q}function M(){const Q=this.resume(),me=this.stack[this.stack.length-1];me.title=Q}function B(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function ce(Q){const me=this.resume(),Te=this.stack[this.stack.length-1];Te.label=me,Te.identifier=Jn(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function pe(Q){this.data.characterReferenceType=Q.type}function he(Q){const me=this.sliceSerialize(Q),Te=this.data.characterReferenceType;let Ge;Te?(Ge=bb(me,Te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ge=gd(me);const tt=this.stack[this.stack.length-1];tt.value+=Ge}function ze(Q){const me=this.stack.pop();me.position.end=ua(Q.end)}function Le(Q){U.call(this,Q);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(Q)}function qe(Q){U.call(this,Q);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(Q)}function ft(){return{type:"blockquote",children:[]}}function se(){return{type:"code",lang:null,meta:null,value:""}}function Re(){return{type:"inlineCode",value:""}}function lt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function We(){return{type:"emphasis",children:[]}}function It(){return{type:"heading",depth:0,children:[]}}function Ce(){return{type:"break"}}function Tt(){return{type:"html",value:""}}function be(){return{type:"image",title:null,url:"",alt:null}}function Ue(){return{type:"link",title:null,url:"",children:[]}}function yt(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Ut(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function Wn(){return{type:"paragraph",children:[]}}function Ha(){return{type:"strong",children:[]}}function At(){return{type:"text",value:""}}function Fa(){return{type:"thematicBreak"}}}function ua(t){return{line:t.line,column:t.column,offset:t.offset}}function Ab(t,a){let l=-1;for(;++l<a.length;){const r=a[l];Array.isArray(r)?Ab(t,r):fN(t,r)}}function fN(t,a){let l;for(l in a)if(Tb.call(a,l))switch(l){case"canContainEols":{const r=a[l];r&&t[l].push(...r);break}case"transforms":{const r=a[l];r&&t[l].push(...r);break}case"enter":case"exit":{const r=a[l];r&&Object.assign(t[l],r);break}}}function Kg(t,a){throw t?new Error("Cannot close `"+t.type+"` ("+Yr({start:t.start,end:t.end})+"): a different token (`"+a.type+"`, "+Yr({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Yr({start:a.start,end:a.end})+") is still open")}function dN(t){const a=this;a.parser=l;function l(r){return cN(r,{...a.data("settings"),...t,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function mN(t,a){const l={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(a),!0)};return t.patch(a,l),t.applyData(a,l)}function hN(t,a){const l={type:"element",tagName:"br",properties:{},children:[]};return t.patch(a,l),[t.applyData(a,l),{type:"text",value:`
`}]}function pN(t,a){const l=a.value?a.value+`
`:"",r={},o=a.lang?a.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:l}]};return a.meta&&(u.data={meta:a.meta}),t.patch(a,u),u=t.applyData(a,u),u={type:"element",tagName:"pre",properties:{},children:[u]},t.patch(a,u),u}function gN(t,a){const l={type:"element",tagName:"del",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function bN(t,a){const l={type:"element",tagName:"em",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function xN(t,a){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(a.identifier).toUpperCase(),o=$l(r.toLowerCase()),u=t.footnoteOrder.indexOf(r);let c,h=t.footnoteCounts.get(r);h===void 0?(h=0,t.footnoteOrder.push(r),c=t.footnoteOrder.length):c=u+1,h+=1,t.footnoteCounts.set(r,h);const g={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+o,id:l+"fnref-"+o+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(a,g);const p={type:"element",tagName:"sup",properties:{},children:[g]};return t.patch(a,p),t.applyData(a,p)}function yN(t,a){const l={type:"element",tagName:"h"+a.depth,properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function _N(t,a){if(t.options.allowDangerousHtml){const l={type:"raw",value:a.value};return t.patch(a,l),t.applyData(a,l)}}function Mb(t,a){const l=a.referenceType;let r="]";if(l==="collapsed"?r+="[]":l==="full"&&(r+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+r}];const o=t.all(a),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=r:o.push({type:"text",value:r}),o}function vN(t,a){const l=String(a.identifier).toUpperCase(),r=t.definitionById.get(l);if(!r)return Mb(t,a);const o={src:$l(r.url||""),alt:a.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"img",properties:o,children:[]};return t.patch(a,u),t.applyData(a,u)}function EN(t,a){const l={src:$l(a.url)};a.alt!==null&&a.alt!==void 0&&(l.alt=a.alt),a.title!==null&&a.title!==void 0&&(l.title=a.title);const r={type:"element",tagName:"img",properties:l,children:[]};return t.patch(a,r),t.applyData(a,r)}function SN(t,a){const l={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};t.patch(a,l);const r={type:"element",tagName:"code",properties:{},children:[l]};return t.patch(a,r),t.applyData(a,r)}function NN(t,a){const l=String(a.identifier).toUpperCase(),r=t.definitionById.get(l);if(!r)return Mb(t,a);const o={href:$l(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const u={type:"element",tagName:"a",properties:o,children:t.all(a)};return t.patch(a,u),t.applyData(a,u)}function wN(t,a){const l={href:$l(a.url)};a.title!==null&&a.title!==void 0&&(l.title=a.title);const r={type:"element",tagName:"a",properties:l,children:t.all(a)};return t.patch(a,r),t.applyData(a,r)}function kN(t,a,l){const r=t.all(a),o=l?TN(l):Cb(a),u={},c=[];if(typeof a.checked=="boolean"){const b=r[0];let x;b&&b.type==="element"&&b.tagName==="p"?x=b:(x={type:"element",tagName:"p",properties:{},children:[]},r.unshift(x)),x.children.length>0&&x.children.unshift({type:"text",value:" "}),x.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let h=-1;for(;++h<r.length;){const b=r[h];(o||h!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
`}),b.type==="element"&&b.tagName==="p"&&!o?c.push(...b.children):c.push(b)}const g=r[r.length-1];g&&(o||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
`});const p={type:"element",tagName:"li",properties:u,children:c};return t.patch(a,p),t.applyData(a,p)}function TN(t){let a=!1;if(t.type==="list"){a=t.spread||!1;const l=t.children;let r=-1;for(;!a&&++r<l.length;)a=Cb(l[r])}return a}function Cb(t){const a=t.spread;return a??t.children.length>1}function AN(t,a){const l={},r=t.all(a);let o=-1;for(typeof a.start=="number"&&a.start!==1&&(l.start=a.start);++o<r.length;){const c=r[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){l.className=["contains-task-list"];break}}const u={type:"element",tagName:a.ordered?"ol":"ul",properties:l,children:t.wrap(r,!0)};return t.patch(a,u),t.applyData(a,u)}function MN(t,a){const l={type:"element",tagName:"p",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function CN(t,a){const l={type:"root",children:t.wrap(t.all(a))};return t.patch(a,l),t.applyData(a,l)}function ON(t,a){const l={type:"element",tagName:"strong",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}function zN(t,a){const l=t.all(a),r=l.shift(),o=[];if(r){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(a.children[0],c),o.push(c)}if(l.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(l,!0)},h=fd(a.children[1]),g=cb(a.children[a.children.length-1]);h&&g&&(c.position={start:h,end:g}),o.push(c)}const u={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(a,u),t.applyData(a,u)}function RN(t,a,l){const r=l?l.children:void 0,u=(r?r.indexOf(a):1)===0?"th":"td",c=l&&l.type==="table"?l.align:void 0,h=c?c.length:a.children.length;let g=-1;const p=[];for(;++g<h;){const x=a.children[g],_={},v=c?c[g]:void 0;v&&(_.align=v);let S={type:"element",tagName:u,properties:_,children:[]};x&&(S.children=t.all(x),t.patch(x,S),S=t.applyData(x,S)),p.push(S)}const b={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(a,b),t.applyData(a,b)}function DN(t,a){const l={type:"element",tagName:"td",properties:{},children:t.all(a)};return t.patch(a,l),t.applyData(a,l)}const Vg=9,Xg=32;function LN(t){const a=String(t),l=/\r?\n|\r/g;let r=l.exec(a),o=0;const u=[];for(;r;)u.push(Zg(a.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=l.exec(a);return u.push(Zg(a.slice(o),o>0,!1)),u.join("")}function Zg(t,a,l){let r=0,o=t.length;if(a){let u=t.codePointAt(r);for(;u===Vg||u===Xg;)r++,u=t.codePointAt(r)}if(l){let u=t.codePointAt(o-1);for(;u===Vg||u===Xg;)o--,u=t.codePointAt(o-1)}return o>r?t.slice(r,o):""}function jN(t,a){const l={type:"text",value:LN(String(a.value))};return t.patch(a,l),t.applyData(a,l)}function BN(t,a){const l={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(a,l),t.applyData(a,l)}const IN={blockquote:mN,break:hN,code:pN,delete:gN,emphasis:bN,footnoteReference:xN,heading:yN,html:_N,imageReference:vN,image:EN,inlineCode:SN,linkReference:NN,link:wN,listItem:kN,list:AN,paragraph:MN,root:CN,strong:ON,table:zN,tableCell:DN,tableRow:RN,text:jN,thematicBreak:BN,toml:wo,yaml:wo,definition:wo,footnoteDefinition:wo};function wo(){}const Ob=-1,Zo=0,Vr=1,$o=2,xd=3,yd=4,_d=5,vd=6,zb=7,Rb=8,Qg=typeof self=="object"?self:globalThis,UN=(t,a)=>{const l=(o,u)=>(t.set(u,o),o),r=o=>{if(t.has(o))return t.get(o);const[u,c]=a[o];switch(u){case Zo:case Ob:return l(c,o);case Vr:{const h=l([],o);for(const g of c)h.push(r(g));return h}case $o:{const h=l({},o);for(const[g,p]of c)h[r(g)]=r(p);return h}case xd:return l(new Date(c),o);case yd:{const{source:h,flags:g}=c;return l(new RegExp(h,g),o)}case _d:{const h=l(new Map,o);for(const[g,p]of c)h.set(r(g),r(p));return h}case vd:{const h=l(new Set,o);for(const g of c)h.add(r(g));return h}case zb:{const{name:h,message:g}=c;return l(new Qg[h](g),o)}case Rb:return l(BigInt(c),o);case"BigInt":return l(Object(BigInt(c)),o);case"ArrayBuffer":return l(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:h}=new Uint8Array(c);return l(new DataView(h),c)}}return l(new Qg[u](c),o)};return r},Jg=t=>UN(new Map,t)(0),kl="",{toString:HN}={},{keys:FN}=Object,Fr=t=>{const a=typeof t;if(a!=="object"||!t)return[Zo,a];const l=HN.call(t).slice(8,-1);switch(l){case"Array":return[Vr,kl];case"Object":return[$o,kl];case"Date":return[xd,kl];case"RegExp":return[yd,kl];case"Map":return[_d,kl];case"Set":return[vd,kl];case"DataView":return[Vr,l]}return l.includes("Array")?[Vr,l]:l.includes("Error")?[zb,l]:[$o,l]},ko=([t,a])=>t===Zo&&(a==="function"||a==="symbol"),$N=(t,a,l,r)=>{const o=(c,h)=>{const g=r.push(c)-1;return l.set(h,g),g},u=c=>{if(l.has(c))return l.get(c);let[h,g]=Fr(c);switch(h){case Zo:{let b=c;switch(g){case"bigint":h=Rb,b=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+g);b=null;break;case"undefined":return o([Ob],c)}return o([h,b],c)}case Vr:{if(g){let _=c;return g==="DataView"?_=new Uint8Array(c.buffer):g==="ArrayBuffer"&&(_=new Uint8Array(c)),o([g,[..._]],c)}const b=[],x=o([h,b],c);for(const _ of c)b.push(u(_));return x}case $o:{if(g)switch(g){case"BigInt":return o([g,c.toString()],c);case"Boolean":case"Number":case"String":return o([g,c.valueOf()],c)}if(a&&"toJSON"in c)return u(c.toJSON());const b=[],x=o([h,b],c);for(const _ of FN(c))(t||!ko(Fr(c[_])))&&b.push([u(_),u(c[_])]);return x}case xd:return o([h,c.toISOString()],c);case yd:{const{source:b,flags:x}=c;return o([h,{source:b,flags:x}],c)}case _d:{const b=[],x=o([h,b],c);for(const[_,v]of c)(t||!(ko(Fr(_))||ko(Fr(v))))&&b.push([u(_),u(v)]);return x}case vd:{const b=[],x=o([h,b],c);for(const _ of c)(t||!ko(Fr(_)))&&b.push(u(_));return x}}const{message:p}=c;return o([h,{name:g,message:p}],c)};return u},Wg=(t,{json:a,lossy:l}={})=>{const r=[];return $N(!(a||l),!!a,new Map,r)(t),r},qo=typeof structuredClone=="function"?(t,a)=>a&&("json"in a||"lossy"in a)?Jg(Wg(t,a)):structuredClone(t):(t,a)=>Jg(Wg(t,a));function qN(t,a){const l=[{type:"text",value:"↩"}];return a>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),l}function GN(t,a){return"Back to reference "+(t+1)+(a>1?"-"+a:"")}function PN(t){const a=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",l=t.options.footnoteBackContent||qN,r=t.options.footnoteBackLabel||GN,o=t.options.footnoteLabel||"Footnotes",u=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let g=-1;for(;++g<t.footnoteOrder.length;){const p=t.footnoteById.get(t.footnoteOrder[g]);if(!p)continue;const b=t.all(p),x=String(p.identifier).toUpperCase(),_=$l(x.toLowerCase());let v=0;const S=[],T=t.footnoteCounts.get(x);for(;T!==void 0&&++v<=T;){S.length>0&&S.push({type:"text",value:" "});let C=typeof l=="string"?l:l(g,v);typeof C=="string"&&(C={type:"text",value:C}),S.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+_+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(g,v),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const A=b[b.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const C=A.children[A.children.length-1];C&&C.type==="text"?C.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...S)}else b.push(...S);const w={type:"element",tagName:"li",properties:{id:a+"fn-"+_},children:t.wrap(b,!0)};t.patch(p,w),h.push(w)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...qo(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(h,!0)},{type:"text",value:`
`}]}}const is=(function(t){if(t==null)return XN;if(typeof t=="function")return Qo(t);if(typeof t=="object")return Array.isArray(t)?YN(t):KN(t);if(typeof t=="string")return VN(t);throw new Error("Expected function, string, or object as test")});function YN(t){const a=[];let l=-1;for(;++l<t.length;)a[l]=is(t[l]);return Qo(r);function r(...o){let u=-1;for(;++u<a.length;)if(a[u].apply(this,o))return!0;return!1}}function KN(t){const a=t;return Qo(l);function l(r){const o=r;let u;for(u in t)if(o[u]!==a[u])return!1;return!0}}function VN(t){return Qo(a);function a(l){return l&&l.type===t}}function Qo(t){return a;function a(l,r,o){return!!(ZN(l)&&t.call(this,l,typeof r=="number"?r:void 0,o||void 0))}}function XN(){return!0}function ZN(t){return t!==null&&typeof t=="object"&&"type"in t}const Db=[],QN=!0,Yf=!1,JN="skip";function Lb(t,a,l,r){let o;typeof a=="function"&&typeof l!="function"?(r=l,l=a):o=a;const u=is(o),c=r?-1:1;h(t,void 0,[])();function h(g,p,b){const x=g&&typeof g=="object"?g:{};if(typeof x.type=="string"){const v=typeof x.tagName=="string"?x.tagName:typeof x.name=="string"?x.name:void 0;Object.defineProperty(_,"name",{value:"node ("+(g.type+(v?"<"+v+">":""))+")"})}return _;function _(){let v=Db,S,T,A;if((!a||u(g,p,b[b.length-1]||void 0))&&(v=WN(l(g,b)),v[0]===Yf))return v;if("children"in g&&g.children){const w=g;if(w.children&&v[0]!==JN)for(T=(r?w.children.length:-1)+c,A=b.concat(w);T>-1&&T<w.children.length;){const C=w.children[T];if(S=h(C,T,A)(),S[0]===Yf)return S;T=typeof S[1]=="number"?S[1]:T+c}}return v}}}function WN(t){return Array.isArray(t)?t:typeof t=="number"?[QN,t]:t==null?Db:[t]}function Jo(t,a,l,r){let o,u,c;typeof a=="function"&&typeof l!="function"?(u=void 0,c=a,o=l):(u=a,c=l,o=r),Lb(t,u,h,o);function h(g,p){const b=p[p.length-1],x=b?b.children.indexOf(g):void 0;return c(g,x,b)}}const Kf={}.hasOwnProperty,ew={};function tw(t,a){const l=a||ew,r=new Map,o=new Map,u=new Map,c={...IN,...l.handlers},h={all:p,applyData:iw,definitionById:r,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:c,one:g,options:l,patch:nw,wrap:lw};return Jo(t,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const x=b.type==="definition"?r:o,_=String(b.identifier).toUpperCase();x.has(_)||x.set(_,b)}}),h;function g(b,x){const _=b.type,v=h.handlers[_];if(Kf.call(h.handlers,_)&&v)return v(h,b,x);if(h.options.passThrough&&h.options.passThrough.includes(_)){if("children"in b){const{children:T,...A}=b,w=qo(A);return w.children=h.all(b),w}return qo(b)}return(h.options.unknownHandler||aw)(h,b,x)}function p(b){const x=[];if("children"in b){const _=b.children;let v=-1;for(;++v<_.length;){const S=h.one(_[v],b);if(S){if(v&&_[v-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=e0(S.value)),!Array.isArray(S)&&S.type==="element")){const T=S.children[0];T&&T.type==="text"&&(T.value=e0(T.value))}Array.isArray(S)?x.push(...S):x.push(S)}}}return x}}function nw(t,a){t.position&&(a.position=Gv(t))}function iw(t,a){let l=a;if(t&&t.data){const r=t.data.hName,o=t.data.hChildren,u=t.data.hProperties;if(typeof r=="string")if(l.type==="element")l.tagName=r;else{const c="children"in l?l.children:[l];l={type:"element",tagName:r,properties:{},children:c}}l.type==="element"&&u&&Object.assign(l.properties,qo(u)),"children"in l&&l.children&&o!==null&&o!==void 0&&(l.children=o)}return l}function aw(t,a){const l=a.data||{},r="value"in a&&!(Kf.call(l,"hProperties")||Kf.call(l,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:t.all(a)};return t.patch(a,r),t.applyData(a,r)}function lw(t,a){const l=[];let r=-1;for(a&&l.push({type:"text",value:`
`});++r<t.length;)r&&l.push({type:"text",value:`
`}),l.push(t[r]);return a&&t.length>0&&l.push({type:"text",value:`
`}),l}function e0(t){let a=0,l=t.charCodeAt(a);for(;l===9||l===32;)a++,l=t.charCodeAt(a);return t.slice(a)}function t0(t,a){const l=tw(t,a),r=l.one(t,void 0),o=PN(l),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
`},o),u}function rw(t,a){return t&&"run"in t?async function(l,r){const o=t0(l,{file:r,...a});await t.run(o,r)}:function(l,r){return t0(l,{file:r,...t||a})}}function n0(t){if(t)throw t}var mf,i0;function sw(){if(i0)return mf;i0=1;var t=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},u=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var b=t.call(p,"constructor"),x=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!x)return!1;var _;for(_ in p);return typeof _>"u"||t.call(p,_)},c=function(p,b){l&&b.name==="__proto__"?l(p,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):p[b.name]=b.newValue},h=function(p,b){if(b==="__proto__")if(t.call(p,b)){if(r)return r(p,b).value}else return;return p[b]};return mf=function g(){var p,b,x,_,v,S,T=arguments[0],A=1,w=arguments.length,C=!1;for(typeof T=="boolean"&&(C=T,T=arguments[1]||{},A=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});A<w;++A)if(p=arguments[A],p!=null)for(b in p)x=h(T,b),_=h(p,b),T!==_&&(C&&_&&(u(_)||(v=o(_)))?(v?(v=!1,S=x&&o(x)?x:[]):S=x&&u(x)?x:{},c(T,{name:b,newValue:g(C,S,_)})):typeof _<"u"&&c(T,{name:b,newValue:_}));return T},mf}var ow=sw();const hf=id(ow);function Vf(t){if(typeof t!="object"||t===null)return!1;const a=Object.getPrototypeOf(t);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function cw(){const t=[],a={run:l,use:r};return a;function l(...o){let u=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);h(null,...o);function h(g,...p){const b=t[++u];let x=-1;if(g){c(g);return}for(;++x<o.length;)(p[x]===null||p[x]===void 0)&&(p[x]=o[x]);o=p,b?uw(b,h)(...p):c(null,...p)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),a}}function uw(t,a){let l;return r;function r(...c){const h=t.length>c.length;let g;h&&c.push(o);try{g=t.apply(this,c)}catch(p){const b=p;if(h&&l)throw b;return o(b)}h||(g&&g.then&&typeof g.then=="function"?g.then(u,o):g instanceof Error?o(g):u(g))}function o(c,...h){l||(l=!0,a(c,...h))}function u(c){o(null,c)}}const ci={basename:fw,dirname:dw,extname:mw,join:hw,sep:"/"};function fw(t,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');as(t);let l=0,r=-1,o=t.length,u;if(a===void 0||a.length===0||a.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(u){l=o+1;break}}else r<0&&(u=!0,r=o+1);return r<0?"":t.slice(l,r)}if(a===t)return"";let c=-1,h=a.length-1;for(;o--;)if(t.codePointAt(o)===47){if(u){l=o+1;break}}else c<0&&(u=!0,c=o+1),h>-1&&(t.codePointAt(o)===a.codePointAt(h--)?h<0&&(r=o):(h=-1,r=c));return l===r?r=c:r<0&&(r=t.length),t.slice(l,r)}function dw(t){if(as(t),t.length===0)return".";let a=-1,l=t.length,r;for(;--l;)if(t.codePointAt(l)===47){if(r){a=l;break}}else r||(r=!0);return a<0?t.codePointAt(0)===47?"/":".":a===1&&t.codePointAt(0)===47?"//":t.slice(0,a)}function mw(t){as(t);let a=t.length,l=-1,r=0,o=-1,u=0,c;for(;a--;){const h=t.codePointAt(a);if(h===47){if(c){r=a+1;break}continue}l<0&&(c=!0,l=a+1),h===46?o<0?o=a:u!==1&&(u=1):o>-1&&(u=-1)}return o<0||l<0||u===0||u===1&&o===l-1&&o===r+1?"":t.slice(o,l)}function hw(...t){let a=-1,l;for(;++a<t.length;)as(t[a]),t[a]&&(l=l===void 0?t[a]:l+"/"+t[a]);return l===void 0?".":pw(l)}function pw(t){as(t);const a=t.codePointAt(0)===47;let l=gw(t,!a);return l.length===0&&!a&&(l="."),l.length>0&&t.codePointAt(t.length-1)===47&&(l+="/"),a?"/"+l:l}function gw(t,a){let l="",r=0,o=-1,u=0,c=-1,h,g;for(;++c<=t.length;){if(c<t.length)h=t.codePointAt(c);else{if(h===47)break;h=47}if(h===47){if(!(o===c-1||u===1))if(o!==c-1&&u===2){if(l.length<2||r!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(g=l.lastIndexOf("/"),g!==l.length-1){g<0?(l="",r=0):(l=l.slice(0,g),r=l.length-1-l.lastIndexOf("/")),o=c,u=0;continue}}else if(l.length>0){l="",r=0,o=c,u=0;continue}}a&&(l=l.length>0?l+"/..":"..",r=2)}else l.length>0?l+="/"+t.slice(o+1,c):l=t.slice(o+1,c),r=c-o-1;o=c,u=0}else h===46&&u>-1?u++:u=-1}return l}function as(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const bw={cwd:xw};function xw(){return"/"}function Xf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function yw(t){if(typeof t=="string")t=new URL(t);else if(!Xf(t)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(t.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return _w(t)}function _w(t){if(t.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const a=t.pathname;let l=-1;for(;++l<a.length;)if(a.codePointAt(l)===37&&a.codePointAt(l+1)===50){const r=a.codePointAt(l+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(a)}const pf=["history","path","basename","stem","extname","dirname"];class jb{constructor(a){let l;a?Xf(a)?l={path:a}:typeof a=="string"||vw(a)?l={value:a}:l=a:l={},this.cwd="cwd"in l?"":bw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<pf.length;){const u=pf[r];u in l&&l[u]!==void 0&&l[u]!==null&&(this[u]=u==="history"?[...l[u]]:l[u])}let o;for(o in l)pf.includes(o)||(this[o]=l[o])}get basename(){return typeof this.path=="string"?ci.basename(this.path):void 0}set basename(a){bf(a,"basename"),gf(a,"basename"),this.path=ci.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?ci.dirname(this.path):void 0}set dirname(a){a0(this.basename,"dirname"),this.path=ci.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?ci.extname(this.path):void 0}set extname(a){if(gf(a,"extname"),a0(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ci.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){Xf(a)&&(a=yw(a)),bf(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?ci.basename(this.path,this.extname):void 0}set stem(a){bf(a,"stem"),gf(a,"stem"),this.path=ci.join(this.dirname||"",a+(this.extname||""))}fail(a,l,r){const o=this.message(a,l,r);throw o.fatal=!0,o}info(a,l,r){const o=this.message(a,l,r);return o.fatal=void 0,o}message(a,l,r){const o=new sn(a,l,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function gf(t,a){if(t&&t.includes(ci.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+ci.sep+"`")}function bf(t,a){if(!t)throw new Error("`"+a+"` cannot be empty")}function a0(t,a){if(!t)throw new Error("Setting `"+a+"` requires `path` to be set too")}function vw(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Ew=(function(t){const r=this.constructor.prototype,o=r[t],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,r),u}),Sw={}.hasOwnProperty;class Ed extends Ew{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=cw()}copy(){const a=new Ed;let l=-1;for(;++l<this.attachers.length;){const r=this.attachers[l];a.use(...r)}return a.data(hf(!0,{},this.namespace)),a}data(a,l){return typeof a=="string"?arguments.length===2?(_f("data",this.frozen),this.namespace[a]=l,this):Sw.call(this.namespace,a)&&this.namespace[a]||void 0:a?(_f("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=l.call(a,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const l=To(a),r=this.parser||this.Parser;return xf("parse",r),r(String(l),l)}process(a,l){const r=this;return this.freeze(),xf("process",this.parser||this.Parser),yf("process",this.compiler||this.Compiler),l?o(void 0,l):new Promise(o);function o(u,c){const h=To(a),g=r.parse(h);r.run(g,h,function(b,x,_){if(b||!x||!_)return p(b);const v=x,S=r.stringify(v,_);kw(S)?_.value=S:_.result=S,p(b,_)});function p(b,x){b||!x?c(b):u?u(x):l(void 0,x)}}}processSync(a){let l=!1,r;return this.freeze(),xf("processSync",this.parser||this.Parser),yf("processSync",this.compiler||this.Compiler),this.process(a,o),r0("processSync","process",l),r;function o(u,c){l=!0,n0(u),r=c}}run(a,l,r){l0(a),this.freeze();const o=this.transformers;return!r&&typeof l=="function"&&(r=l,l=void 0),r?u(void 0,r):new Promise(u);function u(c,h){const g=To(l);o.run(a,g,p);function p(b,x,_){const v=x||a;b?h(b):c?c(v):r(void 0,v,_)}}}runSync(a,l){let r=!1,o;return this.run(a,l,u),r0("runSync","run",r),o;function u(c,h){n0(c),o=h,r=!0}}stringify(a,l){this.freeze();const r=To(l),o=this.compiler||this.Compiler;return yf("stringify",o),l0(a),o(a,r)}use(a,...l){const r=this.attachers,o=this.namespace;if(_f("use",this.frozen),a!=null)if(typeof a=="function")g(a,l);else if(typeof a=="object")Array.isArray(a)?h(a):c(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function u(p){if(typeof p=="function")g(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[b,...x]=p;g(b,x)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))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");h(p.plugins),p.settings&&(o.settings=hf(!0,o.settings,p.settings))}function h(p){let b=-1;if(p!=null)if(Array.isArray(p))for(;++b<p.length;){const x=p[b];u(x)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function g(p,b){let x=-1,_=-1;for(;++x<r.length;)if(r[x][0]===p){_=x;break}if(_===-1)r.push([p,...b]);else if(b.length>0){let[v,...S]=b;const T=r[_][1];Vf(T)&&Vf(v)&&(v=hf(!0,T,v)),r[_]=[p,v,...S]}}}}const Nw=new Ed().freeze();function xf(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function yf(t,a){if(typeof a!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function _f(t,a){if(a)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function l0(t){if(!Vf(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function r0(t,a,l){if(!l)throw new Error("`"+t+"` finished async. Use `"+a+"` instead")}function To(t){return ww(t)?t:new jb(t)}function ww(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function kw(t){return typeof t=="string"||Tw(t)}function Tw(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Aw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",s0=[],o0={allowDangerousHtml:!0},Mw=/^(https?|ircs?|mailto|xmpp)$/i,Cw=[{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 Ow(t){const a=zw(t),l=Rw(t);return Dw(a.runSync(a.parse(l),l),t)}function zw(t){const a=t.rehypePlugins||s0,l=t.remarkPlugins||s0,r=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...o0}:o0;return Nw().use(dN).use(l).use(rw,r).use(a)}function Rw(t){const a=t.children||"",l=new jb;return typeof a=="string"&&(l.value=a),l}function Dw(t,a){const l=a.allowedElements,r=a.allowElement,o=a.components,u=a.disallowedElements,c=a.skipHtml,h=a.unwrapDisallowed,g=a.urlTransform||Lw;for(const b of Cw)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+Aw+b.id,void 0);return Jo(t,p),Xv(t,{Fragment:m.Fragment,components:o,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function p(b,x,_){if(b.type==="raw"&&_&&typeof x=="number")return c?_.children.splice(x,1):_.children[x]={type:"text",value:b.value},x;if(b.type==="element"){let v;for(v in uf)if(Object.hasOwn(uf,v)&&Object.hasOwn(b.properties,v)){const S=b.properties[v],T=uf[v];(T===null||T.includes(b.tagName))&&(b.properties[v]=g(String(S||""),v,b))}}if(b.type==="element"){let v=l?!l.includes(b.tagName):u?u.includes(b.tagName):!1;if(!v&&r&&typeof x=="number"&&(v=!r(b,x,_)),v&&_&&typeof x=="number")return h&&b.children?_.children.splice(x,1,...b.children):_.children.splice(x,1),x}}}function Lw(t){const a=t.indexOf(":"),l=t.indexOf("?"),r=t.indexOf("#"),o=t.indexOf("/");return a===-1||o!==-1&&a>o||l!==-1&&a>l||r!==-1&&a>r||Mw.test(t.slice(0,a))?t:""}function c0(t,a){const l=String(t);if(typeof a!="string")throw new TypeError("Expected character");let r=0,o=l.indexOf(a);for(;o!==-1;)r++,o=l.indexOf(a,o+a.length);return r}function jw(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Bw(t,a,l){const o=is((l||{}).ignore||[]),u=Iw(a);let c=-1;for(;++c<u.length;)Lb(t,"text",h);function h(p,b){let x=-1,_;for(;++x<b.length;){const v=b[x],S=_?_.children:void 0;if(o(v,S?S.indexOf(v):void 0,_))return;_=v}if(_)return g(p,b)}function g(p,b){const x=b[b.length-1],_=u[c][0],v=u[c][1];let S=0;const A=x.children.indexOf(p);let w=!1,C=[];_.lastIndex=0;let z=_.exec(p.value);for(;z;){const q=z.index,K={index:z.index,input:z.input,stack:[...b,p]};let D=v(...z,K);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?_.lastIndex=q+1:(S!==q&&C.push({type:"text",value:p.value.slice(S,q)}),Array.isArray(D)?C.push(...D):D&&C.push(D),S=q+z[0].length,w=!0),!_.global)break;z=_.exec(p.value)}return w?(S<p.value.length&&C.push({type:"text",value:p.value.slice(S)}),x.children.splice(A,1,...C)):C=[p],A+C.length}}function Iw(t){const a=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const l=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<l.length;){const o=l[r];a.push([Uw(o[0]),Hw(o[1])])}return a}function Uw(t){return typeof t=="string"?new RegExp(jw(t),"g"):t}function Hw(t){return typeof t=="function"?t:function(){return t}}const vf="phrasing",Ef=["autolink","link","image","label"];function Fw(){return{transforms:[Vw],enter:{literalAutolink:qw,literalAutolinkEmail:Sf,literalAutolinkHttp:Sf,literalAutolinkWww:Sf},exit:{literalAutolink:Kw,literalAutolinkEmail:Yw,literalAutolinkHttp:Gw,literalAutolinkWww:Pw}}}function $w(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:vf,notInConstruct:Ef},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:vf,notInConstruct:Ef},{character:":",before:"[ps]",after:"\\/",inConstruct:vf,notInConstruct:Ef}]}}function qw(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Sf(t){this.config.enter.autolinkProtocol.call(this,t)}function Gw(t){this.config.exit.autolinkProtocol.call(this,t)}function Pw(t){this.config.exit.data.call(this,t);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(t)}function Yw(t){this.config.exit.autolinkEmail.call(this,t)}function Kw(t){this.exit(t)}function Vw(t){Bw(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Xw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Zw]],{ignore:["link","linkReference"]})}function Xw(t,a,l,r,o){let u="";if(!Bb(o)||(/^w/i.test(a)&&(l=a+l,a="",u="http://"),!Qw(l)))return!1;const c=Jw(l+r);if(!c[0])return!1;const h={type:"link",title:null,url:u+a+c[0],children:[{type:"text",value:a+c[0]}]};return c[1]?[h,{type:"text",value:c[1]}]:h}function Zw(t,a,l,r){return!Bb(r,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+l,children:[{type:"text",value:a+"@"+l}]}}function Qw(t){const a=t.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function Jw(t){const a=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!a)return[t,void 0];t=t.slice(0,a.index);let l=a[0],r=l.indexOf(")");const o=c0(t,"(");let u=c0(t,")");for(;r!==-1&&o>u;)t+=l.slice(0,r+1),l=l.slice(r+1),r=l.indexOf(")"),u++;return[t,l]}function Bb(t,a){const l=t.input.charCodeAt(t.index-1);return(t.index===0||Ba(l)||Vo(l))&&(!a||l!==47)}Ib.peek=sk;function Ww(){this.buffer()}function ek(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function tk(){this.buffer()}function nk(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function ik(t){const a=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Jn(this.sliceSerialize(t)).toLowerCase(),l.label=a}function ak(t){this.exit(t)}function lk(t){const a=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Jn(this.sliceSerialize(t)).toLowerCase(),l.label=a}function rk(t){this.exit(t)}function sk(){return"["}function Ib(t,a,l,r){const o=l.createTracker(r);let u=o.move("[^");const c=l.enter("footnoteReference"),h=l.enter("reference");return u+=o.move(l.safe(l.associationId(t),{after:"]",before:u})),h(),c(),u+=o.move("]"),u}function ok(){return{enter:{gfmFootnoteCallString:Ww,gfmFootnoteCall:ek,gfmFootnoteDefinitionLabelString:tk,gfmFootnoteDefinition:nk},exit:{gfmFootnoteCallString:ik,gfmFootnoteCall:ak,gfmFootnoteDefinitionLabelString:lk,gfmFootnoteDefinition:rk}}}function ck(t){let a=!1;return t&&t.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:l,footnoteReference:Ib},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(r,o,u,c){const h=u.createTracker(c);let g=h.move("[^");const p=u.enter("footnoteDefinition"),b=u.enter("label");return g+=h.move(u.safe(u.associationId(r),{before:g,after:"]"})),b(),g+=h.move("]:"),r.children&&r.children.length>0&&(h.shift(4),g+=h.move((a?`
`:" ")+u.indentLines(u.containerFlow(r,h.current()),a?Ub:uk))),p(),g}}function uk(t,a,l){return a===0?t:Ub(t,a,l)}function Ub(t,a,l){return(l?"":"    ")+t}const fk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Hb.peek=gk;function dk(){return{canContainEols:["delete"],enter:{strikethrough:hk},exit:{strikethrough:pk}}}function mk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fk}],handlers:{delete:Hb}}}function hk(t){this.enter({type:"delete",children:[]},t)}function pk(t){this.exit(t)}function Hb(t,a,l,r){const o=l.createTracker(r),u=l.enter("strikethrough");let c=o.move("~~");return c+=l.containerPhrasing(t,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),u(),c}function gk(){return"~"}function bk(t){return t.length}function xk(t,a){const l=a||{},r=(l.align||[]).concat(),o=l.stringLength||bk,u=[],c=[],h=[],g=[];let p=0,b=-1;for(;++b<t.length;){const T=[],A=[];let w=-1;for(t[b].length>p&&(p=t[b].length);++w<t[b].length;){const C=yk(t[b][w]);if(l.alignDelimiters!==!1){const z=o(C);A[w]=z,(g[w]===void 0||z>g[w])&&(g[w]=z)}T.push(C)}c[b]=T,h[b]=A}let x=-1;if(typeof r=="object"&&"length"in r)for(;++x<p;)u[x]=u0(r[x]);else{const T=u0(r);for(;++x<p;)u[x]=T}x=-1;const _=[],v=[];for(;++x<p;){const T=u[x];let A="",w="";T===99?(A=":",w=":"):T===108?A=":":T===114&&(w=":");let C=l.alignDelimiters===!1?1:Math.max(1,g[x]-A.length-w.length);const z=A+"-".repeat(C)+w;l.alignDelimiters!==!1&&(C=A.length+C+w.length,C>g[x]&&(g[x]=C),v[x]=C),_[x]=z}c.splice(1,0,_),h.splice(1,0,v),b=-1;const S=[];for(;++b<c.length;){const T=c[b],A=h[b];x=-1;const w=[];for(;++x<p;){const C=T[x]||"";let z="",q="";if(l.alignDelimiters!==!1){const K=g[x]-(A[x]||0),D=u[x];D===114?z=" ".repeat(K):D===99?K%2?(z=" ".repeat(K/2+.5),q=" ".repeat(K/2-.5)):(z=" ".repeat(K/2),q=z):q=" ".repeat(K)}l.delimiterStart!==!1&&!x&&w.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&C==="")&&(l.delimiterStart!==!1||x)&&w.push(" "),l.alignDelimiters!==!1&&w.push(z),w.push(C),l.alignDelimiters!==!1&&w.push(q),l.padding!==!1&&w.push(" "),(l.delimiterEnd!==!1||x!==p-1)&&w.push("|")}S.push(l.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return S.join(`
`)}function yk(t){return t==null?"":String(t)}function u0(t){const a=typeof t=="string"?t.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function _k(t,a,l,r){const o=l.enter("blockquote"),u=l.createTracker(r);u.move("> "),u.shift(2);const c=l.indentLines(l.containerFlow(t,u.current()),vk);return o(),c}function vk(t,a,l){return">"+(l?"":" ")+t}function Ek(t,a){return f0(t,a.inConstruct,!0)&&!f0(t,a.notInConstruct,!1)}function f0(t,a,l){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return l;let r=-1;for(;++r<a.length;)if(t.includes(a[r]))return!0;return!1}function d0(t,a,l,r){let o=-1;for(;++o<l.unsafe.length;)if(l.unsafe[o].character===`
`&&Ek(l.stack,l.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
`}function Sk(t,a){const l=String(t);let r=l.indexOf(a),o=r,u=0,c=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++u>c&&(c=u):u=1,o=r+a.length,r=l.indexOf(a,o);return c}function Nk(t,a){return!!(a.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function wk(t){const a=t.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function kk(t,a,l,r){const o=wk(l),u=t.value||"",c=o==="`"?"GraveAccent":"Tilde";if(Nk(t,l)){const x=l.enter("codeIndented"),_=l.indentLines(u,Tk);return x(),_}const h=l.createTracker(r),g=o.repeat(Math.max(Sk(u,o)+1,3)),p=l.enter("codeFenced");let b=h.move(g);if(t.lang){const x=l.enter(`codeFencedLang${c}`);b+=h.move(l.safe(t.lang,{before:b,after:" ",encode:["`"],...h.current()})),x()}if(t.lang&&t.meta){const x=l.enter(`codeFencedMeta${c}`);b+=h.move(" "),b+=h.move(l.safe(t.meta,{before:b,after:`
`,encode:["`"],...h.current()})),x()}return b+=h.move(`
`),u&&(b+=h.move(u+`
`)),b+=h.move(g),p(),b}function Tk(t,a,l){return(l?"":"    ")+t}function Sd(t){const a=t.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function Ak(t,a,l,r){const o=Sd(l),u=o==='"'?"Quote":"Apostrophe",c=l.enter("definition");let h=l.enter("label");const g=l.createTracker(r);let p=g.move("[");return p+=g.move(l.safe(l.associationId(t),{before:p,after:"]",...g.current()})),p+=g.move("]: "),h(),!t.url||/[\0- \u007F]/.test(t.url)?(h=l.enter("destinationLiteral"),p+=g.move("<"),p+=g.move(l.safe(t.url,{before:p,after:">",...g.current()})),p+=g.move(">")):(h=l.enter("destinationRaw"),p+=g.move(l.safe(t.url,{before:p,after:t.title?" ":`
`,...g.current()}))),h(),t.title&&(h=l.enter(`title${u}`),p+=g.move(" "+o),p+=g.move(l.safe(t.title,{before:p,after:o,...g.current()})),p+=g.move(o),h()),c(),p}function Mk(t){const a=t.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function es(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Go(t,a,l){const r=Ul(t),o=Ul(a);return r===void 0?o===void 0?l==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Fb.peek=Ck;function Fb(t,a,l,r){const o=Mk(l),u=l.enter("emphasis"),c=l.createTracker(r),h=c.move(o);let g=c.move(l.containerPhrasing(t,{after:o,before:h,...c.current()}));const p=g.charCodeAt(0),b=Go(r.before.charCodeAt(r.before.length-1),p,o);b.inside&&(g=es(p)+g.slice(1));const x=g.charCodeAt(g.length-1),_=Go(r.after.charCodeAt(0),x,o);_.inside&&(g=g.slice(0,-1)+es(x));const v=c.move(o);return u(),l.attentionEncodeSurroundingInfo={after:_.outside,before:b.outside},h+g+v}function Ck(t,a,l){return l.options.emphasis||"*"}function Ok(t,a){let l=!1;return Jo(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return l=!0,Yf}),!!((!t.depth||t.depth<3)&&pd(t)&&(a.options.setext||l))}function zk(t,a,l,r){const o=Math.max(Math.min(6,t.depth||1),1),u=l.createTracker(r);if(Ok(t,l)){const b=l.enter("headingSetext"),x=l.enter("phrasing"),_=l.containerPhrasing(t,{...u.current(),before:`
`,after:`
`});return x(),b(),_+`
`+(o===1?"=":"-").repeat(_.length-(Math.max(_.lastIndexOf("\r"),_.lastIndexOf(`
`))+1))}const c="#".repeat(o),h=l.enter("headingAtx"),g=l.enter("phrasing");u.move(c+" ");let p=l.containerPhrasing(t,{before:"# ",after:`
`,...u.current()});return/^[\t ]/.test(p)&&(p=es(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,l.options.closeAtx&&(p+=" "+c),g(),h(),p}$b.peek=Rk;function $b(t){return t.value||""}function Rk(){return"<"}qb.peek=Dk;function qb(t,a,l,r){const o=Sd(l),u=o==='"'?"Quote":"Apostrophe",c=l.enter("image");let h=l.enter("label");const g=l.createTracker(r);let p=g.move("![");return p+=g.move(l.safe(t.alt,{before:p,after:"]",...g.current()})),p+=g.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=l.enter("destinationLiteral"),p+=g.move("<"),p+=g.move(l.safe(t.url,{before:p,after:">",...g.current()})),p+=g.move(">")):(h=l.enter("destinationRaw"),p+=g.move(l.safe(t.url,{before:p,after:t.title?" ":")",...g.current()}))),h(),t.title&&(h=l.enter(`title${u}`),p+=g.move(" "+o),p+=g.move(l.safe(t.title,{before:p,after:o,...g.current()})),p+=g.move(o),h()),p+=g.move(")"),c(),p}function Dk(){return"!"}Gb.peek=Lk;function Gb(t,a,l,r){const o=t.referenceType,u=l.enter("imageReference");let c=l.enter("label");const h=l.createTracker(r);let g=h.move("![");const p=l.safe(t.alt,{before:g,after:"]",...h.current()});g+=h.move(p+"]["),c();const b=l.stack;l.stack=[],c=l.enter("reference");const x=l.safe(l.associationId(t),{before:g,after:"]",...h.current()});return c(),l.stack=b,u(),o==="full"||!p||p!==x?g+=h.move(x+"]"):o==="shortcut"?g=g.slice(0,-1):g+=h.move("]"),g}function Lk(){return"!"}Pb.peek=jk;function Pb(t,a,l){let r=t.value||"",o="`",u=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u<l.unsafe.length;){const c=l.unsafe[u],h=l.compilePattern(c);let g;if(c.atBreak)for(;g=h.exec(r);){let p=g.index;r.charCodeAt(p)===10&&r.charCodeAt(p-1)===13&&p--,r=r.slice(0,p)+" "+r.slice(g.index+1)}}return o+r+o}function jk(){return"`"}function Yb(t,a){const l=pd(t);return!!(!a.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(l===t.url||"mailto:"+l===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Kb.peek=Bk;function Kb(t,a,l,r){const o=Sd(l),u=o==='"'?"Quote":"Apostrophe",c=l.createTracker(r);let h,g;if(Yb(t,l)){const b=l.stack;l.stack=[],h=l.enter("autolink");let x=c.move("<");return x+=c.move(l.containerPhrasing(t,{before:x,after:">",...c.current()})),x+=c.move(">"),h(),l.stack=b,x}h=l.enter("link"),g=l.enter("label");let p=c.move("[");return p+=c.move(l.containerPhrasing(t,{before:p,after:"](",...c.current()})),p+=c.move("]("),g(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(g=l.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(l.safe(t.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(g=l.enter("destinationRaw"),p+=c.move(l.safe(t.url,{before:p,after:t.title?" ":")",...c.current()}))),g(),t.title&&(g=l.enter(`title${u}`),p+=c.move(" "+o),p+=c.move(l.safe(t.title,{before:p,after:o,...c.current()})),p+=c.move(o),g()),p+=c.move(")"),h(),p}function Bk(t,a,l){return Yb(t,l)?"<":"["}Vb.peek=Ik;function Vb(t,a,l,r){const o=t.referenceType,u=l.enter("linkReference");let c=l.enter("label");const h=l.createTracker(r);let g=h.move("[");const p=l.containerPhrasing(t,{before:g,after:"]",...h.current()});g+=h.move(p+"]["),c();const b=l.stack;l.stack=[],c=l.enter("reference");const x=l.safe(l.associationId(t),{before:g,after:"]",...h.current()});return c(),l.stack=b,u(),o==="full"||!p||p!==x?g+=h.move(x+"]"):o==="shortcut"?g=g.slice(0,-1):g+=h.move("]"),g}function Ik(){return"["}function Nd(t){const a=t.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function Uk(t){const a=Nd(t),l=t.options.bulletOther;if(!l)return a==="*"?"-":"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(l===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+l+"`) to be different");return l}function Hk(t){const a=t.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function Xb(t){const a=t.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function Fk(t,a,l,r){const o=l.enter("list"),u=l.bulletCurrent;let c=t.ordered?Hk(l):Nd(l);const h=t.ordered?c==="."?")":".":Uk(l);let g=a&&l.bulletLastUsed?c===l.bulletLastUsed:!1;if(!t.ordered){const b=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&b&&(!b.children||!b.children[0])&&l.stack[l.stack.length-1]==="list"&&l.stack[l.stack.length-2]==="listItem"&&l.stack[l.stack.length-3]==="list"&&l.stack[l.stack.length-4]==="listItem"&&l.indexStack[l.indexStack.length-1]===0&&l.indexStack[l.indexStack.length-2]===0&&l.indexStack[l.indexStack.length-3]===0&&(g=!0),Xb(l)===c&&b){let x=-1;for(;++x<t.children.length;){const _=t.children[x];if(_&&_.type==="listItem"&&_.children&&_.children[0]&&_.children[0].type==="thematicBreak"){g=!0;break}}}}g&&(c=h),l.bulletCurrent=c;const p=l.containerFlow(t,r);return l.bulletLastUsed=c,l.bulletCurrent=u,o(),p}function $k(t){const a=t.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function qk(t,a,l,r){const o=$k(l);let u=l.bulletCurrent||Nd(l);a&&a.type==="list"&&a.ordered&&(u=(typeof a.start=="number"&&a.start>-1?a.start:1)+(l.options.incrementListMarker===!1?0:a.children.indexOf(t))+u);let c=u.length+1;(o==="tab"||o==="mixed"&&(a&&a.type==="list"&&a.spread||t.spread))&&(c=Math.ceil(c/4)*4);const h=l.createTracker(r);h.move(u+" ".repeat(c-u.length)),h.shift(c);const g=l.enter("listItem"),p=l.indentLines(l.containerFlow(t,h.current()),b);return g(),p;function b(x,_,v){return _?(v?"":" ".repeat(c))+x:(v?u:u+" ".repeat(c-u.length))+x}}function Gk(t,a,l,r){const o=l.enter("paragraph"),u=l.enter("phrasing"),c=l.containerPhrasing(t,r);return u(),o(),c}const Pk=is(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Yk(t,a,l,r){return(t.children.some(function(c){return Pk(c)})?l.containerPhrasing:l.containerFlow).call(l,t,r)}function Kk(t){const a=t.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Zb.peek=Vk;function Zb(t,a,l,r){const o=Kk(l),u=l.enter("strong"),c=l.createTracker(r),h=c.move(o+o);let g=c.move(l.containerPhrasing(t,{after:o,before:h,...c.current()}));const p=g.charCodeAt(0),b=Go(r.before.charCodeAt(r.before.length-1),p,o);b.inside&&(g=es(p)+g.slice(1));const x=g.charCodeAt(g.length-1),_=Go(r.after.charCodeAt(0),x,o);_.inside&&(g=g.slice(0,-1)+es(x));const v=c.move(o+o);return u(),l.attentionEncodeSurroundingInfo={after:_.outside,before:b.outside},h+g+v}function Vk(t,a,l){return l.options.strong||"*"}function Xk(t,a,l,r){return l.safe(t.value,r)}function Zk(t){const a=t.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function Qk(t,a,l){const r=(Xb(l)+(l.options.ruleSpaces?" ":"")).repeat(Zk(l));return l.options.ruleSpaces?r.slice(0,-1):r}const Qb={blockquote:_k,break:d0,code:kk,definition:Ak,emphasis:Fb,hardBreak:d0,heading:zk,html:$b,image:qb,imageReference:Gb,inlineCode:Pb,link:Kb,linkReference:Vb,list:Fk,listItem:qk,paragraph:Gk,root:Yk,strong:Zb,text:Xk,thematicBreak:Qk};function Jk(){return{enter:{table:Wk,tableData:m0,tableHeader:m0,tableRow:tT},exit:{codeText:nT,table:eT,tableData:Nf,tableHeader:Nf,tableRow:Nf}}}function Wk(t){const a=t._align;this.enter({type:"table",align:a.map(function(l){return l==="none"?null:l}),children:[]},t),this.data.inTable=!0}function eT(t){this.exit(t),this.data.inTable=void 0}function tT(t){this.enter({type:"tableRow",children:[]},t)}function Nf(t){this.exit(t)}function m0(t){this.enter({type:"tableCell",children:[]},t)}function nT(t){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,iT));const l=this.stack[this.stack.length-1];l.type,l.value=a,this.exit(t)}function iT(t,a){return a==="|"?a:t}function aT(t){const a=t||{},l=a.tableCellPadding,r=a.tablePipeAlign,o=a.stringLength,u=l?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:_,table:c,tableCell:g,tableRow:h}};function c(v,S,T,A){return p(b(v,T,A),v.align)}function h(v,S,T,A){const w=x(v,T,A),C=p([w]);return C.slice(0,C.indexOf(`
`))}function g(v,S,T,A){const w=T.enter("tableCell"),C=T.enter("phrasing"),z=T.containerPhrasing(v,{...A,before:u,after:u});return C(),w(),z}function p(v,S){return xk(v,{align:S,alignDelimiters:r,padding:l,stringLength:o})}function b(v,S,T){const A=v.children;let w=-1;const C=[],z=S.enter("table");for(;++w<A.length;)C[w]=x(A[w],S,T);return z(),C}function x(v,S,T){const A=v.children;let w=-1;const C=[],z=S.enter("tableRow");for(;++w<A.length;)C[w]=g(A[w],v,S,T);return z(),C}function _(v,S,T){let A=Qb.inlineCode(v,S,T);return T.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function lT(){return{exit:{taskListCheckValueChecked:h0,taskListCheckValueUnchecked:h0,paragraph:sT}}}function rT(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:oT}}}function h0(t){const a=this.stack[this.stack.length-2];a.type,a.checked=t.type==="taskListCheckValueChecked"}function sT(t){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const l=this.stack[this.stack.length-1];l.type;const r=l.children[0];if(r&&r.type==="text"){const o=a.children;let u=-1,c;for(;++u<o.length;){const h=o[u];if(h.type==="paragraph"){c=h;break}}c===l&&(r.value=r.value.slice(1),r.value.length===0?l.children.shift():l.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,l.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function oT(t,a,l,r){const o=t.children[0],u=typeof t.checked=="boolean"&&o&&o.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",h=l.createTracker(r);u&&h.move(c);let g=Qb.listItem(t,a,l,{...r,...h.current()});return u&&(g=g.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),g;function p(b){return b+c}}function cT(){return[Fw(),ok(),dk(),Jk(),lT()]}function uT(t){return{extensions:[$w(),ck(t),mk(),aT(t),rT()]}}const fT={tokenize:bT,partial:!0},Jb={tokenize:xT,partial:!0},Wb={tokenize:yT,partial:!0},ex={tokenize:_T,partial:!0},dT={tokenize:vT,partial:!0},tx={name:"wwwAutolink",tokenize:pT,previous:ix},nx={name:"protocolAutolink",tokenize:gT,previous:ax},Li={name:"emailAutolink",tokenize:hT,previous:lx},ui={};function mT(){return{text:ui}}let Ra=48;for(;Ra<123;)ui[Ra]=Li,Ra++,Ra===58?Ra=65:Ra===91&&(Ra=97);ui[43]=Li;ui[45]=Li;ui[46]=Li;ui[95]=Li;ui[72]=[Li,nx];ui[104]=[Li,nx];ui[87]=[Li,tx];ui[119]=[Li,tx];function hT(t,a,l){const r=this;let o,u;return c;function c(x){return!Zf(x)||!lx.call(r,r.previous)||wd(r.events)?l(x):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),h(x))}function h(x){return Zf(x)?(t.consume(x),h):x===64?(t.consume(x),g):l(x)}function g(x){return x===46?t.check(dT,b,p)(x):x===45||x===95||rn(x)?(u=!0,t.consume(x),g):b(x)}function p(x){return t.consume(x),o=!0,g}function b(x){return u&&o&&mn(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),a(x)):l(x)}}function pT(t,a,l){const r=this;return o;function o(c){return c!==87&&c!==119||!ix.call(r,r.previous)||wd(r.events)?l(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(fT,t.attempt(Jb,t.attempt(Wb,u),l),l)(c))}function u(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),a(c)}}function gT(t,a,l){const r=this;let o="",u=!1;return c;function c(x){return(x===72||x===104)&&ax.call(r,r.previous)&&!wd(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(x),t.consume(x),h):l(x)}function h(x){if(mn(x)&&o.length<5)return o+=String.fromCodePoint(x),t.consume(x),h;if(x===58){const _=o.toLowerCase();if(_==="http"||_==="https")return t.consume(x),g}return l(x)}function g(x){return x===47?(t.consume(x),u?p:(u=!0,g)):l(x)}function p(x){return x===null||Fo(x)||xt(x)||Ba(x)||Vo(x)?l(x):t.attempt(Jb,t.attempt(Wb,b),l)(x)}function b(x){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),a(x)}}function bT(t,a,l){let r=0;return o;function o(c){return(c===87||c===119)&&r<3?(r++,t.consume(c),o):c===46&&r===3?(t.consume(c),u):l(c)}function u(c){return c===null?l(c):a(c)}}function xT(t,a,l){let r,o,u;return c;function c(p){return p===46||p===95?t.check(ex,g,h)(p):p===null||xt(p)||Ba(p)||p!==45&&Vo(p)?g(p):(u=!0,t.consume(p),c)}function h(p){return p===95?r=!0:(o=r,r=void 0),t.consume(p),c}function g(p){return o||r||!u?l(p):a(p)}}function yT(t,a){let l=0,r=0;return o;function o(c){return c===40?(l++,t.consume(c),o):c===41&&r<l?u(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?t.check(ex,a,u)(c):c===null||xt(c)||Ba(c)?a(c):(t.consume(c),o)}function u(c){return c===41&&r++,t.consume(c),o}}function _T(t,a,l){return r;function r(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(t.consume(h),r):h===38?(t.consume(h),u):h===93?(t.consume(h),o):h===60||h===null||xt(h)||Ba(h)?a(h):l(h)}function o(h){return h===null||h===40||h===91||xt(h)||Ba(h)?a(h):r(h)}function u(h){return mn(h)?c(h):l(h)}function c(h){return h===59?(t.consume(h),r):mn(h)?(t.consume(h),c):l(h)}}function vT(t,a,l){return r;function r(u){return t.consume(u),o}function o(u){return rn(u)?l(u):a(u)}}function ix(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||xt(t)}function ax(t){return!mn(t)}function lx(t){return!(t===47||Zf(t))}function Zf(t){return t===43||t===45||t===46||t===95||rn(t)}function wd(t){let a=t.length,l=!1;for(;a--;){const r=t[a][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){l=!0;break}if(r._gfmAutolinkLiteralWalkedInto){l=!1;break}}return t.length>0&&!l&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const ET={tokenize:CT,partial:!0};function ST(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:TT,continuation:{tokenize:AT},exit:MT}},text:{91:{name:"gfmFootnoteCall",tokenize:kT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:NT,resolveTo:wT}}}}function NT(t,a,l){const r=this;let o=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let c;for(;o--;){const g=r.events[o][1];if(g.type==="labelImage"){c=g;break}if(g.type==="gfmFootnoteCall"||g.type==="labelLink"||g.type==="label"||g.type==="image"||g.type==="link")break}return h;function h(g){if(!c||!c._balanced)return l(g);const p=Jn(r.sliceSerialize({start:c.end,end:r.now()}));return p.codePointAt(0)!==94||!u.includes(p.slice(1))?l(g):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),a(g))}}function wT(t,a){let l=t.length;for(;l--;)if(t[l][1].type==="labelImage"&&t[l][0]==="enter"){t[l][1];break}t[l+1][1].type="data",t[l+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[l+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[l+3][1].end),end:Object.assign({},t[l+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},h=[t[l+1],t[l+2],["enter",r,a],t[l+3],t[l+4],["enter",o,a],["exit",o,a],["enter",u,a],["enter",c,a],["exit",c,a],["exit",u,a],t[t.length-2],t[t.length-1],["exit",r,a]];return t.splice(l,t.length-l+1,...h),t}function kT(t,a,l){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,c;return h;function h(x){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(x),t.exit("gfmFootnoteCallLabelMarker"),g}function g(x){return x!==94?l(x):(t.enter("gfmFootnoteCallMarker"),t.consume(x),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",p)}function p(x){if(u>999||x===93&&!c||x===null||x===91||xt(x))return l(x);if(x===93){t.exit("chunkString");const _=t.exit("gfmFootnoteCallString");return o.includes(Jn(r.sliceSerialize(_)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(x),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),a):l(x)}return xt(x)||(c=!0),u++,t.consume(x),x===92?b:p}function b(x){return x===91||x===92||x===93?(t.consume(x),u++,p):p(x)}}function TT(t,a,l){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,c=0,h;return g;function g(S){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(S),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(S){return S===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(S),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",b):l(S)}function b(S){if(c>999||S===93&&!h||S===null||S===91||xt(S))return l(S);if(S===93){t.exit("chunkString");const T=t.exit("gfmFootnoteDefinitionLabelString");return u=Jn(r.sliceSerialize(T)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(S),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),_}return xt(S)||(h=!0),c++,t.consume(S),S===92?x:b}function x(S){return S===91||S===92||S===93?(t.consume(S),c++,b):b(S)}function _(S){return S===58?(t.enter("definitionMarker"),t.consume(S),t.exit("definitionMarker"),o.includes(u)||o.push(u),et(t,v,"gfmFootnoteDefinitionWhitespace")):l(S)}function v(S){return a(S)}}function AT(t,a,l){return t.check(ns,a,t.attempt(ET,a,l))}function MT(t){t.exit("gfmFootnoteDefinition")}function CT(t,a,l){const r=this;return et(t,o,"gfmFootnoteDefinitionIndent",5);function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?a(u):l(u)}}function OT(t){let l=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:o};return l==null&&(l=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(c,h){let g=-1;for(;++g<c.length;)if(c[g][0]==="enter"&&c[g][1].type==="strikethroughSequenceTemporary"&&c[g][1]._close){let p=g;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[g][1].end.offset-c[g][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[g][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[g][1].end)},x={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[g][1].start)},_=[["enter",b,h],["enter",c[p][1],h],["exit",c[p][1],h],["enter",x,h]],v=h.parser.constructs.insideSpan.null;v&&Ln(_,_.length,0,Xo(v,c.slice(p+1,g),h)),Ln(_,_.length,0,[["exit",x,h],["enter",c[g][1],h],["exit",c[g][1],h],["exit",b,h]]),Ln(c,p-1,g-p+3,_),g=p+_.length-2;break}}for(g=-1;++g<c.length;)c[g][1].type==="strikethroughSequenceTemporary"&&(c[g][1].type="data");return c}function u(c,h,g){const p=this.previous,b=this.events;let x=0;return _;function _(S){return p===126&&b[b.length-1][1].type!=="characterEscape"?g(S):(c.enter("strikethroughSequenceTemporary"),v(S))}function v(S){const T=Ul(p);if(S===126)return x>1?g(S):(c.consume(S),x++,v);if(x<2&&!l)return g(S);const A=c.exit("strikethroughSequenceTemporary"),w=Ul(S);return A._open=!w||w===2&&!!T,A._close=!T||T===2&&!!w,h(S)}}}class zT{constructor(){this.map=[]}add(a,l,r){RT(this,a,l,r)}consume(a){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let l=this.map.length;const r=[];for(;l>0;)l-=1,r.push(a.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),a.length=this.map[l][0];r.push(a.slice()),a.length=0;let o=r.pop();for(;o;){for(const u of o)a.push(u);o=r.pop()}this.map.length=0}}function RT(t,a,l,r){let o=0;if(!(l===0&&r.length===0)){for(;o<t.map.length;){if(t.map[o][0]===a){t.map[o][1]+=l,t.map[o][2].push(...r);return}o+=1}t.map.push([a,l,r])}}function DT(t,a){let l=!1;const r=[];for(;a<t.length;){const o=t[a];if(l){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(t[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[a-1][1].type==="tableDelimiterMarker"){const u=r.length-1;r[u]=r[u]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(l=!0);a+=1}return r}function LT(){return{flow:{null:{name:"table",tokenize:jT,resolveAll:BT}}}}function jT(t,a,l){const r=this;let o=0,u=0,c;return h;function h(U){let re=r.events.length-1;for(;re>-1;){const Y=r.events[re][1].type;if(Y==="lineEnding"||Y==="linePrefix")re--;else break}const ae=re>-1?r.events[re][1].type:null,ie=ae==="tableHead"||ae==="tableRow"?D:g;return ie===D&&r.parser.lazy[r.now().line]?l(U):ie(U)}function g(U){return t.enter("tableHead"),t.enter("tableRow"),p(U)}function p(U){return U===124||(c=!0,u+=1),b(U)}function b(U){return U===null?l(U):ke(U)?u>1?(u=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(U),t.exit("lineEnding"),v):l(U):Ve(U)?et(t,b,"whitespace")(U):(u+=1,c&&(c=!1,o+=1),U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),c=!0,b):(t.enter("data"),x(U)))}function x(U){return U===null||U===124||xt(U)?(t.exit("data"),b(U)):(t.consume(U),U===92?_:x)}function _(U){return U===92||U===124?(t.consume(U),x):x(U)}function v(U){return r.interrupt=!1,r.parser.lazy[r.now().line]?l(U):(t.enter("tableDelimiterRow"),c=!1,Ve(U)?et(t,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):S(U))}function S(U){return U===45||U===58?A(U):U===124?(c=!0,t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),T):K(U)}function T(U){return Ve(U)?et(t,A,"whitespace")(U):A(U)}function A(U){return U===58?(u+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(U),t.exit("tableDelimiterMarker"),w):U===45?(u+=1,w(U)):U===null||ke(U)?q(U):K(U)}function w(U){return U===45?(t.enter("tableDelimiterFiller"),C(U)):K(U)}function C(U){return U===45?(t.consume(U),C):U===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(U),t.exit("tableDelimiterMarker"),z):(t.exit("tableDelimiterFiller"),z(U))}function z(U){return Ve(U)?et(t,q,"whitespace")(U):q(U)}function q(U){return U===124?S(U):U===null||ke(U)?!c||o!==u?K(U):(t.exit("tableDelimiterRow"),t.exit("tableHead"),a(U)):K(U)}function K(U){return l(U)}function D(U){return t.enter("tableRow"),Z(U)}function Z(U){return U===124?(t.enter("tableCellDivider"),t.consume(U),t.exit("tableCellDivider"),Z):U===null||ke(U)?(t.exit("tableRow"),a(U)):Ve(U)?et(t,Z,"whitespace")(U):(t.enter("data"),oe(U))}function oe(U){return U===null||U===124||xt(U)?(t.exit("data"),Z(U)):(t.consume(U),U===92?de:oe)}function de(U){return U===92||U===124?(t.consume(U),oe):oe(U)}}function BT(t,a){let l=-1,r=!0,o=0,u=[0,0,0,0],c=[0,0,0,0],h=!1,g=0,p,b,x;const _=new zT;for(;++l<t.length;){const v=t[l],S=v[1];v[0]==="enter"?S.type==="tableHead"?(h=!1,g!==0&&(p0(_,a,g,p,b),b=void 0,g=0),p={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},_.add(l,0,[["enter",p,a]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(r=!0,x=void 0,u=[0,0,0,0],c=[0,l+1,0,0],h&&(h=!1,b={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},_.add(l,0,[["enter",b,a]])),o=S.type==="tableDelimiterRow"?2:b?3:1):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(r=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],x=Ao(_,a,u,o,void 0,x),u=[0,0,0,0]),c[2]=l)):S.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(c[0]=c[1],x=Ao(_,a,u,o,void 0,x)),u=c,c=[u[1],l,0,0])):S.type==="tableHead"?(h=!0,g=l):S.type==="tableRow"||S.type==="tableDelimiterRow"?(g=l,u[1]!==0?(c[0]=c[1],x=Ao(_,a,u,o,l,x)):c[1]!==0&&(x=Ao(_,a,c,o,l,x)),o=0):o&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(c[3]=l)}for(g!==0&&p0(_,a,g,p,b),_.consume(a.events),l=-1;++l<a.events.length;){const v=a.events[l];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=DT(a.events,l))}return t}function Ao(t,a,l,r,o,u){const c=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",h="tableContent";l[0]!==0&&(u.end=Object.assign({},Al(a.events,l[0])),t.add(l[0],0,[["exit",u,a]]));const g=Al(a.events,l[1]);if(u={type:c,start:Object.assign({},g),end:Object.assign({},g)},t.add(l[1],0,[["enter",u,a]]),l[2]!==0){const p=Al(a.events,l[2]),b=Al(a.events,l[3]),x={type:h,start:Object.assign({},p),end:Object.assign({},b)};if(t.add(l[2],0,[["enter",x,a]]),r!==2){const _=a.events[l[2]],v=a.events[l[3]];if(_[1].end=Object.assign({},v[1].end),_[1].type="chunkText",_[1].contentType="text",l[3]>l[2]+1){const S=l[2]+1,T=l[3]-l[2]-1;t.add(S,T,[])}}t.add(l[3]+1,0,[["exit",x,a]])}return o!==void 0&&(u.end=Object.assign({},Al(a.events,o)),t.add(o,0,[["exit",u,a]]),u=void 0),u}function p0(t,a,l,r,o){const u=[],c=Al(a.events,l);o&&(o.end=Object.assign({},c),u.push(["exit",o,a])),r.end=Object.assign({},c),u.push(["exit",r,a]),t.add(l+1,0,u)}function Al(t,a){const l=t[a],r=l[0]==="enter"?"start":"end";return l[1][r]}const IT={name:"tasklistCheck",tokenize:HT};function UT(){return{text:{91:IT}}}function HT(t,a,l){const r=this;return o;function o(g){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?l(g):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(g),t.exit("taskListCheckMarker"),u)}function u(g){return xt(g)?(t.enter("taskListCheckValueUnchecked"),t.consume(g),t.exit("taskListCheckValueUnchecked"),c):g===88||g===120?(t.enter("taskListCheckValueChecked"),t.consume(g),t.exit("taskListCheckValueChecked"),c):l(g)}function c(g){return g===93?(t.enter("taskListCheckMarker"),t.consume(g),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),h):l(g)}function h(g){return ke(g)?a(g):Ve(g)?t.check({tokenize:FT},a,l)(g):l(g)}}function FT(t,a,l){return et(t,r,"whitespace");function r(o){return o===null?l(o):a(o)}}function $T(t){return gb([mT(),ST(),OT(t),LT(),UT()])}const qT={};function GT(t){const a=this,l=t||qT,r=a.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),c=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push($T(l)),u.push(cT()),c.push(uT(l))}const g0=(function(t,a,l){const r=is(l);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof a=="number"){if(a<0||a===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(a=t.children.indexOf(a),a<0)throw new Error("Expected child node or index");for(;++a<t.children.length;)if(r(t.children[a],a,t))return t.children[a]}),Ua=(function(t){if(t==null)return KT;if(typeof t=="string")return YT(t);if(typeof t=="object")return PT(t);if(typeof t=="function")return kd(t);throw new Error("Expected function, string, or array as `test`")});function PT(t){const a=[];let l=-1;for(;++l<t.length;)a[l]=Ua(t[l]);return kd(r);function r(...o){let u=-1;for(;++u<a.length;)if(a[u].apply(this,o))return!0;return!1}}function YT(t){return kd(a);function a(l){return l.tagName===t}}function kd(t){return a;function a(l,r,o){return!!(VT(l)&&t.call(this,l,typeof r=="number"?r:void 0,o||void 0))}}function KT(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function VT(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}const b0=/\n/g,x0=/[\t ]+/g,Qf=Ua("br"),y0=Ua(n2),XT=Ua("p"),_0=Ua("tr"),ZT=Ua(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",t2,i2]),rx=Ua(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function QT(t,a){const l=a||{},r="children"in t?t.children:[],o=rx(t),u=cx(t,{whitespace:l.whitespace||"normal"}),c=[];(t.type==="text"||t.type==="comment")&&c.push(...ox(t,{breakBefore:!0,breakAfter:!0}));let h=-1;for(;++h<r.length;)c.push(...sx(r[h],t,{whitespace:u,breakBefore:h?void 0:o,breakAfter:h<r.length-1?Qf(r[h+1]):o}));const g=[];let p;for(h=-1;++h<c.length;){const b=c[h];typeof b=="number"?p!==void 0&&b>p&&(p=b):b&&(p!==void 0&&p>-1&&g.push(`
`.repeat(p)||" "),p=-1,g.push(b))}return g.join("")}function sx(t,a,l){return t.type==="element"?JT(t,a,l):t.type==="text"?l.whitespace==="normal"?ox(t,l):WT(t):[]}function JT(t,a,l){const r=cx(t,l),o=t.children||[];let u=-1,c=[];if(ZT(t))return c;let h,g;for(Qf(t)||_0(t)&&g0(a,t,_0)?g=`
`:XT(t)?(h=2,g=2):rx(t)&&(h=1,g=1);++u<o.length;)c=c.concat(sx(o[u],t,{whitespace:r,breakBefore:u?void 0:h,breakAfter:u<o.length-1?Qf(o[u+1]):g}));return y0(t)&&g0(a,t,y0)&&c.push("	"),h&&c.unshift(h),g&&c.push(g),c}function ox(t,a){const l=String(t.value),r=[],o=[];let u=0;for(;u<=l.length;){b0.lastIndex=u;const g=b0.exec(l),p=g&&"index"in g?g.index:l.length;r.push(e2(l.slice(u,p).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),u===0?a.breakBefore:!0,p===l.length?a.breakAfter:!0)),u=p+1}let c=-1,h;for(;++c<r.length;)r[c].charCodeAt(r[c].length-1)===8203||c<r.length-1&&r[c+1].charCodeAt(0)===8203?(o.push(r[c]),h=void 0):r[c]?(typeof h=="number"&&o.push(h),o.push(r[c]),h=0):(c===0||c===r.length-1)&&o.push(0);return o}function WT(t){return[String(t.value)]}function e2(t,a,l){const r=[];let o=0,u;for(;o<t.length;){x0.lastIndex=o;const c=x0.exec(t);u=c?c.index:t.length,!o&&!u&&c&&!a&&r.push(""),o!==u&&r.push(t.slice(o,u)),o=c?u+c[0].length:u}return o!==u&&!l&&r.push(""),r.join(" ")}function cx(t,a){if(t.type==="element"){const l=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return l.wrap?"pre-wrap":"pre";case"td":case"th":return l.noWrap?"nowrap":a.whitespace;case"textarea":return"pre-wrap"}}return a.whitespace}function t2(t){return!!(t.properties||{}).hidden}function n2(t){return t.tagName==="td"||t.tagName==="th"}function i2(t){return t.tagName==="dialog"&&!(t.properties||{}).open}function a2(t){const a=t.regex,l=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",c="(?!struct)("+r+"|"+a.optional(o)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",h={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},x={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},l,t.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:a.optional(o)+t.IDENT_RE,relevance:0},v=a.optional(o)+t.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],T=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],A=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],w=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],q={type:T,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:A},K={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},D=[K,x,h,l,t.C_BLOCK_COMMENT_MODE,b,p],Z={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:q,contains:D.concat([{begin:/\(/,end:/\)/,keywords:q,contains:D.concat(["self"]),relevance:0}]),relevance:0},oe={className:"function",begin:"("+c+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:q,relevance:0},{begin:v,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:[l,t.C_BLOCK_COMMENT_MODE,p,b,h,{begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:["self",l,t.C_BLOCK_COMMENT_MODE,p,b,h]}]},h,l,t.C_BLOCK_COMMENT_MODE,x]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:q,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(Z,oe,K,D,[x,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:q,contains:["self",h]},{begin:t.IDENT_RE+"::",keywords:q},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function l2(t){const a={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},l=a2(t),r=l.keywords;return r.type=[...r.type,...a.type],r.literal=[...r.literal,...a.literal],r.built_in=[...r.built_in,...a.built_in],r._hints=a._hints,l.name="Arduino",l.aliases=["ino"],l.supersetOf="cpp",l}function r2(t){const a=t.regex,l={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[l]}]};Object.assign(l,{className:"variable",variants:[{begin:a.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},u=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),c={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},h={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,l,o]};o.contains.push(h);const g={match:/\\"/},p={className:"string",begin:/'/,end:/'/},b={match:/\\'/},x={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,l]},_=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],v=t.SHEBANG({binary:`(${_.join("|")})`,relevance:10}),S={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},T=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],w={match:/(\/[a-z._-]+)+/},C=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],z=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],q=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],K=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:T,literal:A,built_in:[...C,...z,"set","shopt",...q,...K]},contains:[v,t.SHEBANG(),S,x,u,c,w,h,g,p,b,l]}}function s2(t){const a=t.regex,l=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",c="("+r+"|"+a.optional(o)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",h={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},x={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},l,t.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:a.optional(o)+t.IDENT_RE,relevance:0},v=a.optional(o)+t.IDENT_RE+"\\s*\\(",A={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},w=[x,h,l,t.C_BLOCK_COMMENT_MODE,b,p],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:A,contains:w.concat([{begin:/\(/,end:/\)/,keywords:A,contains:w.concat(["self"]),relevance:0}]),relevance:0},z={begin:"("+c+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:A,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:A,relevance:0},{begin:v,returnBegin:!0,contains:[t.inherit(_,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:[l,t.C_BLOCK_COMMENT_MODE,p,b,h,{begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:["self",l,t.C_BLOCK_COMMENT_MODE,p,b,h]}]},h,l,t.C_BLOCK_COMMENT_MODE,x]};return{name:"C",aliases:["h"],keywords:A,disableAutodetect:!0,illegal:"</",contains:[].concat(C,z,w,[x,{begin:t.IDENT_RE+"::",keywords:A},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:x,strings:p,keywords:A}}}function o2(t){const a=t.regex,l=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",c="(?!struct)("+r+"|"+a.optional(o)+"[a-zA-Z_]\\w*"+a.optional("<[^<>]+>")+")",h={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},p={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},b={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},x={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(p,{className:"string"}),{className:"string",begin:/<.*?>/},l,t.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:a.optional(o)+t.IDENT_RE,relevance:0},v=a.optional(o)+t.IDENT_RE+"\\s*\\(",S=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],T=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],A=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],w=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],q={type:T,keyword:S,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:A},K={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:a.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,a.lookahead(/(<[^<>]+>|)\s*\(/))},D=[K,x,h,l,t.C_BLOCK_COMMENT_MODE,b,p],Z={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:q,contains:D.concat([{begin:/\(/,end:/\)/,keywords:q,contains:D.concat(["self"]),relevance:0}]),relevance:0},oe={className:"function",begin:"("+c+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:q,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:q,relevance:0},{begin:v,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[p,b]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:[l,t.C_BLOCK_COMMENT_MODE,p,b,h,{begin:/\(/,end:/\)/,keywords:q,relevance:0,contains:["self",l,t.C_BLOCK_COMMENT_MODE,p,b,h]}]},h,l,t.C_BLOCK_COMMENT_MODE,x]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:q,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(Z,oe,K,D,[x,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:q,contains:["self",h]},{begin:t.IDENT_RE+"::",keywords:q},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function c2(t){const a=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],l=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],o=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],u=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],c={keyword:o.concat(u),built_in:a,literal:r},h=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),g={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},b={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},x=t.inherit(b,{illegal:/\n/}),_={className:"subst",begin:/\{/,end:/\}/,keywords:c},v=t.inherit(_,{illegal:/\n/}),S={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,v]},T={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]},A=t.inherit(T,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},v]});_.contains=[T,S,b,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,g,t.C_BLOCK_COMMENT_MODE],v.contains=[A,S,x,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,g,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const w={variants:[p,T,S,b,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},C={begin:"<",end:">",contains:[{beginKeywords:"in out"},h]},z=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",q={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:c,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},w,g,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},h,C,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[h,C,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+z+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:c,contains:[{beginKeywords:l.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,C],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,relevance:0,contains:[w,g,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},q]}}const u2=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),f2=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],d2=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],m2=[...f2,...d2],h2=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),p2=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),g2=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),b2=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function x2(t){const a=t.regex,l=u2(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},o="and or not only",u=/@-?\w[\w]*(-\w+)*/,c="[a-zA-Z-][a-zA-Z0-9_-]*",h=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[l.BLOCK_COMMENT,r,l.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+c,relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+p2.join("|")+")"},{begin:":(:)?("+g2.join("|")+")"}]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+b2.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[l.BLOCK_COMMENT,l.HEXCOLOR,l.IMPORTANT,l.CSS_NUMBER_MODE,...h,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...h,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},l.FUNCTION_DISPATCH]},{begin:a.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:h2.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...h,l.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+m2.join("|")+")\\b"}]}}function y2(t){const a=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:a.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:a.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function _2(t){const u={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:u,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:u,illegal:/["']/}]}]}}function v2(t){const a=t.regex,l=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:a.concat(l,a.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function E2(t){const a=t.regex,l={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},r=t.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},u={className:"literal",begin:/\bon|off|true|false|yes|no\b/},c={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},h={begin:/\[/,end:/\]/,contains:[r,u,o,c,l,"self"],relevance:0},g=/[A-Za-z0-9_-]+/,p=/"(\\"|[^"])*"/,b=/'[^']*'/,x=a.either(g,p,b),_=a.concat(x,"(\\s*\\.\\s*",x,")*",a.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:_,className:"attr",starts:{end:/$/,contains:[r,h,u,o,c,l]}}]}}var Ml="[0-9](_*[0-9])*",Mo=`\\.(${Ml})`,Co="[0-9a-fA-F](_*[0-9a-fA-F])*",v0={className:"number",variants:[{begin:`(\\b(${Ml})((${Mo})|\\.)?|(${Mo}))[eE][+-]?(${Ml})[fFdD]?\\b`},{begin:`\\b(${Ml})((${Mo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Mo})[fFdD]?\\b`},{begin:`\\b(${Ml})[fFdD]\\b`},{begin:`\\b0[xX]((${Co})\\.?|(${Co})?\\.(${Co}))[pP][+-]?(${Ml})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Co})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function ux(t,a,l){return l===-1?"":t.replace(a,r=>ux(t,a,l-1))}function S2(t){const a=t.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=l+ux("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),g={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},p={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:g,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[b,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:g,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,v0,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},v0,p]}}const E0="[A-Za-z$_][0-9A-Za-z$_]*",N2=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],w2=["true","false","null","undefined","NaN","Infinity"],fx=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],dx=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mx=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],k2=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],T2=[].concat(mx,fx,dx);function A2(t){const a=t.regex,l=(ne,{after:le})=>{const k="</"+ne[0].slice(1);return ne.input.indexOf(k,le)!==-1},r=E0,o={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ne,le)=>{const k=ne[0].length+ne.index,M=ne.input[k];if(M==="<"||M===","){le.ignoreMatch();return}M===">"&&(l(ne,{after:k})||le.ignoreMatch());let B;const N=ne.input.substring(k);if(B=N.match(/^\s*=/)){le.ignoreMatch();return}if((B=N.match(/^\s+extends\s+/))&&B.index===0){le.ignoreMatch();return}}},h={$pattern:E0,keyword:N2,literal:w2,built_in:T2,"variable.language":k2},g="[0-9](_?[0-9])*",p=`\\.(${g})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",x={className:"number",variants:[{begin:`(\\b(${b})((${p})|\\.)?|(${p}))[eE][+-]?(${g})\\b`},{begin:`\\b(${b})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:h,contains:[]},v={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},S={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,_],subLanguage:"css"}},T={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,_]},C={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},z=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,v,S,T,A,{match:/\$\d+/},x];_.contains=z.concat({begin:/\{/,end:/\}/,keywords:h,contains:["self"].concat(z)});const q=[].concat(C,_.contains),K=q.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:["self"].concat(q)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:K},Z={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,a.concat(r,"(",a.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},oe={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...fx,...dx]}},de={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},re={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ae(ne){return a.concat("(?!",ne.join("|"),")")}const ie={match:a.concat(/\b/,ae([...mx,"super","import"].map(ne=>`${ne}\\s*\\(`)),r,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},Y={begin:a.concat(/\./,a.lookahead(a.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},L="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(L)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:h,exports:{PARAMS_CONTAINS:K,CLASS_REFERENCE:oe},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),de,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,v,S,T,A,C,{match:/\$\d+/},x,oe,{scope:"attr",match:r+a.lookahead(":"),relevance:0},X,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,t.REGEXP_MODE,{className:"function",begin:L,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:K}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:u},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Y,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},ie,re,Z,H,{match:/\$[(.]/}]}}function M2(t){const a={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},l={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],o={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[a,l,t.QUOTE_STRING_MODE,o,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Cl="[0-9](_*[0-9])*",Oo=`\\.(${Cl})`,zo="[0-9a-fA-F](_*[0-9a-fA-F])*",C2={className:"number",variants:[{begin:`(\\b(${Cl})((${Oo})|\\.)?|(${Oo}))[eE][+-]?(${Cl})[fFdD]?\\b`},{begin:`\\b(${Cl})((${Oo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Oo})[fFdD]?\\b`},{begin:`\\b(${Cl})[fFdD]\\b`},{begin:`\\b0[xX]((${zo})\\.?|(${zo})?\\.(${zo}))[pP][+-]?(${Cl})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${zo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function O2(t){const a={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},l={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},u={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},c={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[u,o]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,u,o]}]};o.contains.push(c);const h={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},g={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(c,{className:"string"}),"self"]}]},p=C2,b=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),x={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},_=x;return _.variants[1].contains=[x],x.variants[1].contains=[_],{name:"Kotlin",aliases:["kt","kts"],keywords:a,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,b,l,r,h,g,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:a,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[x,t.C_LINE_COMMENT_MODE,b],relevance:0},t.C_LINE_COMMENT_MODE,b,h,g,c,t.C_NUMBER_MODE]},b]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},h,g]},c,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},p]}}const z2=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),R2=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],D2=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],L2=[...R2,...D2],j2=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),hx=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),px=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),B2=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),I2=hx.concat(px).sort().reverse();function U2(t){const a=z2(t),l=I2,r="and or not only",o="[\\w-]+",u="("+o+"|@\\{"+o+"\\})",c=[],h=[],g=function(z){return{className:"string",begin:"~?"+z+".*?"+z}},p=function(z,q,K){return{className:z,begin:q,relevance:K}},b={$pattern:/[a-z-]+/,keyword:r,attribute:j2.join(" ")},x={begin:"\\(",end:"\\)",contains:h,keywords:b,relevance:0};h.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,g("'"),g('"'),a.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},a.HEXCOLOR,x,p("variable","@@?"+o,10),p("variable","@\\{"+o+"\\}"),p("built_in","~?`[^`]*?`"),{className:"attribute",begin:o+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},a.IMPORTANT,{beginKeywords:"and not"},a.FUNCTION_DISPATCH);const _=h.concat({begin:/\{/,end:/\}/,contains:c}),v={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(h)},S={begin:u+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+B2.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:h}}]},T={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:b,returnEnd:!0,contains:h,relevance:0}},A={className:"variable",variants:[{begin:"@"+o+"\\s*:",relevance:15},{begin:"@"+o}],starts:{end:"[;}]",returnEnd:!0,contains:_}},w={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:u,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,v,p("keyword","all\\b"),p("variable","@\\{"+o+"\\}"),{begin:"\\b("+L2.join("|")+")\\b",className:"selector-tag"},a.CSS_NUMBER_MODE,p("selector-tag",u,0),p("selector-id","#"+u),p("selector-class","\\."+u,0),p("selector-tag","&",0),a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+hx.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+px.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:_},{begin:"!important"},a.FUNCTION_DISPATCH]},C={begin:o+`:(:)?(${l.join("|")})`,returnBegin:!0,contains:[w]};return c.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,T,A,C,S,w,v,a.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:c}}function H2(t){const a="\\[=*\\[",l="\\]=*\\]",r={begin:a,end:l,contains:["self"]},o=[t.COMMENT("--(?!"+a+")","$"),t.COMMENT("--"+a,l,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:o}].concat(o)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:a,end:l,contains:[r],relevance:5}])}}function F2(t){const a={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,a]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[a,l]},o={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},u={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},c={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[a]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,a,l,r,o,u,c]}}function $2(t){const a=t.regex,l={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},o={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},u={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},c={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},h=/[A-Za-z][A-Za-z0-9+.-]*/,g={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:a.concat(/\[.+?\]\(/,h,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},p={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},b={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},x=t.inherit(p,{contains:[]}),_=t.inherit(b,{contains:[]});p.contains.push(_),b.contains.push(x);let v=[l,g];return[p,b,x,_].forEach(w=>{w.contains=w.contains.concat(v)}),v=v.concat(p,b),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:v},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:v}]}]},l,u,p,b,{className:"quote",begin:"^>\\s+",contains:v,end:"$"},o,r,g,c,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function q2(t){const a={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},l=/[a-zA-Z@][a-zA-Z0-9_]*/,h={"variable.language":["this","super"],$pattern:l,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},g={$pattern:l,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:h,illegal:"</",contains:[a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+g.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:g,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}function G2(t){const a=t.regex,l=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,o={$pattern:/[\w.]+/,keyword:l.join(" ")},u={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},c={begin:/->\{/,end:/\}/},h={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},g={scope:"variable",variants:[{begin:/\$\d/},{begin:a.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[h]},p={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},b=[t.BACKSLASH_ESCAPE,u,g],x=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],_=(T,A,w="\\1")=>{const C=w==="\\1"?w:a.concat(w,A);return a.concat(a.concat("(?:",T,")"),A,/(?:\\.|[^\\\/])*?/,C,/(?:\\.|[^\\\/])*?/,w,r)},v=(T,A,w)=>a.concat(a.concat("(?:",T,")"),A,/(?:\\.|[^\\\/])*?/,w,r),S=[g,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),c,{className:"string",contains:b,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},p,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:_("s|tr|y",a.either(...x,{capture:!0}))},{begin:_("s|tr|y","\\(","\\)")},{begin:_("s|tr|y","\\[","\\]")},{begin:_("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:v("(?:m|qr)?",/\//,/\//)},{begin:v("m|qr",a.either(...x,{capture:!0}),/\1/)},{begin:v("m|qr",/\(/,/\)/)},{begin:v("m|qr",/\[/,/\]/)},{begin:v("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,h]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,h,p]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return u.contains=S,c.contains=S,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:S}}function P2(t){const a=t.regex,l=/(?![A-Za-z0-9])(?![$])/,r=a.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,l),o=a.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,l),u=a.concat(/[A-Z]+/,l),c={scope:"variable",match:"\\$+"+r},h={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},g={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},p=t.inherit(t.APOS_STRING_MODE,{illegal:null}),b=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(g)}),x={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(g),"on:begin":(Y,H)=>{H.data._beginMatch=Y[1]||Y[2]},"on:end":(Y,H)=>{H.data._beginMatch!==Y[1]&&H.ignoreMatch()}},_=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),v=`[ 	
]`,S={scope:"string",variants:[b,p,x,_]},T={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},A=["false","null","true"],w=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],C=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],q={keyword:w,literal:(Y=>{const H=[];return Y.forEach(L=>{H.push(L),L.toLowerCase()===L?H.push(L.toUpperCase()):H.push(L.toLowerCase())}),H})(A),built_in:C},K=Y=>Y.map(H=>H.replace(/\|\d+$/,"")),D={variants:[{match:[/new/,a.concat(v,"+"),a.concat("(?!",K(C).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},Z=a.concat(r,"\\b(?!\\()"),oe={variants:[{match:[a.concat(/::/,a.lookahead(/(?!class\b)/)),Z],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,a.concat(/::/,a.lookahead(/(?!class\b)/)),Z],scope:{1:"title.class",3:"variable.constant"}},{match:[o,a.concat("::",a.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},de={scope:"attr",match:a.concat(r,a.lookahead(":"),a.lookahead(/(?!::)/))},U={relevance:0,begin:/\(/,end:/\)/,keywords:q,contains:[de,c,oe,t.C_BLOCK_COMMENT_MODE,S,T,D]},re={relevance:0,match:[/\b/,a.concat("(?!fn\\b|function\\b|",K(w).join("\\b|"),"|",K(C).join("\\b|"),"\\b)"),r,a.concat(v,"*"),a.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[U]};U.contains.push(re);const ae=[de,oe,t.C_BLOCK_COMMENT_MODE,S,T,D],ie={begin:a.concat(/#\[\s*\\?/,a.either(o,u)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:A,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:A,keyword:["new","array"]},contains:["self",...ae]},...ae,{scope:"meta",variants:[{match:o},{match:u}]}]};return{case_insensitive:!1,keywords:q,contains:[ie,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},h,{scope:"variable.language",match:/\$this\b/},c,re,oe,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},D,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:q,contains:["self",ie,c,oe,t.C_BLOCK_COMMENT_MODE,S,T]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},S,T]}}function Y2(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function K2(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function V2(t){const a=t.regex,l=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],h={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},g={className:"meta",begin:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:h,illegal:/#/},b={begin:/\{\{/,relevance:0},x={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,g],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,g],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,g,b,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,g,b,p]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,b,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,b,p]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},_="[0-9](_?[0-9])*",v=`(\\b(${_}))?\\.(${_})|\\b(${_})\\.`,S=`\\b|${r.join("|")}`,T={className:"number",relevance:0,variants:[{begin:`(\\b(${_})|(${v}))[eE][+-]?(${_})[jJ]?(?=${S})`},{begin:`(${v})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${S})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${S})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${S})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${S})`},{begin:`\\b(${_})[jJ](?=${S})`}]},A={className:"comment",begin:a.lookahead(/# type:/),end:/$/,keywords:h,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},w={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:["self",g,T,x,t.HASH_COMMENT_MODE]}]};return p.contains=[x,T,g],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:h,illegal:/(<\/|\?)|=>/,contains:[g,T,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},x,A,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[w]},{variants:[{match:[/\bclass/,/\s+/,l,/\s*/,/\(\s*/,l,/\s*\)/]},{match:[/\bclass/,/\s+/,l]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[T,w,x]}]}}function X2(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Z2(t){const a=t.regex,l=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=a.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,u=a.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:l,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:a.lookahead(a.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:l},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[o,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[u,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[l,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:u},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Q2(t){const a=t.regex,l="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=a.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=a.concat(r,/(::\w+)*/),c={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},h={className:"doctag",begin:"@[A-Za-z]+"},g={begin:"#<",end:">"},p=[t.COMMENT("#","$",{contains:[h]}),t.COMMENT("^=begin","^=end",{contains:[h],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],b={className:"subst",begin:/#\{/,end:/\}/,keywords:c},x={className:"string",contains:[t.BACKSLASH_ESCAPE,b],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:a.concat(/<<[-~]?'?/,a.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,b]})]}]},_="[1-9](_?[0-9])*|0",v="[0-9](_?[0-9])*",S={className:"number",relevance:0,variants:[{begin:`\\b(${_})(\\.(${v}))?([eE][+-]?(${v})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},T={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:c}]},D=[x,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:c},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:c},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[T]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[x,{begin:l}],relevance:0},S,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:c},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,b],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(g,p),relevance:0}].concat(g,p);b.contains=D,T.contains=D;const U=[{begin:/^\s*=>/,starts:{end:"$",contains:D}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:c,contains:D}}];return p.unshift(g),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:c,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(U).concat(p).concat(D)}}function J2(t){const a=t.regex,l=/(r#)?/,r=a.concat(l,t.UNDERSCORE_IDENT_RE),o=a.concat(l,t.IDENT_RE),u={className:"title.function.invoke",relevance:0,begin:a.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,a.lookahead(/\s*\(/))},c="([ui](8|16|32|64|128|size)|f(32|64))?",h=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],g=["true","false","Some","None","Ok","Err"],p=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],b=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:b,keyword:h,literal:g,built_in:p},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+c},{begin:"\\b0o([0-7_]+)"+c},{begin:"\\b0x([A-Fa-f0-9_]+)"+c},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+c}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:p,type:b}},{className:"punctuation",begin:"->"},u]}}const W2=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),eA=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],tA=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],nA=[...eA,...tA],iA=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),aA=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),lA=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),rA=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function sA(t){const a=W2(t),l=lA,r=aA,o="@[a-z-]+",u="and or not only",h={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,a.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+nA.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+l.join("|")+")"},h,{begin:/\(/,end:/\)/,contains:[a.CSS_NUMBER_MODE]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+rA.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[a.BLOCK_COMMENT,h,a.HEXCOLOR,a.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,a.IMPORTANT,a.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:o,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:iA.join(" ")},contains:[{begin:o,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},h,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,a.HEXCOLOR,a.CSS_NUMBER_MODE]},a.FUNCTION_DISPATCH]}}function oA(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function cA(t){const a=t.regex,l=t.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},u=["true","false","unknown"],c=["double precision","large object","with timezone","without timezone"],h=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],g=["add","asc","collation","desc","final","first","last","view"],p=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],b=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],x=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],_=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],v=b,S=[...p,...g].filter(K=>!b.includes(K)),T={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},A={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},w={match:a.concat(/\b/,a.either(...v),/\s*\(/),relevance:0,keywords:{built_in:v}};function C(K){return a.concat(/\b/,a.either(...K.map(D=>D.replace(/\s+/,"\\s+"))),/\b/)}const z={scope:"keyword",match:C(_),relevance:0};function q(K,{exceptions:D,when:Z}={}){const oe=Z;return D=D||[],K.map(de=>de.match(/\|\d+$/)||D.includes(de)?de:oe(de)?`${de}|0`:de)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:q(S,{when:K=>K.length<3}),literal:u,type:h,built_in:x},contains:[{scope:"type",match:C(c)},z,w,T,r,o,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,l,A]}}function gx(t){return t?typeof t=="string"?t:t.source:null}function $r(t){return pt("(?=",t,")")}function pt(...t){return t.map(l=>gx(l)).join("")}function uA(t){const a=t[t.length-1];return typeof a=="object"&&a.constructor===Object?(t.splice(t.length-1,1),a):{}}function dn(...t){return"("+(uA(t).capture?"":"?:")+t.map(r=>gx(r)).join("|")+")"}const Td=t=>pt(/\b/,t,/\w$/.test(t)?/\b/:/\B/),fA=["Protocol","Type"].map(Td),S0=["init","self"].map(Td),dA=["Any","Self"],wf=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],N0=["false","nil","true"],mA=["assignment","associativity","higherThan","left","lowerThan","none","right"],hA=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],w0=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],bx=dn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),xx=dn(bx,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),kf=pt(bx,xx,"*"),yx=dn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Po=dn(yx,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),oi=pt(yx,Po,"*"),Ro=pt(/[A-Z]/,Po,"*"),pA=["attached","autoclosure",pt(/convention\(/,dn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",pt(/objc\(/,oi,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],gA=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function bA(t){const a={match:/\s+/,relevance:0},l=t.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[t.C_LINE_COMMENT_MODE,l],o={match:[/\./,dn(...fA,...S0)],className:{2:"keyword"}},u={match:pt(/\./,dn(...wf)),relevance:0},c=wf.filter(Ce=>typeof Ce=="string").concat(["_|0"]),h=wf.filter(Ce=>typeof Ce!="string").concat(dA).map(Td),g={variants:[{className:"keyword",match:dn(...h,...S0)}]},p={$pattern:dn(/\b\w+/,/#\w+/),keyword:c.concat(hA),literal:N0},b=[o,u,g],x={match:pt(/\./,dn(...w0)),relevance:0},_={className:"built_in",match:pt(/\b/,dn(...w0),/(?=\()/)},v=[x,_],S={match:/->/,relevance:0},T={className:"operator",relevance:0,variants:[{match:kf},{match:`\\.(\\.|${xx})+`}]},A=[S,T],w="([0-9]_*)+",C="([0-9a-fA-F]_*)+",z={className:"number",relevance:0,variants:[{match:`\\b(${w})(\\.(${w}))?([eE][+-]?(${w}))?\\b`},{match:`\\b0x(${C})(\\.(${C}))?([pP][+-]?(${w}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},q=(Ce="")=>({className:"subst",variants:[{match:pt(/\\/,Ce,/[0\\tnr"']/)},{match:pt(/\\/,Ce,/u\{[0-9a-fA-F]{1,8}\}/)}]}),K=(Ce="")=>({className:"subst",match:pt(/\\/,Ce,/[\t ]*(?:[\r\n]|\r\n)/)}),D=(Ce="")=>({className:"subst",label:"interpol",begin:pt(/\\/,Ce,/\(/),end:/\)/}),Z=(Ce="")=>({begin:pt(Ce,/"""/),end:pt(/"""/,Ce),contains:[q(Ce),K(Ce),D(Ce)]}),oe=(Ce="")=>({begin:pt(Ce,/"/),end:pt(/"/,Ce),contains:[q(Ce),D(Ce)]}),de={className:"string",variants:[Z(),Z("#"),Z("##"),Z("###"),oe(),oe("#"),oe("##"),oe("###")]},U=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],re={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:U},ae=Ce=>{const Tt=pt(Ce,/\//),be=pt(/\//,Ce);return{begin:Tt,end:be,contains:[...U,{scope:"comment",begin:`#(?!.*${be})`,end:/$/}]}},ie={scope:"regexp",variants:[ae("###"),ae("##"),ae("#"),re]},Y={match:pt(/`/,oi,/`/)},H={className:"variable",match:/\$\d+/},L={className:"variable",match:`\\$${Po}+`},X=[Y,H,L],ne={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:gA,contains:[...A,z,de]}]}},le={scope:"keyword",match:pt(/@/,dn(...pA),$r(dn(/\(/,/\s+/)))},k={scope:"meta",match:pt(/@/,oi)},M=[ne,le,k],B={match:$r(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:pt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Po,"+")},{className:"type",match:Ro,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:pt(/\s+&\s+/,$r(Ro)),relevance:0}]},N={begin:/</,end:/>/,keywords:p,contains:[...r,...b,...M,S,B]};B.contains.push(N);const ce={match:pt(oi,/\s*:/),keywords:"_|0",relevance:0},pe={begin:/\(/,end:/\)/,relevance:0,keywords:p,contains:["self",ce,...r,ie,...b,...v,...A,z,de,...X,...M,B]},he={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,B]},ze={begin:dn($r(pt(oi,/\s*:/)),$r(pt(oi,/\s+/,oi,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:oi}]},Le={begin:/\(/,end:/\)/,keywords:p,contains:[ze,...r,...b,...A,z,de,...M,B,pe],endsParent:!0,illegal:/["']/},qe={match:[/(func|macro)/,/\s+/,dn(Y.match,oi,kf)],className:{1:"keyword",3:"title.function"},contains:[he,Le,a],illegal:[/\[/,/%/]},ft={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[he,Le,a],illegal:/\[|%/},se={match:[/operator/,/\s+/,kf],className:{1:"keyword",3:"title"}},Re={begin:[/precedencegroup/,/\s+/,Ro],className:{1:"keyword",3:"title"},contains:[B],keywords:[...mA,...N0],end:/}/},lt={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},We={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},It={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,oi,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:p,contains:[he,...b,{begin:/:/,end:/\{/,keywords:p,contains:[{scope:"title.class.inherited",match:Ro},...b],relevance:0}]};for(const Ce of de.variants){const Tt=Ce.contains.find(Ue=>Ue.label==="interpol");Tt.keywords=p;const be=[...b,...v,...A,z,de,...X];Tt.contains=[...be,{begin:/\(/,end:/\)/,contains:["self",...be]}]}return{name:"Swift",keywords:p,contains:[...r,qe,ft,lt,We,It,se,Re,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},ie,...b,...v,...A,z,de,...X,...M,B,pe]}}const Yo="[A-Za-z$_][0-9A-Za-z$_]*",_x=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],vx=["true","false","null","undefined","NaN","Infinity"],Ex=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Sx=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Nx=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],wx=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],kx=[].concat(Nx,Ex,Sx);function xA(t){const a=t.regex,l=(ne,{after:le})=>{const k="</"+ne[0].slice(1);return ne.input.indexOf(k,le)!==-1},r=Yo,o={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ne,le)=>{const k=ne[0].length+ne.index,M=ne.input[k];if(M==="<"||M===","){le.ignoreMatch();return}M===">"&&(l(ne,{after:k})||le.ignoreMatch());let B;const N=ne.input.substring(k);if(B=N.match(/^\s*=/)){le.ignoreMatch();return}if((B=N.match(/^\s+extends\s+/))&&B.index===0){le.ignoreMatch();return}}},h={$pattern:Yo,keyword:_x,literal:vx,built_in:kx,"variable.language":wx},g="[0-9](_?[0-9])*",p=`\\.(${g})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",x={className:"number",variants:[{begin:`(\\b(${b})((${p})|\\.)?|(${p}))[eE][+-]?(${g})\\b`},{begin:`\\b(${b})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:h,contains:[]},v={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},S={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,_],subLanguage:"css"}},T={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,_]},C={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},z=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,v,S,T,A,{match:/\$\d+/},x];_.contains=z.concat({begin:/\{/,end:/\}/,keywords:h,contains:["self"].concat(z)});const q=[].concat(C,_.contains),K=q.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:["self"].concat(q)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:K},Z={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,a.concat(r,"(",a.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},oe={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ex,...Sx]}},de={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},re={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ae(ne){return a.concat("(?!",ne.join("|"),")")}const ie={match:a.concat(/\b/,ae([...Nx,"super","import"].map(ne=>`${ne}\\s*\\(`)),r,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},Y={begin:a.concat(/\./,a.lookahead(a.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},L="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(L)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:h,exports:{PARAMS_CONTAINS:K,CLASS_REFERENCE:oe},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),de,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,v,S,T,A,C,{match:/\$\d+/},x,oe,{scope:"attr",match:r+a.lookahead(":"),relevance:0},X,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,t.REGEXP_MODE,{className:"function",begin:L,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:K}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:u},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Y,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},ie,re,Z,H,{match:/\$[(.]/}]}}function yA(t){const a=t.regex,l=xA(t),r=Yo,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},c={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[l.exports.CLASS_REFERENCE]},h={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},g=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],p={$pattern:Yo,keyword:_x.concat(g),literal:vx,built_in:kx.concat(o),"variable.language":wx},b={className:"meta",begin:"@"+r},x=(T,A,w)=>{const C=T.contains.findIndex(z=>z.label===A);if(C===-1)throw new Error("can not find mode to replace");T.contains.splice(C,1,w)};Object.assign(l.keywords,p),l.exports.PARAMS_CONTAINS.push(b);const _=l.contains.find(T=>T.scope==="attr"),v=Object.assign({},_,{match:a.concat(r,a.lookahead(/\s*\?:/))});l.exports.PARAMS_CONTAINS.push([l.exports.CLASS_REFERENCE,_,v]),l.contains=l.contains.concat([b,u,c,v]),x(l,"shebang",t.SHEBANG()),x(l,"use_strict",h);const S=l.contains.find(T=>T.label==="func.def");return S.relevance=0,Object.assign(l,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),l}function _A(t){const a=t.regex,l={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,u=/\d{4}-\d{1,2}-\d{1,2}/,c=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,h=/\d{1,2}(:\d{1,2}){1,2}/,g={className:"literal",variants:[{begin:a.concat(/# */,a.either(u,o),/ *#/)},{begin:a.concat(/# */,h,/ *#/)},{begin:a.concat(/# */,c,/ *#/)},{begin:a.concat(/# */,a.either(u,o),/ +/,a.either(c,h),/ *#/)}]},p={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},b={className:"label",begin:/^\w+:/},x=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),_=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[l,r,g,p,b,x,_,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[_]}]}}function vA(t){t.regex;const a=t.COMMENT(/\(;/,/;\)/);a.contains.push("self");const l=t.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},u={className:"variable",begin:/\$[\w_]+/},c={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},h={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},g={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},p={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[l,a,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},u,c,o,t.QUOTE_STRING_MODE,g,p,h]}}function EA(t){const a=t.regex,l=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=t.inherit(u,{begin:/\(/,end:/\)/}),h=t.inherit(t.APOS_STRING_MODE,{className:"string"}),g=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),p={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[u,g,h,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,c,g,h]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[g]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(l,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:p}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function SA(t){const a="true false yes no null",l="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},u={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},c={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,o]},h=t.inherit(c,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),_={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},v={end:",",endsWithParent:!0,excludeEnd:!0,keywords:a,relevance:0},S={begin:/\{/,end:/\}/,contains:[v],illegal:"\\n",relevance:0},T={begin:"\\[",end:"\\]",contains:[v],illegal:"\\n",relevance:0},A=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+l},{className:"type",begin:"!<"+l+">"},{className:"type",begin:"!"+l},{className:"type",begin:"!!"+l},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:a,keywords:{literal:a}},_,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},S,T,u,c],w=[...A];return w.pop(),w.push(h),v.contains=w,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:A}}const NA={arduino:l2,bash:r2,c:s2,cpp:o2,csharp:c2,css:x2,diff:y2,go:_2,graphql:v2,ini:E2,java:S2,javascript:A2,json:M2,kotlin:O2,less:U2,lua:H2,makefile:F2,markdown:$2,objectivec:q2,perl:G2,php:P2,"php-template":Y2,plaintext:K2,python:V2,"python-repl":X2,r:Z2,ruby:Q2,rust:J2,scss:sA,shell:oA,sql:cA,swift:bA,typescript:yA,vbnet:_A,wasm:vA,xml:EA,yaml:SA};var Tf,k0;function wA(){if(k0)return Tf;k0=1;function t(R){return R instanceof Map?R.clear=R.delete=R.set=function(){throw new Error("map is read-only")}:R instanceof Set&&(R.add=R.clear=R.delete=function(){throw new Error("set is read-only")}),Object.freeze(R),Object.getOwnPropertyNames(R).forEach(W=>{const xe=R[W],De=typeof xe;(De==="object"||De==="function")&&!Object.isFrozen(xe)&&t(xe)}),R}class a{constructor(W){W.data===void 0&&(W.data={}),this.data=W.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function l(R){return R.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(R,...W){const xe=Object.create(null);for(const De in R)xe[De]=R[De];return W.forEach(function(De){for(const Et in De)xe[Et]=De[Et]}),xe}const o="</span>",u=R=>!!R.scope,c=(R,{prefix:W})=>{if(R.startsWith("language:"))return R.replace("language:","language-");if(R.includes(".")){const xe=R.split(".");return[`${W}${xe.shift()}`,...xe.map((De,Et)=>`${De}${"_".repeat(Et+1)}`)].join(" ")}return`${W}${R}`};class h{constructor(W,xe){this.buffer="",this.classPrefix=xe.classPrefix,W.walk(this)}addText(W){this.buffer+=l(W)}openNode(W){if(!u(W))return;const xe=c(W.scope,{prefix:this.classPrefix});this.span(xe)}closeNode(W){u(W)&&(this.buffer+=o)}value(){return this.buffer}span(W){this.buffer+=`<span class="${W}">`}}const g=(R={})=>{const W={children:[]};return Object.assign(W,R),W};class p{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(W){this.top.children.push(W)}openNode(W){const xe=g({scope:W});this.add(xe),this.stack.push(xe)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(W){return this.constructor._walk(W,this.rootNode)}static _walk(W,xe){return typeof xe=="string"?W.addText(xe):xe.children&&(W.openNode(xe),xe.children.forEach(De=>this._walk(W,De)),W.closeNode(xe)),W}static _collapse(W){typeof W!="string"&&W.children&&(W.children.every(xe=>typeof xe=="string")?W.children=[W.children.join("")]:W.children.forEach(xe=>{p._collapse(xe)}))}}class b extends p{constructor(W){super(),this.options=W}addText(W){W!==""&&this.add(W)}startScope(W){this.openNode(W)}endScope(){this.closeNode()}__addSublanguage(W,xe){const De=W.root;xe&&(De.scope=`language:${xe}`),this.add(De)}toHTML(){return new h(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function x(R){return R?typeof R=="string"?R:R.source:null}function _(R){return T("(?=",R,")")}function v(R){return T("(?:",R,")*")}function S(R){return T("(?:",R,")?")}function T(...R){return R.map(xe=>x(xe)).join("")}function A(R){const W=R[R.length-1];return typeof W=="object"&&W.constructor===Object?(R.splice(R.length-1,1),W):{}}function w(...R){return"("+(A(R).capture?"":"?:")+R.map(De=>x(De)).join("|")+")"}function C(R){return new RegExp(R.toString()+"|").exec("").length-1}function z(R,W){const xe=R&&R.exec(W);return xe&&xe.index===0}const q=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function K(R,{joinWith:W}){let xe=0;return R.map(De=>{xe+=1;const Et=xe;let gt=x(De),ve="";for(;gt.length>0;){const ye=q.exec(gt);if(!ye){ve+=gt;break}ve+=gt.substring(0,ye.index),gt=gt.substring(ye.index+ye[0].length),ye[0][0]==="\\"&&ye[1]?ve+="\\"+String(Number(ye[1])+Et):(ve+=ye[0],ye[0]==="("&&xe++)}return ve}).map(De=>`(${De})`).join(W)}const D=/\b\B/,Z="[a-zA-Z]\\w*",oe="[a-zA-Z_]\\w*",de="\\b\\d+(\\.\\d+)?",U="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",re="\\b(0b[01]+)",ae="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ie=(R={})=>{const W=/^#![ ]*\//;return R.binary&&(R.begin=T(W,/.*\b/,R.binary,/\b.*/)),r({scope:"meta",begin:W,end:/$/,relevance:0,"on:begin":(xe,De)=>{xe.index!==0&&De.ignoreMatch()}},R)},Y={begin:"\\\\[\\s\\S]",relevance:0},H={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Y]},L={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Y]},X={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ne=function(R,W,xe={}){const De=r({scope:"comment",begin:R,end:W,contains:[]},xe);De.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Et=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return De.contains.push({begin:T(/[ ]+/,"(",Et,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),De},le=ne("//","$"),k=ne("/\\*","\\*/"),M=ne("#","$"),B={scope:"number",begin:de,relevance:0},N={scope:"number",begin:U,relevance:0},ce={scope:"number",begin:re,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Y,{begin:/\[/,end:/\]/,relevance:0,contains:[Y]}]},he={scope:"title",begin:Z,relevance:0},ze={scope:"title",begin:oe,relevance:0},Le={begin:"\\.\\s*"+oe,relevance:0};var ft=Object.freeze({__proto__:null,APOS_STRING_MODE:H,BACKSLASH_ESCAPE:Y,BINARY_NUMBER_MODE:ce,BINARY_NUMBER_RE:re,COMMENT:ne,C_BLOCK_COMMENT_MODE:k,C_LINE_COMMENT_MODE:le,C_NUMBER_MODE:N,C_NUMBER_RE:U,END_SAME_AS_BEGIN:function(R){return Object.assign(R,{"on:begin":(W,xe)=>{xe.data._beginMatch=W[1]},"on:end":(W,xe)=>{xe.data._beginMatch!==W[1]&&xe.ignoreMatch()}})},HASH_COMMENT_MODE:M,IDENT_RE:Z,MATCH_NOTHING_RE:D,METHOD_GUARD:Le,NUMBER_MODE:B,NUMBER_RE:de,PHRASAL_WORDS_MODE:X,QUOTE_STRING_MODE:L,REGEXP_MODE:pe,RE_STARTERS_RE:ae,SHEBANG:ie,TITLE_MODE:he,UNDERSCORE_IDENT_RE:oe,UNDERSCORE_TITLE_MODE:ze});function se(R,W){R.input[R.index-1]==="."&&W.ignoreMatch()}function Re(R,W){R.className!==void 0&&(R.scope=R.className,delete R.className)}function lt(R,W){W&&R.beginKeywords&&(R.begin="\\b("+R.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",R.__beforeBegin=se,R.keywords=R.keywords||R.beginKeywords,delete R.beginKeywords,R.relevance===void 0&&(R.relevance=0))}function We(R,W){Array.isArray(R.illegal)&&(R.illegal=w(...R.illegal))}function It(R,W){if(R.match){if(R.begin||R.end)throw new Error("begin & end are not supported with match");R.begin=R.match,delete R.match}}function Ce(R,W){R.relevance===void 0&&(R.relevance=1)}const Tt=(R,W)=>{if(!R.beforeMatch)return;if(R.starts)throw new Error("beforeMatch cannot be used with starts");const xe=Object.assign({},R);Object.keys(R).forEach(De=>{delete R[De]}),R.keywords=xe.keywords,R.begin=T(xe.beforeMatch,_(xe.begin)),R.starts={relevance:0,contains:[Object.assign(xe,{endsParent:!0})]},R.relevance=0,delete xe.beforeMatch},be=["of","and","for","in","not","or","if","then","parent","list","value"],Ue="keyword";function yt(R,W,xe=Ue){const De=Object.create(null);return typeof R=="string"?Et(xe,R.split(" ")):Array.isArray(R)?Et(xe,R):Object.keys(R).forEach(function(gt){Object.assign(De,yt(R[gt],W,gt))}),De;function Et(gt,ve){W&&(ve=ve.map(ye=>ye.toLowerCase())),ve.forEach(function(ye){const Oe=ye.split("|");De[Oe[0]]=[gt,Ut(Oe[0],Oe[1])]})}}function Ut(R,W){return W?Number(W):Wn(R)?0:1}function Wn(R){return be.includes(R.toLowerCase())}const Ha={},At=R=>{console.error(R)},Fa=(R,...W)=>{console.log(`WARN: ${R}`,...W)},Q=(R,W)=>{Ha[`${R}/${W}`]||(console.log(`Deprecated as of ${R}. ${W}`),Ha[`${R}/${W}`]=!0)},me=new Error;function Te(R,W,{key:xe}){let De=0;const Et=R[xe],gt={},ve={};for(let ye=1;ye<=W.length;ye++)ve[ye+De]=Et[ye],gt[ye+De]=!0,De+=C(W[ye-1]);R[xe]=ve,R[xe]._emit=gt,R[xe]._multi=!0}function Ge(R){if(Array.isArray(R.begin)){if(R.skip||R.excludeBegin||R.returnBegin)throw At("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),me;if(typeof R.beginScope!="object"||R.beginScope===null)throw At("beginScope must be object"),me;Te(R,R.begin,{key:"beginScope"}),R.begin=K(R.begin,{joinWith:""})}}function tt(R){if(Array.isArray(R.end)){if(R.skip||R.excludeEnd||R.returnEnd)throw At("skip, excludeEnd, returnEnd not compatible with endScope: {}"),me;if(typeof R.endScope!="object"||R.endScope===null)throw At("endScope must be object"),me;Te(R,R.end,{key:"endScope"}),R.end=K(R.end,{joinWith:""})}}function on(R){R.scope&&typeof R.scope=="object"&&R.scope!==null&&(R.beginScope=R.scope,delete R.scope)}function Yn(R){on(R),typeof R.beginScope=="string"&&(R.beginScope={_wrap:R.beginScope}),typeof R.endScope=="string"&&(R.endScope={_wrap:R.endScope}),Ge(R),tt(R)}function Xt(R){function W(ve,ye){return new RegExp(x(ve),"m"+(R.case_insensitive?"i":"")+(R.unicodeRegex?"u":"")+(ye?"g":""))}class xe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(ye,Oe){Oe.position=this.position++,this.matchIndexes[this.matchAt]=Oe,this.regexes.push([Oe,ye]),this.matchAt+=C(ye)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const ye=this.regexes.map(Oe=>Oe[1]);this.matcherRe=W(K(ye,{joinWith:"|"}),!0),this.lastIndex=0}exec(ye){this.matcherRe.lastIndex=this.lastIndex;const Oe=this.matcherRe.exec(ye);if(!Oe)return null;const Rt=Oe.findIndex((fi,qa)=>qa>0&&fi!==void 0),wt=this.matchIndexes[Rt];return Oe.splice(0,Rt),Object.assign(Oe,wt)}}class De{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(ye){if(this.multiRegexes[ye])return this.multiRegexes[ye];const Oe=new xe;return this.rules.slice(ye).forEach(([Rt,wt])=>Oe.addRule(Rt,wt)),Oe.compile(),this.multiRegexes[ye]=Oe,Oe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(ye,Oe){this.rules.push([ye,Oe]),Oe.type==="begin"&&this.count++}exec(ye){const Oe=this.getMatcher(this.regexIndex);Oe.lastIndex=this.lastIndex;let Rt=Oe.exec(ye);if(this.resumingScanAtSamePosition()&&!(Rt&&Rt.index===this.lastIndex)){const wt=this.getMatcher(0);wt.lastIndex=this.lastIndex+1,Rt=wt.exec(ye)}return Rt&&(this.regexIndex+=Rt.position+1,this.regexIndex===this.count&&this.considerAll()),Rt}}function Et(ve){const ye=new De;return ve.contains.forEach(Oe=>ye.addRule(Oe.begin,{rule:Oe,type:"begin"})),ve.terminatorEnd&&ye.addRule(ve.terminatorEnd,{type:"end"}),ve.illegal&&ye.addRule(ve.illegal,{type:"illegal"}),ye}function gt(ve,ye){const Oe=ve;if(ve.isCompiled)return Oe;[Re,It,Yn,Tt].forEach(wt=>wt(ve,ye)),R.compilerExtensions.forEach(wt=>wt(ve,ye)),ve.__beforeBegin=null,[lt,We,Ce].forEach(wt=>wt(ve,ye)),ve.isCompiled=!0;let Rt=null;return typeof ve.keywords=="object"&&ve.keywords.$pattern&&(ve.keywords=Object.assign({},ve.keywords),Rt=ve.keywords.$pattern,delete ve.keywords.$pattern),Rt=Rt||/\w+/,ve.keywords&&(ve.keywords=yt(ve.keywords,R.case_insensitive)),Oe.keywordPatternRe=W(Rt,!0),ye&&(ve.begin||(ve.begin=/\B|\b/),Oe.beginRe=W(Oe.begin),!ve.end&&!ve.endsWithParent&&(ve.end=/\B|\b/),ve.end&&(Oe.endRe=W(Oe.end)),Oe.terminatorEnd=x(Oe.end)||"",ve.endsWithParent&&ye.terminatorEnd&&(Oe.terminatorEnd+=(ve.end?"|":"")+ye.terminatorEnd)),ve.illegal&&(Oe.illegalRe=W(ve.illegal)),ve.contains||(ve.contains=[]),ve.contains=[].concat(...ve.contains.map(function(wt){return tn(wt==="self"?ve:wt)})),ve.contains.forEach(function(wt){gt(wt,Oe)}),ve.starts&&gt(ve.starts,ye),Oe.matcher=Et(Oe),Oe}if(R.compilerExtensions||(R.compilerExtensions=[]),R.contains&&R.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return R.classNameAliases=r(R.classNameAliases||{}),gt(R)}function Ct(R){return R?R.endsWithParent||Ct(R.starts):!1}function tn(R){return R.variants&&!R.cachedVariants&&(R.cachedVariants=R.variants.map(function(W){return r(R,{variants:null},W)})),R.cachedVariants?R.cachedVariants:Ct(R)?r(R,{starts:R.starts?r(R.starts):null}):Object.isFrozen(R)?r(R):R}var rt="11.11.1";class ei extends Error{constructor(W,xe){super(W),this.name="HTMLInjectionError",this.html=xe}}const cn=l,os=r,da=Symbol("nomatch"),$a=7,ma=function(R){const W=Object.create(null),xe=Object.create(null),De=[];let Et=!0;const gt="Could not find the language '{}', did you forget to load/include a language module?",ve={disableAutodetect:!0,name:"Plain text",contains:[]};let ye={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Oe(ue){return ye.noHighlightRe.test(ue)}function Rt(ue){let Ne=ue.className+" ";Ne+=ue.parentNode?ue.parentNode.className:"";const Pe=ye.languageDetectRe.exec(Ne);if(Pe){const st=un(Pe[1]);return st||(Fa(gt.replace("{}",Pe[1])),Fa("Falling back to no-highlight mode for this block.",ue)),st?Pe[1]:"no-highlight"}return Ne.split(/\s+/).find(st=>Oe(st)||un(st))}function wt(ue,Ne,Pe){let st="",Lt="";typeof Ne=="object"?(st=ue,Pe=Ne.ignoreIllegals,Lt=Ne.language):(Q("10.7.0","highlight(lang, code, ...args) has been deprecated."),Q("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),Lt=ue,st=Ne),Pe===void 0&&(Pe=!0);const an={code:st,language:Lt};pa("before:highlight",an);const wn=an.result?an.result:fi(an.language,an.code,Pe);return wn.code=an.code,pa("after:highlight",wn),wn}function fi(ue,Ne,Pe,st){const Lt=Object.create(null);function an(ge,Ee){return ge.keywords[Ee]}function wn(){if(!Me.keywords){Ft.addText(ot);return}let ge=0;Me.keywordPatternRe.lastIndex=0;let Ee=Me.keywordPatternRe.exec(ot),Ie="";for(;Ee;){Ie+=ot.substring(ge,Ee.index);const Xe=Zt.case_insensitive?Ee[0].toLowerCase():Ee[0],Mt=an(Me,Xe);if(Mt){const[jn,Vl]=Mt;if(Ft.addText(Ie),Ie="",Lt[Xe]=(Lt[Xe]||0)+1,Lt[Xe]<=$a&&(Ui+=Vl),jn.startsWith("_"))Ie+=Ee[0];else{const ps=Zt.classNameAliases[jn]||jn;kn(Ee[0],ps)}}else Ie+=Ee[0];ge=Me.keywordPatternRe.lastIndex,Ee=Me.keywordPatternRe.exec(ot)}Ie+=ot.substring(ge),Ft.addText(Ie)}function pn(){if(ot==="")return;let ge=null;if(typeof Me.subLanguage=="string"){if(!W[Me.subLanguage]){Ft.addText(ot);return}ge=fi(Me.subLanguage,ot,!0,hs[Me.subLanguage]),hs[Me.subLanguage]=ge._top}else ge=Ga(ot,Me.subLanguage.length?Me.subLanguage:null);Me.relevance>0&&(Ui+=ge.relevance),Ft.__addSublanguage(ge._emitter,ge.language)}function _t(){Me.subLanguage!=null?pn():wn(),ot=""}function kn(ge,Ee){ge!==""&&(Ft.startScope(Ee),Ft.addText(ge),Ft.endScope())}function ds(ge,Ee){let Ie=1;const Xe=Ee.length-1;for(;Ie<=Xe;){if(!ge._emit[Ie]){Ie++;continue}const Mt=Zt.classNameAliases[ge[Ie]]||ge[Ie],jn=Ee[Ie];Mt?kn(jn,Mt):(ot=jn,wn(),ot=""),Ie++}}function Ya(ge,Ee){return ge.scope&&typeof ge.scope=="string"&&Ft.openNode(Zt.classNameAliases[ge.scope]||ge.scope),ge.beginScope&&(ge.beginScope._wrap?(kn(ot,Zt.classNameAliases[ge.beginScope._wrap]||ge.beginScope._wrap),ot=""):ge.beginScope._multi&&(ds(ge.beginScope,Ee),ot="")),Me=Object.create(ge,{parent:{value:Me}}),Me}function Pl(ge,Ee,Ie){let Xe=z(ge.endRe,Ie);if(Xe){if(ge["on:end"]){const Mt=new a(ge);ge["on:end"](Ee,Mt),Mt.isMatchIgnored&&(Xe=!1)}if(Xe){for(;ge.endsParent&&ge.parent;)ge=ge.parent;return ge}}if(ge.endsWithParent)return Pl(ge.parent,Ee,Ie)}function Ka(ge){return Me.matcher.regexIndex===0?(ot+=ge[0],1):(Hi=!0,0)}function Wo(ge){const Ee=ge[0],Ie=ge.rule,Xe=new a(Ie),Mt=[Ie.__beforeBegin,Ie["on:begin"]];for(const jn of Mt)if(jn&&(jn(ge,Xe),Xe.isMatchIgnored))return Ka(Ee);return Ie.skip?ot+=Ee:(Ie.excludeBegin&&(ot+=Ee),_t(),!Ie.returnBegin&&!Ie.excludeBegin&&(ot=Ee)),Ya(Ie,ge),Ie.returnBegin?0:Ee.length}function gn(ge){const Ee=ge[0],Ie=Ne.substring(ge.index),Xe=Pl(Me,ge,Ie);if(!Xe)return da;const Mt=Me;Me.endScope&&Me.endScope._wrap?(_t(),kn(Ee,Me.endScope._wrap)):Me.endScope&&Me.endScope._multi?(_t(),ds(Me.endScope,ge)):Mt.skip?ot+=Ee:(Mt.returnEnd||Mt.excludeEnd||(ot+=Ee),_t(),Mt.excludeEnd&&(ot=Ee));do Me.scope&&Ft.closeNode(),!Me.skip&&!Me.subLanguage&&(Ui+=Me.relevance),Me=Me.parent;while(Me!==Xe.parent);return Xe.starts&&Ya(Xe.starts,ge),Mt.returnEnd?0:Ee.length}function Yl(){const ge=[];for(let Ee=Me;Ee!==Zt;Ee=Ee.parent)Ee.scope&&ge.unshift(Ee.scope);ge.forEach(Ee=>Ft.openNode(Ee))}let ga={};function Va(ge,Ee){const Ie=Ee&&Ee[0];if(ot+=ge,Ie==null)return _t(),0;if(ga.type==="begin"&&Ee.type==="end"&&ga.index===Ee.index&&Ie===""){if(ot+=Ne.slice(Ee.index,Ee.index+1),!Et){const Xe=new Error(`0 width match regex (${ue})`);throw Xe.languageName=ue,Xe.badRule=ga.rule,Xe}return 1}if(ga=Ee,Ee.type==="begin")return Wo(Ee);if(Ee.type==="illegal"&&!Pe){const Xe=new Error('Illegal lexeme "'+Ie+'" for mode "'+(Me.scope||"<unnamed>")+'"');throw Xe.mode=Me,Xe}else if(Ee.type==="end"){const Xe=gn(Ee);if(Xe!==da)return Xe}if(Ee.type==="illegal"&&Ie==="")return ot+=`
`,1;if(Kl>1e5&&Kl>Ee.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ot+=Ie,Ie.length}const Zt=un(ue);if(!Zt)throw At(gt.replace("{}",ue)),new Error('Unknown language: "'+ue+'"');const ms=Xt(Zt);let Xa="",Me=st||ms;const hs={},Ft=new ye.__emitter(ye);Yl();let ot="",Ui=0,hi=0,Kl=0,Hi=!1;try{if(Zt.__emitTokens)Zt.__emitTokens(Ne,Ft);else{for(Me.matcher.considerAll();;){Kl++,Hi?Hi=!1:Me.matcher.considerAll(),Me.matcher.lastIndex=hi;const ge=Me.matcher.exec(Ne);if(!ge)break;const Ee=Ne.substring(hi,ge.index),Ie=Va(Ee,ge);hi=ge.index+Ie}Va(Ne.substring(hi))}return Ft.finalize(),Xa=Ft.toHTML(),{language:ue,value:Xa,relevance:Ui,illegal:!1,_emitter:Ft,_top:Me}}catch(ge){if(ge.message&&ge.message.includes("Illegal"))return{language:ue,value:cn(Ne),illegal:!0,relevance:0,_illegalBy:{message:ge.message,index:hi,context:Ne.slice(hi-100,hi+100),mode:ge.mode,resultSoFar:Xa},_emitter:Ft};if(Et)return{language:ue,value:cn(Ne),illegal:!1,relevance:0,errorRaised:ge,_emitter:Ft,_top:Me};throw ge}}function qa(ue){const Ne={value:cn(ue),illegal:!1,relevance:0,_top:ve,_emitter:new ye.__emitter(ye)};return Ne._emitter.addText(ue),Ne}function Ga(ue,Ne){Ne=Ne||ye.languages||Object.keys(W);const Pe=qa(ue),st=Ne.filter(un).filter(Bi).map(_t=>fi(_t,ue,!1));st.unshift(Pe);const Lt=st.sort((_t,kn)=>{if(_t.relevance!==kn.relevance)return kn.relevance-_t.relevance;if(_t.language&&kn.language){if(un(_t.language).supersetOf===kn.language)return 1;if(un(kn.language).supersetOf===_t.language)return-1}return 0}),[an,wn]=Lt,pn=an;return pn.secondBest=wn,pn}function ti(ue,Ne,Pe){const st=Ne&&xe[Ne]||Pe;ue.classList.add("hljs"),ue.classList.add(`language-${st}`)}function Dt(ue){let Ne=null;const Pe=Rt(ue);if(Oe(Pe))return;if(pa("before:highlightElement",{el:ue,language:Pe}),ue.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ue);return}if(ue.children.length>0&&(ye.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ue)),ye.throwUnescapedHTML))throw new ei("One of your code blocks includes unescaped HTML.",ue.innerHTML);Ne=ue;const st=Ne.textContent,Lt=Pe?wt(st,{language:Pe,ignoreIllegals:!0}):Ga(st);ue.innerHTML=Lt.value,ue.dataset.highlighted="yes",ti(ue,Pe,Lt.language),ue.result={language:Lt.language,re:Lt.relevance,relevance:Lt.relevance},Lt.secondBest&&(ue.secondBest={language:Lt.secondBest.language,relevance:Lt.secondBest.relevance}),pa("after:highlightElement",{el:ue,result:Lt,text:st})}function nn(ue){ye=os(ye,ue)}const ji=()=>{Pa(),Q("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function ql(){Pa(),Q("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let cs=!1;function Pa(){function ue(){Pa()}if(document.readyState==="loading"){cs||window.addEventListener("DOMContentLoaded",ue,!1),cs=!0;return}document.querySelectorAll(ye.cssSelector).forEach(Dt)}function us(ue,Ne){let Pe=null;try{Pe=Ne(R)}catch(st){if(At("Language definition for '{}' could not be registered.".replace("{}",ue)),Et)At(st);else throw st;Pe=ve}Pe.name||(Pe.name=ue),W[ue]=Pe,Pe.rawDefinition=Ne.bind(null,R),Pe.aliases&&di(Pe.aliases,{languageName:ue})}function ha(ue){delete W[ue];for(const Ne of Object.keys(xe))xe[Ne]===ue&&delete xe[Ne]}function Gl(){return Object.keys(W)}function un(ue){return ue=(ue||"").toLowerCase(),W[ue]||W[xe[ue]]}function di(ue,{languageName:Ne}){typeof ue=="string"&&(ue=[ue]),ue.forEach(Pe=>{xe[Pe.toLowerCase()]=Ne})}function Bi(ue){const Ne=un(ue);return Ne&&!Ne.disableAutodetect}function Ii(ue){ue["before:highlightBlock"]&&!ue["before:highlightElement"]&&(ue["before:highlightElement"]=Ne=>{ue["before:highlightBlock"](Object.assign({block:Ne.el},Ne))}),ue["after:highlightBlock"]&&!ue["after:highlightElement"]&&(ue["after:highlightElement"]=Ne=>{ue["after:highlightBlock"](Object.assign({block:Ne.el},Ne))})}function Ht(ue){Ii(ue),De.push(ue)}function fs(ue){const Ne=De.indexOf(ue);Ne!==-1&&De.splice(Ne,1)}function pa(ue,Ne){const Pe=ue;De.forEach(function(st){st[Pe]&&st[Pe](Ne)})}function mi(ue){return Q("10.7.0","highlightBlock will be removed entirely in v12.0"),Q("10.7.0","Please use highlightElement now."),Dt(ue)}Object.assign(R,{highlight:wt,highlightAuto:Ga,highlightAll:Pa,highlightElement:Dt,highlightBlock:mi,configure:nn,initHighlighting:ji,initHighlightingOnLoad:ql,registerLanguage:us,unregisterLanguage:ha,listLanguages:Gl,getLanguage:un,registerAliases:di,autoDetection:Bi,inherit:os,addPlugin:Ht,removePlugin:fs}),R.debugMode=function(){Et=!1},R.safeMode=function(){Et=!0},R.versionString=rt,R.regex={concat:T,lookahead:_,either:w,optional:S,anyNumberOfTimes:v};for(const ue in ft)typeof ft[ue]=="object"&&t(ft[ue]);return Object.assign(R,ft),R},hn=ma({});return hn.newInstance=()=>ma({}),Tf=hn,hn.HighlightJS=hn,hn.default=hn,Tf}var kA=wA();const TA=id(kA),T0={},AA="hljs-";function MA(t){const a=TA.newInstance();return t&&u(t),{highlight:l,highlightAuto:r,listLanguages:o,register:u,registerAlias:c,registered:h};function l(g,p,b){const x=b||T0,_=typeof x.prefix=="string"?x.prefix:AA;if(!a.getLanguage(g))throw new Error("Unknown language: `"+g+"` is not registered");a.configure({__emitter:CA,classPrefix:_});const v=a.highlight(p,{ignoreIllegals:!0,language:g});if(v.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:v.errorRaised});const S=v._emitter.root,T=S.data;return T.language=v.language,T.relevance=v.relevance,S}function r(g,p){const x=(p||T0).subset||o();let _=-1,v=0,S;for(;++_<x.length;){const T=x[_];if(!a.getLanguage(T))continue;const A=l(T,g,p);A.data&&A.data.relevance!==void 0&&A.data.relevance>v&&(v=A.data.relevance,S=A)}return S||{type:"root",children:[],data:{language:void 0,relevance:v}}}function o(){return a.listLanguages()}function u(g,p){if(typeof g=="string")a.registerLanguage(g,p);else{let b;for(b in g)Object.hasOwn(g,b)&&a.registerLanguage(b,g[b])}}function c(g,p){if(typeof g=="string")a.registerAliases(typeof p=="string"?p:[...p],{languageName:g});else{let b;for(b in g)if(Object.hasOwn(g,b)){const x=g[b];a.registerAliases(typeof x=="string"?x:[...x],{languageName:b})}}}function h(g){return!!a.getLanguage(g)}}class CA{constructor(a){this.options=a,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(a){if(a==="")return;const l=this.stack[this.stack.length-1],r=l.children[l.children.length-1];r&&r.type==="text"?r.value+=a:l.children.push({type:"text",value:a})}startScope(a){this.openNode(String(a))}endScope(){this.closeNode()}__addSublanguage(a,l){const r=this.stack[this.stack.length-1],o=a.root.children;l?r.children.push({type:"element",tagName:"span",properties:{className:[l]},children:o}):r.children.push(...o)}openNode(a){const l=this,r=a.split(".").map(function(c,h){return h?c+"_".repeat(h):l.options.classPrefix+c}),o=this.stack[this.stack.length-1],u={type:"element",tagName:"span",properties:{className:r},children:[]};o.children.push(u),this.stack.push(u)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const OA={};function zA(t){const a=t||OA,l=a.aliases,r=a.detect||!1,o=a.languages||NA,u=a.plainText,c=a.prefix,h=a.subset;let g="hljs";const p=MA(o);if(l&&p.registerAlias(l),c){const b=c.indexOf("-");g=b===-1?c:c.slice(0,b)}return function(b,x){Jo(b,"element",function(_,v,S){if(_.tagName!=="code"||!S||S.type!=="element"||S.tagName!=="pre")return;const T=RA(_);if(T===!1||!T&&!r||T&&u&&u.includes(T))return;Array.isArray(_.properties.className)||(_.properties.className=[]),_.properties.className.includes(g)||_.properties.className.unshift(g);const A=QT(_,{whitespace:"pre"});let w;try{w=T?p.highlight(T,A,{prefix:c}):p.highlightAuto(A,{prefix:c,subset:h})}catch(C){const z=C;if(T&&/Unknown language/.test(z.message)){x.message("Cannot highlight as `"+T+"`, it’s not registered",{ancestors:[S,_],cause:z,place:_.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw z}!T&&w.data&&w.data.language&&_.properties.className.push("language-"+w.data.language),w.children.length>0&&(_.children=w.children)})}}function RA(t){const a=t.properties.className;let l=-1;if(!Array.isArray(a))return;let r;for(;++l<a.length;){const o=String(a[l]);if(o==="no-highlight"||o==="nohighlight")return!1;!r&&o.slice(0,5)==="lang-"&&(r=o.slice(5)),!r&&o.slice(0,9)==="language-"&&(r=o.slice(9))}return r}const DA=1500;function ls({text:t,className:a=""}){const[l,r]=F.useState(!1),o=F.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>{r(!0),setTimeout(()=>r(!1),DA)})},[t]);return m.jsx("button",{onClick:o,className:`p-1 rounded hover:bg-zinc-700/50 transition-colors ${a}`,title:l?"Copied!":"Copy",children:l?m.jsx(ld,{className:"w-3.5 h-3.5 text-emerald-400"}):m.jsx(f_,{className:"w-3.5 h-3.5 text-zinc-400"})})}function A0(t){if(!t)return"";const a=t.match(/language-(\w+)/);return a?a[1]:""}function LA({content:t,className:a=""}){const l={h1:({children:r})=>m.jsx("h1",{className:"text-lg font-semibold text-zinc-100 mt-4 mb-2",children:r}),h2:({children:r})=>m.jsx("h2",{className:"text-base font-semibold text-zinc-100 mt-3 mb-1.5",children:r}),h3:({children:r})=>m.jsx("h3",{className:"text-sm font-semibold text-zinc-100 mt-2.5 mb-1",children:r}),h4:({children:r})=>m.jsx("h4",{className:"text-sm font-medium text-zinc-200 mt-2 mb-1",children:r}),h5:({children:r})=>m.jsx("h5",{className:"text-xs font-medium text-zinc-200 mt-1.5 mb-0.5",children:r}),h6:({children:r})=>m.jsx("h6",{className:"text-xs font-medium text-zinc-300 mt-1.5 mb-0.5",children:r}),p:({children:r})=>m.jsx("p",{className:"text-[13px] leading-relaxed text-zinc-200 my-1.5",children:r}),a:({href:r,children:o})=>m.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300 underline underline-offset-2",children:o}),strong:({children:r})=>m.jsx("strong",{className:"font-semibold text-zinc-50",children:r}),em:({children:r})=>m.jsx("em",{className:"italic text-zinc-300",children:r}),code:({className:r,children:o})=>{const u=A0(r),c=r==null?void 0:r.includes("hljs");return u||c?m.jsx("code",{className:`${r||""} text-[12px] font-mono`,children:o}):m.jsx("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800/80 text-cyan-300 text-[12px] font-mono",children:o})},pre:({children:r})=>{var h;const o=r,u=A0((h=o==null?void 0:o.props)==null?void 0:h.className),c=jA(o);return m.jsxs("div",{className:"my-2 rounded-lg border border-zinc-700/60 overflow-hidden",children:[m.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 bg-zinc-800/80 border-b border-zinc-700/60",children:[m.jsx("span",{className:"text-[10px] font-medium text-zinc-400 uppercase tracking-wider",children:u||"code"}),m.jsx(ls,{text:c})]}),m.jsx("pre",{className:"p-3 overflow-x-auto bg-zinc-900/60 text-[12px] leading-relaxed !m-0",children:r})]})},ul:({children:r})=>m.jsx("ul",{className:"list-disc list-outside pl-5 space-y-0.5 my-1.5 text-[13px] text-zinc-200",children:r}),ol:({children:r})=>m.jsx("ol",{className:"list-decimal list-outside pl-5 space-y-0.5 my-1.5 text-[13px] text-zinc-200",children:r}),li:({children:r})=>m.jsx("li",{className:"leading-relaxed [&>p]:my-0 [&>p]:inline",children:r}),blockquote:({children:r})=>m.jsx("blockquote",{className:"border-l-2 border-zinc-600 pl-3 my-2 italic text-zinc-400",children:r}),table:({children:r})=>m.jsx("div",{className:"my-2 overflow-x-auto rounded-lg border border-zinc-700/60",children:m.jsx("table",{className:"w-full text-[12px]",children:r})}),thead:({children:r})=>m.jsx("thead",{className:"bg-zinc-900 text-zinc-300",children:r}),tr:({children:r})=>m.jsx("tr",{className:"border-b border-zinc-700/40",children:r}),th:({children:r})=>m.jsx("th",{className:"px-3 py-1.5 text-left font-medium text-zinc-300",children:r}),td:({children:r})=>m.jsx("td",{className:"px-3 py-1.5 text-zinc-400",children:r}),hr:()=>m.jsx("hr",{className:"border-zinc-700 my-3"})};return m.jsx("div",{className:a,children:m.jsx(Ow,{remarkPlugins:[GT],rehypePlugins:[zA],components:l,children:t})})}function jA(t){var l;if(!((l=t==null?void 0:t.props)!=null&&l.children))return"";const a=t.props.children;return typeof a=="string"?a.replace(/\n$/,""):Array.isArray(a)?a.map(String).join("").replace(/\n$/,""):String(a).replace(/\n$/,"")}const rs=F.memo(LA);function Ad({content:t,className:a}){if(typeof t=="string"){const l=Jr(t);return l?m.jsx(rs,{content:l,className:a}):null}return t.length?m.jsx("div",{className:a,children:t.map((l,r)=>m.jsx(BA,{part:l},r))}):null}function BA({part:t}){if(t.type==="text"&&t.text){const a=Jr(t.text);return a?m.jsx(rs,{content:a}):null}return t.type==="image"&&t.source?m.jsx(IA,{source:t.source}):null}function IA({source:t}){const[a,l]=F.useState(!1),r=`data:${t.media_type};base64,${t.base64}`;return m.jsxs(m.Fragment,{children:[m.jsx("img",{src:r,alt:"Embedded image",className:"my-2 max-w-full max-h-80 rounded-lg border border-zinc-700/60 cursor-pointer hover:border-zinc-500 transition-colors",onClick:()=>l(!0)}),a&&m.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 cursor-pointer",onClick:()=>l(!1),children:m.jsx("img",{src:r,alt:"Expanded image",className:"max-w-[90vw] max-h-[90vh] rounded-lg"})})]})}const M0=8,C0=500,UA=20;function Tx({step:t}){var a;return t.source==="system"?m.jsx(FA,{step:t}):t.source==="user"?(a=t.extra)!=null&&a.is_skill_output?m.jsx(qA,{step:t}):m.jsx(HA,{step:t}):t.source==="agent"?m.jsx(GA,{step:t}):null}function HA({step:t}){const a=Il(t.message);return!a&&typeof t.message=="string"||!a&&Array.isArray(t.message)&&t.message.length===0?null:m.jsx("div",{className:"flex justify-end",children:m.jsx("div",{className:"max-w-[85%] bg-indigo-600/80 text-white rounded-2xl rounded-br-md px-4 py-2.5 text-sm overflow-hidden break-words",children:m.jsx(Ad,{content:t.message,className:"user-markdown"})})})}function FA({step:t}){const[a,l]=F.useState(!1),r=Il(t.message);if(!r)return null;const o=r.split(`
`)[0].slice(0,80);return m.jsxs("div",{className:"max-w-[85%]",children:[m.jsxs("button",{onClick:()=>l(!a),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-[11px] border transition-colors bg-zinc-800/50 hover:bg-zinc-800/80 text-zinc-500 border-zinc-700",children:[a?m.jsx(Ri,{className:"w-3 h-3"}):m.jsx(Di,{className:"w-3 h-3"}),m.jsx(j_,{className:"w-3.5 h-3.5"}),m.jsx("span",{className:"font-medium",children:"System"}),!a&&m.jsx("span",{className:"text-zinc-600 truncate max-w-[250px] ml-0.5",children:o})]}),a&&m.jsx("div",{className:"mt-1 bg-zinc-900/60 border border-zinc-700 rounded-lg p-3",children:m.jsx("pre",{className:"text-xs text-zinc-500 whitespace-pre-wrap break-words overflow-x-auto max-h-96 overflow-y-auto",children:r})})]})}function $A(t){const a=t.match(/\/skills\/([^/\s]+)/);return a?a[1]:null}function qA({step:t}){const[a,l]=F.useState(!1),r=Il(t.message);if(!r)return null;const o=$A(r);return m.jsxs("div",{className:"max-w-[85%]",children:[m.jsxs("button",{onClick:()=>l(!a),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-[11px] border transition-colors bg-amber-500/10 hover:bg-amber-500/15 text-amber-300 border-amber-500/20",children:[a?m.jsx(Ri,{className:"w-3 h-3"}):m.jsx(Di,{className:"w-3 h-3"}),m.jsx(W0,{className:"w-3.5 h-3.5"}),m.jsx("span",{className:"font-medium",children:"Skill"}),o&&m.jsxs("span",{className:"text-amber-400/70 ml-0.5",children:["/",o]})]}),a&&m.jsx("div",{className:"mt-1 bg-amber-500/5 border border-amber-500/20 rounded-lg p-3",children:m.jsx("pre",{className:"text-xs text-amber-200/70 whitespace-pre-wrap overflow-x-auto max-h-96 overflow-y-auto",children:r})})]})}function GA({step:t}){var o;const a=new Map;if(t.observation)for(const u of t.observation.results)u.source_call_id&&a.set(u.source_call_id,u);const l=((o=t.observation)==null?void 0:o.results.filter(u=>!u.source_call_id||!t.tool_calls.some(c=>c.tool_call_id===u.source_call_id)))??[],r=t.tool_calls.length>1;return m.jsxs("div",{className:"space-y-1",children:[t.message&&(typeof t.message!="string"||t.message.trim())&&m.jsx(YA,{content:t.message}),t.reasoning_content&&m.jsx(KA,{text:t.reasoning_content}),(t.tool_calls.length>0||l.length>0)&&m.jsxs("div",{className:"flex flex-col gap-1 mt-1.5",children:[r?m.jsx(PA,{toolCalls:t.tool_calls,obsMap:a}):t.tool_calls.map((u,c)=>{const h=a.get(u.tool_call_id);return m.jsxs("div",{children:[m.jsx(Ax,{toolCall:u}),h&&m.jsx(Jf,{result:h})]},`tc-${c}`)}),l.map((u,c)=>m.jsx(Jf,{result:u},`orphan-${c}`))]})]})}function PA({toolCalls:t,obsMap:a}){const[l,r]=F.useState(!0),o=t.map(h=>h.function_name||"unknown"),u=[...new Set(o)],c=u.length<=3?u.join(", "):`${u.slice(0,2).join(", ")} +${u.length-2}`;return m.jsxs("div",{className:"max-w-[85%] rounded-lg border bg-cyan-500/5 border-cyan-500/20 overflow-hidden",children:[m.jsxs("button",{onClick:()=>r(!l),className:"flex items-center gap-2 w-full px-3 py-2 text-xs text-cyan-300 hover:bg-white/5 transition-colors",children:[l?m.jsx(Ri,{className:"w-3 h-3 shrink-0"}):m.jsx(Di,{className:"w-3 h-3 shrink-0"}),m.jsx(V0,{className:"w-3.5 h-3.5"}),m.jsxs("span",{className:"font-medium",children:[t.length," parallel calls"]}),!l&&m.jsx("span",{className:"text-zinc-500 truncate ml-1",children:c})]}),l&&m.jsx("div",{className:"border-t border-cyan-500/20",children:m.jsx("div",{className:"border-l-2 border-cyan-500/30 ml-3 pl-3 py-2 space-y-1",children:t.map((h,g)=>{const p=a.get(h.tool_call_id);return m.jsxs("div",{children:[m.jsx(Ax,{toolCall:h}),p&&m.jsx(Jf,{result:p})]},`tc-${g}`)})})})]})}function YA({content:t}){if(typeof t=="string"){const a=Jr(t);return a?m.jsx("div",{className:"max-w-[85%] text-zinc-100 text-sm break-words overflow-hidden",children:m.jsx(rs,{content:a})}):null}return m.jsx("div",{className:"max-w-[85%] text-zinc-100 text-sm break-words overflow-hidden",children:m.jsx(Ad,{content:t})})}function KA({text:t}){const[a,l]=F.useState(!1);return t.trim()?m.jsxs("div",{className:"max-w-[85%]",children:[m.jsxs("button",{onClick:()=>l(!a),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-amber-500/10 hover:bg-amber-500/15 text-[11px] text-amber-400/90 border border-amber-500/20 transition-colors",children:[a?m.jsx(Ri,{className:"w-3 h-3"}):m.jsx(Di,{className:"w-3 h-3"}),m.jsx(X0,{className:"w-3.5 h-3.5"}),m.jsx("span",{className:"font-medium",children:"Thinking"})]}),a&&m.jsx("div",{className:"mt-1 bg-zinc-900/80 border border-zinc-800 rounded-lg p-3",children:m.jsx("pre",{className:"text-xs text-amber-200/80 whitespace-pre-wrap overflow-x-auto",children:t})})]}):null}function Ax({toolCall:t}){const[a,l]=F.useState(!1),r=t.function_name||"unknown",{icon:o,color:u}=eM(r),c=tM(r,t.arguments);return m.jsxs("div",{className:"max-w-[85%]",children:[m.jsxs("button",{onClick:()=>l(!a),className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-[11px] border transition-colors ${u}`,children:[a?m.jsx(Ri,{className:"w-3 h-3"}):m.jsx(Di,{className:"w-3 h-3"}),o,m.jsx("span",{className:"font-medium",children:r}),!a&&c&&m.jsx("span",{className:"text-zinc-500 truncate max-w-[200px] ml-0.5",children:c})]}),a&&m.jsx("div",{className:"mt-1",children:m.jsx(VA,{name:r,input:t.arguments})})]})}const O0="[ERROR] ";function Jf({result:t}){const a=t.content;if(!a)return null;if(Array.isArray(a))return m.jsx("div",{className:"max-w-[85%] mt-1 bg-zinc-900/60 border border-zinc-800 rounded-lg overflow-hidden p-3",children:m.jsx(Ad,{content:a})});const l=a.startsWith(O0),r=l?a.slice(O0.length):a;if(!r)return null;const u=r.split(`
`).length<=UA,[c,h]=F.useState(u);if(u)return m.jsx("div",{className:"max-w-[85%] mt-1 bg-zinc-900/60 border border-zinc-800 rounded-lg overflow-hidden",children:m.jsx(z0,{text:r,isError:l})});const g=r.split(`
`)[0].slice(0,80);return m.jsxs("div",{className:"max-w-[85%]",children:[m.jsxs("button",{onClick:()=>h(!c),className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-[11px] border transition-colors ${l?"bg-rose-500/10 hover:bg-rose-500/15 text-rose-300 border-rose-500/20":"bg-teal-500/10 hover:bg-teal-500/15 text-teal-300 border-teal-500/20"}`,children:[c?m.jsx(Ri,{className:"w-3 h-3"}):m.jsx(Di,{className:"w-3 h-3"}),l?m.jsx(Hl,{className:"w-3.5 h-3.5"}):m.jsx(ld,{className:"w-3.5 h-3.5"}),m.jsx("span",{className:"font-medium",children:l?"Error":"Result"}),!c&&m.jsx("span",{className:"text-zinc-500 truncate max-w-[250px] ml-0.5",children:g})]}),c&&m.jsx("div",{className:"mt-1 bg-zinc-900/60 border border-zinc-800 rounded-lg overflow-hidden",children:m.jsx(z0,{text:r,isError:l})})]})}function VA({name:t,input:a}){const l=a;if(!l)return null;const r=t.toLowerCase();if(r==="bash")return m.jsx(XA,{command:String(l.command||"")});if(r==="edit")return m.jsx(ZA,{filePath:String(l.file_path||""),oldString:String(l.old_string||""),newString:String(l.new_string||"")});if(r==="write")return m.jsx(JA,{filePath:String(l.file_path||""),content:String(l.content||"")});if(r==="read"){const u=String(l.file_path||""),c=u.split(".").pop()||"";return m.jsx("div",{className:"bg-zinc-900/60 border border-zinc-800 rounded-lg overflow-hidden",children:m.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-zinc-800/60 border-b border-zinc-700/40",children:[m.jsx(G0,{className:"w-3.5 h-3.5 text-sky-400"}),m.jsx("span",{className:"text-[11px] font-mono text-zinc-300 truncate flex-1",children:u}),c&&m.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded bg-zinc-700/60 text-zinc-400 uppercase",children:c}),m.jsx(ls,{text:u})]})})}if(r==="grep")return m.jsx("div",{className:"bg-zinc-900/60 border border-zinc-800 rounded-lg overflow-hidden",children:m.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/60",children:[m.jsx(sd,{className:"w-3.5 h-3.5 text-amber-400"}),m.jsxs("span",{className:"text-[11px] font-mono text-zinc-300",children:[!!l.pattern&&m.jsx("span",{className:"text-amber-300",children:String(l.pattern)}),!!l.path&&m.jsxs("span",{className:"text-zinc-500 ml-2",children:["in ",String(l.path)]})]})]})});if(r==="glob")return m.jsx("div",{className:"bg-zinc-900/60 border border-zinc-800 rounded-lg overflow-hidden",children:m.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/60",children:[m.jsx(Xr,{className:"w-3.5 h-3.5 text-cyan-400"}),m.jsxs("span",{className:"text-[11px] font-mono text-zinc-300",children:[!!l.pattern&&m.jsx("span",{className:"text-cyan-300",children:String(l.pattern)}),!!l.path&&m.jsxs("span",{className:"text-zinc-500 ml-2",children:["in ",String(l.path)]})]})]})});const o=JSON.stringify(l,null,2);return m.jsx("div",{className:"bg-zinc-900/60 border border-zinc-800 rounded-lg overflow-hidden",children:m.jsx(rs,{content:`\`\`\`json
${o}
\`\`\``,className:"[&>div]:my-0 [&>div]:border-0 [&>div]:rounded-none"})})}function XA({command:t}){return m.jsxs("div",{className:"bg-zinc-900/60 border border-zinc-800 rounded-lg overflow-hidden",children:[m.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 bg-zinc-800/60 border-b border-zinc-700/40",children:[m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx(J0,{className:"w-3.5 h-3.5 text-green-400"}),m.jsx("span",{className:"text-[10px] font-medium text-zinc-400 uppercase tracking-wider",children:"Command"})]}),m.jsx(ls,{text:t})]}),m.jsxs("pre",{className:"p-3 overflow-x-auto text-[12px] font-mono text-green-300 leading-relaxed",children:[m.jsx("span",{className:"text-zinc-500",children:"$ "}),t]})]})}function ZA({filePath:t,oldString:a,newString:l}){const r=t.split("/").pop()||t,o=l?l.split(`
`).length:0,u=a?a.split(`
`).length:0;let c=[];return(a||l)&&(c=yv(r,r,a,l,"","",{context:3}).split(`
`).slice(4)),m.jsxs("div",{className:"bg-zinc-900/60 border border-zinc-800 rounded-lg overflow-hidden",children:[m.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-zinc-800/60 border-b border-zinc-700/40",children:[m.jsx(Z0,{className:"w-3.5 h-3.5 text-blue-400"}),m.jsx("span",{className:"text-[11px] font-mono text-zinc-300 truncate flex-1",children:t}),o>0&&m.jsxs("span",{className:"text-[10px] text-emerald-400 font-mono",title:`${o} line${o!==1?"s":""} added`,children:["+",o]}),u>0&&m.jsxs("span",{className:"text-[10px] text-rose-400 font-mono",title:`${u} line${u!==1?"s":""} removed`,children:["-",u]})]}),c.length>0&&m.jsx("div",{className:"overflow-x-auto text-[11px] font-mono leading-[1.6]",children:c.map((h,g)=>m.jsx(QA,{line:h},g))})]})}function QA({line:t}){return t.startsWith("+")?m.jsx("div",{className:"px-3 bg-emerald-500/8 text-emerald-300 border-l-2 border-emerald-500/50",children:t}):t.startsWith("-")?m.jsx("div",{className:"px-3 bg-rose-500/8 text-rose-300 border-l-2 border-rose-500/50",children:t}):t.startsWith("@@")?m.jsx("div",{className:"px-3 text-zinc-500 bg-zinc-800/40",children:t}):m.jsx("div",{className:"px-3 text-zinc-400",children:t})}function JA({filePath:t,content:a}){const l=a?a.split(`
`).length:0,r=a.length>C0?a.slice(0,C0)+`
...`:a;return m.jsxs("div",{className:"bg-zinc-900/60 border border-zinc-800 rounded-lg overflow-hidden",children:[m.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-zinc-800/60 border-b border-zinc-700/40",children:[m.jsx(P0,{className:"w-3.5 h-3.5 text-emerald-400"}),m.jsx("span",{className:"text-[11px] font-mono text-zinc-300 truncate flex-1",children:t}),m.jsxs("span",{className:"text-[10px] text-zinc-500",children:[l," lines"]})]}),a&&m.jsx("pre",{className:"p-3 overflow-x-auto text-[11px] font-mono text-zinc-400 max-h-48 overflow-y-auto leading-relaxed",children:r})]})}function WA(t){const a=t.trim();if(!a.startsWith("{")&&!a.startsWith("["))return null;try{const l=JSON.parse(a);return JSON.stringify(l,null,2)}catch{return null}}function z0({text:t,isError:a}){const[l,r]=F.useState(!1),o=WA(t),u=o||t,c=u.split(`
`),h=c.length>M0,g=!l&&h?c.slice(0,M0).join(`
`)+`
...`:u;return o?m.jsxs("div",{className:"relative",children:[m.jsxs("div",{className:"flex items-center justify-between px-3 py-1 bg-zinc-800/60 border-b border-zinc-700/40",children:[m.jsx("span",{className:"text-[10px] font-medium text-zinc-500 uppercase tracking-wider",children:"json"}),m.jsx(ls,{text:o})]}),m.jsx(rs,{content:`\`\`\`json
${g}
\`\`\``,className:"tool-output-json [&>div]:my-0 [&>div]:border-0 [&>div]:rounded-none [&_pre]:max-h-96 [&_pre]:overflow-y-auto"}),h&&!l&&m.jsxs("button",{onClick:()=>r(!0),className:"text-[10px] text-zinc-400 hover:text-zinc-200 px-3 pb-2",children:["Show all (",c.length," lines)"]})]}):m.jsxs("div",{className:"relative",children:[m.jsx("pre",{className:`text-xs p-3 overflow-x-auto whitespace-pre-wrap break-words max-h-96 overflow-y-auto ${a?"text-rose-300":"text-teal-200/80"}`,children:g}),h&&!l&&m.jsxs("button",{onClick:()=>r(!0),className:"text-[10px] text-zinc-400 hover:text-zinc-200 px-3 pb-2",children:["Show all (",c.length," lines)"]})]})}function eM(t){const a=t.toLowerCase();return a==="bash"?{icon:m.jsx(J0,{className:"w-3.5 h-3.5 text-green-400"}),color:"bg-slate-500/10 hover:bg-slate-500/15 text-slate-300 border-slate-500/20"}:a==="edit"?{icon:m.jsx(Z0,{className:"w-3.5 h-3.5 text-blue-400"}),color:"bg-slate-500/10 hover:bg-slate-500/15 text-slate-300 border-slate-500/20"}:a==="read"?{icon:m.jsx(G0,{className:"w-3.5 h-3.5 text-sky-400"}),color:"bg-slate-500/10 hover:bg-slate-500/15 text-slate-300 border-slate-500/20"}:a==="write"?{icon:m.jsx(P0,{className:"w-3.5 h-3.5 text-emerald-400"}),color:"bg-slate-500/10 hover:bg-slate-500/15 text-slate-300 border-slate-500/20"}:a==="grep"?{icon:m.jsx(sd,{className:"w-3.5 h-3.5 text-amber-400"}),color:"bg-slate-500/10 hover:bg-slate-500/15 text-slate-300 border-slate-500/20"}:a==="glob"?{icon:m.jsx(Xr,{className:"w-3.5 h-3.5 text-cyan-400"}),color:"bg-slate-500/10 hover:bg-slate-500/15 text-slate-300 border-slate-500/20"}:a==="agent"||a.includes("task")||a.includes("agent")?{icon:m.jsx(jl,{className:"w-3.5 h-3.5 text-violet-400"}),color:"bg-violet-500/10 hover:bg-violet-500/15 text-violet-300 border-violet-500/20"}:{icon:m.jsx(od,{className:"w-3.5 h-3.5 text-zinc-400"}),color:"bg-slate-500/10 hover:bg-slate-500/15 text-slate-300 border-slate-500/20"}}function tM(t,a){const l=a;if(!l)return"";const r=t.toLowerCase();return r==="bash"?String(l.command||"").slice(0,60):r==="edit"||r==="read"||r==="write"?String(l.file_path||"").split("/").slice(-2).join("/"):r==="grep"||r==="glob"?String(l.pattern||"").slice(0,40):""}function nM({open:t,onToggle:a,icon:l,label:r,preview:o,className:u,children:c}){return m.jsxs("div",{className:`rounded-lg border ${u} overflow-hidden`,children:[m.jsxs("button",{onClick:a,className:"flex items-center gap-2 w-full px-3 py-2 text-xs hover:bg-white/5 transition-colors",children:[t?m.jsx(Ri,{className:"w-3 h-3 shrink-0"}):m.jsx(Di,{className:"w-3 h-3 shrink-0"}),l,m.jsx("span",{className:"font-medium",children:r}),!t&&o&&m.jsx("span",{className:"text-zinc-500 truncate ml-1",children:o})]}),t&&m.jsx("div",{className:"border-t border-inherit",children:c})]})}function Wf({trajectory:t,allTrajectories:a}){const[l,r]=F.useState(!1),o=t.steps||[],u=o.length,c=o.reduce((b,x)=>{var _;return b+(((_=x.tool_calls)==null?void 0:_.length)||0)},0),h=F.useMemo(()=>a.filter(b=>{var x;return((x=b.parent_trajectory_ref)==null?void 0:x.session_id)===t.session_id}),[a,t.session_id]),g=t.session_id.slice(0,12),p=`${u} steps • ${c} tools`;return m.jsx(nM,{open:l,onToggle:()=>r(!l),icon:m.jsx(jl,{className:"w-3.5 h-3.5"}),label:g,preview:p,className:"bg-violet-500/10 border-violet-500/30 text-violet-300",children:m.jsxs("div",{className:"border-l-2 border-violet-500/30 ml-3 pl-3 py-2 space-y-2",children:[m.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-violet-400 px-1 pb-1",children:[m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(Zr,{className:"w-3 h-3"}),u]}),m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(od,{className:"w-3 h-3"}),c]})]}),o.filter(b=>b.source==="user"||b.source==="agent").map(b=>m.jsx(Tx,{step:b},b.step_id)),h.map(b=>m.jsx(Wf,{trajectory:b,allTrajectories:a},b.session_id))]})})}var iM=F0();const Af=52,Oi=13,Tl=3,Mf=28,Cf=20,R0=12,aM=12,lM=["Mon","","Wed","","Fri","",""],rM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ol=["rgba(34,211,238,0.06)","rgba(34,211,238,0.25)","rgba(34,211,238,0.45)","rgba(34,211,238,0.65)","rgba(34,211,238,0.85)"],Do=["bg-blue-500","bg-amber-400","bg-rose-500","bg-emerald-500","bg-violet-500","bg-orange-500","bg-cyan-400","bg-fuchsia-500"],Lo=["bg-cyan-500","bg-teal-400","bg-sky-500","bg-indigo-400","bg-emerald-500","bg-amber-400","bg-violet-500","bg-rose-400","bg-orange-400","bg-lime-400","bg-pink-400","bg-blue-400"],sM=300,oM=480;function Md({state:t}){const a=F.useRef(null),[l,r]=F.useState({left:0,top:0}),o=t!=null&&typeof t.content!="string",u=o?oM:sM;return F.useEffect(()=>{if(!t)return;const c=a.current,h=c?c.offsetWidth:u,g=c?c.offsetHeight:40,p=window.innerWidth,b=window.innerHeight;let x=t.x+R0,_=t.y-8;x+h>p-8&&(x=t.x-h-R0),_+g>b-8&&(_=b-g-8),_<8&&(_=8),r({left:x,top:_})},[t,u]),t?iM.createPortal(m.jsx("div",{ref:a,className:`fixed z-[9999] pointer-events-none px-3 py-2.5 rounded-lg bg-zinc-800/95 border border-zinc-600 text-[13px] leading-relaxed text-zinc-100 shadow-2xl ${o?"whitespace-pre-wrap":"whitespace-pre-line"}`,style:{left:l.left,top:l.top,maxWidth:u},children:t.content}),document.body):null}function Cd(){const[t,a]=F.useState(null),l=F.useCallback((u,c)=>{a({x:u.clientX,y:u.clientY,content:c})},[]),r=F.useCallback(u=>{a(c=>c?{...c,x:u.clientX,y:u.clientY}:null)},[]),o=F.useCallback(()=>a(null),[]);return{tip:t,show:l,move:r,hide:o}}function cM({entries:t,sessionStartMs:a,sessionStartTimestamp:l}){const{tip:r,show:o,move:u,hide:c}=Cd();if(!t.some(p=>p.step.timestamp))return m.jsx(m.Fragment,{children:t.map(p=>m.jsx("div",{children:p.content},p.step.step_id))});const g=a??uM(t.map(p=>p.step));return m.jsxs(m.Fragment,{children:[m.jsx(Md,{state:r}),t.map((p,b)=>{var K;const x=p.step.timestamp?new Date(p.step.timestamp).getTime():null,_=g!=null&&x!=null?Math.max(0,Math.floor((x-g)/1e3)):null,v=t[b-1],S=v!=null&&v.step.timestamp?new Date(v.step.timestamp).getTime():null,T=S!=null&&x!=null?Math.max(0,Math.floor((x-S)/1e3)):null,A=b<t.length-1,w=b===0,C=p.step.source==="user"?(K=p.step.extra)!=null&&K.is_skill_output?"bg-amber-500":"bg-indigo-500":p.step.source==="system"?"bg-zinc-500":"bg-cyan-500",z=p.step.timestamp?ov(p.step.timestamp,l):"",q=p.step.timestamp?cv(p.step.timestamp):"";return m.jsxs("div",{className:"flex gap-3",children:[m.jsxs("div",{className:"flex flex-col items-center w-5 shrink-0",children:[m.jsx("div",{className:`w-2 h-2 rounded-full ${C} mt-[7px] shrink-0`}),A&&m.jsx("div",{className:"w-0.5 flex-1 bg-zinc-600 min-h-[16px]"})]}),m.jsxs("div",{className:`flex-1 min-w-0 pb-5 ${w?"":"border-t border-zinc-600 pt-3"}`,children:[m.jsxs("div",{className:"flex items-baseline gap-1.5 mb-1.5 cursor-default",children:[_!=null&&m.jsx("span",{className:"text-xs font-mono text-zinc-300",onMouseEnter:D=>o(D,q),onMouseMove:u,onMouseLeave:c,children:sf(_)}),z&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-zinc-500 text-[11px]",children:"·"}),m.jsx("span",{className:"text-[11px] font-mono text-zinc-400",onMouseEnter:D=>o(D,q),onMouseMove:u,onMouseLeave:c,children:z})]}),T!=null&&T>0&&m.jsxs("span",{className:"text-[10px] font-mono text-zinc-400 ml-auto",onMouseEnter:D=>o(D,`+${sf(T)} since previous step`),onMouseMove:u,onMouseLeave:c,children:["+",sf(T)]})]}),p.content]})]},p.step.step_id)})]})}function uM(t){for(const a of t)if(a.timestamp){const l=new Date(a.timestamp).getTime();if(!isNaN(l))return l}return null}const fM=80,dM=1,D0={exploration:{dot:"bg-blue-400",text:"text-blue-400"},implementation:{dot:"bg-emerald-400",text:"text-emerald-400"},debugging:{dot:"bg-red-400",text:"text-red-400"},verification:{dot:"bg-amber-400",text:"text-amber-400"},planning:{dot:"bg-violet-400",text:"text-violet-400"},mixed:{dot:"bg-zinc-500",text:"text-zinc-400"}},mM={file_read:"read",file_write:"write",shell:"shell",search:"search",web:"web",agent:"agent",task:"task",other:"other"};function hM(t){var r;const a=[];let l=0;for(let o=0;o<t.length;o++){const u=t[o];if(u.source!=="user"||(r=u.extra)!=null&&r.is_skill_output)continue;const c=If(u);c&&(l++,a.push({turnNumber:l,stepId:u.step_id,preview:Uo(c.replace(/\n/g," "),fM)}))}return a}function pM({steps:t,subAgents:a,activeStepId:l,onNavigate:r,width:o,onResize:u,viewMode:c,flowPhases:h,activePhaseIdx:g,onPhaseNavigate:p}){const b=hM(t),x=b.length>=dM,_=a.length>0,v=c==="flow"&&h&&h.length>0,[S,T]=F.useState("prompts");if(!x&&!_&&!v)return null;const A=w=>{const C=document.getElementById(`subagent-${w}`);C&&C.scrollIntoView({behavior:"smooth",block:"start"})};return v?m.jsxs("div",{style:{width:o},className:"hidden xl:flex relative shrink-0 h-full flex-col border-l border-zinc-800 bg-zinc-900/50",children:[m.jsx(Bf,{side:"right",onResize:u}),m.jsx("div",{className:"shrink-0 px-3 pt-3 pb-2",children:m.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-zinc-300",children:[m.jsx(Y0,{className:"w-3.5 h-3.5"}),m.jsx("span",{className:"font-medium",children:"Phases"}),m.jsxs("span",{className:"text-zinc-500",children:["(",h.length,")"]})]})}),m.jsx("div",{className:"flex-1 overflow-y-auto px-3 py-3",children:m.jsx("div",{className:"space-y-1",children:h.map((w,C)=>{const z=g===C,q=D0[w.phase]||D0.mixed,K=mM[w.dominantCategory]||w.dominantCategory;return m.jsxs("button",{onClick:()=>p==null?void 0:p(C),className:`w-full text-left px-2 py-2 rounded-md transition-colors text-sm group ${z?"bg-cyan-500/15 border border-cyan-500/30":"hover:bg-zinc-800/60 border border-transparent"}`,children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx("span",{className:`w-2 h-2 rounded-full ${q.dot}`}),m.jsx("span",{className:`text-[11px] font-bold uppercase tracking-wider ${z?"text-cyan-300":q.text}`,children:w.phase})]}),m.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-zinc-400 pl-4",children:[m.jsxs("span",{children:[w.cards.length," step",w.cards.length!==1?"s":""]}),m.jsx("span",{className:"text-zinc-600",children:"·"}),m.jsxs("span",{children:[w.toolCount," tool",w.toolCount!==1?"s":""]}),w.toolCount>0&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-zinc-600",children:"·"}),m.jsx("span",{className:"text-zinc-500",children:K})]})]})]},C)})})})]}):m.jsxs("div",{style:{width:o},className:"hidden xl:flex relative shrink-0 h-full flex-col border-l border-zinc-800 bg-zinc-900/50",children:[m.jsx(Bf,{side:"right",onResize:u}),x&&_&&m.jsx("div",{className:"shrink-0 px-3 pt-3 pb-2",children:m.jsxs("div",{className:eb,children:[m.jsxs("button",{onClick:()=>T("prompts"),className:`${Ho} ${S==="prompts"?La:ja}`,children:[m.jsx(Zr,{className:"w-3 h-3"}),"Prompts"]}),m.jsxs("button",{onClick:()=>T("sub-agents"),className:`${Ho} ${S==="sub-agents"?La:ja}`,children:[m.jsx(jl,{className:"w-3 h-3"}),"Agents"]})]})}),m.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-3",children:[(S==="prompts"||!_)&&x&&m.jsxs("div",{children:[!_&&m.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-zinc-300 mb-3",children:[m.jsx(Zr,{className:"w-3.5 h-3.5"}),m.jsx("span",{className:"font-medium",children:"Prompts"}),m.jsxs("span",{className:"text-zinc-500",children:["(",b.length,")"]})]}),m.jsx("div",{className:"space-y-1",children:b.map(w=>{const C=w.stepId===l;return m.jsxs("button",{onClick:()=>r(w.stepId),className:`w-full text-left px-2 py-1.5 rounded-md transition-colors text-sm group ${C?"bg-cyan-500/15 border border-cyan-500/30":"hover:bg-zinc-800/60 border border-transparent"}`,children:[m.jsx("div",{className:"flex items-center gap-1.5 mb-0.5",children:m.jsxs("span",{className:`font-mono font-semibold ${C?"text-cyan-400":"text-zinc-400 group-hover:text-zinc-300"}`,children:["#",w.turnNumber]})}),m.jsx("p",{className:`line-clamp-2 leading-snug ${C?"text-cyan-200/80":"text-zinc-400 group-hover:text-zinc-300"}`,children:w.preview})]},w.stepId)})})]}),S==="sub-agents"&&_&&m.jsx("div",{children:m.jsx("div",{className:"space-y-1",children:a.map((w,C)=>{var K,D;const z=((K=w.steps)==null?void 0:K.length)??0,q=((D=w.final_metrics)==null?void 0:D.tool_call_count)??0;return m.jsxs("button",{onClick:()=>A(w.session_id),className:"w-full text-left px-2 py-1.5 rounded-md transition-colors text-sm group hover:bg-zinc-800/60 border border-transparent",children:[m.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[m.jsxs("span",{className:"font-mono font-semibold text-violet-400",children:["#",C+1]}),m.jsx("span",{className:"text-zinc-400 truncate",children:w.session_id.slice(0,12)})]}),m.jsxs("p",{className:"text-zinc-400 group-hover:text-zinc-300 leading-snug",children:[z," steps · ",q," tools"]}),w.first_message&&m.jsx("p",{className:"text-zinc-500 group-hover:text-zinc-400 line-clamp-1 leading-snug mt-0.5",children:Uo(w.first_message,60)})]},w.session_id)})})}),!x&&_&&m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-zinc-300 mb-3",children:[m.jsx(jl,{className:"w-3.5 h-3.5"}),m.jsx("span",{className:"font-medium",children:"Sub-Agents"}),m.jsxs("span",{className:"text-zinc-500",children:["(",a.length,")"]})]}),m.jsx("div",{className:"space-y-1",children:a.map((w,C)=>{var K,D;const z=((K=w.steps)==null?void 0:K.length)??0,q=((D=w.final_metrics)==null?void 0:D.tool_call_count)??0;return m.jsxs("button",{onClick:()=>A(w.session_id),className:"w-full text-left px-2 py-1.5 rounded-md transition-colors text-sm group hover:bg-zinc-800/60 border border-transparent",children:[m.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[m.jsxs("span",{className:"font-mono font-semibold text-violet-400",children:["#",C+1]}),m.jsx("span",{className:"text-zinc-400 truncate",children:w.session_id.slice(0,12)})]}),m.jsxs("p",{className:"text-zinc-400 group-hover:text-zinc-300 leading-snug",children:[z," steps · ",q," tools"]}),w.first_message&&m.jsx("p",{className:"text-zinc-500 group-hover:text-zinc-400 line-clamp-1 leading-snug mt-0.5",children:Uo(w.first_message,60)})]},w.session_id)})})]})]})]})}const L0=120,gM={Read:"file_read",read_file:"file_read",cat:"file_read",Glob:"search",glob:"search",Grep:"search",grep:"search",find:"search",Edit:"file_write",Write:"file_write",write_file:"file_write",NotebookEdit:"file_write",MultiEdit:"file_write",apply_patch:"file_write","apply-patch":"file_write",Bash:"shell",bash:"shell",shell:"shell",execute_command:"shell",WebSearch:"web",WebFetch:"web",web_search:"web",Agent:"agent",Task:"agent",Skill:"agent",TaskCreate:"task",TaskUpdate:"task",TaskList:"task",TaskGet:"task"};function j0(t,a){return t.length<=a?t:t.slice(0,a-1)+"…"}function bM(t){if(!t)return"";if(typeof t=="string")return t.slice(0,300);try{return JSON.stringify(t,null,2).slice(0,400)}catch{return String(t).slice(0,300)}}function Mx(t,a,l){const r=xM(t),o=yM(r,l),u=_M(a);return{phases:o,dependencies:u}}function xM(t){const a=[];let l=0;for(const r of t){const o=l++;if(r.source==="user"){const u=Il(r.message);if(!u)continue;a.push({type:"user",data:{id:`user-${r.step_id}`,label:j0(u,L0),detail:u,stepIndex:o}})}if(r.source==="agent"){const u=Il(r.message),c=r.tool_calls.length>0;if(!u&&!c)continue;const h=r.tool_calls.map(g=>({id:`tool-${g.tool_call_id}`,name:g.function_name,category:gM[g.function_name]||"other",detail:`${g.function_name}
${bM(g.arguments)}`,toolCallId:g.tool_call_id}));a.push({type:"agent",data:{id:`agent-${r.step_id}`,label:u?j0(u,L0):"Agent processing…",detail:u||"(tool calls only)",stepIndex:o,tools:h}})}}return a}function Of(t){const a=new Map;let l=0;for(const u of t)if(u.type==="agent")for(const c of u.data.tools)l++,a.set(c.category,(a.get(c.category)||0)+1);let r="other",o=0;for(const[u,c]of a)c>o&&(o=c,r=u);return{toolCount:l,dominantCategory:r}}function yM(t,a){if(a.length===0){if(t.length===0)return[];const{toolCount:u,dominantCategory:c}=Of(t);return[{phase:"mixed",cards:t,toolCount:u,dominantCategory:c}]}const l=[],r=new Set;for(const u of a){const c=t.filter(h=>{const g=h.data.stepIndex;return g>=u.start_index&&g<=u.end_index});if(c.length>0){const{toolCount:h,dominantCategory:g}=Of(c);l.push({phase:u.phase,cards:c,toolCount:h,dominantCategory:g}),c.forEach(p=>r.add(p.data.stepIndex))}}const o=t.filter(u=>!r.has(u.data.stepIndex));if(o.length>0){const{toolCount:u,dominantCategory:c}=Of(o);l.push({phase:"mixed",cards:o,toolCount:u,dominantCategory:c})}return l}function _M(t){const a=new Map;if(!t)return a;for(const l of t.edges){if(l.relation==="sequential")continue;const r=a.get(l.source_tool_call_id)||[];r.push({targetToolCallId:l.target_tool_call_id,relation:l.relation,sharedResource:l.shared_resource||void 0}),a.set(l.source_tool_call_id,r)}return a}const Ko={file_read:{bg:"bg-blue-500/20",ring:"ring-blue-400/60",text:"text-blue-300",label:"read"},file_write:{bg:"bg-emerald-500/20",ring:"ring-emerald-400/60",text:"text-emerald-300",label:"write"},shell:{bg:"bg-amber-500/20",ring:"ring-amber-400/60",text:"text-amber-300",label:"shell"},search:{bg:"bg-sky-500/20",ring:"ring-sky-400/60",text:"text-sky-300",label:"search"},web:{bg:"bg-orange-500/20",ring:"ring-orange-400/60",text:"text-orange-300",label:"web"},agent:{bg:"bg-violet-500/20",ring:"ring-violet-400/60",text:"text-violet-300",label:"agent"},task:{bg:"bg-rose-500/20",ring:"ring-rose-400/60",text:"text-rose-300",label:"task"},other:{bg:"bg-zinc-500/20",ring:"ring-zinc-400/60",text:"text-zinc-400",label:"other"}},B0={exploration:{border:"border-l-blue-400",label:"text-blue-400",dot:"bg-blue-400",bg:"bg-blue-500/[0.03]"},implementation:{border:"border-l-emerald-400",label:"text-emerald-400",dot:"bg-emerald-400",bg:"bg-emerald-500/[0.03]"},debugging:{border:"border-l-red-400",label:"text-red-400",dot:"bg-red-400",bg:"bg-red-500/[0.03]"},verification:{border:"border-l-amber-400",label:"text-amber-400",dot:"bg-amber-400",bg:"bg-amber-500/[0.03]"},planning:{border:"border-l-violet-400",label:"text-violet-400",dot:"bg-violet-400",bg:"bg-violet-500/[0.03]"},mixed:{border:"border-l-zinc-500",label:"text-zinc-400",dot:"bg-zinc-500",bg:"bg-zinc-500/[0.02]"}},vM={read_before_write:"read → write",search_then_read:"search → read",write_then_test:"edit → test",multi_edit:"re-edit",error_retry:"retry"};function EM({steps:t,flowData:a}){const{tip:l,show:r,move:o,hide:u}=Cd(),[c,h]=F.useState(null),g=F.useMemo(()=>Mx(t,a.tool_graph,a.phase_segments),[t,a]),p=F.useMemo(()=>{const v=new Map;for(const[S,T]of g.dependencies)for(const A of T)v.has(S)||v.set(S,new Set),v.get(S).add(A.targetToolCallId),v.has(A.targetToolCallId)||v.set(A.targetToolCallId,new Set),v.get(A.targetToolCallId).add(S);return v},[g.dependencies]),b=F.useMemo(()=>{const v=new Map;for(const[S,T]of g.dependencies)for(const A of T){const w=vM[A.relation]||A.relation;v.set(`${S}->${A.targetToolCallId}`,w),v.set(`${A.targetToolCallId}->${S}`,w)}return v},[g.dependencies]),x=F.useCallback(v=>{var S;return c?v===c?!0:((S=p.get(c))==null?void 0:S.has(v))||!1:!1},[c,p]),_=F.useCallback(v=>!c||v===c?null:b.get(`${c}->${v}`)||null,[c,b]);return m.jsxs("div",{className:"max-w-3xl mx-auto pb-8",children:[g.phases.map((v,S)=>m.jsxs("div",{id:`flow-phase-${S}`,children:[m.jsx(SM,{phase:v,children:v.cards.map((T,A)=>m.jsxs("div",{children:[A>0&&m.jsx(NM,{}),T.type==="user"?m.jsx(wM,{label:T.data.label,detail:T.data.detail,onHover:r,onMove:o,onLeave:u}):m.jsx(kM,{label:T.data.label,detail:T.data.detail,tools:T.data.tools,hoveredToolId:c,onToolEnter:h,onToolLeave:()=>h(null),isHighlighted:x,getDepLabel:_,onHover:r,onMove:o,onLeave:u})]},T.data.id))}),S<g.phases.length-1&&m.jsx("div",{className:"flex items-center pl-6 py-1",children:m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx("div",{className:"w-px h-2 bg-zinc-700/30"}),m.jsx("div",{className:"w-1 h-1 rounded-full bg-zinc-600/40"}),m.jsx("div",{className:"w-px h-2 bg-zinc-700/30"})]})})]},S)),m.jsx(Md,{state:l})]})}function SM({phase:t,children:a}){const l=B0[t.phase]||B0.mixed;return m.jsx("div",{className:`rounded-lg ${l.bg}`,children:m.jsxs("div",{className:`border-l-[3px] ${l.border} pl-5 pr-3 py-4`,children:[m.jsxs("div",{className:"flex items-center gap-2.5 mb-4",children:[m.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${l.dot} ring-2 ring-current/10`}),m.jsx("span",{className:`text-[11px] font-bold uppercase tracking-[0.14em] ${l.label}`,children:t.phase}),m.jsxs("span",{className:"text-[10px] text-zinc-500 font-medium",children:[t.cards.length," step",t.cards.length!==1?"s":""]})]}),m.jsx("div",{children:a})]})})}function NM(){return m.jsx("div",{className:"flex items-center justify-center py-1.5",children:m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx("div",{className:"w-px h-2.5 bg-zinc-700/40"}),m.jsx("div",{className:"w-[5px] h-[5px] rounded-full border border-zinc-600/60 bg-zinc-800"}),m.jsx("div",{className:"w-px h-2.5 bg-zinc-700/40"})]})})}function wM({label:t,detail:a,onHover:l,onMove:r,onLeave:o}){return m.jsx("div",{className:"group relative rounded-lg border border-indigo-500/30 bg-indigo-950/30 hover:border-indigo-400/50 hover:bg-indigo-950/40 transition-all",onMouseEnter:u=>l(u,a),onMouseMove:r,onMouseLeave:o,children:m.jsxs("div",{className:"px-4 py-3 flex items-start gap-3",children:[m.jsx("span",{className:"shrink-0 mt-0.5 w-6 h-6 rounded-md bg-indigo-500/25 border border-indigo-400/20 flex items-center justify-center",children:m.jsx("svg",{className:"w-3 h-3 text-indigo-300",viewBox:"0 0 16 16",fill:"currentColor",children:m.jsx("path",{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10z"})})}),m.jsx("p",{className:"text-[13px] leading-relaxed text-indigo-100 min-w-0 break-words",children:t})]})})}function kM({label:t,detail:a,tools:l,hoveredToolId:r,onToolEnter:o,onToolLeave:u,isHighlighted:c,getDepLabel:h,onHover:g,onMove:p,onLeave:b}){const x=F.useMemo(()=>{const _=new Map;for(const S of l){const T=_.get(S.category)||[];T.push(S),_.set(S.category,T)}const v=["file_read","search","file_write","shell","web","agent","task","other"];return[..._.entries()].sort(([S],[T])=>(v.indexOf(S)===-1?99:v.indexOf(S))-(v.indexOf(T)===-1?99:v.indexOf(T)))},[l]);return m.jsxs("div",{className:"rounded-lg border border-cyan-500/20 bg-cyan-950/20 hover:border-cyan-400/35 transition-colors",children:[m.jsxs("div",{className:"px-4 py-3 flex items-start gap-3",onMouseEnter:_=>g(_,a),onMouseMove:p,onMouseLeave:b,children:[m.jsx("span",{className:"shrink-0 mt-0.5 w-6 h-6 rounded-md bg-cyan-500/20 border border-cyan-400/15 flex items-center justify-center",children:m.jsxs("svg",{className:"w-3 h-3 text-cyan-300",viewBox:"0 0 16 16",fill:"currentColor",children:[m.jsx("path",{d:"M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zM3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.58 26.58 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062v1.157a.933.933 0 0 1-.765.935c-.845.147-2.34.346-4.235.346-1.895 0-3.39-.2-4.235-.346A.933.933 0 0 1 3 9.219V8.062zm4.542-.827a.25.25 0 0 0-.217.068l-.92.9a25.14 25.14 0 0 1-1.871-.183.25.25 0 0 0-.068.495c.55.076 1.232.149 2.02.193a.25.25 0 0 0 .189-.071l.754-.736.847 1.71a.25.25 0 0 0 .404.062l.932-.97a25.286 25.286 0 0 0 1.922-.188.25.25 0 0 0-.068-.495c-.538.074-1.207.145-1.98.189a.25.25 0 0 0-.166.076l-.754.785-.842-1.7a.25.25 0 0 0-.182-.135z"}),m.jsx("path",{d:"M8.5 1.866a1 1 0 1 0-1 0V3h-2A4.5 4.5 0 0 0 1 7.5V8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1v-.5A4.5 4.5 0 0 0 10.5 3h-2V1.866zM14 7.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.5A3.5 3.5 0 0 1 5.5 4h5A3.5 3.5 0 0 1 14 7.5z"})]})}),m.jsx("p",{className:"text-[13px] leading-relaxed text-cyan-100 min-w-0 break-words",children:t})]}),l.length>0&&m.jsxs("div",{className:"border-t border-cyan-500/10 mx-3 px-1 py-2.5",children:[m.jsxs("div",{className:"flex items-center gap-1.5 mb-2 px-1",children:[m.jsxs("span",{className:"text-[10px] font-semibold text-zinc-400 uppercase tracking-wider",children:[l.length," tool",l.length!==1?"s":""]}),m.jsx("span",{className:"text-zinc-700 text-[10px]",children:"·"}),m.jsx("div",{className:"flex gap-1.5",children:x.map(([_,v])=>{const S=Ko[_]||Ko.other;return m.jsxs("span",{className:`inline-flex items-center gap-1 text-[10px] ${S.text}`,title:`${v.length} ${_.replace(/_/g," ")}`,children:[m.jsx("span",{className:`w-2 h-2 rounded-sm ${S.bg} border border-current/20`}),m.jsx("span",{className:"opacity-80",children:S.label}),m.jsx("span",{className:"font-mono font-semibold",children:v.length})]},_)})})]}),m.jsx("div",{className:"flex flex-wrap gap-1.5 px-1",children:l.map(_=>m.jsx(TM,{tool:_,highlighted:c(_.toolCallId),depLabel:h(_.toolCallId),isAnyHovered:!!r,onEnter:()=>o(_.toolCallId),onLeave:u,onHover:g,onMove:p,onHoverLeave:b},_.id))})]})]})}function TM({tool:t,highlighted:a,depLabel:l,isAnyHovered:r,onEnter:o,onLeave:u,onHover:c,onMove:h,onHoverLeave:g}){const p=Ko[t.category]||Ko.other,b=r&&!a,x=F.useMemo(()=>{const _=t.detail.split(`
`),v=_[0]||t.name,S=_.slice(1).join(`
`).trim();return S?m.jsxs("div",{children:[m.jsx("div",{className:"font-mono text-[12px] font-semibold text-cyan-300 mb-1.5",children:v}),m.jsx("pre",{className:"font-mono text-[11px] text-zinc-300 leading-snug whitespace-pre-wrap break-all m-0",children:S})]}):m.jsx("span",{className:"font-mono text-[12px] text-cyan-300",children:v})},[t.detail,t.name]);return m.jsxs("span",{className:`
        relative inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-mono
        border transition-all duration-150 cursor-default
        ${p.bg} ${p.text}
        ${a?`ring-2 ${p.ring} border-transparent brightness-125`:"border-transparent"}
        ${b?"opacity-25":"opacity-100"}
        hover:opacity-100 hover:brightness-125
      `,onMouseEnter:_=>{o(),c(_,x)},onMouseMove:h,onMouseLeave:()=>{u(),g()},children:[t.name,l&&m.jsx("span",{className:"absolute -top-2.5 left-1/2 -translate-x-1/2 px-1.5 py-px rounded-full text-[8px] font-sans font-bold bg-zinc-900 border border-zinc-500 text-zinc-200 whitespace-nowrap shadow-lg",children:l})]})}function Cx({sessionId:t,sharedTrajectories:a,shareToken:l}){const{fetchWithToken:r}=ss(),[o,u]=F.useState([]),[c,h]=F.useState(!0),[g,p]=F.useState(""),[b,x]=F.useState(null),[_,v]=F.useState(224),[S,T]=F.useState(null),[A,w]=F.useState("idle"),[C,z]=F.useState("timeline"),[q,K]=F.useState(null),[D,Z]=F.useState(!1),oe=F.useRef(null),de=F.useRef(!1),U=!!a,re=160,ae=400,ie=F.useCallback(se=>{v(Re=>Math.min(ae,Math.max(re,Re+se)))},[]);F.useEffect(()=>{if(x(null),T(null),K(null),z("timeline"),a){u(a),h(!1);return}h(!0),p(""),u([]),r(`/api/sessions/${t}`).then(se=>{if(!se.ok)throw new Error(`Failed to load session: ${se.status}`);return se.json()}).then(se=>{u(se)}).catch(se=>p(se.message)).finally(()=>h(!1))},[t,r,a]),F.useEffect(()=>{!t||c||U||r(`/api/analysis/sessions/${t}/stats`).then(se=>se.ok?se.json():null).then(se=>{(se==null?void 0:se.cost_usd)!=null&&T(se.cost_usd)}).catch(()=>{})},[t,c,r]),F.useEffect(()=>{if(C!=="flow"||q||D||!t)return;Z(!0);const se=U&&l?`/api/shares/${l}/flow`:`/api/sessions/${t}/flow`;r(se).then(Re=>Re.ok?Re.json():null).then(Re=>{Re&&K(Re)}).catch(()=>{}).finally(()=>Z(!1))},[C,q,D,t,r,U,l]);const Y=F.useMemo(()=>o.find(se=>!se.parent_trajectory_ref)??o[0]??null,[o]),H=F.useMemo(()=>o.filter(se=>!!se.parent_trajectory_ref).sort((se,Re)=>{const lt=se.timestamp?new Date(se.timestamp).getTime():0,We=Re.timestamp?new Date(Re.timestamp).getTime():0;return lt-We}),[o]),L=F.useMemo(()=>{const se=new Map,Re=[],lt=[];for(const We of H){let It=!1;if(Y!=null&&Y.steps){for(const Ce of Y.steps)if(Ce.observation){for(const Tt of Ce.observation.results)if(Tt.subagent_trajectory_ref){for(const be of Tt.subagent_trajectory_ref)if(be.session_id===We.session_id){const Ue=se.get(Ce.step_id)||[];Ue.push(We),se.set(Ce.step_id,Ue),It=!0;break}if(It)break}if(It)break}}It||lt.push(We)}for(const We of lt){const It=We.timestamp?new Date(We.timestamp).getTime():NaN;if(!isNaN(It)&&(Y!=null&&Y.steps)){let Ce=null;for(const Tt of Y.steps){if(!Tt.timestamp)continue;if(new Date(Tt.timestamp).getTime()<=It)Ce=Tt.step_id;else break}if(Ce){const Tt=se.get(Ce)||[];Tt.push(We),se.set(Ce,Tt);continue}}Re.push(We)}return{map:se,orphans:Re}},[Y,H]),X=(Y==null?void 0:Y.steps)||[],ne=F.useMemo(()=>X.filter(se=>se.source==="user"&&If(se)).map(se=>se.step_id),[X]),le=F.useMemo(()=>!q||C!=="flow"?void 0:Mx(X,q.tool_graph,q.phase_segments).phases,[q,C,X]),[k,M]=F.useState(null),B=800,N=F.useCallback(se=>{const Re=document.getElementById(`flow-phase-${se}`);Re&&(M(se),Re.scrollIntoView({behavior:"smooth",block:"start"}))},[]);F.useEffect(()=>{if(!oe.current||ne.length<2)return;const se=new IntersectionObserver(Re=>{if(de.current)return;let lt=null;for(const We of Re)We.isIntersecting&&(!lt||We.boundingClientRect.top<lt.boundingClientRect.top)&&(lt=We);lt&&x(lt.target.id.replace("step-",""))},{root:oe.current,rootMargin:"-10% 0px -80% 0px",threshold:0});for(const Re of ne){const lt=document.getElementById(`step-${Re}`);lt&&se.observe(lt)}return()=>se.disconnect()},[ne]);const ce=F.useCallback(se=>{const Re=document.getElementById(`step-${se}`);Re&&(de.current=!0,x(se),Re.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{de.current=!1},B))},[]);if(c)return m.jsx("div",{className:"flex items-center justify-center h-full",children:m.jsxs("div",{className:"flex flex-col items-center gap-5",children:[m.jsxs("div",{className:"relative flex items-center justify-center",children:[m.jsx("div",{className:"absolute w-24 h-24 bg-cyan-500/10 rounded-full blur-2xl animate-pulse"}),m.jsx("div",{className:"w-16 h-16 rounded-full border-[3px] border-zinc-800"}),m.jsx("div",{className:"absolute w-16 h-16 rounded-full border-[3px] border-transparent border-t-cyan-400 animate-spin"})]}),m.jsxs("div",{className:"text-center space-y-1",children:[m.jsx("p",{className:"text-base font-medium text-zinc-200",children:"Loading session"}),m.jsx("p",{className:"text-xs text-zinc-500",children:"Parsing trajectory data…"})]})]})});if(g)return m.jsx("div",{className:"flex items-center justify-center h-full p-4",children:m.jsxs("div",{className:"text-center bg-rose-900/20 border border-rose-800 rounded-lg p-6 max-w-md",children:[m.jsx("p",{className:"text-sm font-semibold text-rose-300 mb-2",children:"Failed to load session"}),m.jsx("p",{className:"text-xs text-rose-400 mb-4 font-mono break-all",children:g}),m.jsx("button",{onClick:()=>window.location.reload(),className:"px-3 py-1 bg-rose-700/50 hover:bg-rose-700 rounded text-xs text-rose-200 transition",children:"Retry"})]})});const pe=async()=>{w("sharing");try{const se=await r("/api/shares",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:t})});if(!se.ok)throw new Error(`Failed to create share: ${se.status}`);const Re=await se.json();await navigator.clipboard.writeText(Re.url),w("copied"),setTimeout(()=>w("idle"),2e3)}catch(se){console.error("Share failed:",se),w("idle")}};if(!Y)return null;const he=Y.final_metrics,ze=X.filter(se=>{var Re;return se.source==="user"&&!((Re=se.extra)!=null&&Re.is_skill_output)&&If(se)}).length,Le=X.filter(se=>{var Re;return se.source==="user"&&((Re=se.extra)==null?void 0:Re.is_skill_output)}).length,qe=((he==null?void 0:he.total_prompt_tokens)||0)+((he==null?void 0:he.total_completion_tokens)||0),ft=se=>se.source==="user"?typeof se.message=="string"?!!se.message.trim():se.message.length>0:se.source==="agent"||se.source==="system";return m.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[m.jsx("div",{className:"shrink-0 bg-zinc-900/95 border-b border-zinc-800 px-6 py-4",children:m.jsxs("div",{className:"max-w-7xl mx-auto",children:[m.jsxs("div",{className:"flex items-start justify-between mb-3",children:[m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(ri,{icon:m.jsx(K0,{className:"w-3 h-3"}),label:Y.session_id.slice(0,8),color:"text-zinc-300",tooltip:`Session ID: ${Y.session_id}`}),m.jsx("h2",{className:"text-sm font-semibold text-zinc-100 truncate",children:Y.first_message||"Session"})]}),m.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 mt-2",children:[Y.agent.model_name&&m.jsx(ri,{icon:m.jsx(m_,{className:"w-3 h-3"}),label:`${Y.agent.name}@${Y.agent.model_name}`,color:"text-amber-300",tooltip:"Agent model used for this session"}),Y.timestamp&&m.jsx(ri,{icon:m.jsx(n_,{className:"w-3 h-3"}),label:MM(Y.timestamp),color:"text-zinc-200",tooltip:"Session start time"}),he&&m.jsx(ri,{icon:m.jsx(rd,{className:"w-3 h-3"}),label:zi(he.duration),color:"text-cyan-400",tooltip:"Total wall-clock duration of this session"}),m.jsx(ri,{icon:m.jsx(Zr,{className:"w-3 h-3"}),label:`${ze} prompt${ze!==1?"s":""}`,color:"text-blue-400",tooltip:"User prompts — messages typed by the human operator"}),Le>0&&m.jsx(ri,{icon:m.jsx(W0,{className:"w-3 h-3"}),label:`${Le} skill${Le!==1?"s":""}`,color:"text-amber-300",tooltip:"Skill invocations — reusable prompts auto-injected by the agent"}),he&&m.jsxs(m.Fragment,{children:[m.jsx(ri,{icon:m.jsx(od,{className:"w-3 h-3"}),label:`${he.tool_call_count} tools`,color:"text-amber-400",tooltip:"Total tool calls made by the agent (Bash, Read, Edit, etc.)"}),he.total_steps&&m.jsx(ri,{icon:m.jsx(V0,{className:"w-3 h-3"}),label:`${he.total_steps} steps`,color:"text-zinc-200",tooltip:"Total conversation steps including user, agent, and system turns"})]}),H.length>0&&m.jsx(ri,{icon:m.jsx(jl,{className:"w-3 h-3"}),label:`${H.length} sub-agent${H.length!==1?"s":""}`,color:"text-violet-400",tooltip:"Sub-agent tasks spawned during this session"}),Y.project_path&&m.jsx(ri,{icon:m.jsx(Xr,{className:"w-3 h-3"}),label:Dl(Y.project_path),color:"text-zinc-200",tooltip:Y.project_path})]})]}),m.jsxs("div",{className:"flex items-center gap-1 shrink-0 ml-3",children:[m.jsxs("div",{className:"flex rounded-md border border-zinc-700 mr-2",children:[m.jsxs("button",{onClick:()=>z("timeline"),className:`flex items-center gap-1 px-2.5 py-1.5 text-xs rounded-l-md transition ${C==="timeline"?La:ja}`,children:[m.jsx(C_,{className:"w-3 h-3"}),"Timeline"]}),m.jsxs("button",{onClick:()=>z("flow"),className:`flex items-center gap-1 px-2.5 py-1.5 text-xs rounded-r-md transition ${C==="flow"?La:ja}`,children:[m.jsx(Y0,{className:"w-3 h-3"}),"Flow"]})]}),!U&&m.jsx("button",{onClick:pe,disabled:A==="sharing",className:"p-2 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded transition text-xs disabled:opacity-50",title:A==="copied"?"Link copied!":"Share session",children:A==="copied"?m.jsx(ld,{className:"w-4 h-4 text-emerald-400"}):A==="sharing"?m.jsx(Da,{className:"w-4 h-4 animate-spin"}):m.jsx(Q0,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>{const se=document.createElement("a");se.href=`/api/sessions/${t}/export`,se.download=`vibelens-${t.slice(0,8)}.json`,document.body.appendChild(se),se.click(),document.body.removeChild(se)},className:"p-2 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded transition text-xs",title:"Download session",children:m.jsx(Io,{className:"w-4 h-4"})})]})]}),he&&(he.total_prompt_tokens!=null||he.total_completion_tokens!=null)&&m.jsxs("div",{className:`grid ${S!=null?"grid-cols-6":"grid-cols-5"} gap-2 text-xs`,children:[m.jsx(qr,{label:"Input",value:he.total_prompt_tokens||0,color:"text-cyan-300",tooltip:"Prompt tokens sent to the model"}),m.jsx(qr,{label:"Output",value:he.total_completion_tokens||0,color:"text-cyan-300",tooltip:"Completion tokens generated by the model"}),m.jsx(qr,{label:"Cache Read",value:he.total_cache_read||0,color:"text-green-300",tooltip:"Tokens served from prompt cache (reduced cost)"}),m.jsx(qr,{label:"Cache Write",value:he.total_cache_write||0,color:"text-violet-300",tooltip:"Tokens written to prompt cache for future reuse"}),m.jsx(qr,{label:"Total",value:qe,color:"text-amber-300",tooltip:"Total tokens (input + output)"}),S!=null&&m.jsx(AM,{value:S})]})]})}),m.jsxs("div",{className:"flex-1 flex min-h-0",children:[m.jsx("div",{ref:oe,className:"flex-1 overflow-y-auto",children:C==="timeline"?m.jsx("div",{className:"max-w-5xl mx-auto px-4 py-6 space-y-3",children:X.length===0?m.jsxs("div",{className:"text-center text-zinc-500 text-sm py-8",children:[m.jsx(q0,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),m.jsx("p",{children:"No steps to display"})]}):m.jsxs(m.Fragment,{children:[m.jsx(cM,{entries:X.filter(se=>{const Re=ft(se),lt=L.map.get(se.step_id);return Re||!!lt}).map(se=>{const Re=ft(se),lt=L.map.get(se.step_id);return{step:se,content:m.jsxs("div",{id:`step-${se.step_id}`,style:{scrollMarginTop:"1rem"},children:[Re&&m.jsx(Tx,{step:se}),lt==null?void 0:lt.map(We=>m.jsx("div",{id:`subagent-${We.session_id}`,className:"mt-2",children:m.jsx(Wf,{trajectory:We,allTrajectories:o})},We.session_id))]})}}),sessionStartMs:Y.timestamp?new Date(Y.timestamp).getTime():null,sessionStartTimestamp:Y.timestamp}),L.orphans.map(se=>m.jsx("div",{id:`subagent-${se.session_id}`,children:m.jsx(Wf,{trajectory:se,allTrajectories:o})},se.session_id))]})}):D?m.jsx("div",{className:"flex items-center justify-center h-full",children:m.jsxs("div",{className:"text-center",children:[m.jsx(Da,{className:"w-8 h-8 text-cyan-500 animate-spin mx-auto mb-2"}),m.jsx("p",{className:"text-sm text-zinc-400",children:"Building flow diagram..."})]})}):q?m.jsx("div",{className:"max-w-5xl mx-auto px-4 py-6",children:m.jsx(EM,{steps:X,flowData:q})}):m.jsx("div",{className:"flex items-center justify-center h-full",children:m.jsx("p",{className:"text-sm text-zinc-500",children:"Flow data unavailable"})})}),m.jsx(pM,{steps:X,subAgents:H,activeStepId:b,onNavigate:ce,width:_,onResize:ie,viewMode:C,flowPhases:le,activePhaseIdx:k,onPhaseNavigate:N})]})]})}function ri({icon:t,label:a,color:l,tooltip:r}){const[o,u]=F.useState(!1),c=F.useRef(null);return m.jsxs("span",{ref:c,className:`relative inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-zinc-800 border border-zinc-700/50 text-[11px] ${l}`,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[t,m.jsx("span",{children:a}),r&&o&&m.jsx("span",{className:"absolute left-0 top-full mt-1.5 z-[100] px-2.5 py-1.5 rounded-md bg-zinc-950 border border-zinc-700 text-[11px] text-zinc-300 whitespace-nowrap shadow-lg pointer-events-none",children:r})]})}function qr({label:t,value:a,color:l,tooltip:r}){const[o,u]=F.useState(!1);return m.jsxs("div",{className:"relative bg-zinc-800/50 rounded px-2 py-1.5",onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[m.jsx("p",{className:tb,children:t}),m.jsx("p",{className:`${l} font-mono`,children:Rl(a)}),r&&o&&m.jsx("span",{className:"absolute left-1/2 -translate-x-1/2 top-full mt-1 z-[100] px-2.5 py-1.5 rounded-md bg-zinc-950 border border-zinc-700 text-[11px] text-zinc-300 whitespace-nowrap shadow-lg pointer-events-none",children:r})]})}function AM({value:t}){const[a,l]=F.useState(!1);return m.jsxs("div",{className:"relative bg-zinc-800/50 rounded px-2 py-1.5",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[m.jsx("p",{className:tb,children:"Est. Cost"}),m.jsx("p",{className:"text-emerald-300 font-mono",children:Qn(t)}),a&&m.jsx("span",{className:"absolute left-1/2 -translate-x-1/2 top-full mt-1 z-[100] px-2.5 py-1.5 rounded-md bg-zinc-950 border border-zinc-700 text-[11px] text-zinc-300 whitespace-nowrap shadow-lg pointer-events-none",children:"Estimated cost based on API pricing"})]})}function MM(t){const a=new Date(t);return isNaN(a.getTime())?t:a.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function CM({shareToken:t}){const{fetchWithToken:a}=ss(),[l,r]=F.useState(null),[o,u]=F.useState(!0),[c,h]=F.useState("");if(F.useEffect(()=>{u(!0),h(""),a(`/api/shares/${t}`).then(p=>{if(!p.ok)throw new Error(p.status===404?"Share not found or has been revoked":`Failed to load: ${p.status}`);return p.json()}).then(p=>{if(!p.length)throw new Error("Share contains no session data");r(p)}).catch(p=>h(p.message)).finally(()=>u(!1))},[t,a]),o)return m.jsx("div",{className:"flex items-center justify-center h-full",children:m.jsxs("div",{className:"text-center",children:[m.jsx(Da,{className:"w-8 h-8 text-cyan-500 animate-spin mx-auto mb-2"}),m.jsx("p",{className:"text-sm text-zinc-400",children:"Loading shared session..."})]})});if(c)return m.jsx("div",{className:"flex items-center justify-center h-full p-4",children:m.jsxs("div",{className:"text-center bg-rose-900/20 border border-rose-800 rounded-lg p-6 max-w-md",children:[m.jsx("p",{className:"text-sm font-semibold text-rose-300 mb-2",children:"Failed to load shared session"}),m.jsx("p",{className:"text-xs text-rose-400 font-mono break-all",children:c})]})});if(!(l!=null&&l.length))return null;const g=l[0].session_id;return m.jsx(Cx,{sessionId:g,sharedTrajectories:l,shareToken:t})}const OM=[{type:"claude_code",label:"Claude Code"},{type:"codex",label:"Codex CLI"},{type:"gemini",label:"Gemini CLI"}],zM=[{platform:"macos",label:"macOS"},{platform:"linux",label:"Linux"},{platform:"windows",label:"Windows"}],RM="claude_code",DM="macos";function LM({onClose:t,onComplete:a}){const{fetchWithToken:l,sessionToken:r,maxZipBytes:o}=ss(),u=Math.round(o/(1024*1024)),[c,h]=F.useState("select"),[g,p]=F.useState(RM),[b,x]=F.useState(DM),[_,v]=F.useState(null),[S,T]=F.useState(!1),[A,w]=F.useState(null),[C,z]=F.useState(!1),[q,K]=F.useState(!1),[D,Z]=F.useState(0),[oe,de]=F.useState("sending"),[U,re]=F.useState(null),ae=F.useRef(null);F.useEffect(()=>{c==="upload"&&(T(!0),l(`/api/upload/commands?agent_type=${g}&os_platform=${b}`).then(le=>{if(!le.ok)throw new Error(`HTTP ${le.status}`);return le.json()}).then(le=>v(le)).catch(()=>v({command:"# Failed to load command",description:""})).finally(()=>T(!1)))},[c,g,b,l]);const ie=A?A.size>o:!1,Y=F.useCallback(le=>{le.preventDefault(),z(!1),re(null);const k=le.dataTransfer.files[0];k&&k.name.toLowerCase().endsWith(".zip")&&w(k)},[]),H=F.useCallback(le=>{var M;re(null);const k=(M=le.target.files)==null?void 0:M[0];k&&k.name.toLowerCase().endsWith(".zip")&&w(k),le.target.value=""},[]),L=F.useCallback(()=>{if(!A)return;K(!0),re(null),Z(0),de("sending");const le=new FormData;le.append("file",A),le.append("agent_type",g);const k=new XMLHttpRequest;k.open("POST","/api/upload/zip"),k.setRequestHeader("X-Session-Token",r),k.upload.onprogress=M=>{M.lengthComputable&&Z(Math.round(M.loaded/M.total*100))},k.upload.onload=()=>{de("processing")},k.onload=()=>{try{const M=JSON.parse(k.responseText);k.status>=200&&k.status<300?re(M):re({files_received:1,sessions_parsed:0,steps_stored:0,skipped:0,errors:[{filename:A.name,error:M.detail||`HTTP ${k.status}`}]})}catch{re({files_received:1,sessions_parsed:0,steps_stored:0,skipped:0,errors:[{filename:A.name,error:k.responseText||`HTTP ${k.status}`}]})}K(!1)},k.onerror=()=>{re({files_received:1,sessions_parsed:0,steps_stored:0,skipped:0,errors:[{filename:A.name,error:"Network error"}]}),K(!1)},k.send(le)},[A,g,r]),X=F.useCallback(()=>{U&&U.sessions_parsed>0&&a(),t()},[U,t,a]),ne=U!==null;return m.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[m.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:q?void 0:t}),m.jsxs("div",{className:"relative bg-zinc-900 border border-zinc-700 rounded-lg shadow-2xl w-full max-w-lg mx-4",children:[m.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-zinc-800",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[c==="upload"&&!q&&m.jsx("button",{onClick:()=>h("select"),className:"text-zinc-500 hover:text-zinc-300 transition",children:m.jsx(Q1,{className:"w-4 h-4"})}),m.jsx("h2",{className:"text-sm font-semibold text-zinc-100",children:"Upload Conversation Data"})]}),m.jsx("button",{onClick:t,disabled:q,className:"text-zinc-500 hover:text-zinc-300 transition disabled:opacity-50",children:m.jsx(Hl,{className:"w-4 h-4"})})]}),m.jsxs("div",{className:"px-5 py-5",children:[c==="select"&&m.jsxs("div",{className:"space-y-5",children:[m.jsx("p",{className:"text-sm text-zinc-300",children:"Which agent and OS are you using?"}),m.jsx(I0,{label:"Agent",options:OM.map(le=>({value:le.type,label:le.label})),selected:g,onSelect:le=>p(le)}),m.jsx(I0,{label:"Your OS",options:zM.map(le=>({value:le.platform,label:le.label})),selected:b,onSelect:le=>x(le)}),m.jsx("div",{className:"flex justify-end pt-1",children:m.jsxs("button",{onClick:()=>h("upload"),className:"flex items-center gap-1.5 px-4 py-1.5 text-xs text-white bg-violet-600 hover:bg-violet-500 rounded transition",children:["Next",m.jsx(Di,{className:"w-3.5 h-3.5"})]})})]}),c==="upload"&&m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"space-y-1.5",children:[m.jsx("p",{className:"text-sm text-zinc-300",children:"Run this command in your terminal, then upload the zip."}),(_==null?void 0:_.description)&&m.jsx("p",{className:"text-xs text-zinc-500",children:_.description}),S?m.jsx("div",{className:"flex items-center justify-center py-4 bg-zinc-950 border border-zinc-800 rounded-lg",children:m.jsx(Da,{className:"w-4 h-4 text-zinc-500 animate-spin"})}):m.jsxs("div",{className:"relative",children:[m.jsx("pre",{className:"bg-zinc-950 border border-zinc-800 rounded-lg p-3 pr-10 text-xs text-cyan-300 font-mono overflow-x-auto whitespace-pre-wrap break-all",children:(_==null?void 0:_.command)??""}),_&&m.jsx("div",{className:"absolute top-2 right-2",children:m.jsx(ls,{text:_.command})})]})]}),m.jsxs("div",{onDragOver:le=>{le.preventDefault(),z(!0)},onDragLeave:()=>z(!1),onDrop:Y,onClick:()=>{var le;return(le=ae.current)==null?void 0:le.click()},className:`flex flex-col items-center justify-center gap-2 p-6 border-2 border-dashed rounded-lg cursor-pointer transition ${C?"border-violet-400 bg-violet-500/10":"border-zinc-700 hover:border-zinc-500 bg-zinc-800/30"}`,children:[m.jsx(yg,{className:`w-7 h-7 ${C?"text-violet-400":"text-zinc-500"}`}),m.jsx("p",{className:"text-sm text-zinc-300",children:"Drop .zip file here"}),m.jsxs("p",{className:"text-xs text-zinc-500",children:["or click to browse (max ",u," MB)"]}),m.jsx("input",{ref:ae,type:"file",accept:".zip",className:"hidden",onChange:H})]}),A&&m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-2 text-xs text-zinc-300 truncate min-w-0",children:[m.jsx(yg,{className:"w-3.5 h-3.5 text-violet-400 shrink-0"}),m.jsx("span",{className:"truncate",children:A.name}),m.jsxs("span",{className:`shrink-0 ${ie?"text-rose-400":"text-zinc-500"}`,children:["(",(A.size/(1024*1024)).toFixed(1)," MB)"]}),m.jsx("button",{onClick:le=>{le.stopPropagation(),w(null),re(null)},className:"text-zinc-500 hover:text-rose-400 transition shrink-0",children:m.jsx(W_,{className:"w-3.5 h-3.5"})})]}),m.jsx("button",{onClick:ne?X:L,disabled:q||ie,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-white bg-violet-600 hover:bg-violet-500 rounded transition disabled:opacity-40 disabled:cursor-not-allowed shrink-0",children:q?oe==="processing"?m.jsxs(m.Fragment,{children:[m.jsx(Da,{className:"w-3.5 h-3.5 animate-spin"}),"Processing..."]}):m.jsxs(m.Fragment,{children:[m.jsx(Da,{className:"w-3.5 h-3.5 animate-spin"}),D,"%"]}):ne?"Done":m.jsxs(m.Fragment,{children:[m.jsx(tv,{className:"w-3.5 h-3.5"}),"Upload"]})})]}),A&&ie&&m.jsxs("p",{className:"text-xs text-rose-400",children:["File exceeds the ",u," MB limit. Try excluding large sessions or splitting the archive."]}),q&&m.jsxs("div",{className:"space-y-1.5",children:[m.jsx("div",{className:"w-full h-1.5 bg-zinc-800 rounded-full overflow-hidden",children:oe==="sending"?m.jsx("div",{className:"h-full bg-violet-500 rounded-full transition-all duration-300",style:{width:`${D}%`}}):m.jsx("div",{className:"h-full bg-violet-500 rounded-full animate-pulse w-full"})}),m.jsx("p",{className:"text-[10px] text-zinc-500 text-center",children:oe==="sending"?`Uploading — ${D}% of ${(((A==null?void 0:A.size)??0)/(1024*1024)).toFixed(0)} MB`:"Server is extracting and parsing sessions…"})]}),U&&m.jsx(jM,{result:U})]})]})]})]})}function I0({label:t,options:a,selected:l,onSelect:r}){return m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("span",{className:"text-xs text-zinc-400 w-14 shrink-0",children:t}),m.jsx("div",{className:"flex gap-1.5",children:a.map(o=>m.jsx("button",{onClick:()=>r(o.value),className:`px-3 py-1 text-xs rounded-full transition ${l===o.value?"bg-violet-600 text-white":"bg-zinc-800 text-zinc-400 border border-zinc-700 hover:border-zinc-500 hover:text-zinc-200"}`,children:o.label},o.value))})]})}function jM({result:t}){const a=t.errors.length>0;return m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"grid grid-cols-3 gap-2 text-xs",children:[m.jsx(zf,{label:"Sessions",value:t.sessions_parsed}),m.jsx(zf,{label:"Steps",value:t.steps_stored}),m.jsx(zf,{label:"Skipped",value:t.skipped})]}),a&&m.jsxs("div",{className:"p-2.5 bg-rose-900/20 border border-rose-800/50 rounded text-xs text-rose-300 space-y-0.5",children:[m.jsx("p",{className:"font-medium",children:"Errors:"}),t.errors.slice(0,5).map((l,r)=>m.jsxs("p",{className:"text-rose-400",children:[l.filename?`${l.filename}: `:"",l.error]},r))]})]})}function zf({label:t,value:a}){return m.jsxs("div",{className:"bg-zinc-800/50 rounded px-2.5 py-1.5",children:[m.jsx("p",{className:"text-[10px] text-zinc-500",children:t}),m.jsx("p",{className:"text-zinc-200 font-mono text-sm",children:a})]})}function BM(t){if(t.length<2)return t;const a=[...t].sort((c,h)=>c.date.localeCompare(h.date)),l=[],r=new Date(a[0].date+"T00:00:00"),o=new Date(a[a.length-1].date+"T00:00:00"),u=new Map(a.map(c=>[c.date,c]));for(let c=new Date(r);c<=o;c.setDate(c.getDate()+1)){const h=c.toISOString().slice(0,10);l.push(u.get(h)||{date:h,session_count:0,total_messages:0,total_tokens:0,total_duration:0,total_duration_hours:0,total_cost_usd:0})}return l}function IM(t,a){if(a==="day")return t;const l=new Map;for(const r of t){const o=a==="month"?r.date.slice(0,7):r.date.slice(0,4),u=l.get(o);u?(u.session_count+=r.session_count,u.total_messages+=r.total_messages,u.total_tokens+=r.total_tokens,u.total_duration+=r.total_duration,u.total_duration_hours+=r.total_duration_hours,u.total_cost_usd+=r.total_cost_usd):l.set(o,{...r,date:o})}return[...l.values()].sort((r,o)=>r.date.localeCompare(o.date))}function jo(t){return t==="unknown"?"Unknown":t}function UM(t,a){if(t===0)return Ol[0];const l=t/a;return l<=.25?Ol[1]:l<=.5?Ol[2]:l<=.75?Ol[3]:Ol[4]}function HM(t){const a=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${a}-${l}-${r}`}function FM({data:t,onHover:a,onMove:l,onLeave:r}){const{weeks:o,monthLabels:u,maxVal:c,yearTotal:h}=F.useMemo(()=>{const x=new Date,_=[],v=[],S=(x.getDay()+6)%7,T=new Date(x);T.setDate(x.getDate()-S-(Af-1)*7);let A=-1,w=0;for(let q=0;q<Af;q++){const K=[];for(let D=0;D<7;D++){const Z=new Date(T);if(Z.setDate(T.getDate()+q*7+D),Z>x){K.push({date:"",count:0,dayOfWeek:D});continue}const oe=HM(Z),de=t[oe]||0;w+=de,K.push({date:oe,count:de,dayOfWeek:D}),D===0&&Z.getMonth()!==A&&(A=Z.getMonth(),v.push({month:rM[A],weekIndex:q}))}_.push(K)}const C=Object.values(t),z=Math.max(1,...C);return{weeks:_,monthLabels:v,maxVal:z,yearTotal:w}},[t]),g=Mf+Af*(Oi+Tl)+10,p=Cf+7*(Oi+Tl)+10,b=x=>{if(!x)return"";const _=new Date(x+"T00:00:00"),v=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${v[_.getDay()]}, ${S[_.getMonth()]} ${_.getDate()}, ${_.getFullYear()}`};return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center justify-between mb-3",children:[m.jsxs("p",{className:"text-[13px] text-zinc-300 cursor-default",onMouseEnter:x=>a(x,"GitHub-style heatmap showing daily session activity over the past year"),onMouseMove:l,onMouseLeave:r,children:[m.jsx("span",{className:"text-cyan-400 font-semibold",children:h.toLocaleString()})," ","sessions in the last year"]}),m.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-zinc-400",children:[m.jsx("span",{children:"Less"}),Ol.slice(1).map((x,_)=>m.jsx("div",{className:"w-2.5 h-2.5 rounded-sm",style:{backgroundColor:x}},_)),m.jsx("span",{children:"More"})]})]}),m.jsx("div",{className:"overflow-x-auto",children:m.jsxs("svg",{width:g,height:p,className:"text-zinc-400",children:[u.map(({month:x,weekIndex:_},v)=>m.jsx("text",{x:Mf+_*(Oi+Tl),y:12,fill:"currentColor",fontSize:11,children:x},`${x}-${v}`)),lM.map((x,_)=>x&&m.jsx("text",{x:0,y:Cf+_*(Oi+Tl)+Oi/2+4,fill:"currentColor",fontSize:10,children:x},x)),o.map((x,_)=>x.map(v=>v.date?m.jsx("rect",{x:Mf+_*(Oi+Tl),y:Cf+v.dayOfWeek*(Oi+Tl),width:Oi,height:Oi,rx:2,fill:UM(v.count,c),onMouseEnter:S=>a(S,`${b(v.date)}
${v.count} session${v.count!==1?"s":""}`),onMouseMove:l,onMouseLeave:r,className:"cursor-default"},v.date):null))]})})]})}function U0({label:t,value:a,max:l,tooltipText:r,onClick:o,onHover:u,onMove:c,onLeave:h}){const g=l>0?a/l*100:0;return m.jsxs("button",{onClick:o,disabled:!o,className:"flex items-center gap-2.5 text-[13px] w-full text-left hover:bg-zinc-800/60 px-2.5 py-1.5 rounded-md transition disabled:cursor-default group",onMouseEnter:p=>u(p,r),onMouseMove:c,onMouseLeave:h,children:[m.jsx("span",{className:"w-32 truncate text-zinc-300 group-hover:text-zinc-100 transition-colors",title:t,children:t}),m.jsx("div",{className:"flex-1 h-5 bg-zinc-800/60 rounded-md overflow-hidden",children:m.jsx("div",{className:"h-full bg-gradient-to-r from-cyan-600 to-cyan-400 rounded-md transition-all",style:{width:`${g}%`}})}),m.jsx("span",{className:"w-10 text-right text-zinc-300 tabular-nums font-medium",children:a})]})}function $M({data:t,onHover:a,onMove:l,onLeave:r}){const o=F.useMemo(()=>Object.entries(t).sort(([,h],[,g])=>g-h),[t]),u=o.reduce((h,[,g])=>h+g,0),c=o.map(([h,g],p)=>({model:h,count:g,pct:u>0?g/u*100:0,color:Do[p%Do.length]}));return m.jsxs("div",{className:"space-y-3",children:[m.jsx("div",{className:"h-4 rounded-full overflow-hidden flex bg-zinc-800",children:c.map(h=>m.jsx("div",{className:`h-full ${h.color} cursor-default`,style:{width:`${h.pct}%`},onMouseEnter:g=>a(g,`${jo(h.model)}
${h.count} session${h.count!==1?"s":""} (${h.pct.toFixed(1)}%)`),onMouseMove:l,onMouseLeave:r},h.model))}),m.jsxs("div",{className:"space-y-1.5",children:[o.map(([h,g],p)=>{const b=u>0?(g/u*100).toFixed(1):"0";return m.jsxs("div",{className:"flex items-center gap-2.5 text-[13px] cursor-default",onMouseEnter:x=>a(x,`${jo(h)}
${g} session${g!==1?"s":""} (${b}%)`),onMouseMove:l,onMouseLeave:r,children:[m.jsx("span",{className:`w-3 h-3 rounded-sm shrink-0 ${Do[p%Do.length]}`}),m.jsx("span",{className:"flex-1 text-zinc-300 truncate",title:jo(h),children:jo(h)}),m.jsxs("span",{className:"text-zinc-400 tabular-nums",children:[g," (",b,"%)"]})]},h)}),o.length===0&&m.jsx("p",{className:"text-sm text-zinc-500",children:"No data"})]})]})}function qM({data:t,onHover:a,onMove:l,onLeave:r}){const o=F.useMemo(()=>Array.from({length:aM},(c,h)=>{const g=h*2,p=g+1,b=t[g]??t[String(g)]??0,x=t[p]??t[String(p)]??0;return{label:`${String(g).padStart(2,"0")}`,rangeLabel:`${String(g).padStart(2,"0")}:00 – ${String(p).padStart(2,"0")}:59`,count:b+x}}),[t]),u=Math.max(1,...o.map(c=>c.count));return m.jsxs("div",{children:[m.jsx("div",{className:"flex items-end gap-1.5 h-24",children:o.map(c=>{const h=c.count/u*100;return m.jsx("div",{className:"flex-1 flex flex-col items-center justify-end h-full cursor-default",onMouseEnter:g=>a(g,`${c.rangeLabel}
${c.count} session${c.count!==1?"s":""}`),onMouseMove:l,onMouseLeave:r,children:m.jsx("div",{className:"w-full bg-gradient-to-t from-cyan-600 to-cyan-400 rounded-t transition-all",style:{height:`${Math.max(h,c.count>0?4:0)}%`}})},c.label)})}),m.jsx("div",{className:"flex gap-1.5 mt-1.5",children:o.map((c,h)=>m.jsx("div",{className:"flex-1 text-center text-[10px] text-zinc-400",children:h%2===0?c.label:""},c.label))})]})}function Gr({icon:t,label:a,description:l,value:r,rows:o,tooltipText:u,onHover:c,onMove:h,onLeave:g}){return m.jsxs("div",{className:"rounded-xl border border-zinc-700/60 bg-zinc-900/80 px-5 py-5 flex flex-col gap-3 hover:border-zinc-500/60 transition-colors cursor-default",onMouseEnter:p=>c(p,u),onMouseMove:h,onMouseLeave:g,children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("span",{className:"text-xs font-semibold text-zinc-200 uppercase tracking-wider",children:a}),l&&m.jsx("p",{className:dv,children:l})]}),m.jsx("div",{className:"text-cyan-400/70",children:t})]}),m.jsx("div",{className:"text-3xl font-bold text-cyan-400 tabular-nums tracking-tight",children:r}),m.jsx("div",{className:"border-t border-zinc-700/40 pt-2.5 space-y-1.5",children:o.map(p=>m.jsxs("div",{className:"flex items-center justify-between text-[13px]",onMouseEnter:b=>{p.tooltipText&&(b.stopPropagation(),c(b,p.tooltipText))},onMouseMove:b=>{p.tooltipText&&(b.stopPropagation(),h(b))},onMouseLeave:b=>{p.tooltipText&&(b.stopPropagation(),g())},children:[m.jsx("span",{className:"text-zinc-400",children:p.label}),m.jsx("span",{className:"text-zinc-200 tabular-nums font-medium",children:p.value})]},p.label))})]})}const H0=12;function GM({data:t,totalCalls:a,onHover:l,onMove:r,onLeave:o}){const{visible:u,otherCount:c}=F.useMemo(()=>{const b=t.slice(0,H0),x=t.slice(H0).reduce((_,v)=>_+v.call_count,0);return{visible:b,otherCount:x}},[t]),h=a||t.reduce((b,x)=>b+x.call_count,0),g=F.useMemo(()=>{const b=u.map((x,_)=>({name:x.tool_name,count:x.call_count,pct:h>0?x.call_count/h*100:0,avgPerSession:x.avg_per_session,errorRate:x.error_rate,color:Lo[_%Lo.length]}));return c>0&&b.push({name:"Other",count:c,pct:h>0?c/h*100:0,avgPerSession:0,errorRate:0,color:"bg-zinc-600"}),b},[u,c,h]),p=b=>{const x=[b.name,`${b.count.toLocaleString()} calls (${b.pct.toFixed(1)}%)`];return b.avgPerSession>0&&x.push(`Avg ${b.avgPerSession}/session`),b.errorRate>0&&x.push(`Error rate: ${(b.errorRate*100).toFixed(1)}%`),x.join(`
`)};return t.length===0?m.jsx("p",{className:"text-sm text-zinc-500",children:"No data"}):m.jsxs("div",{className:"space-y-3",children:[m.jsx("div",{className:"h-4 rounded-full overflow-hidden flex bg-zinc-800",children:g.map(b=>m.jsx("div",{className:`h-full ${b.color} cursor-default`,style:{width:`${b.pct}%`},onMouseEnter:x=>l(x,p(b)),onMouseMove:r,onMouseLeave:o},b.name))}),m.jsx("div",{className:"space-y-1.5",children:g.map((b,x)=>m.jsxs("div",{className:"flex items-center gap-2.5 text-[13px] cursor-default",onMouseEnter:_=>l(_,p(b)),onMouseMove:r,onMouseLeave:o,children:[m.jsx("span",{className:`w-3 h-3 rounded-sm shrink-0 ${b.name==="Other"?"bg-zinc-600":Lo[x%Lo.length]}`}),m.jsx("span",{className:"flex-1 text-zinc-300 truncate",title:b.name,children:b.name}),m.jsxs("span",{className:"text-zinc-400 tabular-nums",children:[b.count.toLocaleString()," (",b.pct.toFixed(1),"%)"]})]},b.name))})]})}const Pr=800,ed=200,zl=55,td=15,Zn=12,PM=28,Rf=Pr-zl-td,si=ed-Zn-PM;function YM({data:t,onHover:a,onMove:l,onLeave:r}){const[o,u]=F.useState("sessions"),[c,h]=F.useState("day"),[g,p]=F.useState(null),b=F.useRef(null),x=F.useMemo(()=>BM(t),[t]),_=F.useMemo(()=>IM(x,c),[x,c]),v=F.useMemo(()=>_.map(ie=>{switch(o){case"sessions":return ie.session_count;case"messages":return ie.total_messages;case"tokens":return ie.total_tokens;case"cost":return ie.total_cost_usd}}),[_,o]),S=Math.max(1,...v),T=_.length===1,A=F.useMemo(()=>v.map((ie,Y)=>({x:zl+(_.length>1?Y/(_.length-1)*Rf:Rf/2),y:Zn+si-ie/S*si})),[v,S,_.length]),w=A.map((ie,Y)=>`${Y===0?"M":"L"}${ie.x},${ie.y}`).join(" "),C=w+` L${A[A.length-1].x},${Zn+si} L${A[0].x},${Zn+si} Z`,z=[.25,.5,.75,1],q=z.map(ie=>Zn+si*(1-ie)),K=ie=>o==="tokens"?Rl(ie):o==="cost"?Qn(ie):String(Math.round(ie)),D=Math.max(1,Math.ceil(_.length/7)),Z=ie=>c==="year"||c==="month"?ie:ie.slice(5),oe=F.useCallback(ie=>{const Y=b.current;if(!Y||A.length===0)return null;const H=Y.getBoundingClientRect(),L=(ie-H.left)/H.width*Pr;let X=0,ne=Math.abs(L-A[0].x);for(let le=1;le<A.length;le++){const k=Math.abs(L-A[le].x);k<ne&&(ne=k,X=le)}return X},[A]),de=F.useCallback(ie=>{const Y=oe(ie.clientX);if(Y===null)return;p(Y);const H=_[Y],L=[H.date,`Sessions: ${H.session_count}`,`Messages: ${H.total_messages.toLocaleString()}`,`Tokens: ${H.total_tokens.toLocaleString()}`,`Cost: ${Qn(H.total_cost_usd)}`];a(ie,L.join(`
`)),l(ie)},[oe,_,a,l]),U=F.useCallback(()=>{p(null),r()},[r]),re=[{key:"sessions",label:"Sessions"},{key:"messages",label:"Messages"},{key:"tokens",label:"Tokens"},{key:"cost",label:"Cost"}],ae=[{key:"day",label:"Day"},{key:"month",label:"Month"},{key:"year",label:"Year"}];return _.length<1?m.jsxs("div",{children:[m.jsx("h3",{className:"text-base font-medium text-zinc-200 mb-3",children:"Usage Over Time"}),m.jsx("p",{className:"text-sm text-zinc-400 py-8 text-center",children:"No data available"})]}):m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center justify-between mb-3",children:[m.jsx("h3",{className:"text-base font-medium text-zinc-200",children:"Usage Over Time"}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"flex gap-1",children:ae.map(ie=>m.jsx("button",{onClick:()=>h(ie.key),className:`px-2 py-1 text-xs font-medium rounded-md transition ${c===ie.key?La:`${ja} hover:bg-zinc-800`}`,children:ie.label},ie.key))}),m.jsx("div",{className:"w-px h-4 bg-zinc-700"}),m.jsx("div",{className:"flex gap-1",children:re.map(ie=>m.jsx("button",{onClick:()=>u(ie.key),className:`px-2.5 py-1 text-xs font-medium rounded-md transition ${o===ie.key?"bg-cyan-600 text-white":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800"}`,children:ie.label},ie.key))})]})]}),m.jsxs("svg",{ref:b,viewBox:`0 0 ${Pr} ${ed}`,className:"w-full",preserveAspectRatio:"xMidYMid meet",children:[m.jsx("defs",{children:m.jsxs("linearGradient",{id:"areaGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[m.jsx("stop",{offset:"0%",stopColor:"rgba(34,211,238,0.3)"}),m.jsx("stop",{offset:"100%",stopColor:"rgba(34,211,238,0.02)"})]})}),q.map((ie,Y)=>m.jsxs("g",{children:[m.jsx("line",{x1:zl,y1:ie,x2:Pr-td,y2:ie,stroke:"rgba(255,255,255,0.06)"}),m.jsx("text",{x:zl-8,y:ie+4,fill:"#a1a1aa",fontSize:10,textAnchor:"end",children:K(S*z[Y])})]},Y)),m.jsx("line",{x1:zl,y1:Zn+si,x2:Pr-td,y2:Zn+si,stroke:"rgba(255,255,255,0.08)"}),T?m.jsx("rect",{x:A[0].x-30,y:A[0].y,width:60,height:Zn+si-A[0].y,fill:"url(#areaGrad)",stroke:"rgb(34,211,238)",strokeWidth:2,rx:4}):m.jsxs(m.Fragment,{children:[m.jsx("path",{d:C,fill:"url(#areaGrad)"}),m.jsx("path",{d:w,fill:"none",stroke:"rgb(34,211,238)",strokeWidth:2})]}),!T&&A.map((ie,Y)=>m.jsx("circle",{cx:ie.x,cy:ie.y,r:g===Y?5:3,fill:"rgb(34,211,238)",className:"pointer-events-none transition-all"},Y)),g!==null&&A[g]&&m.jsx("line",{x1:A[g].x,y1:Zn,x2:A[g].x,y2:Zn+si,stroke:"rgba(34,211,238,0.4)",strokeWidth:1,strokeDasharray:"4 3",className:"pointer-events-none"}),m.jsx("rect",{x:zl,y:Zn,width:Rf,height:si,fill:"transparent",className:"cursor-crosshair",onMouseMove:de,onMouseLeave:U}),_.map((ie,Y)=>Y%D!==0&&Y!==_.length-1?null:m.jsx("text",{x:A[Y].x,y:ed-6,fill:"#a1a1aa",fontSize:10,textAnchor:"middle",children:Z(ie.date)},ie.date))]})]})}function KM({cache:t}){var ie,Y;const{fetchWithToken:a}=ss(),[l,r]=F.useState((t==null?void 0:t.stats)??null),[o,u]=F.useState((t==null?void 0:t.toolUsage)??[]),[c,h]=F.useState(!t),[g,p]=F.useState(null),[b,x]=F.useState(null),[_,v]=F.useState(null),[S,T]=F.useState(!1),{tip:A,show:w,move:C,hide:z}=Cd();F.useEffect(()=>{t&&!l&&(r(t.stats),u(t.toolUsage),h(!1))},[t,l]),F.useEffect(()=>{if(!b)return;h(!0),p(null);const H=new URLSearchParams;H.set("project_path",b),Promise.all([a(`/api/analysis/dashboard?${H}`).then(L=>{if(!L.ok)throw new Error(`HTTP ${L.status}`);return L.json()}),a(`/api/analysis/tool-usage?${H}`).then(L=>L.ok?L.json():[]).catch(()=>[])]).then(([L,X])=>{r(L),u(X)}).catch(L=>p(String(L))).finally(()=>h(!1))},[a,b]);const q=F.useCallback(()=>{x(null),t&&(r(t.stats),u(t.toolUsage))},[t]),K=async H=>{v(H);const L=new URLSearchParams({format:H});b&&L.set("project_path",b);try{const X=await a(`/api/analysis/dashboard/export?${L}`);if(!X.ok)return;const ne=await X.blob(),le=URL.createObjectURL(ne),k=document.createElement("a");k.href=le,k.download=`vibelens-dashboard.${H}`,k.click(),URL.revokeObjectURL(le)}catch(X){console.error("Export failed:",X)}finally{v(null)}};if(c)return m.jsx("div",{className:"flex items-center justify-center h-full text-zinc-400",children:m.jsxs("div",{className:"flex flex-col items-center gap-3",children:[m.jsx("div",{className:"w-8 h-8 border-2 border-cyan-400/30 border-t-cyan-400 rounded-full animate-spin"}),m.jsx("span",{className:"text-sm",children:"Loading dashboard..."})]})});if(g||!l)return m.jsx("div",{className:"flex items-center justify-center h-full text-red-400",children:g||"Failed to load dashboard"});const D=10,Z=Object.entries(l.project_distribution).sort(([,H],[,L])=>L-H),oe=S?Z:Z.slice(0,D),de=Z.length>D,U=((ie=Z[0])==null?void 0:ie[1])??0,re=Object.entries(l.agent_distribution).sort(([,H],[,L])=>L-H),ae=((Y=re[0])==null?void 0:Y[1])??0;return m.jsxs("div",{className:"h-full overflow-y-auto",children:[m.jsx(Md,{state:A}),m.jsxs("div",{className:"max-w-[1400px] mx-auto p-6 space-y-5",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("div",{className:"flex items-center gap-3",children:b?m.jsxs(m.Fragment,{children:[m.jsx("button",{onClick:q,className:"text-sm text-cyan-400 hover:text-cyan-300 transition font-medium",children:"All Sessions"}),m.jsx("span",{className:"text-zinc-600",children:"/"}),m.jsx("span",{className:"text-sm text-zinc-200 font-medium",children:Dl(b)})]}):m.jsx("h2",{className:"text-xl font-semibold text-zinc-100",children:"Analytics Dashboard"})}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsxs("button",{onClick:()=>K("csv"),disabled:_!==null,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-zinc-300 hover:text-zinc-100 bg-zinc-800/80 hover:bg-zinc-700 rounded-lg border border-zinc-700/50 transition disabled:opacity-50 disabled:cursor-not-allowed",onMouseEnter:H=>w(H,"Export all dashboard data as CSV"),onMouseMove:C,onMouseLeave:z,children:[_==="csv"?m.jsx("div",{className:"w-3.5 h-3.5 border-2 border-zinc-400/30 border-t-zinc-300 rounded-full animate-spin"}):m.jsx(Io,{className:"w-3.5 h-3.5"}),_==="csv"?"Exporting...":"CSV"]}),m.jsxs("button",{onClick:()=>K("json"),disabled:_!==null,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-zinc-300 hover:text-zinc-100 bg-zinc-800/80 hover:bg-zinc-700 rounded-lg border border-zinc-700/50 transition disabled:opacity-50 disabled:cursor-not-allowed",onMouseEnter:H=>w(H,"Export all dashboard data as JSON"),onMouseMove:C,onMouseLeave:z,children:[_==="json"?m.jsx("div",{className:"w-3.5 h-3.5 border-2 border-zinc-400/30 border-t-zinc-300 rounded-full animate-spin"}):m.jsx(Io,{className:"w-3.5 h-3.5"}),_==="json"?"Exporting...":"JSON"]})]})]}),m.jsxs("div",{className:"grid grid-cols-5 gap-4",children:[m.jsx(Gr,{icon:m.jsx(Zr,{className:"w-4 h-4"}),label:"Sessions",description:"All agent sessions",value:l.total_sessions.toLocaleString(),rows:[{label:"This Year",value:l.this_year.sessions.toLocaleString()},{label:"This Month",value:l.this_month.sessions.toLocaleString()},{label:"This Week",value:l.this_week.sessions.toLocaleString()}],tooltipText:[`Total: ${l.total_sessions} sessions`,`${l.project_count} projects`,`This Year: ${l.this_year.sessions}`,`This Month: ${l.this_month.sessions}`,`This Week: ${l.this_week.sessions}`].join(`
`),onHover:w,onMove:C,onLeave:z}),m.jsx(Gr,{icon:m.jsx(K0,{className:"w-4 h-4"}),label:"Messages",description:"User + agent turns",value:l.total_messages.toLocaleString(),rows:[{label:"This Year",value:l.this_year.messages.toLocaleString()},{label:"This Month",value:l.this_month.messages.toLocaleString()},{label:"Avg/Session",value:l.avg_messages_per_session.toFixed(1)}],tooltipText:[`Total: ${l.total_messages.toLocaleString()} messages`,`This Year: ${l.this_year.messages.toLocaleString()}`,`Avg: ${l.avg_messages_per_session.toFixed(1)} per session`].join(`
`),onHover:w,onMove:C,onLeave:z}),m.jsx(Gr,{icon:m.jsx(q0,{className:"w-4 h-4"}),label:"Tokens",description:"Input + output tokens",value:Rl(l.total_tokens),rows:[{label:"This Year",value:Rl(l.this_year.tokens),tooltipText:[`This Year: ${l.this_year.tokens.toLocaleString()}`,`Input: ${l.this_year.input_tokens.toLocaleString()}`,`Output: ${l.this_year.output_tokens.toLocaleString()}`,`Cache Read: ${l.this_year.cache_read_tokens.toLocaleString()}`,`Cache Write: ${l.this_year.cache_creation_tokens.toLocaleString()}`].join(`
`)},{label:"This Month",value:Rl(l.this_month.tokens),tooltipText:[`This Month: ${l.this_month.tokens.toLocaleString()}`,`Input: ${l.this_month.input_tokens.toLocaleString()}`,`Output: ${l.this_month.output_tokens.toLocaleString()}`,`Cache Read: ${l.this_month.cache_read_tokens.toLocaleString()}`,`Cache Write: ${l.this_month.cache_creation_tokens.toLocaleString()}`].join(`
`)},{label:"Avg/Session",value:Rl(Math.round(l.avg_tokens_per_session)),tooltipText:[`Avg/Session: ${Math.round(l.avg_tokens_per_session).toLocaleString()}`,`Total Input: ${l.total_input_tokens.toLocaleString()}`,`Total Output: ${l.total_output_tokens.toLocaleString()}`,`Total Cache Read: ${l.total_cache_read_tokens.toLocaleString()}`,`Total Cache Write: ${l.total_cache_creation_tokens.toLocaleString()}`].join(`
`)}],tooltipText:[`Total: ${l.total_tokens.toLocaleString()}`,`Input: ${l.total_input_tokens.toLocaleString()}`,`Output: ${l.total_output_tokens.toLocaleString()}`,`Cache: ${l.total_cache_tokens.toLocaleString()}`].join(`
`),onHover:w,onMove:C,onLeave:z}),m.jsx(Gr,{icon:m.jsx(rd,{className:"w-4 h-4"}),label:"Duration",description:"Total session time",value:zi(l.total_duration),rows:[{label:"This Year",value:zi(l.this_year.duration)},{label:"This Month",value:zi(l.this_month.duration)},{label:"Avg/Session",value:zi(l.avg_duration_per_session)}],tooltipText:[`Total: ${zi(l.total_duration)}`,`This Year: ${zi(l.this_year.duration)}`,`This Month: ${zi(l.this_month.duration)}`,`Avg/Session: ${zi(l.avg_duration_per_session)}`].join(`
`),onHover:w,onMove:C,onLeave:z}),m.jsx(Gr,{icon:m.jsx(p_,{className:"w-4 h-4"}),label:"Estimated Cost",description:"API pricing estimate",value:Qn(l.total_cost_usd),rows:[{label:"This Year",value:Qn(l.this_year.cost_usd)},{label:"This Month",value:Qn(l.this_month.cost_usd)},{label:"Avg/Session",value:Qn(l.avg_cost_per_session)}],tooltipText:[`Total: ${Qn(l.total_cost_usd)}`,`This Year: ${Qn(l.this_year.cost_usd)}`,`This Month: ${Qn(l.this_month.cost_usd)}`,`Avg/Session: ${Qn(l.avg_cost_per_session)}`].join(`
`),onHover:w,onMove:C,onLeave:z})]}),m.jsx("div",{className:"rounded-xl border border-zinc-700/60 bg-zinc-900/80 p-5",children:m.jsx(YM,{data:l.daily_stats,onHover:w,onMove:C,onLeave:z})}),m.jsx("div",{className:"rounded-xl border border-zinc-700/60 bg-zinc-900/80 p-5",children:m.jsx(FM,{data:l.daily_activity,onHover:w,onMove:C,onLeave:z})}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"rounded-xl border border-zinc-700/60 bg-zinc-900/80 p-5",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[m.jsx("h3",{className:"text-base font-medium text-zinc-200 cursor-default",onMouseEnter:H=>w(H,"Distribution of session starts by hour of day"),onMouseMove:C,onMouseLeave:z,children:"Peak Hours"}),m.jsxs("span",{className:"text-xs text-zinc-500 cursor-default",onMouseEnter:H=>w(H,`All times shown in ${l.timezone} timezone`),onMouseMove:C,onMouseLeave:z,children:["(",l.timezone,")"]})]}),m.jsx(qM,{data:l.hourly_distribution,onHover:w,onMove:C,onLeave:z})]}),m.jsxs("div",{className:"rounded-xl border border-zinc-700/60 bg-zinc-900/80 p-5",children:[m.jsxs("div",{className:"flex items-center justify-between mb-4",children:[m.jsx("h3",{className:"text-base font-medium text-zinc-200 cursor-default",onMouseEnter:H=>w(H,`Session count per project (${Z.length} total). Click a project to filter.`),onMouseMove:C,onMouseLeave:z,children:"Project Activity"}),de&&m.jsx("button",{onClick:()=>T(H=>!H),className:"px-2.5 py-1 text-xs font-medium text-cyan-400 hover:text-cyan-300 bg-cyan-400/10 hover:bg-cyan-400/20 rounded-md border border-cyan-400/20 transition",children:S?"Top 10":`All ${Z.length}`})]}),m.jsxs("div",{className:"space-y-1",children:[oe.map(([H,L])=>m.jsx(U0,{label:Dl(H),value:L,max:U,tooltipText:[Dl(H),`${L} session${L!==1?"s":""}`,`${(L/l.total_sessions*100).toFixed(1)}% of total`].join(`
`),onClick:()=>x(H),onHover:w,onMove:C,onLeave:z},H)),oe.length===0&&m.jsx("p",{className:"text-sm text-zinc-500",children:"No data"})]})]})]}),m.jsxs("div",{className:"space-y-4",children:[re.length>1&&m.jsxs("div",{className:"rounded-xl border border-zinc-700/60 bg-zinc-900/80 p-5",children:[m.jsx("h3",{className:"text-base font-medium text-zinc-200 mb-4 cursor-default",onMouseEnter:H=>w(H,"Session count breakdown by agent (Claude Code, Codex, Gemini)"),onMouseMove:C,onMouseLeave:z,children:"Agent Distribution"}),m.jsx("div",{className:"space-y-1",children:re.map(([H,L])=>m.jsx(U0,{label:H,value:L,max:ae,tooltipText:[H,`${L} session${L!==1?"s":""}`,`${(L/l.total_sessions*100).toFixed(1)}% of total`].join(`
`),onHover:w,onMove:C,onLeave:z},H))})]}),m.jsxs("div",{className:"rounded-xl border border-zinc-700/60 bg-zinc-900/80 p-5",children:[m.jsx("h3",{className:"text-base font-medium text-zinc-200 mb-4 cursor-default",onMouseEnter:H=>w(H,"Session count breakdown by AI model"),onMouseMove:C,onMouseLeave:z,children:"Model Distribution"}),m.jsx($M,{data:l.model_distribution,onHover:w,onMove:C,onLeave:z})]}),o.length>0&&m.jsxs("div",{className:"rounded-xl border border-zinc-700/60 bg-zinc-900/80 p-5",children:[m.jsxs("div",{className:"flex items-center justify-between mb-4",children:[m.jsx("h3",{className:"text-base font-medium text-zinc-200 cursor-default",onMouseEnter:H=>w(H,`Tool call distribution (${l.total_tool_calls.toLocaleString()} total, avg ${l.avg_tool_calls_per_session.toFixed(1)}/session)`),onMouseMove:C,onMouseLeave:z,children:"Tool Distribution"}),m.jsxs("span",{className:"text-xs text-zinc-500",children:[l.total_tool_calls.toLocaleString()," total"]})]}),m.jsx(GM,{data:o,totalCalls:l.total_tool_calls,onHover:w,onMove:C,onLeave:z})]})]})]})]})]})}const Od=["90%","100%","110%","120%","130%"],Ox="vibelens-settings",zx=F.createContext({fontScale:"100%",setFontScale:()=>{},fontScaleOptions:Od});function VM(){return F.useContext(zx)}function XM(){try{const t=localStorage.getItem(Ox);if(!t)return"100%";const a=JSON.parse(t);if(a.fontScale&&Od.includes(a.fontScale))return a.fontScale}catch{}return"100%"}function ZM(t){localStorage.setItem(Ox,JSON.stringify({fontScale:t}))}function QM({children:t}){const[a,l]=F.useState(XM),r=o=>{l(o),ZM(o)};return F.useEffect(()=>{const o=document.getElementById("root");if(!o)return;const u=parseInt(a)/100;o.style.zoom=String(u),o.style.height=`${100/u}vh`,o.style.width=`${100/u}vw`},[a]),m.jsx(zx.Provider,{value:{fontScale:a,setFontScale:r,fontScaleOptions:Od},children:t})}const JM="https://github.com/yejh123/VibeLens/issues/new",WM={bug:{title:"[Bug] ",body:`## Description
Describe the bug clearly and concisely.

## Steps to Reproduce
1. Go to ...
2. Click on ...
3. See error

## Expected Behavior
What should have happened?

## Screenshots
If applicable, add screenshots.

## Environment
- Browser:
- OS:
- VibeLens version: `},enhancement:{title:"[Feature] ",body:`## Feature Description
Describe the feature you'd like to see.

## Use Case
Why would this feature be useful?

## Proposed Solution
How do you envision this working?

## Alternatives Considered
Any alternative solutions or workarounds?`},improvement:{title:"[Improvement] ",body:`## Current Behavior
What currently works but could be better?

## Suggested Improvement
How should it be improved?

## Motivation
Why would this improvement matter?`}};function Df(t){const a=WM[t],l=new URLSearchParams({labels:t,title:(a==null?void 0:a.title)??"",body:(a==null?void 0:a.body)??""});window.open(`${JM}?${l}`,"_blank","noopener,noreferrer")}function eC({onClose:t}){const{fontScale:a,setFontScale:l,fontScaleOptions:r}=VM();return m.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[m.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:t}),m.jsxs("div",{className:"relative bg-zinc-900 border border-zinc-700 rounded-lg shadow-2xl w-full max-w-md mx-4",children:[m.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-zinc-800",children:[m.jsx("h2",{className:"text-sm font-semibold text-zinc-100",children:"Settings"}),m.jsx("button",{onClick:t,className:"text-zinc-500 hover:text-zinc-300 transition",children:m.jsx(Hl,{className:"w-4 h-4"})})]}),m.jsxs("div",{className:"px-5 py-4 space-y-5",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider mb-3",children:"Display Scale"}),m.jsx("div",{className:"flex gap-2",children:r.map(o=>m.jsx("button",{onClick:()=>l(o),className:`flex-1 py-2 text-sm font-medium rounded-md border transition ${a===o?"bg-cyan-600/20 text-cyan-300 border-cyan-500/40":"text-zinc-400 border-zinc-700 hover:text-zinc-200 hover:border-zinc-600"}`,children:o},o))})]}),m.jsxs("div",{children:[m.jsx("h3",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider mb-3",children:"Send Feedback"}),m.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[m.jsxs("button",{onClick:()=>Df("bug"),className:"flex flex-col items-center gap-1.5 py-3 text-xs font-medium text-zinc-300 hover:text-zinc-100 bg-zinc-800/80 hover:bg-zinc-700 rounded-lg border border-zinc-700/50 transition",children:[m.jsx(e_,{className:"w-4 h-4 text-red-400"}),"Bug Report"]}),m.jsxs("button",{onClick:()=>Df("enhancement"),className:"flex flex-col items-center gap-1.5 py-3 text-xs font-medium text-zinc-300 hover:text-zinc-100 bg-zinc-800/80 hover:bg-zinc-700 rounded-lg border border-zinc-700/50 transition",children:[m.jsx(X0,{className:"w-4 h-4 text-yellow-400"}),"Feature Request"]}),m.jsxs("button",{onClick:()=>Df("improvement"),className:"flex flex-col items-center gap-1.5 py-3 text-xs font-medium text-zinc-300 hover:text-zinc-100 bg-zinc-800/80 hover:bg-zinc-700 rounded-lg border border-zinc-700/50 transition",children:[m.jsx(K_,{className:"w-4 h-4 text-cyan-400"}),"Improvement"]})]})]})]})]})]})}const Rx=500*1024*1024,nd=F.createContext({sessionToken:"",appMode:"self",maxZipBytes:Rx,fetchWithToken:(t,a)=>fetch(t,a)});function ss(){return F.useContext(nd)}function tC(){const[t,a]=F.useState(!0),[l,r]=F.useState([]),[o,u]=F.useState([]),[c,h]=F.useState(null),[g,p]=F.useState(0),[b,x]=F.useState(!1),[_,v]=F.useState(new Set),[S,T]=F.useState({kind:"hidden"}),[A,w]=F.useState(!1),[C,z]=F.useState(0),[q,K]=F.useState("project"),[D,Z]=F.useState(320),[oe,de]=F.useState("self"),[U,re]=F.useState(Rx),[ae,ie]=F.useState("all"),[Y,H]=F.useState(["all"]),[L,X]=F.useState("browse"),[ne,le]=F.useState(!1),[k]=F.useState(()=>new URLSearchParams(window.location.search).get("share")),[M]=F.useState(()=>{var be;return((be=crypto.randomUUID)==null?void 0:be.call(crypto))??Array.from(crypto.getRandomValues(new Uint8Array(16)),Ue=>Ue.toString(16).padStart(2,"0")).join("")}),B=240,N=600,ce=100,pe=F.useCallback((be,Ue)=>{const yt=new Headers(Ue==null?void 0:Ue.headers);return yt.set("X-Session-Token",M),fetch(be,{...Ue,headers:yt})},[M]),he={sessionToken:M,appMode:oe,maxZipBytes:U,fetchWithToken:pe},ze=F.useCallback(be=>{Z(Ue=>Math.min(N,Math.max(B,Ue+be)))},[]);F.useEffect(()=>{pe("/api/settings").then(be=>be.json()).then(be=>{be.app_mode==="demo"&&de("demo"),be.max_zip_bytes&&re(be.max_zip_bytes),be.visible_agents&&H(be.visible_agents)}).catch(be=>console.error("Failed to load settings:",be))},[pe]),F.useEffect(()=>{pe("/api/projects").then(be=>be.json()).then(be=>u(be)).catch(be=>console.error("Failed to load projects:",be))},[pe,C]),F.useEffect(()=>{x(!0);const be=new URLSearchParams;q==="project"?(be.set("limit","9999"),be.set("offset","0")):(be.set("limit",String(ce)),be.set("offset",String(g*ce))),pe(`/api/sessions?${be}`).then(Ue=>Ue.json()).then(Ue=>{r(Ue),!c&&Ue.length>0&&h(Ue[0].session_id)}).catch(Ue=>console.error("Failed to load sessions:",Ue)).finally(()=>x(!1))},[g,C,pe,q]);const Le=F.useMemo(()=>{var Ut;const be=new Set;for(const Wn of l)(Ut=Wn.agent)!=null&&Ut.name&&be.add(Wn.agent.name);const Ue=[...be].sort();return Y.length===1&&Y[0]==="all"?Ue:Ue.filter(Wn=>Y.includes(Wn))},[l,Y]),[qe,ft]=F.useState(null),se=F.useRef(!1);F.useEffect(()=>{l.length===0||se.current||(se.current=!0,Promise.all([pe("/api/analysis/dashboard").then(be=>be.ok?be.json():null),pe("/api/analysis/tool-usage").then(be=>be.ok?be.json():[]).catch(()=>[])]).then(([be,Ue])=>{be&&ft({stats:be,toolUsage:Ue})}).catch(()=>{}))},[pe,l]);const Re=F.useCallback(be=>{h(be),be&&X("browse")},[]),lt=async()=>{if(_.size!==0)try{const be=await pe("/api/sessions/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_ids:[..._]})});if(!be.ok)return;const Ue=await be.blob(),yt=URL.createObjectURL(Ue),Ut=document.createElement("a");Ut.href=yt,Ut.download="vibelens-export.zip",Ut.click(),URL.revokeObjectURL(yt)}catch(be){console.error("Download failed:",be)}},We=()=>{_.size!==0&&T({kind:"donate-confirm"})},It=F.useCallback(async()=>{T({kind:"donating"});try{const be=await pe("/api/sessions/donate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_ids:[..._]})});if(!be.ok){let yt=`HTTP ${be.status}`;try{const Ut=await be.json();yt=Ut.detail||JSON.stringify(Ut)}catch{yt=await be.text().catch(()=>yt)}T({kind:"donate-result",result:{total:_.size,donated:0,errors:[{session_id:"",error:yt}]}});return}const Ue=await be.json();T({kind:"donate-result",result:Ue})}catch(be){T({kind:"donate-result",result:{total:_.size,donated:0,errors:[{session_id:"",error:String(be)}]}})}},[_,pe]),Ce=()=>{S.kind==="donate-result"&&S.result.donated>0&&v(new Set),T({kind:"hidden"})},Tt=()=>{switch(S.kind){case"donate-confirm":return m.jsx(rv,{sessionCount:_.size,onConfirm:It,onCancel:Ce});case"donating":return m.jsx(vg,{title:"Donating...",message:`Donating ${_.size} session${_.size!==1?"s":""}...`,onConfirm:()=>{},onCancel:()=>{},loading:!0});case"donate-result":{const be=S.result,Ue=be.errors.length>0,yt=[`Donated: ${be.donated}`,`Total: ${be.total}`];if(Ue){yt.push(""),yt.push(`Errors: ${be.errors.length}`);for(const Ut of be.errors.slice(0,3))yt.push(`  ${Ut.session_id||"—"}: ${Ut.error}`)}return m.jsx(vg,{title:Ue?"Completed with errors":"Donation complete",message:yt.join(`
`),confirmLabel:"OK",cancelLabel:"Close",onConfirm:Ce,onCancel:Ce})}default:return null}};return k?m.jsx(nd.Provider,{value:he,children:m.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-zinc-950 text-zinc-100",children:[m.jsxs("div",{className:"shrink-0 flex items-center justify-between px-4 py-2 bg-violet-900/30 border-b border-violet-700/50",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Q0,{className:"w-4 h-4 text-violet-400"}),m.jsx("span",{className:"text-sm text-violet-300 font-medium",children:"Shared session"})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("img",{src:"/icon.png",alt:"VibeLens",className:"w-6 h-6"}),m.jsx("span",{className:"text-sm font-bold text-cyan-400",children:"VibeLens"})]})]}),m.jsx("div",{className:"flex-1 min-h-0",children:m.jsx(CM,{shareToken:k})})]})}):m.jsx(nd.Provider,{value:he,children:m.jsxs("div",{className:"flex h-full overflow-hidden bg-zinc-950 text-zinc-100",children:[t&&m.jsxs("aside",{style:{width:D},className:"relative border-r border-zinc-800 flex flex-col shrink-0 bg-zinc-900",children:[m.jsx(Bf,{side:"left",onResize:ze}),m.jsxs("div",{className:"flex items-center justify-between px-4 h-[75px] border-b border-zinc-800 sticky top-0",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("img",{src:"/icon.png",alt:"VibeLens",className:"w-12 h-12"}),m.jsx("h1",{className:"text-2xl font-bold text-cyan-400",children:"VibeLens"})]}),m.jsx("button",{onClick:()=>a(!1),className:"text-zinc-500 hover:text-zinc-300 transition",title:"Collapse sidebar",children:m.jsx(I_,{className:"w-4 h-4"})})]}),m.jsxs("div",{className:"shrink-0 border-b border-zinc-800 px-3 py-2.5 grid grid-cols-3 gap-2 text-xs text-zinc-400",children:[m.jsxs("button",{onClick:()=>w(!0),className:"flex items-center justify-center gap-1.5 py-1.5 text-xs font-medium bg-violet-600 hover:bg-violet-500 text-white rounded transition",title:"Upload conversation files",children:[m.jsx(v_,{className:"w-3.5 h-3.5"}),"Upload"]}),m.jsxs("button",{onClick:lt,disabled:_.size===0,className:"flex items-center justify-center gap-1.5 py-1.5 text-xs font-medium bg-emerald-600 hover:bg-emerald-500 text-white rounded transition disabled:opacity-40 disabled:cursor-not-allowed",title:"Download selected sessions as zip",children:[m.jsx(Io,{className:"w-3.5 h-3.5"}),"Download"]}),m.jsxs("button",{onClick:We,disabled:_.size===0,className:"flex items-center justify-center gap-1.5 py-1.5 text-xs font-medium bg-rose-600 hover:bg-rose-500 text-white rounded transition disabled:opacity-40 disabled:cursor-not-allowed",title:"Donate selected sessions for research",children:[m.jsx(k_,{className:"w-3.5 h-3.5"}),"Donate"]})]}),m.jsx(mv,{sessions:l,selectedId:c,onSelect:Re,checkedIds:_,onCheckedChange:v,viewMode:q,onViewModeChange:K,agentFilter:ae,onAgentFilterChange:ie,availableAgents:Le}),m.jsxs("div",{className:"shrink-0 border-t border-zinc-800 px-3 py-2 flex items-center justify-between text-xs text-zinc-400",children:[m.jsxs("span",{children:[l.length," sessions"]}),q==="time"&&m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx("button",{onClick:()=>p(Math.max(0,g-1)),disabled:g===0||b,className:"p-1 hover:bg-zinc-800 disabled:opacity-50 disabled:cursor-not-allowed rounded transition",title:"Previous page",children:m.jsx(o_,{className:"w-4 h-4"})}),m.jsx("span",{className:"px-1 text-xs",children:g+1}),m.jsx("button",{onClick:()=>p(g+1),disabled:l.length<ce||b,className:"p-1 hover:bg-zinc-800 disabled:opacity-50 disabled:cursor-not-allowed rounded transition",title:"Next page",children:m.jsx(Ri,{className:"w-4 h-4"})})]})]})]}),m.jsxs("main",{className:"flex-1 flex flex-col min-w-0 bg-zinc-950",children:[m.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-zinc-800 bg-zinc-900/80",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[!t&&m.jsx("button",{onClick:()=>a(!0),className:"p-1.5 mr-1 text-zinc-500 hover:text-zinc-300 bg-zinc-800 hover:bg-zinc-700 border border-zinc-700/50 rounded transition",title:"Expand sidebar",children:m.jsx(R_,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>X("browse"),className:`px-4 py-1.5 text-sm font-semibold rounded-md transition ${L==="browse"?"bg-cyan-600/20 text-cyan-300 border border-cyan-500/30":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800"}`,children:"Conversation"}),m.jsx("button",{onClick:()=>X("analyze"),className:`px-4 py-1.5 text-sm font-semibold rounded-md transition ${L==="analyze"?"bg-cyan-600/20 text-cyan-300 border border-cyan-500/30":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800"}`,children:"Dashboard"})]}),m.jsx("button",{onClick:()=>le(!0),className:"p-1.5 text-zinc-500 hover:text-zinc-300 hover:bg-zinc-800 rounded transition",title:"Settings",children:m.jsx($_,{className:"w-6 h-6"})})]}),m.jsx("div",{className:"flex-1 min-h-0 relative",children:L==="analyze"?m.jsx(KM,{cache:qe}):c?m.jsx(Cx,{sessionId:c}):m.jsx("div",{className:"flex items-center justify-center h-full",children:m.jsxs("div",{className:"text-center",children:[m.jsx("div",{className:"text-5xl mb-4 opacity-50",children:"✨"}),m.jsx("p",{className:"text-lg font-medium text-zinc-300 mb-1",children:"Welcome to VibeLens"}),m.jsx("p",{className:"text-sm text-zinc-500 mb-6",children:"Select a session from the sidebar to explore agent conversations"}),m.jsxs("div",{className:"text-xs text-zinc-600",children:[m.jsxs("p",{children:[l.length," sessions loaded"]}),m.jsxs("p",{children:[o.length," projects available"]})]})]})})})]}),Tt(),A&&m.jsx(LM,{onClose:()=>w(!1),onComplete:()=>z(be=>be+1)}),ne&&m.jsx(eC,{onClose:()=>le(!1)})]})})}G1.createRoot(document.getElementById("root")).render(m.jsx(F.StrictMode,{children:m.jsx(QM,{children:m.jsx(tC,{})})}));
