difit 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +12 -12
- package/README.ko.md +12 -12
- package/README.md +12 -12
- package/README.zh.md +12 -12
- package/dist/cli/index.js +2 -1
- package/dist/cli/index.test.js +46 -35
- package/dist/client/assets/index-CJFEXHVo.css +1 -0
- package/dist/client/assets/index-DkSWqPfG.js +67 -0
- package/dist/client/assets/{prism-csharp-D3NlTryR.js → prism-csharp-B0flB6m_.js} +1 -1
- package/dist/client/assets/{prism-hcl-DZVjazu2.js → prism-hcl-Dw-ceyEl.js} +1 -1
- package/dist/client/assets/{prism-java-k7EVmN3s.js → prism-java-NEfmWs-a.js} +1 -1
- package/dist/client/assets/{prism-perl-B1S0YO1W.js → prism-perl-BBlpkdoq.js} +1 -1
- package/dist/client/assets/{prism-php-CNhhoL1S.js → prism-php-C05TZp5_.js} +1 -1
- package/dist/client/assets/{prism-ruby-CzbEXQlm.js → prism-ruby-C_UU6C7J.js} +1 -1
- package/dist/client/assets/{prism-solidity-Cfi9Y6r5.js → prism-solidity-Dy4Vtzco.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +72 -3
- package/dist/server/server.test.js +4 -4
- package/dist/tui/App.js +7 -6
- package/dist/tui/components/StatusBar.d.ts +1 -1
- package/dist/tui/components/StatusBar.js +3 -3
- package/dist/types/diff.d.ts +3 -2
- package/dist/utils/diffMode.d.ts +3 -0
- package/dist/utils/diffMode.js +13 -0
- package/dist/utils/editorOptions.d.ts +26 -0
- package/dist/utils/editorOptions.js +33 -0
- package/package.json +2 -2
- package/dist/client/assets/index-CWKBoK4D.js +0 -59
- package/dist/client/assets/index-DLreElSO.css +0 -1
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
function Tw(t,r){for(var l=0;l<r.length;l++){const a=r[l];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const u=Object.getOwnPropertyDescriptor(a,s);u&&Object.defineProperty(t,s,u.get?u:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function l(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(s){if(s.ep)return;s.ep=!0;const u=l(s);fetch(s.href,u)}})();function Bs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pf={exports:{}},Sa={};var Xm;function Nw(){if(Xm)return Sa;Xm=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(a,s,u){var c=null;if(u!==void 0&&(c=""+u),s.key!==void 0&&(c=""+s.key),"key"in s){u={};for(var d in s)d!=="key"&&(u[d]=s[d])}else u=s;return s=u.ref,{$$typeof:t,type:a,key:c,ref:s!==void 0?s:null,props:u}}return Sa.Fragment=r,Sa.jsx=l,Sa.jsxs=l,Sa}var Zm;function Rw(){return Zm||(Zm=1,pf.exports=Nw()),pf.exports}var v=Rw(),gf={exports:{}},_e={};var Qm;function _w(){if(Qm)return _e;Qm=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),x=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=x&&O[x]||O["@@iterator"],typeof O=="function"?O:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,A={};function E(O,V,T){this.props=O,this.context=V,this.refs=A,this.updater=T||w}E.prototype.isReactComponent={},E.prototype.setState=function(O,V){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,V,"setState")},E.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}C.prototype=E.prototype;function N(O,V,T){this.props=O,this.context=V,this.refs=A,this.updater=T||w}var B=N.prototype=new C;B.constructor=N,k(B,E.prototype),B.isPureReactComponent=!0;var G=Array.isArray;function D(){}var U={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function P(O,V,T){var le=T.ref;return{$$typeof:t,type:O,key:V,ref:le!==void 0?le:null,props:T}}function M(O,V){return P(O.type,V,O.props)}function q(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function $(O){var V={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(T){return V[T]})}var J=/\/+/g;function F(O,V){return typeof O=="object"&&O!==null&&O.key!=null?$(""+O.key):V.toString(36)}function X(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(D,D):(O.status="pending",O.then(function(V){O.status==="pending"&&(O.status="fulfilled",O.value=V)},function(V){O.status==="pending"&&(O.status="rejected",O.reason=V)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function L(O,V,T,le,ce){var fe=typeof O;(fe==="undefined"||fe==="boolean")&&(O=null);var de=!1;if(O===null)de=!0;else switch(fe){case"bigint":case"string":case"number":de=!0;break;case"object":switch(O.$$typeof){case t:case r:de=!0;break;case y:return de=O._init,L(de(O._payload),V,T,le,ce)}}if(de)return ce=ce(O),de=le===""?"."+F(O,0):le,G(ce)?(T="",de!=null&&(T=de.replace(J,"$&/")+"/"),L(ce,V,T,"",function(be){return be})):ce!=null&&(q(ce)&&(ce=M(ce,T+(ce.key==null||O&&O.key===ce.key?"":(""+ce.key).replace(J,"$&/")+"/")+de)),V.push(ce)),1;de=0;var ge=le===""?".":le+":";if(G(O))for(var he=0;he<O.length;he++)le=O[he],fe=ge+F(le,he),de+=L(le,V,T,fe,ce);else if(he=b(O),typeof he=="function")for(O=he.call(O),he=0;!(le=O.next()).done;)le=le.value,fe=ge+F(le,he++),de+=L(le,V,T,fe,ce);else if(fe==="object"){if(typeof O.then=="function")return L(X(O),V,T,le,ce);throw V=String(O),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return de}function z(O,V,T){if(O==null)return O;var le=[],ce=0;return L(O,le,"","",function(fe){return V.call(T,fe,ce++)}),le}function I(O){if(O._status===-1){var V=O._result;V=V(),V.then(function(T){(O._status===0||O._status===-1)&&(O._status=1,O._result=T)},function(T){(O._status===0||O._status===-1)&&(O._status=2,O._result=T)}),O._status===-1&&(O._status=0,O._result=V)}if(O._status===1)return O._result.default;throw O._result}var K=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},R={map:z,forEach:function(O,V,T){z(O,function(){V.apply(this,arguments)},T)},count:function(O){var V=0;return z(O,function(){V++}),V},toArray:function(O){return z(O,function(V){return V})||[]},only:function(O){if(!q(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return _e.Activity=m,_e.Children=R,_e.Component=E,_e.Fragment=l,_e.Profiler=s,_e.PureComponent=N,_e.StrictMode=a,_e.Suspense=p,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,_e.__COMPILER_RUNTIME={__proto__:null,c:function(O){return U.H.useMemoCache(O)}},_e.cache=function(O){return function(){return O.apply(null,arguments)}},_e.cacheSignal=function(){return null},_e.cloneElement=function(O,V,T){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var le=k({},O.props),ce=O.key;if(V!=null)for(fe in V.key!==void 0&&(ce=""+V.key),V)!Z.call(V,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&V.ref===void 0||(le[fe]=V[fe]);var fe=arguments.length-2;if(fe===1)le.children=T;else if(1<fe){for(var de=Array(fe),ge=0;ge<fe;ge++)de[ge]=arguments[ge+2];le.children=de}return P(O.type,ce,le)},_e.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:u,_context:O},O},_e.createElement=function(O,V,T){var le,ce={},fe=null;if(V!=null)for(le in V.key!==void 0&&(fe=""+V.key),V)Z.call(V,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ce[le]=V[le]);var de=arguments.length-2;if(de===1)ce.children=T;else if(1<de){for(var ge=Array(de),he=0;he<de;he++)ge[he]=arguments[he+2];ce.children=ge}if(O&&O.defaultProps)for(le in de=O.defaultProps,de)ce[le]===void 0&&(ce[le]=de[le]);return P(O,fe,ce)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(O){return{$$typeof:d,render:O}},_e.isValidElement=q,_e.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:I}},_e.memo=function(O,V){return{$$typeof:h,type:O,compare:V===void 0?null:V}},_e.startTransition=function(O){var V=U.T,T={};U.T=T;try{var le=O(),ce=U.S;ce!==null&&ce(T,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(D,K)}catch(fe){K(fe)}finally{V!==null&&T.types!==null&&(V.types=T.types),U.T=V}},_e.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},_e.use=function(O){return U.H.use(O)},_e.useActionState=function(O,V,T){return U.H.useActionState(O,V,T)},_e.useCallback=function(O,V){return U.H.useCallback(O,V)},_e.useContext=function(O){return U.H.useContext(O)},_e.useDebugValue=function(){},_e.useDeferredValue=function(O,V){return U.H.useDeferredValue(O,V)},_e.useEffect=function(O,V){return U.H.useEffect(O,V)},_e.useEffectEvent=function(O){return U.H.useEffectEvent(O)},_e.useId=function(){return U.H.useId()},_e.useImperativeHandle=function(O,V,T){return U.H.useImperativeHandle(O,V,T)},_e.useInsertionEffect=function(O,V){return U.H.useInsertionEffect(O,V)},_e.useLayoutEffect=function(O,V){return U.H.useLayoutEffect(O,V)},_e.useMemo=function(O,V){return U.H.useMemo(O,V)},_e.useOptimistic=function(O,V){return U.H.useOptimistic(O,V)},_e.useReducer=function(O,V,T){return U.H.useReducer(O,V,T)},_e.useRef=function(O){return U.H.useRef(O)},_e.useState=function(O){return U.H.useState(O)},_e.useSyncExternalStore=function(O,V,T){return U.H.useSyncExternalStore(O,V,T)},_e.useTransition=function(){return U.H.useTransition()},_e.version="19.2.3",_e}var Km;function Cd(){return Km||(Km=1,gf.exports=_w()),gf.exports}var j=Cd();const Dn=Bs(j),Qb=Tw({__proto__:null,default:Dn},[j]);var mf={exports:{}},ka={},yf={exports:{}},bf={};var Jm;function Lw(){return Jm||(Jm=1,(function(t){function r(L,z){var I=L.length;L.push(z);e:for(;0<I;){var K=I-1>>>1,R=L[K];if(0<s(R,z))L[K]=z,L[I]=R,I=K;else break e}}function l(L){return L.length===0?null:L[0]}function a(L){if(L.length===0)return null;var z=L[0],I=L.pop();if(I!==z){L[0]=I;e:for(var K=0,R=L.length,O=R>>>1;K<O;){var V=2*(K+1)-1,T=L[V],le=V+1,ce=L[le];if(0>s(T,I))le<R&&0>s(ce,T)?(L[K]=ce,L[le]=I,K=le):(L[K]=T,L[V]=I,K=V);else if(le<R&&0>s(ce,I))L[K]=ce,L[le]=I,K=le;else break e}}return z}function s(L,z){var I=L.sortIndex-z.sortIndex;return I!==0?I:L.id-z.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,d=c.now();t.unstable_now=function(){return c.now()-d}}var p=[],h=[],y=1,m=null,x=3,b=!1,w=!1,k=!1,A=!1,E=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function B(L){for(var z=l(h);z!==null;){if(z.callback===null)a(h);else if(z.startTime<=L)a(h),z.sortIndex=z.expirationTime,r(p,z);else break;z=l(h)}}function G(L){if(k=!1,B(L),!w)if(l(p)!==null)w=!0,D||(D=!0,$());else{var z=l(h);z!==null&&X(G,z.startTime-L)}}var D=!1,U=-1,Z=5,P=-1;function M(){return A?!0:!(t.unstable_now()-P<Z)}function q(){if(A=!1,D){var L=t.unstable_now();P=L;var z=!0;try{e:{w=!1,k&&(k=!1,C(U),U=-1),b=!0;var I=x;try{t:{for(B(L),m=l(p);m!==null&&!(m.expirationTime>L&&M());){var K=m.callback;if(typeof K=="function"){m.callback=null,x=m.priorityLevel;var R=K(m.expirationTime<=L);if(L=t.unstable_now(),typeof R=="function"){m.callback=R,B(L),z=!0;break t}m===l(p)&&a(p),B(L)}else a(p);m=l(p)}if(m!==null)z=!0;else{var O=l(h);O!==null&&X(G,O.startTime-L),z=!1}}break e}finally{m=null,x=I,b=!1}z=void 0}}finally{z?$():D=!1}}}var $;if(typeof N=="function")$=function(){N(q)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,F=J.port2;J.port1.onmessage=q,$=function(){F.postMessage(null)}}else $=function(){E(q,0)};function X(L,z){U=E(function(){L(t.unstable_now())},z)}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"):Z=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(L){switch(x){case 1:case 2:case 3:var z=3;break;default:z=x}var I=x;x=z;try{return L()}finally{x=I}},t.unstable_requestPaint=function(){A=!0},t.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var I=x;x=L;try{return z()}finally{x=I}},t.unstable_scheduleCallback=function(L,z,I){var K=t.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?K+I:K):I=K,L){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=I+R,L={id:y++,callback:z,priorityLevel:L,startTime:I,expirationTime:R,sortIndex:-1},I>K?(L.sortIndex=I,r(h,L),l(p)===null&&L===l(h)&&(k?(C(U),U=-1):k=!0,X(G,I-K))):(L.sortIndex=R,r(p,L),w||b||(w=!0,D||(D=!0,$()))),L},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(L){var z=x;return function(){var I=x;x=z;try{return L.apply(this,arguments)}finally{x=I}}}})(bf)),bf}var Wm;function jw(){return Wm||(Wm=1,yf.exports=Lw()),yf.exports}var xf={exports:{}},Bt={};var ey;function Dw(){if(ey)return Bt;ey=1;var t=Cd();function r(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var a={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(p,h,y){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:m==null?null:""+m,children:p,containerInfo:h,implementation:y}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Bt.createPortal=function(p,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return u(p,h,null,y)},Bt.flushSync=function(p){var h=c.T,y=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=h,a.p=y,a.d.f()}},Bt.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(p,h))},Bt.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},Bt.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var y=h.as,m=d(y,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?a.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:x,fetchPriority:b}):y==="script"&&a.d.X(p,{crossOrigin:m,integrity:x,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Bt.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=d(h.as,h.crossOrigin);a.d.M(p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(p)},Bt.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,m=d(y,h.crossOrigin);a.d.L(p,y,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Bt.preloadModule=function(p,h){if(typeof p=="string")if(h){var y=d(h.as,h.crossOrigin);a.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(p)},Bt.requestFormReset=function(p){a.d.r(p)},Bt.unstable_batchedUpdates=function(p,h){return p(h)},Bt.useFormState=function(p,h,y){return c.H.useFormState(p,h,y)},Bt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Bt.version="19.2.3",Bt}var ty;function Kb(){if(ty)return xf.exports;ty=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(r){console.error(r)}}return t(),xf.exports=Dw(),xf.exports}var ny;function Ow(){if(ny)return ka;ny=1;var t=jw(),r=Cd(),l=Kb();function a(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 s(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 d(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 p(e){if(u(e)!==e)throw Error(a(188))}function h(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(a(188));return n!==e?null:e}for(var i=e,o=n;;){var f=i.return;if(f===null)break;var g=f.alternate;if(g===null){if(o=f.return,o!==null){i=o;continue}break}if(f.child===g.child){for(g=f.child;g;){if(g===i)return p(f),e;if(g===o)return p(f),n;g=g.sibling}throw Error(a(188))}if(i.return!==o.return)i=f,o=g;else{for(var S=!1,_=f.child;_;){if(_===i){S=!0,i=f,o=g;break}if(_===o){S=!0,o=f,i=g;break}_=_.sibling}if(!S){for(_=g.child;_;){if(_===i){S=!0,i=g,o=f;break}if(_===o){S=!0,o=g,i=f;break}_=_.sibling}if(!S)throw Error(a(189))}}if(i.alternate!==o)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var m=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),N=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),M=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=q&&e[q]||e["@@iterator"],typeof e=="function"?e:null)}var J=Symbol.for("react.client.reference");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===J?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case E:return"Profiler";case A:return"StrictMode";case G:return"Suspense";case D:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case N:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case B:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return n=e.displayName||null,n!==null?n:F(e.type)||"Memo";case Z:n=e._payload,e=e._init;try{return F(e(n))}catch{}}return null}var X=Array.isArray,L=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},K=[],R=-1;function O(e){return{current:e}}function V(e){0>R||(e.current=K[R],K[R]=null,R--)}function T(e,n){R++,K[R]=e.current,e.current=n}var le=O(null),ce=O(null),fe=O(null),de=O(null);function ge(e,n){switch(T(fe,n),T(ce,e),T(le,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?ym(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=ym(n),e=bm(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(le),T(le,e)}function he(){V(le),V(ce),V(fe)}function be(e){e.memoizedState!==null&&T(de,e);var n=le.current,i=bm(n,e.type);n!==i&&(T(ce,e),T(le,i))}function Re(e){ce.current===e&&(V(le),V(ce)),de.current===e&&(V(de),ba._currentValue=I)}var xe,Le;function Te(e){if(xe===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);xe=n&&n[1]||"",Le=-1<i.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+xe+e+Le}var Qe=!1;function Me(e,n){if(!e||Qe)return"";Qe=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(ne){var te=ne}Reflect.construct(e,[],ue)}else{try{ue.call()}catch(ne){te=ne}e.call(ue.prototype)}}else{try{throw Error()}catch(ne){te=ne}(ue=e())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(ne){if(ne&&te&&typeof ne.stack=="string")return[ne.stack,te.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=o.DetermineComponentFrameRoot(),S=g[0],_=g[1];if(S&&_){var H=S.split(`
|
|
4
|
-
`),ee=_.split(`
|
|
5
|
-
`);for(f=o=0;o<H.length&&!H[o].includes("DetermineComponentFrameRoot");)o++;for(;f<ee.length&&!ee[f].includes("DetermineComponentFrameRoot");)f++;if(o===H.length||f===ee.length)for(o=H.length-1,f=ee.length-1;1<=o&&0<=f&&H[o]!==ee[f];)f--;for(;1<=o&&0<=f;o--,f--)if(H[o]!==ee[f]){if(o!==1||f!==1)do if(o--,f--,0>f||H[o]!==ee[f]){var ie=`
|
|
6
|
-
`+H[o].replace(" at new "," at ");return e.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",e.displayName)),ie}while(1<=o&&0<=f);break}}}finally{Qe=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Te(i):""}function Ue(e,n){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te("Lazy");case 13:return e.child!==n&&n!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return Me(e.type,!1);case 11:return Me(e.type.render,!1);case 1:return Me(e.type,!0);case 31:return Te("Activity");default:return""}}function _t(e){try{var n="",i=null;do n+=Ue(e,i),i=e,e=e.return;while(e);return n}catch(o){return`
|
|
7
|
-
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}}var ht=Object.prototype.hasOwnProperty,pt=t.unstable_scheduleCallback,Vt=t.unstable_cancelCallback,Pt=t.unstable_shouldYield,$t=t.unstable_requestPaint,at=t.unstable_now,vr=t.unstable_getCurrentPriorityLevel,ae=t.unstable_ImmediatePriority,me=t.unstable_UserBlockingPriority,Ce=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Pe=t.unstable_IdlePriority,Lt=t.log,sn=t.unstable_setDisableYieldValue,jt=null,gt=null;function Tt(e){if(typeof Lt=="function"&&sn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(jt,e)}catch{}}var Ke=Math.clz32?Math.clz32:Xn,On=Math.log,Zt=Math.LN2;function Xn(e){return e>>>=0,e===0?32:31-(On(e)/Zt|0)|0}var Rl=256,nl=262144,Zn=4194304;function Qn(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 _l(e,n,i){var o=e.pendingLanes;if(o===0)return 0;var f=0,g=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var _=o&134217727;return _!==0?(o=_&~g,o!==0?f=Qn(o):(S&=_,S!==0?f=Qn(S):i||(i=_&~e,i!==0&&(f=Qn(i))))):(_=o&~g,_!==0?f=Qn(_):S!==0?f=Qn(S):i||(i=o&~e,i!==0&&(f=Qn(i)))),f===0?0:n!==0&&n!==f&&(n&g)===0&&(g=f&-f,i=n&-n,g>=i||g===32&&(i&4194048)!==0)?n:f}function rl(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function ru(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 wr(){var e=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),e}function Ll(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function Sr(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lu(e,n,i,o,f,g){var S=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.entanglements,H=e.expirationTimes,ee=e.hiddenUpdates;for(i=S&~i;0<i;){var ie=31-Ke(i),ue=1<<ie;_[ie]=0,H[ie]=-1;var te=ee[ie];if(te!==null)for(ee[ie]=null,ie=0;ie<te.length;ie++){var ne=te[ie];ne!==null&&(ne.lane&=-536870913)}i&=~ue}o!==0&&Pa(e,o,0),g!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=g&~(S&~n))}function Pa(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-Ke(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|i&261930}function Li(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var o=31-Ke(i),f=1<<o;f&n|e[o]&n&&(e[o]|=n),i&=~f}}function $a(e,n){var i=n&-n;return i=(i&42)!==0?1:jl(i),(i&(e.suspendedLanes|n))!==0?0:i}function jl(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 ji(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ga(){var e=z.p;return e!==0?e:(e=window.event,e===void 0?32:Hm(e.type))}function Ya(e,n){var i=z.p;try{return z.p=e,n()}finally{z.p=i}}var re=Math.random().toString(36).slice(2),ye="__reactFiber$"+re,we="__reactProps$"+re,Ee="__reactContainer$"+re,ft="__reactEvents$"+re,Dl="__reactListeners$"+re,Ol="__reactHandles$"+re,lh="__reactResources$"+re,Di="__reactMarker$"+re;function iu(e){delete e[ye],delete e[we],delete e[ft],delete e[Dl],delete e[Ol]}function Ml(e){var n=e[ye];if(n)return n;for(var i=e.parentNode;i;){if(n=i[Ee]||i[ye]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Cm(e);e!==null;){if(i=e[ye])return i;e=Cm(e)}return n}e=i,i=e.parentNode}return null}function zl(e){if(e=e[ye]||e[Ee]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Oi(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function Bl(e){var n=e[lh];return n||(n=e[lh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Nt(e){e[Di]=!0}var ih=new Set,ah={};function ll(e,n){Fl(e,n),Fl(e+"Capture",n)}function Fl(e,n){for(ah[e]=n,e=0;e<n.length;e++)ih.add(n[e])}var b0=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]*$"),oh={},sh={};function x0(e){return ht.call(sh,e)?!0:ht.call(oh,e)?!1:b0.test(e)?sh[e]=!0:(oh[e]=!0,!1)}function Xa(e,n,i){if(x0(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Za(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 Kn(e,n,i,o){if(o===null)e.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+o)}}function wn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function v0(e,n,i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,g=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(S){i=""+S,g.call(this,S)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(S){i=""+S},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function au(e){if(!e._valueTracker){var n=uh(e)?"checked":"value";e._valueTracker=v0(e,n,""+e[n])}}function ch(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return e&&(o=uh(e)?e.checked?"true":"false":e.value),e=o,e!==i?(n.setValue(e),!0):!1}function Qa(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 w0=/[\n"\\]/g;function Sn(e){return e.replace(w0,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ou(e,n,i,o,f,g,S,_){e.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.type=S:e.removeAttribute("type"),n!=null?S==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+wn(n)):e.value!==""+wn(n)&&(e.value=""+wn(n)):S!=="submit"&&S!=="reset"||e.removeAttribute("value"),n!=null?su(e,S,wn(n)):i!=null?su(e,S,wn(i)):o!=null&&e.removeAttribute("value"),f==null&&g!=null&&(e.defaultChecked=!!g),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+wn(_):e.removeAttribute("name")}function fh(e,n,i,o,f,g,S,_){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.type=g),n!=null||i!=null){if(!(g!=="submit"&&g!=="reset"||n!=null)){au(e);return}i=i!=null?""+wn(i):"",n=n!=null?""+wn(n):i,_||n===e.value||(e.value=n),e.defaultValue=n}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=_?e.checked:!!o,e.defaultChecked=!!o,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(e.name=S),au(e)}function su(e,n,i){n==="number"&&Qa(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Il(e,n,i,o){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&&o&&(e[i].defaultSelected=!0)}else{for(i=""+wn(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,o&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function dh(e,n,i){if(n!=null&&(n=""+wn(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+wn(i):""}function hh(e,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(a(92));if(X(o)){if(1<o.length)throw Error(a(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=wn(n),e.defaultValue=i,o=e.textContent,o===i&&o!==""&&o!==null&&(e.value=o),au(e)}function Ul(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var S0=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 ph(e,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,i):typeof i!="number"||i===0||S0.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function gh(e,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var f in n)o=n[f],n.hasOwnProperty(f)&&i[f]!==o&&ph(e,f,o)}else for(var g in n)n.hasOwnProperty(g)&&ph(e,g,n[g])}function uu(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 k0=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"]]),E0=/^[\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 Ka(e){return E0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jn(){}var cu=null;function fu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hl=null,ql=null;function mh(e){var n=zl(e);if(n&&(e=n.stateNode)){var i=e[we]||null;e:switch(e=n.stateNode,n.type){case"input":if(ou(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="'+Sn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==e&&o.form===e.form){var f=o[we]||null;if(!f)throw Error(a(90));ou(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===e.form&&ch(o)}break e;case"textarea":dh(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Il(e,!!i.multiple,n,!1)}}}var du=!1;function yh(e,n,i){if(du)return e(n,i);du=!0;try{var o=e(n);return o}finally{if(du=!1,(Hl!==null||ql!==null)&&(Io(),Hl&&(n=Hl,e=ql,ql=Hl=null,mh(n),e)))for(n=0;n<e.length;n++)mh(e[n])}}function Mi(e,n){var i=e.stateNode;if(i===null)return null;var o=i[we]||null;if(o===null)return null;i=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hu=!1;if(Wn)try{var zi={};Object.defineProperty(zi,"passive",{get:function(){hu=!0}}),window.addEventListener("test",zi,zi),window.removeEventListener("test",zi,zi)}catch{hu=!1}var kr=null,pu=null,Ja=null;function bh(){if(Ja)return Ja;var e,n=pu,i=n.length,o,f="value"in kr?kr.value:kr.textContent,g=f.length;for(e=0;e<i&&n[e]===f[e];e++);var S=i-e;for(o=1;o<=S&&n[i-o]===f[g-o];o++);return Ja=f.slice(e,1<o?1-o:void 0)}function Wa(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 eo(){return!0}function xh(){return!1}function Qt(e){function n(i,o,f,g,S){this._reactName=i,this._targetInst=f,this.type=o,this.nativeEvent=g,this.target=S,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(i=e[_],this[_]=i?i(g):g[_]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?eo:xh,this.isPropagationStopped=xh,this}return m(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=eo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=eo)},persist:function(){},isPersistent:eo}),n}var il={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},to=Qt(il),Bi=m({},il,{view:0,detail:0}),C0=Qt(Bi),gu,mu,Fi,no=m({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bu,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!==Fi&&(Fi&&e.type==="mousemove"?(gu=e.screenX-Fi.screenX,mu=e.screenY-Fi.screenY):mu=gu=0,Fi=e),gu)},movementY:function(e){return"movementY"in e?e.movementY:mu}}),vh=Qt(no),A0=m({},no,{dataTransfer:0}),T0=Qt(A0),N0=m({},Bi,{relatedTarget:0}),yu=Qt(N0),R0=m({},il,{animationName:0,elapsedTime:0,pseudoElement:0}),_0=Qt(R0),L0=m({},il,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),j0=Qt(L0),D0=m({},il,{data:0}),wh=Qt(D0),O0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M0={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"},z0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B0(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=z0[e])?!!n[e]:!1}function bu(){return B0}var F0=m({},Bi,{key:function(e){if(e.key){var n=O0[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Wa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?M0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bu,charCode:function(e){return e.type==="keypress"?Wa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I0=Qt(F0),U0=m({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sh=Qt(U0),H0=m({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bu}),q0=Qt(H0),V0=m({},il,{propertyName:0,elapsedTime:0,pseudoElement:0}),P0=Qt(V0),$0=m({},no,{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}),G0=Qt($0),Y0=m({},il,{newState:0,oldState:0}),X0=Qt(Y0),Z0=[9,13,27,32],xu=Wn&&"CompositionEvent"in window,Ii=null;Wn&&"documentMode"in document&&(Ii=document.documentMode);var Q0=Wn&&"TextEvent"in window&&!Ii,kh=Wn&&(!xu||Ii&&8<Ii&&11>=Ii),Eh=" ",Ch=!1;function Ah(e,n){switch(e){case"keyup":return Z0.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vl=!1;function K0(e,n){switch(e){case"compositionend":return Th(n);case"keypress":return n.which!==32?null:(Ch=!0,Eh);case"textInput":return e=n.data,e===Eh&&Ch?null:e;default:return null}}function J0(e,n){if(Vl)return e==="compositionend"||!xu&&Ah(e,n)?(e=bh(),Ja=pu=kr=null,Vl=!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 kh&&n.locale!=="ko"?null:n.data;default:return null}}var W0={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 Nh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!W0[e.type]:n==="textarea"}function Rh(e,n,i,o){Hl?ql?ql.push(o):ql=[o]:Hl=o,n=Go(n,"onChange"),0<n.length&&(i=new to("onChange","change",null,i,o),e.push({event:i,listeners:n}))}var Ui=null,Hi=null;function ev(e){fm(e,0)}function ro(e){var n=Oi(e);if(ch(n))return e}function _h(e,n){if(e==="change")return n}var Lh=!1;if(Wn){var vu;if(Wn){var wu="oninput"in document;if(!wu){var jh=document.createElement("div");jh.setAttribute("oninput","return;"),wu=typeof jh.oninput=="function"}vu=wu}else vu=!1;Lh=vu&&(!document.documentMode||9<document.documentMode)}function Dh(){Ui&&(Ui.detachEvent("onpropertychange",Oh),Hi=Ui=null)}function Oh(e){if(e.propertyName==="value"&&ro(Hi)){var n=[];Rh(n,Hi,e,fu(e)),yh(ev,n)}}function tv(e,n,i){e==="focusin"?(Dh(),Ui=n,Hi=i,Ui.attachEvent("onpropertychange",Oh)):e==="focusout"&&Dh()}function nv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ro(Hi)}function rv(e,n){if(e==="click")return ro(n)}function lv(e,n){if(e==="input"||e==="change")return ro(n)}function iv(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var un=typeof Object.is=="function"?Object.is:iv;function qi(e,n){if(un(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var f=i[o];if(!ht.call(n,f)||!un(e[f],n[f]))return!1}return!0}function Mh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zh(e,n){var i=Mh(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=n&&o>=n)return{node:i,offset:n-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Mh(i)}}function Bh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Bh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Fh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Qa(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=Qa(e.document)}return n}function Su(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 av=Wn&&"documentMode"in document&&11>=document.documentMode,Pl=null,ku=null,Vi=null,Eu=!1;function Ih(e,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Eu||Pl==null||Pl!==Qa(o)||(o=Pl,"selectionStart"in o&&Su(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Vi&&qi(Vi,o)||(Vi=o,o=Go(ku,"onSelect"),0<o.length&&(n=new to("onSelect","select",null,n,i),e.push({event:n,listeners:o}),n.target=Pl)))}function al(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var $l={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},Cu={},Uh={};Wn&&(Uh=document.createElement("div").style,"AnimationEvent"in window||(delete $l.animationend.animation,delete $l.animationiteration.animation,delete $l.animationstart.animation),"TransitionEvent"in window||delete $l.transitionend.transition);function ol(e){if(Cu[e])return Cu[e];if(!$l[e])return e;var n=$l[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in Uh)return Cu[e]=n[i];return e}var Hh=ol("animationend"),qh=ol("animationiteration"),Vh=ol("animationstart"),ov=ol("transitionrun"),sv=ol("transitionstart"),uv=ol("transitioncancel"),Ph=ol("transitionend"),$h=new Map,Au="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(" ");Au.push("scrollEnd");function Mn(e,n){$h.set(e,n),ll(n,[e])}var lo=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)},kn=[],Gl=0,Tu=0;function io(){for(var e=Gl,n=Tu=Gl=0;n<e;){var i=kn[n];kn[n++]=null;var o=kn[n];kn[n++]=null;var f=kn[n];kn[n++]=null;var g=kn[n];if(kn[n++]=null,o!==null&&f!==null){var S=o.pending;S===null?f.next=f:(f.next=S.next,S.next=f),o.pending=f}g!==0&&Gh(i,f,g)}}function ao(e,n,i,o){kn[Gl++]=e,kn[Gl++]=n,kn[Gl++]=i,kn[Gl++]=o,Tu|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Nu(e,n,i,o){return ao(e,n,i,o),oo(e)}function sl(e,n){return ao(e,null,null,n),oo(e)}function Gh(e,n,i){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i);for(var f=!1,g=e.return;g!==null;)g.childLanes|=i,o=g.alternate,o!==null&&(o.childLanes|=i),g.tag===22&&(e=g.stateNode,e===null||e._visibility&1||(f=!0)),e=g,g=g.return;return e.tag===3?(g=e.stateNode,f&&n!==null&&(f=31-Ke(i),e=g.hiddenUpdates,o=e[f],o===null?e[f]=[n]:o.push(n),n.lane=i|536870912),g):null}function oo(e){if(50<fa)throw fa=0,Bc=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Yl={};function cv(e,n,i,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cn(e,n,i,o){return new cv(e,n,i,o)}function Ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function er(e,n){var i=e.alternate;return i===null?(i=cn(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 Yh(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 so(e,n,i,o,f,g){var S=0;if(o=e,typeof e=="function")Ru(e)&&(S=1);else if(typeof e=="string")S=gw(e,i,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=cn(31,i,n,f),e.elementType=P,e.lanes=g,e;case k:return ul(i.children,f,g,n);case A:S=8,f|=24;break;case E:return e=cn(12,i,n,f|2),e.elementType=E,e.lanes=g,e;case G:return e=cn(13,i,n,f),e.elementType=G,e.lanes=g,e;case D:return e=cn(19,i,n,f),e.elementType=D,e.lanes=g,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:S=10;break e;case C:S=9;break e;case B:S=11;break e;case U:S=14;break e;case Z:S=16,o=null;break e}S=29,i=Error(a(130,e===null?"null":typeof e,"")),o=null}return n=cn(S,i,n,f),n.elementType=e,n.type=o,n.lanes=g,n}function ul(e,n,i,o){return e=cn(7,e,o,n),e.lanes=i,e}function _u(e,n,i){return e=cn(6,e,null,n),e.lanes=i,e}function Xh(e){var n=cn(18,null,null,0);return n.stateNode=e,n}function Lu(e,n,i){return n=cn(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Zh=new WeakMap;function En(e,n){if(typeof e=="object"&&e!==null){var i=Zh.get(e);return i!==void 0?i:(n={value:e,source:n,stack:_t(n)},Zh.set(e,n),n)}return{value:e,source:n,stack:_t(n)}}var Xl=[],Zl=0,uo=null,Pi=0,Cn=[],An=0,Er=null,In=1,Un="";function tr(e,n){Xl[Zl++]=Pi,Xl[Zl++]=uo,uo=e,Pi=n}function Qh(e,n,i){Cn[An++]=In,Cn[An++]=Un,Cn[An++]=Er,Er=e;var o=In;e=Un;var f=32-Ke(o)-1;o&=~(1<<f),i+=1;var g=32-Ke(n)+f;if(30<g){var S=f-f%5;g=(o&(1<<S)-1).toString(32),o>>=S,f-=S,In=1<<32-Ke(n)+f|i<<f|o,Un=g+e}else In=1<<g|i<<f|o,Un=e}function ju(e){e.return!==null&&(tr(e,1),Qh(e,1,0))}function Du(e){for(;e===uo;)uo=Xl[--Zl],Xl[Zl]=null,Pi=Xl[--Zl],Xl[Zl]=null;for(;e===Er;)Er=Cn[--An],Cn[An]=null,Un=Cn[--An],Cn[An]=null,In=Cn[--An],Cn[An]=null}function Kh(e,n){Cn[An++]=In,Cn[An++]=Un,Cn[An++]=Er,In=n.id,Un=n.overflow,Er=e}var Dt=null,ut=null,Ve=!1,Cr=null,Tn=!1,Ou=Error(a(519));function Ar(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $i(En(n,e)),Ou}function Jh(e){var n=e.stateNode,i=e.type,o=e.memoizedProps;switch(n[ye]=e,n[we]=o,i){case"dialog":Fe("cancel",n),Fe("close",n);break;case"iframe":case"object":case"embed":Fe("load",n);break;case"video":case"audio":for(i=0;i<ha.length;i++)Fe(ha[i],n);break;case"source":Fe("error",n);break;case"img":case"image":case"link":Fe("error",n),Fe("load",n);break;case"details":Fe("toggle",n);break;case"input":Fe("invalid",n),fh(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Fe("invalid",n);break;case"textarea":Fe("invalid",n),hh(n,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||gm(n.textContent,i)?(o.popover!=null&&(Fe("beforetoggle",n),Fe("toggle",n)),o.onScroll!=null&&Fe("scroll",n),o.onScrollEnd!=null&&Fe("scrollend",n),o.onClick!=null&&(n.onclick=Jn),n=!0):n=!1,n||Ar(e,!0)}function Wh(e){for(Dt=e.return;Dt;)switch(Dt.tag){case 5:case 31:case 13:Tn=!1;return;case 27:case 3:Tn=!0;return;default:Dt=Dt.return}}function Ql(e){if(e!==Dt)return!1;if(!Ve)return Wh(e),Ve=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Jc(e.type,e.memoizedProps)),i=!i),i&&ut&&Ar(e),Wh(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));ut=Em(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));ut=Em(e)}else n===27?(n=ut,Ur(e.type)?(e=rf,rf=null,ut=e):ut=n):ut=Dt?Rn(e.stateNode.nextSibling):null;return!0}function cl(){ut=Dt=null,Ve=!1}function Mu(){var e=Cr;return e!==null&&(en===null?en=e:en.push.apply(en,e),Cr=null),e}function $i(e){Cr===null?Cr=[e]:Cr.push(e)}var zu=O(null),fl=null,nr=null;function Tr(e,n,i){T(zu,n._currentValue),n._currentValue=i}function rr(e){e._currentValue=zu.current,V(zu)}function Bu(e,n,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===i)break;e=e.return}}function Fu(e,n,i,o){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var g=f.dependencies;if(g!==null){var S=f.child;g=g.firstContext;e:for(;g!==null;){var _=g;g=f;for(var H=0;H<n.length;H++)if(_.context===n[H]){g.lanes|=i,_=g.alternate,_!==null&&(_.lanes|=i),Bu(g.return,i,e),o||(S=null);break e}g=_.next}}else if(f.tag===18){if(S=f.return,S===null)throw Error(a(341));S.lanes|=i,g=S.alternate,g!==null&&(g.lanes|=i),Bu(S,i,e),S=null}else S=f.child;if(S!==null)S.return=f;else for(S=f;S!==null;){if(S===e){S=null;break}if(f=S.sibling,f!==null){f.return=S.return,S=f;break}S=S.return}f=S}}function Kl(e,n,i,o){e=null;for(var f=n,g=!1;f!==null;){if(!g){if((f.flags&524288)!==0)g=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var S=f.alternate;if(S===null)throw Error(a(387));if(S=S.memoizedProps,S!==null){var _=f.type;un(f.pendingProps.value,S.value)||(e!==null?e.push(_):e=[_])}}else if(f===de.current){if(S=f.alternate,S===null)throw Error(a(387));S.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(ba):e=[ba])}f=f.return}e!==null&&Fu(n,e,i,o),n.flags|=262144}function co(e){for(e=e.firstContext;e!==null;){if(!un(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function dl(e){fl=e,nr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return ep(fl,e)}function fo(e,n){return fl===null&&dl(e),ep(e,n)}function ep(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},nr===null){if(e===null)throw Error(a(308));nr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else nr=nr.next=n;return i}var fv=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},dv=t.unstable_scheduleCallback,hv=t.unstable_NormalPriority,vt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Iu(){return{controller:new fv,data:new Map,refCount:0}}function Gi(e){e.refCount--,e.refCount===0&&dv(hv,function(){e.controller.abort()})}var Yi=null,Uu=0,Jl=0,Wl=null;function pv(e,n){if(Yi===null){var i=Yi=[];Uu=0,Jl=Vc(),Wl={status:"pending",value:void 0,then:function(o){i.push(o)}}}return Uu++,n.then(tp,tp),n}function tp(){if(--Uu===0&&Yi!==null){Wl!==null&&(Wl.status="fulfilled");var e=Yi;Yi=null,Jl=0,Wl=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function gv(e,n){var i=[],o={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(o.status="rejected",o.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),o}var np=L.S;L.S=function(e,n){Ig=at(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&pv(e,n),np!==null&&np(e,n)};var hl=O(null);function Hu(){var e=hl.current;return e!==null?e:lt.pooledCache}function ho(e,n){n===null?T(hl,hl.current):T(hl,n.pool)}function rp(){var e=Hu();return e===null?null:{parent:vt._currentValue,pool:e}}var ei=Error(a(460)),qu=Error(a(474)),po=Error(a(542)),go={then:function(){}};function lp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ip(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(Jn,Jn),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,op(e),e;default:if(typeof n.status=="string")n.then(Jn,Jn);else{if(e=lt,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=o}},function(o){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,op(e),e}throw gl=n,ei}}function pl(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(gl=i,ei):i}}var gl=null;function ap(){if(gl===null)throw Error(a(459));var e=gl;return gl=null,e}function op(e){if(e===ei||e===po)throw Error(a(483))}var ti=null,Xi=0;function mo(e){var n=Xi;return Xi+=1,ti===null&&(ti=[]),ip(ti,e,n)}function Zi(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function yo(e,n){throw n.$$typeof===x?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function sp(e){function n(Q,Y){if(e){var W=Q.deletions;W===null?(Q.deletions=[Y],Q.flags|=16):W.push(Y)}}function i(Q,Y){if(!e)return null;for(;Y!==null;)n(Q,Y),Y=Y.sibling;return null}function o(Q){for(var Y=new Map;Q!==null;)Q.key!==null?Y.set(Q.key,Q):Y.set(Q.index,Q),Q=Q.sibling;return Y}function f(Q,Y){return Q=er(Q,Y),Q.index=0,Q.sibling=null,Q}function g(Q,Y,W){return Q.index=W,e?(W=Q.alternate,W!==null?(W=W.index,W<Y?(Q.flags|=67108866,Y):W):(Q.flags|=67108866,Y)):(Q.flags|=1048576,Y)}function S(Q){return e&&Q.alternate===null&&(Q.flags|=67108866),Q}function _(Q,Y,W,oe){return Y===null||Y.tag!==6?(Y=_u(W,Q.mode,oe),Y.return=Q,Y):(Y=f(Y,W),Y.return=Q,Y)}function H(Q,Y,W,oe){var ke=W.type;return ke===k?ie(Q,Y,W.props.children,oe,W.key):Y!==null&&(Y.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===Z&&pl(ke)===Y.type)?(Y=f(Y,W.props),Zi(Y,W),Y.return=Q,Y):(Y=so(W.type,W.key,W.props,null,Q.mode,oe),Zi(Y,W),Y.return=Q,Y)}function ee(Q,Y,W,oe){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==W.containerInfo||Y.stateNode.implementation!==W.implementation?(Y=Lu(W,Q.mode,oe),Y.return=Q,Y):(Y=f(Y,W.children||[]),Y.return=Q,Y)}function ie(Q,Y,W,oe,ke){return Y===null||Y.tag!==7?(Y=ul(W,Q.mode,oe,ke),Y.return=Q,Y):(Y=f(Y,W),Y.return=Q,Y)}function ue(Q,Y,W){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=_u(""+Y,Q.mode,W),Y.return=Q,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:return W=so(Y.type,Y.key,Y.props,null,Q.mode,W),Zi(W,Y),W.return=Q,W;case w:return Y=Lu(Y,Q.mode,W),Y.return=Q,Y;case Z:return Y=pl(Y),ue(Q,Y,W)}if(X(Y)||$(Y))return Y=ul(Y,Q.mode,W,null),Y.return=Q,Y;if(typeof Y.then=="function")return ue(Q,mo(Y),W);if(Y.$$typeof===N)return ue(Q,fo(Q,Y),W);yo(Q,Y)}return null}function te(Q,Y,W,oe){var ke=Y!==null?Y.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return ke!==null?null:_(Q,Y,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case b:return W.key===ke?H(Q,Y,W,oe):null;case w:return W.key===ke?ee(Q,Y,W,oe):null;case Z:return W=pl(W),te(Q,Y,W,oe)}if(X(W)||$(W))return ke!==null?null:ie(Q,Y,W,oe,null);if(typeof W.then=="function")return te(Q,Y,mo(W),oe);if(W.$$typeof===N)return te(Q,Y,fo(Q,W),oe);yo(Q,W)}return null}function ne(Q,Y,W,oe,ke){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return Q=Q.get(W)||null,_(Y,Q,""+oe,ke);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case b:return Q=Q.get(oe.key===null?W:oe.key)||null,H(Y,Q,oe,ke);case w:return Q=Q.get(oe.key===null?W:oe.key)||null,ee(Y,Q,oe,ke);case Z:return oe=pl(oe),ne(Q,Y,W,oe,ke)}if(X(oe)||$(oe))return Q=Q.get(W)||null,ie(Y,Q,oe,ke,null);if(typeof oe.then=="function")return ne(Q,Y,W,mo(oe),ke);if(oe.$$typeof===N)return ne(Q,Y,W,fo(Y,oe),ke);yo(Y,oe)}return null}function ve(Q,Y,W,oe){for(var ke=null,Ge=null,Se=Y,De=Y=0,qe=null;Se!==null&&De<W.length;De++){Se.index>De?(qe=Se,Se=null):qe=Se.sibling;var Ye=te(Q,Se,W[De],oe);if(Ye===null){Se===null&&(Se=qe);break}e&&Se&&Ye.alternate===null&&n(Q,Se),Y=g(Ye,Y,De),Ge===null?ke=Ye:Ge.sibling=Ye,Ge=Ye,Se=qe}if(De===W.length)return i(Q,Se),Ve&&tr(Q,De),ke;if(Se===null){for(;De<W.length;De++)Se=ue(Q,W[De],oe),Se!==null&&(Y=g(Se,Y,De),Ge===null?ke=Se:Ge.sibling=Se,Ge=Se);return Ve&&tr(Q,De),ke}for(Se=o(Se);De<W.length;De++)qe=ne(Se,Q,De,W[De],oe),qe!==null&&(e&&qe.alternate!==null&&Se.delete(qe.key===null?De:qe.key),Y=g(qe,Y,De),Ge===null?ke=qe:Ge.sibling=qe,Ge=qe);return e&&Se.forEach(function($r){return n(Q,$r)}),Ve&&tr(Q,De),ke}function Ne(Q,Y,W,oe){if(W==null)throw Error(a(151));for(var ke=null,Ge=null,Se=Y,De=Y=0,qe=null,Ye=W.next();Se!==null&&!Ye.done;De++,Ye=W.next()){Se.index>De?(qe=Se,Se=null):qe=Se.sibling;var $r=te(Q,Se,Ye.value,oe);if($r===null){Se===null&&(Se=qe);break}e&&Se&&$r.alternate===null&&n(Q,Se),Y=g($r,Y,De),Ge===null?ke=$r:Ge.sibling=$r,Ge=$r,Se=qe}if(Ye.done)return i(Q,Se),Ve&&tr(Q,De),ke;if(Se===null){for(;!Ye.done;De++,Ye=W.next())Ye=ue(Q,Ye.value,oe),Ye!==null&&(Y=g(Ye,Y,De),Ge===null?ke=Ye:Ge.sibling=Ye,Ge=Ye);return Ve&&tr(Q,De),ke}for(Se=o(Se);!Ye.done;De++,Ye=W.next())Ye=ne(Se,Q,De,Ye.value,oe),Ye!==null&&(e&&Ye.alternate!==null&&Se.delete(Ye.key===null?De:Ye.key),Y=g(Ye,Y,De),Ge===null?ke=Ye:Ge.sibling=Ye,Ge=Ye);return e&&Se.forEach(function(Aw){return n(Q,Aw)}),Ve&&tr(Q,De),ke}function nt(Q,Y,W,oe){if(typeof W=="object"&&W!==null&&W.type===k&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case b:e:{for(var ke=W.key;Y!==null;){if(Y.key===ke){if(ke=W.type,ke===k){if(Y.tag===7){i(Q,Y.sibling),oe=f(Y,W.props.children),oe.return=Q,Q=oe;break e}}else if(Y.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===Z&&pl(ke)===Y.type){i(Q,Y.sibling),oe=f(Y,W.props),Zi(oe,W),oe.return=Q,Q=oe;break e}i(Q,Y);break}else n(Q,Y);Y=Y.sibling}W.type===k?(oe=ul(W.props.children,Q.mode,oe,W.key),oe.return=Q,Q=oe):(oe=so(W.type,W.key,W.props,null,Q.mode,oe),Zi(oe,W),oe.return=Q,Q=oe)}return S(Q);case w:e:{for(ke=W.key;Y!==null;){if(Y.key===ke)if(Y.tag===4&&Y.stateNode.containerInfo===W.containerInfo&&Y.stateNode.implementation===W.implementation){i(Q,Y.sibling),oe=f(Y,W.children||[]),oe.return=Q,Q=oe;break e}else{i(Q,Y);break}else n(Q,Y);Y=Y.sibling}oe=Lu(W,Q.mode,oe),oe.return=Q,Q=oe}return S(Q);case Z:return W=pl(W),nt(Q,Y,W,oe)}if(X(W))return ve(Q,Y,W,oe);if($(W)){if(ke=$(W),typeof ke!="function")throw Error(a(150));return W=ke.call(W),Ne(Q,Y,W,oe)}if(typeof W.then=="function")return nt(Q,Y,mo(W),oe);if(W.$$typeof===N)return nt(Q,Y,fo(Q,W),oe);yo(Q,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,Y!==null&&Y.tag===6?(i(Q,Y.sibling),oe=f(Y,W),oe.return=Q,Q=oe):(i(Q,Y),oe=_u(W,Q.mode,oe),oe.return=Q,Q=oe),S(Q)):i(Q,Y)}return function(Q,Y,W,oe){try{Xi=0;var ke=nt(Q,Y,W,oe);return ti=null,ke}catch(Se){if(Se===ei||Se===po)throw Se;var Ge=cn(29,Se,null,Q.mode);return Ge.lanes=oe,Ge.return=Q,Ge}}}var ml=sp(!0),up=sp(!1),Nr=!1;function Vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pu(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 Rr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _r(e,n,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Xe&2)!==0){var f=o.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),o.pending=n,n=oo(e),Gh(e,null,i),n}return ao(e,o,n,i),oo(e)}function Qi(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,Li(e,i)}}function $u(e,n){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var f=null,g=null;if(i=i.firstBaseUpdate,i!==null){do{var S={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};g===null?f=g=S:g=g.next=S,i=i.next}while(i!==null);g===null?f=g=n:g=g.next=n}else f=g=n;i={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:g,shared:o.shared,callbacks:o.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Gu=!1;function Ki(){if(Gu){var e=Wl;if(e!==null)throw e}}function Ji(e,n,i,o){Gu=!1;var f=e.updateQueue;Nr=!1;var g=f.firstBaseUpdate,S=f.lastBaseUpdate,_=f.shared.pending;if(_!==null){f.shared.pending=null;var H=_,ee=H.next;H.next=null,S===null?g=ee:S.next=ee,S=H;var ie=e.alternate;ie!==null&&(ie=ie.updateQueue,_=ie.lastBaseUpdate,_!==S&&(_===null?ie.firstBaseUpdate=ee:_.next=ee,ie.lastBaseUpdate=H))}if(g!==null){var ue=f.baseState;S=0,ie=ee=H=null,_=g;do{var te=_.lane&-536870913,ne=te!==_.lane;if(ne?(He&te)===te:(o&te)===te){te!==0&&te===Jl&&(Gu=!0),ie!==null&&(ie=ie.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var ve=e,Ne=_;te=n;var nt=i;switch(Ne.tag){case 1:if(ve=Ne.payload,typeof ve=="function"){ue=ve.call(nt,ue,te);break e}ue=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ne.payload,te=typeof ve=="function"?ve.call(nt,ue,te):ve,te==null)break e;ue=m({},ue,te);break e;case 2:Nr=!0}}te=_.callback,te!==null&&(e.flags|=64,ne&&(e.flags|=8192),ne=f.callbacks,ne===null?f.callbacks=[te]:ne.push(te))}else ne={lane:te,tag:_.tag,payload:_.payload,callback:_.callback,next:null},ie===null?(ee=ie=ne,H=ue):ie=ie.next=ne,S|=te;if(_=_.next,_===null){if(_=f.shared.pending,_===null)break;ne=_,_=ne.next,ne.next=null,f.lastBaseUpdate=ne,f.shared.pending=null}}while(!0);ie===null&&(H=ue),f.baseState=H,f.firstBaseUpdate=ee,f.lastBaseUpdate=ie,g===null&&(f.shared.lanes=0),Mr|=S,e.lanes=S,e.memoizedState=ue}}function cp(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function fp(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)cp(i[e],n)}var ni=O(null),bo=O(0);function dp(e,n){e=dr,T(bo,e),T(ni,n),dr=e|n.baseLanes}function Yu(){T(bo,dr),T(ni,ni.current)}function Xu(){dr=bo.current,V(ni),V(bo)}var fn=O(null),Nn=null;function Lr(e){var n=e.alternate;T(bt,bt.current&1),T(fn,e),Nn===null&&(n===null||ni.current!==null||n.memoizedState!==null)&&(Nn=e)}function Zu(e){T(bt,bt.current),T(fn,e),Nn===null&&(Nn=e)}function hp(e){e.tag===22?(T(bt,bt.current),T(fn,e),Nn===null&&(Nn=e)):jr()}function jr(){T(bt,bt.current),T(fn,fn.current)}function dn(e){V(fn),Nn===e&&(Nn=null),V(bt)}var bt=O(0);function xo(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||tf(i)||nf(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 lr=0,je=null,et=null,wt=null,vo=!1,ri=!1,yl=!1,wo=0,Wi=0,li=null,mv=0;function mt(){throw Error(a(321))}function Qu(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!un(e[i],n[i]))return!1;return!0}function Ku(e,n,i,o,f,g){return lr=g,je=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,L.H=e===null||e.memoizedState===null?Qp:dc,yl=!1,g=i(o,f),yl=!1,ri&&(g=gp(n,i,o,f)),pp(e),g}function pp(e){L.H=na;var n=et!==null&&et.next!==null;if(lr=0,wt=et=je=null,vo=!1,Wi=0,li=null,n)throw Error(a(300));e===null||St||(e=e.dependencies,e!==null&&co(e)&&(St=!0))}function gp(e,n,i,o){je=e;var f=0;do{if(ri&&(li=null),Wi=0,ri=!1,25<=f)throw Error(a(301));if(f+=1,wt=et=null,e.updateQueue!=null){var g=e.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}L.H=Kp,g=n(i,o)}while(ri);return g}function yv(){var e=L.H,n=e.useState()[0];return n=typeof n.then=="function"?ea(n):n,e=e.useState()[0],(et!==null?et.memoizedState:null)!==e&&(je.flags|=1024),n}function Ju(){var e=wo!==0;return wo=0,e}function Wu(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function ec(e){if(vo){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}vo=!1}lr=0,wt=et=je=null,ri=!1,Wi=wo=0,li=null}function Gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?je.memoizedState=wt=e:wt=wt.next=e,wt}function xt(){if(et===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var n=wt===null?je.memoizedState:wt.next;if(n!==null)wt=n,et=e;else{if(e===null)throw je.alternate===null?Error(a(467)):Error(a(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},wt===null?je.memoizedState=wt=e:wt=wt.next=e}return wt}function So(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ea(e){var n=Wi;return Wi+=1,li===null&&(li=[]),e=ip(li,e,n),n=je,(wt===null?n.memoizedState:wt.next)===null&&(n=n.alternate,L.H=n===null||n.memoizedState===null?Qp:dc),e}function ko(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ea(e);if(e.$$typeof===N)return Ot(e)}throw Error(a(438,String(e)))}function tc(e){var n=null,i=je.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=je.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=So(),je.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),o=0;o<e;o++)i[o]=M;return n.index++,i}function ir(e,n){return typeof n=="function"?n(e):n}function Eo(e){var n=xt();return nc(n,et,e)}function nc(e,n,i){var o=e.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=i;var f=e.baseQueue,g=o.pending;if(g!==null){if(f!==null){var S=f.next;f.next=g.next,g.next=S}n.baseQueue=f=g,o.pending=null}if(g=e.baseState,f===null)e.memoizedState=g;else{n=f.next;var _=S=null,H=null,ee=n,ie=!1;do{var ue=ee.lane&-536870913;if(ue!==ee.lane?(He&ue)===ue:(lr&ue)===ue){var te=ee.revertLane;if(te===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ue===Jl&&(ie=!0);else if((lr&te)===te){ee=ee.next,te===Jl&&(ie=!0);continue}else ue={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(_=H=ue,S=g):H=H.next=ue,je.lanes|=te,Mr|=te;ue=ee.action,yl&&i(g,ue),g=ee.hasEagerState?ee.eagerState:i(g,ue)}else te={lane:ue,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(_=H=te,S=g):H=H.next=te,je.lanes|=ue,Mr|=ue;ee=ee.next}while(ee!==null&&ee!==n);if(H===null?S=g:H.next=_,!un(g,e.memoizedState)&&(St=!0,ie&&(i=Wl,i!==null)))throw i;e.memoizedState=g,e.baseState=S,e.baseQueue=H,o.lastRenderedState=g}return f===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function rc(e){var n=xt(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=e;var o=i.dispatch,f=i.pending,g=n.memoizedState;if(f!==null){i.pending=null;var S=f=f.next;do g=e(g,S.action),S=S.next;while(S!==f);un(g,n.memoizedState)||(St=!0),n.memoizedState=g,n.baseQueue===null&&(n.baseState=g),i.lastRenderedState=g}return[g,o]}function mp(e,n,i){var o=je,f=xt(),g=Ve;if(g){if(i===void 0)throw Error(a(407));i=i()}else i=n();var S=!un((et||f).memoizedState,i);if(S&&(f.memoizedState=i,St=!0),f=f.queue,ac(xp.bind(null,o,f,e),[e]),f.getSnapshot!==n||S||wt!==null&&wt.memoizedState.tag&1){if(o.flags|=2048,ii(9,{destroy:void 0},bp.bind(null,o,f,i,n),null),lt===null)throw Error(a(349));g||(lr&127)!==0||yp(o,n,i)}return i}function yp(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=je.updateQueue,n===null?(n=So(),je.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function bp(e,n,i,o){n.value=i,n.getSnapshot=o,vp(n)&&wp(e)}function xp(e,n,i){return i(function(){vp(n)&&wp(e)})}function vp(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!un(e,i)}catch{return!0}}function wp(e){var n=sl(e,2);n!==null&&tn(n,e,2)}function lc(e){var n=Gt();if(typeof e=="function"){var i=e;if(e=i(),yl){Tt(!0);try{i()}finally{Tt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:e},n}function Sp(e,n,i,o){return e.baseState=i,nc(e,et,typeof o=="function"?o:ir)}function bv(e,n,i,o,f){if(To(e))throw Error(a(485));if(e=n.action,e!==null){var g={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){g.listeners.push(S)}};L.T!==null?i(!0):g.isTransition=!1,o(g),i=n.pending,i===null?(g.next=n.pending=g,kp(n,g)):(g.next=i.next,n.pending=i.next=g)}}function kp(e,n){var i=n.action,o=n.payload,f=e.state;if(n.isTransition){var g=L.T,S={};L.T=S;try{var _=i(f,o),H=L.S;H!==null&&H(S,_),Ep(e,n,_)}catch(ee){ic(e,n,ee)}finally{g!==null&&S.types!==null&&(g.types=S.types),L.T=g}}else try{g=i(f,o),Ep(e,n,g)}catch(ee){ic(e,n,ee)}}function Ep(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){Cp(e,n,o)},function(o){return ic(e,n,o)}):Cp(e,n,i)}function Cp(e,n,i){n.status="fulfilled",n.value=i,Ap(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,kp(e,i)))}function ic(e,n,i){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,Ap(n),n=n.next;while(n!==o)}e.action=null}function Ap(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Tp(e,n){return n}function Np(e,n){if(Ve){var i=lt.formState;if(i!==null){e:{var o=je;if(Ve){if(ut){t:{for(var f=ut,g=Tn;f.nodeType!==8;){if(!g){f=null;break t}if(f=Rn(f.nextSibling),f===null){f=null;break t}}g=f.data,f=g==="F!"||g==="F"?f:null}if(f){ut=Rn(f.nextSibling),o=f.data==="F!";break e}}Ar(o)}o=!1}o&&(n=i[0])}}return i=Gt(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tp,lastRenderedState:n},i.queue=o,i=Yp.bind(null,je,o),o.dispatch=i,o=lc(!1),g=fc.bind(null,je,!1,o.queue),o=Gt(),f={state:n,dispatch:null,action:e,pending:null},o.queue=f,i=bv.bind(null,je,f,g,i),f.dispatch=i,o.memoizedState=e,[n,i,!1]}function Rp(e){var n=xt();return _p(n,et,e)}function _p(e,n,i){if(n=nc(e,n,Tp)[0],e=Eo(ir)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=ea(n)}catch(S){throw S===ei?po:S}else o=n;n=xt();var f=n.queue,g=f.dispatch;return i!==n.memoizedState&&(je.flags|=2048,ii(9,{destroy:void 0},xv.bind(null,f,i),null)),[o,g,e]}function xv(e,n){e.action=n}function Lp(e){var n=xt(),i=et;if(i!==null)return _p(n,i,e);xt(),n=n.memoizedState,i=xt();var o=i.queue.dispatch;return i.memoizedState=e,[n,o,!1]}function ii(e,n,i,o){return e={tag:e,create:i,deps:o,inst:n,next:null},n=je.updateQueue,n===null&&(n=So(),je.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,n.lastEffect=e),e}function jp(){return xt().memoizedState}function Co(e,n,i,o){var f=Gt();je.flags|=e,f.memoizedState=ii(1|n,{destroy:void 0},i,o===void 0?null:o)}function Ao(e,n,i,o){var f=xt();o=o===void 0?null:o;var g=f.memoizedState.inst;et!==null&&o!==null&&Qu(o,et.memoizedState.deps)?f.memoizedState=ii(n,g,i,o):(je.flags|=e,f.memoizedState=ii(1|n,g,i,o))}function Dp(e,n){Co(8390656,8,e,n)}function ac(e,n){Ao(2048,8,e,n)}function vv(e){je.flags|=4;var n=je.updateQueue;if(n===null)n=So(),je.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Op(e){var n=xt().memoizedState;return vv({ref:n,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function Mp(e,n){return Ao(4,2,e,n)}function zp(e,n){return Ao(4,4,e,n)}function Bp(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 Fp(e,n,i){i=i!=null?i.concat([e]):null,Ao(4,4,Bp.bind(null,n,e),i)}function oc(){}function Ip(e,n){var i=xt();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&Qu(n,o[1])?o[0]:(i.memoizedState=[e,n],e)}function Up(e,n){var i=xt();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&Qu(n,o[1]))return o[0];if(o=e(),yl){Tt(!0);try{e()}finally{Tt(!1)}}return i.memoizedState=[o,n],o}function sc(e,n,i){return i===void 0||(lr&1073741824)!==0&&(He&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=Hg(),je.lanes|=e,Mr|=e,i)}function Hp(e,n,i,o){return un(i,n)?i:ni.current!==null?(e=sc(e,i,o),un(e,n)||(St=!0),e):(lr&42)===0||(lr&1073741824)!==0&&(He&261930)===0?(St=!0,e.memoizedState=i):(e=Hg(),je.lanes|=e,Mr|=e,n)}function qp(e,n,i,o,f){var g=z.p;z.p=g!==0&&8>g?g:8;var S=L.T,_={};L.T=_,fc(e,!1,n,i);try{var H=f(),ee=L.S;if(ee!==null&&ee(_,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var ie=gv(H,o);ta(e,n,ie,gn(e))}else ta(e,n,o,gn(e))}catch(ue){ta(e,n,{then:function(){},status:"rejected",reason:ue},gn())}finally{z.p=g,S!==null&&_.types!==null&&(S.types=_.types),L.T=S}}function wv(){}function uc(e,n,i,o){if(e.tag!==5)throw Error(a(476));var f=Vp(e).queue;qp(e,f,n,I,i===null?wv:function(){return Pp(e),i(o)})}function Vp(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:I},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Pp(e){var n=Vp(e);n.next===null&&(n=e.alternate.memoizedState),ta(e,n.next.queue,{},gn())}function cc(){return Ot(ba)}function $p(){return xt().memoizedState}function Gp(){return xt().memoizedState}function Sv(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=gn();e=Rr(i);var o=_r(n,e,i);o!==null&&(tn(o,n,i),Qi(o,n,i)),n={cache:Iu()},e.payload=n;return}n=n.return}}function kv(e,n,i){var o=gn();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},To(e)?Xp(n,i):(i=Nu(e,n,i,o),i!==null&&(tn(i,e,o),Zp(i,n,o)))}function Yp(e,n,i){var o=gn();ta(e,n,i,o)}function ta(e,n,i,o){var f={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(To(e))Xp(n,f);else{var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=n.lastRenderedReducer,g!==null))try{var S=n.lastRenderedState,_=g(S,i);if(f.hasEagerState=!0,f.eagerState=_,un(_,S))return ao(e,n,f,0),lt===null&&io(),!1}catch{}if(i=Nu(e,n,f,o),i!==null)return tn(i,e,o),Zp(i,n,o),!0}return!1}function fc(e,n,i,o){if(o={lane:2,revertLane:Vc(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},To(e)){if(n)throw Error(a(479))}else n=Nu(e,i,o,2),n!==null&&tn(n,e,2)}function To(e){var n=e.alternate;return e===je||n!==null&&n===je}function Xp(e,n){ri=vo=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function Zp(e,n,i){if((i&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,Li(e,i)}}var na={readContext:Ot,use:ko,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt};na.useEffectEvent=mt;var Qp={readContext:Ot,use:ko,useCallback:function(e,n){return Gt().memoizedState=[e,n===void 0?null:n],e},useContext:Ot,useEffect:Dp,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,Co(4194308,4,Bp.bind(null,n,e),i)},useLayoutEffect:function(e,n){return Co(4194308,4,e,n)},useInsertionEffect:function(e,n){Co(4,2,e,n)},useMemo:function(e,n){var i=Gt();n=n===void 0?null:n;var o=e();if(yl){Tt(!0);try{e()}finally{Tt(!1)}}return i.memoizedState=[o,n],o},useReducer:function(e,n,i){var o=Gt();if(i!==void 0){var f=i(n);if(yl){Tt(!0);try{i(n)}finally{Tt(!1)}}}else f=n;return o.memoizedState=o.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},o.queue=e,e=e.dispatch=kv.bind(null,je,e),[o.memoizedState,e]},useRef:function(e){var n=Gt();return e={current:e},n.memoizedState=e},useState:function(e){e=lc(e);var n=e.queue,i=Yp.bind(null,je,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:oc,useDeferredValue:function(e,n){var i=Gt();return sc(i,e,n)},useTransition:function(){var e=lc(!1);return e=qp.bind(null,je,e.queue,!0,!1),Gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var o=je,f=Gt();if(Ve){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),lt===null)throw Error(a(349));(He&127)!==0||yp(o,n,i)}f.memoizedState=i;var g={value:i,getSnapshot:n};return f.queue=g,Dp(xp.bind(null,o,g,e),[e]),o.flags|=2048,ii(9,{destroy:void 0},bp.bind(null,o,g,i,n),null),i},useId:function(){var e=Gt(),n=lt.identifierPrefix;if(Ve){var i=Un,o=In;i=(o&~(1<<32-Ke(o)-1)).toString(32)+i,n="_"+n+"R_"+i,i=wo++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=mv++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:cc,useFormState:Np,useActionState:Np,useOptimistic:function(e){var n=Gt();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=fc.bind(null,je,!0,i),i.dispatch=n,[e,n]},useMemoCache:tc,useCacheRefresh:function(){return Gt().memoizedState=Sv.bind(null,je)},useEffectEvent:function(e){var n=Gt(),i={impl:e};return n.memoizedState=i,function(){if((Xe&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},dc={readContext:Ot,use:ko,useCallback:Ip,useContext:Ot,useEffect:ac,useImperativeHandle:Fp,useInsertionEffect:Mp,useLayoutEffect:zp,useMemo:Up,useReducer:Eo,useRef:jp,useState:function(){return Eo(ir)},useDebugValue:oc,useDeferredValue:function(e,n){var i=xt();return Hp(i,et.memoizedState,e,n)},useTransition:function(){var e=Eo(ir)[0],n=xt().memoizedState;return[typeof e=="boolean"?e:ea(e),n]},useSyncExternalStore:mp,useId:$p,useHostTransitionStatus:cc,useFormState:Rp,useActionState:Rp,useOptimistic:function(e,n){var i=xt();return Sp(i,et,e,n)},useMemoCache:tc,useCacheRefresh:Gp};dc.useEffectEvent=Op;var Kp={readContext:Ot,use:ko,useCallback:Ip,useContext:Ot,useEffect:ac,useImperativeHandle:Fp,useInsertionEffect:Mp,useLayoutEffect:zp,useMemo:Up,useReducer:rc,useRef:jp,useState:function(){return rc(ir)},useDebugValue:oc,useDeferredValue:function(e,n){var i=xt();return et===null?sc(i,e,n):Hp(i,et.memoizedState,e,n)},useTransition:function(){var e=rc(ir)[0],n=xt().memoizedState;return[typeof e=="boolean"?e:ea(e),n]},useSyncExternalStore:mp,useId:$p,useHostTransitionStatus:cc,useFormState:Lp,useActionState:Lp,useOptimistic:function(e,n){var i=xt();return et!==null?Sp(i,et,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:tc,useCacheRefresh:Gp};Kp.useEffectEvent=Op;function hc(e,n,i,o){n=e.memoizedState,i=i(o,n),i=i==null?n:m({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var pc={enqueueSetState:function(e,n,i){e=e._reactInternals;var o=gn(),f=Rr(o);f.payload=n,i!=null&&(f.callback=i),n=_r(e,f,o),n!==null&&(tn(n,e,o),Qi(n,e,o))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var o=gn(),f=Rr(o);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=_r(e,f,o),n!==null&&(tn(n,e,o),Qi(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=gn(),o=Rr(i);o.tag=2,n!=null&&(o.callback=n),n=_r(e,o,i),n!==null&&(tn(n,e,i),Qi(n,e,i))}};function Jp(e,n,i,o,f,g,S){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,g,S):n.prototype&&n.prototype.isPureReactComponent?!qi(i,o)||!qi(f,g):!0}function Wp(e,n,i,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==e&&pc.enqueueReplaceState(n,n.state,null)}function bl(e,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(e=e.defaultProps){i===n&&(i=m({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function eg(e){lo(e)}function tg(e){console.error(e)}function ng(e){lo(e)}function No(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function rg(e,n,i){try{var o=e.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function gc(e,n,i){return i=Rr(i),i.tag=3,i.payload={element:null},i.callback=function(){No(e,n)},i}function lg(e){return e=Rr(e),e.tag=3,e}function ig(e,n,i,o){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var g=o.value;e.payload=function(){return f(g)},e.callback=function(){rg(n,i,o)}}var S=i.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(e.callback=function(){rg(n,i,o),typeof f!="function"&&(zr===null?zr=new Set([this]):zr.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})})}function Ev(e,n,i,o,f){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&Kl(n,i,f,!0),i=fn.current,i!==null){switch(i.tag){case 31:case 13:return Nn===null?Uo():i.alternate===null&&yt===0&&(yt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,o===go?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),Uc(e,o,f)),!1;case 22:return i.flags|=65536,o===go?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),Uc(e,o,f)),!1}throw Error(a(435,i.tag))}return Uc(e,o,f),Uo(),!1}if(Ve)return n=fn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,o!==Ou&&(e=Error(a(422),{cause:o}),$i(En(e,i)))):(o!==Ou&&(n=Error(a(423),{cause:o}),$i(En(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,o=En(o,i),f=gc(e.stateNode,o,f),$u(e,f),yt!==4&&(yt=2)),!1;var g=Error(a(520),{cause:o});if(g=En(g,i),ca===null?ca=[g]:ca.push(g),yt!==4&&(yt=2),n===null)return!0;o=En(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=gc(i.stateNode,o,e),$u(i,e),!1;case 1:if(n=i.type,g=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(zr===null||!zr.has(g))))return i.flags|=65536,f&=-f,i.lanes|=f,f=lg(f),ig(f,e,i,o),$u(i,f),!1}i=i.return}while(i!==null);return!1}var mc=Error(a(461)),St=!1;function Mt(e,n,i,o){n.child=e===null?up(n,null,i,o):ml(n,e.child,i,o)}function ag(e,n,i,o,f){i=i.render;var g=n.ref;if("ref"in o){var S={};for(var _ in o)_!=="ref"&&(S[_]=o[_])}else S=o;return dl(n),o=Ku(e,n,i,S,g,f),_=Ju(),e!==null&&!St?(Wu(e,n,f),ar(e,n,f)):(Ve&&_&&ju(n),n.flags|=1,Mt(e,n,o,f),n.child)}function og(e,n,i,o,f){if(e===null){var g=i.type;return typeof g=="function"&&!Ru(g)&&g.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=g,sg(e,n,g,o,f)):(e=so(i.type,null,o,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(g=e.child,!Ec(e,f)){var S=g.memoizedProps;if(i=i.compare,i=i!==null?i:qi,i(S,o)&&e.ref===n.ref)return ar(e,n,f)}return n.flags|=1,e=er(g,o),e.ref=n.ref,e.return=n,n.child=e}function sg(e,n,i,o,f){if(e!==null){var g=e.memoizedProps;if(qi(g,o)&&e.ref===n.ref)if(St=!1,n.pendingProps=o=g,Ec(e,f))(e.flags&131072)!==0&&(St=!0);else return n.lanes=e.lanes,ar(e,n,f)}return yc(e,n,i,o,f)}function ug(e,n,i,o){var f=o.children,g=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(g=g!==null?g.baseLanes|i:i,e!==null){for(o=n.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;o=f&~g}else o=0,n.child=null;return cg(e,n,g,i,o)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&ho(n,g!==null?g.cachePool:null),g!==null?dp(n,g):Yu(),hp(n);else return o=n.lanes=536870912,cg(e,n,g!==null?g.baseLanes|i:i,i,o)}else g!==null?(ho(n,g.cachePool),dp(n,g),jr(),n.memoizedState=null):(e!==null&&ho(n,null),Yu(),jr());return Mt(e,n,f,i),n.child}function ra(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function cg(e,n,i,o,f){var g=Hu();return g=g===null?null:{parent:vt._currentValue,pool:g},n.memoizedState={baseLanes:i,cachePool:g},e!==null&&ho(n,null),Yu(),hp(n),e!==null&&Kl(e,n,o,!0),n.childLanes=f,null}function Ro(e,n){return n=Lo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function fg(e,n,i){return ml(n,e.child,null,i),e=Ro(n,n.pendingProps),e.flags|=2,dn(n),n.memoizedState=null,e}function Cv(e,n,i){var o=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Ve){if(o.mode==="hidden")return e=Ro(n,o),n.lanes=536870912,ra(null,e);if(Zu(n),(e=ut)?(e=km(e,Tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Er!==null?{id:In,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},i=Xh(e),i.return=n,n.child=i,Dt=n,ut=null)):e=null,e===null)throw Ar(n);return n.lanes=536870912,null}return Ro(n,o)}var g=e.memoizedState;if(g!==null){var S=g.dehydrated;if(Zu(n),f)if(n.flags&256)n.flags&=-257,n=fg(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(St||Kl(e,n,i,!1),f=(i&e.childLanes)!==0,St||f){if(o=lt,o!==null&&(S=$a(o,i),S!==0&&S!==g.retryLane))throw g.retryLane=S,sl(e,S),tn(o,e,S),mc;Uo(),n=fg(e,n,i)}else e=g.treeContext,ut=Rn(S.nextSibling),Dt=n,Ve=!0,Cr=null,Tn=!1,e!==null&&Kh(n,e),n=Ro(n,o),n.flags|=4096;return n}return e=er(e.child,{mode:o.mode,children:o.children}),e.ref=n.ref,n.child=e,e.return=n,e}function _o(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(a(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function yc(e,n,i,o,f){return dl(n),i=Ku(e,n,i,o,void 0,f),o=Ju(),e!==null&&!St?(Wu(e,n,f),ar(e,n,f)):(Ve&&o&&ju(n),n.flags|=1,Mt(e,n,i,f),n.child)}function dg(e,n,i,o,f,g){return dl(n),n.updateQueue=null,i=gp(n,o,i,f),pp(e),o=Ju(),e!==null&&!St?(Wu(e,n,g),ar(e,n,g)):(Ve&&o&&ju(n),n.flags|=1,Mt(e,n,i,g),n.child)}function hg(e,n,i,o,f){if(dl(n),n.stateNode===null){var g=Yl,S=i.contextType;typeof S=="object"&&S!==null&&(g=Ot(S)),g=new i(o,g),n.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=pc,n.stateNode=g,g._reactInternals=n,g=n.stateNode,g.props=o,g.state=n.memoizedState,g.refs={},Vu(n),S=i.contextType,g.context=typeof S=="object"&&S!==null?Ot(S):Yl,g.state=n.memoizedState,S=i.getDerivedStateFromProps,typeof S=="function"&&(hc(n,i,S,o),g.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(S=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),S!==g.state&&pc.enqueueReplaceState(g,g.state,null),Ji(n,o,g,f),Ki(),g.state=n.memoizedState),typeof g.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){g=n.stateNode;var _=n.memoizedProps,H=bl(i,_);g.props=H;var ee=g.context,ie=i.contextType;S=Yl,typeof ie=="object"&&ie!==null&&(S=Ot(ie));var ue=i.getDerivedStateFromProps;ie=typeof ue=="function"||typeof g.getSnapshotBeforeUpdate=="function",_=n.pendingProps!==_,ie||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(_||ee!==S)&&Wp(n,g,o,S),Nr=!1;var te=n.memoizedState;g.state=te,Ji(n,o,g,f),Ki(),ee=n.memoizedState,_||te!==ee||Nr?(typeof ue=="function"&&(hc(n,i,ue,o),ee=n.memoizedState),(H=Nr||Jp(n,i,H,o,te,ee,S))?(ie||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(n.flags|=4194308)):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=ee),g.props=o,g.state=ee,g.context=S,o=H):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{g=n.stateNode,Pu(e,n),S=n.memoizedProps,ie=bl(i,S),g.props=ie,ue=n.pendingProps,te=g.context,ee=i.contextType,H=Yl,typeof ee=="object"&&ee!==null&&(H=Ot(ee)),_=i.getDerivedStateFromProps,(ee=typeof _=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==ue||te!==H)&&Wp(n,g,o,H),Nr=!1,te=n.memoizedState,g.state=te,Ji(n,o,g,f),Ki();var ne=n.memoizedState;S!==ue||te!==ne||Nr||e!==null&&e.dependencies!==null&&co(e.dependencies)?(typeof _=="function"&&(hc(n,i,_,o),ne=n.memoizedState),(ie=Nr||Jp(n,i,ie,o,te,ne,H)||e!==null&&e.dependencies!==null&&co(e.dependencies))?(ee||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(o,ne,H),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(o,ne,H)),typeof g.componentDidUpdate=="function"&&(n.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===e.memoizedProps&&te===e.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&te===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=ne),g.props=o,g.state=ne,g.context=H,o=ie):(typeof g.componentDidUpdate!="function"||S===e.memoizedProps&&te===e.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&te===e.memoizedState||(n.flags|=1024),o=!1)}return g=o,_o(e,n),o=(n.flags&128)!==0,g||o?(g=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:g.render(),n.flags|=1,e!==null&&o?(n.child=ml(n,e.child,null,f),n.child=ml(n,null,i,f)):Mt(e,n,i,f),n.memoizedState=g.state,e=n.child):e=ar(e,n,f),e}function pg(e,n,i,o){return cl(),n.flags|=256,Mt(e,n,i,o),n.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:rp()}}function vc(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=pn),e}function gg(e,n,i){var o=n.pendingProps,f=!1,g=(n.flags&128)!==0,S;if((S=g)||(S=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),S&&(f=!0,n.flags&=-129),S=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ve){if(f?Lr(n):jr(),(e=ut)?(e=km(e,Tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Er!==null?{id:In,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},i=Xh(e),i.return=n,n.child=i,Dt=n,ut=null)):e=null,e===null)throw Ar(n);return nf(e)?n.lanes=32:n.lanes=536870912,null}var _=o.children;return o=o.fallback,f?(jr(),f=n.mode,_=Lo({mode:"hidden",children:_},f),o=ul(o,f,i,null),_.return=n,o.return=n,_.sibling=o,n.child=_,o=n.child,o.memoizedState=xc(i),o.childLanes=vc(e,S,i),n.memoizedState=bc,ra(null,o)):(Lr(n),wc(n,_))}var H=e.memoizedState;if(H!==null&&(_=H.dehydrated,_!==null)){if(g)n.flags&256?(Lr(n),n.flags&=-257,n=Sc(e,n,i)):n.memoizedState!==null?(jr(),n.child=e.child,n.flags|=128,n=null):(jr(),_=o.fallback,f=n.mode,o=Lo({mode:"visible",children:o.children},f),_=ul(_,f,i,null),_.flags|=2,o.return=n,_.return=n,o.sibling=_,n.child=o,ml(n,e.child,null,i),o=n.child,o.memoizedState=xc(i),o.childLanes=vc(e,S,i),n.memoizedState=bc,n=ra(null,o));else if(Lr(n),nf(_)){if(S=_.nextSibling&&_.nextSibling.dataset,S)var ee=S.dgst;S=ee,o=Error(a(419)),o.stack="",o.digest=S,$i({value:o,source:null,stack:null}),n=Sc(e,n,i)}else if(St||Kl(e,n,i,!1),S=(i&e.childLanes)!==0,St||S){if(S=lt,S!==null&&(o=$a(S,i),o!==0&&o!==H.retryLane))throw H.retryLane=o,sl(e,o),tn(S,e,o),mc;tf(_)||Uo(),n=Sc(e,n,i)}else tf(_)?(n.flags|=192,n.child=e.child,n=null):(e=H.treeContext,ut=Rn(_.nextSibling),Dt=n,Ve=!0,Cr=null,Tn=!1,e!==null&&Kh(n,e),n=wc(n,o.children),n.flags|=4096);return n}return f?(jr(),_=o.fallback,f=n.mode,H=e.child,ee=H.sibling,o=er(H,{mode:"hidden",children:o.children}),o.subtreeFlags=H.subtreeFlags&65011712,ee!==null?_=er(ee,_):(_=ul(_,f,i,null),_.flags|=2),_.return=n,o.return=n,o.sibling=_,n.child=o,ra(null,o),o=n.child,_=e.child.memoizedState,_===null?_=xc(i):(f=_.cachePool,f!==null?(H=vt._currentValue,f=f.parent!==H?{parent:H,pool:H}:f):f=rp(),_={baseLanes:_.baseLanes|i,cachePool:f}),o.memoizedState=_,o.childLanes=vc(e,S,i),n.memoizedState=bc,ra(e.child,o)):(Lr(n),i=e.child,e=i.sibling,i=er(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,e!==null&&(S=n.deletions,S===null?(n.deletions=[e],n.flags|=16):S.push(e)),n.child=i,n.memoizedState=null,i)}function wc(e,n){return n=Lo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Lo(e,n){return e=cn(22,e,null,n),e.lanes=0,e}function Sc(e,n,i){return ml(n,e.child,null,i),e=wc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function mg(e,n,i){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),Bu(e.return,n,i)}function kc(e,n,i,o,f,g){var S=e.memoizedState;S===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:f,treeForkCount:g}:(S.isBackwards=n,S.rendering=null,S.renderingStartTime=0,S.last=o,S.tail=i,S.tailMode=f,S.treeForkCount=g)}function yg(e,n,i){var o=n.pendingProps,f=o.revealOrder,g=o.tail;o=o.children;var S=bt.current,_=(S&2)!==0;if(_?(S=S&1|2,n.flags|=128):S&=1,T(bt,S),Mt(e,n,o,i),o=Ve?Pi:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mg(e,i,n);else if(e.tag===19)mg(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&&xo(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),kc(n,!1,f,i,g,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&xo(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}kc(n,!0,i,null,g,o);break;case"together":kc(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function ar(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Mr|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(Kl(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,i=er(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=er(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Ec(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&co(e)))}function Av(e,n,i){switch(n.tag){case 3:ge(n,n.stateNode.containerInfo),Tr(n,vt,e.memoizedState.cache),cl();break;case 27:case 5:be(n);break;case 4:ge(n,n.stateNode.containerInfo);break;case 10:Tr(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Zu(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Lr(n),n.flags|=128,null):(i&n.child.childLanes)!==0?gg(e,n,i):(Lr(n),e=ar(e,n,i),e!==null?e.sibling:null);Lr(n);break;case 19:var f=(e.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(Kl(e,n,i,!1),o=(i&n.childLanes)!==0),f){if(o)return yg(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),T(bt,bt.current),o)break;return null;case 22:return n.lanes=0,ug(e,n,i,n.pendingProps);case 24:Tr(n,vt,e.memoizedState.cache)}return ar(e,n,i)}function bg(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)St=!0;else{if(!Ec(e,i)&&(n.flags&128)===0)return St=!1,Av(e,n,i);St=(e.flags&131072)!==0}else St=!1,Ve&&(n.flags&1048576)!==0&&Qh(n,Pi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(e=pl(n.elementType),n.type=e,typeof e=="function")Ru(e)?(o=bl(e,o),n.tag=1,n=hg(null,n,e,o,i)):(n.tag=0,n=yc(null,n,e,o,i));else{if(e!=null){var f=e.$$typeof;if(f===B){n.tag=11,n=ag(null,n,e,o,i);break e}else if(f===U){n.tag=14,n=og(null,n,e,o,i);break e}}throw n=F(e)||e,Error(a(306,n,""))}}return n;case 0:return yc(e,n,n.type,n.pendingProps,i);case 1:return o=n.type,f=bl(o,n.pendingProps),hg(e,n,o,f,i);case 3:e:{if(ge(n,n.stateNode.containerInfo),e===null)throw Error(a(387));o=n.pendingProps;var g=n.memoizedState;f=g.element,Pu(e,n),Ji(n,o,null,i);var S=n.memoizedState;if(o=S.cache,Tr(n,vt,o),o!==g.cache&&Fu(n,[vt],i,!0),Ki(),o=S.element,g.isDehydrated)if(g={element:o,isDehydrated:!1,cache:S.cache},n.updateQueue.baseState=g,n.memoizedState=g,n.flags&256){n=pg(e,n,o,i);break e}else if(o!==f){f=En(Error(a(424)),n),$i(f),n=pg(e,n,o,i);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ut=Rn(e.firstChild),Dt=n,Ve=!0,Cr=null,Tn=!0,i=up(n,null,o,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(cl(),o===f){n=ar(e,n,i);break e}Mt(e,n,o,i)}n=n.child}return n;case 26:return _o(e,n),e===null?(i=Rm(n.type,null,n.pendingProps,null))?n.memoizedState=i:Ve||(i=n.type,e=n.pendingProps,o=Yo(fe.current).createElement(i),o[ye]=n,o[we]=e,zt(o,i,e),Nt(o),n.stateNode=o):n.memoizedState=Rm(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return be(n),e===null&&Ve&&(o=n.stateNode=Am(n.type,n.pendingProps,fe.current),Dt=n,Tn=!0,f=ut,Ur(n.type)?(rf=f,ut=Rn(o.firstChild)):ut=f),Mt(e,n,n.pendingProps.children,i),_o(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ve&&((f=o=ut)&&(o=nw(o,n.type,n.pendingProps,Tn),o!==null?(n.stateNode=o,Dt=n,ut=Rn(o.firstChild),Tn=!1,f=!0):f=!1),f||Ar(n)),be(n),f=n.type,g=n.pendingProps,S=e!==null?e.memoizedProps:null,o=g.children,Jc(f,g)?o=null:S!==null&&Jc(f,S)&&(n.flags|=32),n.memoizedState!==null&&(f=Ku(e,n,yv,null,null,i),ba._currentValue=f),_o(e,n),Mt(e,n,o,i),n.child;case 6:return e===null&&Ve&&((e=i=ut)&&(i=rw(i,n.pendingProps,Tn),i!==null?(n.stateNode=i,Dt=n,ut=null,e=!0):e=!1),e||Ar(n)),null;case 13:return gg(e,n,i);case 4:return ge(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=ml(n,null,o,i):Mt(e,n,o,i),n.child;case 11:return ag(e,n,n.type,n.pendingProps,i);case 7:return Mt(e,n,n.pendingProps,i),n.child;case 8:return Mt(e,n,n.pendingProps.children,i),n.child;case 12:return Mt(e,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,Tr(n,n.type,o.value),Mt(e,n,o.children,i),n.child;case 9:return f=n.type._context,o=n.pendingProps.children,dl(n),f=Ot(f),o=o(f),n.flags|=1,Mt(e,n,o,i),n.child;case 14:return og(e,n,n.type,n.pendingProps,i);case 15:return sg(e,n,n.type,n.pendingProps,i);case 19:return yg(e,n,i);case 31:return Cv(e,n,i);case 22:return ug(e,n,i,n.pendingProps);case 24:return dl(n),o=Ot(vt),e===null?(f=Hu(),f===null&&(f=lt,g=Iu(),f.pooledCache=g,g.refCount++,g!==null&&(f.pooledCacheLanes|=i),f=g),n.memoizedState={parent:o,cache:f},Vu(n),Tr(n,vt,f)):((e.lanes&i)!==0&&(Pu(e,n),Ji(n,null,null,i),Ki()),f=e.memoizedState,g=n.memoizedState,f.parent!==o?(f={parent:o,cache:o},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),Tr(n,vt,o)):(o=g.cache,Tr(n,vt,o),o!==f.cache&&Fu(n,[vt],i,!0))),Mt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function or(e){e.flags|=4}function Cc(e,n,i,o,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($g())e.flags|=8192;else throw gl=go,qu}else e.flags&=-16777217}function xg(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Om(n))if($g())e.flags|=8192;else throw gl=go,qu}function jo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?wr():536870912,e.lanes|=n,ui|=n)}function la(e,n){if(!Ve)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 o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ct(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,o|=f.subtreeFlags&65011712,o|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=o,e.childLanes=i,n}function Tv(e,n,i){var o=n.pendingProps;switch(Du(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(n),null;case 1:return ct(n),null;case 3:return i=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),rr(vt),he(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ql(n)?or(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Mu())),ct(n),null;case 26:var f=n.type,g=n.memoizedState;return e===null?(or(n),g!==null?(ct(n),xg(n,g)):(ct(n),Cc(n,f,null,o,i))):g?g!==e.memoizedState?(or(n),ct(n),xg(n,g)):(ct(n),n.flags&=-16777217):(e=e.memoizedProps,e!==o&&or(n),ct(n),Cc(n,f,e,o,i)),null;case 27:if(Re(n),i=fe.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&or(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return ct(n),null}e=le.current,Ql(n)?Jh(n):(e=Am(f,o,i),n.stateNode=e,or(n))}return ct(n),null;case 5:if(Re(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&or(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return ct(n),null}if(g=le.current,Ql(n))Jh(n);else{var S=Yo(fe.current);switch(g){case 1:g=S.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:g=S.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":g=S.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":g=S.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":g=S.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof o.is=="string"?S.createElement("select",{is:o.is}):S.createElement("select"),o.multiple?g.multiple=!0:o.size&&(g.size=o.size);break;default:g=typeof o.is=="string"?S.createElement(f,{is:o.is}):S.createElement(f)}}g[ye]=n,g[we]=o;e:for(S=n.child;S!==null;){if(S.tag===5||S.tag===6)g.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===n)break e;for(;S.sibling===null;){if(S.return===null||S.return===n)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}n.stateNode=g;e:switch(zt(g,f,o),f){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&or(n)}}return ct(n),Cc(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&or(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(a(166));if(e=fe.current,Ql(n)){if(e=n.stateNode,i=n.memoizedProps,o=null,f=Dt,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}e[ye]=n,e=!!(e.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||gm(e.nodeValue,i)),e||Ar(n,!0)}else e=Yo(e).createTextNode(o),e[ye]=n,n.stateNode=e}return ct(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(o=Ql(n),i!==null){if(e===null){if(!o)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[ye]=n}else cl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ct(n),e=!1}else i=Mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(dn(n),n):(dn(n),null);if((n.flags&128)!==0)throw Error(a(558))}return ct(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Ql(n),o!==null&&o.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[ye]=n}else cl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ct(n),f=!1}else f=Mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(dn(n),n):(dn(n),null)}return dn(n),(n.flags&128)!==0?(n.lanes=i,n):(i=o!==null,e=e!==null&&e.memoizedState!==null,i&&(o=n.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool),g=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(g=o.memoizedState.cachePool.pool),g!==f&&(o.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),jo(n,n.updateQueue),ct(n),null);case 4:return he(),e===null&&Yc(n.stateNode.containerInfo),ct(n),null;case 10:return rr(n.type),ct(n),null;case 19:if(V(bt),o=n.memoizedState,o===null)return ct(n),null;if(f=(n.flags&128)!==0,g=o.rendering,g===null)if(f)la(o,!1);else{if(yt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(g=xo(e),g!==null){for(n.flags|=128,la(o,!1),e=g.updateQueue,n.updateQueue=e,jo(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)Yh(i,e),i=i.sibling;return T(bt,bt.current&1|2),Ve&&tr(n,o.treeForkCount),n.child}e=e.sibling}o.tail!==null&&at()>Bo&&(n.flags|=128,f=!0,la(o,!1),n.lanes=4194304)}else{if(!f)if(e=xo(g),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,jo(n,e),la(o,!0),o.tail===null&&o.tailMode==="hidden"&&!g.alternate&&!Ve)return ct(n),null}else 2*at()-o.renderingStartTime>Bo&&i!==536870912&&(n.flags|=128,f=!0,la(o,!1),n.lanes=4194304);o.isBackwards?(g.sibling=n.child,n.child=g):(e=o.last,e!==null?e.sibling=g:n.child=g,o.last=g)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=at(),e.sibling=null,i=bt.current,T(bt,f?i&1|2:i&1),Ve&&tr(n,o.treeForkCount),e):(ct(n),null);case 22:case 23:return dn(n),Xu(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(i&536870912)!==0&&(n.flags&128)===0&&(ct(n),n.subtreeFlags&6&&(n.flags|=8192)):ct(n),i=n.updateQueue,i!==null&&jo(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),e!==null&&V(hl),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),rr(vt),ct(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function Nv(e,n){switch(Du(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return rr(vt),he(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Re(n),null;case 31:if(n.memoizedState!==null){if(dn(n),n.alternate===null)throw Error(a(340));cl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(dn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));cl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return V(bt),null;case 4:return he(),null;case 10:return rr(n.type),null;case 22:case 23:return dn(n),Xu(),e!==null&&V(hl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return rr(vt),null;case 25:return null;default:return null}}function vg(e,n){switch(Du(n),n.tag){case 3:rr(vt),he();break;case 26:case 27:case 5:Re(n);break;case 4:he();break;case 31:n.memoizedState!==null&&dn(n);break;case 13:dn(n);break;case 19:V(bt);break;case 10:rr(n.type);break;case 22:case 23:dn(n),Xu(),e!==null&&V(hl);break;case 24:rr(vt)}}function ia(e,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var f=o.next;i=f;do{if((i.tag&e)===e){o=void 0;var g=i.create,S=i.inst;o=g(),S.destroy=o}i=i.next}while(i!==f)}}catch(_){We(n,n.return,_)}}function Dr(e,n,i){try{var o=n.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var g=f.next;o=g;do{if((o.tag&e)===e){var S=o.inst,_=S.destroy;if(_!==void 0){S.destroy=void 0,f=n;var H=i,ee=_;try{ee()}catch(ie){We(f,H,ie)}}}o=o.next}while(o!==g)}}catch(ie){We(n,n.return,ie)}}function wg(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{fp(n,i)}catch(o){We(e,e.return,o)}}}function Sg(e,n,i){i.props=bl(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(o){We(e,n,o)}}function aa(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof i=="function"?e.refCleanup=i(o):i.current=o}}catch(f){We(e,n,f)}}function Hn(e,n){var i=e.ref,o=e.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(f){We(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){We(e,n,f)}else i.current=null}function kg(e){var n=e.type,i=e.memoizedProps,o=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(f){We(e,e.return,f)}}function Ac(e,n,i){try{var o=e.stateNode;Qv(o,e.type,i,n),o[we]=n}catch(f){We(e,e.return,f)}}function Eg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ur(e.type)||e.tag===4}function Tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eg(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&&Ur(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 Nc(e,n,i){var o=e.tag;if(o===5||o===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=Jn));else if(o!==4&&(o===27&&Ur(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Nc(e,n,i),e=e.sibling;e!==null;)Nc(e,n,i),e=e.sibling}function Do(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(o!==4&&(o===27&&Ur(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Do(e,n,i),e=e.sibling;e!==null;)Do(e,n,i),e=e.sibling}function Cg(e){var n=e.stateNode,i=e.memoizedProps;try{for(var o=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);zt(n,o,i),n[ye]=e,n[we]=i}catch(g){We(e,e.return,g)}}var sr=!1,kt=!1,Rc=!1,Ag=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function Rv(e,n){if(e=e.containerInfo,Qc=es,e=Fh(e),Su(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var f=o.anchorOffset,g=o.focusNode;o=o.focusOffset;try{i.nodeType,g.nodeType}catch{i=null;break e}var S=0,_=-1,H=-1,ee=0,ie=0,ue=e,te=null;t:for(;;){for(var ne;ue!==i||f!==0&&ue.nodeType!==3||(_=S+f),ue!==g||o!==0&&ue.nodeType!==3||(H=S+o),ue.nodeType===3&&(S+=ue.nodeValue.length),(ne=ue.firstChild)!==null;)te=ue,ue=ne;for(;;){if(ue===e)break t;if(te===i&&++ee===f&&(_=S),te===g&&++ie===o&&(H=S),(ne=ue.nextSibling)!==null)break;ue=te,te=ue.parentNode}ue=ne}i=_===-1||H===-1?null:{start:_,end:H}}else i=null}i=i||{start:0,end:0}}else i=null;for(Kc={focusedElem:e,selectionRange:i},es=!1,Rt=n;Rt!==null;)if(n=Rt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Rt=e;else for(;Rt!==null;){switch(n=Rt,g=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&&g!==null){e=void 0,i=n,f=g.memoizedProps,g=g.memoizedState,o=i.stateNode;try{var ve=bl(i.type,f);e=o.getSnapshotBeforeUpdate(ve,g),o.__reactInternalSnapshotBeforeUpdate=e}catch(Ne){We(i,i.return,Ne)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)ef(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ef(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(a(163))}if(e=n.sibling,e!==null){e.return=n.return,Rt=e;break}Rt=n.return}}function Tg(e,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:cr(e,i),o&4&&ia(5,i);break;case 1:if(cr(e,i),o&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(S){We(i,i.return,S)}else{var f=bl(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(S){We(i,i.return,S)}}o&64&&wg(i),o&512&&aa(i,i.return);break;case 3:if(cr(e,i),o&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{fp(e,n)}catch(S){We(i,i.return,S)}}break;case 27:n===null&&o&4&&Cg(i);case 26:case 5:cr(e,i),n===null&&o&4&&kg(i),o&512&&aa(i,i.return);break;case 12:cr(e,i);break;case 31:cr(e,i),o&4&&_g(e,i);break;case 13:cr(e,i),o&4&&Lg(e,i),o&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=Fv.bind(null,i),lw(e,i))));break;case 22:if(o=i.memoizedState!==null||sr,!o){n=n!==null&&n.memoizedState!==null||kt,f=sr;var g=kt;sr=o,(kt=n)&&!g?fr(e,i,(i.subtreeFlags&8772)!==0):cr(e,i),sr=f,kt=g}break;case 30:break;default:cr(e,i)}}function Ng(e){var n=e.alternate;n!==null&&(e.alternate=null,Ng(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&iu(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 dt=null,Kt=!1;function ur(e,n,i){for(i=i.child;i!==null;)Rg(e,n,i),i=i.sibling}function Rg(e,n,i){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(jt,i)}catch{}switch(i.tag){case 26:kt||Hn(i,n),ur(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:kt||Hn(i,n);var o=dt,f=Kt;Ur(i.type)&&(dt=i.stateNode,Kt=!1),ur(e,n,i),ga(i.stateNode),dt=o,Kt=f;break;case 5:kt||Hn(i,n);case 6:if(o=dt,f=Kt,dt=null,ur(e,n,i),dt=o,Kt=f,dt!==null)if(Kt)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(i.stateNode)}catch(g){We(i,n,g)}else try{dt.removeChild(i.stateNode)}catch(g){We(i,n,g)}break;case 18:dt!==null&&(Kt?(e=dt,wm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),yi(e)):wm(dt,i.stateNode));break;case 4:o=dt,f=Kt,dt=i.stateNode.containerInfo,Kt=!0,ur(e,n,i),dt=o,Kt=f;break;case 0:case 11:case 14:case 15:Dr(2,i,n),kt||Dr(4,i,n),ur(e,n,i);break;case 1:kt||(Hn(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Sg(i,n,o)),ur(e,n,i);break;case 21:ur(e,n,i);break;case 22:kt=(o=kt)||i.memoizedState!==null,ur(e,n,i),kt=o;break;default:ur(e,n,i)}}function _g(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{yi(e)}catch(i){We(n,n.return,i)}}}function Lg(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{yi(e)}catch(i){We(n,n.return,i)}}function _v(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Ag),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Ag),n;default:throw Error(a(435,e.tag))}}function Oo(e,n){var i=_v(e);n.forEach(function(o){if(!i.has(o)){i.add(o);var f=Iv.bind(null,e,o);o.then(f,f)}})}function Jt(e,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var f=i[o],g=e,S=n,_=S;e:for(;_!==null;){switch(_.tag){case 27:if(Ur(_.type)){dt=_.stateNode,Kt=!1;break e}break;case 5:dt=_.stateNode,Kt=!1;break e;case 3:case 4:dt=_.stateNode.containerInfo,Kt=!0;break e}_=_.return}if(dt===null)throw Error(a(160));Rg(g,S,f),dt=null,Kt=!1,g=f.alternate,g!==null&&(g.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)jg(n,e),n=n.sibling}var zn=null;function jg(e,n){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Jt(n,e),Wt(e),o&4&&(Dr(3,e,e.return),ia(3,e),Dr(5,e,e.return));break;case 1:Jt(n,e),Wt(e),o&512&&(kt||i===null||Hn(i,i.return)),o&64&&sr&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var f=zn;if(Jt(n,e),Wt(e),o&512&&(kt||i===null||Hn(i,i.return)),o&4){var g=i!==null?i.memoizedState:null;if(o=e.memoizedState,i===null)if(o===null)if(e.stateNode===null){e:{o=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(o){case"title":g=f.getElementsByTagName("title")[0],(!g||g[Di]||g[ye]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=f.createElement(o),f.head.insertBefore(g,f.querySelector("head > title"))),zt(g,o,i),g[ye]=e,Nt(g),o=g;break e;case"link":var S=jm("link","href",f).get(o+(i.href||""));if(S){for(var _=0;_<S.length;_++)if(g=S[_],g.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&g.getAttribute("rel")===(i.rel==null?null:i.rel)&&g.getAttribute("title")===(i.title==null?null:i.title)&&g.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){S.splice(_,1);break t}}g=f.createElement(o),zt(g,o,i),f.head.appendChild(g);break;case"meta":if(S=jm("meta","content",f).get(o+(i.content||""))){for(_=0;_<S.length;_++)if(g=S[_],g.getAttribute("content")===(i.content==null?null:""+i.content)&&g.getAttribute("name")===(i.name==null?null:i.name)&&g.getAttribute("property")===(i.property==null?null:i.property)&&g.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&g.getAttribute("charset")===(i.charSet==null?null:i.charSet)){S.splice(_,1);break t}}g=f.createElement(o),zt(g,o,i),f.head.appendChild(g);break;default:throw Error(a(468,o))}g[ye]=e,Nt(g),o=g}e.stateNode=o}else Dm(f,e.type,e.stateNode);else e.stateNode=Lm(f,o,e.memoizedProps);else g!==o?(g===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):g.count--,o===null?Dm(f,e.type,e.stateNode):Lm(f,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Ac(e,e.memoizedProps,i.memoizedProps)}break;case 27:Jt(n,e),Wt(e),o&512&&(kt||i===null||Hn(i,i.return)),i!==null&&o&4&&Ac(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Jt(n,e),Wt(e),o&512&&(kt||i===null||Hn(i,i.return)),e.flags&32){f=e.stateNode;try{Ul(f,"")}catch(ve){We(e,e.return,ve)}}o&4&&e.stateNode!=null&&(f=e.memoizedProps,Ac(e,f,i!==null?i.memoizedProps:f)),o&1024&&(Rc=!0);break;case 6:if(Jt(n,e),Wt(e),o&4){if(e.stateNode===null)throw Error(a(162));o=e.memoizedProps,i=e.stateNode;try{i.nodeValue=o}catch(ve){We(e,e.return,ve)}}break;case 3:if(Qo=null,f=zn,zn=Xo(n.containerInfo),Jt(n,e),zn=f,Wt(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{yi(n.containerInfo)}catch(ve){We(e,e.return,ve)}Rc&&(Rc=!1,Dg(e));break;case 4:o=zn,zn=Xo(e.stateNode.containerInfo),Jt(n,e),Wt(e),zn=o;break;case 12:Jt(n,e),Wt(e);break;case 31:Jt(n,e),Wt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Oo(e,o)));break;case 13:Jt(n,e),Wt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(zo=at()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Oo(e,o)));break;case 22:f=e.memoizedState!==null;var H=i!==null&&i.memoizedState!==null,ee=sr,ie=kt;if(sr=ee||f,kt=ie||H,Jt(n,e),kt=ie,sr=ee,Wt(e),o&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||H||sr||kt||xl(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){H=i=n;try{if(g=H.stateNode,f)S=g.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{_=H.stateNode;var ue=H.memoizedProps.style,te=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;_.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(ve){We(H,H.return,ve)}}}else if(n.tag===6){if(i===null){H=n;try{H.stateNode.nodeValue=f?"":H.memoizedProps}catch(ve){We(H,H.return,ve)}}}else if(n.tag===18){if(i===null){H=n;try{var ne=H.stateNode;f?Sm(ne,!0):Sm(H.stateNode,!1)}catch(ve){We(H,H.return,ve)}}}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}o&4&&(o=e.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Oo(e,i))));break;case 19:Jt(n,e),Wt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Oo(e,o)));break;case 30:break;case 21:break;default:Jt(n,e),Wt(e)}}function Wt(e){var n=e.flags;if(n&2){try{for(var i,o=e.return;o!==null;){if(Eg(o)){i=o;break}o=o.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var f=i.stateNode,g=Tc(e);Do(e,g,f);break;case 5:var S=i.stateNode;i.flags&32&&(Ul(S,""),i.flags&=-33);var _=Tc(e);Do(e,_,S);break;case 3:case 4:var H=i.stateNode.containerInfo,ee=Tc(e);Nc(e,ee,H);break;default:throw Error(a(161))}}catch(ie){We(e,e.return,ie)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Dg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Dg(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function cr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Tg(e,n.alternate,n),n=n.sibling}function xl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Dr(4,n,n.return),xl(n);break;case 1:Hn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Sg(n,n.return,i),xl(n);break;case 27:ga(n.stateNode);case 26:case 5:Hn(n,n.return),xl(n);break;case 22:n.memoizedState===null&&xl(n);break;case 30:xl(n);break;default:xl(n)}e=e.sibling}}function fr(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,f=e,g=n,S=g.flags;switch(g.tag){case 0:case 11:case 15:fr(f,g,i),ia(4,g);break;case 1:if(fr(f,g,i),o=g,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(ee){We(o,o.return,ee)}if(o=g,f=o.updateQueue,f!==null){var _=o.stateNode;try{var H=f.shared.hiddenCallbacks;if(H!==null)for(f.shared.hiddenCallbacks=null,f=0;f<H.length;f++)cp(H[f],_)}catch(ee){We(o,o.return,ee)}}i&&S&64&&wg(g),aa(g,g.return);break;case 27:Cg(g);case 26:case 5:fr(f,g,i),i&&o===null&&S&4&&kg(g),aa(g,g.return);break;case 12:fr(f,g,i);break;case 31:fr(f,g,i),i&&S&4&&_g(f,g);break;case 13:fr(f,g,i),i&&S&4&&Lg(f,g);break;case 22:g.memoizedState===null&&fr(f,g,i),aa(g,g.return);break;case 30:break;default:fr(f,g,i)}n=n.sibling}}function _c(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&&Gi(i))}function Lc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Gi(e))}function Bn(e,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Og(e,n,i,o),n=n.sibling}function Og(e,n,i,o){var f=n.flags;switch(n.tag){case 0:case 11:case 15:Bn(e,n,i,o),f&2048&&ia(9,n);break;case 1:Bn(e,n,i,o);break;case 3:Bn(e,n,i,o),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Gi(e)));break;case 12:if(f&2048){Bn(e,n,i,o),e=n.stateNode;try{var g=n.memoizedProps,S=g.id,_=g.onPostCommit;typeof _=="function"&&_(S,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(H){We(n,n.return,H)}}else Bn(e,n,i,o);break;case 31:Bn(e,n,i,o);break;case 13:Bn(e,n,i,o);break;case 23:break;case 22:g=n.stateNode,S=n.alternate,n.memoizedState!==null?g._visibility&2?Bn(e,n,i,o):oa(e,n):g._visibility&2?Bn(e,n,i,o):(g._visibility|=2,ai(e,n,i,o,(n.subtreeFlags&10256)!==0||!1)),f&2048&&_c(S,n);break;case 24:Bn(e,n,i,o),f&2048&&Lc(n.alternate,n);break;default:Bn(e,n,i,o)}}function ai(e,n,i,o,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var g=e,S=n,_=i,H=o,ee=S.flags;switch(S.tag){case 0:case 11:case 15:ai(g,S,_,H,f),ia(8,S);break;case 23:break;case 22:var ie=S.stateNode;S.memoizedState!==null?ie._visibility&2?ai(g,S,_,H,f):oa(g,S):(ie._visibility|=2,ai(g,S,_,H,f)),f&&ee&2048&&_c(S.alternate,S);break;case 24:ai(g,S,_,H,f),f&&ee&2048&&Lc(S.alternate,S);break;default:ai(g,S,_,H,f)}n=n.sibling}}function oa(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,o=n,f=o.flags;switch(o.tag){case 22:oa(i,o),f&2048&&_c(o.alternate,o);break;case 24:oa(i,o),f&2048&&Lc(o.alternate,o);break;default:oa(i,o)}n=n.sibling}}var sa=8192;function oi(e,n,i){if(e.subtreeFlags&sa)for(e=e.child;e!==null;)Mg(e,n,i),e=e.sibling}function Mg(e,n,i){switch(e.tag){case 26:oi(e,n,i),e.flags&sa&&e.memoizedState!==null&&mw(i,zn,e.memoizedState,e.memoizedProps);break;case 5:oi(e,n,i);break;case 3:case 4:var o=zn;zn=Xo(e.stateNode.containerInfo),oi(e,n,i),zn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=sa,sa=16777216,oi(e,n,i),sa=o):oi(e,n,i));break;default:oi(e,n,i)}}function zg(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 ua(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Rt=o,Fg(o,e)}zg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bg(e),e=e.sibling}function Bg(e){switch(e.tag){case 0:case 11:case 15:ua(e),e.flags&2048&&Dr(9,e,e.return);break;case 3:ua(e);break;case 12:ua(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Mo(e)):ua(e);break;default:ua(e)}}function Mo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Rt=o,Fg(o,e)}zg(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Dr(8,n,n.return),Mo(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Mo(n));break;default:Mo(n)}e=e.sibling}}function Fg(e,n){for(;Rt!==null;){var i=Rt;switch(i.tag){case 0:case 11:case 15:Dr(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Gi(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Rt=o;else e:for(i=e;Rt!==null;){o=Rt;var f=o.sibling,g=o.return;if(Ng(o),o===i){Rt=null;break e}if(f!==null){f.return=g,Rt=f;break e}Rt=g}}}var Lv={getCacheForType:function(e){var n=Ot(vt),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return Ot(vt).controller.signal}},jv=typeof WeakMap=="function"?WeakMap:Map,Xe=0,lt=null,Be=null,He=0,Je=0,hn=null,Or=!1,si=!1,jc=!1,dr=0,yt=0,Mr=0,vl=0,Dc=0,pn=0,ui=0,ca=null,en=null,Oc=!1,zo=0,Ig=0,Bo=1/0,Fo=null,zr=null,At=0,Br=null,ci=null,hr=0,Mc=0,zc=null,Ug=null,fa=0,Bc=null;function gn(){return(Xe&2)!==0&&He!==0?He&-He:L.T!==null?Vc():Ga()}function Hg(){if(pn===0)if((He&536870912)===0||Ve){var e=nl;nl<<=1,(nl&3932160)===0&&(nl=262144),pn=e}else pn=536870912;return e=fn.current,e!==null&&(e.flags|=32),pn}function tn(e,n,i){(e===lt&&(Je===2||Je===9)||e.cancelPendingCommit!==null)&&(fi(e,0),Fr(e,He,pn,!1)),Sr(e,i),((Xe&2)===0||e!==lt)&&(e===lt&&((Xe&2)===0&&(vl|=i),yt===4&&Fr(e,He,pn,!1)),qn(e))}function qg(e,n,i){if((Xe&6)!==0)throw Error(a(327));var o=!i&&(n&127)===0&&(n&e.expiredLanes)===0||rl(e,n),f=o?Mv(e,n):Ic(e,n,!0),g=o;do{if(f===0){si&&!o&&Fr(e,n,0,!1);break}else{if(i=e.current.alternate,g&&!Dv(i)){f=Ic(e,n,!1),g=!1;continue}if(f===2){if(g=n,e.errorRecoveryDisabledLanes&g)var S=0;else S=e.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){n=S;e:{var _=e;f=ca;var H=_.current.memoizedState.isDehydrated;if(H&&(fi(_,S).flags|=256),S=Ic(_,S,!1),S!==2){if(jc&&!H){_.errorRecoveryDisabledLanes|=g,vl|=g,f=4;break e}g=en,en=f,g!==null&&(en===null?en=g:en.push.apply(en,g))}f=S}if(g=!1,f!==2)continue}}if(f===1){fi(e,0),Fr(e,n,0,!0);break}e:{switch(o=e,g=f,g){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:Fr(o,n,pn,!Or);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=zo+300-at(),10<f)){if(Fr(o,n,pn,!Or),_l(o,0,!0)!==0)break e;hr=n,o.timeoutHandle=xm(Vg.bind(null,o,i,en,Fo,Oc,n,pn,vl,ui,Or,g,"Throttled",-0,0),f);break e}Vg(o,i,en,Fo,Oc,n,pn,vl,ui,Or,g,null,-0,0)}}break}while(!0);qn(e)}function Vg(e,n,i,o,f,g,S,_,H,ee,ie,ue,te,ne){if(e.timeoutHandle=-1,ue=n.subtreeFlags,ue&8192||(ue&16785408)===16785408){ue={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jn},Mg(n,g,ue);var ve=(g&62914560)===g?zo-at():(g&4194048)===g?Ig-at():0;if(ve=yw(ue,ve),ve!==null){hr=g,e.cancelPendingCommit=ve(Kg.bind(null,e,n,g,i,o,f,S,_,H,ie,ue,null,te,ne)),Fr(e,g,S,!ee);return}}Kg(e,n,g,i,o,f,S,_,H)}function Dv(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 o=0;o<i.length;o++){var f=i[o],g=f.getSnapshot;f=f.value;try{if(!un(g(),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 Fr(e,n,i,o){n&=~Dc,n&=~vl,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var f=n;0<f;){var g=31-Ke(f),S=1<<g;o[g]=-1,f&=~S}i!==0&&Pa(e,i,n)}function Io(){return(Xe&6)===0?(da(0),!1):!0}function Fc(){if(Be!==null){if(Je===0)var e=Be.return;else e=Be,nr=fl=null,ec(e),ti=null,Xi=0,e=Be;for(;e!==null;)vg(e.alternate,e),e=e.return;Be=null}}function fi(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,Wv(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),hr=0,Fc(),lt=e,Be=i=er(e.current,null),He=n,Je=0,hn=null,Or=!1,si=rl(e,n),jc=!1,ui=pn=Dc=vl=Mr=yt=0,en=ca=null,Oc=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var f=31-Ke(o),g=1<<f;n|=e[f],o&=~g}return dr=n,io(),i}function Pg(e,n){je=null,L.H=na,n===ei||n===po?(n=ap(),Je=3):n===qu?(n=ap(),Je=4):Je=n===mc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,hn=n,Be===null&&(yt=1,No(e,En(n,e.current)))}function $g(){var e=fn.current;return e===null?!0:(He&4194048)===He?Nn===null:(He&62914560)===He||(He&536870912)!==0?e===Nn:!1}function Gg(){var e=L.H;return L.H=na,e===null?na:e}function Yg(){var e=L.A;return L.A=Lv,e}function Uo(){yt=4,Or||(He&4194048)!==He&&fn.current!==null||(si=!0),(Mr&134217727)===0&&(vl&134217727)===0||lt===null||Fr(lt,He,pn,!1)}function Ic(e,n,i){var o=Xe;Xe|=2;var f=Gg(),g=Yg();(lt!==e||He!==n)&&(Fo=null,fi(e,n)),n=!1;var S=yt;e:do try{if(Je!==0&&Be!==null){var _=Be,H=hn;switch(Je){case 8:Fc(),S=6;break e;case 3:case 2:case 9:case 6:fn.current===null&&(n=!0);var ee=Je;if(Je=0,hn=null,di(e,_,H,ee),i&&si){S=0;break e}break;default:ee=Je,Je=0,hn=null,di(e,_,H,ee)}}Ov(),S=yt;break}catch(ie){Pg(e,ie)}while(!0);return n&&e.shellSuspendCounter++,nr=fl=null,Xe=o,L.H=f,L.A=g,Be===null&&(lt=null,He=0,io()),S}function Ov(){for(;Be!==null;)Xg(Be)}function Mv(e,n){var i=Xe;Xe|=2;var o=Gg(),f=Yg();lt!==e||He!==n?(Fo=null,Bo=at()+500,fi(e,n)):si=rl(e,n);e:do try{if(Je!==0&&Be!==null){n=Be;var g=hn;t:switch(Je){case 1:Je=0,hn=null,di(e,n,g,1);break;case 2:case 9:if(lp(g)){Je=0,hn=null,Zg(n);break}n=function(){Je!==2&&Je!==9||lt!==e||(Je=7),qn(e)},g.then(n,n);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:lp(g)?(Je=0,hn=null,Zg(n)):(Je=0,hn=null,di(e,n,g,7));break;case 5:var S=null;switch(Be.tag){case 26:S=Be.memoizedState;case 5:case 27:var _=Be;if(S?Om(S):_.stateNode.complete){Je=0,hn=null;var H=_.sibling;if(H!==null)Be=H;else{var ee=_.return;ee!==null?(Be=ee,Ho(ee)):Be=null}break t}}Je=0,hn=null,di(e,n,g,5);break;case 6:Je=0,hn=null,di(e,n,g,6);break;case 8:Fc(),yt=6;break e;default:throw Error(a(462))}}zv();break}catch(ie){Pg(e,ie)}while(!0);return nr=fl=null,L.H=o,L.A=f,Xe=i,Be!==null?0:(lt=null,He=0,io(),yt)}function zv(){for(;Be!==null&&!Pt();)Xg(Be)}function Xg(e){var n=bg(e.alternate,e,dr);e.memoizedProps=e.pendingProps,n===null?Ho(e):Be=n}function Zg(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=dg(i,n,n.pendingProps,n.type,void 0,He);break;case 11:n=dg(i,n,n.pendingProps,n.type.render,n.ref,He);break;case 5:ec(n);default:vg(i,n),n=Be=Yh(n,dr),n=bg(i,n,dr)}e.memoizedProps=e.pendingProps,n===null?Ho(e):Be=n}function di(e,n,i,o){nr=fl=null,ec(n),ti=null,Xi=0;var f=n.return;try{if(Ev(e,f,n,i,He)){yt=1,No(e,En(i,e.current)),Be=null;return}}catch(g){if(f!==null)throw Be=f,g;yt=1,No(e,En(i,e.current)),Be=null;return}n.flags&32768?(Ve||o===1?e=!0:si||(He&536870912)!==0?e=!1:(Or=e=!0,(o===2||o===9||o===3||o===6)&&(o=fn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Qg(n,e)):Ho(n)}function Ho(e){var n=e;do{if((n.flags&32768)!==0){Qg(n,Or);return}e=n.return;var i=Tv(n.alternate,n,dr);if(i!==null){Be=i;return}if(n=n.sibling,n!==null){Be=n;return}Be=n=e}while(n!==null);yt===0&&(yt=5)}function Qg(e,n){do{var i=Nv(e.alternate,e);if(i!==null){i.flags&=32767,Be=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){Be=e;return}Be=e=i}while(e!==null);yt=6,Be=null}function Kg(e,n,i,o,f,g,S,_,H){e.cancelPendingCommit=null;do qo();while(At!==0);if((Xe&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(g=n.lanes|n.childLanes,g|=Tu,lu(e,i,g,S,_,H),e===lt&&(Be=lt=null,He=0),ci=n,Br=e,hr=i,Mc=g,zc=f,Ug=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Uv(Ce,function(){return nm(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=L.T,L.T=null,f=z.p,z.p=2,S=Xe,Xe|=4;try{Rv(e,n,i)}finally{Xe=S,z.p=f,L.T=o}}At=1,Jg(),Wg(),em()}}function Jg(){if(At===1){At=0;var e=Br,n=ci,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=L.T,L.T=null;var o=z.p;z.p=2;var f=Xe;Xe|=4;try{jg(n,e);var g=Kc,S=Fh(e.containerInfo),_=g.focusedElem,H=g.selectionRange;if(S!==_&&_&&_.ownerDocument&&Bh(_.ownerDocument.documentElement,_)){if(H!==null&&Su(_)){var ee=H.start,ie=H.end;if(ie===void 0&&(ie=ee),"selectionStart"in _)_.selectionStart=ee,_.selectionEnd=Math.min(ie,_.value.length);else{var ue=_.ownerDocument||document,te=ue&&ue.defaultView||window;if(te.getSelection){var ne=te.getSelection(),ve=_.textContent.length,Ne=Math.min(H.start,ve),nt=H.end===void 0?Ne:Math.min(H.end,ve);!ne.extend&&Ne>nt&&(S=nt,nt=Ne,Ne=S);var Q=zh(_,Ne),Y=zh(_,nt);if(Q&&Y&&(ne.rangeCount!==1||ne.anchorNode!==Q.node||ne.anchorOffset!==Q.offset||ne.focusNode!==Y.node||ne.focusOffset!==Y.offset)){var W=ue.createRange();W.setStart(Q.node,Q.offset),ne.removeAllRanges(),Ne>nt?(ne.addRange(W),ne.extend(Y.node,Y.offset)):(W.setEnd(Y.node,Y.offset),ne.addRange(W))}}}}for(ue=[],ne=_;ne=ne.parentNode;)ne.nodeType===1&&ue.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<ue.length;_++){var oe=ue[_];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}es=!!Qc,Kc=Qc=null}finally{Xe=f,z.p=o,L.T=i}}e.current=n,At=2}}function Wg(){if(At===2){At=0;var e=Br,n=ci,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=L.T,L.T=null;var o=z.p;z.p=2;var f=Xe;Xe|=4;try{Tg(e,n.alternate,n)}finally{Xe=f,z.p=o,L.T=i}}At=3}}function em(){if(At===4||At===3){At=0,$t();var e=Br,n=ci,i=hr,o=Ug;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?At=5:(At=0,ci=Br=null,tm(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(zr=null),ji(i),n=n.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(jt,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=L.T,f=z.p,z.p=2,L.T=null;try{for(var g=e.onRecoverableError,S=0;S<o.length;S++){var _=o[S];g(_.value,{componentStack:_.stack})}}finally{L.T=n,z.p=f}}(hr&3)!==0&&qo(),qn(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===Bc?fa++:(fa=0,Bc=e):fa=0,da(0)}}function tm(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Gi(n)))}function qo(){return Jg(),Wg(),em(),nm()}function nm(){if(At!==5)return!1;var e=Br,n=Mc;Mc=0;var i=ji(hr),o=L.T,f=z.p;try{z.p=32>i?32:i,L.T=null,i=zc,zc=null;var g=Br,S=hr;if(At=0,ci=Br=null,hr=0,(Xe&6)!==0)throw Error(a(331));var _=Xe;if(Xe|=4,Bg(g.current),Og(g,g.current,S,i),Xe=_,da(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(jt,g)}catch{}return!0}finally{z.p=f,L.T=o,tm(e,n)}}function rm(e,n,i){n=En(i,n),n=gc(e.stateNode,n,2),e=_r(e,n,2),e!==null&&(Sr(e,2),qn(e))}function We(e,n,i){if(e.tag===3)rm(e,e,i);else for(;n!==null;){if(n.tag===3){rm(n,e,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(zr===null||!zr.has(o))){e=En(i,e),i=lg(2),o=_r(n,i,2),o!==null&&(ig(i,o,n,e),Sr(o,2),qn(o));break}}n=n.return}}function Uc(e,n,i){var o=e.pingCache;if(o===null){o=e.pingCache=new jv;var f=new Set;o.set(n,f)}else f=o.get(n),f===void 0&&(f=new Set,o.set(n,f));f.has(i)||(jc=!0,f.add(i),e=Bv.bind(null,e,n,i),n.then(e,e))}function Bv(e,n,i){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,lt===e&&(He&i)===i&&(yt===4||yt===3&&(He&62914560)===He&&300>at()-zo?(Xe&2)===0&&fi(e,0):Dc|=i,ui===He&&(ui=0)),qn(e)}function lm(e,n){n===0&&(n=wr()),e=sl(e,n),e!==null&&(Sr(e,n),qn(e))}function Fv(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),lm(e,i)}function Iv(e,n){var i=0;switch(e.tag){case 31:case 13:var o=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(n),lm(e,i)}function Uv(e,n){return pt(e,n)}var Vo=null,hi=null,Hc=!1,Po=!1,qc=!1,Ir=0;function qn(e){e!==hi&&e.next===null&&(hi===null?Vo=hi=e:hi=hi.next=e),Po=!0,Hc||(Hc=!0,qv())}function da(e,n){if(!qc&&Po){qc=!0;do for(var i=!1,o=Vo;o!==null;){if(e!==0){var f=o.pendingLanes;if(f===0)var g=0;else{var S=o.suspendedLanes,_=o.pingedLanes;g=(1<<31-Ke(42|e)+1)-1,g&=f&~(S&~_),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(i=!0,sm(o,g))}else g=He,g=_l(o,o===lt?g:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(g&3)===0||rl(o,g)||(i=!0,sm(o,g));o=o.next}while(i);qc=!1}}function Hv(){im()}function im(){Po=Hc=!1;var e=0;Ir!==0&&Jv()&&(e=Ir);for(var n=at(),i=null,o=Vo;o!==null;){var f=o.next,g=am(o,n);g===0?(o.next=null,i===null?Vo=f:i.next=f,f===null&&(hi=i)):(i=o,(e!==0||(g&3)!==0)&&(Po=!0)),o=f}At!==0&&At!==5||da(e),Ir!==0&&(Ir=0)}function am(e,n){for(var i=e.suspendedLanes,o=e.pingedLanes,f=e.expirationTimes,g=e.pendingLanes&-62914561;0<g;){var S=31-Ke(g),_=1<<S,H=f[S];H===-1?((_&i)===0||(_&o)!==0)&&(f[S]=ru(_,n)):H<=n&&(e.expiredLanes|=_),g&=~_}if(n=lt,i=He,i=_l(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,i===0||e===n&&(Je===2||Je===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Vt(o),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||rl(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(o!==null&&Vt(o),ji(i)){case 2:case 8:i=me;break;case 32:i=Ce;break;case 268435456:i=Pe;break;default:i=Ce}return o=om.bind(null,e),i=pt(i,o),e.callbackPriority=n,e.callbackNode=i,n}return o!==null&&o!==null&&Vt(o),e.callbackPriority=2,e.callbackNode=null,2}function om(e,n){if(At!==0&&At!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(qo()&&e.callbackNode!==i)return null;var o=He;return o=_l(e,e===lt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(qg(e,o,n),am(e,at()),e.callbackNode!=null&&e.callbackNode===i?om.bind(null,e):null)}function sm(e,n){if(qo())return null;qg(e,n,!0)}function qv(){ew(function(){(Xe&6)!==0?pt(ae,Hv):im()})}function Vc(){if(Ir===0){var e=Jl;e===0&&(e=Rl,Rl<<=1,(Rl&261888)===0&&(Rl=256)),Ir=e}return Ir}function um(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ka(""+e)}function cm(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 Vv(e,n,i,o,f){if(n==="submit"&&i&&i.stateNode===f){var g=um((f[we]||null).action),S=o.submitter;S&&(n=(n=S[we]||null)?um(n.formAction):S.getAttribute("formAction"),n!==null&&(g=n,S=null));var _=new to("action","action",null,o,f);e.push({event:_,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ir!==0){var H=S?cm(f,S):new FormData(f);uc(i,{pending:!0,data:H,method:f.method,action:g},null,H)}}else typeof g=="function"&&(_.preventDefault(),H=S?cm(f,S):new FormData(f),uc(i,{pending:!0,data:H,method:f.method,action:g},g,H))},currentTarget:f}]})}}for(var Pc=0;Pc<Au.length;Pc++){var $c=Au[Pc],Pv=$c.toLowerCase(),$v=$c[0].toUpperCase()+$c.slice(1);Mn(Pv,"on"+$v)}Mn(Hh,"onAnimationEnd"),Mn(qh,"onAnimationIteration"),Mn(Vh,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(ov,"onTransitionRun"),Mn(sv,"onTransitionStart"),Mn(uv,"onTransitionCancel"),Mn(Ph,"onTransitionEnd"),Fl("onMouseEnter",["mouseout","mouseover"]),Fl("onMouseLeave",["mouseout","mouseover"]),Fl("onPointerEnter",["pointerout","pointerover"]),Fl("onPointerLeave",["pointerout","pointerover"]),ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ha="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(" "),Gv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ha));function fm(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],f=o.event;o=o.listeners;e:{var g=void 0;if(n)for(var S=o.length-1;0<=S;S--){var _=o[S],H=_.instance,ee=_.currentTarget;if(_=_.listener,H!==g&&f.isPropagationStopped())break e;g=_,f.currentTarget=ee;try{g(f)}catch(ie){lo(ie)}f.currentTarget=null,g=H}else for(S=0;S<o.length;S++){if(_=o[S],H=_.instance,ee=_.currentTarget,_=_.listener,H!==g&&f.isPropagationStopped())break e;g=_,f.currentTarget=ee;try{g(f)}catch(ie){lo(ie)}f.currentTarget=null,g=H}}}}function Fe(e,n){var i=n[ft];i===void 0&&(i=n[ft]=new Set);var o=e+"__bubble";i.has(o)||(dm(n,e,2,!1),i.add(o))}function Gc(e,n,i){var o=0;n&&(o|=4),dm(i,e,o,n)}var $o="_reactListening"+Math.random().toString(36).slice(2);function Yc(e){if(!e[$o]){e[$o]=!0,ih.forEach(function(i){i!=="selectionchange"&&(Gv.has(i)||Gc(i,!1,e),Gc(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[$o]||(n[$o]=!0,Gc("selectionchange",!1,n))}}function dm(e,n,i,o){switch(Hm(n)){case 2:var f=vw;break;case 8:f=ww;break;default:f=uf}i=f.bind(null,n,i,e),f=void 0,!hu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),o?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 Xc(e,n,i,o,f){var g=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var S=o.tag;if(S===3||S===4){var _=o.stateNode.containerInfo;if(_===f)break;if(S===4)for(S=o.return;S!==null;){var H=S.tag;if((H===3||H===4)&&S.stateNode.containerInfo===f)return;S=S.return}for(;_!==null;){if(S=Ml(_),S===null)return;if(H=S.tag,H===5||H===6||H===26||H===27){o=g=S;continue e}_=_.parentNode}}o=o.return}yh(function(){var ee=g,ie=fu(i),ue=[];e:{var te=$h.get(e);if(te!==void 0){var ne=to,ve=e;switch(e){case"keypress":if(Wa(i)===0)break e;case"keydown":case"keyup":ne=I0;break;case"focusin":ve="focus",ne=yu;break;case"focusout":ve="blur",ne=yu;break;case"beforeblur":case"afterblur":ne=yu;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":ne=vh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=T0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=q0;break;case Hh:case qh:case Vh:ne=_0;break;case Ph:ne=P0;break;case"scroll":case"scrollend":ne=C0;break;case"wheel":ne=G0;break;case"copy":case"cut":case"paste":ne=j0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=Sh;break;case"toggle":case"beforetoggle":ne=X0}var Ne=(n&4)!==0,nt=!Ne&&(e==="scroll"||e==="scrollend"),Q=Ne?te!==null?te+"Capture":null:te;Ne=[];for(var Y=ee,W;Y!==null;){var oe=Y;if(W=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||W===null||Q===null||(oe=Mi(Y,Q),oe!=null&&Ne.push(pa(Y,oe,W))),nt)break;Y=Y.return}0<Ne.length&&(te=new ne(te,ve,null,i,ie),ue.push({event:te,listeners:Ne}))}}if((n&7)===0){e:{if(te=e==="mouseover"||e==="pointerover",ne=e==="mouseout"||e==="pointerout",te&&i!==cu&&(ve=i.relatedTarget||i.fromElement)&&(Ml(ve)||ve[Ee]))break e;if((ne||te)&&(te=ie.window===ie?ie:(te=ie.ownerDocument)?te.defaultView||te.parentWindow:window,ne?(ve=i.relatedTarget||i.toElement,ne=ee,ve=ve?Ml(ve):null,ve!==null&&(nt=u(ve),Ne=ve.tag,ve!==nt||Ne!==5&&Ne!==27&&Ne!==6)&&(ve=null)):(ne=null,ve=ee),ne!==ve)){if(Ne=vh,oe="onMouseLeave",Q="onMouseEnter",Y="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=Sh,oe="onPointerLeave",Q="onPointerEnter",Y="pointer"),nt=ne==null?te:Oi(ne),W=ve==null?te:Oi(ve),te=new Ne(oe,Y+"leave",ne,i,ie),te.target=nt,te.relatedTarget=W,oe=null,Ml(ie)===ee&&(Ne=new Ne(Q,Y+"enter",ve,i,ie),Ne.target=W,Ne.relatedTarget=nt,oe=Ne),nt=oe,ne&&ve)t:{for(Ne=Yv,Q=ne,Y=ve,W=0,oe=Q;oe;oe=Ne(oe))W++;oe=0;for(var ke=Y;ke;ke=Ne(ke))oe++;for(;0<W-oe;)Q=Ne(Q),W--;for(;0<oe-W;)Y=Ne(Y),oe--;for(;W--;){if(Q===Y||Y!==null&&Q===Y.alternate){Ne=Q;break t}Q=Ne(Q),Y=Ne(Y)}Ne=null}else Ne=null;ne!==null&&hm(ue,te,ne,Ne,!1),ve!==null&&nt!==null&&hm(ue,nt,ve,Ne,!0)}}e:{if(te=ee?Oi(ee):window,ne=te.nodeName&&te.nodeName.toLowerCase(),ne==="select"||ne==="input"&&te.type==="file")var Ge=_h;else if(Nh(te))if(Lh)Ge=lv;else{Ge=nv;var Se=tv}else ne=te.nodeName,!ne||ne.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&uu(ee.elementType)&&(Ge=_h):Ge=rv;if(Ge&&(Ge=Ge(e,ee))){Rh(ue,Ge,i,ie);break e}Se&&Se(e,te,ee),e==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&su(te,"number",te.value)}switch(Se=ee?Oi(ee):window,e){case"focusin":(Nh(Se)||Se.contentEditable==="true")&&(Pl=Se,ku=ee,Vi=null);break;case"focusout":Vi=ku=Pl=null;break;case"mousedown":Eu=!0;break;case"contextmenu":case"mouseup":case"dragend":Eu=!1,Ih(ue,i,ie);break;case"selectionchange":if(av)break;case"keydown":case"keyup":Ih(ue,i,ie)}var De;if(xu)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 Vl?Ah(e,i)&&(qe="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(qe="onCompositionStart");qe&&(kh&&i.locale!=="ko"&&(Vl||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&Vl&&(De=bh()):(kr=ie,pu="value"in kr?kr.value:kr.textContent,Vl=!0)),Se=Go(ee,qe),0<Se.length&&(qe=new wh(qe,e,null,i,ie),ue.push({event:qe,listeners:Se}),De?qe.data=De:(De=Th(i),De!==null&&(qe.data=De)))),(De=Q0?K0(e,i):J0(e,i))&&(qe=Go(ee,"onBeforeInput"),0<qe.length&&(Se=new wh("onBeforeInput","beforeinput",null,i,ie),ue.push({event:Se,listeners:qe}),Se.data=De)),Vv(ue,e,ee,i,ie)}fm(ue,n)})}function pa(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Go(e,n){for(var i=n+"Capture",o=[];e!==null;){var f=e,g=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||g===null||(f=Mi(e,i),f!=null&&o.unshift(pa(e,f,g)),f=Mi(e,n),f!=null&&o.push(pa(e,f,g))),e.tag===3)return o;e=e.return}return[]}function Yv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hm(e,n,i,o,f){for(var g=n._reactName,S=[];i!==null&&i!==o;){var _=i,H=_.alternate,ee=_.stateNode;if(_=_.tag,H!==null&&H===o)break;_!==5&&_!==26&&_!==27||ee===null||(H=ee,f?(ee=Mi(i,g),ee!=null&&S.unshift(pa(i,ee,H))):f||(ee=Mi(i,g),ee!=null&&S.push(pa(i,ee,H)))),i=i.return}S.length!==0&&e.push({event:n,listeners:S})}var Xv=/\r\n?/g,Zv=/\u0000|\uFFFD/g;function pm(e){return(typeof e=="string"?e:""+e).replace(Xv,`
|
|
9
|
-
`).replace(Zv,"")}function gm(e,n){return n=pm(n),pm(e)===n}function tt(e,n,i,o,f,g){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Ul(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Ul(e,""+o);break;case"className":Za(e,"class",o);break;case"tabIndex":Za(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Za(e,i,o);break;case"style":gh(e,o,g);break;case"data":if(n!=="object"){Za(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=Ka(""+o),e.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="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 g=="function"&&(i==="formAction"?(n!=="input"&&tt(e,n,"name",f.name,f,null),tt(e,n,"formEncType",f.formEncType,f,null),tt(e,n,"formMethod",f.formMethod,f,null),tt(e,n,"formTarget",f.formTarget,f,null)):(tt(e,n,"encType",f.encType,f,null),tt(e,n,"method",f.method,f,null),tt(e,n,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=Ka(""+o),e.setAttribute(i,o);break;case"onClick":o!=null&&(e.onclick=Jn);break;case"onScroll":o!=null&&Fe("scroll",e);break;case"onScrollEnd":o!=null&&Fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}i=Ka(""+o),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":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""+o):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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":o===!0?e.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,o):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(i,o):e.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(i):e.setAttribute(i,o);break;case"popover":Fe("beforetoggle",e),Fe("toggle",e),Xa(e,"popover",o);break;case"xlinkActuate":Kn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Kn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Kn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Kn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Kn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Kn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Kn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Kn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Kn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Xa(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=k0.get(i)||i,Xa(e,i,o))}}function Zc(e,n,i,o,f,g){switch(i){case"style":gh(e,o,g);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"children":typeof o=="string"?Ul(e,o):(typeof o=="number"||typeof o=="bigint")&&Ul(e,""+o);break;case"onScroll":o!=null&&Fe("scroll",e);break;case"onScrollEnd":o!=null&&Fe("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ah.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),g=e[we]||null,g=g!=null?g[i]:null,typeof g=="function"&&e.removeEventListener(n,g,f),typeof o=="function")){typeof g!="function"&&g!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,o,f);break e}i in e?e[i]=o:o===!0?e.setAttribute(i,""):Xa(e,i,o)}}}function zt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",e),Fe("load",e);var o=!1,f=!1,g;for(g in i)if(i.hasOwnProperty(g)){var S=i[g];if(S!=null)switch(g){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:tt(e,n,g,S,i,null)}}f&&tt(e,n,"srcSet",i.srcSet,i,null),o&&tt(e,n,"src",i.src,i,null);return;case"input":Fe("invalid",e);var _=g=S=f=null,H=null,ee=null;for(o in i)if(i.hasOwnProperty(o)){var ie=i[o];if(ie!=null)switch(o){case"name":f=ie;break;case"type":S=ie;break;case"checked":H=ie;break;case"defaultChecked":ee=ie;break;case"value":g=ie;break;case"defaultValue":_=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(a(137,n));break;default:tt(e,n,o,ie,i,null)}}fh(e,g,_,H,ee,S,f,!1);return;case"select":Fe("invalid",e),o=S=g=null;for(f in i)if(i.hasOwnProperty(f)&&(_=i[f],_!=null))switch(f){case"value":g=_;break;case"defaultValue":S=_;break;case"multiple":o=_;default:tt(e,n,f,_,i,null)}n=g,i=S,e.multiple=!!o,n!=null?Il(e,!!o,n,!1):i!=null&&Il(e,!!o,i,!0);return;case"textarea":Fe("invalid",e),g=f=o=null;for(S in i)if(i.hasOwnProperty(S)&&(_=i[S],_!=null))switch(S){case"value":o=_;break;case"defaultValue":f=_;break;case"children":g=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(a(91));break;default:tt(e,n,S,_,i,null)}hh(e,o,f,g);return;case"option":for(H in i)i.hasOwnProperty(H)&&(o=i[H],o!=null)&&(H==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":tt(e,n,H,o,i,null));return;case"dialog":Fe("beforetoggle",e),Fe("toggle",e),Fe("cancel",e),Fe("close",e);break;case"iframe":case"object":Fe("load",e);break;case"video":case"audio":for(o=0;o<ha.length;o++)Fe(ha[o],e);break;case"image":Fe("error",e),Fe("load",e);break;case"details":Fe("toggle",e);break;case"embed":case"source":case"link":Fe("error",e),Fe("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(ee in i)if(i.hasOwnProperty(ee)&&(o=i[ee],o!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:tt(e,n,ee,o,i,null)}return;default:if(uu(n)){for(ie in i)i.hasOwnProperty(ie)&&(o=i[ie],o!==void 0&&Zc(e,n,ie,o,i,void 0));return}}for(_ in i)i.hasOwnProperty(_)&&(o=i[_],o!=null&&tt(e,n,_,o,i,null))}function Qv(e,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,g=null,S=null,_=null,H=null,ee=null,ie=null;for(ne in i){var ue=i[ne];if(i.hasOwnProperty(ne)&&ue!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":H=ue;default:o.hasOwnProperty(ne)||tt(e,n,ne,null,o,ue)}}for(var te in o){var ne=o[te];if(ue=i[te],o.hasOwnProperty(te)&&(ne!=null||ue!=null))switch(te){case"type":g=ne;break;case"name":f=ne;break;case"checked":ee=ne;break;case"defaultChecked":ie=ne;break;case"value":S=ne;break;case"defaultValue":_=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(a(137,n));break;default:ne!==ue&&tt(e,n,te,ne,o,ue)}}ou(e,S,_,H,ee,ie,g,f);return;case"select":ne=S=_=te=null;for(g in i)if(H=i[g],i.hasOwnProperty(g)&&H!=null)switch(g){case"value":break;case"multiple":ne=H;default:o.hasOwnProperty(g)||tt(e,n,g,null,o,H)}for(f in o)if(g=o[f],H=i[f],o.hasOwnProperty(f)&&(g!=null||H!=null))switch(f){case"value":te=g;break;case"defaultValue":_=g;break;case"multiple":S=g;default:g!==H&&tt(e,n,f,g,o,H)}n=_,i=S,o=ne,te!=null?Il(e,!!i,te,!1):!!o!=!!i&&(n!=null?Il(e,!!i,n,!0):Il(e,!!i,i?[]:"",!1));return;case"textarea":ne=te=null;for(_ in i)if(f=i[_],i.hasOwnProperty(_)&&f!=null&&!o.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:tt(e,n,_,null,o,f)}for(S in o)if(f=o[S],g=i[S],o.hasOwnProperty(S)&&(f!=null||g!=null))switch(S){case"value":te=f;break;case"defaultValue":ne=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==g&&tt(e,n,S,f,o,g)}dh(e,te,ne);return;case"option":for(var ve in i)te=i[ve],i.hasOwnProperty(ve)&&te!=null&&!o.hasOwnProperty(ve)&&(ve==="selected"?e.selected=!1:tt(e,n,ve,null,o,te));for(H in o)te=o[H],ne=i[H],o.hasOwnProperty(H)&&te!==ne&&(te!=null||ne!=null)&&(H==="selected"?e.selected=te&&typeof te!="function"&&typeof te!="symbol":tt(e,n,H,te,o,ne));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 Ne in i)te=i[Ne],i.hasOwnProperty(Ne)&&te!=null&&!o.hasOwnProperty(Ne)&&tt(e,n,Ne,null,o,te);for(ee in o)if(te=o[ee],ne=i[ee],o.hasOwnProperty(ee)&&te!==ne&&(te!=null||ne!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(a(137,n));break;default:tt(e,n,ee,te,o,ne)}return;default:if(uu(n)){for(var nt in i)te=i[nt],i.hasOwnProperty(nt)&&te!==void 0&&!o.hasOwnProperty(nt)&&Zc(e,n,nt,void 0,o,te);for(ie in o)te=o[ie],ne=i[ie],!o.hasOwnProperty(ie)||te===ne||te===void 0&&ne===void 0||Zc(e,n,ie,te,o,ne);return}}for(var Q in i)te=i[Q],i.hasOwnProperty(Q)&&te!=null&&!o.hasOwnProperty(Q)&&tt(e,n,Q,null,o,te);for(ue in o)te=o[ue],ne=i[ue],!o.hasOwnProperty(ue)||te===ne||te==null&&ne==null||tt(e,n,ue,te,o,ne)}function mm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var f=i[o],g=f.transferSize,S=f.initiatorType,_=f.duration;if(g&&_&&mm(S)){for(S=0,_=f.responseEnd,o+=1;o<i.length;o++){var H=i[o],ee=H.startTime;if(ee>_)break;var ie=H.transferSize,ue=H.initiatorType;ie&&mm(ue)&&(H=H.responseEnd,S+=ie*(H<_?1:(_-ee)/(H-ee)))}if(--o,n+=8*(g+S)/(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 Qc=null,Kc=null;function Yo(e){return e.nodeType===9?e:e.ownerDocument}function ym(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 bm(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 Jc(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 Wc=null;function Jv(){var e=window.event;return e&&e.type==="popstate"?e===Wc?!1:(Wc=e,!0):(Wc=null,!1)}var xm=typeof setTimeout=="function"?setTimeout:void 0,Wv=typeof clearTimeout=="function"?clearTimeout:void 0,vm=typeof Promise=="function"?Promise:void 0,ew=typeof queueMicrotask=="function"?queueMicrotask:typeof vm<"u"?function(e){return vm.resolve(null).then(e).catch(tw)}:xm;function tw(e){setTimeout(function(){throw e})}function Ur(e){return e==="head"}function wm(e,n){var i=n,o=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(o===0){e.removeChild(f),yi(n);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")ga(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,ga(i);for(var g=i.firstChild;g;){var S=g.nextSibling,_=g.nodeName;g[Di]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&g.rel.toLowerCase()==="stylesheet"||i.removeChild(g),g=S}}else i==="body"&&ga(e.ownerDocument.body);i=f}while(i);yi(n)}function Sm(e,n){var i=e;e=0;do{var o=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||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=o}while(i)}function ef(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":ef(i),iu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function nw(e,n,i,o){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Di])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(g=e.getAttribute("rel"),g==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(g!==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(g=e.getAttribute("src"),(g!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&g&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var g=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===g)return e}else return e;if(e=Rn(e.nextSibling),e===null)break}return null}function rw(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Rn(e.nextSibling),e===null))return null;return e}function km(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Rn(e.nextSibling),e===null))return null;return e}function tf(e){return e.data==="$?"||e.data==="$~"}function nf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function lw(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var o=function(){n(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Rn(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 rf=null;function Em(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return Rn(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function Cm(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 Am(e,n,i){switch(n=Yo(i),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function ga(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);iu(e)}var _n=new Map,Tm=new Set;function Xo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var pr=z.d;z.d={f:iw,r:aw,D:ow,C:sw,L:uw,m:cw,X:dw,S:fw,M:hw};function iw(){var e=pr.f(),n=Io();return e||n}function aw(e){var n=zl(e);n!==null&&n.tag===5&&n.type==="form"?Pp(n):pr.r(e)}var pi=typeof document>"u"?null:document;function Nm(e,n,i){var o=pi;if(o&&typeof n=="string"&&n){var f=Sn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Tm.has(f)||(Tm.add(f),e={rel:e,crossOrigin:i,href:n},o.querySelector(f)===null&&(n=o.createElement("link"),zt(n,"link",e),Nt(n),o.head.appendChild(n)))}}function ow(e){pr.D(e),Nm("dns-prefetch",e,null)}function sw(e,n){pr.C(e,n),Nm("preconnect",e,n)}function uw(e,n,i){pr.L(e,n,i);var o=pi;if(o&&e&&n){var f='link[rel="preload"][as="'+Sn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+Sn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+Sn(i.imageSizes)+'"]')):f+='[href="'+Sn(e)+'"]';var g=f;switch(n){case"style":g=gi(e);break;case"script":g=mi(e)}_n.has(g)||(e=m({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),_n.set(g,e),o.querySelector(f)!==null||n==="style"&&o.querySelector(ma(g))||n==="script"&&o.querySelector(ya(g))||(n=o.createElement("link"),zt(n,"link",e),Nt(n),o.head.appendChild(n)))}}function cw(e,n){pr.m(e,n);var i=pi;if(i&&e){var o=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+Sn(o)+'"][href="'+Sn(e)+'"]',g=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=mi(e)}if(!_n.has(g)&&(e=m({rel:"modulepreload",href:e},n),_n.set(g,e),i.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(ya(g)))return}o=i.createElement("link"),zt(o,"link",e),Nt(o),i.head.appendChild(o)}}}function fw(e,n,i){pr.S(e,n,i);var o=pi;if(o&&e){var f=Bl(o).hoistableStyles,g=gi(e);n=n||"default";var S=f.get(g);if(!S){var _={loading:0,preload:null};if(S=o.querySelector(ma(g)))_.loading=5;else{e=m({rel:"stylesheet",href:e,"data-precedence":n},i),(i=_n.get(g))&&lf(e,i);var H=S=o.createElement("link");Nt(H),zt(H,"link",e),H._p=new Promise(function(ee,ie){H.onload=ee,H.onerror=ie}),H.addEventListener("load",function(){_.loading|=1}),H.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Zo(S,n,o)}S={type:"stylesheet",instance:S,count:1,state:_},f.set(g,S)}}}function dw(e,n){pr.X(e,n);var i=pi;if(i&&e){var o=Bl(i).hoistableScripts,f=mi(e),g=o.get(f);g||(g=i.querySelector(ya(f)),g||(e=m({src:e,async:!0},n),(n=_n.get(f))&&af(e,n),g=i.createElement("script"),Nt(g),zt(g,"link",e),i.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},o.set(f,g))}}function hw(e,n){pr.M(e,n);var i=pi;if(i&&e){var o=Bl(i).hoistableScripts,f=mi(e),g=o.get(f);g||(g=i.querySelector(ya(f)),g||(e=m({src:e,async:!0,type:"module"},n),(n=_n.get(f))&&af(e,n),g=i.createElement("script"),Nt(g),zt(g,"link",e),i.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},o.set(f,g))}}function Rm(e,n,i,o){var f=(f=fe.current)?Xo(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=gi(i.href),i=Bl(f).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=gi(i.href);var g=Bl(f).hoistableStyles,S=g.get(e);if(S||(f=f.ownerDocument||f,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(e,S),(g=f.querySelector(ma(e)))&&!g._p&&(S.instance=g,S.state.loading=5),_n.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},_n.set(e,i),g||pw(f,e,i,S.state))),n&&o===null)throw Error(a(528,""));return S}if(n&&o!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=mi(i),i=Bl(f).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function gi(e){return'href="'+Sn(e)+'"'}function ma(e){return'link[rel="stylesheet"]['+e+"]"}function _m(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function pw(e,n,i,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),zt(n,"link",i),Nt(n),e.head.appendChild(n))}function mi(e){return'[src="'+Sn(e)+'"]'}function ya(e){return"script[async]"+e}function Lm(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+Sn(i.href)+'"]');if(o)return n.instance=o,Nt(o),o;var f=m({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Nt(o),zt(o,"style",f),Zo(o,i.precedence,e),n.instance=o;case"stylesheet":f=gi(i.href);var g=e.querySelector(ma(f));if(g)return n.state.loading|=4,n.instance=g,Nt(g),g;o=_m(i),(f=_n.get(f))&&lf(o,f),g=(e.ownerDocument||e).createElement("link"),Nt(g);var S=g;return S._p=new Promise(function(_,H){S.onload=_,S.onerror=H}),zt(g,"link",o),n.state.loading|=4,Zo(g,i.precedence,e),n.instance=g;case"script":return g=mi(i.src),(f=e.querySelector(ya(g)))?(n.instance=f,Nt(f),f):(o=i,(f=_n.get(g))&&(o=m({},i),af(o,f)),e=e.ownerDocument||e,f=e.createElement("script"),Nt(f),zt(f,"link",o),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,Zo(o,i.precedence,e));return n.instance}function Zo(e,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,g=f,S=0;S<o.length;S++){var _=o[S];if(_.dataset.precedence===n)g=_;else if(g!==f)break}g?g.parentNode.insertBefore(e,g.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function lf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function af(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Qo=null;function jm(e,n,i){if(Qo===null){var o=new Map,f=Qo=new Map;f.set(i,o)}else f=Qo,o=f.get(i),o||(o=new Map,f.set(i,o));if(o.has(e))return o;for(o.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var g=i[f];if(!(g[Di]||g[ye]||e==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var S=g.getAttribute(n)||"";S=e+S;var _=o.get(S);_?_.push(g):o.set(S,[g])}}return o}function Dm(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function gw(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;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!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 Om(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mw(e,n,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=gi(o.href),g=n.querySelector(ma(f));if(g){n=g._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ko.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=g,Nt(g);return}g=n.ownerDocument||n,o=_m(o),(f=_n.get(f))&&lf(o,f),g=g.createElement("link"),Nt(g);var S=g;S._p=new Promise(function(_,H){S.onload=_,S.onerror=H}),zt(g,"link",o),i.instance=g}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Ko.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var of=0;function yw(e,n){return e.stylesheets&&e.count===0&&Wo(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var o=setTimeout(function(){if(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend){var g=e.unsuspend;e.unsuspend=null,g()}},6e4+n);0<e.imgBytes&&of===0&&(of=62500*Kv());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend)){var g=e.unsuspend;e.unsuspend=null,g()}},(e.imgBytes>of?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(f)}}:null}function Ko(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Jo=null;function Wo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Jo=new Map,n.forEach(bw,e),Jo=null,Ko.call(e))}function bw(e,n){if(!(n.state.loading&4)){var i=Jo.get(e);if(i)var o=i.get(null);else{i=new Map,Jo.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<f.length;g++){var S=f[g];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(i.set(S.dataset.precedence,S),o=S)}o&&i.set(null,o)}f=n.instance,S=f.getAttribute("data-precedence"),g=i.get(S)||o,g===o&&i.set(null,f),i.set(S,f),this.count++,o=Ko.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),g?g.parentNode.insertBefore(f,g.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var ba={$$typeof:N,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function xw(e,n,i,o,f,g,S,_,H){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=Ll(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ll(0),this.hiddenUpdates=Ll(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=g,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function Mm(e,n,i,o,f,g,S,_,H,ee,ie,ue){return e=new xw(e,n,i,S,H,ee,ie,ue,_),n=1,g===!0&&(n|=24),g=cn(3,null,null,n),e.current=g,g.stateNode=e,n=Iu(),n.refCount++,e.pooledCache=n,n.refCount++,g.memoizedState={element:o,isDehydrated:i,cache:n},Vu(g),e}function zm(e){return e?(e=Yl,e):Yl}function Bm(e,n,i,o,f,g){f=zm(f),o.context===null?o.context=f:o.pendingContext=f,o=Rr(n),o.payload={element:i},g=g===void 0?null:g,g!==null&&(o.callback=g),i=_r(e,o,n),i!==null&&(tn(i,e,n),Qi(i,e,n))}function Fm(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function sf(e,n){Fm(e,n),(e=e.alternate)&&Fm(e,n)}function Im(e){if(e.tag===13||e.tag===31){var n=sl(e,67108864);n!==null&&tn(n,e,67108864),sf(e,67108864)}}function Um(e){if(e.tag===13||e.tag===31){var n=gn();n=jl(n);var i=sl(e,n);i!==null&&tn(i,e,n),sf(e,n)}}var es=!0;function vw(e,n,i,o){var f=L.T;L.T=null;var g=z.p;try{z.p=2,uf(e,n,i,o)}finally{z.p=g,L.T=f}}function ww(e,n,i,o){var f=L.T;L.T=null;var g=z.p;try{z.p=8,uf(e,n,i,o)}finally{z.p=g,L.T=f}}function uf(e,n,i,o){if(es){var f=cf(o);if(f===null)Xc(e,n,o,ts,i),qm(e,o);else if(kw(f,e,n,i,o))o.stopPropagation();else if(qm(e,o),n&4&&-1<Sw.indexOf(e)){for(;f!==null;){var g=zl(f);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var S=Qn(g.pendingLanes);if(S!==0){var _=g;for(_.pendingLanes|=2,_.entangledLanes|=2;S;){var H=1<<31-Ke(S);_.entanglements[1]|=H,S&=~H}qn(g),(Xe&6)===0&&(Bo=at()+500,da(0))}}break;case 31:case 13:_=sl(g,2),_!==null&&tn(_,g,2),Io(),sf(g,2)}if(g=cf(o),g===null&&Xc(e,n,o,ts,i),g===f)break;f=g}f!==null&&o.stopPropagation()}else Xc(e,n,o,null,i)}}function cf(e){return e=fu(e),ff(e)}var ts=null;function ff(e){if(ts=null,e=Ml(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=d(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 ts=e,null}function Hm(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(vr()){case ae:return 2;case me:return 8;case Ce:case ze:return 32;case Pe:return 268435456;default:return 32}default:return 32}}var df=!1,Hr=null,qr=null,Vr=null,xa=new Map,va=new Map,Pr=[],Sw="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 qm(e,n){switch(e){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":qr=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":xa.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":va.delete(n.pointerId)}}function wa(e,n,i,o,f,g){return e===null||e.nativeEvent!==g?(e={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:g,targetContainers:[f]},n!==null&&(n=zl(n),n!==null&&Im(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function kw(e,n,i,o,f){switch(n){case"focusin":return Hr=wa(Hr,e,n,i,o,f),!0;case"dragenter":return qr=wa(qr,e,n,i,o,f),!0;case"mouseover":return Vr=wa(Vr,e,n,i,o,f),!0;case"pointerover":var g=f.pointerId;return xa.set(g,wa(xa.get(g)||null,e,n,i,o,f)),!0;case"gotpointercapture":return g=f.pointerId,va.set(g,wa(va.get(g)||null,e,n,i,o,f)),!0}return!1}function Vm(e){var n=Ml(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,Ya(e.priority,function(){Um(i)});return}}else if(n===31){if(n=d(i),n!==null){e.blockedOn=n,Ya(e.priority,function(){Um(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 ns(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=cf(e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);cu=o,i.target.dispatchEvent(o),cu=null}else return n=zl(i),n!==null&&Im(n),e.blockedOn=i,!1;n.shift()}return!0}function Pm(e,n,i){ns(e)&&i.delete(n)}function Ew(){df=!1,Hr!==null&&ns(Hr)&&(Hr=null),qr!==null&&ns(qr)&&(qr=null),Vr!==null&&ns(Vr)&&(Vr=null),xa.forEach(Pm),va.forEach(Pm)}function rs(e,n){e.blockedOn===n&&(e.blockedOn=null,df||(df=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ew)))}var ls=null;function $m(e){ls!==e&&(ls=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ls===e&&(ls=null);for(var n=0;n<e.length;n+=3){var i=e[n],o=e[n+1],f=e[n+2];if(typeof o!="function"){if(ff(o||i)===null)continue;break}var g=zl(i);g!==null&&(e.splice(n,3),n-=3,uc(g,{pending:!0,data:f,method:i.method,action:o},o,f))}}))}function yi(e){function n(H){return rs(H,e)}Hr!==null&&rs(Hr,e),qr!==null&&rs(qr,e),Vr!==null&&rs(Vr,e),xa.forEach(n),va.forEach(n);for(var i=0;i<Pr.length;i++){var o=Pr[i];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Pr.length&&(i=Pr[0],i.blockedOn===null);)Vm(i),i.blockedOn===null&&Pr.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var f=i[o],g=i[o+1],S=f[we]||null;if(typeof g=="function")S||$m(i);else if(S){var _=null;if(g&&g.hasAttribute("formAction")){if(f=g,S=g[we]||null)_=S.formAction;else if(ff(f)!==null)continue}else _=S.action;typeof _=="function"?i[o+1]=_:(i.splice(o,3),o-=3),$m(i)}}}function Gm(){function e(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(S){return f=S})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function hf(e){this._internalRoot=e}is.prototype.render=hf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,o=gn();Bm(i,o,e,n,null,null)},is.prototype.unmount=hf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Bm(e.current,2,null,e,null,null),Io(),n[Ee]=null}};function is(e){this._internalRoot=e}is.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ga();e={blockedOn:null,target:e,priority:n};for(var i=0;i<Pr.length&&n!==0&&n<Pr[i].priority;i++);Pr.splice(i,0,e),i===0&&Vm(e)}};var Ym=r.version;if(Ym!=="19.2.3")throw Error(a(527,Ym,"19.2.3"));z.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=h(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Cw={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var as=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!as.isDisabled&&as.supportsFiber)try{jt=as.inject(Cw),gt=as}catch{}}return ka.createRoot=function(e,n){if(!s(e))throw Error(a(299));var i=!1,o="",f=eg,g=tg,S=ng;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError)),n=Mm(e,1,!1,null,null,i,o,null,f,g,S,Gm),e[Ee]=n.current,Yc(e),new hf(n)},ka.hydrateRoot=function(e,n,i){if(!s(e))throw Error(a(299));var o=!1,f="",g=eg,S=tg,_=ng,H=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(g=i.onUncaughtError),i.onCaughtError!==void 0&&(S=i.onCaughtError),i.onRecoverableError!==void 0&&(_=i.onRecoverableError),i.formState!==void 0&&(H=i.formState)),n=Mm(e,1,!0,n,i??null,o,f,H,g,S,_,Gm),n.context=zm(null),i=n.current,o=gn(),o=jl(o),f=Rr(o),f.callback=null,_r(i,f,o),i=o,n.current.lanes=i,Sr(n,i),qn(n),e[Ee]=n.current,Yc(e),new is(n)},ka.version="19.2.3",ka}var ry;function Mw(){if(ry)return mf.exports;ry=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(r){console.error(r)}}return t(),mf.exports=Ow(),mf.exports}var zw=Mw();const Bw=Bs(zw),Jb=["shift","alt","meta","mod","ctrl","control"],Fw={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Jr(t){return(Fw[t.trim()]||t.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Wb(t){return Jb.includes(t)}function vf(t,r=","){return t.toLowerCase().split(r)}function wf(t,r="+",l=">",a=!1,s){let u=[],c=!1;t=t.trim(),t.includes(l)?(c=!0,u=t.toLocaleLowerCase().split(l).map(h=>Jr(h))):u=t.toLocaleLowerCase().split(r).map(h=>Jr(h));const d={alt:u.includes("alt"),ctrl:u.includes("ctrl")||u.includes("control"),shift:u.includes("shift"),meta:u.includes("meta"),mod:u.includes("mod"),useKey:a},p=u.filter(h=>!Jb.includes(h));return{...d,keys:p,description:s,isSequence:c,hotkey:t}}typeof document<"u"&&(document.addEventListener("keydown",t=>{t.code!==void 0&&ex([Jr(t.code)])}),document.addEventListener("keyup",t=>{t.code!==void 0&&tx([Jr(t.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{mr.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{mr.clear()},0)}));const mr=new Set;function Ad(t){return Array.isArray(t)}function Iw(t,r=","){return(Ad(t)?t:t.split(r)).every(l=>mr.has(l.trim().toLowerCase()))}function ex(t){const r=Array.isArray(t)?t:[t];mr.has("meta")&&mr.forEach(l=>!Wb(l)&&mr.delete(l.toLowerCase())),r.forEach(l=>mr.add(l.toLowerCase()))}function tx(t){const r=Array.isArray(t)?t:[t];t==="meta"?mr.clear():r.forEach(l=>mr.delete(l.toLowerCase()))}function Uw(t,r,l){(typeof l=="function"&&l(t,r)||l===!0)&&t.preventDefault()}function Hw(t,r,l){return typeof l=="function"?l(t,r):l===!0||l===void 0}const qw=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function Vw(t){return nx(t,qw)}function nx(t,r=!1){const{target:l,composed:a}=t;let s,u;return Pw(l)&&a?(s=t.composedPath()[0]&&t.composedPath()[0].tagName,u=t.composedPath()[0]&&t.composedPath()[0].role):(s=l&&l.tagName,u=l&&l.role),Ad(r)?!!(s&&r&&r.some(c=>c.toLowerCase()===s.toLowerCase()||c===u)):!!(s&&r&&r)}function Pw(t){return!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-")}function $w(t,r){return t.length===0&&r?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):r?t.some(l=>r.includes(l))||t.includes("*"):!0}const Gw=(t,r,l=!1)=>{const{alt:a,meta:s,mod:u,shift:c,ctrl:d,keys:p,useKey:h}=r,{code:y,key:m,ctrlKey:x,metaKey:b,shiftKey:w,altKey:k}=t,A=Jr(y);if(h&&p?.length===1&&p.includes(m))return!0;if(!p?.includes(A)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(A))return!1;if(!l){if(a!==k&&A!=="alt"||c!==w&&A!=="shift")return!1;if(u){if(!b&&!x)return!1}else if(s!==b&&A!=="meta"&&A!=="os"||d!==x&&A!=="ctrl"&&A!=="control")return!1}return p&&p.length===1&&p.includes(A)?!0:p?Iw(p):!p},rx=j.createContext(void 0),Yw=()=>j.useContext(rx);function Xw({addHotkey:t,removeHotkey:r,children:l}){return v.jsx(rx.Provider,{value:{addHotkey:t,removeHotkey:r},children:l})}function Td(t,r){return t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(t).length===Object.keys(r).length&&Object.keys(t).reduce((l,a)=>l&&Td(t[a],r[a]),!0):t===r}const lx=j.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Fs=()=>j.useContext(lx),Zw=({initiallyActiveScopes:t=["*"],children:r})=>{const[l,a]=j.useState(t),[s,u]=j.useState([]),c=j.useCallback(m=>{a(x=>x.includes("*")?[m]:Array.from(new Set([...x,m])))},[]),d=j.useCallback(m=>{a(x=>x.filter(b=>b!==m))},[]),p=j.useCallback(m=>{a(x=>x.includes(m)?x.filter(b=>b!==m):x.includes("*")?[m]:Array.from(new Set([...x,m])))},[]),h=j.useCallback(m=>{u(x=>[...x,m])},[]),y=j.useCallback(m=>{u(x=>x.filter(b=>!Td(b,m)))},[]);return v.jsx(lx.Provider,{value:{activeScopes:l,hotkeys:s,enableScope:c,disableScope:d,toggleScope:p},children:v.jsx(Xw,{addHotkey:h,removeHotkey:y,children:r})})};function Qw(t){const r=j.useRef(void 0);return Td(r.current,t)||(r.current=t),r.current}const ly=t=>{t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},Kw=typeof window<"u"?j.useLayoutEffect:j.useEffect;function rt(t,r,l,a){const s=j.useRef(null),u=j.useRef(!1),c=Array.isArray(l)?Array.isArray(a)?void 0:a:l,d=Ad(t)?t.join(c?.delimiter):t,p=Array.isArray(l)?l:Array.isArray(a)?a:void 0,h=j.useCallback(r,p??[]),y=j.useRef(h);p?y.current=h:y.current=r;const m=Qw(c),{activeScopes:x}=Fs(),b=Yw();return Kw(()=>{if(m?.enabled===!1||!$w(x,m?.scopes))return;let w=[],k;const A=(B,G=!1)=>{if(!(Vw(B)&&!nx(B,m?.enableOnFormTags))){if(s.current!==null){const D=s.current.getRootNode();if((D instanceof Document||D instanceof ShadowRoot)&&D.activeElement!==s.current&&!s.current.contains(D.activeElement)){ly(B);return}}B.target?.isContentEditable&&!m?.enableOnContentEditable||vf(d,m?.delimiter).forEach(D=>{if(D.includes(m?.splitKey??"+")&&D.includes(m?.sequenceSplitKey??">")){console.warn(`Hotkey ${D} contains both ${m?.splitKey??"+"} and ${m?.sequenceSplitKey??">"} which is not supported.`);return}const U=wf(D,m?.splitKey,m?.sequenceSplitKey,m?.useKey,m?.description);if(U.isSequence){k=setTimeout(()=>{w=[]},m?.sequenceTimeoutMs??1e3);const Z=U.useKey?B.key:Jr(B.code);if(Wb(Z.toLowerCase()))return;w.push(Z);const P=U.keys?.[w.length-1];if(Z!==P){w=[],k&&clearTimeout(k);return}w.length===U.keys?.length&&(y.current(B,U),k&&clearTimeout(k),w=[])}else if(Gw(B,U,m?.ignoreModifiers)||U.keys?.includes("*")){if(m?.ignoreEventWhen?.(B)||G&&u.current)return;if(Uw(B,U,m?.preventDefault),!Hw(B,U,m?.enabled)){ly(B);return}y.current(B,U),G||(u.current=!0)}})}},E=B=>{B.code!==void 0&&(ex(Jr(B.code)),(m?.keydown===void 0&&m?.keyup!==!0||m?.keydown)&&A(B))},C=B=>{B.code!==void 0&&(tx(Jr(B.code)),u.current=!1,m?.keyup&&A(B,!0))},N=s.current||c?.document||document;return N.addEventListener("keyup",C,c?.eventListenerOptions),N.addEventListener("keydown",E,c?.eventListenerOptions),b&&vf(d,m?.delimiter).forEach(B=>b.addHotkey(wf(B,m?.splitKey,m?.sequenceSplitKey,m?.useKey,m?.description))),()=>{N.removeEventListener("keyup",C,c?.eventListenerOptions),N.removeEventListener("keydown",E,c?.eventListenerOptions),b&&vf(d,m?.delimiter).forEach(B=>b.removeHotkey(wf(B,m?.splitKey,m?.sequenceSplitKey,m?.useKey,m?.description))),w=[],k&&clearTimeout(k)}},[d,m,x]),s}const Jw=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ww=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,a)=>a?a.toUpperCase():l.toLowerCase()),iy=t=>{const r=Ww(t);return r.charAt(0).toUpperCase()+r.slice(1)},ix=(...t)=>t.filter((r,l,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===l).join(" ").trim(),eS=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};var tS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const nS=j.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:s="",children:u,iconNode:c,...d},p)=>j.createElement("svg",{ref:p,...tS,width:r,height:r,stroke:t,strokeWidth:a?Number(l)*24/Number(r):l,className:ix("lucide",s),...!u&&!eS(d)&&{"aria-hidden":"true"},...d},[...c.map(([h,y])=>j.createElement(h,y)),...Array.isArray(u)?u:[u]]));const Ze=(t,r)=>{const l=j.forwardRef(({className:a,...s},u)=>j.createElement(nS,{ref:u,iconNode:r,className:ix(`lucide-${Jw(iy(t))}`,`lucide-${t}`,a),...s}));return l.displayName=iy(t),l};const rS=[["path",{d:"M19 3H5",key:"1236rx"}],["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m6 15 6 6 6-6",key:"h15q88"}]],lS=Ze("arrow-down-from-line",rS);const iS=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],aS=Ze("arrow-up-from-line",iS);const oS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ma=Ze("check",oS);const sS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Is=Ze("chevron-down",sS);const uS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ax=Ze("chevron-right",uS);const cS=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],fS=Ze("chevrons-down-up",cS);const dS=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],hS=Ze("chevrons-up-down",dS);const pS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],gS=Ze("columns-2",pS);const mS=[["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"}]],ox=Ze("copy",mS);const yS=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],bS=Ze("eraser",yS);const xS=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ay=Ze("eye",xS);const vS=[["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:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],Nd=Ze("file-diff",vS);const wS=[["path",{d:"M12.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 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],sx=Ze("file-pen",wS);const SS=[["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:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],ux=Ze("file-plus",SS);const kS=[["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:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],cx=Ze("file-x",kS);const ES=[["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"}]],CS=Ze("folder-open",ES);const AS=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],TS=Ze("folder",AS);const NS=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],RS=Ze("keyboard",NS);const _S=[["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"}]],LS=Ze("list",_S);const jS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],DS=Ze("loader-circle",jS);const OS=[["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"}]],fx=Ze("message-square",OS);const MS=[["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"}]],zS=Ze("panel-left-close",MS);const BS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],FS=Ze("panel-left",BS);const IS=[["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"}]],US=Ze("pen",IS);const HS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],qS=Ze("refresh-cw",HS);const VS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],PS=Ze("search",VS);const $S=[["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"}]],dx=Ze("settings",$S);const GS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],YS=Ze("square",GS);const XS=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],ZS=Ze("text-align-start",XS);const QS=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],KS=Ze("unfold-vertical",QS);const JS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Rd=Ze("x",JS);function hx({checked:t,onChange:r,label:l,className:a="",title:s}){const u=d=>{d.stopPropagation(),r(!t)},c=d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),d.stopPropagation(),r(!t))};return v.jsxs("div",{className:`flex items-center gap-2 text-xs text-github-text-primary cursor-pointer ${a}`,title:s,onClick:u,onKeyDown:c,role:"checkbox","aria-checked":t,tabIndex:0,children:[v.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center transition-all duration-200 cursor-pointer ${t?"bg-github-accent border-github-accent":"bg-github-bg-tertiary border-github-text-muted hover:border-github-accent/50"}`,children:t&&v.jsx(Ma,{size:10,className:"text-white"})}),l&&v.jsx("span",{className:"select-none",children:l})]})}function WS({commentsCount:t,isCopiedAll:r,onCopyAll:l,onDeleteAll:a,onViewAll:s}){const[u,c]=j.useState(!1),d=j.useRef(null);j.useEffect(()=>{const m=x=>{d.current&&!d.current.contains(x.target)&&c(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[]);const p=()=>{l(),c(!1)},h=()=>{a(),c(!1)},y=()=>{s?.(),c(!1)};return v.jsxs("div",{className:"relative",ref:d,children:[v.jsxs("div",{className:"flex",children:[v.jsxs("button",{onClick:p,className:"text-xs px-3 py-1.5 pr-2 rounded-l transition-all whitespace-nowrap flex items-center gap-1.5",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)",borderRight:"none"},onMouseEnter:m=>{m.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",m.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",m.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:`Copy all ${t} comments to AI coding agent`,children:[r?v.jsx(Ma,{size:12}):v.jsx(ox,{size:12}),r?"Copied All!":`Copy All Prompt (${t})`]}),v.jsx("button",{onClick:()=>c(!u),className:"text-xs px-2 py-1.5 rounded-r transition-all flex items-center border-l",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",borderTop:"1px solid var(--color-yellow-btn-border)",borderRight:"1px solid var(--color-yellow-btn-border)",borderBottom:"1px solid var(--color-yellow-btn-border)",borderLeft:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:m=>{m.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",m.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",m.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"More options",children:v.jsx(Is,{size:12,className:`transition-transform duration-200 ${u?"rotate-180":""}`})})]}),u&&v.jsxs("div",{className:"absolute left-0 right-0 bg-github-bg-primary border border-github-border rounded-b z-50 pb-px",style:{borderTop:"none"},children:[s&&v.jsxs("button",{onClick:y,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",disabled:t===0,children:[v.jsx(LS,{size:12}),"View All Comments"]}),v.jsxs("button",{onClick:h,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",children:[v.jsx(bS,{size:12}),"Cleanup All Prompt"]})]})]})}function _d({comment:t,onGeneratePrompt:r,onRemoveComment:l,onUpdateComment:a,onClick:s}){const[u,c]=j.useState(!1),[d,p]=j.useState(!1),[h,y]=j.useState(t.body),m=async E=>{E.stopPropagation();try{const C=r(t);await navigator.clipboard.writeText(C),c(!0),setTimeout(()=>c(!1),2e3)}catch(C){console.error("Failed to copy prompt:",C)}},x=E=>{E.stopPropagation(),p(!0),y(t.body)},b=()=>{p(!1),y(t.body)},w=E=>{E?.stopPropagation(),h.trim()!==t.body&&a(t.id,h.trim()),p(!1)},k=E=>{E.stopPropagation(),l(t.id)},A=E=>{E.key==="Enter"&&(E.metaKey||E.ctrlKey)?(E.preventDefault(),w()):E.key==="Escape"&&(E.preventDefault(),b())};return rt("escape",()=>{d&&b()},{enableOnFormTags:["textarea"],enabled:d},[d]),rt("mod+enter",()=>{d&&w()},{enableOnFormTags:["textarea"],enabled:d},[d,h,t.body]),v.jsxs("div",{id:`comment-${t.id}`,className:`p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400 shadow-sm transition-all ${s?"hover:shadow-md cursor-pointer":""}`,onClick:s,children:[v.jsxs("div",{className:"flex items-center justify-between mb-2 gap-3",children:[v.jsx("div",{className:"flex items-center gap-2 text-xs text-github-text-secondary flex-1 min-w-0",children:v.jsxs("span",{className:"font-mono px-1 py-0.5 rounded overflow-hidden text-ellipsis whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-path-bg)",color:"var(--color-yellow-path-text)"},children:[t.file,":",Array.isArray(t.line)?`${t.line[0]}-${t.line[1]}`:t.line]})}),v.jsx("div",{className:"flex items-center gap-2",children:!d&&v.jsxs(v.Fragment,{children:[v.jsx("button",{onClick:m,className:"text-xs px-2 py-1 rounded transition-all whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"Copy prompt for AI coding agent",children:u?"Copied!":"Copy Prompt"}),v.jsx("button",{onClick:x,className:"text-xs p-1.5 bg-github-bg-tertiary text-github-text-secondary border border-github-border rounded hover:text-github-text-primary hover:bg-github-bg-primary transition-all",title:"Edit",children:v.jsx(US,{size:12})}),v.jsx("button",{onClick:k,className:"text-xs p-1.5 bg-github-bg-tertiary text-green-600 border border-github-border rounded hover:bg-green-500/10 hover:border-green-600 transition-all",title:"Resolve",children:v.jsx(Ma,{size:12})})]})})]}),d?v.jsxs("div",{children:[v.jsx("textarea",{value:h,onChange:E=>y(E.target.value),className:"w-full text-github-text-primary text-sm leading-6 bg-github-bg-secondary border border-github-border rounded px-2 py-1 resize-none focus:outline-none focus:border-blue-600 focus:ring-1 focus:ring-blue-600/30",rows:Math.max(2,h.split(`
|
|
10
|
-
`).length),placeholder:"Edit your comment...",autoFocus:!0,onClick:E=>E.stopPropagation(),onKeyDown:E=>{E.stopPropagation(),A(E)}}),v.jsxs("div",{className:"flex gap-2 justify-end mt-2",children:[v.jsx("button",{type:"button",onClick:b,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all",children:"Cancel"}),v.jsx("button",{type:"button",onClick:w,className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!h.trim(),children:"Submit"})]})]}):v.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:t.body})]})}function e2({isOpen:t,onClose:r,onNavigate:l,comments:a,onRemoveComment:s,onGeneratePrompt:u,onUpdateComment:c}){const[d,p]=j.useState(0),h=j.useRef([]),{enableScope:y,disableScope:m}=Fs(),x=[...a].sort((A,E)=>{const C=A.file.localeCompare(E.file);if(C!==0)return C;const N=Array.isArray(A.line)?A.line[0]:A.line,B=Array.isArray(E.line)?E.line[0]:E.line;return N-B}),b=j.useCallback(A=>{l(A),r()},[l,r]),w=j.useCallback(A=>{confirm(`Delete this comment?
|
|
11
|
-
|
|
12
|
-
"${A.body}"`)&&(s(A.id),d>=x.length-1&&d>0&&p(d-1))},[s,d,x.length]);j.useEffect(()=>(t?(y("comments-list"),m("navigation")):(y("navigation"),m("comments-list"),p(0)),()=>{y("navigation"),m("comments-list")}),[t,y,m]);const k={scopes:"comments-list",enableOnFormTags:!1};return rt("escape",()=>r(),k,[r]),rt("j, down",()=>p(A=>Math.min(A+1,x.length-1)),k,[x.length]),rt("k, up",()=>p(A=>Math.max(A-1,0)),k,[]),rt("enter",()=>{x[d]&&b(x[d])},k,[d,x,b]),rt("d",()=>{x[d]&&w(x[d])},k,[d,x,w]),j.useEffect(()=>{h.current[d]&&h.current[d]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[d]),t?v.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[v.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),v.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full max-h-[80vh] overflow-hidden",children:[v.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4",children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"All Comments"}),v.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close comments list",children:v.jsx(Rd,{size:20})})]}),v.jsxs("div",{className:"text-xs text-github-text-secondary",children:[v.jsx("span",{className:"font-mono",children:"j/k"})," or ",v.jsx("span",{className:"font-mono",children:"↑/↓"})," to navigate • ",v.jsx("span",{className:"font-mono",children:"Enter"})," to jump •"," ",v.jsx("span",{className:"font-mono",children:"d"})," to delete • ",v.jsx("span",{className:"font-mono",children:"Esc"})," ","to close"]})]}),v.jsx("div",{className:"overflow-y-auto max-h-[calc(80vh-120px)]",children:v.jsx("div",{className:"p-6",children:x.length===0?v.jsx("p",{className:"text-github-text-secondary text-center",children:"No comments yet"}):v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"space-y-2",children:x.map((A,E)=>v.jsx("div",{ref:C=>{h.current[E]=C},className:`${d===E?"ring-2 ring-blue-500 rounded":""}`,children:v.jsx(_d,{comment:A,onGeneratePrompt:u,onRemoveComment:s,onUpdateComment:c,onClick:C=>{C.stopPropagation(),p(E),b(A)}})},A.id))}),x.length>0&&v.jsxs("div",{className:"mt-4 pt-4 border-t border-github-border text-xs text-github-text-secondary text-center",children:[d+1," of ",x.length," comments"]})]})})})]})]}):null}function Ld(t){return t&&t.split(".").pop()?.toLowerCase()||null}function t2(t){return t&&t.split("/").pop()||""}const n2=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function r2(t){if(!t)return!1;const r=Ld(t);return r?n2.includes(r):!1}const l2=["md","markdown"];function i2(t){if(!t)return!1;const r=Ld(t);return r?l2.includes(r):!1}function a2({file:t,diffMode:r,baseCommitish:l,targetCommitish:a}){const s=r??"inline",u=t.status==="deleted",c=t.status==="added",d=t.status==="modified"||t.status==="renamed",p=l||"HEAD~1",h=a||"HEAD",[y,m]=j.useState({}),[x,b]=j.useState({}),w=async(C,N)=>{try{const B=C.naturalWidth,G=C.naturalHeight,Z=(await(await fetch(C.src)).blob()).size;N({width:B,height:G,size:Z})}catch(B){console.error("Failed to get image info:",B)}},k=C=>C?C<1024?`${C} B`:C<1024*1024?`${(C/1024).toFixed(1)} KB`:`${(C/(1024*1024)).toFixed(1)} MB`:"",A=C=>!C.width||!C.height?"":`W: ${C.width}px | H: ${C.height}px`,E={backgroundImage:`
|
|
13
|
-
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
|
|
14
|
-
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%)
|
|
15
|
-
`,backgroundSize:"20px 20px",backgroundPosition:"0 0, 10px 10px",backgroundColor:"white"};return u?v.jsx("div",{className:"bg-github-bg-primary p-4",children:v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"mb-2",children:v.jsx("span",{className:"text-github-danger font-medium",children:"Deleted Image"})}),v.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[v.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),v.jsx("img",{src:`/api/blob/${t.oldPath||t.path}?ref=${p}`,alt:`Previous version of ${t.oldPath||t.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,m),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),v.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(y.width||y.size)&&v.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(y),A(y)&&k(y.size)&&" | ",k(y.size)]})]})]})}):c?v.jsx("div",{className:"bg-github-bg-primary p-4",children:v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"mb-2",children:v.jsx("span",{className:"text-github-accent font-medium",children:"Added Image"})}),v.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[v.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"New file:"}),v.jsx("img",{src:`/api/blob/${t.path}?ref=${h}`,alt:`New image ${t.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,b),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),v.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(x.width||x.size)&&v.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(x),A(x)&&k(x.size)&&" | ",k(x.size)]})]})]})}):d?s==="side-by-side"?v.jsxs("div",{className:"bg-github-bg-primary p-4",children:[v.jsx("div",{className:"text-center mb-4",children:v.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),v.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[v.jsx("div",{className:"text-center",children:v.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[v.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),v.jsx("img",{src:`/api/blob/${t.oldPath||t.path}?ref=${p}`,alt:`Previous version of ${t.oldPath||t.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,m),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),v.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(y.width||y.size)&&v.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(y),A(y)&&k(y.size)&&" | ",k(y.size)]})]})}),v.jsx("div",{className:"text-center",children:v.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[v.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),v.jsx("img",{src:`/api/blob/${t.path}?ref=${h}`,alt:`Current version of ${t.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,b),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),v.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(x.width||x.size)&&v.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(x),A(x)&&k(x.size)&&" | ",k(x.size)]})]})})]})]}):v.jsxs("div",{className:"bg-github-bg-primary p-4",children:[v.jsx("div",{className:"text-center mb-4",children:v.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),v.jsxs("div",{className:"space-y-6",children:[v.jsx("div",{className:"text-center",children:v.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[v.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),v.jsx("img",{src:`/api/blob/${t.oldPath||t.path}?ref=${p}`,alt:`Previous version of ${t.oldPath||t.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,m),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),v.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(y.width||y.size)&&v.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(y),A(y)&&k(y.size)&&" | ",k(y.size)]})]})}),v.jsx("div",{className:"text-center",children:v.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[v.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),v.jsx("img",{src:`/api/blob/${t.path}?ref=${h}`,alt:`Current version of ${t.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,b),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),v.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(x.width||x.size)&&v.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(x),A(x)&&k(x.size)&&" | ",k(x.size)]})]})})]})]}):null}function o2(t,r){const l={};return(t[t.length-1]===""?[...t,""]:t).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const s2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,u2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,c2={};function oy(t,r){return(c2.jsx?u2:s2).test(t)}const f2=/[ \t\n\f\r]/g;function d2(t){return typeof t=="object"?t.type==="text"?sy(t.value):!1:sy(t)}function sy(t){return t.replace(f2,"")===""}class Ia{constructor(r,l,a){this.normal=l,this.property=r,a&&(this.space=a)}}Ia.prototype.normal={};Ia.prototype.property={};Ia.prototype.space=void 0;function px(t,r){const l={},a={};for(const s of t)Object.assign(l,s.property),Object.assign(a,s.normal);return new Ia(l,a,r)}function td(t){return t.toLowerCase()}class on{constructor(r,l){this.attribute=l,this.property=r}}on.prototype.attribute="";on.prototype.booleanish=!1;on.prototype.boolean=!1;on.prototype.commaOrSpaceSeparated=!1;on.prototype.commaSeparated=!1;on.prototype.defined=!1;on.prototype.mustUseProperty=!1;on.prototype.number=!1;on.prototype.overloadedBoolean=!1;on.prototype.property="";on.prototype.spaceSeparated=!1;on.prototype.space=void 0;let h2=0;const Oe=Nl(),Et=Nl(),nd=Nl(),pe=Nl(),ot=Nl(),ki=Nl(),yn=Nl();function Nl(){return 2**++h2}const rd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:Et,commaOrSpaceSeparated:yn,commaSeparated:ki,number:pe,overloadedBoolean:nd,spaceSeparated:ot},Symbol.toStringTag,{value:"Module"})),Sf=Object.keys(rd);class jd extends on{constructor(r,l,a,s){let u=-1;if(super(r,l),uy(this,"space",s),typeof a=="number")for(;++u<Sf.length;){const c=Sf[u];uy(this,Sf[u],(a&rd[c])===rd[c])}}}jd.prototype.defined=!0;function uy(t,r,l){l&&(t[r]=l)}function Ri(t){const r={},l={};for(const[a,s]of Object.entries(t.properties)){const u=new jd(a,t.transform(t.attributes||{},a),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),r[a]=u,l[td(a)]=a,l[td(u.attribute)]=a}return new Ia(r,l,t.space)}const gx=Ri({properties:{ariaActiveDescendant:null,ariaAtomic:Et,ariaAutoComplete:null,ariaBusy:Et,ariaChecked:Et,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:ot,ariaCurrent:null,ariaDescribedBy:ot,ariaDetails:null,ariaDisabled:Et,ariaDropEffect:ot,ariaErrorMessage:null,ariaExpanded:Et,ariaFlowTo:ot,ariaGrabbed:Et,ariaHasPopup:null,ariaHidden:Et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ot,ariaLevel:pe,ariaLive:null,ariaModal:Et,ariaMultiLine:Et,ariaMultiSelectable:Et,ariaOrientation:null,ariaOwns:ot,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Et,ariaReadOnly:Et,ariaRelevant:null,ariaRequired:Et,ariaRoleDescription:ot,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Et,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function mx(t,r){return r in t?t[r]:r}function yx(t,r){return mx(t,r.toLowerCase())}const p2=Ri({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ki,acceptCharset:ot,accessKey:ot,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:ot,autoFocus:Oe,autoPlay:Oe,blocking:ot,capture:null,charSet:null,checked:Oe,cite:null,className:ot,cols:pe,colSpan:null,content:null,contentEditable:Et,controls:Oe,controlsList:ot,coords:pe|ki,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:nd,draggable:Et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:ot,height:pe,hidden:nd,high:pe,href:null,hrefLang:null,htmlFor:ot,httpEquiv:ot,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:ot,itemRef:ot,itemScope:Oe,itemType:ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,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:Oe,optimum:pe,pattern:null,ping:ot,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:ot,required:Oe,reversed:Oe,rows:pe,rowSpan:pe,sandbox:ot,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Et,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:Et,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ot,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Et,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:yx}),g2=Ri({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:yn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:ot,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:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,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:ki,g2:ki,glyphName:ki,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,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:pe,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:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ot,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yn,rev:yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yn,requiredFeatures:yn,requiredFonts:yn,requiredFormats:yn,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:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:mx}),bx=Ri({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()}}),xx=Ri({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yx}),vx=Ri({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()}}),m2={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"},y2=/[A-Z]/g,cy=/-[a-z]/g,b2=/^data[-\w.:]+$/i;function x2(t,r){const l=td(r);let a=r,s=on;if(l in t.normal)return t.property[t.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&b2.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(cy,w2);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!cy.test(u)){let c=u.replace(y2,v2);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}s=jd}return new s(a,r)}function v2(t){return"-"+t.toLowerCase()}function w2(t){return t.charAt(1).toUpperCase()}const S2=px([gx,p2,bx,xx,vx],"html"),Dd=px([gx,g2,bx,xx,vx],"svg");function k2(t){return t.join(" ").trim()}var bi={},kf,fy;function E2(){if(fy)return kf;fy=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
|
|
16
|
-
`,h="/",y="*",m="",x="comment",b="declaration";function w(A,E){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];E=E||{};var C=1,N=1;function B(F){var X=F.match(r);X&&(C+=X.length);var L=F.lastIndexOf(p);N=~L?F.length-L:N+F.length}function G(){var F={line:C,column:N};return function(X){return X.position=new D(F),P(),X}}function D(F){this.start=F,this.end={line:C,column:N},this.source=E.source}D.prototype.content=A;function U(F){var X=new Error(E.source+":"+C+":"+N+": "+F);if(X.reason=F,X.filename=E.source,X.line=C,X.column=N,X.source=A,!E.silent)throw X}function Z(F){var X=F.exec(A);if(X){var L=X[0];return B(L),A=A.slice(L.length),X}}function P(){Z(l)}function M(F){var X;for(F=F||[];X=q();)X!==!1&&F.push(X);return F}function q(){var F=G();if(!(h!=A.charAt(0)||y!=A.charAt(1))){for(var X=2;m!=A.charAt(X)&&(y!=A.charAt(X)||h!=A.charAt(X+1));)++X;if(X+=2,m===A.charAt(X-1))return U("End of comment missing");var L=A.slice(2,X-2);return N+=2,B(L),A=A.slice(X),N+=2,F({type:x,comment:L})}}function $(){var F=G(),X=Z(a);if(X){if(q(),!Z(s))return U("property missing ':'");var L=Z(u),z=F({type:b,property:k(X[0].replace(t,m)),value:L?k(L[0].replace(t,m)):m});return Z(c),z}}function J(){var F=[];M(F);for(var X;X=$();)X!==!1&&(F.push(X),M(F));return F}return P(),J()}function k(A){return A?A.replace(d,m):m}return kf=w,kf}var dy;function C2(){if(dy)return bi;dy=1;var t=bi&&bi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=l;const r=t(E2());function l(a,s){let u=null;if(!a||typeof a!="string")return u;const c=(0,r.default)(a),d=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:h,value:y}=p;d?s(h,y,p):y&&(u=u||{},u[h]=y)}),u}return bi}var Ea={},hy;function A2(){if(hy)return Ea;hy=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,l=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(h){return!h||l.test(h)||t.test(h)},c=function(h,y){return y.toUpperCase()},d=function(h,y){return"".concat(y,"-")},p=function(h,y){return y===void 0&&(y={}),u(h)?h:(h=h.toLowerCase(),y.reactCompat?h=h.replace(s,d):h=h.replace(a,d),h.replace(r,c))};return Ea.camelCase=p,Ea}var Ca,py;function T2(){if(py)return Ca;py=1;var t=Ca&&Ca.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=t(C2()),l=A2();function a(s,u){var c={};return!s||typeof s!="string"||(0,r.default)(s,function(d,p){d&&p&&(c[(0,l.camelCase)(d,u)]=p)}),c}return a.default=a,Ca=a,Ca}var N2=T2();const R2=Bs(N2),wx=Sx("end"),Od=Sx("start");function Sx(t){return r;function r(l){const a=l&&l.position&&l.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function _2(t){const r=Od(t),l=wx(t);if(r&&l)return{start:r,end:l}}function _a(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?gy(t.position):"start"in t||"end"in t?gy(t):"line"in t||"column"in t?ld(t):""}function ld(t){return my(t&&t.line)+":"+my(t&&t.column)}function gy(t){return ld(t&&t.start)+"-"+ld(t&&t.end)}function my(t){return t&&typeof t=="number"?t:1}class qt extends Error{constructor(r,l,a){super(),typeof l=="string"&&(a=l,l=void 0);let s="",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 r=="string"?s=r:!u.cause&&r&&(c=!0,s=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?u.ruleId=a:(u.source=a.slice(0,p),u.ruleId=a.slice(p+1))}if(!u.place&&u.ancestors&&u.ancestors){const p=u.ancestors[u.ancestors.length-1];p&&(u.place=p.position)}const d=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=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=_a(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}}qt.prototype.file="";qt.prototype.name="";qt.prototype.reason="";qt.prototype.message="";qt.prototype.stack="";qt.prototype.column=void 0;qt.prototype.line=void 0;qt.prototype.ancestors=void 0;qt.prototype.cause=void 0;qt.prototype.fatal=void 0;qt.prototype.place=void 0;qt.prototype.ruleId=void 0;qt.prototype.source=void 0;const Md={}.hasOwnProperty,L2=new Map,j2=/[A-Z]/g,D2=new Set(["table","tbody","thead","tfoot","tr"]),O2=new Set(["td","th"]),kx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function M2(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=r.filePath||void 0;let a;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=V2(l,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=q2(l,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:a,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Dd:S2,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=Ex(s,t,void 0);return u&&typeof u!="string"?u:s.create(t,s.Fragment,{children:u||void 0},void 0)}function Ex(t,r,l){if(r.type==="element")return z2(t,r,l);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return B2(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return I2(t,r,l);if(r.type==="mdxjsEsm")return F2(t,r);if(r.type==="root")return U2(t,r,l);if(r.type==="text")return H2(t,r)}function z2(t,r,l){const a=t.schema;let s=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=Dd,t.schema=s),t.ancestors.push(r);const u=Ax(t,r.tagName,!1),c=P2(t,r);let d=Bd(t,r);return D2.has(r.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!d2(p):!0})),Cx(t,c,u,r),zd(c,d),t.ancestors.pop(),t.schema=a,t.create(r,u,c,l)}function B2(t,r){if(r.data&&r.data.estree&&t.evaluater){const a=r.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}za(t,r.position)}function F2(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);za(t,r.position)}function I2(t,r,l){const a=t.schema;let s=a;r.name==="svg"&&a.space==="html"&&(s=Dd,t.schema=s),t.ancestors.push(r);const u=r.name===null?t.Fragment:Ax(t,r.name,!0),c=$2(t,r),d=Bd(t,r);return Cx(t,c,u,r),zd(c,d),t.ancestors.pop(),t.schema=a,t.create(r,u,c,l)}function U2(t,r,l){const a={};return zd(a,Bd(t,r)),t.create(r,t.Fragment,a,l)}function H2(t,r){return r.value}function Cx(t,r,l,a){typeof l!="string"&&l!==t.Fragment&&t.passNode&&(r.node=a)}function zd(t,r){if(r.length>0){const l=r.length>1?r:r[0];l&&(t.children=l)}}function q2(t,r,l){return a;function a(s,u,c,d){const h=Array.isArray(c.children)?l:r;return d?h(u,c,d):h(u,c)}}function V2(t,r){return l;function l(a,s,u,c){const d=Array.isArray(u.children),p=Od(a);return r(s,u,c,d,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function P2(t,r){const l={};let a,s;for(s in r.properties)if(s!=="children"&&Md.call(r.properties,s)){const u=G2(t,s,r.properties[s]);if(u){const[c,d]=u;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&O2.has(r.tagName)?a=d:l[c]=d}}if(a){const u=l.style||(l.style={});u[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return l}function $2(t,r){const l={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(l,t.evaluater.evaluateExpression(d.argument))}else za(t,r.position);else{const s=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,u=t.evaluater.evaluateExpression(d.expression)}else za(t,r.position);else u=a.value===null?!0:a.value;l[s]=u}return l}function Bd(t,r){const l=[];let a=-1;const s=t.passKeys?new Map:L2;for(;++a<r.children.length;){const u=r.children[a];let c;if(t.passKeys){const p=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(p){const h=s.get(p)||0;c=p+"-"+h,s.set(p,h+1)}}const d=Ex(t,u,c);d!==void 0&&l.push(d)}return l}function G2(t,r,l){const a=x2(t.schema,r);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=a.commaSeparated?o2(l):k2(l)),a.property==="style"){let s=typeof l=="object"?l:Y2(t,String(l));return t.stylePropertyNameCase==="css"&&(s=X2(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&a.space?m2[a.property]||a.property:a.attribute,l]}}function Y2(t,r){try{return R2(r,{reactCompat:!0})}catch(l){if(t.ignoreInvalidStyle)return{};const a=l,s=new qt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=kx+"#cannot-parse-style-attribute",s}}function Ax(t,r,l){let a;if(!l)a={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let u=-1,c;for(;++u<s.length;){const d=oy(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}a=c}else a=oy(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(a.type==="Literal"){const s=a.value;return Md.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(a);za(t)}function za(t,r){const l=new qt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=t.filePath||void 0,l.url=kx+"#cannot-handle-mdx-estrees-without-createevaluater",l}function X2(t){const r={};let l;for(l in t)Md.call(t,l)&&(r[Z2(l)]=t[l]);return r}function Z2(t){let r=t.replace(j2,Q2);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function Q2(t){return"-"+t.toLowerCase()}const Ef={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"]},K2={};function Fd(t,r){const l=K2,a=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,s=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return Tx(t,a,s)}function Tx(t,r,l){if(J2(t)){if("value"in t)return t.type==="html"&&!l?"":t.value;if(r&&"alt"in t&&t.alt)return t.alt;if("children"in t)return yy(t.children,r,l)}return Array.isArray(t)?yy(t,r,l):""}function yy(t,r,l){const a=[];let s=-1;for(;++s<t.length;)a[s]=Tx(t[s],r,l);return a.join("")}function J2(t){return!!(t&&typeof t=="object")}const by=document.createElement("i");function Id(t){const r="&"+t+";";by.innerHTML=r;const l=by.textContent;return l.charCodeAt(l.length-1)===59&&t!=="semi"||l===r?!1:l}function vn(t,r,l,a){const s=t.length;let u=0,c;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,l=l>0?l:0,a.length<1e4)c=Array.from(a),c.unshift(r,l),t.splice(...c);else for(l&&t.splice(r,l);u<a.length;)c=a.slice(u,u+1e4),c.unshift(r,0),t.splice(...c),u+=1e4,r+=1e4}function Ln(t,r){return t.length>0?(vn(t,t.length,0,r),t):r}const xy={}.hasOwnProperty;function Nx(t){const r={};let l=-1;for(;++l<t.length;)W2(r,t[l]);return r}function W2(t,r){let l;for(l in r){const s=(xy.call(t,l)?t[l]:void 0)||(t[l]={}),u=r[l];let c;if(u)for(c in u){xy.call(s,c)||(s[c]=[]);const d=u[c];ek(s[c],Array.isArray(d)?d:d?[d]:[])}}}function ek(t,r){let l=-1;const a=[];for(;++l<r.length;)(r[l].add==="after"?t:a).push(r[l]);vn(t,0,0,a)}function Rx(t,r){const l=Number.parseInt(t,r);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 Fn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xt=el(/[A-Za-z]/),Ht=el(/[\dA-Za-z]/),tk=el(/[#-'*+\--9=?A-Z^-~]/);function xs(t){return t!==null&&(t<32||t===127)}const id=el(/\d/),nk=el(/[\dA-Fa-f]/),rk=el(/[!-/:-@[-`{-~]/);function Ae(t){return t!==null&&t<-2}function it(t){return t!==null&&(t<0||t===32)}function Ie(t){return t===-2||t===-1||t===32}const Us=el(new RegExp("\\p{P}|\\p{S}","u")),El=el(/\s/);function el(t){return r;function r(l){return l!==null&&l>-1&&t.test(String.fromCharCode(l))}}function _i(t){const r=[];let l=-1,a=0,s=0;for(;++l<t.length;){const u=t.charCodeAt(l);let c="";if(u===37&&Ht(t.charCodeAt(l+1))&&Ht(t.charCodeAt(l+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=t.charCodeAt(l+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),s=1):c="�"}else c=String.fromCharCode(u);c&&(r.push(t.slice(a,l),encodeURIComponent(c)),a=l+s+1,c=""),s&&(l+=s,s=0)}return r.join("")+t.slice(a)}function $e(t,r,l,a){const s=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(p){return Ie(p)?(t.enter(l),d(p)):r(p)}function d(p){return Ie(p)&&u++<s?(t.consume(p),d):(t.exit(l),r(p))}}const lk={tokenize:ik};function ik(t){const r=t.attempt(this.parser.constructs.contentInitial,a,s);let l;return r;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),$e(t,r,"linePrefix")}function s(d){return t.enter("paragraph"),u(d)}function u(d){const p=t.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=p),l=p,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return Ae(d)?(t.consume(d),t.exit("chunkText"),u):(t.consume(d),c)}}const ak={tokenize:ok},vy={tokenize:sk};function ok(t){const r=this,l=[];let a=0,s,u,c;return d;function d(N){if(a<l.length){const B=l[a];return r.containerState=B[1],t.attempt(B[0].continuation,p,h)(N)}return h(N)}function p(N){if(a++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&C();const B=r.events.length;let G=B,D;for(;G--;)if(r.events[G][0]==="exit"&&r.events[G][1].type==="chunkFlow"){D=r.events[G][1].end;break}E(a);let U=B;for(;U<r.events.length;)r.events[U][1].end={...D},U++;return vn(r.events,G+1,0,r.events.slice(B)),r.events.length=U,h(N)}return d(N)}function h(N){if(a===l.length){if(!s)return x(N);if(s.currentConstruct&&s.currentConstruct.concrete)return w(N);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(vy,y,m)(N)}function y(N){return s&&C(),E(a),x(N)}function m(N){return r.parser.lazy[r.now().line]=a!==l.length,c=r.now().offset,w(N)}function x(N){return r.containerState={},t.attempt(vy,b,w)(N)}function b(N){return a++,l.push([r.currentConstruct,r.containerState]),x(N)}function w(N){if(N===null){s&&C(),E(0),t.consume(N);return}return s=s||r.parser.flow(r.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),k(N)}function k(N){if(N===null){A(t.exit("chunkFlow"),!0),E(0),t.consume(N);return}return Ae(N)?(t.consume(N),A(t.exit("chunkFlow")),a=0,r.interrupt=void 0,d):(t.consume(N),k)}function A(N,B){const G=r.sliceStream(N);if(B&&G.push(null),N.previous=u,u&&(u.next=N),u=N,s.defineSkip(N.start),s.write(G),r.parser.lazy[N.start.line]){let D=s.events.length;for(;D--;)if(s.events[D][1].start.offset<c&&(!s.events[D][1].end||s.events[D][1].end.offset>c))return;const U=r.events.length;let Z=U,P,M;for(;Z--;)if(r.events[Z][0]==="exit"&&r.events[Z][1].type==="chunkFlow"){if(P){M=r.events[Z][1].end;break}P=!0}for(E(a),D=U;D<r.events.length;)r.events[D][1].end={...M},D++;vn(r.events,Z+1,0,r.events.slice(U)),r.events.length=D}}function E(N){let B=l.length;for(;B-- >N;){const G=l[B];r.containerState=G[1],G[0].exit.call(r,t)}l.length=N}function C(){s.write([null]),u=void 0,s=void 0,r.containerState._closeFlow=void 0}}function sk(t,r,l){return $e(t,t.attempt(this.parser.constructs.document,r,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ti(t){if(t===null||it(t)||El(t))return 1;if(Us(t))return 2}function Hs(t,r,l){const a=[];let s=-1;for(;++s<t.length;){const u=t[s].resolveAll;u&&!a.includes(u)&&(r=u(r,l),a.push(u))}return r}const ad={name:"attention",resolveAll:uk,tokenize:ck};function uk(t,r){let l=-1,a,s,u,c,d,p,h,y;for(;++l<t.length;)if(t[l][0]==="enter"&&t[l][1].type==="attentionSequence"&&t[l][1]._close){for(a=l;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&r.sliceSerialize(t[a][1]).charCodeAt(0)===r.sliceSerialize(t[l][1]).charCodeAt(0)){if((t[a][1]._close||t[l][1]._open)&&(t[l][1].end.offset-t[l][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[l][1].end.offset-t[l][1].start.offset)%3))continue;p=t[a][1].end.offset-t[a][1].start.offset>1&&t[l][1].end.offset-t[l][1].start.offset>1?2:1;const m={...t[a][1].end},x={...t[l][1].start};wy(m,-p),wy(x,p),c={type:p>1?"strongSequence":"emphasisSequence",start:m,end:{...t[a][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...t[l][1].start},end:x},u={type:p>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[l][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[l][1].start={...d.end},h=[],t[a][1].end.offset-t[a][1].start.offset&&(h=Ln(h,[["enter",t[a][1],r],["exit",t[a][1],r]])),h=Ln(h,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",u,r]]),h=Ln(h,Hs(r.parser.constructs.insideSpan.null,t.slice(a+1,l),r)),h=Ln(h,[["exit",u,r],["enter",d,r],["exit",d,r],["exit",s,r]]),t[l][1].end.offset-t[l][1].start.offset?(y=2,h=Ln(h,[["enter",t[l][1],r],["exit",t[l][1],r]])):y=0,vn(t,a-1,l-a+3,h),l=a+h.length-y-2;break}}for(l=-1;++l<t.length;)t[l][1].type==="attentionSequence"&&(t[l][1].type="data");return t}function ck(t,r){const l=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Ti(a);let u;return c;function c(p){return u=p,t.enter("attentionSequence"),d(p)}function d(p){if(p===u)return t.consume(p),d;const h=t.exit("attentionSequence"),y=Ti(p),m=!y||y===2&&s||l.includes(p),x=!s||s===2&&y||l.includes(a);return h._open=!!(u===42?m:m&&(s||!x)),h._close=!!(u===42?x:x&&(y||!m)),r(p)}}function wy(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const fk={name:"autolink",tokenize:dk};function dk(t,r,l){let a=0;return s;function s(b){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),u}function u(b){return Xt(b)?(t.consume(b),c):b===64?l(b):h(b)}function c(b){return b===43||b===45||b===46||Ht(b)?(a=1,d(b)):h(b)}function d(b){return b===58?(t.consume(b),a=0,p):(b===43||b===45||b===46||Ht(b))&&a++<32?(t.consume(b),d):(a=0,h(b))}function p(b){return b===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.exit("autolink"),r):b===null||b===32||b===60||xs(b)?l(b):(t.consume(b),p)}function h(b){return b===64?(t.consume(b),y):tk(b)?(t.consume(b),h):l(b)}function y(b){return Ht(b)?m(b):l(b)}function m(b){return b===46?(t.consume(b),a=0,y):b===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(b),t.exit("autolinkMarker"),t.exit("autolink"),r):x(b)}function x(b){if((b===45||Ht(b))&&a++<63){const w=b===45?x:m;return t.consume(b),w}return l(b)}}const Ua={partial:!0,tokenize:hk};function hk(t,r,l){return a;function a(u){return Ie(u)?$e(t,s,"linePrefix")(u):s(u)}function s(u){return u===null||Ae(u)?r(u):l(u)}}const _x={continuation:{tokenize:gk},exit:mk,name:"blockQuote",tokenize:pk};function pk(t,r,l){const a=this;return s;function s(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),u}return l(c)}function u(c){return Ie(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(c))}}function gk(t,r,l){const a=this;return s;function s(c){return Ie(c)?$e(t,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return t.attempt(_x,r,l)(c)}}function mk(t){t.exit("blockQuote")}const Lx={name:"characterEscape",tokenize:yk};function yk(t,r,l){return a;function a(u){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(u),t.exit("escapeMarker"),s}function s(u){return rk(u)?(t.enter("characterEscapeValue"),t.consume(u),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):l(u)}}const jx={name:"characterReference",tokenize:bk};function bk(t,r,l){const a=this;let s=0,u,c;return d;function d(m){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(m),t.exit("characterReferenceMarker"),p}function p(m){return m===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(m),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),u=31,c=Ht,y(m))}function h(m){return m===88||m===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(m),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),u=6,c=nk,y):(t.enter("characterReferenceValue"),u=7,c=id,y(m))}function y(m){if(m===59&&s){const x=t.exit("characterReferenceValue");return c===Ht&&!Id(a.sliceSerialize(x))?l(m):(t.enter("characterReferenceMarker"),t.consume(m),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)}return c(m)&&s++<u?(t.consume(m),y):l(m)}}const Sy={partial:!0,tokenize:vk},ky={concrete:!0,name:"codeFenced",tokenize:xk};function xk(t,r,l){const a=this,s={partial:!0,tokenize:G};let u=0,c=0,d;return p;function p(D){return h(D)}function h(D){const U=a.events[a.events.length-1];return u=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,d=D,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(D)}function y(D){return D===d?(c++,t.consume(D),y):c<3?l(D):(t.exit("codeFencedFenceSequence"),Ie(D)?$e(t,m,"whitespace")(D):m(D))}function m(D){return D===null||Ae(D)?(t.exit("codeFencedFence"),a.interrupt?r(D):t.check(Sy,k,B)(D)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(D))}function x(D){return D===null||Ae(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),m(D)):Ie(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),$e(t,b,"whitespace")(D)):D===96&&D===d?l(D):(t.consume(D),x)}function b(D){return D===null||Ae(D)?m(D):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===null||Ae(D)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),m(D)):D===96&&D===d?l(D):(t.consume(D),w)}function k(D){return t.attempt(s,B,A)(D)}function A(D){return t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),E}function E(D){return u>0&&Ie(D)?$e(t,C,"linePrefix",u+1)(D):C(D)}function C(D){return D===null||Ae(D)?t.check(Sy,k,B)(D):(t.enter("codeFlowValue"),N(D))}function N(D){return D===null||Ae(D)?(t.exit("codeFlowValue"),C(D)):(t.consume(D),N)}function B(D){return t.exit("codeFenced"),r(D)}function G(D,U,Z){let P=0;return M;function M(X){return D.enter("lineEnding"),D.consume(X),D.exit("lineEnding"),q}function q(X){return D.enter("codeFencedFence"),Ie(X)?$e(D,$,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):$(X)}function $(X){return X===d?(D.enter("codeFencedFenceSequence"),J(X)):Z(X)}function J(X){return X===d?(P++,D.consume(X),J):P>=c?(D.exit("codeFencedFenceSequence"),Ie(X)?$e(D,F,"whitespace")(X):F(X)):Z(X)}function F(X){return X===null||Ae(X)?(D.exit("codeFencedFence"),U(X)):Z(X)}}}function vk(t,r,l){const a=this;return s;function s(c){return c===null?l(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?l(c):r(c)}}const Cf={name:"codeIndented",tokenize:Sk},wk={partial:!0,tokenize:kk};function Sk(t,r,l){const a=this;return s;function s(h){return t.enter("codeIndented"),$e(t,u,"linePrefix",5)(h)}function u(h){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(h):l(h)}function c(h){return h===null?p(h):Ae(h)?t.attempt(wk,c,p)(h):(t.enter("codeFlowValue"),d(h))}function d(h){return h===null||Ae(h)?(t.exit("codeFlowValue"),c(h)):(t.consume(h),d)}function p(h){return t.exit("codeIndented"),r(h)}}function kk(t,r,l){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?l(c):Ae(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):$e(t,u,"linePrefix",5)(c)}function u(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):Ae(c)?s(c):l(c)}}const Ek={name:"codeText",previous:Ak,resolve:Ck,tokenize:Tk};function Ck(t){let r=t.length-4,l=3,a,s;if((t[l][1].type==="lineEnding"||t[l][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(a=l;++a<r;)if(t[a][1].type==="codeTextData"){t[l][1].type="codeTextPadding",t[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(a=l-1,r++;++a<=r;)s===void 0?a!==r&&t[a][1].type!=="lineEnding"&&(s=a):(a===r||t[a][1].type==="lineEnding")&&(t[s][1].type="codeTextData",a!==s+2&&(t[s][1].end=t[a-1][1].end,t.splice(s+2,a-s-2),r-=a-s-2,a=s+2),s=void 0);return t}function Ak(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Tk(t,r,l){let a=0,s,u;return c;function c(m){return t.enter("codeText"),t.enter("codeTextSequence"),d(m)}function d(m){return m===96?(t.consume(m),a++,d):(t.exit("codeTextSequence"),p(m))}function p(m){return m===null?l(m):m===32?(t.enter("space"),t.consume(m),t.exit("space"),p):m===96?(u=t.enter("codeTextSequence"),s=0,y(m)):Ae(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),p):(t.enter("codeTextData"),h(m))}function h(m){return m===null||m===32||m===96||Ae(m)?(t.exit("codeTextData"),p(m)):(t.consume(m),h)}function y(m){return m===96?(t.consume(m),s++,y):s===a?(t.exit("codeTextSequence"),t.exit("codeText"),r(m)):(u.type="codeTextData",h(m))}}class Nk{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,l){const a=l??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(r,a):r>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,l,a){const s=l||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&Aa(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Aa(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Aa(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const l=this.left.splice(r,Number.POSITIVE_INFINITY);Aa(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Aa(this.left,l.reverse())}}}function Aa(t,r){let l=0;if(r.length<1e4)t.push(...r);else for(;l<r.length;)t.push(...r.slice(l,l+1e4)),l+=1e4}function Dx(t){const r={};let l=-1,a,s,u,c,d,p,h;const y=new Nk(t);for(;++l<y.length;){for(;l in r;)l=r[l];if(a=y.get(l),l&&a[1].type==="chunkFlow"&&y.get(l-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,u=0,u<p.length&&p[u][1].type==="lineEndingBlank"&&(u+=2),u<p.length&&p[u][1].type==="content"))for(;++u<p.length&&p[u][1].type!=="content";)p[u][1].type==="chunkText"&&(p[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(r,Rk(y,l)),l=r[l],h=!0);else if(a[1]._container){for(u=l,s=void 0;u--;)if(c=y.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...y.get(s)[1].start},d=y.slice(s,l),d.unshift(a),y.splice(s,l-s+1,d))}}return vn(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!h}function Rk(t,r){const l=t.get(r)[1],a=t.get(r)[2];let s=r-1;const u=[];let c=l._tokenizer;c||(c=a.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],h={};let y,m,x=-1,b=l,w=0,k=0;const A=[k];for(;b;){for(;t.get(++s)[1]!==b;);u.push(s),b._tokenizer||(y=a.sliceStream(b),b.next||y.push(null),m&&c.defineSkip(b.start),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),b._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),m=b,b=b.next}for(b=l;++x<d.length;)d[x][0]==="exit"&&d[x-1][0]==="enter"&&d[x][1].type===d[x-1][1].type&&d[x][1].start.line!==d[x][1].end.line&&(k=x+1,A.push(k),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(c.events=[],b?(b._tokenizer=void 0,b.previous=void 0):A.pop(),x=A.length;x--;){const E=d.slice(A[x],A[x+1]),C=u.pop();p.push([C,C+E.length-1]),t.splice(C,2,E)}for(p.reverse(),x=-1;++x<p.length;)h[w+p[x][0]]=w+p[x][1],w+=p[x][1]-p[x][0]-1;return h}const _k={resolve:jk,tokenize:Dk},Lk={partial:!0,tokenize:Ok};function jk(t){return Dx(t),t}function Dk(t,r){let l;return a;function a(d){return t.enter("content"),l=t.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?u(d):Ae(d)?t.check(Lk,c,u)(d):(t.consume(d),s)}function u(d){return t.exit("chunkContent"),t.exit("content"),r(d)}function c(d){return t.consume(d),t.exit("chunkContent"),l.next=t.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,s}}function Ok(t,r,l){const a=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),$e(t,u,"linePrefix")}function u(c){if(c===null||Ae(c))return l(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(c):t.interrupt(a.parser.constructs.flow,l,r)(c)}}function Ox(t,r,l,a,s,u,c,d,p){const h=p||Number.POSITIVE_INFINITY;let y=0;return m;function m(E){return E===60?(t.enter(a),t.enter(s),t.enter(u),t.consume(E),t.exit(u),x):E===null||E===32||E===41||xs(E)?l(E):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),k(E))}function x(E){return E===62?(t.enter(u),t.consume(E),t.exit(u),t.exit(s),t.exit(a),r):(t.enter(d),t.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===62?(t.exit("chunkString"),t.exit(d),x(E)):E===null||E===60||Ae(E)?l(E):(t.consume(E),E===92?w:b)}function w(E){return E===60||E===62||E===92?(t.consume(E),b):b(E)}function k(E){return!y&&(E===null||E===41||it(E))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),r(E)):y<h&&E===40?(t.consume(E),y++,k):E===41?(t.consume(E),y--,k):E===null||E===32||E===40||xs(E)?l(E):(t.consume(E),E===92?A:k)}function A(E){return E===40||E===41||E===92?(t.consume(E),k):k(E)}}function Mx(t,r,l,a,s,u){const c=this;let d=0,p;return h;function h(b){return t.enter(a),t.enter(s),t.consume(b),t.exit(s),t.enter(u),y}function y(b){return d>999||b===null||b===91||b===93&&!p||b===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?l(b):b===93?(t.exit(u),t.enter(s),t.consume(b),t.exit(s),t.exit(a),r):Ae(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||b===91||b===93||Ae(b)||d++>999?(t.exit("chunkString"),y(b)):(t.consume(b),p||(p=!Ie(b)),b===92?x:m)}function x(b){return b===91||b===92||b===93?(t.consume(b),d++,m):m(b)}}function zx(t,r,l,a,s,u){let c;return d;function d(x){return x===34||x===39||x===40?(t.enter(a),t.enter(s),t.consume(x),t.exit(s),c=x===40?41:x,p):l(x)}function p(x){return x===c?(t.enter(s),t.consume(x),t.exit(s),t.exit(a),r):(t.enter(u),h(x))}function h(x){return x===c?(t.exit(u),p(c)):x===null?l(x):Ae(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),$e(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===c||x===null||Ae(x)?(t.exit("chunkString"),h(x)):(t.consume(x),x===92?m:y)}function m(x){return x===c||x===92?(t.consume(x),y):y(x)}}function La(t,r){let l;return a;function a(s){return Ae(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),l=!0,a):Ie(s)?$e(t,a,l?"linePrefix":"lineSuffix")(s):r(s)}}const Mk={name:"definition",tokenize:Bk},zk={partial:!0,tokenize:Fk};function Bk(t,r,l){const a=this;let s;return u;function u(b){return t.enter("definition"),c(b)}function c(b){return Mx.call(a,t,d,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function d(b){return s=Fn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),b===58?(t.enter("definitionMarker"),t.consume(b),t.exit("definitionMarker"),p):l(b)}function p(b){return it(b)?La(t,h)(b):h(b)}function h(b){return Ox(t,y,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function y(b){return t.attempt(zk,m,m)(b)}function m(b){return Ie(b)?$e(t,x,"whitespace")(b):x(b)}function x(b){return b===null||Ae(b)?(t.exit("definition"),a.parser.defined.push(s),r(b)):l(b)}}function Fk(t,r,l){return a;function a(d){return it(d)?La(t,s)(d):l(d)}function s(d){return zx(t,u,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return Ie(d)?$e(t,c,"whitespace")(d):c(d)}function c(d){return d===null||Ae(d)?r(d):l(d)}}const Ik={name:"hardBreakEscape",tokenize:Uk};function Uk(t,r,l){return a;function a(u){return t.enter("hardBreakEscape"),t.consume(u),s}function s(u){return Ae(u)?(t.exit("hardBreakEscape"),r(u)):l(u)}}const Hk={name:"headingAtx",resolve:qk,tokenize:Vk};function qk(t,r){let l=t.length-2,a=3,s,u;return t[a][1].type==="whitespace"&&(a+=2),l-2>a&&t[l][1].type==="whitespace"&&(l-=2),t[l][1].type==="atxHeadingSequence"&&(a===l-1||l-4>a&&t[l-2][1].type==="whitespace")&&(l-=a+1===l?2:4),l>a&&(s={type:"atxHeadingText",start:t[a][1].start,end:t[l][1].end},u={type:"chunkText",start:t[a][1].start,end:t[l][1].end,contentType:"text"},vn(t,a,l-a+1,[["enter",s,r],["enter",u,r],["exit",u,r],["exit",s,r]])),t}function Vk(t,r,l){let a=0;return s;function s(y){return t.enter("atxHeading"),u(y)}function u(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(t.consume(y),c):y===null||it(y)?(t.exit("atxHeadingSequence"),d(y)):l(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),p(y)):y===null||Ae(y)?(t.exit("atxHeading"),r(y)):Ie(y)?$e(t,d,"whitespace")(y):(t.enter("atxHeadingText"),h(y))}function p(y){return y===35?(t.consume(y),p):(t.exit("atxHeadingSequence"),d(y))}function h(y){return y===null||y===35||it(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),h)}}const Pk=["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"],Ey=["pre","script","style","textarea"],$k={concrete:!0,name:"htmlFlow",resolveTo:Xk,tokenize:Zk},Gk={partial:!0,tokenize:Kk},Yk={partial:!0,tokenize:Qk};function Xk(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function Zk(t,r,l){const a=this;let s,u,c,d,p;return h;function h(T){return y(T)}function y(T){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(T),m}function m(T){return T===33?(t.consume(T),x):T===47?(t.consume(T),u=!0,k):T===63?(t.consume(T),s=3,a.interrupt?r:R):Xt(T)?(t.consume(T),c=String.fromCharCode(T),A):l(T)}function x(T){return T===45?(t.consume(T),s=2,b):T===91?(t.consume(T),s=5,d=0,w):Xt(T)?(t.consume(T),s=4,a.interrupt?r:R):l(T)}function b(T){return T===45?(t.consume(T),a.interrupt?r:R):l(T)}function w(T){const le="CDATA[";return T===le.charCodeAt(d++)?(t.consume(T),d===le.length?a.interrupt?r:$:w):l(T)}function k(T){return Xt(T)?(t.consume(T),c=String.fromCharCode(T),A):l(T)}function A(T){if(T===null||T===47||T===62||it(T)){const le=T===47,ce=c.toLowerCase();return!le&&!u&&Ey.includes(ce)?(s=1,a.interrupt?r(T):$(T)):Pk.includes(c.toLowerCase())?(s=6,le?(t.consume(T),E):a.interrupt?r(T):$(T)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?l(T):u?C(T):N(T))}return T===45||Ht(T)?(t.consume(T),c+=String.fromCharCode(T),A):l(T)}function E(T){return T===62?(t.consume(T),a.interrupt?r:$):l(T)}function C(T){return Ie(T)?(t.consume(T),C):M(T)}function N(T){return T===47?(t.consume(T),M):T===58||T===95||Xt(T)?(t.consume(T),B):Ie(T)?(t.consume(T),N):M(T)}function B(T){return T===45||T===46||T===58||T===95||Ht(T)?(t.consume(T),B):G(T)}function G(T){return T===61?(t.consume(T),D):Ie(T)?(t.consume(T),G):N(T)}function D(T){return T===null||T===60||T===61||T===62||T===96?l(T):T===34||T===39?(t.consume(T),p=T,U):Ie(T)?(t.consume(T),D):Z(T)}function U(T){return T===p?(t.consume(T),p=null,P):T===null||Ae(T)?l(T):(t.consume(T),U)}function Z(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||it(T)?G(T):(t.consume(T),Z)}function P(T){return T===47||T===62||Ie(T)?N(T):l(T)}function M(T){return T===62?(t.consume(T),q):l(T)}function q(T){return T===null||Ae(T)?$(T):Ie(T)?(t.consume(T),q):l(T)}function $(T){return T===45&&s===2?(t.consume(T),L):T===60&&s===1?(t.consume(T),z):T===62&&s===4?(t.consume(T),O):T===63&&s===3?(t.consume(T),R):T===93&&s===5?(t.consume(T),K):Ae(T)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(Gk,V,J)(T)):T===null||Ae(T)?(t.exit("htmlFlowData"),J(T)):(t.consume(T),$)}function J(T){return t.check(Yk,F,V)(T)}function F(T){return t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),X}function X(T){return T===null||Ae(T)?J(T):(t.enter("htmlFlowData"),$(T))}function L(T){return T===45?(t.consume(T),R):$(T)}function z(T){return T===47?(t.consume(T),c="",I):$(T)}function I(T){if(T===62){const le=c.toLowerCase();return Ey.includes(le)?(t.consume(T),O):$(T)}return Xt(T)&&c.length<8?(t.consume(T),c+=String.fromCharCode(T),I):$(T)}function K(T){return T===93?(t.consume(T),R):$(T)}function R(T){return T===62?(t.consume(T),O):T===45&&s===2?(t.consume(T),R):$(T)}function O(T){return T===null||Ae(T)?(t.exit("htmlFlowData"),V(T)):(t.consume(T),O)}function V(T){return t.exit("htmlFlow"),r(T)}}function Qk(t,r,l){const a=this;return s;function s(c){return Ae(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u):l(c)}function u(c){return a.parser.lazy[a.now().line]?l(c):r(c)}}function Kk(t,r,l){return a;function a(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Ua,r,l)}}const Jk={name:"htmlText",tokenize:Wk};function Wk(t,r,l){const a=this;let s,u,c;return d;function d(R){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(R),p}function p(R){return R===33?(t.consume(R),h):R===47?(t.consume(R),G):R===63?(t.consume(R),N):Xt(R)?(t.consume(R),Z):l(R)}function h(R){return R===45?(t.consume(R),y):R===91?(t.consume(R),u=0,w):Xt(R)?(t.consume(R),C):l(R)}function y(R){return R===45?(t.consume(R),b):l(R)}function m(R){return R===null?l(R):R===45?(t.consume(R),x):Ae(R)?(c=m,z(R)):(t.consume(R),m)}function x(R){return R===45?(t.consume(R),b):m(R)}function b(R){return R===62?L(R):R===45?x(R):m(R)}function w(R){const O="CDATA[";return R===O.charCodeAt(u++)?(t.consume(R),u===O.length?k:w):l(R)}function k(R){return R===null?l(R):R===93?(t.consume(R),A):Ae(R)?(c=k,z(R)):(t.consume(R),k)}function A(R){return R===93?(t.consume(R),E):k(R)}function E(R){return R===62?L(R):R===93?(t.consume(R),E):k(R)}function C(R){return R===null||R===62?L(R):Ae(R)?(c=C,z(R)):(t.consume(R),C)}function N(R){return R===null?l(R):R===63?(t.consume(R),B):Ae(R)?(c=N,z(R)):(t.consume(R),N)}function B(R){return R===62?L(R):N(R)}function G(R){return Xt(R)?(t.consume(R),D):l(R)}function D(R){return R===45||Ht(R)?(t.consume(R),D):U(R)}function U(R){return Ae(R)?(c=U,z(R)):Ie(R)?(t.consume(R),U):L(R)}function Z(R){return R===45||Ht(R)?(t.consume(R),Z):R===47||R===62||it(R)?P(R):l(R)}function P(R){return R===47?(t.consume(R),L):R===58||R===95||Xt(R)?(t.consume(R),M):Ae(R)?(c=P,z(R)):Ie(R)?(t.consume(R),P):L(R)}function M(R){return R===45||R===46||R===58||R===95||Ht(R)?(t.consume(R),M):q(R)}function q(R){return R===61?(t.consume(R),$):Ae(R)?(c=q,z(R)):Ie(R)?(t.consume(R),q):P(R)}function $(R){return R===null||R===60||R===61||R===62||R===96?l(R):R===34||R===39?(t.consume(R),s=R,J):Ae(R)?(c=$,z(R)):Ie(R)?(t.consume(R),$):(t.consume(R),F)}function J(R){return R===s?(t.consume(R),s=void 0,X):R===null?l(R):Ae(R)?(c=J,z(R)):(t.consume(R),J)}function F(R){return R===null||R===34||R===39||R===60||R===61||R===96?l(R):R===47||R===62||it(R)?P(R):(t.consume(R),F)}function X(R){return R===47||R===62||it(R)?P(R):l(R)}function L(R){return R===62?(t.consume(R),t.exit("htmlTextData"),t.exit("htmlText"),r):l(R)}function z(R){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),I}function I(R){return Ie(R)?$e(t,K,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):K(R)}function K(R){return t.enter("htmlTextData"),c(R)}}const Ud={name:"labelEnd",resolveAll:rE,resolveTo:lE,tokenize:iE},eE={tokenize:aE},tE={tokenize:oE},nE={tokenize:sE};function rE(t){let r=-1;const l=[];for(;++r<t.length;){const a=t[r][1];if(l.push(t[r]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",r+=s}}return t.length!==l.length&&vn(t,0,t.length,l),t}function lE(t,r){let l=t.length,a=0,s,u,c,d;for(;l--;)if(s=t[l][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[l][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[l][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=l,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=l);const p={type:t[u][1].type==="labelLink"?"link":"image",start:{...t[u][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[u][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[u+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",p,r],["enter",h,r]],d=Ln(d,t.slice(u+1,u+a+3)),d=Ln(d,[["enter",y,r]]),d=Ln(d,Hs(r.parser.constructs.insideSpan.null,t.slice(u+a+4,c-3),r)),d=Ln(d,[["exit",y,r],t[c-2],t[c-1],["exit",h,r]]),d=Ln(d,t.slice(c+1)),d=Ln(d,[["exit",p,r]]),vn(t,u,t.length,d),t}function iE(t,r,l){const a=this;let s=a.events.length,u,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){u=a.events[s][1];break}return d;function d(x){return u?u._inactive?m(x):(c=a.parser.defined.includes(Fn(a.sliceSerialize({start:u.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(x),t.exit("labelMarker"),t.exit("labelEnd"),p):l(x)}function p(x){return x===40?t.attempt(eE,y,c?y:m)(x):x===91?t.attempt(tE,y,c?h:m)(x):c?y(x):m(x)}function h(x){return t.attempt(nE,y,m)(x)}function y(x){return r(x)}function m(x){return u._balanced=!0,l(x)}}function aE(t,r,l){return a;function a(m){return t.enter("resource"),t.enter("resourceMarker"),t.consume(m),t.exit("resourceMarker"),s}function s(m){return it(m)?La(t,u)(m):u(m)}function u(m){return m===41?y(m):Ox(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function c(m){return it(m)?La(t,p)(m):y(m)}function d(m){return l(m)}function p(m){return m===34||m===39||m===40?zx(t,h,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):y(m)}function h(m){return it(m)?La(t,y)(m):y(m)}function y(m){return m===41?(t.enter("resourceMarker"),t.consume(m),t.exit("resourceMarker"),t.exit("resource"),r):l(m)}}function oE(t,r,l){const a=this;return s;function s(d){return Mx.call(a,t,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return a.parser.defined.includes(Fn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?r(d):l(d)}function c(d){return l(d)}}function sE(t,r,l){return a;function a(u){return t.enter("reference"),t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),s}function s(u){return u===93?(t.enter("referenceMarker"),t.consume(u),t.exit("referenceMarker"),t.exit("reference"),r):l(u)}}const uE={name:"labelStartImage",resolveAll:Ud.resolveAll,tokenize:cE};function cE(t,r,l){const a=this;return s;function s(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),u}function u(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):l(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(d):r(d)}}const fE={name:"labelStartLink",resolveAll:Ud.resolveAll,tokenize:dE};function dE(t,r,l){const a=this;return s;function s(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 a.parser.constructs?l(c):r(c)}}const Af={name:"lineEnding",tokenize:hE};function hE(t,r){return l;function l(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),$e(t,r,"linePrefix")}}const ys={name:"thematicBreak",tokenize:pE};function pE(t,r,l){let a=0,s;return u;function u(h){return t.enter("thematicBreak"),c(h)}function c(h){return s=h,d(h)}function d(h){return h===s?(t.enter("thematicBreakSequence"),p(h)):a>=3&&(h===null||Ae(h))?(t.exit("thematicBreak"),r(h)):l(h)}function p(h){return h===s?(t.consume(h),a++,p):(t.exit("thematicBreakSequence"),Ie(h)?$e(t,d,"whitespace")(h):d(h))}}const nn={continuation:{tokenize:bE},exit:vE,name:"list",tokenize:yE},gE={partial:!0,tokenize:wE},mE={partial:!0,tokenize:xE};function yE(t,r,l){const a=this,s=a.events[a.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(b){const w=a.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||b===a.containerState.marker:id(b)){if(a.containerState.type||(a.containerState.type=w,t.enter(w,{_container:!0})),w==="listUnordered")return t.enter("listItemPrefix"),b===42||b===45?t.check(ys,l,h)(b):h(b);if(!a.interrupt||b===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(b)}return l(b)}function p(b){return id(b)&&++c<10?(t.consume(b),p):(!a.interrupt||c<2)&&(a.containerState.marker?b===a.containerState.marker:b===41||b===46)?(t.exit("listItemValue"),h(b)):l(b)}function h(b){return t.enter("listItemMarker"),t.consume(b),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||b,t.check(Ua,a.interrupt?l:y,t.attempt(gE,x,m))}function y(b){return a.containerState.initialBlankLine=!0,u++,x(b)}function m(b){return Ie(b)?(t.enter("listItemPrefixWhitespace"),t.consume(b),t.exit("listItemPrefixWhitespace"),x):l(b)}function x(b){return a.containerState.size=u+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(b)}}function bE(t,r,l){const a=this;return a.containerState._closeFlow=void 0,t.check(Ua,s,u);function s(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,$e(t,r,"listItemIndent",a.containerState.size+1)(d)}function u(d){return a.containerState.furtherBlankLines||!Ie(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(mE,r,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,$e(t,t.attempt(nn,r,l),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function xE(t,r,l){const a=this;return $e(t,s,"listItemIndent",a.containerState.size+1);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?r(u):l(u)}}function vE(t){t.exit(this.containerState.type)}function wE(t,r,l){const a=this;return $e(t,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const c=a.events[a.events.length-1];return!Ie(u)&&c&&c[1].type==="listItemPrefixWhitespace"?r(u):l(u)}}const Cy={name:"setextUnderline",resolveTo:SE,tokenize:kE};function SE(t,r){let l=t.length,a,s,u;for(;l--;)if(t[l][0]==="enter"){if(t[l][1].type==="content"){a=l;break}t[l][1].type==="paragraph"&&(s=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[a][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",u?(t.splice(s,0,["enter",c,r]),t.splice(u+1,0,["exit",t[a][1],r]),t[a][1].end={...t[u][1].end}):t[a][1]=c,t.push(["exit",c,r]),t}function kE(t,r,l){const a=this;let s;return u;function u(h){let y=a.events.length,m;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){m=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||m)?(t.enter("setextHeadingLine"),s=h,c(h)):l(h)}function c(h){return t.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===s?(t.consume(h),d):(t.exit("setextHeadingLineSequence"),Ie(h)?$e(t,p,"lineSuffix")(h):p(h))}function p(h){return h===null||Ae(h)?(t.exit("setextHeadingLine"),r(h)):l(h)}}const EE={tokenize:CE};function CE(t){const r=this,l=t.attempt(Ua,a,t.attempt(this.parser.constructs.flowInitial,s,$e(t,t.attempt(this.parser.constructs.flow,s,t.attempt(_k,s)),"linePrefix")));return l;function a(u){if(u===null){t.consume(u);return}return t.enter("lineEndingBlank"),t.consume(u),t.exit("lineEndingBlank"),r.currentConstruct=void 0,l}function s(u){if(u===null){t.consume(u);return}return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),r.currentConstruct=void 0,l}}const AE={resolveAll:Fx()},TE=Bx("string"),NE=Bx("text");function Bx(t){return{resolveAll:Fx(t==="text"?RE:void 0),tokenize:r};function r(l){const a=this,s=this.parser.constructs[t],u=l.attempt(s,c,d);return c;function c(y){return h(y)?u(y):d(y)}function d(y){if(y===null){l.consume(y);return}return l.enter("data"),l.consume(y),p}function p(y){return h(y)?(l.exit("data"),u(y)):(l.consume(y),p)}function h(y){if(y===null)return!0;const m=s[y];let x=-1;if(m)for(;++x<m.length;){const b=m[x];if(!b.previous||b.previous.call(a,a.previous))return!0}return!1}}}function Fx(t){return r;function r(l,a){let s=-1,u;for(;++s<=l.length;)u===void 0?l[s]&&l[s][1].type==="data"&&(u=s,s++):(!l[s]||l[s][1].type!=="data")&&(s!==u+2&&(l[u][1].end=l[s-1][1].end,l.splice(u+2,s-u-2),s=u+2),u=void 0);return t?t(l,a):l}}function RE(t,r){let l=0;for(;++l<=t.length;)if((l===t.length||t[l][1].type==="lineEnding")&&t[l-1][1].type==="data"){const a=t[l-1][1],s=r.sliceStream(a);let u=s.length,c=-1,d=0,p;for(;u--;){const h=s[u];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(h===-2)p=!0,d++;else if(h!==-1){u++;break}}if(r._contentTypeTextTrailing&&l===t.length&&(d=0),d){const h={type:l===t.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...h.start},a.start.offset===a.end.offset?Object.assign(a,h):(t.splice(l,0,["enter",h,r],["exit",h,r]),l+=2)}l++}return t}const _E={42:nn,43:nn,45:nn,48:nn,49:nn,50:nn,51:nn,52:nn,53:nn,54:nn,55:nn,56:nn,57:nn,62:_x},LE={91:Mk},jE={[-2]:Cf,[-1]:Cf,32:Cf},DE={35:Hk,42:ys,45:[Cy,ys],60:$k,61:Cy,95:ys,96:ky,126:ky},OE={38:jx,92:Lx},ME={[-5]:Af,[-4]:Af,[-3]:Af,33:uE,38:jx,42:ad,60:[fk,Jk],91:fE,92:[Ik,Lx],93:Ud,95:ad,96:Ek},zE={null:[ad,AE]},BE={null:[42,95]},FE={null:[]},IE=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:BE,contentInitial:LE,disable:FE,document:_E,flow:DE,flowInitial:jE,insideSpan:zE,string:OE,text:ME},Symbol.toStringTag,{value:"Module"}));function UE(t,r,l){let a={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const s={},u=[];let c=[],d=[];const p={attempt:U(G),check:U(D),consume:C,enter:N,exit:B,interrupt:U(D,{interrupt:!0})},h={code:null,containerState:{},defineSkip:k,events:[],now:w,parser:t,previous:null,sliceSerialize:x,sliceStream:b,write:m};let y=r.tokenize.call(h,p);return r.resolveAll&&u.push(r),h;function m(q){return c=Ln(c,q),A(),c[c.length-1]!==null?[]:(Z(r,0),h.events=Hs(u,h.events,h),h.events)}function x(q,$){return qE(b(q),$)}function b(q){return HE(c,q)}function w(){const{_bufferIndex:q,_index:$,line:J,column:F,offset:X}=a;return{_bufferIndex:q,_index:$,line:J,column:F,offset:X}}function k(q){s[q.line]=q.column,M()}function A(){let q;for(;a._index<c.length;){const $=c[a._index];if(typeof $=="string")for(q=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===q&&a._bufferIndex<$.length;)E($.charCodeAt(a._bufferIndex));else E($)}}function E(q){y=y(q)}function C(q){Ae(q)?(a.line++,a.column=1,a.offset+=q===-3?2:1,M()):q!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),h.previous=q}function N(q,$){const J=$||{};return J.type=q,J.start=w(),h.events.push(["enter",J,h]),d.push(J),J}function B(q){const $=d.pop();return $.end=w(),h.events.push(["exit",$,h]),$}function G(q,$){Z(q,$.from)}function D(q,$){$.restore()}function U(q,$){return J;function J(F,X,L){let z,I,K,R;return Array.isArray(F)?V(F):"tokenize"in F?V([F]):O(F);function O(fe){return de;function de(ge){const he=ge!==null&&fe[ge],be=ge!==null&&fe.null,Re=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(be)?be:be?[be]:[]];return V(Re)(ge)}}function V(fe){return z=fe,I=0,fe.length===0?L:T(fe[I])}function T(fe){return de;function de(ge){return R=P(),K=fe,fe.partial||(h.currentConstruct=fe),fe.name&&h.parser.constructs.disable.null.includes(fe.name)?ce():fe.tokenize.call($?Object.assign(Object.create(h),$):h,p,le,ce)(ge)}}function le(fe){return q(K,R),X}function ce(fe){return R.restore(),++I<z.length?T(z[I]):L}}}function Z(q,$){q.resolveAll&&!u.includes(q)&&u.push(q),q.resolve&&vn(h.events,$,h.events.length-$,q.resolve(h.events.slice($),h)),q.resolveTo&&(h.events=q.resolveTo(h.events,h))}function P(){const q=w(),$=h.previous,J=h.currentConstruct,F=h.events.length,X=Array.from(d);return{from:F,restore:L};function L(){a=q,h.previous=$,h.currentConstruct=J,h.events.length=F,d=X,M()}}function M(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function HE(t,r){const l=r.start._index,a=r.start._bufferIndex,s=r.end._index,u=r.end._bufferIndex;let c;if(l===s)c=[t[l].slice(a,u)];else{if(c=t.slice(l,s),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}u>0&&c.push(t[s].slice(0,u))}return c}function qE(t,r){let l=-1;const a=[];let s;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=`
|
|
17
|
-
`;break}case-3:{c=`\r
|
|
18
|
-
`;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&s)continue;c=" ";break}default:c=String.fromCharCode(u)}s=u===-2,a.push(c)}return a.join("")}function VE(t){const a={constructs:Nx([IE,...(t||{}).extensions||[]]),content:s(lk),defined:[],document:s(ak),flow:s(EE),lazy:{},string:s(TE),text:s(NE)};return a;function s(u){return c;function c(d){return UE(a,u,d)}}}function PE(t){for(;!Dx(t););return t}const Ay=/[\0\t\n\r]/g;function $E(){let t=1,r="",l=!0,a;return s;function s(u,c,d){const p=[];let h,y,m,x,b;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),m=0,r="",l&&(u.charCodeAt(0)===65279&&m++,l=void 0);m<u.length;){if(Ay.lastIndex=m,h=Ay.exec(u),x=h&&h.index!==void 0?h.index:u.length,b=u.charCodeAt(x),!h){r=u.slice(m);break}if(b===10&&m===x&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),m<x&&(p.push(u.slice(m,x)),t+=x-m),b){case 0:{p.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,p.push(-2);t++<y;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:a=!0,t=1}m=x+1}return d&&(a&&p.push(-5),r&&p.push(r),p.push(null)),p}}const GE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function YE(t){return t.replace(GE,XE)}function XE(t,r,l){if(r)return r;if(l.charCodeAt(0)===35){const s=l.charCodeAt(1),u=s===120||s===88;return Rx(l.slice(u?2:1),u?16:10)}return Id(l)||t}const Ix={}.hasOwnProperty;function ZE(t,r,l){return typeof r!="string"&&(l=r,r=void 0),QE(l)(PE(VE(l).document().write($E()(t,r,!0))))}function QE(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(ht),autolinkProtocol:P,autolinkEmail:P,atxHeading:u(Qe),blockQuote:u(be),characterEscape:P,characterReference:P,codeFenced:u(Re),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Re,c),codeText:u(xe,c),codeTextData:P,data:P,codeFlowValue:P,definition:u(Le),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Te),hardBreakEscape:u(Me),hardBreakTrailing:u(Me),htmlFlow:u(Ue,c),htmlFlowData:P,htmlText:u(Ue,c),htmlTextData:P,image:u(_t),label:c,link:u(ht),listItem:u(Vt),listItemValue:x,listOrdered:u(pt,m),listUnordered:u(pt),paragraph:u(Pt),reference:T,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Qe),strong:u($t),thematicBreak:u(vr)},exit:{atxHeading:p(),atxHeadingSequence:G,autolink:p(),autolinkEmail:he,autolinkProtocol:ge,blockQuote:p(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:fe,characterReference:de,codeFenced:p(A),codeFencedFence:k,codeFencedFenceInfo:b,codeFencedFenceMeta:w,codeFlowValue:M,codeIndented:p(E),codeText:p(X),codeTextData:M,data:M,definition:p(),definitionDestinationString:B,definitionLabelString:C,definitionTitleString:N,emphasis:p(),hardBreakEscape:p($),hardBreakTrailing:p($),htmlFlow:p(J),htmlFlowData:M,htmlText:p(F),htmlTextData:M,image:p(z),label:K,labelText:I,lineEnding:q,link:p(L),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:le,resourceDestinationString:R,resourceTitleString:O,resource:V,setextHeading:p(Z),setextHeadingLineSequence:U,setextHeadingText:D,strong:p(),thematicBreak:p()}};Ux(r,(t||{}).mdastExtensions||[]);const l={};return a;function a(ae){let me={type:"root",children:[]};const Ce={stack:[me],tokenStack:[],config:r,enter:d,exit:h,buffer:c,resume:y,data:l},ze=[];let Pe=-1;for(;++Pe<ae.length;)if(ae[Pe][1].type==="listOrdered"||ae[Pe][1].type==="listUnordered")if(ae[Pe][0]==="enter")ze.push(Pe);else{const Lt=ze.pop();Pe=s(ae,Lt,Pe)}for(Pe=-1;++Pe<ae.length;){const Lt=r[ae[Pe][0]];Ix.call(Lt,ae[Pe][1].type)&&Lt[ae[Pe][1].type].call(Object.assign({sliceSerialize:ae[Pe][2].sliceSerialize},Ce),ae[Pe][1])}if(Ce.tokenStack.length>0){const Lt=Ce.tokenStack[Ce.tokenStack.length-1];(Lt[1]||Ty).call(Ce,void 0,Lt[0])}for(me.position={start:Gr(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:Gr(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe<r.transforms.length;)me=r.transforms[Pe](me)||me;return me}function s(ae,me,Ce){let ze=me-1,Pe=-1,Lt=!1,sn,jt,gt,Tt;for(;++ze<=Ce;){const Ke=ae[ze];switch(Ke[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ke[0]==="enter"?Pe++:Pe--,Tt=void 0;break}case"lineEndingBlank":{Ke[0]==="enter"&&(sn&&!Tt&&!Pe&&!gt&&(gt=ze),Tt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tt=void 0}if(!Pe&&Ke[0]==="enter"&&Ke[1].type==="listItemPrefix"||Pe===-1&&Ke[0]==="exit"&&(Ke[1].type==="listUnordered"||Ke[1].type==="listOrdered")){if(sn){let On=ze;for(jt=void 0;On--;){const Zt=ae[On];if(Zt[1].type==="lineEnding"||Zt[1].type==="lineEndingBlank"){if(Zt[0]==="exit")continue;jt&&(ae[jt][1].type="lineEndingBlank",Lt=!0),Zt[1].type="lineEnding",jt=On}else if(!(Zt[1].type==="linePrefix"||Zt[1].type==="blockQuotePrefix"||Zt[1].type==="blockQuotePrefixWhitespace"||Zt[1].type==="blockQuoteMarker"||Zt[1].type==="listItemIndent"))break}gt&&(!jt||gt<jt)&&(sn._spread=!0),sn.end=Object.assign({},jt?ae[jt][1].start:Ke[1].end),ae.splice(jt||ze,0,["exit",sn,Ke[2]]),ze++,Ce++}if(Ke[1].type==="listItemPrefix"){const On={type:"listItem",_spread:!1,start:Object.assign({},Ke[1].start),end:void 0};sn=On,ae.splice(ze,0,["enter",On,Ke[2]]),ze++,Ce++,gt=void 0,Tt=!0}}}return ae[me][1]._spread=Lt,Ce}function u(ae,me){return Ce;function Ce(ze){d.call(this,ae(ze),ze),me&&me.call(this,ze)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ae,me,Ce){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([me,Ce||void 0]),ae.position={start:Gr(me.start),end:void 0}}function p(ae){return me;function me(Ce){ae&&ae.call(this,Ce),h.call(this,Ce)}}function h(ae,me){const Ce=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==ae.type&&(me?me.call(this,ae,ze[0]):(ze[1]||Ty).call(this,ae,ze[0]));else throw new Error("Cannot close `"+ae.type+"` ("+_a({start:ae.start,end:ae.end})+"): it’s not open");Ce.position.end=Gr(ae.end)}function y(){return Fd(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function x(ae){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.lang=ae}function w(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.meta=ae}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae.replace(/(\r?\n|\r)$/g,"")}function C(ae){const me=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=me,Ce.identifier=Fn(this.sliceSerialize(ae)).toLowerCase()}function N(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.title=ae}function B(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.url=ae}function G(ae){const me=this.stack[this.stack.length-1];if(!me.depth){const Ce=this.sliceSerialize(ae).length;me.depth=Ce}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function U(ae){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function Z(){this.data.setextHeadingSlurpLineEnding=void 0}function P(ae){const Ce=this.stack[this.stack.length-1].children;let ze=Ce[Ce.length-1];(!ze||ze.type!=="text")&&(ze=at(),ze.position={start:Gr(ae.start),end:void 0},Ce.push(ze)),this.stack.push(ze)}function M(ae){const me=this.stack.pop();me.value+=this.sliceSerialize(ae),me.position.end=Gr(ae.end)}function q(ae){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=me.children[me.children.length-1];Ce.position.end=Gr(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(me.type)&&(P.call(this,ae),M.call(this,ae))}function $(){this.data.atHardBreak=!0}function J(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae}function F(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae}function X(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae}function L(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=me,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function z(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=me,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function I(ae){const me=this.sliceSerialize(ae),Ce=this.stack[this.stack.length-2];Ce.label=YE(me),Ce.identifier=Fn(me).toLowerCase()}function K(){const ae=this.stack[this.stack.length-1],me=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const ze=ae.children;Ce.children=ze}else Ce.alt=me}function R(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.url=ae}function O(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.title=ae}function V(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function le(ae){const me=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=me,Ce.identifier=Fn(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function ce(ae){this.data.characterReferenceType=ae.type}function fe(ae){const me=this.sliceSerialize(ae),Ce=this.data.characterReferenceType;let ze;Ce?(ze=Rx(me,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=Id(me);const Pe=this.stack[this.stack.length-1];Pe.value+=ze}function de(ae){const me=this.stack.pop();me.position.end=Gr(ae.end)}function ge(ae){M.call(this,ae);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(ae)}function he(ae){M.call(this,ae);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(ae)}function be(){return{type:"blockquote",children:[]}}function Re(){return{type:"code",lang:null,meta:null,value:""}}function xe(){return{type:"inlineCode",value:""}}function Le(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Te(){return{type:"emphasis",children:[]}}function Qe(){return{type:"heading",depth:0,children:[]}}function Me(){return{type:"break"}}function Ue(){return{type:"html",value:""}}function _t(){return{type:"image",title:null,url:"",alt:null}}function ht(){return{type:"link",title:null,url:"",children:[]}}function pt(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function Vt(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function Pt(){return{type:"paragraph",children:[]}}function $t(){return{type:"strong",children:[]}}function at(){return{type:"text",value:""}}function vr(){return{type:"thematicBreak"}}}function Gr(t){return{line:t.line,column:t.column,offset:t.offset}}function Ux(t,r){let l=-1;for(;++l<r.length;){const a=r[l];Array.isArray(a)?Ux(t,a):KE(t,a)}}function KE(t,r){let l;for(l in r)if(Ix.call(r,l))switch(l){case"canContainEols":{const a=r[l];a&&t[l].push(...a);break}case"transforms":{const a=r[l];a&&t[l].push(...a);break}case"enter":case"exit":{const a=r[l];a&&Object.assign(t[l],a);break}}}function Ty(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+_a({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+_a({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+_a({start:r.start,end:r.end})+") is still open")}function JE(t){const r=this;r.parser=l;function l(a){return ZE(a,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function WE(t,r){const l={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(r),!0)};return t.patch(r,l),t.applyData(r,l)}function eC(t,r){const l={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,l),[t.applyData(r,l),{type:"text",value:`
|
|
19
|
-
`}]}function tC(t,r){const l=r.value?r.value+`
|
|
20
|
-
`:"",a={},s=r.lang?r.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:l}]};return r.meta&&(u.data={meta:r.meta}),t.patch(r,u),u=t.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},t.patch(r,u),u}function nC(t,r){const l={type:"element",tagName:"del",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function rC(t,r){const l={type:"element",tagName:"em",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function lC(t,r){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(r.identifier).toUpperCase(),s=_i(a.toLowerCase()),u=t.footnoteOrder.indexOf(a);let c,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),c=t.footnoteOrder.length):c=u+1,d+=1,t.footnoteCounts.set(a,d);const p={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+s,id:l+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(r,p);const h={type:"element",tagName:"sup",properties:{},children:[p]};return t.patch(r,h),t.applyData(r,h)}function iC(t,r){const l={type:"element",tagName:"h"+r.depth,properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function aC(t,r){if(t.options.allowDangerousHtml){const l={type:"raw",value:r.value};return t.patch(r,l),t.applyData(r,l)}}function Hx(t,r){const l=r.referenceType;let a="]";if(l==="collapsed"?a+="[]":l==="full"&&(a+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+a}];const s=t.all(r),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function oC(t,r){const l=String(r.identifier).toUpperCase(),a=t.definitionById.get(l);if(!a)return Hx(t,r);const s={src:_i(a.url||""),alt:r.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"img",properties:s,children:[]};return t.patch(r,u),t.applyData(r,u)}function sC(t,r){const l={src:_i(r.url)};r.alt!==null&&r.alt!==void 0&&(l.alt=r.alt),r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"img",properties:l,children:[]};return t.patch(r,a),t.applyData(r,a)}function uC(t,r){const l={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};t.patch(r,l);const a={type:"element",tagName:"code",properties:{},children:[l]};return t.patch(r,a),t.applyData(r,a)}function cC(t,r){const l=String(r.identifier).toUpperCase(),a=t.definitionById.get(l);if(!a)return Hx(t,r);const s={href:_i(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"a",properties:s,children:t.all(r)};return t.patch(r,u),t.applyData(r,u)}function fC(t,r){const l={href:_i(r.url)};r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"a",properties:l,children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function dC(t,r,l){const a=t.all(r),s=l?hC(l):qx(r),u={},c=[];if(typeof r.checked=="boolean"){const y=a[0];let m;y&&y.type==="element"&&y.tagName==="p"?m=y:(m={type:"element",tagName:"p",properties:{},children:[]},a.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const y=a[d];(s||d!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
|
|
21
|
-
`}),y.type==="element"&&y.tagName==="p"&&!s?c.push(...y.children):c.push(y)}const p=a[a.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
|
|
22
|
-
`});const h={type:"element",tagName:"li",properties:u,children:c};return t.patch(r,h),t.applyData(r,h)}function hC(t){let r=!1;if(t.type==="list"){r=t.spread||!1;const l=t.children;let a=-1;for(;!r&&++a<l.length;)r=qx(l[a])}return r}function qx(t){const r=t.spread;return r??t.children.length>1}function pC(t,r){const l={},a=t.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(l.start=r.start);++s<a.length;){const c=a[s];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:r.ordered?"ol":"ul",properties:l,children:t.wrap(a,!0)};return t.patch(r,u),t.applyData(r,u)}function gC(t,r){const l={type:"element",tagName:"p",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function mC(t,r){const l={type:"root",children:t.wrap(t.all(r))};return t.patch(r,l),t.applyData(r,l)}function yC(t,r){const l={type:"element",tagName:"strong",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}function bC(t,r){const l=t.all(r),a=l.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(r.children[0],c),s.push(c)}if(l.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(l,!0)},d=Od(r.children[1]),p=wx(r.children[r.children.length-1]);d&&p&&(c.position={start:d,end:p}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(r,u),t.applyData(r,u)}function xC(t,r,l){const a=l?l.children:void 0,u=(a?a.indexOf(r):1)===0?"th":"td",c=l&&l.type==="table"?l.align:void 0,d=c?c.length:r.children.length;let p=-1;const h=[];for(;++p<d;){const m=r.children[p],x={},b=c?c[p]:void 0;b&&(x.align=b);let w={type:"element",tagName:u,properties:x,children:[]};m&&(w.children=t.all(m),t.patch(m,w),w=t.applyData(m,w)),h.push(w)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(r,y),t.applyData(r,y)}function vC(t,r){const l={type:"element",tagName:"td",properties:{},children:t.all(r)};return t.patch(r,l),t.applyData(r,l)}const Ny=9,Ry=32;function wC(t){const r=String(t),l=/\r?\n|\r/g;let a=l.exec(r),s=0;const u=[];for(;a;)u.push(_y(r.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=l.exec(r);return u.push(_y(r.slice(s),s>0,!1)),u.join("")}function _y(t,r,l){let a=0,s=t.length;if(r){let u=t.codePointAt(a);for(;u===Ny||u===Ry;)a++,u=t.codePointAt(a)}if(l){let u=t.codePointAt(s-1);for(;u===Ny||u===Ry;)s--,u=t.codePointAt(s-1)}return s>a?t.slice(a,s):""}function SC(t,r){const l={type:"text",value:wC(String(r.value))};return t.patch(r,l),t.applyData(r,l)}function kC(t,r){const l={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(r,l),t.applyData(r,l)}const EC={blockquote:WE,break:eC,code:tC,delete:nC,emphasis:rC,footnoteReference:lC,heading:iC,html:aC,imageReference:oC,image:sC,inlineCode:uC,linkReference:cC,link:fC,listItem:dC,list:pC,paragraph:gC,root:mC,strong:yC,table:bC,tableCell:vC,tableRow:xC,text:SC,thematicBreak:kC,toml:os,yaml:os,definition:os,footnoteDefinition:os};function os(){}const Vx=-1,qs=0,ja=1,vs=2,Hd=3,qd=4,Vd=5,Pd=6,Px=7,$x=8,Ly=typeof self=="object"?self:globalThis,CC=(t,r)=>{const l=(s,u)=>(t.set(u,s),s),a=s=>{if(t.has(s))return t.get(s);const[u,c]=r[s];switch(u){case qs:case Vx:return l(c,s);case ja:{const d=l([],s);for(const p of c)d.push(a(p));return d}case vs:{const d=l({},s);for(const[p,h]of c)d[a(p)]=a(h);return d}case Hd:return l(new Date(c),s);case qd:{const{source:d,flags:p}=c;return l(new RegExp(d,p),s)}case Vd:{const d=l(new Map,s);for(const[p,h]of c)d.set(a(p),a(h));return d}case Pd:{const d=l(new Set,s);for(const p of c)d.add(a(p));return d}case Px:{const{name:d,message:p}=c;return l(new Ly[d](p),s)}case $x:return l(BigInt(c),s);case"BigInt":return l(Object(BigInt(c)),s);case"ArrayBuffer":return l(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return l(new DataView(d),c)}}return l(new Ly[u](c),s)};return a},jy=t=>CC(new Map,t)(0),xi="",{toString:AC}={},{keys:TC}=Object,Ta=t=>{const r=typeof t;if(r!=="object"||!t)return[qs,r];const l=AC.call(t).slice(8,-1);switch(l){case"Array":return[ja,xi];case"Object":return[vs,xi];case"Date":return[Hd,xi];case"RegExp":return[qd,xi];case"Map":return[Vd,xi];case"Set":return[Pd,xi];case"DataView":return[ja,l]}return l.includes("Array")?[ja,l]:l.includes("Error")?[Px,l]:[vs,l]},ss=([t,r])=>t===qs&&(r==="function"||r==="symbol"),NC=(t,r,l,a)=>{const s=(c,d)=>{const p=a.push(c)-1;return l.set(d,p),p},u=c=>{if(l.has(c))return l.get(c);let[d,p]=Ta(c);switch(d){case qs:{let y=c;switch(p){case"bigint":d=$x,y=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return s([Vx],c)}return s([d,y],c)}case ja:{if(p){let x=c;return p==="DataView"?x=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(x=new Uint8Array(c)),s([p,[...x]],c)}const y=[],m=s([d,y],c);for(const x of c)y.push(u(x));return m}case vs:{if(p)switch(p){case"BigInt":return s([p,c.toString()],c);case"Boolean":case"Number":case"String":return s([p,c.valueOf()],c)}if(r&&"toJSON"in c)return u(c.toJSON());const y=[],m=s([d,y],c);for(const x of TC(c))(t||!ss(Ta(c[x])))&&y.push([u(x),u(c[x])]);return m}case Hd:return s([d,c.toISOString()],c);case qd:{const{source:y,flags:m}=c;return s([d,{source:y,flags:m}],c)}case Vd:{const y=[],m=s([d,y],c);for(const[x,b]of c)(t||!(ss(Ta(x))||ss(Ta(b))))&&y.push([u(x),u(b)]);return m}case Pd:{const y=[],m=s([d,y],c);for(const x of c)(t||!ss(Ta(x)))&&y.push(u(x));return m}}const{message:h}=c;return s([d,{name:p,message:h}],c)};return u},Dy=(t,{json:r,lossy:l}={})=>{const a=[];return NC(!(r||l),!!r,new Map,a)(t),a},ws=typeof structuredClone=="function"?(t,r)=>r&&("json"in r||"lossy"in r)?jy(Dy(t,r)):structuredClone(t):(t,r)=>jy(Dy(t,r));function RC(t,r){const l=[{type:"text",value:"↩"}];return r>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),l}function _C(t,r){return"Back to reference "+(t+1)+(r>1?"-"+r:"")}function LC(t){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",l=t.options.footnoteBackContent||RC,a=t.options.footnoteBackLabel||_C,s=t.options.footnoteLabel||"Footnotes",u=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[p]);if(!h)continue;const y=t.all(h),m=String(h.identifier).toUpperCase(),x=_i(m.toLowerCase());let b=0;const w=[],k=t.footnoteCounts.get(m);for(;k!==void 0&&++b<=k;){w.length>0&&w.push({type:"text",value:" "});let C=typeof l=="string"?l:l(p,b);typeof C=="string"&&(C={type:"text",value:C}),w.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,b),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const A=y[y.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(...w)}else y.push(...w);const E={type:"element",tagName:"li",properties:{id:r+"fn-"+x},children:t.wrap(y,!0)};t.patch(h,E),d.push(E)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...ws(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
23
|
-
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
|
|
24
|
-
`}]}}const Vs=(function(t){if(t==null)return MC;if(typeof t=="function")return Ps(t);if(typeof t=="object")return Array.isArray(t)?jC(t):DC(t);if(typeof t=="string")return OC(t);throw new Error("Expected function, string, or object as test")});function jC(t){const r=[];let l=-1;for(;++l<t.length;)r[l]=Vs(t[l]);return Ps(a);function a(...s){let u=-1;for(;++u<r.length;)if(r[u].apply(this,s))return!0;return!1}}function DC(t){const r=t;return Ps(l);function l(a){const s=a;let u;for(u in t)if(s[u]!==r[u])return!1;return!0}}function OC(t){return Ps(r);function r(l){return l&&l.type===t}}function Ps(t){return r;function r(l,a,s){return!!(zC(l)&&t.call(this,l,typeof a=="number"?a:void 0,s||void 0))}}function MC(){return!0}function zC(t){return t!==null&&typeof t=="object"&&"type"in t}const Gx=[],BC=!0,od=!1,FC="skip";function Yx(t,r,l,a){let s;typeof r=="function"&&typeof l!="function"?(a=l,l=r):s=r;const u=Vs(s),c=a?-1:1;d(t,void 0,[])();function d(p,h,y){const m=p&&typeof p=="object"?p:{};if(typeof m.type=="string"){const b=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(p.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=Gx,w,k,A;if((!r||u(p,h,y[y.length-1]||void 0))&&(b=IC(l(p,y)),b[0]===od))return b;if("children"in p&&p.children){const E=p;if(E.children&&b[0]!==FC)for(k=(a?E.children.length:-1)+c,A=y.concat(E);k>-1&&k<E.children.length;){const C=E.children[k];if(w=d(C,k,A)(),w[0]===od)return w;k=typeof w[1]=="number"?w[1]:k+c}}return b}}}function IC(t){return Array.isArray(t)?t:typeof t=="number"?[BC,t]:t==null?Gx:[t]}function $d(t,r,l,a){let s,u,c;typeof r=="function"&&typeof l!="function"?(u=void 0,c=r,s=l):(u=r,c=l,s=a),Yx(t,u,d,s);function d(p,h){const y=h[h.length-1],m=y?y.children.indexOf(p):void 0;return c(p,m,y)}}const sd={}.hasOwnProperty,UC={};function HC(t,r){const l=r||UC,a=new Map,s=new Map,u=new Map,c={...EC,...l.handlers},d={all:h,applyData:VC,definitionById:a,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:p,options:l,patch:qC,wrap:$C};return $d(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const m=y.type==="definition"?a:s,x=String(y.identifier).toUpperCase();m.has(x)||m.set(x,y)}}),d;function p(y,m){const x=y.type,b=d.handlers[x];if(sd.call(d.handlers,x)&&b)return b(d,y,m);if(d.options.passThrough&&d.options.passThrough.includes(x)){if("children"in y){const{children:k,...A}=y,E=ws(A);return E.children=d.all(y),E}return ws(y)}return(d.options.unknownHandler||PC)(d,y,m)}function h(y){const m=[];if("children"in y){const x=y.children;let b=-1;for(;++b<x.length;){const w=d.one(x[b],y);if(w){if(b&&x[b-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Oy(w.value)),!Array.isArray(w)&&w.type==="element")){const k=w.children[0];k&&k.type==="text"&&(k.value=Oy(k.value))}Array.isArray(w)?m.push(...w):m.push(w)}}}return m}}function qC(t,r){t.position&&(r.position=_2(t))}function VC(t,r){let l=r;if(t&&t.data){const a=t.data.hName,s=t.data.hChildren,u=t.data.hProperties;if(typeof a=="string")if(l.type==="element")l.tagName=a;else{const c="children"in l?l.children:[l];l={type:"element",tagName:a,properties:{},children:c}}l.type==="element"&&u&&Object.assign(l.properties,ws(u)),"children"in l&&l.children&&s!==null&&s!==void 0&&(l.children=s)}return l}function PC(t,r){const l=r.data||{},a="value"in r&&!(sd.call(l,"hProperties")||sd.call(l,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function $C(t,r){const l=[];let a=-1;for(r&&l.push({type:"text",value:`
|
|
25
|
-
`});++a<t.length;)a&&l.push({type:"text",value:`
|
|
26
|
-
`}),l.push(t[a]);return r&&t.length>0&&l.push({type:"text",value:`
|
|
27
|
-
`}),l}function Oy(t){let r=0,l=t.charCodeAt(r);for(;l===9||l===32;)r++,l=t.charCodeAt(r);return t.slice(r)}function My(t,r){const l=HC(t,r),a=l.one(t,void 0),s=LC(l),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&u.children.push({type:"text",value:`
|
|
28
|
-
`},s),u}function GC(t,r){return t&&"run"in t?async function(l,a){const s=My(l,{file:a,...r});await t.run(s,a)}:function(l,a){return My(l,{file:a,...t||r})}}function zy(t){if(t)throw t}var Tf,By;function YC(){if(By)return Tf;By=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},u=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var y=t.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!y&&!m)return!1;var x;for(x in h);return typeof x>"u"||t.call(h,x)},c=function(h,y){l&&y.name==="__proto__"?l(h,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):h[y.name]=y.newValue},d=function(h,y){if(y==="__proto__")if(t.call(h,y)){if(a)return a(h,y).value}else return;return h[y]};return Tf=function p(){var h,y,m,x,b,w,k=arguments[0],A=1,E=arguments.length,C=!1;for(typeof k=="boolean"&&(C=k,k=arguments[1]||{},A=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});A<E;++A)if(h=arguments[A],h!=null)for(y in h)m=d(k,y),x=d(h,y),k!==x&&(C&&x&&(u(x)||(b=s(x)))?(b?(b=!1,w=m&&s(m)?m:[]):w=m&&u(m)?m:{},c(k,{name:y,newValue:p(C,w,x)})):typeof x<"u"&&c(k,{name:y,newValue:x}));return k},Tf}var XC=YC();const Nf=Bs(XC);function ud(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function ZC(){const t=[],r={run:l,use:a};return r;function l(...s){let u=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...s);function d(p,...h){const y=t[++u];let m=-1;if(p){c(p);return}for(;++m<s.length;)(h[m]===null||h[m]===void 0)&&(h[m]=s[m]);s=h,y?QC(y,d)(...h):c(null,...h)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),r}}function QC(t,r){let l;return a;function a(...c){const d=t.length>c.length;let p;d&&c.push(s);try{p=t.apply(this,c)}catch(h){const y=h;if(d&&l)throw y;return s(y)}d||(p&&p.then&&typeof p.then=="function"?p.then(u,s):p instanceof Error?s(p):u(p))}function s(c,...d){l||(l=!0,r(c,...d))}function u(c){s(null,c)}}const Vn={basename:KC,dirname:JC,extname:WC,join:e3,sep:"/"};function KC(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Ha(t);let l=0,a=-1,s=t.length,u;if(r===void 0||r.length===0||r.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(u){l=s+1;break}}else a<0&&(u=!0,a=s+1);return a<0?"":t.slice(l,a)}if(r===t)return"";let c=-1,d=r.length-1;for(;s--;)if(t.codePointAt(s)===47){if(u){l=s+1;break}}else c<0&&(u=!0,c=s+1),d>-1&&(t.codePointAt(s)===r.codePointAt(d--)?d<0&&(a=s):(d=-1,a=c));return l===a?a=c:a<0&&(a=t.length),t.slice(l,a)}function JC(t){if(Ha(t),t.length===0)return".";let r=-1,l=t.length,a;for(;--l;)if(t.codePointAt(l)===47){if(a){r=l;break}}else a||(a=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function WC(t){Ha(t);let r=t.length,l=-1,a=0,s=-1,u=0,c;for(;r--;){const d=t.codePointAt(r);if(d===47){if(c){a=r+1;break}continue}l<0&&(c=!0,l=r+1),d===46?s<0?s=r:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||l<0||u===0||u===1&&s===l-1&&s===a+1?"":t.slice(s,l)}function e3(...t){let r=-1,l;for(;++r<t.length;)Ha(t[r]),t[r]&&(l=l===void 0?t[r]:l+"/"+t[r]);return l===void 0?".":t3(l)}function t3(t){Ha(t);const r=t.codePointAt(0)===47;let l=n3(t,!r);return l.length===0&&!r&&(l="."),l.length>0&&t.codePointAt(t.length-1)===47&&(l+="/"),r?"/"+l:l}function n3(t,r){let l="",a=0,s=-1,u=0,c=-1,d,p;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(s===c-1||u===1))if(s!==c-1&&u===2){if(l.length<2||a!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(p=l.lastIndexOf("/"),p!==l.length-1){p<0?(l="",a=0):(l=l.slice(0,p),a=l.length-1-l.lastIndexOf("/")),s=c,u=0;continue}}else if(l.length>0){l="",a=0,s=c,u=0;continue}}r&&(l=l.length>0?l+"/..":"..",a=2)}else l.length>0?l+="/"+t.slice(s+1,c):l=t.slice(s+1,c),a=c-s-1;s=c,u=0}else d===46&&u>-1?u++:u=-1}return l}function Ha(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const r3={cwd:l3};function l3(){return"/"}function cd(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function i3(t){if(typeof t=="string")t=new URL(t);else if(!cd(t)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return a3(t)}function a3(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const r=t.pathname;let l=-1;for(;++l<r.length;)if(r.codePointAt(l)===37&&r.codePointAt(l+1)===50){const a=r.codePointAt(l+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const Rf=["history","path","basename","stem","extname","dirname"];class Xx{constructor(r){let l;r?cd(r)?l={path:r}:typeof r=="string"||o3(r)?l={value:r}:l=r:l={},this.cwd="cwd"in l?"":r3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Rf.length;){const u=Rf[a];u in l&&l[u]!==void 0&&l[u]!==null&&(this[u]=u==="history"?[...l[u]]:l[u])}let s;for(s in l)Rf.includes(s)||(this[s]=l[s])}get basename(){return typeof this.path=="string"?Vn.basename(this.path):void 0}set basename(r){Lf(r,"basename"),_f(r,"basename"),this.path=Vn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Vn.dirname(this.path):void 0}set dirname(r){Fy(this.basename,"dirname"),this.path=Vn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Vn.extname(this.path):void 0}set extname(r){if(_f(r,"extname"),Fy(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Vn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){cd(r)&&(r=i3(r)),Lf(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Vn.basename(this.path,this.extname):void 0}set stem(r){Lf(r,"stem"),_f(r,"stem"),this.path=Vn.join(this.dirname||"",r+(this.extname||""))}fail(r,l,a){const s=this.message(r,l,a);throw s.fatal=!0,s}info(r,l,a){const s=this.message(r,l,a);return s.fatal=void 0,s}message(r,l,a){const s=new qt(r,l,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function _f(t,r){if(t&&t.includes(Vn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Vn.sep+"`")}function Lf(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Fy(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function o3(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const s3=(function(t){const a=this.constructor.prototype,s=a[t],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),u3={}.hasOwnProperty;class Gd extends s3{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=ZC()}copy(){const r=new Gd;let l=-1;for(;++l<this.attachers.length;){const a=this.attachers[l];r.use(...a)}return r.data(Nf(!0,{},this.namespace)),r}data(r,l){return typeof r=="string"?arguments.length===2?(Of("data",this.frozen),this.namespace[r]=l,this):u3.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Of("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const s=l.call(r,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const l=us(r),a=this.parser||this.Parser;return jf("parse",a),a(String(l),l)}process(r,l){const a=this;return this.freeze(),jf("process",this.parser||this.Parser),Df("process",this.compiler||this.Compiler),l?s(void 0,l):new Promise(s);function s(u,c){const d=us(r),p=a.parse(d);a.run(p,d,function(y,m,x){if(y||!m||!x)return h(y);const b=m,w=a.stringify(b,x);d3(w)?x.value=w:x.result=w,h(y,x)});function h(y,m){y||!m?c(y):u?u(m):l(void 0,m)}}}processSync(r){let l=!1,a;return this.freeze(),jf("processSync",this.parser||this.Parser),Df("processSync",this.compiler||this.Compiler),this.process(r,s),Uy("processSync","process",l),a;function s(u,c){l=!0,zy(u),a=c}}run(r,l,a){Iy(r),this.freeze();const s=this.transformers;return!a&&typeof l=="function"&&(a=l,l=void 0),a?u(void 0,a):new Promise(u);function u(c,d){const p=us(l);s.run(r,p,h);function h(y,m,x){const b=m||r;y?d(y):c?c(b):a(void 0,b,x)}}}runSync(r,l){let a=!1,s;return this.run(r,l,u),Uy("runSync","run",a),s;function u(c,d){zy(c),s=d,a=!0}}stringify(r,l){this.freeze();const a=us(l),s=this.compiler||this.Compiler;return Df("stringify",s),Iy(r),s(r,a)}use(r,...l){const a=this.attachers,s=this.namespace;if(Of("use",this.frozen),r!=null)if(typeof r=="function")p(r,l);else if(typeof r=="object")Array.isArray(r)?d(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function u(h){if(typeof h=="function")p(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[y,...m]=h;p(y,m)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(s.settings=Nf(!0,s.settings,h.settings))}function d(h){let y=-1;if(h!=null)if(Array.isArray(h))for(;++y<h.length;){const m=h[y];u(m)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function p(h,y){let m=-1,x=-1;for(;++m<a.length;)if(a[m][0]===h){x=m;break}if(x===-1)a.push([h,...y]);else if(y.length>0){let[b,...w]=y;const k=a[x][1];ud(k)&&ud(b)&&(b=Nf(!0,k,b)),a[x]=[h,b,...w]}}}}const c3=new Gd().freeze();function jf(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Df(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Of(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Iy(t){if(!ud(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Uy(t,r,l){if(!l)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function us(t){return f3(t)?t:new Xx(t)}function f3(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function d3(t){return typeof t=="string"||h3(t)}function h3(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const p3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Hy=[],qy={allowDangerousHtml:!0},g3=/^(https?|ircs?|mailto|xmpp)$/i,m3=[{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 Zx(t){const r=y3(t),l=b3(t);return x3(r.runSync(r.parse(l),l),t)}function y3(t){const r=t.rehypePlugins||Hy,l=t.remarkPlugins||Hy,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...qy}:qy;return c3().use(JE).use(l).use(GC,a).use(r)}function b3(t){const r=t.children||"",l=new Xx;return typeof r=="string"&&(l.value=r),l}function x3(t,r){const l=r.allowedElements,a=r.allowElement,s=r.components,u=r.disallowedElements,c=r.skipHtml,d=r.unwrapDisallowed,p=r.urlTransform||v3;for(const y of m3)Object.hasOwn(r,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+p3+y.id,void 0);return $d(t,h),M2(t,{Fragment:v.Fragment,components:s,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function h(y,m,x){if(y.type==="raw"&&x&&typeof m=="number")return c?x.children.splice(m,1):x.children[m]={type:"text",value:y.value},m;if(y.type==="element"){let b;for(b in Ef)if(Object.hasOwn(Ef,b)&&Object.hasOwn(y.properties,b)){const w=y.properties[b],k=Ef[b];(k===null||k.includes(y.tagName))&&(y.properties[b]=p(String(w||""),b,y))}}if(y.type==="element"){let b=l?!l.includes(y.tagName):u?u.includes(y.tagName):!1;if(!b&&a&&typeof m=="number"&&(b=!a(y,m,x)),b&&x&&typeof m=="number")return d&&y.children?x.children.splice(m,1,...y.children):x.children.splice(m,1),m}}}function v3(t){const r=t.indexOf(":"),l=t.indexOf("?"),a=t.indexOf("#"),s=t.indexOf("/");return r===-1||s!==-1&&r>s||l!==-1&&r>l||a!==-1&&r>a||g3.test(t.slice(0,r))?t:""}function Vy(t,r){const l=String(t);if(typeof r!="string")throw new TypeError("Expected character");let a=0,s=l.indexOf(r);for(;s!==-1;)a++,s=l.indexOf(r,s+r.length);return a}function w3(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function S3(t,r,l){const s=Vs((l||{}).ignore||[]),u=k3(r);let c=-1;for(;++c<u.length;)Yx(t,"text",d);function d(h,y){let m=-1,x;for(;++m<y.length;){const b=y[m],w=x?x.children:void 0;if(s(b,w?w.indexOf(b):void 0,x))return;x=b}if(x)return p(h,y)}function p(h,y){const m=y[y.length-1],x=u[c][0],b=u[c][1];let w=0;const A=m.children.indexOf(h);let E=!1,C=[];x.lastIndex=0;let N=x.exec(h.value);for(;N;){const B=N.index,G={index:N.index,input:N.input,stack:[...y,h]};let D=b(...N,G);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?x.lastIndex=B+1:(w!==B&&C.push({type:"text",value:h.value.slice(w,B)}),Array.isArray(D)?C.push(...D):D&&C.push(D),w=B+N[0].length,E=!0),!x.global)break;N=x.exec(h.value)}return E?(w<h.value.length&&C.push({type:"text",value:h.value.slice(w)}),m.children.splice(A,1,...C)):C=[h],A+C.length}}function k3(t){const r=[];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 a=-1;for(;++a<l.length;){const s=l[a];r.push([E3(s[0]),C3(s[1])])}return r}function E3(t){return typeof t=="string"?new RegExp(w3(t),"g"):t}function C3(t){return typeof t=="function"?t:function(){return t}}const Mf="phrasing",zf=["autolink","link","image","label"];function A3(){return{transforms:[D3],enter:{literalAutolink:N3,literalAutolinkEmail:Bf,literalAutolinkHttp:Bf,literalAutolinkWww:Bf},exit:{literalAutolink:j3,literalAutolinkEmail:L3,literalAutolinkHttp:R3,literalAutolinkWww:_3}}}function T3(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mf,notInConstruct:zf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mf,notInConstruct:zf},{character:":",before:"[ps]",after:"\\/",inConstruct:Mf,notInConstruct:zf}]}}function N3(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Bf(t){this.config.enter.autolinkProtocol.call(this,t)}function R3(t){this.config.exit.autolinkProtocol.call(this,t)}function _3(t){this.config.exit.data.call(this,t);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(t)}function L3(t){this.config.exit.autolinkEmail.call(this,t)}function j3(t){this.exit(t)}function D3(t){S3(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,O3],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),M3]],{ignore:["link","linkReference"]})}function O3(t,r,l,a,s){let u="";if(!Qx(s)||(/^w/i.test(r)&&(l=r+l,r="",u="http://"),!z3(l)))return!1;const c=B3(l+a);if(!c[0])return!1;const d={type:"link",title:null,url:u+r+c[0],children:[{type:"text",value:r+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function M3(t,r,l,a){return!Qx(a,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+l,children:[{type:"text",value:r+"@"+l}]}}function z3(t){const r=t.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function B3(t){const r=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!r)return[t,void 0];t=t.slice(0,r.index);let l=r[0],a=l.indexOf(")");const s=Vy(t,"(");let u=Vy(t,")");for(;a!==-1&&s>u;)t+=l.slice(0,a+1),l=l.slice(a+1),a=l.indexOf(")"),u++;return[t,l]}function Qx(t,r){const l=t.input.charCodeAt(t.index-1);return(t.index===0||El(l)||Us(l))&&(!r||l!==47)}Kx.peek=G3;function F3(){this.buffer()}function I3(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function U3(){this.buffer()}function H3(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function q3(t){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Fn(this.sliceSerialize(t)).toLowerCase(),l.label=r}function V3(t){this.exit(t)}function P3(t){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Fn(this.sliceSerialize(t)).toLowerCase(),l.label=r}function $3(t){this.exit(t)}function G3(){return"["}function Kx(t,r,l,a){const s=l.createTracker(a);let u=s.move("[^");const c=l.enter("footnoteReference"),d=l.enter("reference");return u+=s.move(l.safe(l.associationId(t),{after:"]",before:u})),d(),c(),u+=s.move("]"),u}function Y3(){return{enter:{gfmFootnoteCallString:F3,gfmFootnoteCall:I3,gfmFootnoteDefinitionLabelString:U3,gfmFootnoteDefinition:H3},exit:{gfmFootnoteCallString:q3,gfmFootnoteCall:V3,gfmFootnoteDefinitionLabelString:P3,gfmFootnoteDefinition:$3}}}function X3(t){let r=!1;return t&&t.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:l,footnoteReference:Kx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(a,s,u,c){const d=u.createTracker(c);let p=d.move("[^");const h=u.enter("footnoteDefinition"),y=u.enter("label");return p+=d.move(u.safe(u.associationId(a),{before:p,after:"]"})),y(),p+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),p+=d.move((r?`
|
|
29
|
-
`:" ")+u.indentLines(u.containerFlow(a,d.current()),r?Jx:Z3))),h(),p}}function Z3(t,r,l){return r===0?t:Jx(t,r,l)}function Jx(t,r,l){return(l?"":" ")+t}const Q3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Wx.peek=t4;function K3(){return{canContainEols:["delete"],enter:{strikethrough:W3},exit:{strikethrough:e4}}}function J3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Q3}],handlers:{delete:Wx}}}function W3(t){this.enter({type:"delete",children:[]},t)}function e4(t){this.exit(t)}function Wx(t,r,l,a){const s=l.createTracker(a),u=l.enter("strikethrough");let c=s.move("~~");return c+=l.containerPhrasing(t,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),u(),c}function t4(){return"~"}function n4(t){return t.length}function r4(t,r){const l=r||{},a=(l.align||[]).concat(),s=l.stringLength||n4,u=[],c=[],d=[],p=[];let h=0,y=-1;for(;++y<t.length;){const k=[],A=[];let E=-1;for(t[y].length>h&&(h=t[y].length);++E<t[y].length;){const C=l4(t[y][E]);if(l.alignDelimiters!==!1){const N=s(C);A[E]=N,(p[E]===void 0||N>p[E])&&(p[E]=N)}k.push(C)}c[y]=k,d[y]=A}let m=-1;if(typeof a=="object"&&"length"in a)for(;++m<h;)u[m]=Py(a[m]);else{const k=Py(a);for(;++m<h;)u[m]=k}m=-1;const x=[],b=[];for(;++m<h;){const k=u[m];let A="",E="";k===99?(A=":",E=":"):k===108?A=":":k===114&&(E=":");let C=l.alignDelimiters===!1?1:Math.max(1,p[m]-A.length-E.length);const N=A+"-".repeat(C)+E;l.alignDelimiters!==!1&&(C=A.length+C+E.length,C>p[m]&&(p[m]=C),b[m]=C),x[m]=N}c.splice(1,0,x),d.splice(1,0,b),y=-1;const w=[];for(;++y<c.length;){const k=c[y],A=d[y];m=-1;const E=[];for(;++m<h;){const C=k[m]||"";let N="",B="";if(l.alignDelimiters!==!1){const G=p[m]-(A[m]||0),D=u[m];D===114?N=" ".repeat(G):D===99?G%2?(N=" ".repeat(G/2+.5),B=" ".repeat(G/2-.5)):(N=" ".repeat(G/2),B=N):B=" ".repeat(G)}l.delimiterStart!==!1&&!m&&E.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&C==="")&&(l.delimiterStart!==!1||m)&&E.push(" "),l.alignDelimiters!==!1&&E.push(N),E.push(C),l.alignDelimiters!==!1&&E.push(B),l.padding!==!1&&E.push(" "),(l.delimiterEnd!==!1||m!==h-1)&&E.push("|")}w.push(l.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return w.join(`
|
|
30
|
-
`)}function l4(t){return t==null?"":String(t)}function Py(t){const r=typeof t=="string"?t.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function i4(t,r,l,a){const s=l.enter("blockquote"),u=l.createTracker(a);u.move("> "),u.shift(2);const c=l.indentLines(l.containerFlow(t,u.current()),a4);return s(),c}function a4(t,r,l){return">"+(l?"":" ")+t}function o4(t,r){return $y(t,r.inConstruct,!0)&&!$y(t,r.notInConstruct,!1)}function $y(t,r,l){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return l;let a=-1;for(;++a<r.length;)if(t.includes(r[a]))return!0;return!1}function Gy(t,r,l,a){let s=-1;for(;++s<l.unsafe.length;)if(l.unsafe[s].character===`
|
|
31
|
-
`&&o4(l.stack,l.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
32
|
-
`}function s4(t,r){const l=String(t);let a=l.indexOf(r),s=a,u=0,c=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===s?++u>c&&(c=u):u=1,s=a+r.length,a=l.indexOf(r,s);return c}function u4(t,r){return!!(r.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function c4(t){const r=t.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function f4(t,r,l,a){const s=c4(l),u=t.value||"",c=s==="`"?"GraveAccent":"Tilde";if(u4(t,l)){const m=l.enter("codeIndented"),x=l.indentLines(u,d4);return m(),x}const d=l.createTracker(a),p=s.repeat(Math.max(s4(u,s)+1,3)),h=l.enter("codeFenced");let y=d.move(p);if(t.lang){const m=l.enter(`codeFencedLang${c}`);y+=d.move(l.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),m()}if(t.lang&&t.meta){const m=l.enter(`codeFencedMeta${c}`);y+=d.move(" "),y+=d.move(l.safe(t.meta,{before:y,after:`
|
|
33
|
-
`,encode:["`"],...d.current()})),m()}return y+=d.move(`
|
|
34
|
-
`),u&&(y+=d.move(u+`
|
|
35
|
-
`)),y+=d.move(p),h(),y}function d4(t,r,l){return(l?"":" ")+t}function Yd(t){const r=t.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function h4(t,r,l,a){const s=Yd(l),u=s==='"'?"Quote":"Apostrophe",c=l.enter("definition");let d=l.enter("label");const p=l.createTracker(a);let h=p.move("[");return h+=p.move(l.safe(l.associationId(t),{before:h,after:"]",...p.current()})),h+=p.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=l.enter("destinationLiteral"),h+=p.move("<"),h+=p.move(l.safe(t.url,{before:h,after:">",...p.current()})),h+=p.move(">")):(d=l.enter("destinationRaw"),h+=p.move(l.safe(t.url,{before:h,after:t.title?" ":`
|
|
36
|
-
`,...p.current()}))),d(),t.title&&(d=l.enter(`title${u}`),h+=p.move(" "+s),h+=p.move(l.safe(t.title,{before:h,after:s,...p.current()})),h+=p.move(s),d()),c(),h}function p4(t){const r=t.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function Ba(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Ss(t,r,l){const a=Ti(t),s=Ti(r);return a===void 0?s===void 0?l==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}e1.peek=g4;function e1(t,r,l,a){const s=p4(l),u=l.enter("emphasis"),c=l.createTracker(a),d=c.move(s);let p=c.move(l.containerPhrasing(t,{after:s,before:d,...c.current()}));const h=p.charCodeAt(0),y=Ss(a.before.charCodeAt(a.before.length-1),h,s);y.inside&&(p=Ba(h)+p.slice(1));const m=p.charCodeAt(p.length-1),x=Ss(a.after.charCodeAt(0),m,s);x.inside&&(p=p.slice(0,-1)+Ba(m));const b=c.move(s);return u(),l.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},d+p+b}function g4(t,r,l){return l.options.emphasis||"*"}function m4(t,r){let l=!1;return $d(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return l=!0,od}),!!((!t.depth||t.depth<3)&&Fd(t)&&(r.options.setext||l))}function y4(t,r,l,a){const s=Math.max(Math.min(6,t.depth||1),1),u=l.createTracker(a);if(m4(t,l)){const y=l.enter("headingSetext"),m=l.enter("phrasing"),x=l.containerPhrasing(t,{...u.current(),before:`
|
|
37
|
-
`,after:`
|
|
38
|
-
`});return m(),y(),x+`
|
|
39
|
-
`+(s===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
|
|
40
|
-
`))+1))}const c="#".repeat(s),d=l.enter("headingAtx"),p=l.enter("phrasing");u.move(c+" ");let h=l.containerPhrasing(t,{before:"# ",after:`
|
|
41
|
-
`,...u.current()});return/^[\t ]/.test(h)&&(h=Ba(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,l.options.closeAtx&&(h+=" "+c),p(),d(),h}t1.peek=b4;function t1(t){return t.value||""}function b4(){return"<"}n1.peek=x4;function n1(t,r,l,a){const s=Yd(l),u=s==='"'?"Quote":"Apostrophe",c=l.enter("image");let d=l.enter("label");const p=l.createTracker(a);let h=p.move("![");return h+=p.move(l.safe(t.alt,{before:h,after:"]",...p.current()})),h+=p.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=l.enter("destinationLiteral"),h+=p.move("<"),h+=p.move(l.safe(t.url,{before:h,after:">",...p.current()})),h+=p.move(">")):(d=l.enter("destinationRaw"),h+=p.move(l.safe(t.url,{before:h,after:t.title?" ":")",...p.current()}))),d(),t.title&&(d=l.enter(`title${u}`),h+=p.move(" "+s),h+=p.move(l.safe(t.title,{before:h,after:s,...p.current()})),h+=p.move(s),d()),h+=p.move(")"),c(),h}function x4(){return"!"}r1.peek=v4;function r1(t,r,l,a){const s=t.referenceType,u=l.enter("imageReference");let c=l.enter("label");const d=l.createTracker(a);let p=d.move("![");const h=l.safe(t.alt,{before:p,after:"]",...d.current()});p+=d.move(h+"]["),c();const y=l.stack;l.stack=[],c=l.enter("reference");const m=l.safe(l.associationId(t),{before:p,after:"]",...d.current()});return c(),l.stack=y,u(),s==="full"||!h||h!==m?p+=d.move(m+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function v4(){return"!"}l1.peek=w4;function l1(t,r,l){let a=t.value||"",s="`",u=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++u<l.unsafe.length;){const c=l.unsafe[u],d=l.compilePattern(c);let p;if(c.atBreak)for(;p=d.exec(a);){let h=p.index;a.charCodeAt(h)===10&&a.charCodeAt(h-1)===13&&h--,a=a.slice(0,h)+" "+a.slice(p.index+1)}}return s+a+s}function w4(){return"`"}function i1(t,r){const l=Fd(t);return!!(!r.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))}a1.peek=S4;function a1(t,r,l,a){const s=Yd(l),u=s==='"'?"Quote":"Apostrophe",c=l.createTracker(a);let d,p;if(i1(t,l)){const y=l.stack;l.stack=[],d=l.enter("autolink");let m=c.move("<");return m+=c.move(l.containerPhrasing(t,{before:m,after:">",...c.current()})),m+=c.move(">"),d(),l.stack=y,m}d=l.enter("link"),p=l.enter("label");let h=c.move("[");return h+=c.move(l.containerPhrasing(t,{before:h,after:"](",...c.current()})),h+=c.move("]("),p(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(p=l.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(l.safe(t.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(p=l.enter("destinationRaw"),h+=c.move(l.safe(t.url,{before:h,after:t.title?" ":")",...c.current()}))),p(),t.title&&(p=l.enter(`title${u}`),h+=c.move(" "+s),h+=c.move(l.safe(t.title,{before:h,after:s,...c.current()})),h+=c.move(s),p()),h+=c.move(")"),d(),h}function S4(t,r,l){return i1(t,l)?"<":"["}o1.peek=k4;function o1(t,r,l,a){const s=t.referenceType,u=l.enter("linkReference");let c=l.enter("label");const d=l.createTracker(a);let p=d.move("[");const h=l.containerPhrasing(t,{before:p,after:"]",...d.current()});p+=d.move(h+"]["),c();const y=l.stack;l.stack=[],c=l.enter("reference");const m=l.safe(l.associationId(t),{before:p,after:"]",...d.current()});return c(),l.stack=y,u(),s==="full"||!h||h!==m?p+=d.move(m+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function k4(){return"["}function Xd(t){const r=t.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function E4(t){const r=Xd(t),l=t.options.bulletOther;if(!l)return r==="*"?"-":"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(l===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+l+"`) to be different");return l}function C4(t){const r=t.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function s1(t){const r=t.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function A4(t,r,l,a){const s=l.enter("list"),u=l.bulletCurrent;let c=t.ordered?C4(l):Xd(l);const d=t.ordered?c==="."?")":".":E4(l);let p=r&&l.bulletLastUsed?c===l.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.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&&(p=!0),s1(l)===c&&y){let m=-1;for(;++m<t.children.length;){const x=t.children[m];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=d),l.bulletCurrent=c;const h=l.containerFlow(t,a);return l.bulletLastUsed=c,l.bulletCurrent=u,s(),h}function T4(t){const r=t.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function N4(t,r,l,a){const s=T4(l);let u=l.bulletCurrent||Xd(l);r&&r.type==="list"&&r.ordered&&(u=(typeof r.start=="number"&&r.start>-1?r.start:1)+(l.options.incrementListMarker===!1?0:r.children.indexOf(t))+u);let c=u.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(c=Math.ceil(c/4)*4);const d=l.createTracker(a);d.move(u+" ".repeat(c-u.length)),d.shift(c);const p=l.enter("listItem"),h=l.indentLines(l.containerFlow(t,d.current()),y);return p(),h;function y(m,x,b){return x?(b?"":" ".repeat(c))+m:(b?u:u+" ".repeat(c-u.length))+m}}function R4(t,r,l,a){const s=l.enter("paragraph"),u=l.enter("phrasing"),c=l.containerPhrasing(t,a);return u(),s(),c}const _4=Vs(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function L4(t,r,l,a){return(t.children.some(function(c){return _4(c)})?l.containerPhrasing:l.containerFlow).call(l,t,a)}function j4(t){const r=t.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}u1.peek=D4;function u1(t,r,l,a){const s=j4(l),u=l.enter("strong"),c=l.createTracker(a),d=c.move(s+s);let p=c.move(l.containerPhrasing(t,{after:s,before:d,...c.current()}));const h=p.charCodeAt(0),y=Ss(a.before.charCodeAt(a.before.length-1),h,s);y.inside&&(p=Ba(h)+p.slice(1));const m=p.charCodeAt(p.length-1),x=Ss(a.after.charCodeAt(0),m,s);x.inside&&(p=p.slice(0,-1)+Ba(m));const b=c.move(s+s);return u(),l.attentionEncodeSurroundingInfo={after:x.outside,before:y.outside},d+p+b}function D4(t,r,l){return l.options.strong||"*"}function O4(t,r,l,a){return l.safe(t.value,a)}function M4(t){const r=t.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function z4(t,r,l){const a=(s1(l)+(l.options.ruleSpaces?" ":"")).repeat(M4(l));return l.options.ruleSpaces?a.slice(0,-1):a}const c1={blockquote:i4,break:Gy,code:f4,definition:h4,emphasis:e1,hardBreak:Gy,heading:y4,html:t1,image:n1,imageReference:r1,inlineCode:l1,link:a1,linkReference:o1,list:A4,listItem:N4,paragraph:R4,root:L4,strong:u1,text:O4,thematicBreak:z4};function B4(){return{enter:{table:F4,tableData:Yy,tableHeader:Yy,tableRow:U4},exit:{codeText:H4,table:I4,tableData:Ff,tableHeader:Ff,tableRow:Ff}}}function F4(t){const r=t._align;this.enter({type:"table",align:r.map(function(l){return l==="none"?null:l}),children:[]},t),this.data.inTable=!0}function I4(t){this.exit(t),this.data.inTable=void 0}function U4(t){this.enter({type:"tableRow",children:[]},t)}function Ff(t){this.exit(t)}function Yy(t){this.enter({type:"tableCell",children:[]},t)}function H4(t){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,q4));const l=this.stack[this.stack.length-1];l.type,l.value=r,this.exit(t)}function q4(t,r){return r==="|"?r:t}function V4(t){const r=t||{},l=r.tableCellPadding,a=r.tablePipeAlign,s=r.stringLength,u=l?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
42
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:c,tableCell:p,tableRow:d}};function c(b,w,k,A){return h(y(b,k,A),b.align)}function d(b,w,k,A){const E=m(b,k,A),C=h([E]);return C.slice(0,C.indexOf(`
|
|
43
|
-
`))}function p(b,w,k,A){const E=k.enter("tableCell"),C=k.enter("phrasing"),N=k.containerPhrasing(b,{...A,before:u,after:u});return C(),E(),N}function h(b,w){return r4(b,{align:w,alignDelimiters:a,padding:l,stringLength:s})}function y(b,w,k){const A=b.children;let E=-1;const C=[],N=w.enter("table");for(;++E<A.length;)C[E]=m(A[E],w,k);return N(),C}function m(b,w,k){const A=b.children;let E=-1;const C=[],N=w.enter("tableRow");for(;++E<A.length;)C[E]=p(A[E],b,w,k);return N(),C}function x(b,w,k){let A=c1.inlineCode(b,w,k);return k.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function P4(){return{exit:{taskListCheckValueChecked:Xy,taskListCheckValueUnchecked:Xy,paragraph:G4}}}function $4(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Y4}}}function Xy(t){const r=this.stack[this.stack.length-2];r.type,r.checked=t.type==="taskListCheckValueChecked"}function G4(t){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const l=this.stack[this.stack.length-1];l.type;const a=l.children[0];if(a&&a.type==="text"){const s=r.children;let u=-1,c;for(;++u<s.length;){const d=s[u];if(d.type==="paragraph"){c=d;break}}c===l&&(a.value=a.value.slice(1),a.value.length===0?l.children.shift():l.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,l.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function Y4(t,r,l,a){const s=t.children[0],u=typeof t.checked=="boolean"&&s&&s.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",d=l.createTracker(a);u&&d.move(c);let p=c1.listItem(t,r,l,{...a,...d.current()});return u&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),p;function h(y){return y+c}}function X4(){return[A3(),Y3(),K3(),B4(),P4()]}function Z4(t){return{extensions:[T3(),X3(t),J3(),V4(t),$4()]}}const Q4={tokenize:n6,partial:!0},f1={tokenize:r6,partial:!0},d1={tokenize:l6,partial:!0},h1={tokenize:i6,partial:!0},K4={tokenize:a6,partial:!0},p1={name:"wwwAutolink",tokenize:e6,previous:m1},g1={name:"protocolAutolink",tokenize:t6,previous:y1},xr={name:"emailAutolink",tokenize:W4,previous:b1},Gn={};function J4(){return{text:Gn}}let wl=48;for(;wl<123;)Gn[wl]=xr,wl++,wl===58?wl=65:wl===91&&(wl=97);Gn[43]=xr;Gn[45]=xr;Gn[46]=xr;Gn[95]=xr;Gn[72]=[xr,g1];Gn[104]=[xr,g1];Gn[87]=[xr,p1];Gn[119]=[xr,p1];function W4(t,r,l){const a=this;let s,u;return c;function c(m){return!fd(m)||!b1.call(a,a.previous)||Zd(a.events)?l(m):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(m))}function d(m){return fd(m)?(t.consume(m),d):m===64?(t.consume(m),p):l(m)}function p(m){return m===46?t.check(K4,y,h)(m):m===45||m===95||Ht(m)?(u=!0,t.consume(m),p):y(m)}function h(m){return t.consume(m),s=!0,p}function y(m){return u&&s&&Xt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(m)):l(m)}}function e6(t,r,l){const a=this;return s;function s(c){return c!==87&&c!==119||!m1.call(a,a.previous)||Zd(a.events)?l(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Q4,t.attempt(f1,t.attempt(d1,u),l),l)(c))}function u(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(c)}}function t6(t,r,l){const a=this;let s="",u=!1;return c;function c(m){return(m===72||m===104)&&y1.call(a,a.previous)&&!Zd(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(m),t.consume(m),d):l(m)}function d(m){if(Xt(m)&&s.length<5)return s+=String.fromCodePoint(m),t.consume(m),d;if(m===58){const x=s.toLowerCase();if(x==="http"||x==="https")return t.consume(m),p}return l(m)}function p(m){return m===47?(t.consume(m),u?h:(u=!0,p)):l(m)}function h(m){return m===null||xs(m)||it(m)||El(m)||Us(m)?l(m):t.attempt(f1,t.attempt(d1,y),l)(m)}function y(m){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(m)}}function n6(t,r,l){let a=0;return s;function s(c){return(c===87||c===119)&&a<3?(a++,t.consume(c),s):c===46&&a===3?(t.consume(c),u):l(c)}function u(c){return c===null?l(c):r(c)}}function r6(t,r,l){let a,s,u;return c;function c(h){return h===46||h===95?t.check(h1,p,d)(h):h===null||it(h)||El(h)||h!==45&&Us(h)?p(h):(u=!0,t.consume(h),c)}function d(h){return h===95?a=!0:(s=a,a=void 0),t.consume(h),c}function p(h){return s||a||!u?l(h):r(h)}}function l6(t,r){let l=0,a=0;return s;function s(c){return c===40?(l++,t.consume(c),s):c===41&&a<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(h1,r,u)(c):c===null||it(c)||El(c)?r(c):(t.consume(c),s)}function u(c){return c===41&&a++,t.consume(c),s}}function i6(t,r,l){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),u):d===93?(t.consume(d),s):d===60||d===null||it(d)||El(d)?r(d):l(d)}function s(d){return d===null||d===40||d===91||it(d)||El(d)?r(d):a(d)}function u(d){return Xt(d)?c(d):l(d)}function c(d){return d===59?(t.consume(d),a):Xt(d)?(t.consume(d),c):l(d)}}function a6(t,r,l){return a;function a(u){return t.consume(u),s}function s(u){return Ht(u)?l(u):r(u)}}function m1(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||it(t)}function y1(t){return!Xt(t)}function b1(t){return!(t===47||fd(t))}function fd(t){return t===43||t===45||t===46||t===95||Ht(t)}function Zd(t){let r=t.length,l=!1;for(;r--;){const a=t[r][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){l=!0;break}if(a._gfmAutolinkLiteralWalkedInto){l=!1;break}}return t.length>0&&!l&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const o6={tokenize:g6,partial:!0};function s6(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:d6,continuation:{tokenize:h6},exit:p6}},text:{91:{name:"gfmFootnoteCall",tokenize:f6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:u6,resolveTo:c6}}}}function u6(t,r,l){const a=this;let s=a.events.length;const u=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const p=a.events[s][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return d;function d(p){if(!c||!c._balanced)return l(p);const h=Fn(a.sliceSerialize({start:c.end,end:a.now()}));return h.codePointAt(0)!==94||!u.includes(h.slice(1))?l(p):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),r(p))}}function c6(t,r){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 a={type:"gfmFootnoteCall",start:Object.assign({},t[l+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[l+3][1].end),end:Object.assign({},t[l+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.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)},d=[t[l+1],t[l+2],["enter",a,r],t[l+3],t[l+4],["enter",s,r],["exit",s,r],["enter",u,r],["enter",c,r],["exit",c,r],["exit",u,r],t[t.length-2],t[t.length-1],["exit",a,r]];return t.splice(l,t.length-l+1,...d),t}function f6(t,r,l){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u=0,c;return d;function d(m){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),p}function p(m){return m!==94?l(m):(t.enter("gfmFootnoteCallMarker"),t.consume(m),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",h)}function h(m){if(u>999||m===93&&!c||m===null||m===91||it(m))return l(m);if(m===93){t.exit("chunkString");const x=t.exit("gfmFootnoteCallString");return s.includes(Fn(a.sliceSerialize(x)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r):l(m)}return it(m)||(c=!0),u++,t.consume(m),m===92?y:h}function y(m){return m===91||m===92||m===93?(t.consume(m),u++,h):h(m)}}function d6(t,r,l){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u,c=0,d;return p;function p(w){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(w){return w===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):l(w)}function y(w){if(c>999||w===93&&!d||w===null||w===91||it(w))return l(w);if(w===93){t.exit("chunkString");const k=t.exit("gfmFootnoteDefinitionLabelString");return u=Fn(a.sliceSerialize(k)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),x}return it(w)||(d=!0),c++,t.consume(w),w===92?m:y}function m(w){return w===91||w===92||w===93?(t.consume(w),c++,y):y(w)}function x(w){return w===58?(t.enter("definitionMarker"),t.consume(w),t.exit("definitionMarker"),s.includes(u)||s.push(u),$e(t,b,"gfmFootnoteDefinitionWhitespace")):l(w)}function b(w){return r(w)}}function h6(t,r,l){return t.check(Ua,r,t.attempt(o6,r,l))}function p6(t){t.exit("gfmFootnoteDefinition")}function g6(t,r,l){const a=this;return $e(t,s,"gfmFootnoteDefinitionIndent",5);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?r(u):l(u)}}function m6(t){let l=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:u,resolveAll:s};return l==null&&(l=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,d){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let h=p;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[p][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[p][1].end)},m={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[p][1].start)},x=[["enter",y,d],["enter",c[h][1],d],["exit",c[h][1],d],["enter",m,d]],b=d.parser.constructs.insideSpan.null;b&&vn(x,x.length,0,Hs(b,c.slice(h+1,p),d)),vn(x,x.length,0,[["exit",m,d],["enter",c[p][1],d],["exit",c[p][1],d],["exit",y,d]]),vn(c,h-1,p-h+3,x),p=h+x.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function u(c,d,p){const h=this.previous,y=this.events;let m=0;return x;function x(w){return h===126&&y[y.length-1][1].type!=="characterEscape"?p(w):(c.enter("strikethroughSequenceTemporary"),b(w))}function b(w){const k=Ti(h);if(w===126)return m>1?p(w):(c.consume(w),m++,b);if(m<2&&!l)return p(w);const A=c.exit("strikethroughSequenceTemporary"),E=Ti(w);return A._open=!E||E===2&&!!k,A._close=!k||k===2&&!!E,d(w)}}}class y6{constructor(){this.map=[]}add(r,l,a){b6(this,r,l,a)}consume(r){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let l=this.map.length;const a=[];for(;l>0;)l-=1,a.push(r.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),r.length=this.map[l][0];a.push(r.slice()),r.length=0;let s=a.pop();for(;s;){for(const u of s)r.push(u);s=a.pop()}this.map.length=0}}function b6(t,r,l,a){let s=0;if(!(l===0&&a.length===0)){for(;s<t.map.length;){if(t.map[s][0]===r){t.map[s][1]+=l,t.map[s][2].push(...a);return}s+=1}t.map.push([r,l,a])}}function x6(t,r){let l=!1;const a=[];for(;r<t.length;){const s=t[r];if(l){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(t[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[r-1][1].type==="tableDelimiterMarker"){const u=a.length-1;a[u]=a[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(l=!0);r+=1}return a}function v6(){return{flow:{null:{name:"table",tokenize:w6,resolveAll:S6}}}}function w6(t,r,l){const a=this;let s=0,u=0,c;return d;function d(M){let q=a.events.length-1;for(;q>-1;){const F=a.events[q][1].type;if(F==="lineEnding"||F==="linePrefix")q--;else break}const $=q>-1?a.events[q][1].type:null,J=$==="tableHead"||$==="tableRow"?D:p;return J===D&&a.parser.lazy[a.now().line]?l(M):J(M)}function p(M){return t.enter("tableHead"),t.enter("tableRow"),h(M)}function h(M){return M===124||(c=!0,u+=1),y(M)}function y(M){return M===null?l(M):Ae(M)?u>1?(u=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(M),t.exit("lineEnding"),b):l(M):Ie(M)?$e(t,y,"whitespace")(M):(u+=1,c&&(c=!1,s+=1),M===124?(t.enter("tableCellDivider"),t.consume(M),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),m(M)))}function m(M){return M===null||M===124||it(M)?(t.exit("data"),y(M)):(t.consume(M),M===92?x:m)}function x(M){return M===92||M===124?(t.consume(M),m):m(M)}function b(M){return a.interrupt=!1,a.parser.lazy[a.now().line]?l(M):(t.enter("tableDelimiterRow"),c=!1,Ie(M)?$e(t,w,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):w(M))}function w(M){return M===45||M===58?A(M):M===124?(c=!0,t.enter("tableCellDivider"),t.consume(M),t.exit("tableCellDivider"),k):G(M)}function k(M){return Ie(M)?$e(t,A,"whitespace")(M):A(M)}function A(M){return M===58?(u+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(M),t.exit("tableDelimiterMarker"),E):M===45?(u+=1,E(M)):M===null||Ae(M)?B(M):G(M)}function E(M){return M===45?(t.enter("tableDelimiterFiller"),C(M)):G(M)}function C(M){return M===45?(t.consume(M),C):M===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(M),t.exit("tableDelimiterMarker"),N):(t.exit("tableDelimiterFiller"),N(M))}function N(M){return Ie(M)?$e(t,B,"whitespace")(M):B(M)}function B(M){return M===124?w(M):M===null||Ae(M)?!c||s!==u?G(M):(t.exit("tableDelimiterRow"),t.exit("tableHead"),r(M)):G(M)}function G(M){return l(M)}function D(M){return t.enter("tableRow"),U(M)}function U(M){return M===124?(t.enter("tableCellDivider"),t.consume(M),t.exit("tableCellDivider"),U):M===null||Ae(M)?(t.exit("tableRow"),r(M)):Ie(M)?$e(t,U,"whitespace")(M):(t.enter("data"),Z(M))}function Z(M){return M===null||M===124||it(M)?(t.exit("data"),U(M)):(t.consume(M),M===92?P:Z)}function P(M){return M===92||M===124?(t.consume(M),Z):Z(M)}}function S6(t,r){let l=-1,a=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],d=!1,p=0,h,y,m;const x=new y6;for(;++l<t.length;){const b=t[l],w=b[1];b[0]==="enter"?w.type==="tableHead"?(d=!1,p!==0&&(Zy(x,r,p,h,y),y=void 0,p=0),h={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},x.add(l,0,[["enter",h,r]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(a=!0,m=void 0,u=[0,0,0,0],c=[0,l+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},x.add(l,0,[["enter",y,r]])),s=w.type==="tableDelimiterRow"?2:y?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],m=cs(x,r,u,s,void 0,m),u=[0,0,0,0]),c[2]=l)):w.type==="tableCellDivider"&&(a?a=!1:(u[1]!==0&&(c[0]=c[1],m=cs(x,r,u,s,void 0,m)),u=c,c=[u[1],l,0,0])):w.type==="tableHead"?(d=!0,p=l):w.type==="tableRow"||w.type==="tableDelimiterRow"?(p=l,u[1]!==0?(c[0]=c[1],m=cs(x,r,u,s,l,m)):c[1]!==0&&(m=cs(x,r,c,s,l,m)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=l)}for(p!==0&&Zy(x,r,p,h,y),x.consume(r.events),l=-1;++l<r.events.length;){const b=r.events[l];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=x6(r.events,l))}return t}function cs(t,r,l,a,s,u){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";l[0]!==0&&(u.end=Object.assign({},Si(r.events,l[0])),t.add(l[0],0,[["exit",u,r]]));const p=Si(r.events,l[1]);if(u={type:c,start:Object.assign({},p),end:Object.assign({},p)},t.add(l[1],0,[["enter",u,r]]),l[2]!==0){const h=Si(r.events,l[2]),y=Si(r.events,l[3]),m={type:d,start:Object.assign({},h),end:Object.assign({},y)};if(t.add(l[2],0,[["enter",m,r]]),a!==2){const x=r.events[l[2]],b=r.events[l[3]];if(x[1].end=Object.assign({},b[1].end),x[1].type="chunkText",x[1].contentType="text",l[3]>l[2]+1){const w=l[2]+1,k=l[3]-l[2]-1;t.add(w,k,[])}}t.add(l[3]+1,0,[["exit",m,r]])}return s!==void 0&&(u.end=Object.assign({},Si(r.events,s)),t.add(s,0,[["exit",u,r]]),u=void 0),u}function Zy(t,r,l,a,s){const u=[],c=Si(r.events,l);s&&(s.end=Object.assign({},c),u.push(["exit",s,r])),a.end=Object.assign({},c),u.push(["exit",a,r]),t.add(l+1,0,u)}function Si(t,r){const l=t[r],a=l[0]==="enter"?"start":"end";return l[1][a]}const k6={name:"tasklistCheck",tokenize:C6};function E6(){return{text:{91:k6}}}function C6(t,r,l){const a=this;return s;function s(p){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?l(p):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),u)}function u(p){return it(p)?(t.enter("taskListCheckValueUnchecked"),t.consume(p),t.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(t.enter("taskListCheckValueChecked"),t.consume(p),t.exit("taskListCheckValueChecked"),c):l(p)}function c(p){return p===93?(t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):l(p)}function d(p){return Ae(p)?r(p):Ie(p)?t.check({tokenize:A6},r,l)(p):l(p)}}function A6(t,r,l){return $e(t,a,"whitespace");function a(s){return s===null?l(s):r(s)}}function T6(t){return Nx([J4(),s6(),m6(t),v6(),E6()])}const N6={};function x1(t){const r=this,l=t||N6,a=r.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),u=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(T6(l)),u.push(X4()),c.push(Z4(l))}function v1(t){var r,l,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(l=v1(t[r]))&&(a&&(a+=" "),a+=l)}else for(l in t)t[l]&&(a&&(a+=" "),a+=l);return a}function w1(){for(var t,r,l=0,a="",s=arguments.length;l<s;l++)(t=arguments[l])&&(r=v1(t))&&(a&&(a+=" "),a+=r);return a}var R6=Object.create,$s=Object.defineProperty,_6=Object.defineProperties,L6=Object.getOwnPropertyDescriptor,j6=Object.getOwnPropertyDescriptors,S1=Object.getOwnPropertyNames,ks=Object.getOwnPropertySymbols,D6=Object.getPrototypeOf,Qd=Object.prototype.hasOwnProperty,k1=Object.prototype.propertyIsEnumerable,Qy=(t,r,l)=>r in t?$s(t,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[r]=l,Pn=(t,r)=>{for(var l in r||(r={}))Qd.call(r,l)&&Qy(t,l,r[l]);if(ks)for(var l of ks(r))k1.call(r,l)&&Qy(t,l,r[l]);return t},Gs=(t,r)=>_6(t,j6(r)),E1=(t,r)=>{var l={};for(var a in t)Qd.call(t,a)&&r.indexOf(a)<0&&(l[a]=t[a]);if(t!=null&&ks)for(var a of ks(t))r.indexOf(a)<0&&k1.call(t,a)&&(l[a]=t[a]);return l},O6=(t,r)=>function(){return r||(0,t[S1(t)[0]])((r={exports:{}}).exports,r),r.exports},M6=(t,r)=>{for(var l in r)$s(t,l,{get:r[l],enumerable:!0})},z6=(t,r,l,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of S1(r))!Qd.call(t,s)&&s!==l&&$s(t,s,{get:()=>r[s],enumerable:!(a=L6(r,s))||a.enumerable});return t},B6=(t,r,l)=>(l=t!=null?R6(D6(t)):{},z6(!t||!t.__esModule?$s(l,"default",{value:t,enumerable:!0}):l,t)),F6=O6({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(t,r){var l=(function(){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,u={},c={util:{encode:function w(k){return k instanceof d?new d(k.type,w(k.content),k.alias):Array.isArray(k)?k.map(w):k.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++s}),w.__id},clone:function w(k,A){A=A||{};var E,C;switch(c.util.type(k)){case"Object":if(C=c.util.objId(k),A[C])return A[C];E={},A[C]=E;for(var N in k)k.hasOwnProperty(N)&&(E[N]=w(k[N],A));return E;case"Array":return C=c.util.objId(k),A[C]?A[C]:(E=[],A[C]=E,k.forEach(function(B,G){E[G]=w(B,A)}),E);default:return k}},getLanguage:function(w){for(;w;){var k=a.exec(w.className);if(k)return k[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,k){w.className=w.className.replace(RegExp(a,"gi"),""),w.classList.add("language-"+k)},isActive:function(w,k,A){for(var E="no-"+k;w;){var C=w.classList;if(C.contains(k))return!0;if(C.contains(E))return!1;w=w.parentElement}return!!A}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(w,k){var A=c.util.clone(c.languages[w]);for(var E in k)A[E]=k[E];return A},insertBefore:function(w,k,A,E){E=E||c.languages;var C=E[w],N={};for(var B in C)if(C.hasOwnProperty(B)){if(B==k)for(var G in A)A.hasOwnProperty(G)&&(N[G]=A[G]);A.hasOwnProperty(B)||(N[B]=C[B])}var D=E[w];return E[w]=N,c.languages.DFS(c.languages,function(U,Z){Z===D&&U!=w&&(this[U]=N)}),N},DFS:function w(k,A,E,C){C=C||{};var N=c.util.objId;for(var B in k)if(k.hasOwnProperty(B)){A.call(k,B,k[B],E||B);var G=k[B],D=c.util.type(G);D==="Object"&&!C[N(G)]?(C[N(G)]=!0,w(G,A,null,C)):D==="Array"&&!C[N(G)]&&(C[N(G)]=!0,w(G,A,B,C))}}},plugins:{},highlight:function(w,k,A){var E={code:w,grammar:k,language:A};if(c.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=c.tokenize(E.code,E.grammar),c.hooks.run("after-tokenize",E),d.stringify(c.util.encode(E.tokens),E.language)},tokenize:function(w,k){var A=k.rest;if(A){for(var E in A)k[E]=A[E];delete k.rest}var C=new y;return m(C,C.head,w),h(w,C,k,C.head,0),b(C)},hooks:{all:{},add:function(w,k){var A=c.hooks.all;A[w]=A[w]||[],A[w].push(k)},run:function(w,k){var A=c.hooks.all[w];if(!(!A||!A.length))for(var E=0,C;C=A[E++];)C(k)}},Token:d};function d(w,k,A,E){this.type=w,this.content=k,this.alias=A,this.length=(E||"").length|0}d.stringify=function w(k,A){if(typeof k=="string")return k;if(Array.isArray(k)){var E="";return k.forEach(function(D){E+=w(D,A)}),E}var C={type:k.type,content:w(k.content,A),tag:"span",classes:["token",k.type],attributes:{},language:A},N=k.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(C.classes,N):C.classes.push(N)),c.hooks.run("wrap",C);var B="";for(var G in C.attributes)B+=" "+G+'="'+(C.attributes[G]||"").replace(/"/g,""")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+B+">"+C.content+"</"+C.tag+">"};function p(w,k,A,E){w.lastIndex=k;var C=w.exec(A);if(C&&E&&C[1]){var N=C[1].length;C.index+=N,C[0]=C[0].slice(N)}return C}function h(w,k,A,E,C,N){for(var B in A)if(!(!A.hasOwnProperty(B)||!A[B])){var G=A[B];G=Array.isArray(G)?G:[G];for(var D=0;D<G.length;++D){if(N&&N.cause==B+","+D)return;var U=G[D],Z=U.inside,P=!!U.lookbehind,M=!!U.greedy,q=U.alias;if(M&&!U.pattern.global){var $=U.pattern.toString().match(/[imsuy]*$/)[0];U.pattern=RegExp(U.pattern.source,$+"g")}for(var J=U.pattern||U,F=E.next,X=C;F!==k.tail&&!(N&&X>=N.reach);X+=F.value.length,F=F.next){var L=F.value;if(k.length>w.length)return;if(!(L instanceof d)){var z=1,I;if(M){if(I=p(J,X,w,P),!I||I.index>=w.length)break;var V=I.index,K=I.index+I[0].length,R=X;for(R+=F.value.length;V>=R;)F=F.next,R+=F.value.length;if(R-=F.value.length,X=R,F.value instanceof d)continue;for(var O=F;O!==k.tail&&(R<K||typeof O.value=="string");O=O.next)z++,R+=O.value.length;z--,L=w.slice(X,R),I.index-=X}else if(I=p(J,0,L,P),!I)continue;var V=I.index,T=I[0],le=L.slice(0,V),ce=L.slice(V+T.length),fe=X+L.length;N&&fe>N.reach&&(N.reach=fe);var de=F.prev;le&&(de=m(k,de,le),X+=le.length),x(k,de,z);var ge=new d(B,Z?c.tokenize(T,Z):T,q,T);if(F=m(k,de,ge),ce&&m(k,F,ce),z>1){var he={cause:B+","+D,reach:fe};h(w,k,A,F.prev,X,he),N&&he.reach>N.reach&&(N.reach=he.reach)}}}}}}function y(){var w={value:null,prev:null,next:null},k={value:null,prev:w,next:null};w.next=k,this.head=w,this.tail=k,this.length=0}function m(w,k,A){var E=k.next,C={value:A,prev:k,next:E};return k.next=C,E.prev=C,w.length++,C}function x(w,k,A){for(var E=k.next,C=0;C<A&&E!==w.tail;C++)E=E.next;k.next=E,E.prev=k,w.length-=C}function b(w){for(var k=[],A=w.head.next;A!==w.tail;)k.push(A.value),A=A.next;return k}return c})();r.exports=l,l.default=l}}),se=B6(F6());se.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},se.languages.markup.tag.inside["attr-value"].inside.entity=se.languages.markup.entity,se.languages.markup.doctype.inside["internal-subset"].inside=se.languages.markup,se.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(se.languages.markup.tag,"addInlined",{value:function(t,a){var l={},l=(l["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:se.languages[a]},l.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}}),a=(l["language-"+a]={pattern:/[\s\S]+/,inside:se.languages[a]},{});a[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:l},se.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(se.languages.markup.tag,"addAttribute",{value:function(t,r){se.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:se.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),se.languages.html=se.languages.markup,se.languages.mathml=se.languages.markup,se.languages.svg=se.languages.markup,se.languages.xml=se.languages.extend("markup",{}),se.languages.ssml=se.languages.xml,se.languages.atom=se.languages.xml,se.languages.rss=se.languages.xml,(function(t){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a="(?:[^\\\\-]|"+l.source+")",a=RegExp(a+"-"+a),s={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:l,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:l}},"special-escape":r,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":s}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:l,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":s}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(se),se.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},se.languages.javascript=se.languages.extend("clike",{"class-name":[se.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),se.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,se.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:se.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:se.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:se.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:se.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:se.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),se.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:se.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),se.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),se.languages.markup&&(se.languages.markup.tag.addInlined("script","javascript"),se.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),se.languages.js=se.languages.javascript,se.languages.actionscript=se.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),se.languages.actionscript["class-name"].alias="function",delete se.languages.actionscript.parameter,delete se.languages.actionscript["literal-property"],se.languages.markup&&se.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:se.languages.markup}}),(function(t){var r=/#(?!\{).+/,l={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:l}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:l}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:l}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript})(se),(function(t){var r=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(r,"addSupport",{value:function(l,a){(l=typeof l=="string"?[l]:l).forEach(function(s){var u=function(m){m.inside||(m.inside={}),m.inside.rest=a},c="doc-comment";if(d=t.languages[s]){var d,p=d[c];if((p=p||(d=t.languages.insertBefore(s,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[c])instanceof RegExp&&(p=d[c]={pattern:p}),Array.isArray(p))for(var h=0,y=p.length;h<y;h++)p[h]instanceof RegExp&&(p[h]={pattern:p[h]}),u(p[h]);else u(p)}})}}),r.addSupport(["java","javascript","php"],r)})(se),(function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,r=(t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css,t.languages.markup);r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(se),(function(t){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=(t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),l={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:l,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:l})})(se),(function(t){var r=/[*&][^\s[\]{},]+/,l=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+l.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+l.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(d,p){p=(p||"").replace(/m/g,"")+"m";var h=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return d});return RegExp(h,p)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(u),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:l,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(se),(function(t){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function l(h){return h=h.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+h+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,c=(t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+u+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+u+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:l(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:l(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:l(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:l(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(h){["url","bold","italic","strike","code-snippet"].forEach(function(y){h!==y&&(t.languages.markdown[h].inside.content.inside[y]=t.languages.markdown[y])})}),t.hooks.add("after-tokenize",function(h){h.language!=="markdown"&&h.language!=="md"||(function y(m){if(m&&typeof m!="string")for(var x=0,b=m.length;x<b;x++){var w,k=m[x];k.type!=="code"?y(k.content):(w=k.content[1],k=k.content[3],w&&k&&w.type==="code-language"&&k.type==="code-block"&&typeof w.content=="string"&&(w=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),w="language-"+(w=(/[a-z][\w-]*/i.exec(w)||[""])[0].toLowerCase()),k.alias?typeof k.alias=="string"?k.alias=[k.alias,w]:k.alias.push(w):k.alias=[w]))}})(h.tokens)}),t.hooks.add("wrap",function(h){if(h.type==="code-block"){for(var y="",m=0,x=h.classes.length;m<x;m++){var b=h.classes[m],b=/language-(.+)/.exec(b);if(b){y=b[1];break}}var w,k=t.languages[y];k?h.content=t.highlight((function(A){return A=A.replace(c,""),A=A.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(E,C){var N;return(C=C.toLowerCase())[0]==="#"?(N=C[1]==="x"?parseInt(C.slice(2),16):Number(C.slice(1)),p(N)):d[C]||E})})(h.content),k,y):y&&y!=="none"&&t.plugins.autoloader&&(w="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),h.attributes.id=w,t.plugins.autoloader.loadLanguages(y,function(){var A=document.getElementById(w);A&&(A.innerHTML=t.highlight(A.textContent,t.languages[y],y))}))}}),RegExp(t.languages.markup.tag.pattern.source,"gi")),d={amp:"&",lt:"<",gt:">",quot:'"'},p=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown})(se),se.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:se.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},se.hooks.add("after-tokenize",function(t){if(t.language==="graphql")for(var r=t.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),l=0;l<r.length;){var a=r[l++];if(a.type==="keyword"&&a.content==="mutation"){var s=[];if(m(["definition-mutation","punctuation"])&&y(1).content==="("){l+=2;var u=x(/^\($/,/^\)$/);if(u===-1)continue;for(;l<u;l++){var c=y(0);c.type==="variable"&&(b(c,"variable-input"),s.push(c.content))}l=u+1}if(m(["punctuation","property-query"])&&y(0).content==="{"&&(l++,b(y(0),"property-mutation"),0<s.length)){var d=x(/^\{$/,/^\}$/);if(d!==-1)for(var p=l;p<d;p++){var h=r[p];h.type==="variable"&&0<=s.indexOf(h.content)&&b(h,"variable-input")}}}}function y(w){return r[l+w]}function m(w,k){k=k||0;for(var A=0;A<w.length;A++){var E=y(A+k);if(!E||E.type!==w[A])return}return 1}function x(w,k){for(var A=1,E=l;E<r.length;E++){var C=r[E],N=C.content;if(C.type==="punctuation"&&typeof N=="string"){if(w.test(N))A++;else if(k.test(N)&&--A===0)return E}}return-1}function b(w,k){var A=w.alias;A?Array.isArray(A)||(w.alias=A=[A]):w.alias=A=[],A.push(k)}}),se.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(t){var r=t.languages.javascript["template-string"],l=r.pattern.source,a=r.inside.interpolation,s=a.inside["interpolation-punctuation"],u=a.pattern.source;function c(m,x){if(t.languages[m])return{pattern:RegExp("((?:"+x+")\\s*)"+l),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}function d(m,x,b){return m={code:m,grammar:x,language:b},t.hooks.run("before-tokenize",m),m.tokens=t.tokenize(m.code,m.grammar),t.hooks.run("after-tokenize",m),m.tokens}function p(m,x,b){var A=t.tokenize(m,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),w=0,k={},A=d(A.map(function(C){if(typeof C=="string")return C;for(var N,B,C=C.content;m.indexOf((B=w++,N="___"+b.toUpperCase()+"_"+B+"___"))!==-1;);return k[N]=C,N}).join(""),x,b),E=Object.keys(k);return w=0,(function C(N){for(var B=0;B<N.length;B++){if(w>=E.length)return;var G,D,U,Z,P,M,q,$=N[B];typeof $=="string"||typeof $.content=="string"?(G=E[w],(q=(M=typeof $=="string"?$:$.content).indexOf(G))!==-1&&(++w,D=M.substring(0,q),P=k[G],U=void 0,(Z={})["interpolation-punctuation"]=s,(Z=t.tokenize(P,Z)).length===3&&((U=[1,1]).push.apply(U,d(Z[1],t.languages.javascript,"javascript")),Z.splice.apply(Z,U)),U=new t.Token("interpolation",Z,a.alias,P),Z=M.substring(q+G.length),P=[],D&&P.push(D),P.push(U),Z&&(C(M=[Z]),P.push.apply(P,M)),typeof $=="string"?(N.splice.apply(N,[B,1].concat(P)),B+=P.length-1):$.content=P)):(q=$.content,Array.isArray(q)?C(q):C([q]))}})(A),new t.Token(b,A,"language-"+b,m)}t.languages.javascript["template-string"]=[c("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),c("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),c("svg",/\bsvg/.source),c("markdown",/\b(?:markdown|md)/.source),c("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),c("sql",/\bsql/.source),r].filter(Boolean);var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function y(m){return typeof m=="string"?m:Array.isArray(m)?m.map(y).join(""):y(m.content)}t.hooks.add("after-tokenize",function(m){m.language in h&&(function x(b){for(var w=0,k=b.length;w<k;w++){var A,E,C,N=b[w];typeof N!="string"&&(A=N.content,Array.isArray(A)?N.type==="template-string"?(N=A[1],A.length===3&&typeof N!="string"&&N.type==="embedded-code"&&(E=y(N),N=N.alias,N=Array.isArray(N)?N[0]:N,C=t.languages[N])&&(A[1]=p(E,C,N))):x(A):typeof A!="string"&&x([A]))}})(m.tokens)})})(se),(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var r=t.languages.extend("typescript",{});delete r["class-name"],t.languages.typescript["class-name"].inside=r,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),t.languages.ts=t.languages.typescript})(se),(function(t){var r=t.languages.javascript,l=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+l+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:r,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return l})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+l),lookbehind:!0,inside:{string:r.string,number:r.number,boolean:r.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:r,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)})(se),(function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(se),se.languages.n4js=se.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),se.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),se.languages.n4jsd=se.languages.n4js,(function(t){function r(c,d){return RegExp(c.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),t.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var l=["function","function-variable","method","method-variable","property-access"],a=0;a<l.length;a++){var u=l[a],s=t.languages.javascript[u],u=(s=t.util.type(s)==="RegExp"?t.languages.javascript[u]={pattern:s}:s).inside||{};(s.inside=u)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(se),(function(t){var r=t.util.clone(t.languages.javascript),l=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(p,h){return p=p.replace(/<S>/g,function(){return l}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return s}),RegExp(p,h)}s=u(s).source,t.languages.jsx=t.languages.extend("markup",r),t.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=r.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);function c(p){for(var h=[],y=0;y<p.length;y++){var m=p[y],x=!1;typeof m!="string"&&(m.type==="tag"&&m.content[0]&&m.content[0].type==="tag"?m.content[0].content[0].content==="</"?0<h.length&&h[h.length-1].tagName===d(m.content[0].content[1])&&h.pop():m.content[m.content.length-1].content!=="/>"&&h.push({tagName:d(m.content[0].content[1]),openedBraces:0}):0<h.length&&m.type==="punctuation"&&m.content==="{"?h[h.length-1].openedBraces++:0<h.length&&0<h[h.length-1].openedBraces&&m.type==="punctuation"&&m.content==="}"?h[h.length-1].openedBraces--:x=!0),(x||typeof m=="string")&&0<h.length&&h[h.length-1].openedBraces===0&&(x=d(m),y<p.length-1&&(typeof p[y+1]=="string"||p[y+1].type==="plain-text")&&(x+=d(p[y+1]),p.splice(y+1,1)),0<y&&(typeof p[y-1]=="string"||p[y-1].type==="plain-text")&&(x=d(p[y-1])+x,p.splice(y-1,1),y--),p[y]=new t.Token("plain-text",x,null,x)),m.content&&typeof m.content!="string"&&c(m.content)}}var d=function(p){return p?typeof p=="string"?p:typeof p.content=="string"?p.content:p.content.map(d).join(""):""};t.hooks.add("after-tokenize",function(p){p.language!=="jsx"&&p.language!=="tsx"||c(p.tokens)})})(se),(function(t){var r=t.util.clone(t.languages.typescript),r=(t.languages.tsx=t.languages.extend("jsx",r),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"],t.languages.tsx.tag);r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0})(se),se.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},se.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=se.languages.swift}),(function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin})(se),se.languages.c=se.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),se.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),se.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},se.languages.c.string],char:se.languages.c.char,comment:se.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:se.languages.c}}}}),se.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete se.languages.c.boolean,se.languages.objectivec=se.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete se.languages.objectivec["class-name"],se.languages.objc=se.languages.objectivec,se.languages.reason=se.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),se.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete se.languages.reason.function,(function(t){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,l=0;l<2;l++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(se),se.languages.go=se.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),se.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete se.languages.go["class-name"],(function(t){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,l=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return l})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(se),se.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},se.languages.python["string-interpolation"].inside.interpolation.inside.rest=se.languages.python,se.languages.py=se.languages.python,se.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},se.languages.webmanifest=se.languages.json;var bn={};M6(bn,{dracula:()=>U6,duotoneDark:()=>q6,duotoneLight:()=>P6,github:()=>G6,gruvboxMaterialDark:()=>wA,gruvboxMaterialLight:()=>kA,jettwaveDark:()=>hA,jettwaveLight:()=>gA,nightOwl:()=>X6,nightOwlLight:()=>Q6,oceanicNext:()=>J6,okaidia:()=>eA,oneDark:()=>yA,oneLight:()=>xA,palenight:()=>nA,shadesOfPurple:()=>lA,synthwave84:()=>aA,ultramin:()=>sA,vsDark:()=>C1,vsLight:()=>fA});var I6={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},U6=I6,H6={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},q6=H6,V6={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},P6=V6,$6={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},G6=$6,Y6={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},X6=Y6,Z6={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Q6=Z6,mn={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},K6={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:mn.keyword}},{types:["attr-value"],style:{color:mn.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:mn.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:mn.primitive}},{types:["boolean"],style:{color:mn.boolean}},{types:["tag"],style:{color:mn.tag}},{types:["string"],style:{color:mn.string}},{types:["punctuation"],style:{color:mn.string}},{types:["selector","char","builtin","inserted"],style:{color:mn.char}},{types:["function"],style:{color:mn.function}},{types:["operator","entity","url","variable"],style:{color:mn.variable}},{types:["keyword"],style:{color:mn.keyword}},{types:["atrule","class-name"],style:{color:mn.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},J6=K6,W6={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},eA=W6,tA={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},nA=tA,rA={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},lA=rA,iA={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},aA=iA,oA={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},sA=oA,uA={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},C1=uA,cA={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},fA=cA,dA={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},hA=dA,pA={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},gA=pA,mA={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},yA=mA,bA={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},xA=bA,vA={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},wA=vA,SA={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},kA=SA,EA=t=>j.useCallback(r=>{var l=r,{className:a,style:s,line:u}=l,c=E1(l,["className","style","line"]);const d=Gs(Pn({},c),{className:w1("token-line",a)});return typeof t=="object"&&"plain"in t&&(d.style=t.plain),typeof s=="object"&&(d.style=Pn(Pn({},d.style||{}),s)),d},[t]),CA=t=>{const r=j.useCallback(({types:l,empty:a})=>{if(t!=null){{if(l.length===1&&l[0]==="plain")return a!=null?{display:"inline-block"}:void 0;if(l.length===1&&a!=null)return t[l[0]]}return Object.assign(a!=null?{display:"inline-block"}:{},...l.map(s=>t[s]))}},[t]);return j.useCallback(l=>{var a=l,{token:s,className:u,style:c}=a,d=E1(a,["token","className","style"]);const p=Gs(Pn({},d),{className:w1("token",...s.types,u),children:s.content,style:r(s)});return c!=null&&(p.style=Pn(Pn({},p.style||{}),c)),p},[r])},AA=/\r\n|\r|\n/,Ky=t=>{t.length===0?t.push({types:["plain"],content:`
|
|
44
|
-
`,empty:!0}):t.length===1&&t[0].content===""&&(t[0].content=`
|
|
45
|
-
`,t[0].empty=!0)},Jy=(t,r)=>{const l=t.length;return l>0&&t[l-1]===r?t:t.concat(r)},TA=t=>{const r=[[]],l=[t],a=[0],s=[t.length];let u=0,c=0,d=[];const p=[d];for(;c>-1;){for(;(u=a[c]++)<s[c];){let h,y=r[c];const x=l[c][u];if(typeof x=="string"?(y=c>0?y:["plain"],h=x):(y=Jy(y,x.type),x.alias&&(y=Jy(y,x.alias)),h=x.content),typeof h!="string"){c++,r.push(y),l.push(h),a.push(0),s.push(h.length);continue}const b=h.split(AA),w=b.length;d.push({types:y,content:b[0]});for(let k=1;k<w;k++)Ky(d),p.push(d=[]),d.push({types:y,content:b[k]})}c--,r.pop(),l.pop(),a.pop(),s.pop()}return Ky(d),p},Wy=TA,NA=({prism:t,code:r,grammar:l,language:a})=>j.useMemo(()=>{if(l==null)return Wy([r]);const s={code:r,grammar:l,language:a,tokens:[]};return t.hooks.run("before-tokenize",s),s.tokens=t.tokenize(r,l),t.hooks.run("after-tokenize",s),Wy(s.tokens)},[r,l,a,t]),RA=(t,r)=>{const{plain:l}=t,a=t.styles.reduce((s,u)=>{const{languages:c,style:d}=u;return c&&!c.includes(r)||u.types.forEach(p=>{const h=Pn(Pn({},s[p]),d);s[p]=h}),s},{});return a.root=l,a.plain=Gs(Pn({},l),{backgroundColor:void 0}),a},_A=RA,LA=({children:t,language:r,code:l,theme:a,prism:s})=>{const u=r.toLowerCase(),c=_A(a,u),d=EA(c),p=CA(c),h=s.languages[u],y=NA({prism:s,language:u,code:l,grammar:h});return t({tokens:y,className:`prism-code language-${u}`,style:c!=null?c.root:{},getLineProps:d,getTokenProps:p})},jA=t=>j.createElement(LA,Gs(Pn({},t),{prism:t.prism||se,theme:t.theme||C1,code:t.code,language:t.language}));const DA="modulepreload",OA=function(t){return"/"+t},eb={},Ft=function(r,l,a){let s=Promise.resolve();if(l&&l.length>0){let p=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");s=p(l.map(h=>{if(h=OA(h),h in eb)return;eb[h]=!0;const y=h.endsWith(".css"),m=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const x=document.createElement("link");if(x.rel=y?"stylesheet":DA,y||(x.as="script"),x.crossOrigin="",x.href=h,d&&x.setAttribute("nonce",d),document.head.appendChild(x),y)return new Promise((b,w)=>{x.addEventListener("load",b),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function u(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return s.then(c=>{for(const d of c||[])d.status==="rejected"&&u(d.reason);return r().catch(u)})},fs={};function A1(t){if(!fs[t]){const l={bash:()=>Ft(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>Ft(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>Ft(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await Ft(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),Ft(()=>import("./prism-php-CNhhoL1S.js").then(a=>a.p),[])),sql:()=>Ft(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>Ft(()=>import("./prism-ruby-CzbEXQlm.js").then(a=>a.p),[]),java:()=>Ft(()=>import("./prism-java-k7EVmN3s.js").then(a=>a.p),[]),scala:async()=>(await A1("java"),Ft(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>Ft(()=>import("./prism-solidity-Cfi9Y6r5.js").then(a=>a.p),[]),vim:()=>Ft(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>Ft(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>Ft(()=>import("./prism-csharp-D3NlTryR.js").then(a=>a.p),[]),protobuf:()=>Ft(()=>import("./prism-protobuf-DiQ_z8B5.js"),[]),hcl:()=>Ft(()=>import("./prism-hcl-DZVjazu2.js").then(a=>a.p),[]),perl:()=>Ft(()=>import("./prism-perl-B1S0YO1W.js").then(a=>a.p),[])}[t];if(!l)return console.warn(`No loader available for language: ${t}`),Promise.reject(new Error(`Unsupported language: ${t}`));fs[t]=l().then(()=>{}).catch(a=>{throw delete fs[t],console.warn(`Failed to load language: ${t}`,a),a})}return fs[t]}typeof global<"u"?global.Prism=se:typeof window<"u"&&(window.Prism=se);const tb=["markup","html","xml","svg","javascript","js","typescript","ts","jsx","tsx","css","c","cpp","swift","kotlin","objectivec","reason","rust","go","graphql","yaml","yml","json","markdown","md","python","py"];function MA(t,r){const[l,a]=j.useState(()=>tb.includes(r)||!!se.languages[r]);return j.useEffect(()=>{if(!l){if(tb.includes(r)){a(!0);return}A1(r).then(()=>{a(!0)}).catch(()=>{a(!1)})}},[r,l]),{ready:l,actualLang:l?r:"text"}}const nb=[{id:"github",label:"GitHub Light"},{id:"vsLight",label:"VS Light"},{id:"oneLight",label:"One Light"},{id:"gruvboxMaterialLight",label:"Gruvbox Material Light"},{id:"nightOwlLight",label:"Night Owl Light"}],rb=[{id:"vsDark",label:"VS Dark"},{id:"oneDark",label:"One Dark"},{id:"gruvboxMaterialDark",label:"Gruvbox Material Dark"},{id:"nightOwl",label:"Night Owl"},{id:"dracula",label:"Dracula"},{id:"okaidia",label:"Okaidia"}];function zA(t){return{...t,styles:t.styles.map(r=>({...r,style:{...r.style,background:void 0,backgroundColor:void 0}}))}}function BA(t){let r;switch(t){case"github":r=bn.github;break;case"vsLight":r=bn.vsLight;break;case"oneLight":r=bn.oneLight;break;case"gruvboxMaterialLight":r=bn.gruvboxMaterialLight;break;case"nightOwlLight":r=bn.nightOwlLight;break;case"vsDark":r=bn.vsDark;break;case"oneDark":r=bn.oneDark;break;case"gruvboxMaterialDark":r=bn.gruvboxMaterialDark;break;case"nightOwl":r=bn.nightOwl;break;case"dracula":r=bn.dracula;break;case"okaidia":r=bn.okaidia;break;default:r=bn.vsDark}return zA(r)}function FA(t){const r=t2(t).toLowerCase(),l=Ld(t),a={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};return a[r]?a[r]:{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",json:"json",css:"css",scss:"css",html:"html",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",md:"markdown",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",php:"php",sql:"sql",xml:"xml",swift:"swift",kt:"kotlin",scala:"scala",svelte:"svelte",r:"r",lua:"lua",perl:"perl",pl:"perl",pm:"perl",dockerfile:"docker",makefile:"makefile",gitignore:"git",env:"bash",conf:"nginx",ini:"ini",toml:"toml",sol:"solidity",vim:"vim",dart:"dart",cs:"csharp",proto:"protobuf",tf:"hcl",tfvars:"hcl",hcl:"hcl"}[l||""]||"text"}const T1=Dn.memo(function({code:r,language:l,className:a,syntaxTheme:s="vsDark",filename:u="",renderToken:c,onMouseOver:d,onMouseOut:p}){const h=l||(u?FA(u):"text"),{actualLang:y}=MA(r,h),m=BA(s),x=j.useCallback(({style:b,tokens:w,getLineProps:k,getTokenProps:A})=>v.jsx("span",{className:a,style:{...b,background:"transparent",backgroundColor:"transparent"},onMouseOver:d,onMouseOut:p,children:w.map((E,C)=>v.jsx("span",{...k({line:E}),children:E.map((N,B)=>c?c(N,B,A):v.jsx("span",{...A({token:N})},B))},C))}),[a,d,p,c]);return v.jsx(jA,{code:r,language:y,theme:m,prism:se,children:x})});class IA{diff(r,l,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const u=this.castInput(r,a),c=this.castInput(l,a),d=this.removeEmpty(this.tokenize(u,a)),p=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,p,a,s)}diffWithOptionsObj(r,l,a,s){var u;const c=C=>{if(C=this.postProcess(C,a),s){setTimeout(function(){s(C)},0);return}else return C},d=l.length,p=r.length;let h=1,y=d+p;a.maxEditLength!=null&&(y=Math.min(y,a.maxEditLength));const m=(u=a.timeout)!==null&&u!==void 0?u:1/0,x=Date.now()+m,b=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(b[0],l,r,0,a);if(b[0].oldPos+1>=p&&w+1>=d)return c(this.buildValues(b[0].lastComponent,l,r));let k=-1/0,A=1/0;const E=()=>{for(let C=Math.max(k,-h);C<=Math.min(A,h);C+=2){let N;const B=b[C-1],G=b[C+1];B&&(b[C-1]=void 0);let D=!1;if(G){const Z=G.oldPos-C;D=G&&0<=Z&&Z<d}const U=B&&B.oldPos+1<p;if(!D&&!U){b[C]=void 0;continue}if(!U||D&&B.oldPos<G.oldPos?N=this.addToPath(G,!0,!1,0,a):N=this.addToPath(B,!1,!0,1,a),w=this.extractCommon(N,l,r,C,a),N.oldPos+1>=p&&w+1>=d)return c(this.buildValues(N.lastComponent,l,r))||!0;b[C]=N,N.oldPos+1>=p&&(A=Math.min(A,C-1)),w+1>=d&&(k=Math.max(k,C+1))}h++};if(s)(function C(){setTimeout(function(){if(h>y||Date.now()>x)return s(void 0);E()||C()},0)})();else for(;h<=y&&Date.now()<=x;){const C=E();if(C)return C}}addToPath(r,l,a,s,u){const c=r.lastComponent;return c&&!u.oneChangePerToken&&c.added===l&&c.removed===a?{oldPos:r.oldPos+s,lastComponent:{count:c.count+1,added:l,removed:a,previousComponent:c.previousComponent}}:{oldPos:r.oldPos+s,lastComponent:{count:1,added:l,removed:a,previousComponent:c}}}extractCommon(r,l,a,s,u){const c=l.length,d=a.length;let p=r.oldPos,h=p-s,y=0;for(;h+1<c&&p+1<d&&this.equals(a[p+1],l[h+1],u);)h++,p++,y++,u.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return y&&!u.oneChangePerToken&&(r.lastComponent={count:y,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=p,h}equals(r,l,a){return a.comparator?a.comparator(r,l):r===l||!!a.ignoreCase&&r.toLowerCase()===l.toLowerCase()}removeEmpty(r){const l=[];for(let a=0;a<r.length;a++)r[a]&&l.push(r[a]);return l}castInput(r,l){return r}tokenize(r,l){return Array.from(r)}join(r){return r.join("")}postProcess(r,l){return r}get useLongestToken(){return!1}buildValues(r,l,a){const s=[];let u;for(;r;)s.push(r),u=r.previousComponent,delete r.previousComponent,r=u;s.reverse();const c=s.length;let d=0,p=0,h=0;for(;d<c;d++){const y=s[d];if(y.removed)y.value=this.join(a.slice(h,h+y.count)),h+=y.count;else{if(!y.added&&this.useLongestToken){let m=l.slice(p,p+y.count);m=m.map(function(x,b){const w=a[h+b];return w.length>x.length?w:x}),y.value=this.join(m)}else y.value=this.join(l.slice(p,p+y.count));p+=y.count,y.added||(h+=y.count)}}return s}}function lb(t,r){let l;for(l=0;l<t.length&&l<r.length;l++)if(t[l]!=r[l])return t.slice(0,l);return t.slice(0,l)}function ib(t,r){let l;if(!t||!r||t[t.length-1]!=r[r.length-1])return"";for(l=0;l<t.length&&l<r.length;l++)if(t[t.length-(l+1)]!=r[r.length-(l+1)])return t.slice(-l);return t.slice(-l)}function dd(t,r,l){if(t.slice(0,r.length)!=r)throw Error(`string ${JSON.stringify(t)} doesn't start with prefix ${JSON.stringify(r)}; this is a bug`);return l+t.slice(r.length)}function hd(t,r,l){if(!r)return t+l;if(t.slice(-r.length)!=r)throw Error(`string ${JSON.stringify(t)} doesn't end with suffix ${JSON.stringify(r)}; this is a bug`);return t.slice(0,-r.length)+l}function Na(t,r){return dd(t,r,"")}function ds(t,r){return hd(t,r,"")}function ab(t,r){return r.slice(0,UA(t,r))}function UA(t,r){let l=0;t.length>r.length&&(l=t.length-r.length);let a=r.length;t.length<r.length&&(a=t.length);const s=Array(a);let u=0;s[0]=0;for(let c=1;c<a;c++){for(r[c]==r[u]?s[c]=s[u]:s[c]=u;u>0&&r[c]!=r[u];)u=s[u];r[c]==r[u]&&u++}u=0;for(let c=l;c<t.length;c++){for(;u>0&&t[c]!=r[u];)u=s[u];t[c]==r[u]&&u++}return u}function Ra(t){let r;for(r=t.length-1;r>=0&&t[r].match(/\s/);r--);return t.substring(r+1)}function Yr(t){const r=t.match(/^\s*/);return r?r[0]:""}const ob="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",HA=new RegExp(`[${ob}]+|\\s+|[^${ob}]`,"ug");class qA extends IA{equals(r,l,a){return a.ignoreCase&&(r=r.toLowerCase(),l=l.toLowerCase()),r.trim()===l.trim()}tokenize(r,l={}){let a;if(l.intlSegmenter){const c=l.intlSegmenter;if(c.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');a=[];for(const d of Array.from(c.segment(r))){const p=d.segment;a.length&&/\s/.test(a[a.length-1])&&/\s/.test(p)?a[a.length-1]+=p:a.push(p)}}else a=r.match(HA)||[];const s=[];let u=null;return a.forEach(c=>{/\s/.test(c)?u==null?s.push(c):s.push(s.pop()+c):u!=null&&/\s/.test(u)?s[s.length-1]==u?s.push(s.pop()+c):s.push(u+c):s.push(c),u=c}),s}join(r){return r.map((l,a)=>a==0?l:l.replace(/^\s+/,"")).join("")}postProcess(r,l){if(!r||l.oneChangePerToken)return r;let a=null,s=null,u=null;return r.forEach(c=>{c.added?s=c:c.removed?u=c:((s||u)&&sb(a,u,s,c),a=c,s=null,u=null)}),(s||u)&&sb(a,u,s,null),r}}const VA=new qA;function N1(t,r,l){return VA.diff(t,r,l)}function sb(t,r,l,a){if(r&&l){const s=Yr(r.value),u=Ra(r.value),c=Yr(l.value),d=Ra(l.value);if(t){const p=lb(s,c);t.value=hd(t.value,c,p),r.value=Na(r.value,p),l.value=Na(l.value,p)}if(a){const p=ib(u,d);a.value=dd(a.value,d,p),r.value=ds(r.value,p),l.value=ds(l.value,p)}}else if(l){if(t){const s=Yr(l.value);l.value=l.value.substring(s.length)}if(a){const s=Yr(a.value);a.value=a.value.substring(s.length)}}else if(t&&a){const s=Yr(a.value),u=Yr(r.value),c=Ra(r.value),d=lb(s,u);r.value=Na(r.value,d);const p=ib(Na(s,d),c);r.value=ds(r.value,p),a.value=dd(a.value,s,p),t.value=hd(t.value,s,s.slice(0,s.length-p.length))}else if(a){const s=Yr(a.value),u=Ra(r.value),c=ab(u,s);r.value=ds(r.value,c)}else if(t){const s=Ra(t.value),u=Yr(r.value),c=ab(s,u);r.value=Na(r.value,c)}}function R1(t,r){const l=N1(t,r),a=[],s=[];for(const u of l)u.added?s.push({value:u.value,type:"added"}):u.removed?a.push({value:u.value,type:"removed"}):(a.push({value:u.value,type:"unchanged"}),s.push({value:u.value,type:"unchanged"}));return{oldSegments:a,newSegments:s}}function _1(t,r){if(!t.trim()||!r.trim()||t===r)return!1;const l=N1(t,r);let a=0,s=0;for(const c of l)s+=c.value.length,!c.added&&!c.removed&&(a+=c.value.length);return a/s>=.2}function L1({onSubmit:t,onCancel:r}){const[l,a]=j.useState(""),[s,u]=j.useState(!1),c=async h=>{if(h.preventDefault(),!!l.trim()){u(!0);try{await t(l.trim()),a("")}catch(y){console.error("Failed to submit comment:",y)}finally{u(!1)}}},d=h=>{h.key==="Enter"&&(h.metaKey||h.ctrlKey)?c(h):h.key==="Escape"&&r()},p=/Macintosh|Mac OS X/.test(navigator.userAgent)?"Cmd":"Ctrl";return v.jsxs("form",{className:"m-2 mx-3 p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400",onSubmit:c,"data-empty":!l.trim(),children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-yellow-path-text)"},children:"Add a comment"}),v.jsxs("span",{className:"text-xs text-github-text-muted",children:[p,"+Enter to submit • Escape to cancel"]})]}),v.jsx("textarea",{className:"w-full min-h-[60px] mb-2 resize-y bg-github-bg-secondary border border-github-border rounded px-3 py-2 text-github-text-primary text-sm leading-6 focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-600/30 focus:min-h-[80px] disabled:opacity-50",value:l,onChange:h=>a(h.target.value),onKeyDown:d,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:s}),v.jsxs("div",{className:"flex gap-2 justify-end",children:[v.jsx("button",{type:"button",onClick:r,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all disabled:opacity-50",disabled:s,children:"Cancel"}),v.jsx("button",{type:"submit",className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:h=>{h.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",h.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:h=>{h.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",h.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!l.trim()||s,children:s?"Submitting...":"Submit"})]})]})}const Es=Dn.memo(({onMouseDown:t,onMouseUp:r,title:l="Add a comment"})=>v.jsx("button",{className:"absolute -right-2 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10","data-comment-button":"true",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",a.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",a.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:t,onMouseUp:r,title:l,children:v.jsx(fx,{className:"w-4 h-4"})}));Es.displayName="CommentButton";const PA=2,$A=100;function GA(t){return!(t.length<PA||t.length>$A)}function ub(t){return t.toLowerCase()}function cb(t){const r=t.trim();return r?r.match(/^\w+$/)!==null&&GA(r):!1}const YA=200,j1=j.createContext(void 0);function XA({children:t}){const[r,l]=j.useState(null),a=j.useRef(null),s=j.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null)},[]),u=j.useCallback(h=>{const y=h.target;if(!y.classList.contains("word-token"))return;s();const m=y.getAttribute("data-word");m&&(a.current=setTimeout(()=>{l(m)},YA))},[s]),c=j.useCallback(()=>{s(),l(null)},[s]),d=j.useCallback(h=>r?ub(h)===ub(r):!1,[r]);j.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]);const p={highlightedWord:r,handleMouseOver:u,handleMouseOut:c,isWordHighlighted:d};return v.jsx(j1.Provider,{value:p,children:t})}function ZA(){const t=j.useContext(j1);if(!t)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return t}const pd=Dn.memo(function(r){const{handleMouseOver:l,handleMouseOut:a,isWordHighlighted:s}=ZA(),u=j.useCallback((c,d,p)=>{const h=p({token:c}),y=c.content.split(/( +)/);if(y.length===1&&y[0]&&!cb(y[0]))return v.jsx("span",{...h},d);const m=y.map((x,b)=>{if(!x)return null;if(cb(x)){const w=x.trim(),k=s(w);return v.jsx("span",{className:`word-token ${k?"word-highlight":""}`,"data-word":w,children:x},`${d}-${b}`)}return v.jsx("span",{children:x},`${d}-${b}`)});return v.jsx("span",{...h,children:m},d)},[s]);return v.jsx(T1,{...r,renderToken:u,onMouseOver:l,onMouseOut:a})}),gd=Dn.memo(function({segments:r,className:l=""}){const a=j.useMemo(()=>r.map((s,u)=>{const c=s.type==="added"?"word-diff-added":s.type==="removed"?"word-diff-removed":"";return v.jsx("span",{className:c,children:s.value},u)}),[r]);return v.jsx("span",{className:l,children:a})}),QA=t=>{if("isExpanded"in t&&t.isExpanded)return"bg-github-bg-tertiary/80";switch(t.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},KA=t=>{switch(t.type){case"add":return"+";case"delete":return"-";default:return" "}},D1=Dn.memo(({line:t,index:r,lineId:l,isCurrentLine:a=!1,hoveredLineIndex:s,selectedLineStyle:u,onMouseEnter:c,onMouseLeave:d,onMouseMove:p,onCommentButtonMouseDown:h,onCommentButtonMouseUp:y,syntaxTheme:m,onClick:x,filename:b,diffSegments:w})=>{const k=t.newLineNumber||t.oldLineNumber,A=s===r&&k,E=a?"keyboard-cursor":"";return v.jsxs("tr",{id:l,className:`group ${QA(t)} relative ${u} ${E} cursor-pointer`,onMouseEnter:c,onMouseLeave:d,onMouseMove:p,onClick:x,children:[v.jsx("td",{className:"w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative",children:t.oldLineNumber||""}),v.jsxs("td",{className:"w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible",children:[v.jsx("span",{children:t.newLineNumber||""}),A&&v.jsx(Es,{onMouseDown:h,onMouseUp:y})]}),v.jsx("td",{className:"p-0 w-full relative align-top",children:v.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[v.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${t.type==="add"?"text-github-accent bg-diff-addition-bg":t.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:KA(t)}),w?v.jsx(gd,{segments:w,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):v.jsx(pd,{code:t.content,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:m,filename:b})]})})]})});D1.displayName="DiffLineRow";const fb=t=>t!==void 0&&"isExpanded"in t&&t.isExpanded===!0,db=(t,r)=>r?"bg-github-bg-tertiary/80":t?.type==="delete"?"bg-diff-deletion-bg":t?.type==="add"?"bg-diff-addition-bg":t?.type==="normal"?"bg-transparent":"bg-github-bg-secondary";function JA({chunk:t,chunkIndex:r,comments:l,onAddComment:a,onGeneratePrompt:s,onRemoveComment:u,onUpdateComment:c,syntaxTheme:d,cursor:p=null,fileIndex:h=0,onLineClick:y,commentTrigger:m,onCommentTriggerHandled:x,filename:b}){const[w,k]=j.useState(null),[A,E]=j.useState(null),[C,N]=j.useState(!1),[B,G]=j.useState(null),[D,U]=j.useState(null);j.useEffect(()=>{if(m?.lineIndex!==void 0){const L=t.lines[m.lineIndex];if(L&&L.type!=="delete"){const z=L.newLineNumber;z&&(G({side:"new",lineNumber:z}),x?.())}}},[m,t.lines,x]),j.useEffect(()=>{if(C){const L=()=>{N(!1),k(null),E(null)};return document.addEventListener("mouseup",L),()=>{document.removeEventListener("mouseup",L)}}},[C]);const Z=j.useCallback((L,z)=>{B?.side===L&&B?.lineNumber===z?G(null):G({side:L,lineNumber:z})},[B]),P=j.useCallback(()=>{G(null)},[]),M=j.useCallback(async L=>{B!==null&&(await a(B.lineNumber,L,void 0,B.side),G(null))},[B,a]),q=(L,z)=>l.filter(I=>{const K=Array.isArray(I.line)?I.line[1]===L:I.line===L,R=!I.side||I.side===z;return K&&R}),$=L=>L.oldLine?.type==="delete"&&L.newLine?.type==="add"?L.newLineNumber?"right":"left":L.oldLine?.type==="delete"?"left":L.newLine?.type==="add"?"right":"full",J=(L,z)=>{const I=L==="old"?z.oldLineNumber:z.newLineNumber;if(!I)return"";if(C&&w&&A&&w.side===L&&A.side===L){const K=Math.min(w.lineNumber,A.lineNumber),R=Math.max(w.lineNumber,A.lineNumber);if(I>=K&&I<=R){let O="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return I===K&&(O+=" after:border-t-2"),I===R&&(O+=" after:border-b-2"),O}}if(B&&B.side===L){const K=Array.isArray(B.lineNumber)?B.lineNumber:[B.lineNumber,B.lineNumber],R=K[0],O=K[1];if(R!==void 0&&O!==void 0&&I>=R&&I<=O)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},F=j.useCallback(L=>{const z=[];let I=t.oldStart,K=t.newStart,R=0;for(;R<L.length;){const O=L[R];if(!O){R++;continue}if(O.type==="normal")z.push({oldLine:O,newLine:{...O},oldLineNumber:O.oldLineNumber??I,newLineNumber:O.newLineNumber??K,oldLineOriginalIndex:R,newLineOriginalIndex:R}),I++,K++,R++;else if(O.type==="delete"){let V=R+1;for(;V<L.length&&L[V]?.type==="delete";)V++;const T=L.slice(R,V),le=R,ce=[],fe=V;for(;V<L.length&&L[V]?.type==="add";){const ge=L[V];ge&&ce.push(ge),V++}const de=Math.max(T.length,ce.length);for(let ge=0;ge<de;ge++){const he=T[ge],be=ce[ge];let Re;he&&be&&_1(he.content,be.content)&&(Re=R1(he.content,be.content)),z.push({oldLine:he,newLine:be,oldLineNumber:he?he.oldLineNumber??I+ge:void 0,newLineNumber:be?be.newLineNumber??K+ge:void 0,oldLineOriginalIndex:he?le+ge:void 0,newLineOriginalIndex:be?fe+ge:void 0,wordLevelDiff:Re})}I+=T.length,K+=ce.length,R=V}else O.type==="add"&&(z.push({newLine:O,newLineNumber:O.newLineNumber??K,newLineOriginalIndex:R}),K++,R++)}return z},[t.oldStart,t.newStart]),X=j.useMemo(()=>F(t.lines),[t.lines,F]);return v.jsx("div",{className:"bg-github-bg-primary overflow-hidden",children:v.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:v.jsx("tbody",{children:X.map((L,z)=>{const I=L.oldLineNumber?q(L.oldLineNumber,"old"):[],K=L.newLineNumber?q(L.newLineNumber,"new"):[],R=[...I,...K],O=L.oldLineOriginalIndex??-1,V=L.newLineOriginalIndex??-1,T=p?p.side==="left"&&O>=0?p.chunkIndex===r&&p.lineIndex===O:p.side==="right"&&V>=0?p.chunkIndex===r&&p.lineIndex===V:!1:!1,le=O>=0?`file-${h}-chunk-${r}-line-${O}-left`:void 0,ce=V>=0?`file-${h}-chunk-${r}-line-${V}-right`:void 0,fe=T&&p?.side==="left",de=T&&p?.side==="right",ge="keyboard-cursor";return v.jsxs(Dn.Fragment,{children:[v.jsxs("tr",{className:"group cursor-pointer",onClick:he=>{if(!C){const be=he.target,Re=be.closest("td:nth-child(1)")||be.closest("td:nth-child(2)"),xe=be.closest("td:nth-child(3)")||be.closest("td:nth-child(4)");Re&&O>=0?y?.(h,r,O,"left"):xe&&V>=0&&y?.(h,r,V,"right")}},onMouseEnter:he=>{const be=he.target,Re=be.closest("td:nth-child(1)")||be.closest("td:nth-child(2)"),xe=be.closest("td:nth-child(3)")||be.closest("td:nth-child(4)");Re&&L.oldLineNumber?U({side:"old",lineNumber:L.oldLineNumber}):xe&&L.newLineNumber&&U({side:"new",lineNumber:L.newLineNumber})},onMouseMove:he=>{const be=he.target,Re=be.closest("td:nth-child(1)")||be.closest("td:nth-child(2)"),xe=be.closest("td:nth-child(3)")||be.closest("td:nth-child(4)");Re&&L.oldLineNumber?(D?.side!=="old"||D?.lineNumber!==L.oldLineNumber)&&U({side:"old",lineNumber:L.oldLineNumber}):xe&&L.newLineNumber&&(D?.side!=="new"||D?.lineNumber!==L.newLineNumber)&&U({side:"new",lineNumber:L.newLineNumber}),C&&w&&(w.side==="old"&&L.oldLineNumber?E({side:"old",lineNumber:L.oldLineNumber}):w.side==="new"&&L.newLineNumber&&E({side:"new",lineNumber:L.newLineNumber}))},onMouseLeave:()=>U(null),children:[v.jsxs("td",{id:le,className:`w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${fe?ge:""}`,children:[v.jsx("span",{children:L.oldLineNumber||""}),D?.side==="old"&&D?.lineNumber===L.oldLineNumber&&v.jsx(Es,{onMouseDown:he=>{he.stopPropagation(),L.oldLineNumber&&(k({side:"old",lineNumber:L.oldLineNumber}),E({side:"old",lineNumber:L.oldLineNumber}),N(!0))},onMouseUp:he=>{if(he.stopPropagation(),!L.oldLineNumber||!w){N(!1),k(null),E(null);return}const be=A&&A.side==="old"?A.lineNumber:L.oldLineNumber;if(w.side!=="old"||w.lineNumber===be)Z("old",L.oldLineNumber);else{const Re=Math.min(w.lineNumber,be),xe=Math.max(w.lineNumber,be);Z("old",[Re,xe])}N(!1),k(null),E(null)}})]}),v.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${db(L.oldLine,fb(L.oldLine))} ${J("old",L)} ${fe?ge:""}`,children:L.oldLine&&v.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:L.wordLevelDiff?v.jsx(gd,{segments:L.wordLevelDiff.oldSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):v.jsx(pd,{code:L.oldLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:d,filename:b})})}),v.jsxs("td",{id:ce,className:`w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${de?ge:""}`,children:[v.jsx("span",{children:L.newLineNumber||""}),D?.side==="new"&&D?.lineNumber===L.newLineNumber&&v.jsx(Es,{onMouseDown:he=>{he.stopPropagation(),L.newLineNumber&&(k({side:"new",lineNumber:L.newLineNumber}),E({side:"new",lineNumber:L.newLineNumber}),N(!0))},onMouseUp:he=>{if(he.stopPropagation(),!L.newLineNumber||!w){N(!1),k(null),E(null);return}const be=A&&A.side==="new"?A.lineNumber:L.newLineNumber;if(w.side!=="new"||w.lineNumber===be)Z("new",L.newLineNumber);else{const Re=Math.min(w.lineNumber,be),xe=Math.max(w.lineNumber,be);Z("new",[Re,xe])}N(!1),k(null),E(null)}})]}),v.jsx("td",{className:`w-1/2 p-0 align-top relative ${db(L.newLine,fb(L.newLine))} ${J("new",L)} ${de?ge:""}`,children:L.newLine&&v.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:L.wordLevelDiff?v.jsx(gd,{segments:L.wordLevelDiff.newSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):v.jsx(pd,{code:L.newLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:d,filename:b})})})]}),R.length>0&&v.jsx("tr",{className:"bg-github-bg-secondary",children:v.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:R.map(he=>{const be=he.side||"new";let Re;return be==="old"&&L.oldLineNumber?Re="left":be==="new"&&L.newLineNumber?Re="right":Re=$(L),v.jsx("div",{className:`flex ${Re==="left"?"justify-start":Re==="right"?"justify-end":"justify-center"}`,children:v.jsx("div",{className:`${Re==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:v.jsx(_d,{comment:he,onGeneratePrompt:s,onRemoveComment:u,onUpdateComment:c})})},he.id)})})}),B&&(B.side==="old"&&B.lineNumber===L.oldLineNumber||B.side==="new"&&B.lineNumber===L.newLineNumber||Array.isArray(B.lineNumber)&&(B.side==="new"&&B.lineNumber[1]===L.newLineNumber||B.side==="old"&&B.lineNumber[1]===L.oldLineNumber))&&v.jsx("tr",{className:"bg-github-bg-secondary",children:v.jsx("td",{colSpan:4,className:"p-0",children:v.jsx("div",{className:`flex ${B.side==="old"?"justify-start":B.side==="new"?"justify-end":"justify-center"}`,children:v.jsx("div",{className:"w-1/2",children:v.jsx(L1,{onSubmit:M,onCancel:P})})})})})]},z)})})})})}const WA=j.memo(function({chunk:r,chunkIndex:l,comments:a,onAddComment:s,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:d,mode:p="inline",syntaxTheme:h,cursor:y=null,fileIndex:m=0,onLineClick:x,commentTrigger:b,onCommentTriggerHandled:w,filename:k}){const[A,E]=j.useState(null),[C,N]=j.useState(null),[B,G]=j.useState(!1),[D,U]=j.useState(null),[Z,P]=j.useState(null);j.useEffect(()=>{if(b?.lineIndex!==void 0){const z=r.lines[b.lineIndex];if(z){const I=z.newLineNumber||z.oldLineNumber,K=z.type==="delete"?"old":"new";I&&(U({side:K,lineNumber:I}),w?.())}}},[b,r.lines,w]),j.useEffect(()=>{if(B){const z=()=>{G(!1),E(null),N(null)};return document.addEventListener("mouseup",z),()=>{document.removeEventListener("mouseup",z)}}},[B]);const M=j.useCallback((z,I)=>{D?.side===z&&D?.lineNumber===I?U(null):U({side:z,lineNumber:I})},[D]),q=j.useCallback(()=>{U(null)},[]),$=j.useCallback(async z=>{D!==null&&(await s(D.lineNumber,z,void 0,D.side),U(null))},[D,s]),J=(z,I)=>a.filter(K=>{const R=Array.isArray(K.line)?K.line[1]===z:K.line===z,O=!K.side||K.side===I;return R&&O}),F=z=>{if(p==="inline")return"full";switch(z.type){case"delete":return"left";case"add":return"right";default:return"full"}},X=(z,I)=>{if(!z)return"";if(B&&A&&C){const K=Math.min(A,C),R=Math.max(A,C);if(z>=K&&z<=R){let O="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return z===K&&(O+=" after:border-t-2"),z===R&&(O+=" after:border-b-2"),O}}if(D&&D.side===I){const K=Array.isArray(D.lineNumber)?D.lineNumber[0]:D.lineNumber,R=Array.isArray(D.lineNumber)?D.lineNumber[1]:D.lineNumber;if(z>=K&&z<=R)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},L=j.useMemo(()=>{const z=new Map,I=r.lines;let K=0;for(;K<I.length;){const R=I[K];if(!R){K++;continue}if(R.type==="delete"){let O=K+1;for(;O<I.length&&I[O]?.type==="delete";)O++;const V=I.slice(K,O),T=K,le=[];for(;O<I.length&&I[O]?.type==="add";){const fe=I[O];fe&&le.push({line:fe,index:O}),O++}const ce=Math.max(V.length,le.length);for(let fe=0;fe<ce;fe++){const de=V[fe],ge=le[fe];if(de&&ge&&_1(de.content,ge.line.content)){const he=R1(de.content,ge.line.content);z.set(T+fe,he.oldSegments),z.set(ge.index,he.newSegments)}}K=O}else K++}return z},[r.lines]);return p==="side-by-side"?v.jsx(JA,{chunk:r,chunkIndex:l,comments:a,onAddComment:s,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:d,syntaxTheme:h,cursor:y,fileIndex:m,onLineClick:x,filename:k,commentTrigger:b,onCommentTriggerHandled:w}):v.jsx("div",{className:"bg-github-bg-primary",children:v.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:v.jsx("tbody",{children:r.lines.map((z,I)=>{const K=z.newLineNumber||z.oldLineNumber||0,R=z.type==="delete"?"old":"new",O=D?Array.isArray(D.lineNumber)?D.lineNumber[1]:D.lineNumber:null,V=z.type==="delete"?z.oldLineNumber:z.newLineNumber,T=z.type==="delete"?"old":"new",le=V?J(V,T):[],ce=`file-${m}-chunk-${l}-line-${I}`,fe=y&&y.chunkIndex===l&&y.lineIndex===I;return v.jsxs(Dn.Fragment,{children:[v.jsx(D1,{line:z,index:I,lineId:ce,isCurrentLine:fe||!1,hoveredLineIndex:Z,selectedLineStyle:X(z.newLineNumber||z.oldLineNumber,z.type==="delete"?"old":"new"),onMouseEnter:()=>{P(I)},onMouseLeave:()=>P(null),onMouseMove:()=>{if(B&&A){const de=z.newLineNumber||z.oldLineNumber;de&&N(de)}},onCommentButtonMouseDown:de=>{de.stopPropagation();const ge=z.newLineNumber||z.oldLineNumber;ge&&(E(ge),N(ge),G(!0))},onCommentButtonMouseUp:de=>{de.stopPropagation();const ge=z.newLineNumber||z.oldLineNumber,he=z.type==="delete"?"old":"new";if(!ge||!A){G(!1),E(null),N(null);return}const be=C||ge;if(A===be)M(he,ge);else{const Re=Math.min(A,be),xe=Math.max(A,be);M(he,[Re,xe])}G(!1),E(null),N(null)},syntaxTheme:h,filename:k,diffSegments:L.get(I),onClick:()=>{const de=z.type==="delete"?"left":"right";x?.(m,l,I,de)}}),le.map(de=>{const ge=F(z);return v.jsx("tr",{className:"bg-github-bg-secondary",children:v.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:v.jsx("div",{className:`flex ${ge==="left"?"justify-start":ge==="right"?"justify-end":"justify-center"}`,children:v.jsx("div",{className:`${ge==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:v.jsx(_d,{comment:de,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:d})})})})},de.id)}),D&&D.side===R&&O===K&&v.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:v.jsx("td",{colSpan:3,className:"p-0",children:v.jsx("div",{className:`flex ${F(z)==="left"?"justify-start":F(z)==="right"?"justify-end":"justify-center"}`,children:v.jsx("div",{className:`${F(z)==="full"?"w-full":"w-1/2"}`,children:v.jsx(L1,{onSubmit:$,onCancel:q})})})})})]},I)})})})})}),If=20,Uf=j.memo(function({direction:r,hiddenLines:l,onExpandUp:a,onExpandDown:s,onExpandAll:u,isLoading:c=!1}){if(l<=0)return null;const d=`${l} ${l===1?"line":"lines"}`,p=l<=If,h="grid-cols-[var(--line-number-width)_1fr]",y="flex flex-1 w-full items-center justify-center py-1 text-github-text-primary hover:bg-github-bg-secondary hover:text-github-text-muted transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",m=[];return p?m.push({key:"all",onClick:u,ariaLabel:`Expand all ${l} hidden lines`,icon:v.jsx(KS,{size:16,"aria-hidden":"true"})}):((r==="up"||r==="both")&&m.push({key:"up",onClick:a,ariaLabel:`Expand ${If} hidden lines above`,icon:v.jsx(aS,{size:12,"aria-hidden":"true",className:"translate-y-0.5"})}),(r==="down"||r==="both")&&m.push({key:"down",onClick:s,ariaLabel:`Expand ${If} hidden lines below`,icon:v.jsx(lS,{size:12,"aria-hidden":"true",className:"-translate-y-0.5"})})),v.jsxs("div",{className:`grid w-full border-l border-r border-github-border bg-github-bg-tertiary text-sm ${h}`,children:[v.jsx("div",{className:"flex flex-col items-stretch justify-center gap-0.5 border-r border-github-border",children:c?v.jsx(DS,{size:14,className:"animate-spin text-github-text-muted self-center","aria-hidden":"true"}):m.map(x=>v.jsx("button",{type:"button",onClick:x.onClick,disabled:c||!x.onClick,className:y,title:x.ariaLabel,"aria-label":x.ariaLabel,children:x.icon},x.key))}),v.jsx("div",{className:"flex items-center justify-start px-3 py-1.5 font-mono text-github-text-muted select-none",children:d})]})});function O1({file:t,comments:r,diffMode:l,syntaxTheme:a,cursor:s,fileIndex:u,mergedChunks:c,isExpandLoading:d,expandHiddenLines:p,expandAllBetweenChunks:h,onAddComment:y,onGeneratePrompt:m,onRemoveComment:x,onUpdateComment:b,onLineClick:w,commentTrigger:k,onCommentTriggerHandled:A}){const E=(C,N,B,G)=>C==="top"&&N.hiddenLinesBefore>0?v.jsx(Uf,{direction:"down",hiddenLines:N.hiddenLinesBefore,onExpandDown:()=>p(t,B,"up"),onExpandAll:()=>h(t,B,N.hiddenLinesBefore),isLoading:d}):C==="middle"&&N.hiddenLinesBefore>0?v.jsx(Uf,{direction:"both",hiddenLines:N.hiddenLinesBefore,onExpandUp:()=>p(t,B-1,"down"),onExpandDown:()=>p(t,B,"up"),onExpandAll:()=>h(t,B,N.hiddenLinesBefore),isLoading:d}):C==="bottom"&&N.hiddenLinesAfter>0?v.jsx(Uf,{direction:"up",hiddenLines:N.hiddenLinesAfter,onExpandUp:()=>p(t,G,"down"),onExpandAll:()=>p(t,G,"down",N.hiddenLinesAfter),isLoading:d}):null;return v.jsx(v.Fragment,{children:c.map((C,N)=>{const B=N===0,G=N===c.length-1,D=C.originalIndices[0]??0,U=C.originalIndices[C.originalIndices.length-1]??0;return v.jsxs(Dn.Fragment,{children:[B&&E("top",C,D,U),!B&&E("middle",C,D,U),v.jsx("div",{id:`chunk-${t.path.replace(/[^a-zA-Z0-9]/g,"-")}-${N}`,children:v.jsx(WA,{chunk:C,chunkIndex:N,comments:r,onAddComment:y,onGeneratePrompt:m,onRemoveComment:x,onUpdateComment:b,mode:l,syntaxTheme:a,cursor:s&&s.chunkIndex===N?s:null,fileIndex:u,onLineClick:w,commentTrigger:k&&k.chunkIndex===N?k:null,onCommentTriggerHandled:A,filename:t.path})}),G&&E("bottom",C,D,U)]},N)})})}const vi=["text-[26px] font-semibold","text-[22px] font-semibold","text-xl font-semibold","text-lg font-semibold","text-base font-semibold uppercase tracking-wide","text-base font-semibold"],eT=t=>t.type==="delete"||t.type==="remove",tT=t=>t.type==="normal"||t.type==="context",Cs=t=>/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(t.trim()),md=(t,r,l)=>{const a=t[t.length-1];if(a&&a.type===r){a.lines.push(l);return}t.push({type:r,lines:[l]})},Hf=(t,r)=>{r.forEach(l=>md(t,"delete",l)),r.length=0},nT=t=>{const r=[],l=[];let a=!1;return t.forEach(s=>{s.lines.forEach(u=>{if(!(u.type==="header"||u.type==="hunk")){if(eT(u)){l.push(u.content);return}if(u.type==="add"){l.length>0&&(Hf(r,l),a=!0),md(r,a?"change":"add",u.content);return}tT(u)&&(Hf(r,l),a=!1,md(r,"context",u.content))}}),Hf(r,l),a=!1}),r},rT=t=>Dn.isValidElement(t),lT=t=>Dn.isValidElement(t),yd=t=>t==null||typeof t=="boolean"?"":typeof t=="string"||typeof t=="number"?String(t):Array.isArray(t)?t.map(yd).join(""):rT(t)?yd(t.props.children):"",M1=t=>({h1:({children:r})=>v.jsx("h1",{className:`${vi[0]} mt-6 mb-2 first:mt-0`,children:r}),h2:({children:r})=>v.jsx("h2",{className:`${vi[1]} mt-6 mb-2 first:mt-0`,children:r}),h3:({children:r})=>v.jsx("h3",{className:`${vi[2]} mt-6 mb-2 first:mt-0`,children:r}),h4:({children:r})=>v.jsx("h4",{className:`${vi[3]} mt-6 mb-2 first:mt-0`,children:r}),h5:({children:r})=>v.jsx("h5",{className:`${vi[4]} mt-6 mb-2 first:mt-0`,children:r}),h6:({children:r})=>v.jsx("h6",{className:`${vi[5]} mt-6 mb-2 first:mt-0`,children:r}),p:({children:r})=>v.jsx("p",{className:"text-base leading-7",children:r}),ul:({children:r})=>v.jsx("ul",{className:"list-disc pl-6 text-base space-y-1",children:r}),ol:({children:r})=>v.jsx("ol",{className:"list-decimal pl-6 text-base space-y-1",children:r}),li:({children:r})=>v.jsx("li",{children:r}),blockquote:({children:r})=>v.jsx("blockquote",{className:"border-l-4 border-github-border pl-4 text-github-text-muted italic",children:r}),hr:()=>v.jsx("hr",{className:"border-github-border"}),a:({href:r,children:l})=>{const a=r??"";if(!a||!Cs(a))return v.jsx("span",{children:l});const s=a.startsWith("http");return v.jsx("a",{href:a,target:s?"_blank":void 0,rel:s?"noreferrer":void 0,className:"text-sky-400 hover:text-sky-300 underline underline-offset-4",children:l})},img:({src:r,alt:l})=>{const a=r??"";return!a||!Cs(a)?null:v.jsx("img",{src:a,alt:l??"",loading:"lazy",className:"max-w-full rounded border border-github-border"})},pre:({children:r})=>{const a=(Array.isArray(r)?r:[r]).find(lT),s=yd(a??r),c=/language-(\S+)/.exec(a?.props.className??"")?.[1];return s.trim()?v.jsx("pre",{className:"markdown-preview-code border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-sm",children:v.jsx(T1,{code:s.replace(/\n$/,""),language:c,syntaxTheme:t,className:"font-mono text-github-text-primary"})}):v.jsx("pre",{className:"markdown-preview-code border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-sm",children:r})},code:({className:r,children:l})=>r?v.jsx("code",{className:r,children:l}):v.jsx("code",{className:"px-1 py-0.5 rounded bg-github-bg-tertiary border border-github-border text-sm font-mono",children:l})}),iT=t=>{switch(t){case"add":return"border-l-4 border-diff-addition-border";case"delete":return"border-l-4 border-diff-deletion-border";case"change":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},aT=t=>/^\s*\[[^\]]+\]:\s+\S+/.test(t),oT=t=>/^\s*\[\^[^\]]+\]:\s+/.test(t),sT=t=>/^\s*<!--.*-->\s*$/.test(t),uT=t=>t.trim()===""||aT(t)||oT(t)||sT(t),cT=t=>t.every(uT),fT=({blocks:t,syntaxTheme:r})=>{const l=j.useMemo(()=>M1(r),[r]);return v.jsx("div",{className:"space-y-4",children:t.map((a,s)=>{const c=a.lines.join(`
|
|
46
|
-
`).trim();if(!c)return null;const d=cT(a.lines);return v.jsx("div",{className:`px-4 ${iT(a.type)}`,children:d?v.jsx("pre",{className:"whitespace-pre-wrap text-sm text-github-text-primary font-mono",children:c}):v.jsx(Zx,{remarkPlugins:[x1],urlTransform:p=>Cs(p)?p:"",components:l,children:c})},`preview-block-${s}`)})})},dT=({content:t,syntaxTheme:r})=>{const l=j.useMemo(()=>M1(r),[r]);return v.jsx("div",{className:"space-y-4",children:v.jsx(Zx,{remarkPlugins:[x1],urlTransform:a=>Cs(a)?a:"",components:l,children:t})})};function hT(t){const{file:r,baseCommitish:l,targetCommitish:a,mergedChunks:s,syntaxTheme:u}=t,[c,d]=j.useState("diff-preview"),[p,h]=j.useState(null),[y,m]=j.useState(!1),[x,b]=j.useState(null),[w,k]=j.useState(null),A=j.useMemo(()=>nT(s),[s]),E=j.useMemo(()=>!l&&!a?null:r.status==="added"?a?{path:r.path,ref:a}:null:r.status==="deleted"?l?{path:r.oldPath||r.path,ref:l}:null:a?{path:r.path,ref:a}:l?{path:r.oldPath||r.path,ref:l}:null,[l,a,r.path,r.oldPath,r.status]),C=j.useMemo(()=>E?`${E.ref}:${E.path}`:null,[E]);return j.useEffect(()=>{if(c!=="full-preview")return;if(!E||!C){h(null),k(null),b(null),m(!1);return}let N=!1;return(C!==w||!p)&&(async()=>{C!==w&&h(null),m(!0),b(null);try{const G=encodeURIComponent(E.path),D=await fetch(`/api/blob/${G}?ref=${encodeURIComponent(E.ref)}`);if(!D.ok)throw new Error(`Failed to fetch preview: ${D.statusText}`);const U=await D.text();N||(h(U),k(C))}catch(G){N||(h(null),k(null),b(G instanceof Error?G.message:"Failed to load preview"))}finally{N||m(!1)}})(),()=>{N=!0}},[p,w,c,E,C]),v.jsxs("div",{className:"bg-github-bg-primary",children:[v.jsx("div",{className:"flex items-center justify-between border-b border-github-border px-4 py-2",children:v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsxs("button",{onClick:()=>d("diff"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="diff"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Code Diff",children:[v.jsx(Nd,{size:14}),"Diff"]}),v.jsxs("button",{onClick:()=>d("diff-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="diff-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Diff Preview",children:[v.jsx(ay,{size:14}),"Diff Preview"]}),v.jsxs("button",{onClick:()=>d("full-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="full-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Full Preview",children:[v.jsx(ay,{size:14}),"Full Preview"]})]})}),c==="diff"&&v.jsx(O1,{...t}),c==="diff-preview"&&v.jsx("div",{className:"p-4",children:v.jsx(fT,{blocks:A,syntaxTheme:u})}),c==="full-preview"&&v.jsxs("div",{className:"p-4",children:[y&&v.jsx("div",{className:"text-sm text-github-text-muted mb-3",children:"Loading preview..."}),x&&v.jsx("div",{className:"text-sm text-github-danger mb-3",children:x}),!y&&!x&&p&&v.jsx(dT,{content:p,syntaxTheme:u}),!y&&!x&&!p&&v.jsx("div",{className:"text-sm text-github-text-muted",children:"Preview unavailable."})]})]})}const qf=[{id:"image",match:t=>r2(t.path),Component:a2,canExpandHiddenLines:()=>!1},{id:"markdown",match:t=>i2(t.path),Component:hT,canExpandHiddenLines:t=>t.status!=="added"&&t.status!=="deleted"},{id:"default",match:()=>!0,Component:O1,canExpandHiddenLines:t=>t.status!=="added"&&t.status!=="deleted"}],pT=t=>{const r=qf[qf.length-1];if(!r)throw new Error("No diff viewers registered");return qf.find(l=>l.match(t))??r},gT=t=>{switch(t){case"added":return v.jsx(ux,{size:16,className:"text-github-accent"});case"deleted":return v.jsx(cx,{size:16,className:"text-github-danger"});case"renamed":return v.jsx(sx,{size:16,className:"text-github-warning"});default:return v.jsx(Nd,{size:16,className:"text-github-text-secondary"})}},mT=({file:t,isCollapsed:r,isReviewed:l,onToggleCollapsed:a,onToggleAllCollapsed:s,onToggleReviewed:u})=>{const[c,d]=j.useState(!1);return v.jsxs("div",{className:"bg-github-bg-secondary border-t-2 border-t-github-accent border-b border-github-border px-5 py-4 flex items-center justify-between flex-wrap gap-3 sticky top-0 z-10",children:[v.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[v.jsx("button",{onClick:p=>{p.altKey?s(!r):a(t.path)},className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:r?"Expand file (Alt+Click to expand all)":"Collapse file (Alt+Click to collapse all)",children:r?v.jsx(ax,{size:16}):v.jsx(Is,{size:16})}),gT(t.status),v.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:t.path}),v.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${c?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(t.path).then(()=>{console.log("File path copied to clipboard:",t.path),d(!0),setTimeout(()=>d(!1),2e3)}).catch(p=>{console.error("Failed to copy file path:",p)})},title:"Copy file path",children:c?v.jsx(Ma,{size:14}):v.jsx(ox,{size:14})}),t.oldPath&&t.oldPath!==t.path&&v.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",t.oldPath,")"]})]}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[v.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",t.additions]}),v.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",t.deletions]})]}),v.jsxs("button",{onClick:()=>u(t.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${l?"bg-github-accent text-white":"dark:bg-slate-600 dark:text-white dark:border-slate-500 dark:hover:bg-slate-500 dark:hover:border-slate-400 bg-github-bg-secondary text-github-text-primary border border-github-border hover:bg-github-bg-tertiary hover:border-github-text-muted"}`,title:l?"Mark as not reviewed":"Mark as reviewed",children:[l?v.jsx(Ma,{size:14}):v.jsx(YS,{size:14}),"Viewed"]})]})]})},yT=t=>{const r={old:[],new:[]};return t.forEach(l=>{const a=l.side??"new",[s,u]=Array.isArray(l.line)?[l.line[0],l.line[1]]:[l.line,l.line];s<=0||u<=0||r[a].push({start:Math.min(s,u),end:Math.max(s,u)})}),r},bT=(t,r)=>t.chunks.map((l,a)=>{const s=r==="old"?l.oldStart:l.newStart,u=r==="old"?l.oldLines:l.newLines;return!s||u<=0?null:{start:s,end:s+u-1,index:a}}).filter(l=>!!l),xT=t=>{const r=[],l=t[0];if(!l)return r;l.start>1&&r.push({type:"before",start:1,end:l.start-1,nextChunkIndex:l.index});for(let s=1;s<t.length;s+=1){const u=t[s-1],c=t[s];!u||!c||c.start>u.end+1&&r.push({type:"between",start:u.end+1,end:c.start-1,prevChunkIndex:u.index,nextChunkIndex:c.index})}const a=t[t.length-1];return a&&r.push({type:"after",start:a.end+1,end:Number.POSITIVE_INFINITY,prevChunkIndex:a.index}),r},vT=t=>{const r=new Map;return t.forEach(l=>{const a=l.originalIndices[0];a!==void 0&&r.set(a,l)}),r},wT=t=>{const r=t[t.length-1];return r?.originalIndices[r.originalIndices.length-1]??null},ST=j.memo(function({file:r,comments:l,diffMode:a,reviewedFiles:s,onToggleReviewed:u,collapsedFiles:c,onToggleCollapsed:d,onToggleAllCollapsed:p,onAddComment:h,onGeneratePrompt:y,onRemoveComment:m,onUpdateComment:x,syntaxTheme:b,baseCommitish:w,targetCommitish:k,cursor:A=null,fileIndex:E=0,onLineClick:C,commentTrigger:N,onCommentTriggerHandled:B,mergedChunks:G,expandLines:D,expandAllBetweenChunks:U,prefetchFileContent:Z,isExpandLoading:P}){const M=c.has(r.path),q=j.useRef(null),[$,J]=j.useState(!1),F=pT(r),X=F.canExpandHiddenLines?.(r)??!1;j.useEffect(()=>{if(!X)return;const R=q.current;if(!R)return;const O=new IntersectionObserver(([V])=>{V?.isIntersecting&&J(!0)},{rootMargin:"200px"});return O.observe(R),()=>O.disconnect()},[X]),j.useEffect(()=>{$&&!M&&X&&Z(r)},[$,M,X,r,Z]);const L=j.useCallback(async(R,O,V,T)=>{try{await h(r.path,R,O,V,T)}catch(le){console.error("Failed to add comment:",le)}},[r.path,h]);j.useEffect(()=>{if(M||P||!X||l.length===0||r.chunks.length===0||G.length===0)return;const R=yT(l),O=vT(G),V=wT(G),T=G[G.length-1],le=new Set,ce=(fe,de)=>{le.has(fe)||(le.add(fe),de())};["old","new"].forEach(fe=>{const de=R[fe];if(de.length===0)return;const ge=bT(r,fe);xT(ge).forEach(be=>{if(!de.some(Te=>Te.start<=be.end&&Te.end>=be.start))return;if(be.type==="after"&&T&&V!==null){T.hiddenLinesAfter>0&&ce(`after-${V}`,()=>{D(r,V,"down",T.hiddenLinesAfter)});return}const xe=be.nextChunkIndex;if(xe===void 0)return;const Le=O.get(xe);!Le||Le.hiddenLinesBefore<=0||(be.type==="before"?ce(`before-${xe}`,()=>{D(r,xe,"up",Le.hiddenLinesBefore)}):be.type==="between"&&ce(`between-${xe}`,()=>{U(r,xe,Le.hiddenLinesBefore)}))})})},[l,U,D,r,M,P,G,X]);const z="4em",I=F.Component,K={file:r,comments:l,diffMode:a,syntaxTheme:b,baseCommitish:w,targetCommitish:k,cursor:A,fileIndex:E,mergedChunks:G,isExpandLoading:P,expandHiddenLines:D,expandAllBetweenChunks:U,onAddComment:L,onGeneratePrompt:y,onRemoveComment:m,onUpdateComment:x,onLineClick:C,commentTrigger:N,onCommentTriggerHandled:B};return v.jsxs("div",{ref:q,className:"bg-github-bg-primary",style:{"--line-number-width":z},children:[v.jsx(mT,{file:r,isCollapsed:M,isReviewed:s.has(r.path),onToggleCollapsed:d,onToggleAllCollapsed:p,onToggleReviewed:u}),!M&&v.jsx("div",{className:"overflow-y-auto",children:v.jsx(I,{...K})})]})});function kT(t){const r={name:"",path:"",isDirectory:!0,children:[]};t.forEach(a=>{const s=a.path.split("/");let u=r;for(let c=0;c<s.length;c++){const d=s[c];if(!d)continue;const p=c===s.length-1,h=s.slice(0,c+1).join("/");u.children||(u.children=[]);let y=u.children.find(m=>m.name===d);y||(y={name:d,path:h,isDirectory:!p,children:p?void 0:[],file:p?a:void 0},u.children.push(y)),u=y}});const l=a=>{if(!a.isDirectory||!a.children)return a;if(a.children=a.children.map(l),a.children.length===1&&a.children[0]?.isDirectory&&a.children[0]?.children){const s=a.children[0];if(s)return a.name?{...a,name:`${a.name}/${s.name}`,path:s.path,children:s.children}:a}return a};return l(r)}function ET({files:t,onScrollToFile:r,comments:l,reviewedFiles:a,onToggleReviewed:s,selectedFileIndex:u}){const c=kT(t),d=j.useRef(null),p=j.useRef(new Map),h={"--dir-row-height":"calc(var(--spacing, 0.25rem) * 9)"},y=Z=>{if(!Z.isDirectory||!Z.children)return[];const P=[];return Z.path&&P.push(Z.path),Z.children.forEach(M=>{P.push(...y(M))}),P},[m,x]=j.useState(()=>new Set(y(c))),[b,w]=j.useState(""),k=Z=>l.filter(P=>P.file===Z).length,A=j.useMemo(()=>{const Z=P=>{if(!b.trim())return P;if(P.isDirectory&&P.children){const M=P.children.map(q=>Z(q)).filter(q=>q!==null);return M.length>0?{...P,children:M}:null}else if(P.file)return P.file.path.toLowerCase().includes(b.toLowerCase())?P:null;return null};return Z(c)||{...c,children:[]}},[c,b]),E=Z=>{switch(Z){case"added":return v.jsx(ux,{size:16,className:"text-github-accent"});case"deleted":return v.jsx(cx,{size:16,className:"text-github-danger"});case"renamed":return v.jsx(sx,{size:16,className:"text-github-warning"});default:return v.jsx(Nd,{size:16,className:"text-github-text-secondary"})}},C=Z=>{x(P=>{const M=new Set(P);return M.has(Z)?M.delete(Z):M.add(Z),M})},N=y(c),B=m.size===N.length&&N.length>0,G=()=>{x(B?new Set:new Set(N))},D=(Z,P)=>{const M=d.current,q=Z.currentTarget;if(!M){C(P);return}const $=M.getBoundingClientRect(),J=q.getBoundingClientRect(),F=Number.parseFloat(getComputedStyle(q).top||"0");if(J.top-$.top<=F+1){const I=p.current.get(P)?.querySelector('[data-tree-row="true"]:not([data-dir-header="true"])'),K=q.getBoundingClientRect().height||0,R=I??q,O=Number.parseInt(R.dataset.depth||q.dataset.depth||"0",10),V=K*O,T=Math.max(0,R.offsetTop-V);if(Math.abs(M.scrollTop-T)<=1){C(P);return}M.scrollTo({top:T,behavior:"smooth"});return}C(P)},U=(Z,P=0)=>{if(Z.isDirectory&&Z.children){const M=m.has(Z.path);return v.jsxs("div",{"data-dir-container":Z.path||void 0,ref:q=>{Z.path&&(q?p.current.set(Z.path,q):p.current.delete(Z.path))},children:[Z.name&&v.jsxs("div",{className:"sticky flex h-9 items-center gap-2 bg-github-bg-secondary px-4 hover:bg-github-bg-tertiary cursor-pointer","data-dir-header":"true","data-tree-row":"true","data-depth":P,style:{paddingLeft:`${P*16+16}px`,top:`calc(${P} * var(--dir-row-height))`,zIndex:1e3-P},onClick:q=>D(q,Z.path),children:[M?v.jsx(Is,{size:16}):v.jsx(ax,{size:16}),M?v.jsx(CS,{size:16,className:"text-github-text-secondary"}):v.jsx(TS,{size:16,className:"text-github-text-secondary"}),v.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:Z.name,children:Z.name})]}),(M||!Z.name)&&Z.children.map(q=>U(q,Z.name?P+1:P))]},Z.path)}else if(Z.file){const M=Z.file,q=k(M.path),$=a.has(M.path),J=t.findIndex(X=>X.path===M.path),F=u!==null&&u===J;return v.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${$?"opacity-70":""} ${F?"bg-github-bg-tertiary":""}`,"data-file-row":"true","data-tree-row":"true","data-depth":P,style:{paddingLeft:`${P*16+16}px`},onClick:()=>r(M.path),children:[v.jsx(hx,{checked:$,onChange:()=>{s(M.path)},title:$?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),E(Z.file.status),v.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${$?"line-through text-github-text-muted":""}`,title:Z.file.path,children:Z.name}),q>0&&v.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[v.jsx(fx,{size:14}),q]})]},M.path)}return null};return v.jsxs("div",{className:"h-full flex flex-col",children:[v.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[v.jsxs("div",{className:"flex items-center justify-between mb-3",children:[v.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0",children:["Files changed (",t.length,")"]}),v.jsx("button",{onClick:G,className:"p-1 hover:bg-github-bg-primary rounded transition-colors",title:B?"Collapse all":"Expand all",children:B?v.jsx(fS,{size:16,className:"text-github-text-secondary"}):v.jsx(hS,{size:16,className:"text-github-text-secondary"})})]}),v.jsxs("div",{className:"relative",children:[v.jsx(PS,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),v.jsx("input",{type:"text",placeholder:"Filter files...",value:b,onChange:Z=>w(Z.target.value),className:"w-full pl-9 pr-3 py-2 text-sm bg-github-bg-primary border border-github-border rounded-md focus:outline-none focus:border-github-accent text-github-text-primary placeholder-github-text-muted"})]})]}),v.jsx("div",{className:"flex-1 overflow-y-auto relative z-0",style:h,ref:d,children:A.children?.map(Z=>U(Z))})]})}function CT({style:t}){return v.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:t,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})})}function AT({isOpen:t,onClose:r}){const{enableScope:l,disableScope:a}=Fs();return rt("escape",()=>r(),{enabled:t},[r,t]),j.useEffect(()=>(t?a("navigation"):l("navigation"),()=>{l("navigation")}),[t,l,a]),t?v.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[v.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),v.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full mx-4 max-h-[80vh] overflow-y-auto",children:[v.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4 flex items-center justify-between",children:[v.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),v.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:v.jsx(Rd,{size:20})})]}),v.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[v.jsxs("section",{children:[v.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsxs("div",{className:"flex gap-2",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),v.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsxs("div",{className:"flex gap-2",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),v.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),v.jsxs("section",{children:[v.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),v.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),v.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),v.jsx("span",{className:"text-github-text-muted",children:"+"}),v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["})]}),v.jsx("span",{className:"text-github-text-secondary",children:"Jump to first file"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),v.jsx("span",{className:"text-github-text-muted",children:"+"}),v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"})]}),v.jsx("span",{className:"text-github-text-secondary",children:"Jump to last file"})]})]})]}),v.jsxs("section",{children:[v.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),v.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),v.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),v.jsxs("section",{children:[v.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),v.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),v.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),v.jsxs("section",{children:[v.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsxs("div",{className:"flex gap-2",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),v.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsxs("div",{className:"flex gap-2",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),v.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),v.jsxs("section",{children:[v.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Management"}),v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),v.jsx("span",{className:"text-github-text-muted",children:"+"}),v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),v.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),v.jsx("span",{className:"text-github-text-muted",children:"+"}),v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),v.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),v.jsx("span",{className:"text-github-text-muted",children:"+"}),v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),v.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]})]})]}),v.jsxs("section",{children:[v.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"v"}),v.jsx("span",{className:"text-github-text-secondary",children:"Toggle viewed state of current file"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),v.jsx("span",{className:"text-github-text-muted",children:"+"}),v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"R"})]}),v.jsx("span",{className:"text-github-text-secondary",children:"Refresh diff when changes detected"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),v.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),v.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),v.jsxs("div",{className:"flex justify-between text-sm",children:[v.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),v.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),v.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:v.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function TT({style:t}){return v.jsxs("svg",{style:t,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M440.487 5.90627C432.164 9.01695 427.318 16.2817 427.318 25.649C427.318 35.9474 433.206 43.6458 442.714 45.7819C451.336 47.7188 459.606 44.3893 464.84 36.8737C466.923 33.8843 467.35 32.4073 467.606 27.3105C467.773 23.9957 467.492 20.0154 466.983 18.4654C465.699 14.5629 460.869 9.13088 456.854 7.07513C452.57 4.88086 444.73 4.32102 440.487 5.90627ZM596.658 6.653C588.927 9.55794 584.572 15.4908 583.887 24.0465C583.17 33.0212 586.83 39.8868 594.382 43.7278C603.739 48.4877 615.574 44.5081 620.482 34.9515C625.35 25.4728 622.15 13.4916 613.37 8.32678C608.986 5.74808 601.154 4.96365 596.658 6.653ZM368.585 7.68006C367.464 8.80629 367.302 12.903 367.302 40.2286V71.4878L363.832 68.1329C353.432 58.0787 335.595 52.668 319.246 54.6082C310.542 55.641 299.81 59.1369 293.3 63.0607C278.56 71.9427 266.453 89.5576 263.139 106.945C261.765 114.155 261.602 129.431 262.825 136.365C265.723 152.796 274.795 168.36 286.716 177.355C298.275 186.077 310.237 190 325.274 190C340.687 190 353.943 185.273 362.869 176.594L367.302 172.284V178.215C367.302 186.902 366.946 186.724 384.303 186.709C392.243 186.702 399.29 186.347 399.964 185.919C401.04 185.236 401.189 174.47 401.189 97.1224C401.189 23.7236 401.003 8.87842 400.068 7.74809C398.433 5.77021 370.547 5.71037 368.585 7.68006ZM526.937 7.94153C519.783 10.0325 515.359 12.5834 510.029 17.6867C501.959 25.4129 498.766 34.4597 498.766 49.5975V58.8517H490.659C484.378 58.8517 482.263 59.1418 481.268 60.1394C480.214 61.1976 479.986 63.6558 479.986 73.91C479.986 82.5264 480.289 86.6977 480.966 87.3764C481.601 88.0141 484.903 88.36 490.356 88.36H498.766V136.692C498.766 183.638 498.811 185.048 500.345 185.873C502.433 186.994 529.394 186.994 531.482 185.873C533.016 185.048 533.061 183.638 533.061 136.692V88.36H549.334C563.038 88.36 565.809 88.1568 566.89 87.0723C568.782 85.1723 568.782 62.0394 566.89 60.1394C565.808 59.0541 563.029 58.8517 549.231 58.8517H532.856L533.216 51.9721C533.604 44.5499 534.721 41.9147 538.546 39.3958C540.377 38.1901 543.049 37.904 554.661 37.6737C562.626 37.5155 569.018 37.0343 569.602 36.5483C570.892 35.4761 571.046 10.3579 569.777 7.9776C568.978 6.47923 567.918 6.39562 550.384 6.45054C535.269 6.49808 530.93 6.77431 526.937 7.94153ZM654.931 26.4834C653.136 27.7662 653.094 28.1572 653.094 43.3245V58.8517H644.567C633.342 58.8517 633.497 58.6443 633.497 73.6059C633.497 88.5674 633.342 88.36 644.567 88.36H653.094V122.636C653.094 159.998 653.439 163.935 657.362 171.354C661.848 179.838 669.111 184.99 680.857 188.022C687.996 189.866 707.647 189.269 714.309 187.007C719.756 185.158 719.86 184.87 719.969 171.298C720.082 157.364 720.441 157.791 709.174 158.48C695.386 159.324 689.341 156.938 687.388 149.883C686.927 148.214 686.58 134.435 686.577 117.663L686.572 88.36H702.068H717.564L718.87 86.3592C719.946 84.7108 720.129 82.3461 719.91 72.9575C719.719 64.8279 719.321 61.1689 718.522 60.2041C717.553 59.0345 715.315 58.8517 701.987 58.8517H686.572L686.546 43.8926C686.526 31.8556 686.28 28.613 685.288 27.2941C684.156 25.7884 682.945 25.6351 670.412 25.4129C658.94 25.2088 656.476 25.3793 654.931 26.4834ZM431.459 60.1394C430.316 61.2877 430.178 68.0001 430.188 121.82C430.197 168.838 430.429 182.667 431.232 184.262L432.264 186.311L446.657 186.535C458.941 186.725 461.242 186.567 462.353 185.452C463.521 184.279 463.655 177.845 463.655 122.786C463.655 68.0985 463.515 61.2877 462.372 60.1394C460.469 58.2287 433.362 58.2287 431.459 60.1394ZM587.799 60.4369C587.238 61.4894 586.954 82.56 586.954 123.084C586.954 177.502 587.093 184.285 588.236 185.434C590.138 187.342 616.431 187.342 618.333 185.434C619.476 184.285 619.615 177.447 619.615 122.482C619.615 75.6149 619.38 60.5828 618.636 59.8353C617.947 59.1443 613.344 58.8517 603.15 58.8517C589.644 58.8517 588.586 58.9607 587.799 60.4369ZM347.956 87.3469C362.023 93.9543 369.138 107.306 367.775 124.535C366.623 139.097 359.678 149.866 347.83 155.463C337.073 160.544 325.541 160.523 315.049 155.403C293.381 144.83 288.765 112.315 306.417 94.5961C313.92 87.0641 322.021 84.1412 334.301 84.5354C341.49 84.7666 343.224 85.124 347.956 87.3469Z",fill:"currentColor"}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42299 0.744751C4.61699 2.15275 2.03999 5.66375 0.956994 12.2768C-0.369006 20.3728 -0.294006 170.791 1.03899 176.572C2.29699 182.031 4.81699 185.308 9.65399 187.774C13.265 189.615 16.865 189.684 108.63 189.684C163.129 189.684 204.095 189.304 204.41 188.795C206 188.5 206 188.795 207.5 188C211.167 187.079 216.779 180.138 218.005 175.584C218.682 173.068 218.939 143.952 218.756 90.4718C218.487 11.7478 218.417 9.10275 216.535 6.62675C215.466 5.22075 213.441 3.19575 212.035 2.12675C209.546 0.23575 206.839 0.17975 110.978 0.0167504C55.373 -0.0782496 11.148 0.239751 9.42299 0.744751ZM203.778 14.8838C205.558 16.6638 205.509 172.577 203.728 175.005C202.577 176.574 198.865 176.688 156.978 176.446L111.478 176.184L111.226 138.684L110.974 101.184H84.059C69.255 101.184 56.808 101.52 56.397 101.931C55.986 102.343 60.674 107.82 66.814 114.104C72.954 120.388 77.978 126.202 77.978 127.026C77.978 129.577 74.769 134.267 71.896 135.916C69.609 137.229 68.75 137.278 66.704 136.217C63.533 134.572 28.705 99.1448 27.757 96.5998C27.36 95.5348 27.491 93.4308 28.049 91.9238C28.955 89.4768 68.498 49.6838 70.024 49.6838C70.366 49.6838 72.356 51.1627 74.447 52.9697C77.589 55.6867 78.118 56.6658 77.498 58.6198C77.086 59.9198 72.075 65.8308 66.363 71.7568C60.651 77.6818 55.978 83.0148 55.978 83.6068C55.978 84.3488 64.068 84.6838 81.952 84.6838H107.927H110.666C111.144 82.5 110.978 73.4537 110.978 46.2337V13.6838H156.778C191.067 13.6838 202.88 13.9858 203.778 14.8838ZM148.803 52.7217C146.51 54.0597 144.845 59.5997 145.74 62.9107C146.146 64.4107 150.657 69.9308 155.764 75.1788C161.411 80.9788 164.547 84.8988 163.764 85.1788C163.057 85.4318 151.549 85.7608 138.19 85.9108C117.896 86.1388 113.747 86.4308 112.956 87.6838C112.435 88.5088 112.002 91.7228 111.993 94.8268C111.982 99.0598 112.373 100.622 113.56 101.077C114.43 101.411 126.13 101.684 139.56 101.684C156.121 101.684 163.978 102.026 163.978 102.746C163.978 103.33 160.187 107.607 155.554 112.251C146.244 121.582 144.276 125.371 146.069 130.514C147.321 134.107 149.576 135.684 153.463 135.684C155.522 135.684 159.843 131.902 173.778 117.904C191.699 99.9008 194.978 96.0678 194.978 93.1208C194.978 91.1338 157.422 53.8238 154.163 52.5728C151.322 51.4818 150.908 51.4937 148.803 52.7217Z",fill:"currentColor"})]})}function NT({shouldReload:t,isReloading:r,onReload:l,changeType:a,className:s=""}){if(!t)return null;const u=()=>{switch(a){case"commit":return"New commits available";case"staging":return"Staging changes detected";case"file":return"File changes detected";default:return"Changes detected"}};return v.jsxs("button",{onClick:l,disabled:r,className:`
|
|
47
|
-
flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md border ${s}
|
|
48
|
-
${r?"bg-github-text-primary text-github-bg-primary border-github-text-primary cursor-not-allowed":"bg-github-text-primary text-github-bg-primary border-github-text-primary"}
|
|
49
|
-
`,title:`${u()} - Click to refresh`,children:[v.jsx(qS,{size:12,className:`${r?"animate-spin":""}`}),"Refresh"]})}function Ys(){return typeof window<"u"}function tl(t){return Kd(t)?(t.nodeName||"").toLowerCase():"#document"}function an(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function Yn(t){var r;return(r=(Kd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function Kd(t){return Ys()?t instanceof Node||t instanceof an(t).Node:!1}function st(t){return Ys()?t instanceof Element||t instanceof an(t).Element:!1}function Ct(t){return Ys()?t instanceof HTMLElement||t instanceof an(t).HTMLElement:!1}function As(t){return!Ys()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof an(t).ShadowRoot}const RT=new Set(["inline","contents"]);function qa(t){const{overflow:r,overflowX:l,overflowY:a,display:s}=jn(t);return/auto|scroll|overlay|hidden|clip/.test(r+a+l)&&!RT.has(s)}const _T=new Set(["table","td","th"]);function LT(t){return _T.has(tl(t))}const jT=[":popover-open",":modal"];function Xs(t){return jT.some(r=>{try{return t.matches(r)}catch{return!1}})}const DT=["transform","translate","scale","rotate","perspective"],OT=["transform","translate","scale","rotate","perspective","filter"],MT=["paint","layout","strict","content"];function Jd(t){const r=Zs(),l=st(t)?jn(t):t;return DT.some(a=>l[a]?l[a]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!r&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!r&&(l.filter?l.filter!=="none":!1)||OT.some(a=>(l.willChange||"").includes(a))||MT.some(a=>(l.contain||"").includes(a))}function zT(t){let r=br(t);for(;Ct(r)&&!yr(r);){if(Jd(r))return r;if(Xs(r))return null;r=br(r)}return null}function Zs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const BT=new Set(["html","body","#document"]);function yr(t){return BT.has(tl(t))}function jn(t){return an(t).getComputedStyle(t)}function Qs(t){return st(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function br(t){if(tl(t)==="html")return t;const r=t.assignedSlot||t.parentNode||As(t)&&t.host||Yn(t);return As(r)?r.host:r}function z1(t){const r=br(t);return yr(r)?t.ownerDocument?t.ownerDocument.body:t.body:Ct(r)&&qa(r)?r:z1(r)}function Wr(t,r,l){var a;r===void 0&&(r=[]),l===void 0&&(l=!0);const s=z1(t),u=s===((a=t.ownerDocument)==null?void 0:a.body),c=an(s);if(u){const d=bd(c);return r.concat(c,c.visualViewport||[],qa(s)?s:[],d&&l?Wr(d):[])}return r.concat(s,Wr(s,[],l))}function bd(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}const Ts=Math.min,kl=Math.max,Ns=Math.round,hs=Math.floor,$n=t=>({x:t,y:t}),FT={left:"right",right:"left",bottom:"top",top:"bottom"},IT={start:"end",end:"start"};function hb(t,r,l){return kl(t,Ts(r,l))}function Ks(t,r){return typeof t=="function"?t(r):t}function Cl(t){return t.split("-")[0]}function Js(t){return t.split("-")[1]}function B1(t){return t==="x"?"y":"x"}function F1(t){return t==="y"?"height":"width"}const UT=new Set(["top","bottom"]);function Qr(t){return UT.has(Cl(t))?"y":"x"}function I1(t){return B1(Qr(t))}function HT(t,r,l){l===void 0&&(l=!1);const a=Js(t),s=I1(t),u=F1(s);let c=s==="x"?a===(l?"end":"start")?"right":"left":a==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(c=Rs(c)),[c,Rs(c)]}function qT(t){const r=Rs(t);return[xd(t),r,xd(r)]}function xd(t){return t.replace(/start|end/g,r=>IT[r])}const pb=["left","right"],gb=["right","left"],VT=["top","bottom"],PT=["bottom","top"];function $T(t,r,l){switch(t){case"top":case"bottom":return l?r?gb:pb:r?pb:gb;case"left":case"right":return r?VT:PT;default:return[]}}function GT(t,r,l,a){const s=Js(t);let u=$T(Cl(t),l==="start",a);return s&&(u=u.map(c=>c+"-"+s),r&&(u=u.concat(u.map(xd)))),u}function Rs(t){return t.replace(/left|right|bottom|top/g,r=>FT[r])}function YT(t){return{top:0,right:0,bottom:0,left:0,...t}}function XT(t){return typeof t!="number"?YT(t):{top:t,right:t,bottom:t,left:t}}function _s(t){const{x:r,y:l,width:a,height:s}=t;return{width:a,height:s,top:l,left:r,right:r+a,bottom:l+s,x:r,y:l}}var ZT=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Ls=ZT.join(","),U1=typeof Element>"u",Ni=U1?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,js=!U1&&Element.prototype.getRootNode?function(t){var r;return t==null||(r=t.getRootNode)===null||r===void 0?void 0:r.call(t)}:function(t){return t?.ownerDocument},Ds=function(r,l){var a;l===void 0&&(l=!0);var s=r==null||(a=r.getAttribute)===null||a===void 0?void 0:a.call(r,"inert"),u=s===""||s==="true",c=u||l&&r&&(typeof r.closest=="function"?r.closest("[inert]"):Ds(r.parentNode));return c},QT=function(r){var l,a=r==null||(l=r.getAttribute)===null||l===void 0?void 0:l.call(r,"contenteditable");return a===""||a==="true"},H1=function(r,l,a){if(Ds(r))return[];var s=Array.prototype.slice.apply(r.querySelectorAll(Ls));return l&&Ni.call(r,Ls)&&s.unshift(r),s=s.filter(a),s},Os=function(r,l,a){for(var s=[],u=Array.from(r);u.length;){var c=u.shift();if(!Ds(c,!1))if(c.tagName==="SLOT"){var d=c.assignedElements(),p=d.length?d:c.children,h=Os(p,!0,a);a.flatten?s.push.apply(s,h):s.push({scopeParent:c,candidates:h})}else{var y=Ni.call(c,Ls);y&&a.filter(c)&&(l||!r.includes(c))&&s.push(c);var m=c.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(c),x=!Ds(m,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(c));if(m&&x){var b=Os(m===!0?c.children:m.children,!0,a);a.flatten?s.push.apply(s,b):s.push({scopeParent:c,candidates:b})}else u.unshift.apply(u,c.children)}}return s},q1=function(r){return!isNaN(parseInt(r.getAttribute("tabindex"),10))},V1=function(r){if(!r)throw new Error("No node provided");return r.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(r.tagName)||QT(r))&&!q1(r)?0:r.tabIndex},KT=function(r,l){var a=V1(r);return a<0&&l&&!q1(r)?0:a},JT=function(r,l){return r.tabIndex===l.tabIndex?r.documentOrder-l.documentOrder:r.tabIndex-l.tabIndex},P1=function(r){return r.tagName==="INPUT"},WT=function(r){return P1(r)&&r.type==="hidden"},e5=function(r){var l=r.tagName==="DETAILS"&&Array.prototype.slice.apply(r.children).some(function(a){return a.tagName==="SUMMARY"});return l},t5=function(r,l){for(var a=0;a<r.length;a++)if(r[a].checked&&r[a].form===l)return r[a]},n5=function(r){if(!r.name)return!0;var l=r.form||js(r),a=function(d){return l.querySelectorAll('input[type="radio"][name="'+d+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(r.name));else try{s=a(r.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var u=t5(s,r.form);return!u||u===r},r5=function(r){return P1(r)&&r.type==="radio"},l5=function(r){return r5(r)&&!n5(r)},i5=function(r){var l,a=r&&js(r),s=(l=a)===null||l===void 0?void 0:l.host,u=!1;if(a&&a!==r){var c,d,p;for(u=!!((c=s)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(s)||r!=null&&(p=r.ownerDocument)!==null&&p!==void 0&&p.contains(r));!u&&s;){var h,y,m;a=js(s),s=(h=a)===null||h===void 0?void 0:h.host,u=!!((y=s)!==null&&y!==void 0&&(m=y.ownerDocument)!==null&&m!==void 0&&m.contains(s))}}return u},mb=function(r){var l=r.getBoundingClientRect(),a=l.width,s=l.height;return a===0&&s===0},a5=function(r,l){var a=l.displayCheck,s=l.getShadowRoot;if(a==="full-native"&&"checkVisibility"in r){var u=r.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!u}if(getComputedStyle(r).visibility==="hidden")return!0;var c=Ni.call(r,"details>summary:first-of-type"),d=c?r.parentElement:r;if(Ni.call(d,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof s=="function"){for(var p=r;r;){var h=r.parentElement,y=js(r);if(h&&!h.shadowRoot&&s(h)===!0)return mb(r);r.assignedSlot?r=r.assignedSlot:!h&&y!==r.ownerDocument?r=y.host:r=h}r=p}if(i5(r))return!r.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return mb(r);return!1},o5=function(r){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(r.tagName))for(var l=r.parentElement;l;){if(l.tagName==="FIELDSET"&&l.disabled){for(var a=0;a<l.children.length;a++){var s=l.children.item(a);if(s.tagName==="LEGEND")return Ni.call(l,"fieldset[disabled] *")?!0:!s.contains(r)}return!0}l=l.parentElement}return!1},vd=function(r,l){return!(l.disabled||WT(l)||a5(l,r)||e5(l)||o5(l))},wd=function(r,l){return!(l5(l)||V1(l)<0||!vd(r,l))},s5=function(r){var l=parseInt(r.getAttribute("tabindex"),10);return!!(isNaN(l)||l>=0)},$1=function(r){var l=[],a=[];return r.forEach(function(s,u){var c=!!s.scopeParent,d=c?s.scopeParent:s,p=KT(d,c),h=c?$1(s.candidates):d;p===0?c?l.push.apply(l,h):l.push(d):a.push({documentOrder:u,tabIndex:p,item:s,isScope:c,content:h})}),a.sort(JT).reduce(function(s,u){return u.isScope?s.push.apply(s,u.content):s.push(u.content),s},[]).concat(l)},Ws=function(r,l){l=l||{};var a;return l.getShadowRoot?a=Os([r],l.includeContainer,{filter:wd.bind(null,l),flatten:!1,getShadowRoot:l.getShadowRoot,shadowRootFilter:s5}):a=H1(r,l.includeContainer,wd.bind(null,l)),$1(a)},u5=function(r,l){l=l||{};var a;return l.getShadowRoot?a=Os([r],l.includeContainer,{filter:vd.bind(null,l),flatten:!0,getShadowRoot:l.getShadowRoot}):a=H1(r,l.includeContainer,vd.bind(null,l)),a},G1=function(r,l){if(l=l||{},!r)throw new Error("No node provided");return Ni.call(r,Ls)===!1?!1:wd(l,r)};function Y1(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function X1(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(r=>{let{brand:l,version:a}=r;return l+"/"+a}).join(" "):navigator.userAgent}function Z1(){return/apple/i.test(navigator.vendor)}function Sd(){const t=/android/i;return t.test(Y1())||t.test(X1())}function c5(){return Y1().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Q1(){return X1().includes("jsdom/")}const yb="data-floating-ui-focusable",f5="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Zr(t){let r=t.activeElement;for(;((l=r)==null||(l=l.shadowRoot)==null?void 0:l.activeElement)!=null;){var l;r=r.shadowRoot.activeElement}return r}function It(t,r){if(!t||!r)return!1;const l=r.getRootNode==null?void 0:r.getRootNode();if(t.contains(r))return!0;if(l&&As(l)){let a=r;for(;a;){if(t===a)return!0;a=a.parentNode||a.host}}return!1}function gr(t){return"composedPath"in t?t.composedPath()[0]:t.target}function Vf(t,r){if(r==null)return!1;if("composedPath"in t)return t.composedPath().includes(r);const l=t;return l.target!=null&&r.contains(l.target)}function d5(t){return t.matches("html,body")}function Ut(t){return t?.ownerDocument||document}function Wd(t){return Ct(t)&&t.matches(f5)}function bb(t){return t?t.getAttribute("role")==="combobox"&&Wd(t):!1}function h5(t){if(!t||Q1())return!0;try{return t.matches(":focus-visible")}catch{return!0}}function kd(t){return t?t.hasAttribute(yb)?t:t.querySelector("["+yb+"]")||t:null}function Ei(t,r,l){return l===void 0&&(l=!0),t.filter(s=>{var u;return s.parentId===r&&(!l||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...Ei(t,s.id,l)])}function xb(t,r){var l;let a=[],s=(l=t.find(u=>u.id===r))==null?void 0:l.parentId;for(;s;){const u=t.find(c=>c.id===s);s=u?.parentId,u&&(a=a.concat(u))}return a}function Pf(t){t.preventDefault(),t.stopPropagation()}function p5(t){return"nativeEvent"in t}function g5(t){return t.mozInputSource===0&&t.isTrusted?!0:Sd()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function m5(t){return Q1()?!1:!Sd()&&t.width===0&&t.height===0||Sd()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function Fa(t,r){const l=["mouse","pen"];return r||l.push("",void 0),l.includes(t)}var y5=typeof document<"u",b5=function(){},ln=y5?j.useLayoutEffect:b5;const x5={...Qb};function Sl(t){const r=j.useRef(t);return ln(()=>{r.current=t}),r}const v5=x5.useInsertionEffect,w5=v5||(t=>t());function rn(t){const r=j.useRef(()=>{});return w5(()=>{r.current=t}),j.useCallback(function(){for(var l=arguments.length,a=new Array(l),s=0;s<l;s++)a[s]=arguments[s];return r.current==null?void 0:r.current(...a)},[])}const Va=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function K1(t,r){const l=Ws(t,Va()),a=l.length;if(a===0)return;const s=Zr(Ut(t)),u=l.indexOf(s),c=u===-1?r===1?0:a-1:u+r;return l[c]}function J1(t){return K1(Ut(t).body,1)||t}function W1(t){return K1(Ut(t).body,-1)||t}function Da(t,r){const l=r||t.currentTarget,a=t.relatedTarget;return!a||!It(l,a)}function S5(t){Ws(t,Va()).forEach(l=>{l.dataset.tabindex=l.getAttribute("tabindex")||"",l.setAttribute("tabindex","-1")})}function vb(t){t.querySelectorAll("[data-tabindex]").forEach(l=>{const a=l.dataset.tabindex;delete l.dataset.tabindex,a?l.setAttribute("tabindex",a):l.removeAttribute("tabindex")})}var e0=Kb();function wb(t,r,l){let{reference:a,floating:s}=t;const u=Qr(r),c=I1(r),d=F1(c),p=Cl(r),h=u==="y",y=a.x+a.width/2-s.width/2,m=a.y+a.height/2-s.height/2,x=a[d]/2-s[d]/2;let b;switch(p){case"top":b={x:y,y:a.y-s.height};break;case"bottom":b={x:y,y:a.y+a.height};break;case"right":b={x:a.x+a.width,y:m};break;case"left":b={x:a.x-s.width,y:m};break;default:b={x:a.x,y:a.y}}switch(Js(r)){case"start":b[c]-=x*(l&&h?-1:1);break;case"end":b[c]+=x*(l&&h?-1:1);break}return b}const k5=async(t,r,l)=>{const{placement:a="bottom",strategy:s="absolute",middleware:u=[],platform:c}=l,d=u.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(r));let h=await c.getElementRects({reference:t,floating:r,strategy:s}),{x:y,y:m}=wb(h,a,p),x=a,b={},w=0;for(let k=0;k<d.length;k++){const{name:A,fn:E}=d[k],{x:C,y:N,data:B,reset:G}=await E({x:y,y:m,initialPlacement:a,placement:x,strategy:s,middlewareData:b,rects:h,platform:c,elements:{reference:t,floating:r}});y=C??y,m=N??m,b={...b,[A]:{...b[A],...B}},G&&w<=50&&(w++,typeof G=="object"&&(G.placement&&(x=G.placement),G.rects&&(h=G.rects===!0?await c.getElementRects({reference:t,floating:r,strategy:s}):G.rects),{x:y,y:m}=wb(h,x,p)),k=-1)}return{x:y,y:m,placement:x,strategy:s,middlewareData:b}};async function t0(t,r){var l;r===void 0&&(r={});const{x:a,y:s,platform:u,rects:c,elements:d,strategy:p}=t,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:m="floating",altBoundary:x=!1,padding:b=0}=Ks(r,t),w=XT(b),A=d[x?m==="floating"?"reference":"floating":m],E=_s(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(A)))==null||l?A:A.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(d.floating)),boundary:h,rootBoundary:y,strategy:p})),C=m==="floating"?{x:a,y:s,width:c.floating.width,height:c.floating.height}:c.reference,N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(d.floating)),B=await(u.isElement==null?void 0:u.isElement(N))?await(u.getScale==null?void 0:u.getScale(N))||{x:1,y:1}:{x:1,y:1},G=_s(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:C,offsetParent:N,strategy:p}):C);return{top:(E.top-G.top+w.top)/B.y,bottom:(G.bottom-E.bottom+w.bottom)/B.y,left:(E.left-G.left+w.left)/B.x,right:(G.right-E.right+w.right)/B.x}}const E5=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var l,a;const{placement:s,middlewareData:u,rects:c,initialPlacement:d,platform:p,elements:h}=r,{mainAxis:y=!0,crossAxis:m=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:k=!0,...A}=Ks(t,r);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const E=Cl(s),C=Qr(d),N=Cl(d)===d,B=await(p.isRTL==null?void 0:p.isRTL(h.floating)),G=x||(N||!k?[Rs(d)]:qT(d)),D=w!=="none";!x&&D&&G.push(...GT(d,k,w,B));const U=[d,...G],Z=await t0(r,A),P=[];let M=((a=u.flip)==null?void 0:a.overflows)||[];if(y&&P.push(Z[E]),m){const F=HT(s,c,B);P.push(Z[F[0]],Z[F[1]])}if(M=[...M,{placement:s,overflows:P}],!P.every(F=>F<=0)){var q,$;const F=(((q=u.flip)==null?void 0:q.index)||0)+1,X=U[F];if(X&&(!(m==="alignment"?C!==Qr(X):!1)||M.every(I=>Qr(I.placement)===C?I.overflows[0]>0:!0)))return{data:{index:F,overflows:M},reset:{placement:X}};let L=($=M.filter(z=>z.overflows[0]<=0).sort((z,I)=>z.overflows[1]-I.overflows[1])[0])==null?void 0:$.placement;if(!L)switch(b){case"bestFit":{var J;const z=(J=M.filter(I=>{if(D){const K=Qr(I.placement);return K===C||K==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(K=>K>0).reduce((K,R)=>K+R,0)]).sort((I,K)=>I[1]-K[1])[0])==null?void 0:J[0];z&&(L=z);break}case"initialPlacement":L=d;break}if(s!==L)return{reset:{placement:L}}}return{}}}},C5=new Set(["left","top"]);async function A5(t,r){const{placement:l,platform:a,elements:s}=t,u=await(a.isRTL==null?void 0:a.isRTL(s.floating)),c=Cl(l),d=Js(l),p=Qr(l)==="y",h=C5.has(c)?-1:1,y=u&&p?-1:1,m=Ks(r,t);let{mainAxis:x,crossAxis:b,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return d&&typeof w=="number"&&(b=d==="end"?w*-1:w),p?{x:b*y,y:x*h}:{x:x*h,y:b*y}}const T5=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var l,a;const{x:s,y:u,placement:c,middlewareData:d}=r,p=await A5(r,t);return c===((l=d.offset)==null?void 0:l.placement)&&(a=d.arrow)!=null&&a.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:c}}}}},N5=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:l,y:a,placement:s}=r,{mainAxis:u=!0,crossAxis:c=!1,limiter:d={fn:A=>{let{x:E,y:C}=A;return{x:E,y:C}}},...p}=Ks(t,r),h={x:l,y:a},y=await t0(r,p),m=Qr(Cl(s)),x=B1(m);let b=h[x],w=h[m];if(u){const A=x==="y"?"top":"left",E=x==="y"?"bottom":"right",C=b+y[A],N=b-y[E];b=hb(C,b,N)}if(c){const A=m==="y"?"top":"left",E=m==="y"?"bottom":"right",C=w+y[A],N=w-y[E];w=hb(C,w,N)}const k=d.fn({...r,[x]:b,[m]:w});return{...k,data:{x:k.x-l,y:k.y-a,enabled:{[x]:u,[m]:c}}}}}};function n0(t){const r=jn(t);let l=parseFloat(r.width)||0,a=parseFloat(r.height)||0;const s=Ct(t),u=s?t.offsetWidth:l,c=s?t.offsetHeight:a,d=Ns(l)!==u||Ns(a)!==c;return d&&(l=u,a=c),{width:l,height:a,$:d}}function eh(t){return st(t)?t:t.contextElement}function Ci(t){const r=eh(t);if(!Ct(r))return $n(1);const l=r.getBoundingClientRect(),{width:a,height:s,$:u}=n0(r);let c=(u?Ns(l.width):l.width)/a,d=(u?Ns(l.height):l.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const R5=$n(0);function r0(t){const r=an(t);return!Zs()||!r.visualViewport?R5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function _5(t,r,l){return r===void 0&&(r=!1),!l||r&&l!==an(t)?!1:r}function Al(t,r,l,a){r===void 0&&(r=!1),l===void 0&&(l=!1);const s=t.getBoundingClientRect(),u=eh(t);let c=$n(1);r&&(a?st(a)&&(c=Ci(a)):c=Ci(t));const d=_5(u,l,a)?r0(u):$n(0);let p=(s.left+d.x)/c.x,h=(s.top+d.y)/c.y,y=s.width/c.x,m=s.height/c.y;if(u){const x=an(u),b=a&&st(a)?an(a):a;let w=x,k=bd(w);for(;k&&a&&b!==w;){const A=Ci(k),E=k.getBoundingClientRect(),C=jn(k),N=E.left+(k.clientLeft+parseFloat(C.paddingLeft))*A.x,B=E.top+(k.clientTop+parseFloat(C.paddingTop))*A.y;p*=A.x,h*=A.y,y*=A.x,m*=A.y,p+=N,h+=B,w=an(k),k=bd(w)}}return _s({width:y,height:m,x:p,y:h})}function eu(t,r){const l=Qs(t).scrollLeft;return r?r.left+l:Al(Yn(t)).left+l}function l0(t,r){const l=t.getBoundingClientRect(),a=l.left+r.scrollLeft-eu(t,l),s=l.top+r.scrollTop;return{x:a,y:s}}function L5(t){let{elements:r,rect:l,offsetParent:a,strategy:s}=t;const u=s==="fixed",c=Yn(a),d=r?Xs(r.floating):!1;if(a===c||d&&u)return l;let p={scrollLeft:0,scrollTop:0},h=$n(1);const y=$n(0),m=Ct(a);if((m||!m&&!u)&&((tl(a)!=="body"||qa(c))&&(p=Qs(a)),Ct(a))){const b=Al(a);h=Ci(a),y.x=b.x+a.clientLeft,y.y=b.y+a.clientTop}const x=c&&!m&&!u?l0(c,p):$n(0);return{width:l.width*h.x,height:l.height*h.y,x:l.x*h.x-p.scrollLeft*h.x+y.x+x.x,y:l.y*h.y-p.scrollTop*h.y+y.y+x.y}}function j5(t){return Array.from(t.getClientRects())}function D5(t){const r=Yn(t),l=Qs(t),a=t.ownerDocument.body,s=kl(r.scrollWidth,r.clientWidth,a.scrollWidth,a.clientWidth),u=kl(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let c=-l.scrollLeft+eu(t);const d=-l.scrollTop;return jn(a).direction==="rtl"&&(c+=kl(r.clientWidth,a.clientWidth)-s),{width:s,height:u,x:c,y:d}}const Sb=25;function O5(t,r){const l=an(t),a=Yn(t),s=l.visualViewport;let u=a.clientWidth,c=a.clientHeight,d=0,p=0;if(s){u=s.width,c=s.height;const y=Zs();(!y||y&&r==="fixed")&&(d=s.offsetLeft,p=s.offsetTop)}const h=eu(a);if(h<=0){const y=a.ownerDocument,m=y.body,x=getComputedStyle(m),b=y.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,w=Math.abs(a.clientWidth-m.clientWidth-b);w<=Sb&&(u-=w)}else h<=Sb&&(u+=h);return{width:u,height:c,x:d,y:p}}const M5=new Set(["absolute","fixed"]);function z5(t,r){const l=Al(t,!0,r==="fixed"),a=l.top+t.clientTop,s=l.left+t.clientLeft,u=Ct(t)?Ci(t):$n(1),c=t.clientWidth*u.x,d=t.clientHeight*u.y,p=s*u.x,h=a*u.y;return{width:c,height:d,x:p,y:h}}function kb(t,r,l){let a;if(r==="viewport")a=O5(t,l);else if(r==="document")a=D5(Yn(t));else if(st(r))a=z5(r,l);else{const s=r0(t);a={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return _s(a)}function i0(t,r){const l=br(t);return l===r||!st(l)||yr(l)?!1:jn(l).position==="fixed"||i0(l,r)}function B5(t,r){const l=r.get(t);if(l)return l;let a=Wr(t,[],!1).filter(d=>st(d)&&tl(d)!=="body"),s=null;const u=jn(t).position==="fixed";let c=u?br(t):t;for(;st(c)&&!yr(c);){const d=jn(c),p=Jd(c);!p&&d.position==="fixed"&&(s=null),(u?!p&&!s:!p&&d.position==="static"&&!!s&&M5.has(s.position)||qa(c)&&!p&&i0(t,c))?a=a.filter(y=>y!==c):s=d,c=br(c)}return r.set(t,a),a}function F5(t){let{element:r,boundary:l,rootBoundary:a,strategy:s}=t;const c=[...l==="clippingAncestors"?Xs(r)?[]:B5(r,this._c):[].concat(l),a],d=c[0],p=c.reduce((h,y)=>{const m=kb(r,y,s);return h.top=kl(m.top,h.top),h.right=Ts(m.right,h.right),h.bottom=Ts(m.bottom,h.bottom),h.left=kl(m.left,h.left),h},kb(r,d,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function I5(t){const{width:r,height:l}=n0(t);return{width:r,height:l}}function U5(t,r,l){const a=Ct(r),s=Yn(r),u=l==="fixed",c=Al(t,!0,u,r);let d={scrollLeft:0,scrollTop:0};const p=$n(0);function h(){p.x=eu(s)}if(a||!a&&!u)if((tl(r)!=="body"||qa(s))&&(d=Qs(r)),a){const b=Al(r,!0,u,r);p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}else s&&h();u&&!a&&s&&h();const y=s&&!a&&!u?l0(s,d):$n(0),m=c.left+d.scrollLeft-p.x-y.x,x=c.top+d.scrollTop-p.y-y.y;return{x:m,y:x,width:c.width,height:c.height}}function $f(t){return jn(t).position==="static"}function Eb(t,r){if(!Ct(t)||jn(t).position==="fixed")return null;if(r)return r(t);let l=t.offsetParent;return Yn(t)===l&&(l=l.ownerDocument.body),l}function a0(t,r){const l=an(t);if(Xs(t))return l;if(!Ct(t)){let s=br(t);for(;s&&!yr(s);){if(st(s)&&!$f(s))return s;s=br(s)}return l}let a=Eb(t,r);for(;a&<(a)&&$f(a);)a=Eb(a,r);return a&&yr(a)&&$f(a)&&!Jd(a)?l:a||zT(t)||l}const H5=async function(t){const r=this.getOffsetParent||a0,l=this.getDimensions,a=await l(t.floating);return{reference:U5(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function q5(t){return jn(t).direction==="rtl"}const V5={convertOffsetParentRelativeRectToViewportRelativeRect:L5,getDocumentElement:Yn,getClippingRect:F5,getOffsetParent:a0,getElementRects:H5,getClientRects:j5,getDimensions:I5,getScale:Ci,isElement:st,isRTL:q5};function o0(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function P5(t,r){let l=null,a;const s=Yn(t);function u(){var d;clearTimeout(a),(d=l)==null||d.disconnect(),l=null}function c(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),u();const h=t.getBoundingClientRect(),{left:y,top:m,width:x,height:b}=h;if(d||r(),!x||!b)return;const w=hs(m),k=hs(s.clientWidth-(y+x)),A=hs(s.clientHeight-(m+b)),E=hs(y),N={rootMargin:-w+"px "+-k+"px "+-A+"px "+-E+"px",threshold:kl(0,Ts(1,p))||1};let B=!0;function G(D){const U=D[0].intersectionRatio;if(U!==p){if(!B)return c();U?c(!1,U):a=setTimeout(()=>{c(!1,1e-7)},1e3)}U===1&&!o0(h,t.getBoundingClientRect())&&c(),B=!1}try{l=new IntersectionObserver(G,{...N,root:s.ownerDocument})}catch{l=new IntersectionObserver(G,N)}l.observe(t)}return c(!0),u}function $5(t,r,l,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=a,h=eh(t),y=s||u?[...h?Wr(h):[],...Wr(r)]:[];y.forEach(E=>{s&&E.addEventListener("scroll",l,{passive:!0}),u&&E.addEventListener("resize",l)});const m=h&&d?P5(h,l):null;let x=-1,b=null;c&&(b=new ResizeObserver(E=>{let[C]=E;C&&C.target===h&&b&&(b.unobserve(r),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=b)==null||N.observe(r)})),l()}),h&&!p&&b.observe(h),b.observe(r));let w,k=p?Al(t):null;p&&A();function A(){const E=Al(t);k&&!o0(k,E)&&l(),k=E,w=requestAnimationFrame(A)}return l(),()=>{var E;y.forEach(C=>{s&&C.removeEventListener("scroll",l),u&&C.removeEventListener("resize",l)}),m?.(),(E=b)==null||E.disconnect(),b=null,p&&cancelAnimationFrame(w)}}const G5=T5,Y5=N5,X5=E5,Z5=(t,r,l)=>{const a=new Map,s={platform:V5,...l},u={...s.platform,_c:a};return k5(t,r,{...s,platform:u})};var Q5=typeof document<"u",K5=function(){},bs=Q5?j.useLayoutEffect:K5;function Ms(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let l,a,s;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(l=t.length,l!==r.length)return!1;for(a=l;a--!==0;)if(!Ms(t[a],r[a]))return!1;return!0}if(s=Object.keys(t),l=s.length,l!==Object.keys(r).length)return!1;for(a=l;a--!==0;)if(!{}.hasOwnProperty.call(r,s[a]))return!1;for(a=l;a--!==0;){const u=s[a];if(!(u==="_owner"&&t.$$typeof)&&!Ms(t[u],r[u]))return!1}return!0}return t!==t&&r!==r}function s0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Cb(t,r){const l=s0(t);return Math.round(r*l)/l}function Gf(t){const r=j.useRef(t);return bs(()=>{r.current=t}),r}function J5(t){t===void 0&&(t={});const{placement:r="bottom",strategy:l="absolute",middleware:a=[],platform:s,elements:{reference:u,floating:c}={},transform:d=!0,whileElementsMounted:p,open:h}=t,[y,m]=j.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[x,b]=j.useState(a);Ms(x,a)||b(a);const[w,k]=j.useState(null),[A,E]=j.useState(null),C=j.useCallback(I=>{I!==D.current&&(D.current=I,k(I))},[]),N=j.useCallback(I=>{I!==U.current&&(U.current=I,E(I))},[]),B=u||w,G=c||A,D=j.useRef(null),U=j.useRef(null),Z=j.useRef(y),P=p!=null,M=Gf(p),q=Gf(s),$=Gf(h),J=j.useCallback(()=>{if(!D.current||!U.current)return;const I={placement:r,strategy:l,middleware:x};q.current&&(I.platform=q.current),Z5(D.current,U.current,I).then(K=>{const R={...K,isPositioned:$.current!==!1};F.current&&!Ms(Z.current,R)&&(Z.current=R,e0.flushSync(()=>{m(R)}))})},[x,r,l,q,$]);bs(()=>{h===!1&&Z.current.isPositioned&&(Z.current.isPositioned=!1,m(I=>({...I,isPositioned:!1})))},[h]);const F=j.useRef(!1);bs(()=>(F.current=!0,()=>{F.current=!1}),[]),bs(()=>{if(B&&(D.current=B),G&&(U.current=G),B&&G){if(M.current)return M.current(B,G,J);J()}},[B,G,J,M,P]);const X=j.useMemo(()=>({reference:D,floating:U,setReference:C,setFloating:N}),[C,N]),L=j.useMemo(()=>({reference:B,floating:G}),[B,G]),z=j.useMemo(()=>{const I={position:l,left:0,top:0};if(!L.floating)return I;const K=Cb(L.floating,y.x),R=Cb(L.floating,y.y);return d?{...I,transform:"translate("+K+"px, "+R+"px)",...s0(L.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:K,top:R}},[l,d,L.floating,y.x,y.y]);return j.useMemo(()=>({...y,update:J,refs:X,elements:L,floatingStyles:z}),[y,J,X,L,z])}const W5=(t,r)=>({...G5(t),options:[t,r]}),eN=(t,r)=>({...Y5(t),options:[t,r]}),tN=(t,r)=>({...X5(t),options:[t,r]}),nN="data-floating-ui-focusable",Ab="active",Tb="selected",rN={...Qb};let Nb=!1,lN=0;const Rb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+lN++;function iN(){const[t,r]=j.useState(()=>Nb?Rb():void 0);return ln(()=>{t==null&&r(Rb())},[]),j.useEffect(()=>{Nb=!0},[]),t}const aN=rN.useId,th=aN||iN;function oN(){const t=new Map;return{emit(r,l){var a;(a=t.get(r))==null||a.forEach(s=>s(l))},on(r,l){t.has(r)||t.set(r,new Set),t.get(r).add(l)},off(r,l){var a;(a=t.get(r))==null||a.delete(l)}}}const sN=j.createContext(null),uN=j.createContext(null),nh=()=>{var t;return((t=j.useContext(sN))==null?void 0:t.id)||null},tu=()=>j.useContext(uN);function Tl(t){return"data-floating-ui-"+t}function Yt(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const _b=Tl("safe-polygon");function Yf(t,r,l){if(l&&!Fa(l))return 0;if(typeof t=="number")return t;if(typeof t=="function"){const a=t();return typeof a=="number"?a:a?.[r]}return t?.[r]}function Xf(t){return typeof t=="function"?t():t}function cN(t,r){r===void 0&&(r={});const{open:l,onOpenChange:a,dataRef:s,events:u,elements:c}=t,{enabled:d=!0,delay:p=0,handleClose:h=null,mouseOnly:y=!1,restMs:m=0,move:x=!0}=r,b=tu(),w=nh(),k=Sl(h),A=Sl(p),E=Sl(l),C=Sl(m),N=j.useRef(),B=j.useRef(-1),G=j.useRef(),D=j.useRef(-1),U=j.useRef(!0),Z=j.useRef(!1),P=j.useRef(()=>{}),M=j.useRef(!1),q=rn(()=>{var z;const I=(z=s.current.openEvent)==null?void 0:z.type;return I?.includes("mouse")&&I!=="mousedown"});j.useEffect(()=>{if(!d)return;function z(I){let{open:K}=I;K||(Yt(B),Yt(D),U.current=!0,M.current=!1)}return u.on("openchange",z),()=>{u.off("openchange",z)}},[d,u]),j.useEffect(()=>{if(!d||!k.current||!l)return;function z(K){q()&&a(!1,K,"hover")}const I=Ut(c.floating).documentElement;return I.addEventListener("mouseleave",z),()=>{I.removeEventListener("mouseleave",z)}},[c.floating,l,a,d,k,q]);const $=j.useCallback(function(z,I,K){I===void 0&&(I=!0),K===void 0&&(K="hover");const R=Yf(A.current,"close",N.current);R&&!G.current?(Yt(B),B.current=window.setTimeout(()=>a(!1,z,K),R)):I&&(Yt(B),a(!1,z,K))},[A,a]),J=rn(()=>{P.current(),G.current=void 0}),F=rn(()=>{if(Z.current){const z=Ut(c.floating).body;z.style.pointerEvents="",z.removeAttribute(_b),Z.current=!1}}),X=rn(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);j.useEffect(()=>{if(!d)return;function z(V){if(Yt(B),U.current=!1,y&&!Fa(N.current)||Xf(C.current)>0&&!Yf(A.current,"open"))return;const T=Yf(A.current,"open",N.current);T?B.current=window.setTimeout(()=>{E.current||a(!0,V,"hover")},T):l||a(!0,V,"hover")}function I(V){if(X()){F();return}P.current();const T=Ut(c.floating);if(Yt(D),M.current=!1,k.current&&s.current.floatingContext){l||Yt(B),G.current=k.current({...s.current.floatingContext,tree:b,x:V.clientX,y:V.clientY,onClose(){F(),J(),X()||$(V,!0,"safe-polygon")}});const ce=G.current;T.addEventListener("mousemove",ce),P.current=()=>{T.removeEventListener("mousemove",ce)};return}(N.current!=="touch"||!It(c.floating,V.relatedTarget))&&$(V)}function K(V){X()||s.current.floatingContext&&(k.current==null||k.current({...s.current.floatingContext,tree:b,x:V.clientX,y:V.clientY,onClose(){F(),J(),X()||$(V)}})(V))}function R(){Yt(B)}function O(V){X()||$(V,!1)}if(st(c.domReference)){const V=c.domReference,T=c.floating;return l&&V.addEventListener("mouseleave",K),x&&V.addEventListener("mousemove",z,{once:!0}),V.addEventListener("mouseenter",z),V.addEventListener("mouseleave",I),T&&(T.addEventListener("mouseleave",K),T.addEventListener("mouseenter",R),T.addEventListener("mouseleave",O)),()=>{l&&V.removeEventListener("mouseleave",K),x&&V.removeEventListener("mousemove",z),V.removeEventListener("mouseenter",z),V.removeEventListener("mouseleave",I),T&&(T.removeEventListener("mouseleave",K),T.removeEventListener("mouseenter",R),T.removeEventListener("mouseleave",O))}}},[c,d,t,y,x,$,J,F,a,l,E,b,A,k,s,X,C]),ln(()=>{var z;if(d&&l&&(z=k.current)!=null&&(z=z.__options)!=null&&z.blockPointerEvents&&q()){Z.current=!0;const K=c.floating;if(st(c.domReference)&&K){var I;const R=Ut(c.floating).body;R.setAttribute(_b,"");const O=c.domReference,V=b==null||(I=b.nodesRef.current.find(T=>T.id===w))==null||(I=I.context)==null?void 0:I.elements.floating;return V&&(V.style.pointerEvents=""),R.style.pointerEvents="none",O.style.pointerEvents="auto",K.style.pointerEvents="auto",()=>{R.style.pointerEvents="",O.style.pointerEvents="",K.style.pointerEvents=""}}}},[d,l,w,c,b,k,q]),ln(()=>{l||(N.current=void 0,M.current=!1,J(),F())},[l,J,F]),j.useEffect(()=>()=>{J(),Yt(B),Yt(D),F()},[d,c.domReference,J,F]);const L=j.useMemo(()=>{function z(I){N.current=I.pointerType}return{onPointerDown:z,onPointerEnter:z,onMouseMove(I){const{nativeEvent:K}=I;function R(){!U.current&&!E.current&&a(!0,K,"hover")}y&&!Fa(N.current)||l||Xf(C.current)===0||M.current&&I.movementX**2+I.movementY**2<2||(Yt(D),N.current==="touch"?R():(M.current=!0,D.current=window.setTimeout(R,Xf(C.current))))}}},[y,a,l,E,C]);return j.useMemo(()=>d?{reference:L}:{},[d,L])}let Lb=0;function wi(t,r){r===void 0&&(r={});const{preventScroll:l=!1,cancelPrevious:a=!0,sync:s=!1}=r;a&&cancelAnimationFrame(Lb);const u=()=>t?.focus({preventScroll:l});s?u():Lb=requestAnimationFrame(u)}function Zf(t,r){if(!t||!r)return!1;const l=r.getRootNode==null?void 0:r.getRootNode();if(t.contains(r))return!0;if(l&&As(l)){let a=r;for(;a;){if(t===a)return!0;a=a.parentNode||a.host}}return!1}function fN(t){return"composedPath"in t?t.composedPath()[0]:t.target}function dN(t){return t?.ownerDocument||document}const Ai={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function jb(t){return t==="inert"?Ai.inert:t==="aria-hidden"?Ai["aria-hidden"]:Ai.none}let ps=new WeakSet,gs={},Qf=0;const hN=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,u0=t=>t&&(t.host||u0(t.parentNode)),pN=(t,r)=>r.map(l=>{if(t.contains(l))return l;const a=u0(l);return t.contains(a)?a:null}).filter(l=>l!=null);function gN(t,r,l,a){const s="data-floating-ui-inert",u=a?"inert":l?"aria-hidden":null,c=pN(r,t),d=new Set,p=new Set(c),h=[];gs[s]||(gs[s]=new WeakMap);const y=gs[s];c.forEach(m),x(r),d.clear();function m(b){!b||d.has(b)||(d.add(b),b.parentNode&&m(b.parentNode))}function x(b){!b||p.has(b)||[].forEach.call(b.children,w=>{if(tl(w)!=="script")if(d.has(w))x(w);else{const k=u?w.getAttribute(u):null,A=k!==null&&k!=="false",E=jb(u),C=(E.get(w)||0)+1,N=(y.get(w)||0)+1;E.set(w,C),y.set(w,N),h.push(w),C===1&&A&&ps.add(w),N===1&&w.setAttribute(s,""),!A&&u&&w.setAttribute(u,u==="inert"?"":"true")}})}return Qf++,()=>{h.forEach(b=>{const w=jb(u),A=(w.get(b)||0)-1,E=(y.get(b)||0)-1;w.set(b,A),y.set(b,E),A||(!ps.has(b)&&u&&b.removeAttribute(u),ps.delete(b)),E||b.removeAttribute(s)}),Qf--,Qf||(Ai.inert=new WeakMap,Ai["aria-hidden"]=new WeakMap,Ai.none=new WeakMap,ps=new WeakSet,gs={})}}function Db(t,r,l){r===void 0&&(r=!1),l===void 0&&(l=!1);const a=dN(t[0]).body;return gN(t.concat(Array.from(a.querySelectorAll('[aria-live],[role="status"],output'))),a,r,l)}const nu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},zs=j.forwardRef(function(r,l){const[a,s]=j.useState();ln(()=>{Z1()&&s("button")},[]);const u={ref:l,tabIndex:0,role:a,"aria-hidden":a?void 0:!0,[Tl("focus-guard")]:"",style:nu};return v.jsx("span",{...r,...u})}),c0=j.createContext(null),Ob=Tl("portal");function mN(t){t===void 0&&(t={});const{id:r,root:l}=t,a=th(),s=f0(),[u,c]=j.useState(null),d=j.useRef(null);return ln(()=>()=>{u?.remove(),queueMicrotask(()=>{d.current=null})},[u]),ln(()=>{if(!a||d.current)return;const p=r?document.getElementById(r):null;if(!p)return;const h=document.createElement("div");h.id=a,h.setAttribute(Ob,""),p.appendChild(h),d.current=h,c(h)},[r,a]),ln(()=>{if(l===null||!a||d.current)return;let p=l||s?.portalNode;p&&!Kd(p)&&(p=p.current),p=p||document.body;let h=null;r&&(h=document.createElement("div"),h.id=r,p.appendChild(h));const y=document.createElement("div");y.id=a,y.setAttribute(Ob,""),p=h||p,p.appendChild(y),d.current=y,c(y)},[r,l,a,s]),u}function yN(t){const{children:r,id:l,root:a,preserveTabOrder:s=!0}=t,u=mN({id:l,root:a}),[c,d]=j.useState(null),p=j.useRef(null),h=j.useRef(null),y=j.useRef(null),m=j.useRef(null),x=c?.modal,b=c?.open,w=!!c&&!c.modal&&c.open&&s&&!!(a||u);return j.useEffect(()=>{if(!u||!s||x)return;function k(A){u&&Da(A)&&(A.type==="focusin"?vb:S5)(u)}return u.addEventListener("focusin",k,!0),u.addEventListener("focusout",k,!0),()=>{u.removeEventListener("focusin",k,!0),u.removeEventListener("focusout",k,!0)}},[u,s,x]),j.useEffect(()=>{u&&(b||vb(u))},[b,u]),v.jsxs(c0.Provider,{value:j.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:p,afterOutsideRef:h,beforeInsideRef:y,afterInsideRef:m,portalNode:u,setFocusManagerState:d}),[s,u]),children:[w&&u&&v.jsx(zs,{"data-type":"outside",ref:p,onFocus:k=>{if(Da(k,u)){var A;(A=y.current)==null||A.focus()}else{const E=c?c.domReference:null,C=W1(E);C?.focus()}}}),w&&u&&v.jsx("span",{"aria-owns":u.id,style:nu}),u&&e0.createPortal(r,u),w&&u&&v.jsx(zs,{"data-type":"outside",ref:h,onFocus:k=>{if(Da(k,u)){var A;(A=m.current)==null||A.focus()}else{const E=c?c.domReference:null,C=J1(E);C?.focus(),c?.closeOnFocusOut&&c?.onOpenChange(!1,k.nativeEvent,"focus-out")}}})]})}const f0=()=>j.useContext(c0);function Mb(t){return j.useMemo(()=>r=>{t.forEach(l=>{l&&(l.current=r)})},t)}const bN=20;let Kr=[];function rh(){Kr=Kr.filter(t=>t.isConnected)}function xN(t){rh(),t&&tl(t)!=="body"&&(Kr.push(t),Kr.length>bN&&(Kr=Kr.slice(-20)))}function zb(){return rh(),Kr[Kr.length-1]}function vN(t){const r=Va();return G1(t,r)?t:Ws(t,r)[0]||t}function Bb(t,r){var l;if(!r.current.includes("floating")&&!((l=t.getAttribute("role"))!=null&&l.includes("dialog")))return;const a=Va(),u=u5(t,a).filter(d=>{const p=d.getAttribute("data-tabindex")||"";return G1(d,a)||d.hasAttribute("data-tabindex")&&!p.startsWith("-")}),c=t.getAttribute("tabindex");r.current.includes("floating")||u.length===0?c!=="0"&&t.setAttribute("tabindex","0"):(c!=="-1"||t.hasAttribute("data-tabindex")&&t.getAttribute("data-tabindex")!=="-1")&&(t.setAttribute("tabindex","-1"),t.setAttribute("data-tabindex","-1"))}const wN=j.forwardRef(function(r,l){return v.jsx("button",{...r,type:"button",ref:l,tabIndex:-1,style:nu})});function SN(t){const{context:r,children:l,disabled:a=!1,order:s=["content"],guards:u=!0,initialFocus:c=0,returnFocus:d=!0,restoreFocus:p=!1,modal:h=!0,visuallyHiddenDismiss:y=!1,closeOnFocusOut:m=!0,outsideElementsInert:x=!1,getInsideElements:b=()=>[]}=t,{open:w,onOpenChange:k,events:A,dataRef:E,elements:{domReference:C,floating:N}}=r,B=rn(()=>{var xe;return(xe=E.current.floatingContext)==null?void 0:xe.nodeId}),G=rn(b),D=typeof c=="number"&&c<0,U=bb(C)&&D,Z=hN(),P=Z?u:!0,M=!P||Z&&x,q=Sl(s),$=Sl(c),J=Sl(d),F=tu(),X=f0(),L=j.useRef(null),z=j.useRef(null),I=j.useRef(!1),K=j.useRef(!1),R=j.useRef(-1),O=j.useRef(-1),V=X!=null,T=kd(N),le=rn(function(xe){return xe===void 0&&(xe=T),xe?Ws(xe,Va()):[]}),ce=rn(xe=>{const Le=le(xe);return q.current.map(Te=>C&&Te==="reference"?C:T&&Te==="floating"?T:Le).filter(Boolean).flat()});j.useEffect(()=>{if(a||!h)return;function xe(Te){if(Te.key==="Tab"){It(T,Zr(Ut(T)))&&le().length===0&&!U&&Pf(Te);const Qe=ce(),Me=gr(Te);q.current[0]==="reference"&&Me===C&&(Pf(Te),Te.shiftKey?wi(Qe[Qe.length-1]):wi(Qe[1])),q.current[1]==="floating"&&Me===T&&Te.shiftKey&&(Pf(Te),wi(Qe[0]))}}const Le=Ut(T);return Le.addEventListener("keydown",xe),()=>{Le.removeEventListener("keydown",xe)}},[a,C,T,h,q,U,le,ce]),j.useEffect(()=>{if(a||!N)return;function xe(Le){const Te=gr(Le),Me=le().indexOf(Te);Me!==-1&&(R.current=Me)}return N.addEventListener("focusin",xe),()=>{N.removeEventListener("focusin",xe)}},[a,N,le]),j.useEffect(()=>{if(a||!m)return;function xe(){K.current=!0,setTimeout(()=>{K.current=!1})}function Le(Me){const Ue=Me.relatedTarget,_t=Me.currentTarget,ht=gr(Me);queueMicrotask(()=>{const pt=B(),Vt=!(It(C,Ue)||It(N,Ue)||It(Ue,N)||It(X?.portalNode,Ue)||Ue!=null&&Ue.hasAttribute(Tl("focus-guard"))||F&&(Ei(F.nodesRef.current,pt).find(Pt=>{var $t,at;return It(($t=Pt.context)==null?void 0:$t.elements.floating,Ue)||It((at=Pt.context)==null?void 0:at.elements.domReference,Ue)})||xb(F.nodesRef.current,pt).find(Pt=>{var $t,at,vr;return[($t=Pt.context)==null?void 0:$t.elements.floating,kd((at=Pt.context)==null?void 0:at.elements.floating)].includes(Ue)||((vr=Pt.context)==null?void 0:vr.elements.domReference)===Ue})));if(_t===C&&T&&Bb(T,q),p&&_t!==C&&!(ht!=null&&ht.isConnected)&&Zr(Ut(T))===Ut(T).body){Ct(T)&&T.focus();const Pt=R.current,$t=le(),at=$t[Pt]||$t[$t.length-1]||T;Ct(at)&&at.focus()}if(E.current.insideReactTree){E.current.insideReactTree=!1;return}(U||!h)&&Ue&&Vt&&!K.current&&Ue!==zb()&&(I.current=!0,k(!1,Me,"focus-out"))})}const Te=!!(!F&&X);function Qe(){Yt(O),E.current.insideReactTree=!0,O.current=window.setTimeout(()=>{E.current.insideReactTree=!1})}if(N&&Ct(C))return C.addEventListener("focusout",Le),C.addEventListener("pointerdown",xe),N.addEventListener("focusout",Le),Te&&N.addEventListener("focusout",Qe,!0),()=>{C.removeEventListener("focusout",Le),C.removeEventListener("pointerdown",xe),N.removeEventListener("focusout",Le),Te&&N.removeEventListener("focusout",Qe,!0)}},[a,C,N,T,h,F,X,k,m,p,le,U,B,q,E]);const fe=j.useRef(null),de=j.useRef(null),ge=Mb([fe,X?.beforeInsideRef]),he=Mb([de,X?.afterInsideRef]);j.useEffect(()=>{var xe,Le;if(a||!N)return;const Te=Array.from((X==null||(xe=X.portalNode)==null?void 0:xe.querySelectorAll("["+Tl("portal")+"]"))||[]),Me=(Le=(F?xb(F.nodesRef.current,B()):[]).find(ht=>{var pt;return bb(((pt=ht.context)==null?void 0:pt.elements.domReference)||null)}))==null||(Le=Le.context)==null?void 0:Le.elements.domReference,Ue=[N,Me,...Te,...G(),L.current,z.current,fe.current,de.current,X?.beforeOutsideRef.current,X?.afterOutsideRef.current,q.current.includes("reference")||U?C:null].filter(ht=>ht!=null),_t=h||U?Db(Ue,!M,M):Db(Ue);return()=>{_t()}},[a,C,N,h,q,X,U,P,M,F,B,G]),ln(()=>{if(a||!Ct(T))return;const xe=Ut(T),Le=Zr(xe);queueMicrotask(()=>{const Te=ce(T),Qe=$.current,Me=(typeof Qe=="number"?Te[Qe]:Qe.current)||T,Ue=It(T,Le);!D&&!Ue&&w&&wi(Me,{preventScroll:Me===T})})},[a,w,T,D,ce,$]),ln(()=>{if(a||!T)return;const xe=Ut(T),Le=Zr(xe);xN(Le);function Te(Ue){let{reason:_t,event:ht,nested:pt}=Ue;if(["hover","safe-polygon"].includes(_t)&&ht.type==="mouseleave"&&(I.current=!0),_t==="outside-press")if(pt)I.current=!1;else if(g5(ht)||m5(ht))I.current=!1;else{let Vt=!1;document.createElement("div").focus({get preventScroll(){return Vt=!0,!1}}),Vt?I.current=!1:I.current=!0}}A.on("openchange",Te);const Qe=xe.createElement("span");Qe.setAttribute("tabindex","-1"),Qe.setAttribute("aria-hidden","true"),Object.assign(Qe.style,nu),V&&C&&C.insertAdjacentElement("afterend",Qe);function Me(){if(typeof J.current=="boolean"){const Ue=C||zb();return Ue&&Ue.isConnected?Ue:Qe}return J.current.current||Qe}return()=>{A.off("openchange",Te);const Ue=Zr(xe),_t=It(N,Ue)||F&&Ei(F.nodesRef.current,B(),!1).some(pt=>{var Vt;return It((Vt=pt.context)==null?void 0:Vt.elements.floating,Ue)}),ht=Me();queueMicrotask(()=>{const pt=vN(ht);J.current&&!I.current&&Ct(pt)&&(!(pt!==Ue&&Ue!==xe.body)||_t)&&pt.focus({preventScroll:!0}),Qe.remove()})}},[a,N,T,J,E,A,F,V,C,B]),j.useEffect(()=>(queueMicrotask(()=>{I.current=!1}),()=>{queueMicrotask(rh)}),[a]),ln(()=>{if(!a&&X)return X.setFocusManagerState({modal:h,closeOnFocusOut:m,open:w,onOpenChange:k,domReference:C}),()=>{X.setFocusManagerState(null)}},[a,X,h,w,k,m,C]),ln(()=>{a||T&&Bb(T,q)},[a,T,q]);function be(xe){return a||!y||!h?null:v.jsx(wN,{ref:xe==="start"?L:z,onClick:Le=>k(!1,Le.nativeEvent),children:typeof y=="string"?y:"Dismiss"})}const Re=!a&&P&&(h?!U:!0)&&(V||h);return v.jsxs(v.Fragment,{children:[Re&&v.jsx(zs,{"data-type":"inside",ref:ge,onFocus:xe=>{if(h){const Te=ce();wi(s[0]==="reference"?Te[0]:Te[Te.length-1])}else if(X!=null&&X.preserveTabOrder&&X.portalNode)if(I.current=!1,Da(xe,X.portalNode)){const Te=J1(C);Te?.focus()}else{var Le;(Le=X.beforeOutsideRef.current)==null||Le.focus()}}}),!U&&be("start"),l,be("end"),Re&&v.jsx(zs,{"data-type":"inside",ref:he,onFocus:xe=>{if(h)wi(ce()[0]);else if(X!=null&&X.preserveTabOrder&&X.portalNode)if(m&&(I.current=!0),Da(xe,X.portalNode)){const Te=W1(C);Te?.focus()}else{var Le;(Le=X.afterOutsideRef.current)==null||Le.focus()}}})]})}function Fb(t){return Ct(t.target)&&t.target.tagName==="BUTTON"}function kN(t){return Ct(t.target)&&t.target.tagName==="A"}function Ib(t){return Wd(t)}function EN(t,r){r===void 0&&(r={});const{open:l,onOpenChange:a,dataRef:s,elements:{domReference:u}}=t,{enabled:c=!0,event:d="click",toggle:p=!0,ignoreMouse:h=!1,keyboardHandlers:y=!0,stickIfOpen:m=!0}=r,x=j.useRef(),b=j.useRef(!1),w=j.useMemo(()=>({onPointerDown(k){x.current=k.pointerType},onMouseDown(k){const A=x.current;k.button===0&&d!=="click"&&(Fa(A,!0)&&h||(l&&p&&(!(s.current.openEvent&&m)||s.current.openEvent.type==="mousedown")?a(!1,k.nativeEvent,"click"):(k.preventDefault(),a(!0,k.nativeEvent,"click"))))},onClick(k){const A=x.current;if(d==="mousedown"&&x.current){x.current=void 0;return}Fa(A,!0)&&h||(l&&p&&(!(s.current.openEvent&&m)||s.current.openEvent.type==="click")?a(!1,k.nativeEvent,"click"):a(!0,k.nativeEvent,"click"))},onKeyDown(k){x.current=void 0,!(k.defaultPrevented||!y||Fb(k))&&(k.key===" "&&!Ib(u)&&(k.preventDefault(),b.current=!0),!kN(k)&&k.key==="Enter"&&a(!(l&&p),k.nativeEvent,"click"))},onKeyUp(k){k.defaultPrevented||!y||Fb(k)||Ib(u)||k.key===" "&&b.current&&(b.current=!1,a(!(l&&p),k.nativeEvent,"click"))}}),[s,u,d,h,y,a,l,m,p]);return j.useMemo(()=>c?{reference:w}:{},[c,w])}const CN={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},AN={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ub=t=>{var r,l;return{escapeKey:typeof t=="boolean"?t:(r=t?.escapeKey)!=null?r:!1,outsidePress:typeof t=="boolean"?t:(l=t?.outsidePress)!=null?l:!0}};function TN(t,r){r===void 0&&(r={});const{open:l,onOpenChange:a,elements:s,dataRef:u}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:p=!0,outsidePressEvent:h="pointerdown",referencePress:y=!1,referencePressEvent:m="pointerdown",ancestorScroll:x=!1,bubbles:b,capture:w}=r,k=tu(),A=rn(typeof p=="function"?p:()=>!1),E=typeof p=="function"?A:p,C=j.useRef(!1),{escapeKey:N,outsidePress:B}=Ub(b),{escapeKey:G,outsidePress:D}=Ub(w),U=j.useRef(!1),Z=rn(F=>{var X;if(!l||!c||!d||F.key!=="Escape"||U.current)return;const L=(X=u.current.floatingContext)==null?void 0:X.nodeId,z=k?Ei(k.nodesRef.current,L):[];if(!N&&(F.stopPropagation(),z.length>0)){let I=!0;if(z.forEach(K=>{var R;if((R=K.context)!=null&&R.open&&!K.context.dataRef.current.__escapeKeyBubbles){I=!1;return}}),!I)return}a(!1,p5(F)?F.nativeEvent:F,"escape-key")}),P=rn(F=>{var X;const L=()=>{var z;Z(F),(z=gr(F))==null||z.removeEventListener("keydown",L)};(X=gr(F))==null||X.addEventListener("keydown",L)}),M=rn(F=>{var X;const L=u.current.insideReactTree;u.current.insideReactTree=!1;const z=C.current;if(C.current=!1,h==="click"&&z||L||typeof E=="function"&&!E(F))return;const I=gr(F),K="["+Tl("inert")+"]",R=Ut(s.floating).querySelectorAll(K);let O=st(I)?I:null;for(;O&&!yr(O);){const ce=br(O);if(yr(ce)||!st(ce))break;O=ce}if(R.length&&st(I)&&!d5(I)&&!It(I,s.floating)&&Array.from(R).every(ce=>!It(O,ce)))return;if(Ct(I)&&J){const ce=yr(I),fe=jn(I),de=/auto|scroll/,ge=ce||de.test(fe.overflowX),he=ce||de.test(fe.overflowY),be=ge&&I.clientWidth>0&&I.scrollWidth>I.clientWidth,Re=he&&I.clientHeight>0&&I.scrollHeight>I.clientHeight,xe=fe.direction==="rtl",Le=Re&&(xe?F.offsetX<=I.offsetWidth-I.clientWidth:F.offsetX>I.clientWidth),Te=be&&F.offsetY>I.clientHeight;if(Le||Te)return}const V=(X=u.current.floatingContext)==null?void 0:X.nodeId,T=k&&Ei(k.nodesRef.current,V).some(ce=>{var fe;return Vf(F,(fe=ce.context)==null?void 0:fe.elements.floating)});if(Vf(F,s.floating)||Vf(F,s.domReference)||T)return;const le=k?Ei(k.nodesRef.current,V):[];if(le.length>0){let ce=!0;if(le.forEach(fe=>{var de;if((de=fe.context)!=null&&de.open&&!fe.context.dataRef.current.__outsidePressBubbles){ce=!1;return}}),!ce)return}a(!1,F,"outside-press")}),q=rn(F=>{var X;const L=()=>{var z;M(F),(z=gr(F))==null||z.removeEventListener(h,L)};(X=gr(F))==null||X.addEventListener(h,L)});j.useEffect(()=>{if(!l||!c)return;u.current.__escapeKeyBubbles=N,u.current.__outsidePressBubbles=B;let F=-1;function X(R){a(!1,R,"ancestor-scroll")}function L(){window.clearTimeout(F),U.current=!0}function z(){F=window.setTimeout(()=>{U.current=!1},Zs()?5:0)}const I=Ut(s.floating);d&&(I.addEventListener("keydown",G?P:Z,G),I.addEventListener("compositionstart",L),I.addEventListener("compositionend",z)),E&&I.addEventListener(h,D?q:M,D);let K=[];return x&&(st(s.domReference)&&(K=Wr(s.domReference)),st(s.floating)&&(K=K.concat(Wr(s.floating))),!st(s.reference)&&s.reference&&s.reference.contextElement&&(K=K.concat(Wr(s.reference.contextElement)))),K=K.filter(R=>{var O;return R!==((O=I.defaultView)==null?void 0:O.visualViewport)}),K.forEach(R=>{R.addEventListener("scroll",X,{passive:!0})}),()=>{d&&(I.removeEventListener("keydown",G?P:Z,G),I.removeEventListener("compositionstart",L),I.removeEventListener("compositionend",z)),E&&I.removeEventListener(h,D?q:M,D),K.forEach(R=>{R.removeEventListener("scroll",X)}),window.clearTimeout(F)}},[u,s,d,E,h,l,a,x,c,N,B,Z,G,P,M,D,q]),j.useEffect(()=>{u.current.insideReactTree=!1},[u,E,h]);const $=j.useMemo(()=>({onKeyDown:Z,...y&&{[CN[m]]:F=>{a(!1,F.nativeEvent,"reference-press")},...m!=="click"&&{onClick(F){a(!1,F.nativeEvent,"reference-press")}}}}),[Z,a,y,m]),J=j.useMemo(()=>({onKeyDown:Z,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[AN[h]]:()=>{u.current.insideReactTree=!0}}),[Z,h,u]);return j.useMemo(()=>c?{reference:$,floating:J}:{},[c,$,J])}function NN(t){const{open:r=!1,onOpenChange:l,elements:a}=t,s=th(),u=j.useRef({}),[c]=j.useState(()=>oN()),d=nh()!=null,[p,h]=j.useState(a.reference),y=rn((b,w,k)=>{u.current.openEvent=b?w:void 0,c.emit("openchange",{open:b,event:w,reason:k,nested:d}),l?.(b,w,k)}),m=j.useMemo(()=>({setPositionReference:h}),[]),x=j.useMemo(()=>({reference:p||a.reference||null,floating:a.floating||null,domReference:a.reference}),[p,a.reference,a.floating]);return j.useMemo(()=>({dataRef:u,open:r,onOpenChange:y,elements:x,events:c,floatingId:s,refs:m}),[r,y,x,c,s,m])}function RN(t){t===void 0&&(t={});const{nodeId:r}=t,l=NN({...t,elements:{reference:null,floating:null,...t.elements}}),a=t.rootContext||l,s=a.elements,[u,c]=j.useState(null),[d,p]=j.useState(null),y=s?.domReference||u,m=j.useRef(null),x=tu();ln(()=>{y&&(m.current=y)},[y]);const b=J5({...t,elements:{...s,...d&&{reference:d}}}),w=j.useCallback(N=>{const B=st(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),getClientRects:()=>N.getClientRects(),contextElement:N}:N;p(B),b.refs.setReference(B)},[b.refs]),k=j.useCallback(N=>{(st(N)||N===null)&&(m.current=N,c(N)),(st(b.refs.reference.current)||b.refs.reference.current===null||N!==null&&!st(N))&&b.refs.setReference(N)},[b.refs]),A=j.useMemo(()=>({...b.refs,setReference:k,setPositionReference:w,domReference:m}),[b.refs,k,w]),E=j.useMemo(()=>({...b.elements,domReference:y}),[b.elements,y]),C=j.useMemo(()=>({...b,...a,refs:A,elements:E,nodeId:r}),[b,A,E,r,a]);return ln(()=>{a.dataRef.current.floatingContext=C;const N=x?.nodesRef.current.find(B=>B.id===r);N&&(N.context=C)}),j.useMemo(()=>({...b,context:C,refs:A,elements:E}),[b,A,E,C])}function Kf(){return c5()&&Z1()}function _N(t,r){r===void 0&&(r={});const{open:l,onOpenChange:a,events:s,dataRef:u,elements:c}=t,{enabled:d=!0,visibleOnly:p=!0}=r,h=j.useRef(!1),y=j.useRef(-1),m=j.useRef(!0);j.useEffect(()=>{if(!d)return;const b=an(c.domReference);function w(){!l&&Ct(c.domReference)&&c.domReference===Zr(Ut(c.domReference))&&(h.current=!0)}function k(){m.current=!0}function A(){m.current=!1}return b.addEventListener("blur",w),Kf()&&(b.addEventListener("keydown",k,!0),b.addEventListener("pointerdown",A,!0)),()=>{b.removeEventListener("blur",w),Kf()&&(b.removeEventListener("keydown",k,!0),b.removeEventListener("pointerdown",A,!0))}},[c.domReference,l,d]),j.useEffect(()=>{if(!d)return;function b(w){let{reason:k}=w;(k==="reference-press"||k==="escape-key")&&(h.current=!0)}return s.on("openchange",b),()=>{s.off("openchange",b)}},[s,d]),j.useEffect(()=>()=>{Yt(y)},[]);const x=j.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(b){if(h.current)return;const w=gr(b.nativeEvent);if(p&&st(w)){if(Kf()&&!b.relatedTarget){if(!m.current&&!Wd(w))return}else if(!h5(w))return}a(!0,b.nativeEvent,"focus")},onBlur(b){h.current=!1;const w=b.relatedTarget,k=b.nativeEvent,A=st(w)&&w.hasAttribute(Tl("focus-guard"))&&w.getAttribute("data-type")==="outside";y.current=window.setTimeout(()=>{var E;const C=Zr(c.domReference?c.domReference.ownerDocument:document);!w&&C===c.domReference||It((E=u.current.floatingContext)==null?void 0:E.refs.floating.current,C)||It(c.domReference,C)||A||a(!1,k,"focus")})}}),[u,c.domReference,a,p]);return j.useMemo(()=>d?{reference:x}:{},[d,x])}function Jf(t,r,l){const a=new Map,s=l==="item";let u=t;if(s&&t){const{[Ab]:c,[Tb]:d,...p}=t;u=p}return{...l==="floating"&&{tabIndex:-1,[nN]:""},...u,...r.map(c=>{const d=c?c[l]:null;return typeof d=="function"?t?d(t):null:d}).concat(t).reduce((c,d)=>(d&&Object.entries(d).forEach(p=>{let[h,y]=p;if(!(s&&[Ab,Tb].includes(h)))if(h.indexOf("on")===0){if(a.has(h)||a.set(h,[]),typeof y=="function"){var m;(m=a.get(h))==null||m.push(y),c[h]=function(){for(var x,b=arguments.length,w=new Array(b),k=0;k<b;k++)w[k]=arguments[k];return(x=a.get(h))==null?void 0:x.map(A=>A(...w)).find(A=>A!==void 0)}}}else c[h]=y}),c),{})}}function LN(t){t===void 0&&(t=[]);const r=t.map(d=>d?.reference),l=t.map(d=>d?.floating),a=t.map(d=>d?.item),s=j.useCallback(d=>Jf(d,t,"reference"),r),u=j.useCallback(d=>Jf(d,t,"floating"),l),c=j.useCallback(d=>Jf(d,t,"item"),a);return j.useMemo(()=>({getReferenceProps:s,getFloatingProps:u,getItemProps:c}),[s,u,c])}const jN=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function DN(t,r){var l,a;r===void 0&&(r={});const{open:s,elements:u,floatingId:c}=t,{enabled:d=!0,role:p="dialog"}=r,h=th(),y=((l=u.domReference)==null?void 0:l.id)||h,m=j.useMemo(()=>{var C;return((C=kd(u.floating))==null?void 0:C.id)||c},[u.floating,c]),x=(a=jN.get(p))!=null?a:p,w=nh()!=null,k=j.useMemo(()=>x==="tooltip"||p==="label"?{["aria-"+(p==="label"?"labelledby":"describedby")]:s?m:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":x==="alertdialog"?"dialog":x,"aria-controls":s?m:void 0,...x==="listbox"&&{role:"combobox"},...x==="menu"&&{id:y},...x==="menu"&&w&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[x,m,w,s,y,p]),A=j.useMemo(()=>{const C={id:m,...x&&{role:x}};return x==="tooltip"||p==="label"?C:{...C,...x==="menu"&&{"aria-labelledby":y}}},[x,m,y,p]),E=j.useCallback(C=>{let{active:N,selected:B}=C;const G={role:"option",...N&&{id:m+"-fui-option"}};switch(p){case"select":case"combobox":return{...G,"aria-selected":B}}return{}},[m,p]);return j.useMemo(()=>d?{reference:k,floating:A,item:E}:{},[d,k,A,E])}function d0(t,r,l){return l===void 0&&(l=!0),t.filter(s=>{var u;return s.parentId===r&&(!l||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...d0(t,s.id,l)])}function Hb(t,r){const[l,a]=t;let s=!1;const u=r.length;for(let c=0,d=u-1;c<u;d=c++){const[p,h]=r[c]||[0,0],[y,m]=r[d]||[0,0];h>=a!=m>=a&&l<=(y-p)*(a-h)/(m-h)+p&&(s=!s)}return s}function ON(t,r){return t[0]>=r.x&&t[0]<=r.x+r.width&&t[1]>=r.y&&t[1]<=r.y+r.height}function MN(t){t===void 0&&(t={});const{buffer:r=.5,blockPointerEvents:l=!1,requireIntent:a=!0}=t,s={current:-1};let u=!1,c=null,d=null,p=typeof performance<"u"?performance.now():0;function h(m,x){const b=performance.now(),w=b-p;if(c===null||d===null||w===0)return c=m,d=x,p=b,null;const k=m-c,A=x-d,C=Math.sqrt(k*k+A*A)/w;return c=m,d=x,p=b,C}const y=m=>{let{x,y:b,placement:w,elements:k,onClose:A,nodeId:E,tree:C}=m;return function(B){function G(){Yt(s),A()}if(Yt(s),!k.domReference||!k.floating||w==null||x==null||b==null)return;const{clientX:D,clientY:U}=B,Z=[D,U],P=fN(B),M=B.type==="mouseleave",q=Zf(k.floating,P),$=Zf(k.domReference,P),J=k.domReference.getBoundingClientRect(),F=k.floating.getBoundingClientRect(),X=w.split("-")[0],L=x>F.right-F.width/2,z=b>F.bottom-F.height/2,I=ON(Z,J),K=F.width>J.width,R=F.height>J.height,O=(K?J:F).left,V=(K?J:F).right,T=(R?J:F).top,le=(R?J:F).bottom;if(q&&(u=!0,!M))return;if($&&(u=!1),$&&!M){u=!0;return}if(M&&st(B.relatedTarget)&&Zf(k.floating,B.relatedTarget)||C&&d0(C.nodesRef.current,E).length)return;if(X==="top"&&b>=J.bottom-1||X==="bottom"&&b<=J.top+1||X==="left"&&x>=J.right-1||X==="right"&&x<=J.left+1)return G();let ce=[];switch(X){case"top":ce=[[O,J.top+1],[O,F.bottom-1],[V,F.bottom-1],[V,J.top+1]];break;case"bottom":ce=[[O,F.top+1],[O,J.bottom-1],[V,J.bottom-1],[V,F.top+1]];break;case"left":ce=[[F.right-1,le],[F.right-1,T],[J.left+1,T],[J.left+1,le]];break;case"right":ce=[[J.right-1,le],[J.right-1,T],[F.left+1,T],[F.left+1,le]];break}function fe(de){let[ge,he]=de;switch(X){case"top":{const be=[K?ge+r/2:L?ge+r*4:ge-r*4,he+r+1],Re=[K?ge-r/2:L?ge+r*4:ge-r*4,he+r+1],xe=[[F.left,L||K?F.bottom-r:F.top],[F.right,L?K?F.bottom-r:F.top:F.bottom-r]];return[be,Re,...xe]}case"bottom":{const be=[K?ge+r/2:L?ge+r*4:ge-r*4,he-r],Re=[K?ge-r/2:L?ge+r*4:ge-r*4,he-r],xe=[[F.left,L||K?F.top+r:F.bottom],[F.right,L?K?F.top+r:F.bottom:F.top+r]];return[be,Re,...xe]}case"left":{const be=[ge+r+1,R?he+r/2:z?he+r*4:he-r*4],Re=[ge+r+1,R?he-r/2:z?he+r*4:he-r*4];return[...[[z||R?F.right-r:F.left,F.top],[z?R?F.right-r:F.left:F.right-r,F.bottom]],be,Re]}case"right":{const be=[ge-r,R?he+r/2:z?he+r*4:he-r*4],Re=[ge-r,R?he-r/2:z?he+r*4:he-r*4],xe=[[z||R?F.left+r:F.right,F.top],[z?R?F.left+r:F.right:F.left+r,F.bottom]];return[be,Re,...xe]}}}if(!Hb([D,U],ce)){if(u&&!I)return G();if(!M&&a){const de=h(B.clientX,B.clientY);if(de!==null&&de<.1)return G()}Hb([D,U],fe([x,b]))?!u&&a&&(s.current=window.setTimeout(G,40)):G()}}};return y.__options={blockPointerEvents:l},y}function qb({label:t,value:r,resolvedValue:l,onChange:a,options:s,disabledValues:u=[]}){const[c,d]=j.useState(!1),{refs:p,floatingStyles:h,context:y}=RN({open:c,onOpenChange:d,middleware:[W5(4),tN(),eN({padding:8})],whileElementsMounted:$5}),m=cN(y,{handleClose:MN()}),x=EN(y),b=_N(y),w=TN(y),k=DN(y),{getReferenceProps:A,getFloatingProps:E}=LN([m,x,b,w,k]),C=r==="working"&&u.includes("staged")||r==="staged"&&u.includes("working"),N=()=>{const P=s.specialOptions.find($=>$.value===r);if(P)return P.label;const M=s.branches.find($=>$.name===r);if(M)return`${M.name}${M.current?" (current)":""}`;const q=s.commits.find($=>$.shortHash===r);return q?`${q.shortHash} - ${q.message}`:r||"Select..."},B=P=>{a(P),d(!1)},G=P=>u.includes(P),D=(P,M)=>["w-full text-left px-3 py-2 text-xs focus:outline-none transition-colors",P?"hover:bg-diff-selected-bg focus:bg-diff-selected-bg":"hover:bg-github-bg-tertiary focus:bg-github-bg-tertiary",P?"bg-diff-selected-bg border-l-4 border-l-diff-selected-border font-semibold pl-2":"",M?"opacity-50 cursor-not-allowed":"cursor-pointer"].join(" "),U=(P,M)=>P===r||M===r?!0:l?P===l||M===l:!1,Z=()=>{let P=0;const M=s.specialOptions.findIndex(q=>q.value===r);if(M!==-1)return M;if(P+=s.specialOptions.length,!C){const q=s.commits.findIndex(J=>J.shortHash===r);if(q!==-1)return P+q;P+=s.commits.length;const $=s.branches.findIndex(J=>J.name===r);if($!==-1)return P+$}return 0};return v.jsxs(v.Fragment,{children:[v.jsxs("button",{ref:p.setReference,type:"button",className:"flex items-center gap-1.5 cursor-pointer group","aria-haspopup":"listbox","aria-expanded":c,...A(),children:[v.jsxs("span",{className:"text-xs text-github-text-secondary",children:[t,":"]}),v.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-github-bg-tertiary border border-github-border rounded hover:border-github-text-secondary transition-colors",children:[v.jsx("code",{className:"text-xs text-github-text-primary max-w-[150px] truncate",children:N()}),v.jsx(Is,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]})]}),c&&v.jsx(yN,{children:v.jsx(SN,{context:y,modal:!1,initialFocus:Z(),children:v.jsxs("div",{ref:p.setFloating,style:h,className:"bg-github-bg-secondary border border-github-border rounded shadow-lg z-50 w-[360px] max-h-[400px] overflow-y-auto",...E(),children:[s.specialOptions.length>0&&v.jsxs("div",{className:"border-b border-github-border",children:[v.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Special"}),s.specialOptions.map(P=>v.jsx("button",{onClick:()=>B(P.value),disabled:G(P.value),className:D(P.value===r,G(P.value)),children:P.label},P.value))]}),!C&&s.commits.length>0&&v.jsxs("div",{className:"border-b border-github-border",children:[v.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Recent Commits"}),s.commits.map(P=>v.jsx("button",{onClick:()=>B(P.shortHash),disabled:G(P.shortHash),className:D(U(P.shortHash,P.hash),G(P.shortHash)),children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx("code",{className:"text-xs text-github-text-primary font-mono whitespace-nowrap",children:P.shortHash}),v.jsx("span",{className:"text-xs text-github-text-secondary flex-1 break-words",children:P.message})]})},P.hash))]}),!C&&s.branches.length>0&&v.jsxs("div",{children:[v.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Branches"}),s.branches.map(P=>v.jsx("button",{onClick:()=>B(P.name),disabled:G(P.name),className:D(P.name===r,G(P.name)),children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-github-text-primary",children:P.name}),P.current&&v.jsx("span",{className:"text-xs text-github-text-muted",children:"(current)"})]})},P.name))]})]})})})]})}const zN={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},BN=[{name:"System Font",value:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif'},{name:"Menlo",value:'Menlo, Monaco, "Courier New", monospace'},{name:"SF Mono",value:'SF Mono, Consolas, "Liberation Mono", monospace'},{name:"Fira Code",value:'"Fira Code", "Courier New", monospace'},{name:"JetBrains Mono",value:'"JetBrains Mono", "Courier New", monospace'}];function FN({isOpen:t,onClose:r,settings:l,onSettingsChange:a}){const[s,u]=j.useState(l),{enableScope:c,disableScope:d}=Fs();j.useEffect(()=>{u(l)},[l]),j.useEffect(()=>{a(s)},[s,a]),j.useEffect(()=>(t?d("navigation"):c("navigation"),()=>{c("navigation")}),[t,c,d]);const p=()=>s.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s.theme,h=()=>p()==="light"?nb:rb,y=x=>{const b={...s,theme:x},k=(x==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":x)==="light"?nb:rb;if(!k.some(E=>E.id===s.syntaxTheme)&&k.length>0){const E=k[0];E&&(b.syntaxTheme=E.id)}u(b)},m=()=>{u(zN)};return t?v.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:v.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[v.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[v.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[v.jsx(dx,{size:20}),"Appearance Settings"]}),v.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:v.jsx(Rd,{size:18})})]}),v.jsxs("div",{className:"p-4 space-y-6",children:[v.jsxs("div",{children:[v.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("input",{type:"range",min:"10",max:"20",step:"1",value:s.fontSize,onChange:x=>u({...s,fontSize:parseInt(x.target.value)}),className:"flex-1 accent-github-accent"}),v.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[s.fontSize,"px"]})]})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),v.jsx("select",{value:s.fontFamily,onChange:x=>u({...s,fontFamily:x.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:BN.map(x=>v.jsx("option",{value:x.value,children:x.name},x.value))})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),v.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(x=>v.jsx("button",{onClick:()=>y(x),className:`px-3 py-2 text-sm rounded border transition-colors ${s.theme===x?"bg-github-accent text-white border-github-accent":"bg-github-bg-tertiary text-github-text-secondary border-github-border hover:text-github-text-primary"}`,children:x.charAt(0).toUpperCase()+x.slice(1)},x))})]}),v.jsxs("div",{children:[v.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),v.jsx("select",{value:s.syntaxTheme,onChange:x=>u({...s,syntaxTheme:x.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:h().map(x=>v.jsx("option",{value:x.id,children:x.label},x.id))})]})]}),v.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[v.jsx("button",{onClick:m,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),v.jsx("button",{onClick:r,className:"px-4 py-2 text-sm bg-github-accent text-white rounded hover:bg-green-600",children:"Close"})]})]})}):null}const Vb={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},IN=({isActive:t})=>t?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"animate-sparkle-rise",style:{...Vb,left:"-12px",animationDelay:"0s"},children:"✨"}),v.jsx("div",{className:"animate-sparkle-rise",style:{...Vb,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,Pb={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},$b="reviewit-appearance-settings";function UN(){const[t,r]=j.useState(()=>{try{const s=localStorage.getItem($b);if(s)return{...Pb,...JSON.parse(s)}}catch(s){console.warn("Failed to load appearance settings from localStorage:",s)}return Pb}),l=j.useCallback(s=>{const u=document.documentElement;u.setAttribute("data-theme",s),s==="light"?(u.style.setProperty("--color-github-bg-primary","#ffffff"),u.style.setProperty("--color-github-bg-secondary","#f6f8fa"),u.style.setProperty("--color-github-bg-tertiary","#f1f3f4"),u.style.setProperty("--color-github-border","#d1d9e0"),u.style.setProperty("--color-github-text-primary","#24292f"),u.style.setProperty("--color-github-text-secondary","#656d76"),u.style.setProperty("--color-github-text-muted","#8c959f"),u.style.setProperty("--color-github-accent","#1f883d"),u.style.setProperty("--color-github-danger","#cf222e"),u.style.setProperty("--color-github-warning","#bf8700"),u.style.setProperty("--color-diff-addition-bg","#d1f4cd"),u.style.setProperty("--color-diff-addition-border","#1f883d"),u.style.setProperty("--color-diff-deletion-bg","#ffd8d3"),u.style.setProperty("--color-diff-deletion-border","#cf222e"),u.style.setProperty("--color-diff-neutral-bg","#f1f3f4"),u.style.setProperty("--color-comment-bg","#fff8e1"),u.style.setProperty("--color-comment-border","#ffd54f"),u.style.setProperty("--color-comment-text","#5d4037"),u.style.setProperty("--color-yellow-btn-bg","#fef3c7"),u.style.setProperty("--color-yellow-btn-border","#f59e0b"),u.style.setProperty("--color-yellow-btn-text","#92400e"),u.style.setProperty("--color-yellow-btn-hover-bg","#fde68a"),u.style.setProperty("--color-yellow-btn-hover-border","#d97706"),u.style.setProperty("--color-yellow-path-bg","#fde68a"),u.style.setProperty("--color-yellow-path-text","#92400e")):(u.style.setProperty("--color-github-bg-primary","#0d1117"),u.style.setProperty("--color-github-bg-secondary","#161b22"),u.style.setProperty("--color-github-bg-tertiary","#21262d"),u.style.setProperty("--color-github-border","#30363d"),u.style.setProperty("--color-github-text-primary","#f0f6fc"),u.style.setProperty("--color-github-text-secondary","#8b949e"),u.style.setProperty("--color-github-text-muted","#6e7681"),u.style.setProperty("--color-github-accent","#238636"),u.style.setProperty("--color-github-danger","#da3633"),u.style.setProperty("--color-github-warning","#d29922"),u.style.setProperty("--color-diff-addition-bg","#0d4429"),u.style.setProperty("--color-diff-addition-border","#1b7c3d"),u.style.setProperty("--color-diff-deletion-bg","#67060c"),u.style.setProperty("--color-diff-deletion-border","#da3633"),u.style.setProperty("--color-diff-neutral-bg","#21262d"),u.style.setProperty("--color-comment-bg","#1c2128"),u.style.setProperty("--color-comment-border","#373e47"),u.style.setProperty("--color-comment-text","#e6edf3"),u.style.setProperty("--color-yellow-btn-bg","rgba(180, 83, 9, 0.2)"),u.style.setProperty("--color-yellow-btn-border","rgba(217, 119, 6, 0.5)"),u.style.setProperty("--color-yellow-btn-text","#fbbf24"),u.style.setProperty("--color-yellow-btn-hover-bg","rgba(180, 83, 9, 0.3)"),u.style.setProperty("--color-yellow-btn-hover-border","#d97706"),u.style.setProperty("--color-yellow-path-bg","rgba(180, 83, 9, 0.3)"),u.style.setProperty("--color-yellow-path-text","#fbbf24")),document.body.style.backgroundColor="var(--color-github-bg-primary)",document.body.style.color="var(--color-github-text-primary)"},[]);return j.useEffect(()=>{const s=document.documentElement;if(s.style.setProperty("--app-font-size",`${t.fontSize}px`),s.style.setProperty("--app-font-family",t.fontFamily),t.theme==="auto"){const u=window.matchMedia("(prefers-color-scheme: dark)");l(u.matches?"dark":"light");const c=d=>{l(d.matches?"dark":"light")};return u.addEventListener("change",c),()=>u.removeEventListener("change",c)}else{l(t.theme);return}},[t,l]),{settings:t,updateSettings:s=>{r(s);try{localStorage.setItem($b,JSON.stringify(s))}catch(u){console.warn("Failed to save appearance settings to localStorage:",u)}}}}function h0(t,r,l){const a=typeof r=="number"?`L${r}`:Array.isArray(r)?`L${r[0]}-L${r[1]}`:"";return`${t||"<unknown file>"}:${a}
|
|
50
|
-
${l}`}function HN(t){return t.length===0?"":t.map(l=>h0(l.file,l.line,l.body)).join(`
|
|
51
|
-
=====
|
|
52
|
-
`)}const ms="difit-storage-v1";class qN{generateStorageKey(r,l){const a=s=>s.replace(/[^a-zA-Z0-9-_]/g,u=>`_${u.charCodeAt(0).toString(16)}_`);return`${a(r)}-${a(l)}`}normalizeCommitish(r,l,a){if(r==="."||r==="working")return"WORKING";if(r==="staged")return"STAGED";if((r==="HEAD"||r==="@")&&l)return l;if(a?.has(r)){const s=a.get(r);if(s)return s}return(r.startsWith("@")||r.includes("^")||r.includes("~")||r.includes("HEAD"))&&console.warn(`[StorageService] Cannot normalize symbolic ref '${r}' - may cause key collision. currentCommitHash=${l}`),r}getStorageKey(r,l,a,s,u){let c,d;l==="."||l==="working"?(c=a||r,d="WORKING"):l==="staged"?(c=a||r,d="STAGED"):(c=this.normalizeCommitish(r,a,s),d=this.normalizeCommitish(l,a,s));const p=this.generateStorageKey(c,d);return u?`${ms}/${u}/${p}`:`${ms}/${p}`}getDiffContextData(r,l,a,s,u){try{const c=this.getStorageKey(r,l,a,s,u),d=localStorage.getItem(c);if(!d)return null;const p=JSON.parse(d);return p.version!==1?(console.warn(`Unknown storage version: ${p.version}`),null):p}catch(c){return console.error("Error reading diff context data:",c),null}}saveDiffContextData(r,l,a,s,u,c){try{const d=this.getStorageKey(r,l,s,u,c),p={...a,baseCommitish:r,targetCommitish:l,lastModifiedAt:new Date().toISOString()};localStorage.setItem(d,JSON.stringify(p))}catch(d){d instanceof DOMException&&d.name==="QuotaExceededError"?console.error("localStorage quota exceeded"):console.error("Error saving diff context data:",d)}}getComments(r,l,a,s,u){return this.getDiffContextData(r,l,a,s,u)?.comments||[]}saveComments(r,l,a,s,u,c){const p=this.getDiffContextData(r,l,s,u,c)||{version:1,baseCommitish:r,targetCommitish:l,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};p.comments=a,this.saveDiffContextData(r,l,p,s,u,c)}getViewedFiles(r,l,a,s,u){return this.getDiffContextData(r,l,a,s,u)?.viewedFiles||[]}saveViewedFiles(r,l,a,s,u,c){const p=this.getDiffContextData(r,l,s,u,c)||{version:1,baseCommitish:r,targetCommitish:l,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};p.viewedFiles=a,this.saveDiffContextData(r,l,p,s,u,c)}cleanupOldData(r){const l=new Date;l.setDate(l.getDate()-r);const a=l.getTime(),s=[];for(let u=0;u<localStorage.length;u++){const c=localStorage.key(u);if(c?.startsWith(ms))try{const d=localStorage.getItem(c);if(!d)continue;const p=JSON.parse(d);new Date(p.lastModifiedAt).getTime()<a&&s.push(c)}catch{}}s.forEach(u=>localStorage.removeItem(u))}getStorageSize(){let r=0;for(let l=0;l<localStorage.length;l++){const a=localStorage.key(l);if(!a?.startsWith(ms))continue;const s=localStorage.getItem(a);s&&(r+=(a.length+s.length)*2)}return r}}const Oa=new qN;async function Gb(t){try{const l=new TextEncoder().encode(t),a=await crypto.subtle.digest("SHA-256",l);return Array.from(new Uint8Array(a)).map(u=>u.toString(16).padStart(2,"0")).join("")}catch{return console.warn("Crypto API not available, using fallback hash"),VN(t)}}function VN(t){let r=0;for(let l=0;l<t.length;l++){const a=t.charCodeAt(l);r=(r<<5)-r+a,r=r&r}return Math.abs(r).toString(16)}function Yb(t){const r=t.chunks.map(l=>{const a=l.lines.filter(s=>s.type!=="hunk"&&s.type!=="header").map(s=>`${s.type}:${s.content}`).join(`
|
|
53
|
-
`);return`${l.header}
|
|
54
|
-
${a}`}).join(`
|
|
55
|
-
|
|
56
|
-
`);return`${t.path}
|
|
57
|
-
${t.status}
|
|
58
|
-
${r}`}function PN(t){const r=t.split(".").pop()?.toLowerCase();return r?{js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",json:"json",xml:"xml",html:"html",css:"css",scss:"scss",sass:"sass",less:"less",md:"markdown",markdown:"markdown",tex:"latex",vim:"vim"}[r]:void 0}function $N(t,r,l,a,s){const[u,c]=j.useState([]);j.useEffect(()=>{if(!t||!r)return;const w=Oa.getComments(t,r,l,a,s);c(w)},[t,r,l,a,s]);const d=j.useCallback(w=>{!t||!r||(Oa.saveComments(t,r,w,l,a,s),c(w))},[t,r,l,a,s]),p=j.useCallback(w=>{const k={id:crypto.randomUUID(),filePath:w.filePath,body:w.body,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),position:{side:w.side,line:w.line},codeSnapshot:w.codeSnapshot||{content:"",language:PN(w.filePath)}},A=[...u,k];return d(A),k},[u,d]),h=j.useCallback(w=>{const k=u.filter(A=>A.id!==w);d(k)},[u,d]),y=j.useCallback((w,k)=>{const A=u.map(E=>E.id===w?{...E,body:k,updatedAt:new Date().toISOString()}:E);d(A)},[u,d]),m=j.useCallback(()=>{d([])},[d]),x=j.useCallback(w=>{const k=u.find(E=>E.id===w);if(!k)return"";const A=typeof k.position.line=="number"?k.position.line:[k.position.line.start,k.position.line.end];return h0(k.filePath,A,k.body)},[u]),b=j.useCallback(()=>{const w=u.map(k=>({id:k.id,file:k.filePath,line:typeof k.position.line=="number"?k.position.line:[k.position.line.start,k.position.line.end],body:k.body,timestamp:k.createdAt}));return HN(w)},[u]);return{comments:u,addComment:p,removeComment:h,updateComment:y,clearAllComments:m,generatePrompt:x,generateAllCommentsPrompt:b}}const GN=20;async function Xb(t,r){const l=encodeURIComponent(t),a=await fetch(`/api/blob/${l}?ref=${encodeURIComponent(r)}`);if(!a.ok)throw new Error(`Failed to fetch file content: ${a.statusText}`);const u=(await a.text()).split(`
|
|
59
|
-
`);return u.length>0&&u[u.length-1]===""&&u.pop(),{lines:u,totalLines:u.length}}async function YN(t,r,l,a){const s=encodeURIComponent(t),u=new URLSearchParams;r&&u.set("oldRef",r),l&&u.set("newRef",l),a&&a!==t&&u.set("oldPath",a);const c=await fetch(`/api/line-count/${s}?${u}`);if(!c.ok)throw new Error(`Failed to fetch line count: ${c.statusText}`);return c.json()}function XN({baseCommitish:t,targetCommitish:r}){const[l,a]=j.useState({}),[s,u]=j.useState(!1),[c,d]=j.useState(null),[p,h]=j.useState(0),y=j.useRef(new Map),m=j.useRef({});m.current=l;const x=j.useCallback(async D=>{const U=y.current.get(D.path);if(U)return U;const Z=(async()=>{const P=m.current[D.path];if(P?.oldContent&&P?.newContent)return P;const M={...P,expandedRanges:P?.expandedRanges||[]};if(D.status!=="added"&&t){const q=D.oldPath||D.path;try{const{lines:$,totalLines:J}=await Xb(q,t);M.oldContent=$,M.oldTotalLines=J}catch($){console.error("Failed to fetch old file content:",$),M.oldContent=[],M.oldTotalLines=0}}if(D.status!=="deleted"&&r)try{const{lines:q,totalLines:$}=await Xb(D.path,r);M.newContent=q,M.newTotalLines=$}catch(q){console.error("Failed to fetch new file content:",q),M.newContent=[],M.newTotalLines=0}return M})();y.current.set(D.path,Z);try{return await Z}finally{y.current.delete(D.path)}},[t,r]),b=j.useCallback(D=>{d(D),h(U=>U+1)},[]),w=j.useCallback(async(D,U,Z,P=GN)=>{u(!0);try{const M=await x(D);a(q=>{const $=q[D.path],J=$?.expandedRanges||M.expandedRanges||[],F=J.findIndex(L=>L.chunkIndex===U&&L.direction===Z),X=[...J];if(F>=0&&X[F]){const L=X[F];X[F]={chunkIndex:L.chunkIndex,direction:L.direction,count:L.count+P}}else X.push({chunkIndex:U,direction:Z,count:P});return{...q,[D.path]:{oldContent:$?.oldContent??M.oldContent,newContent:$?.newContent??M.newContent,oldTotalLines:$?.oldTotalLines??M.oldTotalLines,newTotalLines:$?.newTotalLines??M.newTotalLines,expandedRanges:X}}}),b(D.path)}finally{u(!1)}},[x,b]),k=j.useCallback(async(D,U,Z)=>{u(!0);try{const P=await x(D);a(M=>{const q=M[D.path],J=[...q?.expandedRanges||P.expandedRanges||[]],F=J.findIndex(O=>O.chunkIndex===U&&O.direction==="up"),X=J.findIndex(O=>O.chunkIndex===U-1&&O.direction==="down");let L=0,z=0;F>=0&&J[F]&&(L=J[F].count),X>=0&&J[X]&&(z=J[X].count);const I=L+z+Z,K=J.filter(O=>!(O.chunkIndex===U-1&&O.direction==="down")),R=K.findIndex(O=>O.chunkIndex===U&&O.direction==="up");return R>=0&&K[R]?K[R]={chunkIndex:U,direction:"up",count:I}:K.push({chunkIndex:U,direction:"up",count:I}),{...M,[D.path]:{oldContent:q?.oldContent??P.oldContent,newContent:q?.newContent??P.newContent,oldTotalLines:q?.oldTotalLines??P.oldTotalLines,newTotalLines:q?.newTotalLines??P.newTotalLines,expandedRanges:K}}}),b(D.path)}finally{u(!1)}},[x,b]),A=j.useCallback(async D=>{const U=m.current[D.path];if(U?.oldTotalLines!==void 0||U?.newTotalLines!==void 0)return;const Z=D.status!=="added"?t:void 0,P=D.status!=="deleted"?r:void 0;if(!(!Z&&!P))try{const{oldLineCount:M,newLineCount:q}=await YN(D.path,Z,P,D.oldPath);a($=>{const J=$[D.path];return J?.oldTotalLines!==void 0||J?.newTotalLines!==void 0?$:{...$,[D.path]:{...J,expandedRanges:J?.expandedRanges||[],oldTotalLines:M,newTotalLines:q}}}),b(D.path)}catch(M){console.error("Failed to prefetch line count:",M)}},[t,r,b]),E=j.useCallback((D,U,Z)=>{const P=l[D];return P&&P.expandedRanges.find(q=>q.chunkIndex===U&&q.direction===Z)?.count||0},[l]),C=j.useCallback((D,U,Z)=>{if(D.status==="added"||D.status==="deleted")return 0;const P=D.chunks[Z-1];let M;if(!P)M=U.oldStart-1;else{const J=P.oldStart+P.oldLines;M=U.oldStart-J}const q=E(D.path,Z,"up"),$=Z>0?E(D.path,Z-1,"down"):0;return Math.max(0,M-q-$)},[E]),N=j.useCallback((D,U,Z)=>{if(D.status==="added"||D.status==="deleted")return 0;const P=l[D.path],M=P?.oldTotalLines||P?.newTotalLines;if(M===void 0)return D.chunks[Z+1]?0:-1;if(D.chunks[Z+1])return 0;const $=U.oldStart+U.oldLines-1,J=M-$,F=E(D.path,Z,"down");return Math.max(0,J-F)},[l,E]),B=j.useCallback((D,U,Z)=>{const P=l[D.path];if(!P)return U;const M=E(D.path,Z,"up"),q=E(D.path,Z,"down");if(M===0&&q===0)return U;const $=P.oldContent||[],J=P.newContent||[],F=[];if(M>0){const z=D.chunks[Z-1];let I;z?I=z.oldStart+z.oldLines-1:I=Math.max(0,U.oldStart-1-M);const K=U.oldStart-1,R=U.newStart-1,O=Math.min(M,K-I),V=K-O,T=R-O;for(let le=0;le<O;le++){const ce=V+le+1,fe=T+le+1,de=$[ce-1]??J[fe-1]??"";F.push({type:"normal",content:de,oldLineNumber:ce,newLineNumber:fe,isExpanded:!0})}}if(F.push(...U.lines),q>0){const z=U.oldStart+U.oldLines-1,I=U.newStart+U.newLines-1,K=D.chunks[Z+1],R=K?K.oldStart-1:P.oldTotalLines||z,O=Math.min(q,R-z);for(let V=0;V<O;V++){const T=z+V+1,le=I+V+1,ce=$[T-1]??J[le-1]??"";F.push({type:"normal",content:ce,oldLineNumber:T,newLineNumber:le,isExpanded:!0})}}const X=F[0],L=F[F.length-1];return{...U,lines:F,oldStart:X?.oldLineNumber??U.oldStart,newStart:X?.newLineNumber??U.newStart,oldLines:(L?.oldLineNumber??U.oldStart+U.oldLines-1)-(X?.oldLineNumber??U.oldStart)+1,newLines:(L?.newLineNumber??U.newStart+U.newLines-1)-(X?.newLineNumber??U.newStart)+1}},[l,E]),G=j.useCallback(D=>{const U=[];for(let Z=0;Z<D.chunks.length;Z++){const P=D.chunks[Z];if(!P)continue;const M=B(D,P,Z),q=C(D,P,Z),$=N(D,P,Z),J=U[U.length-1];if(J&&q===0){J.lines=[...J.lines,...M.lines],J.originalIndices.push(Z),J.hiddenLinesAfter=$;const F=J.lines[J.lines.length-1];J.oldLines=(F?.oldLineNumber??J.oldStart+J.oldLines-1)-J.oldStart+1,J.newLines=(F?.newLineNumber??J.newStart+J.newLines-1)-J.newStart+1}else U.push({...M,originalIndices:[Z],hiddenLinesBefore:q,hiddenLinesAfter:$})}return U},[B,C,N]);return{expandedState:l,isLoading:s,lastUpdatedFilePath:c,lastUpdatedAt:p,expandLines:w,expandAllBetweenChunks:k,prefetchFileContent:A,getMergedChunks:G,getHiddenLinesBefore:C,getHiddenLinesAfter:N}}var p0=(t=>(t.DEFAULT="default",t.WORKING="working",t.STAGED="staged",t.DOT="dot",t.SPECIFIC="specific",t))(p0||{});function ZN(t){const r=j.useRef(null),l=j.useRef(null),a=j.useRef(0),s=5,u=3e3,[c,d]=j.useState({isWatchEnabled:!1,diffMode:p0.DEFAULT,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null,connectionStatus:"disconnected"}),[p,h]=j.useState(null),y=j.useCallback(()=>{if(!r.current)try{const b=new EventSource("/api/watch");r.current=b,b.onopen=()=>{console.log("Connected to file watch service"),d(w=>({...w,connectionStatus:"connected"})),a.current=0,h(null)},b.onmessage=w=>{try{const k=JSON.parse(w.data);switch(k.type){case"connected":d(A=>({...A,isWatchEnabled:!0,diffMode:k.diffMode,connectionStatus:"connected"}));break;case"reload":console.log("File changes detected, showing reload button:",k.changeType),d(A=>({...A,shouldReload:!0,lastChangeTime:new Date,lastChangeType:k.changeType}));break;case"error":console.error("File watch error:",k.message),h(k.message||"File watch error occurred");break}}catch(k){console.error("Error parsing watch event:",k)}},b.onerror=()=>{console.log("File watch connection lost"),d(w=>({...w,connectionStatus:"disconnected"})),r.current&&(r.current.close(),r.current=null),a.current<s?(d(w=>({...w,connectionStatus:"reconnecting"})),a.current+=1,l.current=setTimeout(()=>{console.log(`Attempting to reconnect to file watch service (${a.current}/${s})...`),y()},u)):(console.error("Max reconnection attempts reached"),h("Lost connection to file watch service"))}}catch(b){console.error("Failed to connect to file watch service:",b),h("Failed to connect to file watch service")}},[s,u]),m=j.useCallback(async()=>{if(!c.isReloading){d(b=>({...b,isReloading:!0}));try{t&&await t(),d(b=>({...b,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null}))}catch(b){console.error("Reload failed:",b),h("Failed to reload diff data"),d(w=>({...w,isReloading:!1}))}}},[t,c.isReloading]),x=()=>{r.current&&(r.current.close(),r.current=null),l.current&&(clearTimeout(l.current),l.current=null)};return j.useEffect(()=>(y(),x),[y]),j.useEffect(()=>x,[]),{shouldReload:c.shouldReload,isConnected:c.connectionStatus==="connected",error:p,reload:m,watchState:c}}const Ed={SCROLL_CONTAINER:"main.overflow-y-auto"};function Xr(t,r){const l=`file-${t.fileIndex}-chunk-${t.chunkIndex}-line-${t.lineIndex}`;return r==="side-by-side"?`${l}-${t.side}`:l}function g0(t,r){return`${t}:${r}`}function QN(t,r){const l=r[t.fileIndex]?.chunks[t.chunkIndex]?.lines[t.lineIndex];return l&&(l.type==="add"||l.type==="delete"||l.type==="normal")?l.type:null}function xn(t,r){const l=QN(t,r);return l?l==="normal"?!0:l==="delete"?t.side==="left":l==="add"?t.side==="right":!1:!1}function m0(t,r){return xn(t,r)?t:{...t,side:t.side==="left"?"right":"left"}}const Zb={VIEWPORT_OFFSET_RATIO:1/3};function KN(t,r,l,a){return{line:s=>{const u=t[s.fileIndex];return!u||a?.has(u.path)?!1:l==="inline"||xn(s,t)},chunk:s=>{const u=t[s.fileIndex];if(!u||a?.has(u.path))return!1;const c=u.chunks[s.chunkIndex]?.lines[s.lineIndex];if(!c||c.type==="normal")return!1;if(s.lineIndex===0)return!0;const d=u.chunks[s.chunkIndex]?.lines[s.lineIndex-1];return!d||d.type==="normal"},comment:s=>{const u=t[s.fileIndex];if(!u||a?.has(u.path))return!1;const c=u.chunks[s.chunkIndex]?.lines[s.lineIndex];if(!c||c.type==="delete")return!1;const d=c.newLineNumber;if(!d)return!1;const p=g0(u.path,d);return r.has(p)},file:s=>s.chunkIndex===0&&s.lineIndex===0}}function JN(){return t=>{const r=document.getElementById(t);if(!r)return;const l=document.querySelector(Ed.SCROLL_CONTAINER);if(!l)throw new Error(`Scrollable container (${Ed.SCROLL_CONTAINER}) not found`);const a=r.getBoundingClientRect(),s=l.getBoundingClientRect(),u=l.clientHeight,c=l.scrollTop,d=Math.max(s.top,0),p=Math.min(s.bottom,window.innerHeight);if(!(a.top>=d&&a.bottom<=p)){const k=WN(r,l)-u*Zb.VIEWPORT_OFFSET_RATIO;l.scrollTop=Math.max(0,k);return}const y=a.bottom>Math.min(s.bottom,window.innerHeight),x=r.offsetTop-l.offsetTop-u*Zb.VIEWPORT_OFFSET_RATIO,b=x>c;y&&b&&(l.scrollTop=Math.max(0,x))}}function WN(t,r){let l=t,a=0;for(;l&&l!==r&&l.offsetParent;)a+=l.offsetTop,l=l.offsetParent;return l&&l!==r&&(a+=l.offsetTop),a}function e8(t){return t||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function t8(t,r,l){return l&&t.fileIndex===r.fileIndex&&t.chunkIndex===r.chunkIndex&&t.lineIndex===r.lineIndex}function n8(t,r,l){let{fileIndex:a,chunkIndex:s,lineIndex:u}=t;const c=l.length;let d=0;if(r==="next")for(u++;d<c;){if(l[a]?.chunks[s]?.lines[u])return{...t,fileIndex:a,chunkIndex:s,lineIndex:u};s++,u=0,l[a]?.chunks[s]||(a++,s=0,u=0,a>=c&&(a=0,d++))}else for(u--;d<c;){if(u<0)if(s--,s<0){a--,a<0&&(a=c-1,d++);const p=l[a];if(p&&p.chunks.length>0){s=p.chunks.length-1;const h=p.chunks[s];u=h&&h.lines.length>0?h.lines.length-1:-1}else s=-1,u=-1}else{const p=l[a]?.chunks[s];u=p&&p.lines.length>0?p.lines.length-1:-1}if(u>=0&&l[a]?.chunks[s]?.lines[u])return{...t,fileIndex:a,chunkIndex:s,lineIndex:u};u<0||u--}return null}function r8(t,r,l,a,s){let u=t,c=!1;for(;u;){const d=n8(u,r,a);if(!d||(u=d,t8(u,t,c)))break;if(c=!0,l(u,a)){const p=m0(u,a);return{position:p,scrollTarget:Xr(p,s)}}}return{position:null,scrollTarget:null}}function l8({files:t,comments:r,viewMode:l="inline",reviewedFiles:a,onToggleReviewed:s,onCreateComment:u,onCopyAllComments:c,onDeleteAllComments:d,onShowCommentsList:p,onRefresh:h}){const[y,m]=j.useState(null),[x,b]=j.useState(!1),w=j.useMemo(()=>JN(),[]),k=j.useMemo(()=>{const q=new Map;return r.forEach($=>{const J=Array.isArray($.line)?$.line[0]:$.line,F=g0($.file,J);q.has(F)||q.set(F,[]),q.get(F)?.push($)}),q},[r]),A=j.useMemo(()=>KN(t,k,l,a),[t,k,l,a]),E=j.useCallback((q,$)=>{if(t.length===0)return{position:null,scrollTarget:null};const J=e8(y);return r8(J,q,$,t,l)},[y,t,l]),C=j.useCallback(q=>$=>{const J=E($,q);J.position&&(m(J.position),J.scrollTarget&&w(J.scrollTarget))},[E,w]),N=j.useMemo(()=>C(A.line),[C,A.line]),B=j.useMemo(()=>C(A.chunk),[C,A.chunk]),G=j.useMemo(()=>C(A.file),[C,A.file]),D=j.useMemo(()=>C(A.comment),[C,A.comment]),U=j.useCallback(q=>{if(!y||l!=="side-by-side")return;let $={...y,side:q};const J=t[y.fileIndex]?.chunks[y.chunkIndex]?.lines[y.lineIndex];if(J){if(q==="left"&&J.type==="add"&&y.lineIndex>0){if(t[y.fileIndex]?.chunks[y.chunkIndex]?.lines[y.lineIndex-1]?.type==="delete"){$={...$,lineIndex:y.lineIndex-1},m($),w(Xr($,l));return}}else if(q==="right"&&J.type==="delete"&&t[y.fileIndex]?.chunks[y.chunkIndex]?.lines[y.lineIndex+1]?.type==="add"){$={...$,lineIndex:y.lineIndex+1},m($),w(Xr($,l));return}}if(!xn($,t)){const F=t[y.fileIndex];if(!F)return;const X=F.chunks[y.chunkIndex];if(X){for(let L=y.lineIndex+1;L<X.lines.length;L++){const z={...$,lineIndex:L};if(xn(z,t)){$=z;break}}if(!xn($,t))for(let L=y.lineIndex-1;L>=0;L--){const z={...$,lineIndex:L};if(xn(z,t)){$=z;break}}}if(!xn($,t)){for(let L=y.chunkIndex+1;L<F.chunks.length;L++){const z=F.chunks[L];if(z){for(let I=0;I<z.lines.length;I++){const K={...$,chunkIndex:L,lineIndex:I};if(xn(K,t)){$=K;break}}if(xn($,t))break}}if(!xn($,t))for(let L=y.chunkIndex-1;L>=0;L--){const z=F.chunks[L];if(z){for(let I=z.lines.length-1;I>=0;I--){const K={...$,chunkIndex:L,lineIndex:I};if(xn(K,t)){$=K;break}}if(xn($,t))break}}}}m($),w(Xr($,l))},[y,l,w,t]),Z=j.useCallback(()=>{const q=document.querySelector(Ed.SCROLL_CONTAINER);if(!q)return;const $=q.getBoundingClientRect(),J=$.top+$.height/2;let F=1/0,X=null;t.forEach((L,z)=>{L.chunks.forEach((I,K)=>{I.lines.forEach((R,O)=>{const V=l==="side-by-side"?["left","right"]:["right"];for(const T of V){const le={fileIndex:z,chunkIndex:K,lineIndex:O,side:T};if(l==="side-by-side"&&!xn(le,t))continue;const ce=Xr(le,l),fe=document.getElementById(ce);if(fe){const de=fe.getBoundingClientRect(),ge=de.top+de.height/2,he=Math.abs(ge-J);de.top<$.bottom&&de.bottom>$.top&&he<F&&(F=he,X=le)}}})})}),X&&m(X)},[t,l,m]),P=j.useCallback(q=>{if(!q){m(null);return}const $=m0(q,t);m($),w(Xr($,l))},[t,l,w]),M={scopes:"navigation",enableOnFormTags:!1,preventDefault:!0};return rt("j, down",()=>N("next"),M,[N]),rt("k, up",()=>N("prev"),M,[N]),rt("n",()=>B("next"),M,[B]),rt("p",()=>B("prev"),M,[B]),rt("shift+n",()=>D("next"),M,[D]),rt("shift+p",()=>D("prev"),M,[D]),rt("]",()=>G("next"),{...M,useKey:!0},[G]),rt("[",()=>G("prev"),{...M,useKey:!0},[G]),rt("{",()=>{t.length>0&&(m({fileIndex:0,chunkIndex:0,lineIndex:0,side:l==="side-by-side"?"left":"right"}),w(Xr({fileIndex:0,chunkIndex:0,lineIndex:0,side:l==="side-by-side"?"left":"right"},l)))},{...M,useKey:!0},[t,l,w]),rt("}",()=>{if(t.length>0){const q=t.length-1,$=t[q];$&&$.chunks.length>0&&(m({fileIndex:q,chunkIndex:0,lineIndex:0,side:l==="side-by-side"?"left":"right"}),w(Xr({fileIndex:q,chunkIndex:0,lineIndex:0,side:l==="side-by-side"?"left":"right"},l)))}},{...M,useKey:!0},[t,l,w]),rt("h, left",()=>U("left"),{...M,enabled:l==="side-by-side"},[U,l]),rt("l, right",()=>U("right"),{...M,enabled:l==="side-by-side"},[U,l]),rt("v",()=>{if(y){const q=t[y.fileIndex];q&&s(q.path)}},M,[y,t,s]),rt("shift+r",()=>{h&&h()},M,[h]),rt("c",()=>{if(y&&u){const q=t[y.fileIndex]?.chunks[y.chunkIndex]?.lines[y.lineIndex];q&&q.type!=="delete"&&u()}},M,[y,t,u]),rt("?",()=>b(!x),{...M,useKey:!0},[x]),rt(".",q=>{q.ctrlKey||q.altKey||q.shiftKey||q.metaKey||(Z(),q.preventDefault())},{...M,useKey:!0,preventDefault:!1},[Z]),rt("shift+c",()=>{c&&c()},{...M,scopes:["navigation","comments-list"]},[c]),rt("shift+d",()=>{d&&d()},{...M,scopes:["navigation","comments-list"]},[d]),rt("shift+l",()=>{p&&p()},M,[p]),{cursor:y,isHelpOpen:x,setIsHelpOpen:b,setCursorPosition:P}}function i8(t,r,l,a,s,u){const[c,d]=j.useState([]),[p,h]=j.useState(new Map);j.useEffect(()=>{if(!t||!r)return;const E=Oa.getViewedFiles(t,r,l,a,u);(async()=>{if(s&&s.length>0){const N=[],B=new Set(E.map(G=>G.filePath));for(const G of s)if((G.isGenerated||G.status==="deleted")&&!B.has(G.path))try{const D=Yb(G),U=await Gb(D),Z={filePath:G.path,viewedAt:new Date().toISOString(),diffContentHash:U};N.push(Z)}catch(D){console.error("Failed to generate hash for auto-collapsed file:",D)}if(N.length>0){const G=[...E,...N];Oa.saveViewedFiles(t,r,G,l,a,u),d(G);return}}d(E)})()},[t,r,l,a,u]);const y=j.useCallback(E=>{!t||!r||(Oa.saveViewedFiles(t,r,E,l,a,u),d(E))},[t,r,l,a,u]),m=j.useMemo(()=>new Set(c.map(E=>E.filePath)),[c]),x=j.useCallback(E=>c.find(C=>C.filePath===E),[c]),b=j.useCallback(async E=>{const C=p.get(E.path);if(C)return C;const N=Yb(E),B=await Gb(N);return h(G=>new Map(G).set(E.path,B)),B},[p]),w=j.useCallback(async(E,C)=>{const N=x(E);if(!N)return!1;const B=await b(C);return N.diffContentHash!==B},[x,b]),k=j.useCallback(async(E,C)=>{if(x(E)){const B=c.filter(G=>G.filePath!==E);y(B)}else{const B=await b(C),G={filePath:E,viewedAt:new Date().toISOString(),diffContentHash:B},D=[...c,G];y(D)}},[c,x,b,y]),A=j.useCallback(()=>{y([]),h(new Map)},[y]);return{viewedFiles:m,toggleFileViewed:k,isFileContentChanged:w,getViewedFileRecord:x,clearViewedFiles:A}}const Wf=new Map;let a8=0;function ed(t){return Wf.has(t)||Wf.set(t,`file-${++a8}`),Wf.get(t)??""}function o8(t,r,l){for(let a=0;a<t.chunks.length;a++){const s=t.chunks[a];if(s)for(let u=0;u<s.lines.length;u++){const c=s.lines[u];if(!c)continue;if((c.newLineNumber||c.oldLineNumber)===l)return{fileIndex:r,chunkIndex:a,lineIndex:u,side:c.newLineNumber?"right":"left"}}}return null}function s8(t,r){const l=r.findIndex(u=>u.path===t.file);if(l===-1)return null;const a=r[l];if(!a)return null;const s=Array.isArray(t.line)?t.line[1]:t.line;return o8(a,l,s)}const u8=[],c8=[];function f8(){const[t,r]=j.useState(null),[l,a]=j.useState("side-by-side"),s=j.useRef(!1),[u,c]=j.useState(!0),[d,p]=j.useState(!0),[h,y]=j.useState(null),[m,x]=j.useState(!1),[b,w]=j.useState(320),[k,A]=j.useState(!1),[E,C]=j.useState(!0),[N,B]=j.useState(!1),[G,D]=j.useState(!1),[U,Z]=j.useState(!1),[P,M]=j.useState(!1),[q,$]=j.useState(new Set),J=j.useRef(!1),[F,X]=j.useState(null),[L,z]=j.useState(""),[I,K]=j.useState(""),[R,O]=j.useState(""),[V,T]=j.useState(""),le=j.useRef(!1),{settings:ce,updateSettings:fe}=UN(),{comments:de,addComment:ge,removeComment:he,updateComment:be,clearAllComments:Re,generatePrompt:xe,generateAllCommentsPrompt:Le}=$N(t?.baseCommitish,t?.targetCommitish,t?.commit,void 0,t?.repositoryId),Te=j.useMemo(()=>de.map(re=>({id:re.id,file:re.filePath,line:typeof re.position.line=="number"?re.position.line:[re.position.line.start,re.position.line.end],body:re.body,timestamp:re.createdAt,codeContent:re.codeSnapshot?.content,side:re.position.side})),[de]),Qe=j.useMemo(()=>{const re=new Map;return Te.forEach(ye=>{const we=re.get(ye.file);we?we.push(ye):re.set(ye.file,[ye])}),re},[Te]),{viewedFiles:Me,toggleFileViewed:Ue,clearViewedFiles:_t}=i8(t?.baseCommitish,t?.targetCommitish,t?.commit,void 0,t?.files,t?.repositoryId);j.useEffect(()=>{J.current=!1},[t?.repositoryId,t?.commit]),j.useEffect(()=>{J.current||($(new Set(Me)),J.current=!0)},[Me]);const ht=j.useCallback(async re=>{if(!t)return;const ye=t.files.find(Ee=>Ee.path===re);if(!ye)return;const we=Me.has(re);await Ue(re,ye),$(Ee=>{const ft=new Set(Ee);return we?ft.delete(re):ft.add(re),ft}),we||setTimeout(()=>{const Ee=document.getElementById(ed(re));Ee&&Ee.scrollIntoView({behavior:"smooth",block:"start"})},100)},[t,Ue,Me]),pt=j.useCallback(re=>{$(ye=>{const we=new Set(ye);return we.has(re)?we.delete(re):we.add(re),we})},[]),Vt=j.useCallback(re=>{t&&$(re?new Set(t.files.map(ye=>ye.path)):new Set)},[t]),Pt=j.useCallback(re=>{s.current=!0,a(re)},[]),{isLoading:$t,expandLines:at,expandAllBetweenChunks:vr,prefetchFileContent:ae,getMergedChunks:me,lastUpdatedFilePath:Ce,lastUpdatedAt:ze}=XN({baseCommitish:t?.baseCommitish,targetCommitish:t?.targetCommitish}),Pe=j.useRef(me);j.useEffect(()=>{Pe.current=me},[me]);const[Lt,sn]=j.useState(new Map);j.useEffect(()=>{if(!t){sn(new Map);return}const re=new Map;t.files.forEach(ye=>{re.set(ye.path,Pe.current(ye))}),sn(re)},[t]),j.useEffect(()=>{if(!t||!Ce)return;const re=t.files.find(ye=>ye.path===Ce);re&&sn(ye=>{const we=new Map(ye);return we.set(re.path,Pe.current(re)),we})},[t,Ce,ze]);const jt=j.useMemo(()=>t?t.files.map(re=>({...re,chunks:Lt.get(re.path)||re.chunks})):[],[t,Lt]),[gt,Tt]=j.useState(null),{shouldReload:Ke,reload:On,watchState:Zt}=ZN(async()=>{await wr()}),{cursor:Xn,isHelpOpen:Rl,setIsHelpOpen:nl,setCursorPosition:Zn}=l8({files:jt,comments:Te,viewMode:l,reviewedFiles:Me,onToggleReviewed:ht,onCreateComment:()=>{Xn&&Tt({fileIndex:Xn.fileIndex,chunkIndex:Xn.chunkIndex,lineIndex:Xn.lineIndex})},onCopyAllComments:()=>{de.length>0&&jl()},onDeleteAllComments:()=>{de.length>0&&confirm("Delete all comments?")&&Re()},onShowCommentsList:()=>{M(!0)},onRefresh:()=>{On()}}),Qn=j.useCallback((re,ye,we,Ee)=>{Zn({fileIndex:re,chunkIndex:ye,lineIndex:we,side:Ee})},[Zn]),_l=j.useCallback(()=>{Tt(null)},[Tt]),rl=j.useCallback(re=>xe(re.id),[xe]),ru=re=>{re.preventDefault(),B(!0);const ye=re.clientX,we=b,Ee=Dl=>{const Ol=Math.max(200,Math.min(600,we+(Dl.clientX-ye)));w(Ol)},ft=()=>{B(!1),document.removeEventListener("mousemove",Ee),document.removeEventListener("mouseup",ft)};document.addEventListener("mousemove",Ee),document.addEventListener("mouseup",ft)},wr=j.useCallback(async(re,ye)=>{try{const we=new URLSearchParams({ignoreWhitespace:String(u)});re&&we.set("base",re),ye&&we.set("target",ye);const Ee=await fetch(`/api/diff?${we}`);if(!Ee.ok)throw new Error("Failed to fetch diff data");const ft=await Ee.json();if(r(ft),ft.baseCommitish&&O(ft.baseCommitish),ft.targetCommitish&&T(ft.targetCommitish),!le.current){const Dl=ft.requestedBaseCommitish??ft.baseCommitish,Ol=ft.requestedTargetCommitish??ft.targetCommitish;Dl&&z(Dl),Ol&&K(Ol)}ft.mode&&!s.current&&a(ft.mode)}catch(we){y(we instanceof Error?we.message:"Unknown error")}finally{p(!1)}},[u]);j.useEffect(()=>{wr()},[wr]),j.useEffect(()=>{fetch("/api/revisions").then(re=>re.ok?re.json():null).then(re=>{X(re),re?.resolvedBase&&O(ye=>ye||re.resolvedBase||""),re?.resolvedTarget&&T(ye=>ye||re.resolvedTarget||"")}).catch(()=>X(null))},[]);const Ll=j.useCallback(async(re,ye)=>{re===L&&ye===I||(le.current=!0,z(re),K(ye),p(!0),y(null),await wr(re,ye))},[L,I,wr]),Sr=re=>F?F.commits.findIndex(ye=>ye.shortHash===re||ye.hash===re):-1,lu=()=>{if(!F)return[];const ye=Sr(V||I);if(ye===-1)return I?[I]:[];const we=F.commits.slice(0,ye+1).map(Ee=>Ee.shortHash);return I&&!we.includes(I)&&we.push(I),we.includes("working")||we.push("working"),we},Pa=()=>{if(!F)return[];const ye=Sr(R||L);if(ye===-1)return L?[L]:[];const we=F.commits.slice(ye).map(Ee=>Ee.shortHash);return L&&!we.includes(L)&&we.push(L),we},Li=j.useRef(!1);j.useEffect(()=>{t?.clearComments&&!Li.current&&(Li.current=!0,Re(),_t(),console.log("✅ All existing comments and viewed files cleared as requested via --clean flag"))},[t?.clearComments,Re,_t]),j.useEffect(()=>{t&&(Me.size<t.files.length?Z(!1):Me.size===t.files.length&&!U&&(D(!0),Z(!0),setTimeout(()=>{D(!1)},1e3)))},[Me.size,t,U]),j.useEffect(()=>{if(de.length>0){const ye=de.map(Ee=>({id:Ee.id,file:Ee.filePath,line:typeof Ee.position.line=="number"?Ee.position.line:[Ee.position.line.start,Ee.position.line.end],body:Ee.body,timestamp:Ee.createdAt,side:Ee.position.side})),we=JSON.stringify({comments:ye});fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:we}).catch(Ee=>{console.error("Failed to sync comments:",Ee)})}const re=()=>{if(de.length>0){const ye=de.map(Ee=>({id:Ee.id,file:Ee.filePath,line:typeof Ee.position.line=="number"?Ee.position.line:[Ee.position.line.start,Ee.position.line.end],body:Ee.body,timestamp:Ee.createdAt,side:Ee.position.side})),we=JSON.stringify({comments:ye});navigator.sendBeacon("/api/comments",we)}};return window.addEventListener("beforeunload",re),()=>{window.removeEventListener("beforeunload",re)}},[de]),j.useEffect(()=>{const re=new EventSource("/api/heartbeat");return re.onopen=()=>{console.log("Connected to server heartbeat")},re.onerror=()=>{console.log("Server connection lost"),re.close()},()=>{re.close()}},[]);const $a=j.useCallback((re,ye,we,Ee,ft)=>(ge({filePath:re,body:we,side:ft||"new",line:typeof ye=="number"?ye:{start:ye[0],end:ye[1]},codeSnapshot:Ee?{content:Ee,language:void 0}:void 0}),Promise.resolve()),[ge]),jl=async()=>{try{const re=Le();await navigator.clipboard.writeText(re),x(!0),setTimeout(()=>x(!1),2e3)}catch(re){console.error("Failed to copy all comments prompt:",re)}},ji=re=>{if(!t)return;const ye=s8(re,t.files);ye&&Zn(ye)},Ga=re=>{Zn(null),re.target.closest('[data-comment-button="true"]')||Ya(re)},Ya=re=>{document.querySelectorAll('form[data-empty="true"]').forEach(we=>{we.contains(re.target)||we.querySelector('button[type="button"]')?.click()})};return d?v.jsx("div",{className:"flex items-center justify-center h-screen bg-github-bg-primary",children:v.jsx("div",{className:"text-github-text-secondary text-base",children:"Loading diff..."})}):h?v.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[v.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"Error"}),v.jsx("p",{className:"text-github-text-secondary text-base",children:h})]}):t?v.jsx(XA,{children:v.jsxs("div",{className:"h-screen flex flex-col",onClickCapture:Ga,children:[v.jsxs("header",{className:"bg-github-bg-secondary border-b border-github-border flex items-center",children:[v.jsxs("div",{className:`px-4 py-3 flex items-center justify-between gap-4 ${N?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?`${b}px`:"auto",minWidth:E?"200px":"auto",maxWidth:E?"600px":"auto"},children:[v.jsx("h1",{children:v.jsx(TT,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("button",{onClick:()=>C(!E),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:E?"Collapse file tree":"Expand file tree","aria-expanded":E,"aria-controls":"file-tree-panel","aria-label":"Toggle file tree panel",children:E?v.jsx(zS,{size:18}):v.jsx(FS,{size:18})}),v.jsx("button",{onClick:()=>A(!0),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:"Appearance Settings",children:v.jsx(dx,{size:18})})]})]}),v.jsx("div",{className:`border-r border-github-border ${N?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?"4px":"0px",height:"calc(100% - 16px)",margin:"8px 0",transform:"translateX(-2px)"}}),v.jsxs("div",{className:"flex-1 px-4 py-3 flex items-center justify-between gap-4",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsxs("div",{className:"flex bg-github-bg-tertiary border border-github-border rounded-md p-1",children:[v.jsxs("button",{onClick:()=>Pt("side-by-side"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${l==="side-by-side"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[v.jsx(gS,{size:14}),"Side by Side"]}),v.jsxs("button",{onClick:()=>Pt("inline"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${l==="inline"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[v.jsx(ZS,{size:14}),"Inline"]})]}),v.jsx(hx,{checked:u,onChange:c,label:"Ignore Whitespace",title:u?"Show whitespace changes":"Ignore whitespace changes"}),v.jsx(NT,{shouldReload:Ke,isReloading:Zt.isReloading,onReload:On,changeType:Zt.lastChangeType})]}),v.jsxs("div",{className:"flex items-center gap-4 text-sm text-github-text-secondary",children:[de.length>0&&v.jsx(WS,{commentsCount:de.length,isCopiedAll:m,onCopyAll:jl,onDeleteAll:Re,onViewAll:()=>M(!0)}),v.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[v.jsxs("div",{className:"text-xs relative",children:[Me.size===t.files.length?"All diffs difit-ed!":`${Me.size} / ${t.files.length} files viewed`,v.jsx(IN,{isActive:G})]}),v.jsx("div",{className:"relative h-2 bg-github-bg-tertiary rounded-full overflow-hidden",style:{width:"90px",border:"1px solid var(--color-github-border)"},children:v.jsx("div",{className:"absolute top-0 right-0 h-full transition-all duration-300 ease-out",style:{width:`${(t.files.length-Me.size)/t.files.length*100}%`,backgroundColor:(()=>{const re=(t.files.length-Me.size)/t.files.length*100;return re>50?"var(--color-github-accent)":re>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),F?v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(qb,{label:"Base",value:L,resolvedValue:R,onChange:re=>{Ll(re,I)},options:F,disabledValues:lu()}),v.jsx("span",{className:"text-github-text-muted",children:"..."}),v.jsx(qb,{label:"Target",value:I,resolvedValue:V,onChange:re=>{Ll(L,re)},options:F,disabledValues:Pa()})]}):v.jsxs("span",{children:["Reviewing:"," ",v.jsx("code",{className:"bg-github-bg-tertiary px-1.5 py-0.5 rounded text-xs text-github-text-primary",children:t.commit.includes("...")?v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"text-github-text-secondary font-medium",children:[t.commit.split("...")[0],"..."]}),v.jsx("span",{className:"font-medium",children:t.commit.split("...")[1]})]}):t.commit})]})]})]})]}),v.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[v.jsx("div",{className:`relative overflow-hidden ${N?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?`${b}px`:"0px"},children:v.jsxs("aside",{id:"file-tree-panel",className:"bg-github-bg-secondary border-r border-github-border overflow-y-auto flex flex-col",style:{width:`${b}px`,minWidth:"200px",maxWidth:"600px",height:"100%"},children:[v.jsx("div",{className:"flex-1 overflow-y-auto",children:v.jsx(ET,{files:t.files,onScrollToFile:re=>{const ye=document.getElementById(ed(re));ye&&ye.scrollIntoView({behavior:"smooth",block:"start"})},comments:de.map(re=>({id:re.id,file:re.filePath,line:typeof re.position.line=="number"?re.position.line:[re.position.line.start,re.position.line.end],body:re.body,timestamp:re.createdAt,codeContent:re.codeSnapshot?.content})),reviewedFiles:Me,onToggleReviewed:ht,selectedFileIndex:Xn?.fileIndex??null})}),v.jsxs("div",{className:"p-4 border-t border-github-border flex justify-between items-center",children:[v.jsxs("button",{onClick:()=>nl(!0),className:"flex items-center gap-1.5 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"Keyboard shortcuts (Shift+?)",children:[v.jsx(RS,{size:16}),v.jsx("span",{className:"text-sm",children:"Shortcuts"})]}),v.jsxs("a",{href:"https://github.com/yoshiko-pg/difit",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"View on GitHub",children:[v.jsx("span",{className:"text-sm",children:"Star on GitHub"}),v.jsx(CT,{style:{height:"18px",width:"18px"}})]})]})]})}),v.jsx("div",{className:`bg-github-border hover:bg-github-text-muted cursor-col-resize ${N?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?"4px":"0px"},onMouseDown:ru,title:"Drag to resize file list"}),v.jsx("main",{className:"flex-1 overflow-y-auto",children:t.files.map((re,ye)=>{const we=Qe.get(re.path)??u8,Ee=Lt.get(re.path)??c8;return v.jsx("div",{id:ed(re.path),className:"mb-6",children:v.jsx(ST,{file:re,comments:we,diffMode:l,reviewedFiles:Me,onToggleReviewed:ht,collapsedFiles:q,onToggleCollapsed:pt,onToggleAllCollapsed:Vt,onAddComment:$a,onGeneratePrompt:rl,onRemoveComment:he,onUpdateComment:be,syntaxTheme:ce.syntaxTheme,baseCommitish:t.baseCommitish,targetCommitish:t.targetCommitish,cursor:Xn?.fileIndex===ye?Xn:null,fileIndex:ye,onLineClick:Qn,commentTrigger:gt?.fileIndex===ye?gt:null,onCommentTriggerHandled:_l,mergedChunks:Ee,expandLines:at,expandAllBetweenChunks:vr,prefetchFileContent:ae,isExpandLoading:$t})},re.path)})})]}),v.jsx(FN,{isOpen:k,onClose:()=>A(!1),settings:ce,onSettingsChange:fe}),v.jsx(AT,{isOpen:Rl,onClose:()=>nl(!1)}),v.jsx(e2,{isOpen:P,onClose:()=>M(!1),onNavigate:ji,comments:de.map(re=>({id:re.id,file:re.filePath,line:typeof re.position.line=="number"?re.position.line:[re.position.line.start,re.position.line.end],body:re.body,timestamp:re.createdAt,codeContent:re.codeSnapshot?.content})),onRemoveComment:he,onGeneratePrompt:re=>xe(re.id),onUpdateComment:be})]})}):v.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[v.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"No data"}),v.jsx("p",{className:"text-github-text-secondary text-base",children:"No diff data available"})]})}const y0=document.getElementById("root");if(!y0)throw new Error("Root element not found");Bw.createRoot(y0).render(v.jsx(Dn.StrictMode,{children:v.jsx(Zw,{initiallyActiveScopes:["navigation"],children:v.jsx(f8,{})})}));export{Bs as g};
|