difit 3.1.3 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-BVVFshvc.css +1 -0
- package/dist/client/assets/index-a1BG8qLD.js +67 -0
- package/dist/client/assets/{prism-csharp-B0flB6m_.js → prism-csharp-B9sOWZbP.js} +1 -1
- package/dist/client/assets/{prism-hcl-Dw-ceyEl.js → prism-hcl-DyoEoP5U.js} +1 -1
- package/dist/client/assets/{prism-java-NEfmWs-a.js → prism-java-C8aayYea.js} +1 -1
- package/dist/client/assets/{prism-perl-BBlpkdoq.js → prism-perl-OmnKymhn.js} +1 -1
- package/dist/client/assets/{prism-php-C05TZp5_.js → prism-php-D6cj7Bpf.js} +1 -1
- package/dist/client/assets/{prism-ruby-C_UU6C7J.js → prism-ruby-DpH58Hlp.js} +1 -1
- package/dist/client/assets/{prism-solidity-Dy4Vtzco.js → prism-solidity-D2vLuj19.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/index-CJFEXHVo.css +0 -1
- package/dist/client/assets/index-DkSWqPfG.js +0 -67
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
function e2(e,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 e)){const u=Object.getOwnPropertyDescriptor(a,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,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 Ys(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tf={exports:{}},Ca={};var db;function t2(){if(db)return Ca;db=1;var e=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 f in s)f!=="key"&&(u[f]=s[f])}else u=s;return s=u.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:u}}return Ca.Fragment=r,Ca.jsx=l,Ca.jsxs=l,Ca}var hb;function n2(){return hb||(hb=1,Tf.exports=t2()),Tf.exports}var y=n2(),Af={exports:{}},je={};var pb;function r2(){if(pb)return je;pb=1;var e=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"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),x=Symbol.iterator;function v(D){return D===null||typeof D!="object"?null:(D=x&&D[x]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,T={};function E(D,H,A){this.props=D,this.context=H,this.refs=T,this.updater=A||w}E.prototype.isReactComponent={},E.prototype.setState=function(D,H){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,H,"setState")},E.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=E.prototype;function N(D,H,A){this.props=D,this.context=H,this.refs=T,this.updater=A||w}var B=N.prototype=new C;B.constructor=N,k(B,E.prototype),B.isPureReactComponent=!0;var q=Array.isArray;function L(){}var I={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function G(D,H,A){var le=A.ref;return{$$typeof:e,type:D,key:H,ref:le!==void 0?le:null,props:A}}function M(D,H){return G(D.type,H,D.props)}function V(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function Y(D){var H={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(A){return H[A]})}var J=/\/+/g;function U(D,H){return typeof D=="object"&&D!==null&&D.key!=null?Y(""+D.key):H.toString(36)}function X(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(L,L):(D.status="pending",D.then(function(H){D.status==="pending"&&(D.status="fulfilled",D.value=H)},function(H){D.status==="pending"&&(D.status="rejected",D.reason=H)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function F(D,H,A,le,ce){var de=typeof D;(de==="undefined"||de==="boolean")&&(D=null);var fe=!1;if(D===null)fe=!0;else switch(de){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(D.$$typeof){case e:case r:fe=!0;break;case b:return fe=D._init,F(fe(D._payload),H,A,le,ce)}}if(fe)return ce=ce(D),fe=le===""?"."+U(D,0):le,q(ce)?(A="",fe!=null&&(A=fe.replace(J,"$&/")+"/"),F(ce,H,A,"",function(ve){return ve})):ce!=null&&(V(ce)&&(ce=M(ce,A+(ce.key==null||D&&D.key===ce.key?"":(""+ce.key).replace(J,"$&/")+"/")+fe)),H.push(ce)),1;fe=0;var ge=le===""?".":le+":";if(q(D))for(var he=0;he<D.length;he++)le=D[he],de=ge+U(le,he),fe+=F(le,H,A,de,ce);else if(he=v(D),typeof he=="function")for(D=he.call(D),he=0;!(le=D.next()).done;)le=le.value,de=ge+U(le,he++),fe+=F(le,H,A,de,ce);else if(de==="object"){if(typeof D.then=="function")return F(X(D),H,A,le,ce);throw H=String(D),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return fe}function O(D,H,A){if(D==null)return D;var le=[],ce=0;return F(D,le,"","",function(de){return H.call(A,de,ce++)}),le}function z(D){if(D._status===-1){var H=D._result;H=H(),H.then(function(A){(D._status===0||D._status===-1)&&(D._status=1,D._result=A)},function(A){(D._status===0||D._status===-1)&&(D._status=2,D._result=A)}),D._status===-1&&(D._status=0,D._result=H)}if(D._status===1)return D._result.default;throw D._result}var K=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},_={map:O,forEach:function(D,H,A){O(D,function(){H.apply(this,arguments)},A)},count:function(D){var H=0;return O(D,function(){H++}),H},toArray:function(D){return O(D,function(H){return H})||[]},only:function(D){if(!V(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return je.Activity=g,je.Children=_,je.Component=E,je.Fragment=l,je.Profiler=s,je.PureComponent=N,je.StrictMode=a,je.Suspense=p,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,je.__COMPILER_RUNTIME={__proto__:null,c:function(D){return I.H.useMemoCache(D)}},je.cache=function(D){return function(){return D.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function(D,H,A){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var le=k({},D.props),ce=D.key;if(H!=null)for(de in H.key!==void 0&&(ce=""+H.key),H)!$.call(H,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&H.ref===void 0||(le[de]=H[de]);var de=arguments.length-2;if(de===1)le.children=A;else if(1<de){for(var fe=Array(de),ge=0;ge<de;ge++)fe[ge]=arguments[ge+2];le.children=fe}return G(D.type,ce,le)},je.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},je.createElement=function(D,H,A){var le,ce={},de=null;if(H!=null)for(le in H.key!==void 0&&(de=""+H.key),H)$.call(H,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ce[le]=H[le]);var fe=arguments.length-2;if(fe===1)ce.children=A;else if(1<fe){for(var ge=Array(fe),he=0;he<fe;he++)ge[he]=arguments[he+2];ce.children=ge}if(D&&D.defaultProps)for(le in fe=D.defaultProps,fe)ce[le]===void 0&&(ce[le]=fe[le]);return G(D,de,ce)},je.createRef=function(){return{current:null}},je.forwardRef=function(D){return{$$typeof:f,render:D}},je.isValidElement=V,je.lazy=function(D){return{$$typeof:b,_payload:{_status:-1,_result:D},_init:z}},je.memo=function(D,H){return{$$typeof:h,type:D,compare:H===void 0?null:H}},je.startTransition=function(D){var H=I.T,A={};I.T=A;try{var le=D(),ce=I.S;ce!==null&&ce(A,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(L,K)}catch(de){K(de)}finally{H!==null&&A.types!==null&&(H.types=A.types),I.T=H}},je.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},je.use=function(D){return I.H.use(D)},je.useActionState=function(D,H,A){return I.H.useActionState(D,H,A)},je.useCallback=function(D,H){return I.H.useCallback(D,H)},je.useContext=function(D){return I.H.useContext(D)},je.useDebugValue=function(){},je.useDeferredValue=function(D,H){return I.H.useDeferredValue(D,H)},je.useEffect=function(D,H){return I.H.useEffect(D,H)},je.useEffectEvent=function(D){return I.H.useEffectEvent(D)},je.useId=function(){return I.H.useId()},je.useImperativeHandle=function(D,H,A){return I.H.useImperativeHandle(D,H,A)},je.useInsertionEffect=function(D,H){return I.H.useInsertionEffect(D,H)},je.useLayoutEffect=function(D,H){return I.H.useLayoutEffect(D,H)},je.useMemo=function(D,H){return I.H.useMemo(D,H)},je.useOptimistic=function(D,H){return I.H.useOptimistic(D,H)},je.useReducer=function(D,H,A){return I.H.useReducer(D,H,A)},je.useRef=function(D){return I.H.useRef(D)},je.useState=function(D){return I.H.useState(D)},je.useSyncExternalStore=function(D,H,A){return I.H.useSyncExternalStore(D,H,A)},je.useTransition=function(){return I.H.useTransition()},je.version="19.2.3",je}var mb;function Pd(){return mb||(mb=1,Af.exports=r2()),Af.exports}var R=Pd();const Zt=Ys(R),gx=e2({__proto__:null,default:Zt},[R]);var Nf={exports:{}},Ta={},Rf={exports:{}},_f={};var gb;function l2(){return gb||(gb=1,(function(e){function r(F,O){var z=F.length;F.push(O);e:for(;0<z;){var K=z-1>>>1,_=F[K];if(0<s(_,O))F[K]=O,F[z]=_,z=K;else break e}}function l(F){return F.length===0?null:F[0]}function a(F){if(F.length===0)return null;var O=F[0],z=F.pop();if(z!==O){F[0]=z;e:for(var K=0,_=F.length,D=_>>>1;K<D;){var H=2*(K+1)-1,A=F[H],le=H+1,ce=F[le];if(0>s(A,z))le<_&&0>s(ce,A)?(F[K]=ce,F[le]=z,K=le):(F[K]=A,F[H]=z,K=H);else if(le<_&&0>s(ce,z))F[K]=ce,F[le]=z,K=le;else break e}}return O}function s(F,O){var z=F.sortIndex-O.sortIndex;return z!==0?z:F.id-O.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var p=[],h=[],b=1,g=null,x=3,v=!1,w=!1,k=!1,T=!1,E=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function B(F){for(var O=l(h);O!==null;){if(O.callback===null)a(h);else if(O.startTime<=F)a(h),O.sortIndex=O.expirationTime,r(p,O);else break;O=l(h)}}function q(F){if(k=!1,B(F),!w)if(l(p)!==null)w=!0,L||(L=!0,Y());else{var O=l(h);O!==null&&X(q,O.startTime-F)}}var L=!1,I=-1,$=5,G=-1;function M(){return T?!0:!(e.unstable_now()-G<$)}function V(){if(T=!1,L){var F=e.unstable_now();G=F;var O=!0;try{e:{w=!1,k&&(k=!1,C(I),I=-1),v=!0;var z=x;try{t:{for(B(F),g=l(p);g!==null&&!(g.expirationTime>F&&M());){var K=g.callback;if(typeof K=="function"){g.callback=null,x=g.priorityLevel;var _=K(g.expirationTime<=F);if(F=e.unstable_now(),typeof _=="function"){g.callback=_,B(F),O=!0;break t}g===l(p)&&a(p),B(F)}else a(p);g=l(p)}if(g!==null)O=!0;else{var D=l(h);D!==null&&X(q,D.startTime-F),O=!1}}break e}finally{g=null,x=z,v=!1}O=void 0}}finally{O?Y():L=!1}}}var Y;if(typeof N=="function")Y=function(){N(V)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,U=J.port2;J.port1.onmessage=V,Y=function(){U.postMessage(null)}}else Y=function(){E(V,0)};function X(F,O){I=E(function(){F(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(F){switch(x){case 1:case 2:case 3:var O=3;break;default:O=x}var z=x;x=O;try{return F()}finally{x=z}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(F,O){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var z=x;x=F;try{return O()}finally{x=z}},e.unstable_scheduleCallback=function(F,O,z){var K=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?K+z:K):z=K,F){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=z+_,F={id:b++,callback:O,priorityLevel:F,startTime:z,expirationTime:_,sortIndex:-1},z>K?(F.sortIndex=z,r(h,F),l(p)===null&&F===l(h)&&(k?(C(I),I=-1):k=!0,X(q,z-K))):(F.sortIndex=_,r(p,F),w||v||(w=!0,L||(L=!0,Y()))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var O=x;return function(){var z=x;x=O;try{return F.apply(this,arguments)}finally{x=z}}}})(_f)),_f}var bb;function i2(){return bb||(bb=1,Rf.exports=l2()),Rf.exports}var jf={exports:{}},Bt={};var yb;function a2(){if(yb)return Bt;yb=1;var e=Pd();function r(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}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,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:h,implementation:b}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(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 b=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,b)},Bt.flushSync=function(p){var h=c.T,b=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=h,a.p=b,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 b=h.as,g=f(b,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,v=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?a.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:x,fetchPriority:v}):b==="script"&&a.d.X(p,{crossOrigin:g,integrity:x,fetchPriority:v,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 b=f(h.as,h.crossOrigin);a.d.M(p,{crossOrigin:b,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 b=h.as,g=f(b,h.crossOrigin);a.d.L(p,b,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Bt.preloadModule=function(p,h){if(typeof p=="string")if(h){var b=f(h.as,h.crossOrigin);a.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,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,b){return c.H.useFormState(p,h,b)},Bt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Bt.version="19.2.3",Bt}var xb;function bx(){if(xb)return jf.exports;xb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),jf.exports=a2(),jf.exports}var vb;function o2(){if(vb)return Ta;vb=1;var e=i2(),r=Pd(),l=bx();function a(t){var n="https://react.dev/errors/"+t;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 #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function c(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function f(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function p(t){if(u(t)!==t)throw Error(a(188))}function h(t){var n=t.alternate;if(!n){if(n=u(t),n===null)throw Error(a(188));return n!==t?null:t}for(var i=t,o=n;;){var d=i.return;if(d===null)break;var m=d.alternate;if(m===null){if(o=d.return,o!==null){i=o;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===i)return p(d),t;if(m===o)return p(d),n;m=m.sibling}throw Error(a(188))}if(i.return!==o.return)i=d,o=m;else{for(var S=!1,j=d.child;j;){if(j===i){S=!0,i=d,o=m;break}if(j===o){S=!0,o=d,i=m;break}j=j.sibling}if(!S){for(j=m.child;j;){if(j===i){S=!0,i=m,o=d;break}if(j===o){S=!0,o=m,i=d;break}j=j.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?t:n}function b(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=b(t),n!==null)return n;t=t.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),T=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"),q=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),M=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function Y(t){return t===null||typeof t!="object"?null:(t=V&&t[V]||t["@@iterator"],typeof t=="function"?t:null)}var J=Symbol.for("react.client.reference");function U(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===J?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case k:return"Fragment";case E:return"Profiler";case T:return"StrictMode";case q:return"Suspense";case L:return"SuspenseList";case G:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case N:return t.displayName||"Context";case C:return(t._context.displayName||"Context")+".Consumer";case B:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case I:return n=t.displayName||null,n!==null?n:U(t.type)||"Memo";case $:n=t._payload,t=t._init;try{return U(t(n))}catch{}}return null}var X=Array.isArray,F=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},K=[],_=-1;function D(t){return{current:t}}function H(t){0>_||(t.current=K[_],K[_]=null,_--)}function A(t,n){_++,K[_]=t.current,t.current=n}var le=D(null),ce=D(null),de=D(null),fe=D(null);function ge(t,n){switch(A(de,n),A(ce,t),A(le,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?Mg(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=Mg(n),t=zg(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(le),A(le,t)}function he(){H(le),H(ce),H(de)}function ve(t){t.memoizedState!==null&&A(fe,t);var n=le.current,i=zg(n,t.type);n!==i&&(A(ce,t),A(le,i))}function xe(t){ce.current===t&&(H(le),H(ce)),fe.current===t&&(H(fe),wa._currentValue=z)}var ye,Ce;function Ae(t){if(ye===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);ye=n&&n[1]||"",Ce=-1<i.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+ye+t+Ce}var Ge=!1;function Me(t,n){if(!t||Ge)return"";Ge=!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(re){var te=re}Reflect.construct(t,[],ue)}else{try{ue.call()}catch(re){te=re}t.call(ue.prototype)}}else{try{throw Error()}catch(re){te=re}(ue=t())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(re){if(re&&te&&typeof re.stack=="string")return[re.stack,te.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=o.DetermineComponentFrameRoot(),S=m[0],j=m[1];if(S&&j){var P=S.split(`
|
|
4
|
-
`),ee=j.split(`
|
|
5
|
-
`);for(d=o=0;o<P.length&&!P[o].includes("DetermineComponentFrameRoot");)o++;for(;d<ee.length&&!ee[d].includes("DetermineComponentFrameRoot");)d++;if(o===P.length||d===ee.length)for(o=P.length-1,d=ee.length-1;1<=o&&0<=d&&P[o]!==ee[d];)d--;for(;1<=o&&0<=d;o--,d--)if(P[o]!==ee[d]){if(o!==1||d!==1)do if(o--,d--,0>d||P[o]!==ee[d]){var ie=`
|
|
6
|
-
`+P[o].replace(" at new "," at ");return t.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",t.displayName)),ie}while(1<=o&&0<=d);break}}}finally{Ge=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Ae(i):""}function Ue(t,n){switch(t.tag){case 26:case 27:case 5:return Ae(t.type);case 16:return Ae("Lazy");case 13:return t.child!==n&&n!==null?Ae("Suspense Fallback"):Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 15:return Me(t.type,!1);case 11:return Me(t.type.render,!1);case 1:return Me(t.type,!0);case 31:return Ae("Activity");default:return""}}function _t(t){try{var n="",i=null;do n+=Ue(t,i),i=t,t=t.return;while(t);return n}catch(o){return`
|
|
7
|
-
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}}var ht=Object.prototype.hasOwnProperty,pt=e.unstable_scheduleCallback,Pt=e.unstable_cancelCallback,Vt=e.unstable_shouldYield,$t=e.unstable_requestPaint,at=e.unstable_now,wr=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,Ne=e.unstable_NormalPriority,ze=e.unstable_LowPriority,Ve=e.unstable_IdlePriority,jt=e.log,un=e.unstable_setDisableYieldValue,Lt=null,mt=null;function At(t){if(typeof jt=="function"&&un(t),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(Lt,t)}catch{}}var Qe=Math.clz32?Math.clz32:Zn,On=Math.log,Kt=Math.LN2;function Zn(t){return t>>>=0,t===0?32:31-(On(t)/Kt|0)|0}var jl=256,rl=262144,Kn=4194304;function Qn(t){var n=t&42;if(n!==0)return n;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ll(t,n,i){var o=t.pendingLanes;if(o===0)return 0;var d=0,m=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var j=o&134217727;return j!==0?(o=j&~m,o!==0?d=Qn(o):(S&=j,S!==0?d=Qn(S):i||(i=j&~t,i!==0&&(d=Qn(i))))):(j=o&~m,j!==0?d=Qn(j):S!==0?d=Qn(S):i||(i=o&~t,i!==0&&(d=Qn(i)))),d===0?0:n!==0&&n!==d&&(n&m)===0&&(m=d&-d,i=n&-n,m>=i||m===32&&(i&4194048)!==0)?n:d}function ll(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function mu(t,n){switch(t){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 Sr(){var t=Kn;return Kn<<=1,(Kn&62914560)===0&&(Kn=4194304),t}function Dl(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function kr(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function gu(t,n,i,o,d,m){var S=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var j=t.entanglements,P=t.expirationTimes,ee=t.hiddenUpdates;for(i=S&~i;0<i;){var ie=31-Qe(i),ue=1<<ie;j[ie]=0,P[ie]=-1;var te=ee[ie];if(te!==null)for(ee[ie]=null,ie=0;ie<te.length;ie++){var re=te[ie];re!==null&&(re.lane&=-536870913)}i&=~ue}o!==0&&Qa(t,o,0),m!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=m&~(S&~n))}function Qa(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var o=31-Qe(n);t.entangledLanes|=n,t.entanglements[o]=t.entanglements[o]|1073741824|i&261930}function Oi(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var o=31-Qe(i),d=1<<o;d&n|t[o]&n&&(t[o]|=n),i&=~d}}function Ja(t,n){var i=n&-n;return i=(i&42)!==0?1:Ol(i),(i&(t.suspendedLanes|n))!==0?0:i}function Ol(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Mi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Wa(){var t=O.p;return t!==0?t:(t=window.event,t===void 0?32:ib(t.type))}function eo(t,n){var i=O.p;try{return O.p=t,n()}finally{O.p=i}}var In=Math.random().toString(36).slice(2),ne="__reactFiber$"+In,be="__reactProps$"+In,ke="__reactContainer$"+In,Ee="__reactEvents$"+In,ut="__reactListeners$"+In,Ml="__reactHandles$"+In,il="__reactResources$"+In,zi="__reactMarker$"+In;function bu(t){delete t[ne],delete t[be],delete t[Ee],delete t[ut],delete t[Ml]}function zl(t){var n=t[ne];if(n)return n;for(var i=t.parentNode;i;){if(n=i[ke]||i[ne]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=Pg(t);t!==null;){if(i=t[ne])return i;t=Pg(t)}return n}t=i,i=t.parentNode}return null}function Bl(t){if(t=t[ne]||t[ke]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function Bi(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(a(33))}function Fl(t){var n=t[il];return n||(n=t[il]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Nt(t){t[zi]=!0}var kh=new Set,Eh={};function al(t,n){Il(t,n),Il(t+"Capture",n)}function Il(t,n){for(Eh[t]=n,t=0;t<n.length;t++)kh.add(n[t])}var $0=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]*$"),Ch={},Th={};function G0(t){return ht.call(Th,t)?!0:ht.call(Ch,t)?!1:$0.test(t)?Th[t]=!0:(Ch[t]=!0,!1)}function to(t,n,i){if(G0(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+i)}}function no(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+i)}}function Jn(t,n,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(n,i,""+o)}}function Sn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ah(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Y0(t,n,i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,m=o.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return d.call(this)},set:function(S){i=""+S,m.call(this,S)}}),Object.defineProperty(t,n,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(S){i=""+S},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function yu(t){if(!t._valueTracker){var n=Ah(t)?"checked":"value";t._valueTracker=Y0(t,n,""+t[n])}}function Nh(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return t&&(o=Ah(t)?t.checked?"true":"false":t.value),t=o,t!==i?(n.setValue(t),!0):!1}function ro(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var X0=/[\n"\\]/g;function kn(t){return t.replace(X0,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function xu(t,n,i,o,d,m,S,j){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),n!=null?S==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+Sn(n)):t.value!==""+Sn(n)&&(t.value=""+Sn(n)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),n!=null?vu(t,S,Sn(n)):i!=null?vu(t,S,Sn(i)):o!=null&&t.removeAttribute("value"),d==null&&m!=null&&(t.defaultChecked=!!m),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?t.name=""+Sn(j):t.removeAttribute("name")}function Rh(t,n,i,o,d,m,S,j){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),n!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){yu(t);return}i=i!=null?""+Sn(i):"",n=n!=null?""+Sn(n):i,j||n===t.value||(t.value=n),t.defaultValue=n}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=j?t.checked:!!o,t.defaultChecked=!!o,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S),yu(t)}function vu(t,n,i){n==="number"&&ro(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Ul(t,n,i,o){if(t=t.options,n){n={};for(var d=0;d<i.length;d++)n["$"+i[d]]=!0;for(i=0;i<t.length;i++)d=n.hasOwnProperty("$"+t[i].value),t[i].selected!==d&&(t[i].selected=d),d&&o&&(t[i].defaultSelected=!0)}else{for(i=""+Sn(i),n=null,d=0;d<t.length;d++){if(t[d].value===i){t[d].selected=!0,o&&(t[d].defaultSelected=!0);return}n!==null||t[d].disabled||(n=t[d])}n!==null&&(n.selected=!0)}}function _h(t,n,i){if(n!=null&&(n=""+Sn(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+Sn(i):""}function jh(t,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=Sn(n),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o),yu(t)}function Hl(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var Z0=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 Lh(t,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":o?t.setProperty(n,i):typeof i!="number"||i===0||Z0.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function Dh(t,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var d in n)o=n[d],n.hasOwnProperty(d)&&i[d]!==o&&Lh(t,d,o)}else for(var m in n)n.hasOwnProperty(m)&&Lh(t,m,n[m])}function wu(t){if(t.indexOf("-")===-1)return!1;switch(t){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"]]),Q0=/^[\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 lo(t){return Q0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Wn(){}var Su=null;function ku(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ql=null,Pl=null;function Oh(t){var n=Bl(t);if(n&&(t=n.stateNode)){var i=t[be]||null;e:switch(t=n.stateNode,n.type){case"input":if(xu(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+kn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==t&&o.form===t.form){var d=o[be]||null;if(!d)throw Error(a(90));xu(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===t.form&&Nh(o)}break e;case"textarea":_h(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Ul(t,!!i.multiple,n,!1)}}}var Eu=!1;function Mh(t,n,i){if(Eu)return t(n,i);Eu=!0;try{var o=t(n);return o}finally{if(Eu=!1,(ql!==null||Pl!==null)&&(Go(),ql&&(n=ql,t=Pl,Pl=ql=null,Oh(n),t)))for(n=0;n<t.length;n++)Oh(t[n])}}function Fi(t,n){var i=t.stateNode;if(i===null)return null;var o=i[be]||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)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var er=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cu=!1;if(er)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){Cu=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{Cu=!1}var Er=null,Tu=null,io=null;function zh(){if(io)return io;var t,n=Tu,i=n.length,o,d="value"in Er?Er.value:Er.textContent,m=d.length;for(t=0;t<i&&n[t]===d[t];t++);var S=i-t;for(o=1;o<=S&&n[i-o]===d[m-o];o++);return io=d.slice(t,1<o?1-o:void 0)}function ao(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function oo(){return!0}function Bh(){return!1}function Qt(t){function n(i,o,d,m,S){this._reactName=i,this._targetInst=d,this.type=o,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var j in t)t.hasOwnProperty(j)&&(i=t[j],this[j]=i?i(m):m[j]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?oo:Bh,this.isPropagationStopped=Bh,this}return g(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=oo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=oo)},persist:function(){},isPersistent:oo}),n}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},so=Qt(ol),Ui=g({},ol,{view:0,detail:0}),J0=Qt(Ui),Au,Nu,Hi,uo=g({},Ui,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_u,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Hi&&(Hi&&t.type==="mousemove"?(Au=t.screenX-Hi.screenX,Nu=t.screenY-Hi.screenY):Nu=Au=0,Hi=t),Au)},movementY:function(t){return"movementY"in t?t.movementY:Nu}}),Fh=Qt(uo),W0=g({},uo,{dataTransfer:0}),ev=Qt(W0),tv=g({},Ui,{relatedTarget:0}),Ru=Qt(tv),nv=g({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),rv=Qt(nv),lv=g({},ol,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),iv=Qt(lv),av=g({},ol,{data:0}),Ih=Qt(av),ov={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sv={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"},uv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cv(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=uv[t])?!!n[t]:!1}function _u(){return cv}var fv=g({},Ui,{key:function(t){if(t.key){var n=ov[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=ao(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?sv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_u,charCode:function(t){return t.type==="keypress"?ao(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ao(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),dv=Qt(fv),hv=g({},uo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uh=Qt(hv),pv=g({},Ui,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_u}),mv=Qt(pv),gv=g({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),bv=Qt(gv),yv=g({},uo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),xv=Qt(yv),vv=g({},ol,{newState:0,oldState:0}),wv=Qt(vv),Sv=[9,13,27,32],ju=er&&"CompositionEvent"in window,qi=null;er&&"documentMode"in document&&(qi=document.documentMode);var kv=er&&"TextEvent"in window&&!qi,Hh=er&&(!ju||qi&&8<qi&&11>=qi),qh=" ",Ph=!1;function Vh(t,n){switch(t){case"keyup":return Sv.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $h(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vl=!1;function Ev(t,n){switch(t){case"compositionend":return $h(n);case"keypress":return n.which!==32?null:(Ph=!0,qh);case"textInput":return t=n.data,t===qh&&Ph?null:t;default:return null}}function Cv(t,n){if(Vl)return t==="compositionend"||!ju&&Vh(t,n)?(t=zh(),io=Tu=Er=null,Vl=!1,t):null;switch(t){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 Hh&&n.locale!=="ko"?null:n.data;default:return null}}var Tv={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 Gh(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!Tv[t.type]:n==="textarea"}function Yh(t,n,i,o){ql?Pl?Pl.push(o):Pl=[o]:ql=o,n=Wo(n,"onChange"),0<n.length&&(i=new so("onChange","change",null,i,o),t.push({event:i,listeners:n}))}var Pi=null,Vi=null;function Av(t){Rg(t,0)}function co(t){var n=Bi(t);if(Nh(n))return t}function Xh(t,n){if(t==="change")return n}var Zh=!1;if(er){var Lu;if(er){var Du="oninput"in document;if(!Du){var Kh=document.createElement("div");Kh.setAttribute("oninput","return;"),Du=typeof Kh.oninput=="function"}Lu=Du}else Lu=!1;Zh=Lu&&(!document.documentMode||9<document.documentMode)}function Qh(){Pi&&(Pi.detachEvent("onpropertychange",Jh),Vi=Pi=null)}function Jh(t){if(t.propertyName==="value"&&co(Vi)){var n=[];Yh(n,Vi,t,ku(t)),Mh(Av,n)}}function Nv(t,n,i){t==="focusin"?(Qh(),Pi=n,Vi=i,Pi.attachEvent("onpropertychange",Jh)):t==="focusout"&&Qh()}function Rv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return co(Vi)}function _v(t,n){if(t==="click")return co(n)}function jv(t,n){if(t==="input"||t==="change")return co(n)}function Lv(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var cn=typeof Object.is=="function"?Object.is:Lv;function $i(t,n){if(cn(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var d=i[o];if(!ht.call(n,d)||!cn(t[d],n[d]))return!1}return!0}function Wh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ep(t,n){var i=Wh(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=n&&o>=n)return{node:i,offset:n-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Wh(i)}}function tp(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?tp(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function np(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=ro(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=ro(t.document)}return n}function Ou(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var Dv=er&&"documentMode"in document&&11>=document.documentMode,$l=null,Mu=null,Gi=null,zu=!1;function rp(t,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;zu||$l==null||$l!==ro(o)||(o=$l,"selectionStart"in o&&Ou(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}),Gi&&$i(Gi,o)||(Gi=o,o=Wo(Mu,"onSelect"),0<o.length&&(n=new so("onSelect","select",null,n,i),t.push({event:n,listeners:o}),n.target=$l)))}function sl(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var Gl={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},Bu={},lp={};er&&(lp=document.createElement("div").style,"AnimationEvent"in window||(delete Gl.animationend.animation,delete Gl.animationiteration.animation,delete Gl.animationstart.animation),"TransitionEvent"in window||delete Gl.transitionend.transition);function ul(t){if(Bu[t])return Bu[t];if(!Gl[t])return t;var n=Gl[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in lp)return Bu[t]=n[i];return t}var ip=ul("animationend"),ap=ul("animationiteration"),op=ul("animationstart"),Ov=ul("transitionrun"),Mv=ul("transitionstart"),zv=ul("transitioncancel"),sp=ul("transitionend"),up=new Map,Fu="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(" ");Fu.push("scrollEnd");function Mn(t,n){up.set(t,n),al(n,[t])}var fo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},En=[],Yl=0,Iu=0;function ho(){for(var t=Yl,n=Iu=Yl=0;n<t;){var i=En[n];En[n++]=null;var o=En[n];En[n++]=null;var d=En[n];En[n++]=null;var m=En[n];if(En[n++]=null,o!==null&&d!==null){var S=o.pending;S===null?d.next=d:(d.next=S.next,S.next=d),o.pending=d}m!==0&&cp(i,d,m)}}function po(t,n,i,o){En[Yl++]=t,En[Yl++]=n,En[Yl++]=i,En[Yl++]=o,Iu|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function Uu(t,n,i,o){return po(t,n,i,o),mo(t)}function cl(t,n){return po(t,null,null,n),mo(t)}function cp(t,n,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var d=!1,m=t.return;m!==null;)m.childLanes|=i,o=m.alternate,o!==null&&(o.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(d=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,d&&n!==null&&(d=31-Qe(i),t=m.hiddenUpdates,o=t[d],o===null?t[d]=[n]:o.push(n),n.lane=i|536870912),m):null}function mo(t){if(50<pa)throw pa=0,Zc=null,Error(a(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Xl={};function Bv(t,n,i,o){this.tag=t,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 fn(t,n,i,o){return new Bv(t,n,i,o)}function Hu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tr(t,n){var i=t.alternate;return i===null?(i=fn(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function fp(t,n){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function go(t,n,i,o,d,m){var S=0;if(o=t,typeof t=="function")Hu(t)&&(S=1);else if(typeof t=="string")S=qw(t,i,le.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case G:return t=fn(31,i,n,d),t.elementType=G,t.lanes=m,t;case k:return fl(i.children,d,m,n);case T:S=8,d|=24;break;case E:return t=fn(12,i,n,d|2),t.elementType=E,t.lanes=m,t;case q:return t=fn(13,i,n,d),t.elementType=q,t.lanes=m,t;case L:return t=fn(19,i,n,d),t.elementType=L,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case N:S=10;break e;case C:S=9;break e;case B:S=11;break e;case I:S=14;break e;case $:S=16,o=null;break e}S=29,i=Error(a(130,t===null?"null":typeof t,"")),o=null}return n=fn(S,i,n,d),n.elementType=t,n.type=o,n.lanes=m,n}function fl(t,n,i,o){return t=fn(7,t,o,n),t.lanes=i,t}function qu(t,n,i){return t=fn(6,t,null,n),t.lanes=i,t}function dp(t){var n=fn(18,null,null,0);return n.stateNode=t,n}function Pu(t,n,i){return n=fn(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var hp=new WeakMap;function Cn(t,n){if(typeof t=="object"&&t!==null){var i=hp.get(t);return i!==void 0?i:(n={value:t,source:n,stack:_t(n)},hp.set(t,n),n)}return{value:t,source:n,stack:_t(n)}}var Zl=[],Kl=0,bo=null,Yi=0,Tn=[],An=0,Cr=null,Un=1,Hn="";function nr(t,n){Zl[Kl++]=Yi,Zl[Kl++]=bo,bo=t,Yi=n}function pp(t,n,i){Tn[An++]=Un,Tn[An++]=Hn,Tn[An++]=Cr,Cr=t;var o=Un;t=Hn;var d=32-Qe(o)-1;o&=~(1<<d),i+=1;var m=32-Qe(n)+d;if(30<m){var S=d-d%5;m=(o&(1<<S)-1).toString(32),o>>=S,d-=S,Un=1<<32-Qe(n)+d|i<<d|o,Hn=m+t}else Un=1<<m|i<<d|o,Hn=t}function Vu(t){t.return!==null&&(nr(t,1),pp(t,1,0))}function $u(t){for(;t===bo;)bo=Zl[--Kl],Zl[Kl]=null,Yi=Zl[--Kl],Zl[Kl]=null;for(;t===Cr;)Cr=Tn[--An],Tn[An]=null,Hn=Tn[--An],Tn[An]=null,Un=Tn[--An],Tn[An]=null}function mp(t,n){Tn[An++]=Un,Tn[An++]=Hn,Tn[An++]=Cr,Un=n.id,Hn=n.overflow,Cr=t}var Dt=null,ct=null,Pe=!1,Tr=null,Nn=!1,Gu=Error(a(519));function Ar(t){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xi(Cn(n,t)),Gu}function gp(t){var n=t.stateNode,i=t.type,o=t.memoizedProps;switch(n[ne]=t,n[be]=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<ga.length;i++)Fe(ga[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),Rh(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),jh(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||Dg(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=Wn),n=!0):n=!1,n||Ar(t,!0)}function bp(t){for(Dt=t.return;Dt;)switch(Dt.tag){case 5:case 31:case 13:Nn=!1;return;case 27:case 3:Nn=!0;return;default:Dt=Dt.return}}function Ql(t){if(t!==Dt)return!1;if(!Pe)return bp(t),Pe=!0,!1;var n=t.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||ff(t.type,t.memoizedProps)),i=!i),i&&ct&&Ar(t),bp(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));ct=qg(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));ct=qg(t)}else n===27?(n=ct,Hr(t.type)?(t=gf,gf=null,ct=t):ct=n):ct=Dt?_n(t.stateNode.nextSibling):null;return!0}function dl(){ct=Dt=null,Pe=!1}function Yu(){var t=Tr;return t!==null&&(tn===null?tn=t:tn.push.apply(tn,t),Tr=null),t}function Xi(t){Tr===null?Tr=[t]:Tr.push(t)}var Xu=D(null),hl=null,rr=null;function Nr(t,n,i){A(Xu,n._currentValue),n._currentValue=i}function lr(t){t._currentValue=Xu.current,H(Xu)}function Zu(t,n,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),t===i)break;t=t.return}}function Ku(t,n,i,o){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=d.dependencies;if(m!==null){var S=d.child;m=m.firstContext;e:for(;m!==null;){var j=m;m=d;for(var P=0;P<n.length;P++)if(j.context===n[P]){m.lanes|=i,j=m.alternate,j!==null&&(j.lanes|=i),Zu(m.return,i,t),o||(S=null);break e}m=j.next}}else if(d.tag===18){if(S=d.return,S===null)throw Error(a(341));S.lanes|=i,m=S.alternate,m!==null&&(m.lanes|=i),Zu(S,i,t),S=null}else S=d.child;if(S!==null)S.return=d;else for(S=d;S!==null;){if(S===t){S=null;break}if(d=S.sibling,d!==null){d.return=S.return,S=d;break}S=S.return}d=S}}function Jl(t,n,i,o){t=null;for(var d=n,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var S=d.alternate;if(S===null)throw Error(a(387));if(S=S.memoizedProps,S!==null){var j=d.type;cn(d.pendingProps.value,S.value)||(t!==null?t.push(j):t=[j])}}else if(d===fe.current){if(S=d.alternate,S===null)throw Error(a(387));S.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(wa):t=[wa])}d=d.return}t!==null&&Ku(n,t,i,o),n.flags|=262144}function yo(t){for(t=t.firstContext;t!==null;){if(!cn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function pl(t){hl=t,rr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ot(t){return yp(hl,t)}function xo(t,n){return hl===null&&pl(t),yp(t,n)}function yp(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},rr===null){if(t===null)throw Error(a(308));rr=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else rr=rr.next=n;return i}var Fv=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},Iv=e.unstable_scheduleCallback,Uv=e.unstable_NormalPriority,vt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qu(){return{controller:new Fv,data:new Map,refCount:0}}function Zi(t){t.refCount--,t.refCount===0&&Iv(Uv,function(){t.controller.abort()})}var Ki=null,Ju=0,Wl=0,ei=null;function Hv(t,n){if(Ki===null){var i=Ki=[];Ju=0,Wl=tf(),ei={status:"pending",value:void 0,then:function(o){i.push(o)}}}return Ju++,n.then(xp,xp),n}function xp(){if(--Ju===0&&Ki!==null){ei!==null&&(ei.status="fulfilled");var t=Ki;Ki=null,Wl=0,ei=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function qv(t,n){var i=[],o={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return t.then(function(){o.status="fulfilled",o.value=n;for(var d=0;d<i.length;d++)(0,i[d])(n)},function(d){for(o.status="rejected",o.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),o}var vp=F.S;F.S=function(t,n){rg=at(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Hv(t,n),vp!==null&&vp(t,n)};var ml=D(null);function Wu(){var t=ml.current;return t!==null?t:lt.pooledCache}function vo(t,n){n===null?A(ml,ml.current):A(ml,n.pool)}function wp(){var t=Wu();return t===null?null:{parent:vt._currentValue,pool:t}}var ti=Error(a(460)),ec=Error(a(474)),wo=Error(a(542)),So={then:function(){}};function Sp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function kp(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(Wn,Wn),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Cp(t),t;default:if(typeof n.status=="string")n.then(Wn,Wn);else{if(t=lt,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=n,t.status="pending",t.then(function(o){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=o}},function(o){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Cp(t),t}throw bl=n,ti}}function gl(t){try{var n=t._init;return n(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(bl=i,ti):i}}var bl=null;function Ep(){if(bl===null)throw Error(a(459));var t=bl;return bl=null,t}function Cp(t){if(t===ti||t===wo)throw Error(a(483))}var ni=null,Qi=0;function ko(t){var n=Qi;return Qi+=1,ni===null&&(ni=[]),kp(ni,t,n)}function Ji(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Eo(t,n){throw n.$$typeof===x?Error(a(525)):(t=Object.prototype.toString.call(n),Error(a(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Tp(t){function n(Q,Z){if(t){var W=Q.deletions;W===null?(Q.deletions=[Z],Q.flags|=16):W.push(Z)}}function i(Q,Z){if(!t)return null;for(;Z!==null;)n(Q,Z),Z=Z.sibling;return null}function o(Q){for(var Z=new Map;Q!==null;)Q.key!==null?Z.set(Q.key,Q):Z.set(Q.index,Q),Q=Q.sibling;return Z}function d(Q,Z){return Q=tr(Q,Z),Q.index=0,Q.sibling=null,Q}function m(Q,Z,W){return Q.index=W,t?(W=Q.alternate,W!==null?(W=W.index,W<Z?(Q.flags|=67108866,Z):W):(Q.flags|=67108866,Z)):(Q.flags|=1048576,Z)}function S(Q){return t&&Q.alternate===null&&(Q.flags|=67108866),Q}function j(Q,Z,W,oe){return Z===null||Z.tag!==6?(Z=qu(W,Q.mode,oe),Z.return=Q,Z):(Z=d(Z,W),Z.return=Q,Z)}function P(Q,Z,W,oe){var Te=W.type;return Te===k?ie(Q,Z,W.props.children,oe,W.key):Z!==null&&(Z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===$&&gl(Te)===Z.type)?(Z=d(Z,W.props),Ji(Z,W),Z.return=Q,Z):(Z=go(W.type,W.key,W.props,null,Q.mode,oe),Ji(Z,W),Z.return=Q,Z)}function ee(Q,Z,W,oe){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==W.containerInfo||Z.stateNode.implementation!==W.implementation?(Z=Pu(W,Q.mode,oe),Z.return=Q,Z):(Z=d(Z,W.children||[]),Z.return=Q,Z)}function ie(Q,Z,W,oe,Te){return Z===null||Z.tag!==7?(Z=fl(W,Q.mode,oe,Te),Z.return=Q,Z):(Z=d(Z,W),Z.return=Q,Z)}function ue(Q,Z,W){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=qu(""+Z,Q.mode,W),Z.return=Q,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case v:return W=go(Z.type,Z.key,Z.props,null,Q.mode,W),Ji(W,Z),W.return=Q,W;case w:return Z=Pu(Z,Q.mode,W),Z.return=Q,Z;case $:return Z=gl(Z),ue(Q,Z,W)}if(X(Z)||Y(Z))return Z=fl(Z,Q.mode,W,null),Z.return=Q,Z;if(typeof Z.then=="function")return ue(Q,ko(Z),W);if(Z.$$typeof===N)return ue(Q,xo(Q,Z),W);Eo(Q,Z)}return null}function te(Q,Z,W,oe){var Te=Z!==null?Z.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return Te!==null?null:j(Q,Z,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case v:return W.key===Te?P(Q,Z,W,oe):null;case w:return W.key===Te?ee(Q,Z,W,oe):null;case $:return W=gl(W),te(Q,Z,W,oe)}if(X(W)||Y(W))return Te!==null?null:ie(Q,Z,W,oe,null);if(typeof W.then=="function")return te(Q,Z,ko(W),oe);if(W.$$typeof===N)return te(Q,Z,xo(Q,W),oe);Eo(Q,W)}return null}function re(Q,Z,W,oe,Te){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return Q=Q.get(W)||null,j(Z,Q,""+oe,Te);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case v:return Q=Q.get(oe.key===null?W:oe.key)||null,P(Z,Q,oe,Te);case w:return Q=Q.get(oe.key===null?W:oe.key)||null,ee(Z,Q,oe,Te);case $:return oe=gl(oe),re(Q,Z,W,oe,Te)}if(X(oe)||Y(oe))return Q=Q.get(W)||null,ie(Z,Q,oe,Te,null);if(typeof oe.then=="function")return re(Q,Z,W,ko(oe),Te);if(oe.$$typeof===N)return re(Q,Z,W,xo(Z,oe),Te);Eo(Z,oe)}return null}function we(Q,Z,W,oe){for(var Te=null,Ye=null,Se=Z,De=Z=0,qe=null;Se!==null&&De<W.length;De++){Se.index>De?(qe=Se,Se=null):qe=Se.sibling;var Xe=te(Q,Se,W[De],oe);if(Xe===null){Se===null&&(Se=qe);break}t&&Se&&Xe.alternate===null&&n(Q,Se),Z=m(Xe,Z,De),Ye===null?Te=Xe:Ye.sibling=Xe,Ye=Xe,Se=qe}if(De===W.length)return i(Q,Se),Pe&&nr(Q,De),Te;if(Se===null){for(;De<W.length;De++)Se=ue(Q,W[De],oe),Se!==null&&(Z=m(Se,Z,De),Ye===null?Te=Se:Ye.sibling=Se,Ye=Se);return Pe&&nr(Q,De),Te}for(Se=o(Se);De<W.length;De++)qe=re(Se,Q,De,W[De],oe),qe!==null&&(t&&qe.alternate!==null&&Se.delete(qe.key===null?De:qe.key),Z=m(qe,Z,De),Ye===null?Te=qe:Ye.sibling=qe,Ye=qe);return t&&Se.forEach(function(Gr){return n(Q,Gr)}),Pe&&nr(Q,De),Te}function _e(Q,Z,W,oe){if(W==null)throw Error(a(151));for(var Te=null,Ye=null,Se=Z,De=Z=0,qe=null,Xe=W.next();Se!==null&&!Xe.done;De++,Xe=W.next()){Se.index>De?(qe=Se,Se=null):qe=Se.sibling;var Gr=te(Q,Se,Xe.value,oe);if(Gr===null){Se===null&&(Se=qe);break}t&&Se&&Gr.alternate===null&&n(Q,Se),Z=m(Gr,Z,De),Ye===null?Te=Gr:Ye.sibling=Gr,Ye=Gr,Se=qe}if(Xe.done)return i(Q,Se),Pe&&nr(Q,De),Te;if(Se===null){for(;!Xe.done;De++,Xe=W.next())Xe=ue(Q,Xe.value,oe),Xe!==null&&(Z=m(Xe,Z,De),Ye===null?Te=Xe:Ye.sibling=Xe,Ye=Xe);return Pe&&nr(Q,De),Te}for(Se=o(Se);!Xe.done;De++,Xe=W.next())Xe=re(Se,Q,De,Xe.value,oe),Xe!==null&&(t&&Xe.alternate!==null&&Se.delete(Xe.key===null?De:Xe.key),Z=m(Xe,Z,De),Ye===null?Te=Xe:Ye.sibling=Xe,Ye=Xe);return t&&Se.forEach(function(Ww){return n(Q,Ww)}),Pe&&nr(Q,De),Te}function nt(Q,Z,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 v:e:{for(var Te=W.key;Z!==null;){if(Z.key===Te){if(Te=W.type,Te===k){if(Z.tag===7){i(Q,Z.sibling),oe=d(Z,W.props.children),oe.return=Q,Q=oe;break e}}else if(Z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===$&&gl(Te)===Z.type){i(Q,Z.sibling),oe=d(Z,W.props),Ji(oe,W),oe.return=Q,Q=oe;break e}i(Q,Z);break}else n(Q,Z);Z=Z.sibling}W.type===k?(oe=fl(W.props.children,Q.mode,oe,W.key),oe.return=Q,Q=oe):(oe=go(W.type,W.key,W.props,null,Q.mode,oe),Ji(oe,W),oe.return=Q,Q=oe)}return S(Q);case w:e:{for(Te=W.key;Z!==null;){if(Z.key===Te)if(Z.tag===4&&Z.stateNode.containerInfo===W.containerInfo&&Z.stateNode.implementation===W.implementation){i(Q,Z.sibling),oe=d(Z,W.children||[]),oe.return=Q,Q=oe;break e}else{i(Q,Z);break}else n(Q,Z);Z=Z.sibling}oe=Pu(W,Q.mode,oe),oe.return=Q,Q=oe}return S(Q);case $:return W=gl(W),nt(Q,Z,W,oe)}if(X(W))return we(Q,Z,W,oe);if(Y(W)){if(Te=Y(W),typeof Te!="function")throw Error(a(150));return W=Te.call(W),_e(Q,Z,W,oe)}if(typeof W.then=="function")return nt(Q,Z,ko(W),oe);if(W.$$typeof===N)return nt(Q,Z,xo(Q,W),oe);Eo(Q,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,Z!==null&&Z.tag===6?(i(Q,Z.sibling),oe=d(Z,W),oe.return=Q,Q=oe):(i(Q,Z),oe=qu(W,Q.mode,oe),oe.return=Q,Q=oe),S(Q)):i(Q,Z)}return function(Q,Z,W,oe){try{Qi=0;var Te=nt(Q,Z,W,oe);return ni=null,Te}catch(Se){if(Se===ti||Se===wo)throw Se;var Ye=fn(29,Se,null,Q.mode);return Ye.lanes=oe,Ye.return=Q,Ye}}}var yl=Tp(!0),Ap=Tp(!1),Rr=!1;function tc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nc(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function _r(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function jr(t,n,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(Ke&2)!==0){var d=o.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),o.pending=n,n=mo(t),cp(t,null,i),n}return po(t,o,n,i),mo(t)}function Wi(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,Oi(t,i)}}function rc(t,n){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var d=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var S={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?d=m=S:m=m.next=S,i=i.next}while(i!==null);m===null?d=m=n:m=m.next=n}else d=m=n;i={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}var lc=!1;function ea(){if(lc){var t=ei;if(t!==null)throw t}}function ta(t,n,i,o){lc=!1;var d=t.updateQueue;Rr=!1;var m=d.firstBaseUpdate,S=d.lastBaseUpdate,j=d.shared.pending;if(j!==null){d.shared.pending=null;var P=j,ee=P.next;P.next=null,S===null?m=ee:S.next=ee,S=P;var ie=t.alternate;ie!==null&&(ie=ie.updateQueue,j=ie.lastBaseUpdate,j!==S&&(j===null?ie.firstBaseUpdate=ee:j.next=ee,ie.lastBaseUpdate=P))}if(m!==null){var ue=d.baseState;S=0,ie=ee=P=null,j=m;do{var te=j.lane&-536870913,re=te!==j.lane;if(re?(He&te)===te:(o&te)===te){te!==0&&te===Wl&&(lc=!0),ie!==null&&(ie=ie.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var we=t,_e=j;te=n;var nt=i;switch(_e.tag){case 1:if(we=_e.payload,typeof we=="function"){ue=we.call(nt,ue,te);break e}ue=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=_e.payload,te=typeof we=="function"?we.call(nt,ue,te):we,te==null)break e;ue=g({},ue,te);break e;case 2:Rr=!0}}te=j.callback,te!==null&&(t.flags|=64,re&&(t.flags|=8192),re=d.callbacks,re===null?d.callbacks=[te]:re.push(te))}else re={lane:te,tag:j.tag,payload:j.payload,callback:j.callback,next:null},ie===null?(ee=ie=re,P=ue):ie=ie.next=re,S|=te;if(j=j.next,j===null){if(j=d.shared.pending,j===null)break;re=j,j=re.next,re.next=null,d.lastBaseUpdate=re,d.shared.pending=null}}while(!0);ie===null&&(P=ue),d.baseState=P,d.firstBaseUpdate=ee,d.lastBaseUpdate=ie,m===null&&(d.shared.lanes=0),zr|=S,t.lanes=S,t.memoizedState=ue}}function Np(t,n){if(typeof t!="function")throw Error(a(191,t));t.call(n)}function Rp(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Np(i[t],n)}var ri=D(null),Co=D(0);function _p(t,n){t=hr,A(Co,t),A(ri,n),hr=t|n.baseLanes}function ic(){A(Co,hr),A(ri,ri.current)}function ac(){hr=Co.current,H(ri),H(Co)}var dn=D(null),Rn=null;function Lr(t){var n=t.alternate;A(yt,yt.current&1),A(dn,t),Rn===null&&(n===null||ri.current!==null||n.memoizedState!==null)&&(Rn=t)}function oc(t){A(yt,yt.current),A(dn,t),Rn===null&&(Rn=t)}function jp(t){t.tag===22?(A(yt,yt.current),A(dn,t),Rn===null&&(Rn=t)):Dr()}function Dr(){A(yt,yt.current),A(dn,dn.current)}function hn(t){H(dn),Rn===t&&(Rn=null),H(yt)}var yt=D(0);function To(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||pf(i)||mf(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===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ir=0,Le=null,et=null,wt=null,Ao=!1,li=!1,xl=!1,No=0,na=0,ii=null,Pv=0;function gt(){throw Error(a(321))}function sc(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!cn(t[i],n[i]))return!1;return!0}function uc(t,n,i,o,d,m){return ir=m,Le=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,F.H=t===null||t.memoizedState===null?pm:Ec,xl=!1,m=i(o,d),xl=!1,li&&(m=Dp(n,i,o,d)),Lp(t),m}function Lp(t){F.H=ia;var n=et!==null&&et.next!==null;if(ir=0,wt=et=Le=null,Ao=!1,na=0,ii=null,n)throw Error(a(300));t===null||St||(t=t.dependencies,t!==null&&yo(t)&&(St=!0))}function Dp(t,n,i,o){Le=t;var d=0;do{if(li&&(ii=null),na=0,li=!1,25<=d)throw Error(a(301));if(d+=1,wt=et=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}F.H=mm,m=n(i,o)}while(li);return m}function Vv(){var t=F.H,n=t.useState()[0];return n=typeof n.then=="function"?ra(n):n,t=t.useState()[0],(et!==null?et.memoizedState:null)!==t&&(Le.flags|=1024),n}function cc(){var t=No!==0;return No=0,t}function fc(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function dc(t){if(Ao){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Ao=!1}ir=0,wt=et=Le=null,li=!1,na=No=0,ii=null}function Gt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?Le.memoizedState=wt=t:wt=wt.next=t,wt}function xt(){if(et===null){var t=Le.alternate;t=t!==null?t.memoizedState:null}else t=et.next;var n=wt===null?Le.memoizedState:wt.next;if(n!==null)wt=n,et=t;else{if(t===null)throw Le.alternate===null?Error(a(467)):Error(a(310));et=t,t={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},wt===null?Le.memoizedState=wt=t:wt=wt.next=t}return wt}function Ro(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ra(t){var n=na;return na+=1,ii===null&&(ii=[]),t=kp(ii,t,n),n=Le,(wt===null?n.memoizedState:wt.next)===null&&(n=n.alternate,F.H=n===null||n.memoizedState===null?pm:Ec),t}function _o(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ra(t);if(t.$$typeof===N)return Ot(t)}throw Error(a(438,String(t)))}function hc(t){var n=null,i=Le.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=Le.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Ro(),Le.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(t),o=0;o<t;o++)i[o]=M;return n.index++,i}function ar(t,n){return typeof n=="function"?n(t):n}function jo(t){var n=xt();return pc(n,et,t)}function pc(t,n,i){var o=t.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=i;var d=t.baseQueue,m=o.pending;if(m!==null){if(d!==null){var S=d.next;d.next=m.next,m.next=S}n.baseQueue=d=m,o.pending=null}if(m=t.baseState,d===null)t.memoizedState=m;else{n=d.next;var j=S=null,P=null,ee=n,ie=!1;do{var ue=ee.lane&-536870913;if(ue!==ee.lane?(He&ue)===ue:(ir&ue)===ue){var te=ee.revertLane;if(te===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ue===Wl&&(ie=!0);else if((ir&te)===te){ee=ee.next,te===Wl&&(ie=!0);continue}else ue={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},P===null?(j=P=ue,S=m):P=P.next=ue,Le.lanes|=te,zr|=te;ue=ee.action,xl&&i(m,ue),m=ee.hasEagerState?ee.eagerState:i(m,ue)}else te={lane:ue,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},P===null?(j=P=te,S=m):P=P.next=te,Le.lanes|=ue,zr|=ue;ee=ee.next}while(ee!==null&&ee!==n);if(P===null?S=m:P.next=j,!cn(m,t.memoizedState)&&(St=!0,ie&&(i=ei,i!==null)))throw i;t.memoizedState=m,t.baseState=S,t.baseQueue=P,o.lastRenderedState=m}return d===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function mc(t){var n=xt(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=t;var o=i.dispatch,d=i.pending,m=n.memoizedState;if(d!==null){i.pending=null;var S=d=d.next;do m=t(m,S.action),S=S.next;while(S!==d);cn(m,n.memoizedState)||(St=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),i.lastRenderedState=m}return[m,o]}function Op(t,n,i){var o=Le,d=xt(),m=Pe;if(m){if(i===void 0)throw Error(a(407));i=i()}else i=n();var S=!cn((et||d).memoizedState,i);if(S&&(d.memoizedState=i,St=!0),d=d.queue,yc(Bp.bind(null,o,d,t),[t]),d.getSnapshot!==n||S||wt!==null&&wt.memoizedState.tag&1){if(o.flags|=2048,ai(9,{destroy:void 0},zp.bind(null,o,d,i,n),null),lt===null)throw Error(a(349));m||(ir&127)!==0||Mp(o,n,i)}return i}function Mp(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=Le.updateQueue,n===null?(n=Ro(),Le.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function zp(t,n,i,o){n.value=i,n.getSnapshot=o,Fp(n)&&Ip(t)}function Bp(t,n,i){return i(function(){Fp(n)&&Ip(t)})}function Fp(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!cn(t,i)}catch{return!0}}function Ip(t){var n=cl(t,2);n!==null&&nn(n,t,2)}function gc(t){var n=Gt();if(typeof t=="function"){var i=t;if(t=i(),xl){At(!0);try{i()}finally{At(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:t},n}function Up(t,n,i,o){return t.baseState=i,pc(t,et,typeof o=="function"?o:ar)}function $v(t,n,i,o,d){if(Oo(t))throw Error(a(485));if(t=n.action,t!==null){var m={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){m.listeners.push(S)}};F.T!==null?i(!0):m.isTransition=!1,o(m),i=n.pending,i===null?(m.next=n.pending=m,Hp(n,m)):(m.next=i.next,n.pending=i.next=m)}}function Hp(t,n){var i=n.action,o=n.payload,d=t.state;if(n.isTransition){var m=F.T,S={};F.T=S;try{var j=i(d,o),P=F.S;P!==null&&P(S,j),qp(t,n,j)}catch(ee){bc(t,n,ee)}finally{m!==null&&S.types!==null&&(m.types=S.types),F.T=m}}else try{m=i(d,o),qp(t,n,m)}catch(ee){bc(t,n,ee)}}function qp(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){Pp(t,n,o)},function(o){return bc(t,n,o)}):Pp(t,n,i)}function Pp(t,n,i){n.status="fulfilled",n.value=i,Vp(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,Hp(t,i)))}function bc(t,n,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,Vp(n),n=n.next;while(n!==o)}t.action=null}function Vp(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function $p(t,n){return n}function Gp(t,n){if(Pe){var i=lt.formState;if(i!==null){e:{var o=Le;if(Pe){if(ct){t:{for(var d=ct,m=Nn;d.nodeType!==8;){if(!m){d=null;break t}if(d=_n(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){ct=_n(d.nextSibling),o=d.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:$p,lastRenderedState:n},i.queue=o,i=fm.bind(null,Le,o),o.dispatch=i,o=gc(!1),m=kc.bind(null,Le,!1,o.queue),o=Gt(),d={state:n,dispatch:null,action:t,pending:null},o.queue=d,i=$v.bind(null,Le,d,m,i),d.dispatch=i,o.memoizedState=t,[n,i,!1]}function Yp(t){var n=xt();return Xp(n,et,t)}function Xp(t,n,i){if(n=pc(t,n,$p)[0],t=jo(ar)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=ra(n)}catch(S){throw S===ti?wo:S}else o=n;n=xt();var d=n.queue,m=d.dispatch;return i!==n.memoizedState&&(Le.flags|=2048,ai(9,{destroy:void 0},Gv.bind(null,d,i),null)),[o,m,t]}function Gv(t,n){t.action=n}function Zp(t){var n=xt(),i=et;if(i!==null)return Xp(n,i,t);xt(),n=n.memoizedState,i=xt();var o=i.queue.dispatch;return i.memoizedState=t,[n,o,!1]}function ai(t,n,i,o){return t={tag:t,create:i,deps:o,inst:n,next:null},n=Le.updateQueue,n===null&&(n=Ro(),Le.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,n.lastEffect=t),t}function Kp(){return xt().memoizedState}function Lo(t,n,i,o){var d=Gt();Le.flags|=t,d.memoizedState=ai(1|n,{destroy:void 0},i,o===void 0?null:o)}function Do(t,n,i,o){var d=xt();o=o===void 0?null:o;var m=d.memoizedState.inst;et!==null&&o!==null&&sc(o,et.memoizedState.deps)?d.memoizedState=ai(n,m,i,o):(Le.flags|=t,d.memoizedState=ai(1|n,m,i,o))}function Qp(t,n){Lo(8390656,8,t,n)}function yc(t,n){Do(2048,8,t,n)}function Yv(t){Le.flags|=4;var n=Le.updateQueue;if(n===null)n=Ro(),Le.updateQueue=n,n.events=[t];else{var i=n.events;i===null?n.events=[t]:i.push(t)}}function Jp(t){var n=xt().memoizedState;return Yv({ref:n,nextImpl:t}),function(){if((Ke&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function Wp(t,n){return Do(4,2,t,n)}function em(t,n){return Do(4,4,t,n)}function tm(t,n){if(typeof n=="function"){t=t();var i=n(t);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function nm(t,n,i){i=i!=null?i.concat([t]):null,Do(4,4,tm.bind(null,n,t),i)}function xc(){}function rm(t,n){var i=xt();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&sc(n,o[1])?o[0]:(i.memoizedState=[t,n],t)}function lm(t,n){var i=xt();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&sc(n,o[1]))return o[0];if(o=t(),xl){At(!0);try{t()}finally{At(!1)}}return i.memoizedState=[o,n],o}function vc(t,n,i){return i===void 0||(ir&1073741824)!==0&&(He&261930)===0?t.memoizedState=n:(t.memoizedState=i,t=ig(),Le.lanes|=t,zr|=t,i)}function im(t,n,i,o){return cn(i,n)?i:ri.current!==null?(t=vc(t,i,o),cn(t,n)||(St=!0),t):(ir&42)===0||(ir&1073741824)!==0&&(He&261930)===0?(St=!0,t.memoizedState=i):(t=ig(),Le.lanes|=t,zr|=t,n)}function am(t,n,i,o,d){var m=O.p;O.p=m!==0&&8>m?m:8;var S=F.T,j={};F.T=j,kc(t,!1,n,i);try{var P=d(),ee=F.S;if(ee!==null&&ee(j,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var ie=qv(P,o);la(t,n,ie,gn(t))}else la(t,n,o,gn(t))}catch(ue){la(t,n,{then:function(){},status:"rejected",reason:ue},gn())}finally{O.p=m,S!==null&&j.types!==null&&(S.types=j.types),F.T=S}}function Xv(){}function wc(t,n,i,o){if(t.tag!==5)throw Error(a(476));var d=om(t).queue;am(t,d,n,z,i===null?Xv:function(){return sm(t),i(o)})}function om(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:z},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function sm(t){var n=om(t);n.next===null&&(n=t.alternate.memoizedState),la(t,n.next.queue,{},gn())}function Sc(){return Ot(wa)}function um(){return xt().memoizedState}function cm(){return xt().memoizedState}function Zv(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=gn();t=_r(i);var o=jr(n,t,i);o!==null&&(nn(o,n,i),Wi(o,n,i)),n={cache:Qu()},t.payload=n;return}n=n.return}}function Kv(t,n,i){var o=gn();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Oo(t)?dm(n,i):(i=Uu(t,n,i,o),i!==null&&(nn(i,t,o),hm(i,n,o)))}function fm(t,n,i){var o=gn();la(t,n,i,o)}function la(t,n,i,o){var d={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Oo(t))dm(n,d);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var S=n.lastRenderedState,j=m(S,i);if(d.hasEagerState=!0,d.eagerState=j,cn(j,S))return po(t,n,d,0),lt===null&&ho(),!1}catch{}if(i=Uu(t,n,d,o),i!==null)return nn(i,t,o),hm(i,n,o),!0}return!1}function kc(t,n,i,o){if(o={lane:2,revertLane:tf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Oo(t)){if(n)throw Error(a(479))}else n=Uu(t,i,o,2),n!==null&&nn(n,t,2)}function Oo(t){var n=t.alternate;return t===Le||n!==null&&n===Le}function dm(t,n){li=Ao=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function hm(t,n,i){if((i&4194048)!==0){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,Oi(t,i)}}var ia={readContext:Ot,use:_o,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useLayoutEffect:gt,useInsertionEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useSyncExternalStore:gt,useId:gt,useHostTransitionStatus:gt,useFormState:gt,useActionState:gt,useOptimistic:gt,useMemoCache:gt,useCacheRefresh:gt};ia.useEffectEvent=gt;var pm={readContext:Ot,use:_o,useCallback:function(t,n){return Gt().memoizedState=[t,n===void 0?null:n],t},useContext:Ot,useEffect:Qp,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,Lo(4194308,4,tm.bind(null,n,t),i)},useLayoutEffect:function(t,n){return Lo(4194308,4,t,n)},useInsertionEffect:function(t,n){Lo(4,2,t,n)},useMemo:function(t,n){var i=Gt();n=n===void 0?null:n;var o=t();if(xl){At(!0);try{t()}finally{At(!1)}}return i.memoizedState=[o,n],o},useReducer:function(t,n,i){var o=Gt();if(i!==void 0){var d=i(n);if(xl){At(!0);try{i(n)}finally{At(!1)}}}else d=n;return o.memoizedState=o.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},o.queue=t,t=t.dispatch=Kv.bind(null,Le,t),[o.memoizedState,t]},useRef:function(t){var n=Gt();return t={current:t},n.memoizedState=t},useState:function(t){t=gc(t);var n=t.queue,i=fm.bind(null,Le,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:xc,useDeferredValue:function(t,n){var i=Gt();return vc(i,t,n)},useTransition:function(){var t=gc(!1);return t=am.bind(null,Le,t.queue,!0,!1),Gt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var o=Le,d=Gt();if(Pe){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),lt===null)throw Error(a(349));(He&127)!==0||Mp(o,n,i)}d.memoizedState=i;var m={value:i,getSnapshot:n};return d.queue=m,Qp(Bp.bind(null,o,m,t),[t]),o.flags|=2048,ai(9,{destroy:void 0},zp.bind(null,o,m,i,n),null),i},useId:function(){var t=Gt(),n=lt.identifierPrefix;if(Pe){var i=Hn,o=Un;i=(o&~(1<<32-Qe(o)-1)).toString(32)+i,n="_"+n+"R_"+i,i=No++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=Pv++,n="_"+n+"r_"+i.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:Sc,useFormState:Gp,useActionState:Gp,useOptimistic:function(t){var n=Gt();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=kc.bind(null,Le,!0,i),i.dispatch=n,[t,n]},useMemoCache:hc,useCacheRefresh:function(){return Gt().memoizedState=Zv.bind(null,Le)},useEffectEvent:function(t){var n=Gt(),i={impl:t};return n.memoizedState=i,function(){if((Ke&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},Ec={readContext:Ot,use:_o,useCallback:rm,useContext:Ot,useEffect:yc,useImperativeHandle:nm,useInsertionEffect:Wp,useLayoutEffect:em,useMemo:lm,useReducer:jo,useRef:Kp,useState:function(){return jo(ar)},useDebugValue:xc,useDeferredValue:function(t,n){var i=xt();return im(i,et.memoizedState,t,n)},useTransition:function(){var t=jo(ar)[0],n=xt().memoizedState;return[typeof t=="boolean"?t:ra(t),n]},useSyncExternalStore:Op,useId:um,useHostTransitionStatus:Sc,useFormState:Yp,useActionState:Yp,useOptimistic:function(t,n){var i=xt();return Up(i,et,t,n)},useMemoCache:hc,useCacheRefresh:cm};Ec.useEffectEvent=Jp;var mm={readContext:Ot,use:_o,useCallback:rm,useContext:Ot,useEffect:yc,useImperativeHandle:nm,useInsertionEffect:Wp,useLayoutEffect:em,useMemo:lm,useReducer:mc,useRef:Kp,useState:function(){return mc(ar)},useDebugValue:xc,useDeferredValue:function(t,n){var i=xt();return et===null?vc(i,t,n):im(i,et.memoizedState,t,n)},useTransition:function(){var t=mc(ar)[0],n=xt().memoizedState;return[typeof t=="boolean"?t:ra(t),n]},useSyncExternalStore:Op,useId:um,useHostTransitionStatus:Sc,useFormState:Zp,useActionState:Zp,useOptimistic:function(t,n){var i=xt();return et!==null?Up(i,et,t,n):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:hc,useCacheRefresh:cm};mm.useEffectEvent=Jp;function Cc(t,n,i,o){n=t.memoizedState,i=i(o,n),i=i==null?n:g({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Tc={enqueueSetState:function(t,n,i){t=t._reactInternals;var o=gn(),d=_r(o);d.payload=n,i!=null&&(d.callback=i),n=jr(t,d,o),n!==null&&(nn(n,t,o),Wi(n,t,o))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var o=gn(),d=_r(o);d.tag=1,d.payload=n,i!=null&&(d.callback=i),n=jr(t,d,o),n!==null&&(nn(n,t,o),Wi(n,t,o))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=gn(),o=_r(i);o.tag=2,n!=null&&(o.callback=n),n=jr(t,o,i),n!==null&&(nn(n,t,i),Wi(n,t,i))}};function gm(t,n,i,o,d,m,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,m,S):n.prototype&&n.prototype.isPureReactComponent?!$i(i,o)||!$i(d,m):!0}function bm(t,n,i,o){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==t&&Tc.enqueueReplaceState(n,n.state,null)}function vl(t,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(t=t.defaultProps){i===n&&(i=g({},i));for(var d in t)i[d]===void 0&&(i[d]=t[d])}return i}function ym(t){fo(t)}function xm(t){console.error(t)}function vm(t){fo(t)}function Mo(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function wm(t,n,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Ac(t,n,i){return i=_r(i),i.tag=3,i.payload={element:null},i.callback=function(){Mo(t,n)},i}function Sm(t){return t=_r(t),t.tag=3,t}function km(t,n,i,o){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var m=o.value;t.payload=function(){return d(m)},t.callback=function(){wm(n,i,o)}}var S=i.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){wm(n,i,o),typeof d!="function"&&(Br===null?Br=new Set([this]):Br.add(this));var j=o.stack;this.componentDidCatch(o.value,{componentStack:j!==null?j:""})})}function Qv(t,n,i,o,d){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&Jl(n,i,d,!0),i=dn.current,i!==null){switch(i.tag){case 31:case 13:return Rn===null?Yo():i.alternate===null&&bt===0&&(bt=3),i.flags&=-257,i.flags|=65536,i.lanes=d,o===So?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),Jc(t,o,d)),!1;case 22:return i.flags|=65536,o===So?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)),Jc(t,o,d)),!1}throw Error(a(435,i.tag))}return Jc(t,o,d),Yo(),!1}if(Pe)return n=dn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,o!==Gu&&(t=Error(a(422),{cause:o}),Xi(Cn(t,i)))):(o!==Gu&&(n=Error(a(423),{cause:o}),Xi(Cn(n,i))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,o=Cn(o,i),d=Ac(t.stateNode,o,d),rc(t,d),bt!==4&&(bt=2)),!1;var m=Error(a(520),{cause:o});if(m=Cn(m,i),ha===null?ha=[m]:ha.push(m),bt!==4&&(bt=2),n===null)return!0;o=Cn(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=d&-d,i.lanes|=t,t=Ac(i.stateNode,o,t),rc(i,t),!1;case 1:if(n=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Br===null||!Br.has(m))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Sm(d),km(d,t,i,o),rc(i,d),!1}i=i.return}while(i!==null);return!1}var Nc=Error(a(461)),St=!1;function Mt(t,n,i,o){n.child=t===null?Ap(n,null,i,o):yl(n,t.child,i,o)}function Em(t,n,i,o,d){i=i.render;var m=n.ref;if("ref"in o){var S={};for(var j in o)j!=="ref"&&(S[j]=o[j])}else S=o;return pl(n),o=uc(t,n,i,S,m,d),j=cc(),t!==null&&!St?(fc(t,n,d),or(t,n,d)):(Pe&&j&&Vu(n),n.flags|=1,Mt(t,n,o,d),n.child)}function Cm(t,n,i,o,d){if(t===null){var m=i.type;return typeof m=="function"&&!Hu(m)&&m.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=m,Tm(t,n,m,o,d)):(t=go(i.type,null,o,n,n.mode,d),t.ref=n.ref,t.return=n,n.child=t)}if(m=t.child,!zc(t,d)){var S=m.memoizedProps;if(i=i.compare,i=i!==null?i:$i,i(S,o)&&t.ref===n.ref)return or(t,n,d)}return n.flags|=1,t=tr(m,o),t.ref=n.ref,t.return=n,n.child=t}function Tm(t,n,i,o,d){if(t!==null){var m=t.memoizedProps;if($i(m,o)&&t.ref===n.ref)if(St=!1,n.pendingProps=o=m,zc(t,d))(t.flags&131072)!==0&&(St=!0);else return n.lanes=t.lanes,or(t,n,d)}return Rc(t,n,i,o,d)}function Am(t,n,i,o){var d=o.children,m=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(o=n.child=t.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~m}else o=0,n.child=null;return Nm(t,n,m,i,o)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&vo(n,m!==null?m.cachePool:null),m!==null?_p(n,m):ic(),jp(n);else return o=n.lanes=536870912,Nm(t,n,m!==null?m.baseLanes|i:i,i,o)}else m!==null?(vo(n,m.cachePool),_p(n,m),Dr(),n.memoizedState=null):(t!==null&&vo(n,null),ic(),Dr());return Mt(t,n,d,i),n.child}function aa(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Nm(t,n,i,o,d){var m=Wu();return m=m===null?null:{parent:vt._currentValue,pool:m},n.memoizedState={baseLanes:i,cachePool:m},t!==null&&vo(n,null),ic(),jp(n),t!==null&&Jl(t,n,o,!0),n.childLanes=d,null}function zo(t,n){return n=Fo({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function Rm(t,n,i){return yl(n,t.child,null,i),t=zo(n,n.pendingProps),t.flags|=2,hn(n),n.memoizedState=null,t}function Jv(t,n,i){var o=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Pe){if(o.mode==="hidden")return t=zo(n,o),n.lanes=536870912,aa(null,t);if(oc(n),(t=ct)?(t=Hg(t,Nn),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Cr!==null?{id:Un,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},i=dp(t),i.return=n,n.child=i,Dt=n,ct=null)):t=null,t===null)throw Ar(n);return n.lanes=536870912,null}return zo(n,o)}var m=t.memoizedState;if(m!==null){var S=m.dehydrated;if(oc(n),d)if(n.flags&256)n.flags&=-257,n=Rm(t,n,i);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(a(558));else if(St||Jl(t,n,i,!1),d=(i&t.childLanes)!==0,St||d){if(o=lt,o!==null&&(S=Ja(o,i),S!==0&&S!==m.retryLane))throw m.retryLane=S,cl(t,S),nn(o,t,S),Nc;Yo(),n=Rm(t,n,i)}else t=m.treeContext,ct=_n(S.nextSibling),Dt=n,Pe=!0,Tr=null,Nn=!1,t!==null&&mp(n,t),n=zo(n,o),n.flags|=4096;return n}return t=tr(t.child,{mode:o.mode,children:o.children}),t.ref=n.ref,n.child=t,t.return=n,t}function Bo(t,n){var i=n.ref;if(i===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(t===null||t.ref!==i)&&(n.flags|=4194816)}}function Rc(t,n,i,o,d){return pl(n),i=uc(t,n,i,o,void 0,d),o=cc(),t!==null&&!St?(fc(t,n,d),or(t,n,d)):(Pe&&o&&Vu(n),n.flags|=1,Mt(t,n,i,d),n.child)}function _m(t,n,i,o,d,m){return pl(n),n.updateQueue=null,i=Dp(n,o,i,d),Lp(t),o=cc(),t!==null&&!St?(fc(t,n,m),or(t,n,m)):(Pe&&o&&Vu(n),n.flags|=1,Mt(t,n,i,m),n.child)}function jm(t,n,i,o,d){if(pl(n),n.stateNode===null){var m=Xl,S=i.contextType;typeof S=="object"&&S!==null&&(m=Ot(S)),m=new i(o,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Tc,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=o,m.state=n.memoizedState,m.refs={},tc(n),S=i.contextType,m.context=typeof S=="object"&&S!==null?Ot(S):Xl,m.state=n.memoizedState,S=i.getDerivedStateFromProps,typeof S=="function"&&(Cc(n,i,S,o),m.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(S=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),S!==m.state&&Tc.enqueueReplaceState(m,m.state,null),ta(n,o,m,d),ea(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(t===null){m=n.stateNode;var j=n.memoizedProps,P=vl(i,j);m.props=P;var ee=m.context,ie=i.contextType;S=Xl,typeof ie=="object"&&ie!==null&&(S=Ot(ie));var ue=i.getDerivedStateFromProps;ie=typeof ue=="function"||typeof m.getSnapshotBeforeUpdate=="function",j=n.pendingProps!==j,ie||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(j||ee!==S)&&bm(n,m,o,S),Rr=!1;var te=n.memoizedState;m.state=te,ta(n,o,m,d),ea(),ee=n.memoizedState,j||te!==ee||Rr?(typeof ue=="function"&&(Cc(n,i,ue,o),ee=n.memoizedState),(P=Rr||gm(n,i,P,o,te,ee,S))?(ie||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=ee),m.props=o,m.state=ee,m.context=S,o=P):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{m=n.stateNode,nc(t,n),S=n.memoizedProps,ie=vl(i,S),m.props=ie,ue=n.pendingProps,te=m.context,ee=i.contextType,P=Xl,typeof ee=="object"&&ee!==null&&(P=Ot(ee)),j=i.getDerivedStateFromProps,(ee=typeof j=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S!==ue||te!==P)&&bm(n,m,o,P),Rr=!1,te=n.memoizedState,m.state=te,ta(n,o,m,d),ea();var re=n.memoizedState;S!==ue||te!==re||Rr||t!==null&&t.dependencies!==null&&yo(t.dependencies)?(typeof j=="function"&&(Cc(n,i,j,o),re=n.memoizedState),(ie=Rr||gm(n,i,ie,o,te,re,P)||t!==null&&t.dependencies!==null&&yo(t.dependencies))?(ee||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,re,P),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,re,P)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||S===t.memoizedProps&&te===t.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&te===t.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=re),m.props=o,m.state=re,m.context=P,o=ie):(typeof m.componentDidUpdate!="function"||S===t.memoizedProps&&te===t.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&te===t.memoizedState||(n.flags|=1024),o=!1)}return m=o,Bo(t,n),o=(n.flags&128)!==0,m||o?(m=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,t!==null&&o?(n.child=yl(n,t.child,null,d),n.child=yl(n,null,i,d)):Mt(t,n,i,d),n.memoizedState=m.state,t=n.child):t=or(t,n,d),t}function Lm(t,n,i,o){return dl(),n.flags|=256,Mt(t,n,i,o),n.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jc(t){return{baseLanes:t,cachePool:wp()}}function Lc(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=mn),t}function Dm(t,n,i){var o=n.pendingProps,d=!1,m=(n.flags&128)!==0,S;if((S=m)||(S=t!==null&&t.memoizedState===null?!1:(yt.current&2)!==0),S&&(d=!0,n.flags&=-129),S=(n.flags&32)!==0,n.flags&=-33,t===null){if(Pe){if(d?Lr(n):Dr(),(t=ct)?(t=Hg(t,Nn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Cr!==null?{id:Un,overflow:Hn}:null,retryLane:536870912,hydrationErrors:null},i=dp(t),i.return=n,n.child=i,Dt=n,ct=null)):t=null,t===null)throw Ar(n);return mf(t)?n.lanes=32:n.lanes=536870912,null}var j=o.children;return o=o.fallback,d?(Dr(),d=n.mode,j=Fo({mode:"hidden",children:j},d),o=fl(o,d,i,null),j.return=n,o.return=n,j.sibling=o,n.child=j,o=n.child,o.memoizedState=jc(i),o.childLanes=Lc(t,S,i),n.memoizedState=_c,aa(null,o)):(Lr(n),Dc(n,j))}var P=t.memoizedState;if(P!==null&&(j=P.dehydrated,j!==null)){if(m)n.flags&256?(Lr(n),n.flags&=-257,n=Oc(t,n,i)):n.memoizedState!==null?(Dr(),n.child=t.child,n.flags|=128,n=null):(Dr(),j=o.fallback,d=n.mode,o=Fo({mode:"visible",children:o.children},d),j=fl(j,d,i,null),j.flags|=2,o.return=n,j.return=n,o.sibling=j,n.child=o,yl(n,t.child,null,i),o=n.child,o.memoizedState=jc(i),o.childLanes=Lc(t,S,i),n.memoizedState=_c,n=aa(null,o));else if(Lr(n),mf(j)){if(S=j.nextSibling&&j.nextSibling.dataset,S)var ee=S.dgst;S=ee,o=Error(a(419)),o.stack="",o.digest=S,Xi({value:o,source:null,stack:null}),n=Oc(t,n,i)}else if(St||Jl(t,n,i,!1),S=(i&t.childLanes)!==0,St||S){if(S=lt,S!==null&&(o=Ja(S,i),o!==0&&o!==P.retryLane))throw P.retryLane=o,cl(t,o),nn(S,t,o),Nc;pf(j)||Yo(),n=Oc(t,n,i)}else pf(j)?(n.flags|=192,n.child=t.child,n=null):(t=P.treeContext,ct=_n(j.nextSibling),Dt=n,Pe=!0,Tr=null,Nn=!1,t!==null&&mp(n,t),n=Dc(n,o.children),n.flags|=4096);return n}return d?(Dr(),j=o.fallback,d=n.mode,P=t.child,ee=P.sibling,o=tr(P,{mode:"hidden",children:o.children}),o.subtreeFlags=P.subtreeFlags&65011712,ee!==null?j=tr(ee,j):(j=fl(j,d,i,null),j.flags|=2),j.return=n,o.return=n,o.sibling=j,n.child=o,aa(null,o),o=n.child,j=t.child.memoizedState,j===null?j=jc(i):(d=j.cachePool,d!==null?(P=vt._currentValue,d=d.parent!==P?{parent:P,pool:P}:d):d=wp(),j={baseLanes:j.baseLanes|i,cachePool:d}),o.memoizedState=j,o.childLanes=Lc(t,S,i),n.memoizedState=_c,aa(t.child,o)):(Lr(n),i=t.child,t=i.sibling,i=tr(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,t!==null&&(S=n.deletions,S===null?(n.deletions=[t],n.flags|=16):S.push(t)),n.child=i,n.memoizedState=null,i)}function Dc(t,n){return n=Fo({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Fo(t,n){return t=fn(22,t,null,n),t.lanes=0,t}function Oc(t,n,i){return yl(n,t.child,null,i),t=Dc(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function Om(t,n,i){t.lanes|=n;var o=t.alternate;o!==null&&(o.lanes|=n),Zu(t.return,n,i)}function Mc(t,n,i,o,d,m){var S=t.memoizedState;S===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:d,treeForkCount:m}:(S.isBackwards=n,S.rendering=null,S.renderingStartTime=0,S.last=o,S.tail=i,S.tailMode=d,S.treeForkCount=m)}function Mm(t,n,i){var o=n.pendingProps,d=o.revealOrder,m=o.tail;o=o.children;var S=yt.current,j=(S&2)!==0;if(j?(S=S&1|2,n.flags|=128):S&=1,A(yt,S),Mt(t,n,o,i),o=Pe?Yi:0,!j&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Om(t,i,n);else if(t.tag===19)Om(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(d){case"forwards":for(i=n.child,d=null;i!==null;)t=i.alternate,t!==null&&To(t)===null&&(d=i),i=i.sibling;i=d,i===null?(d=n.child,n.child=null):(d=i.sibling,i.sibling=null),Mc(n,!1,d,i,m,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=n.child,n.child=null;d!==null;){if(t=d.alternate,t!==null&&To(t)===null){n.child=d;break}t=d.sibling,d.sibling=i,i=d,d=t}Mc(n,!0,i,null,m,o);break;case"together":Mc(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function or(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),zr|=n.lanes,(i&n.childLanes)===0)if(t!==null){if(Jl(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(a(153));if(n.child!==null){for(t=n.child,i=tr(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=tr(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function zc(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&yo(t)))}function Wv(t,n,i){switch(n.tag){case 3:ge(n,n.stateNode.containerInfo),Nr(n,vt,t.memoizedState.cache),dl();break;case 27:case 5:ve(n);break;case 4:ge(n,n.stateNode.containerInfo);break;case 10:Nr(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,oc(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?Dm(t,n,i):(Lr(n),t=or(t,n,i),t!==null?t.sibling:null);Lr(n);break;case 19:var d=(t.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(Jl(t,n,i,!1),o=(i&n.childLanes)!==0),d){if(o)return Mm(t,n,i);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),A(yt,yt.current),o)break;return null;case 22:return n.lanes=0,Am(t,n,i,n.pendingProps);case 24:Nr(n,vt,t.memoizedState.cache)}return or(t,n,i)}function zm(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)St=!0;else{if(!zc(t,i)&&(n.flags&128)===0)return St=!1,Wv(t,n,i);St=(t.flags&131072)!==0}else St=!1,Pe&&(n.flags&1048576)!==0&&pp(n,Yi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(t=gl(n.elementType),n.type=t,typeof t=="function")Hu(t)?(o=vl(t,o),n.tag=1,n=jm(null,n,t,o,i)):(n.tag=0,n=Rc(null,n,t,o,i));else{if(t!=null){var d=t.$$typeof;if(d===B){n.tag=11,n=Em(null,n,t,o,i);break e}else if(d===I){n.tag=14,n=Cm(null,n,t,o,i);break e}}throw n=U(t)||t,Error(a(306,n,""))}}return n;case 0:return Rc(t,n,n.type,n.pendingProps,i);case 1:return o=n.type,d=vl(o,n.pendingProps),jm(t,n,o,d,i);case 3:e:{if(ge(n,n.stateNode.containerInfo),t===null)throw Error(a(387));o=n.pendingProps;var m=n.memoizedState;d=m.element,nc(t,n),ta(n,o,null,i);var S=n.memoizedState;if(o=S.cache,Nr(n,vt,o),o!==m.cache&&Ku(n,[vt],i,!0),ea(),o=S.element,m.isDehydrated)if(m={element:o,isDehydrated:!1,cache:S.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=Lm(t,n,o,i);break e}else if(o!==d){d=Cn(Error(a(424)),n),Xi(d),n=Lm(t,n,o,i);break e}else for(t=n.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,ct=_n(t.firstChild),Dt=n,Pe=!0,Tr=null,Nn=!0,i=Ap(n,null,o,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(dl(),o===d){n=or(t,n,i);break e}Mt(t,n,o,i)}n=n.child}return n;case 26:return Bo(t,n),t===null?(i=Yg(n.type,null,n.pendingProps,null))?n.memoizedState=i:Pe||(i=n.type,t=n.pendingProps,o=es(de.current).createElement(i),o[ne]=n,o[be]=t,zt(o,i,t),Nt(o),n.stateNode=o):n.memoizedState=Yg(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return ve(n),t===null&&Pe&&(o=n.stateNode=Vg(n.type,n.pendingProps,de.current),Dt=n,Nn=!0,d=ct,Hr(n.type)?(gf=d,ct=_n(o.firstChild)):ct=d),Mt(t,n,n.pendingProps.children,i),Bo(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Pe&&((d=o=ct)&&(o=Rw(o,n.type,n.pendingProps,Nn),o!==null?(n.stateNode=o,Dt=n,ct=_n(o.firstChild),Nn=!1,d=!0):d=!1),d||Ar(n)),ve(n),d=n.type,m=n.pendingProps,S=t!==null?t.memoizedProps:null,o=m.children,ff(d,m)?o=null:S!==null&&ff(d,S)&&(n.flags|=32),n.memoizedState!==null&&(d=uc(t,n,Vv,null,null,i),wa._currentValue=d),Bo(t,n),Mt(t,n,o,i),n.child;case 6:return t===null&&Pe&&((t=i=ct)&&(i=_w(i,n.pendingProps,Nn),i!==null?(n.stateNode=i,Dt=n,ct=null,t=!0):t=!1),t||Ar(n)),null;case 13:return Dm(t,n,i);case 4:return ge(n,n.stateNode.containerInfo),o=n.pendingProps,t===null?n.child=yl(n,null,o,i):Mt(t,n,o,i),n.child;case 11:return Em(t,n,n.type,n.pendingProps,i);case 7:return Mt(t,n,n.pendingProps,i),n.child;case 8:return Mt(t,n,n.pendingProps.children,i),n.child;case 12:return Mt(t,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,Nr(n,n.type,o.value),Mt(t,n,o.children,i),n.child;case 9:return d=n.type._context,o=n.pendingProps.children,pl(n),d=Ot(d),o=o(d),n.flags|=1,Mt(t,n,o,i),n.child;case 14:return Cm(t,n,n.type,n.pendingProps,i);case 15:return Tm(t,n,n.type,n.pendingProps,i);case 19:return Mm(t,n,i);case 31:return Jv(t,n,i);case 22:return Am(t,n,i,n.pendingProps);case 24:return pl(n),o=Ot(vt),t===null?(d=Wu(),d===null&&(d=lt,m=Qu(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=i),d=m),n.memoizedState={parent:o,cache:d},tc(n),Nr(n,vt,d)):((t.lanes&i)!==0&&(nc(t,n),ta(n,null,null,i),ea()),d=t.memoizedState,m=n.memoizedState,d.parent!==o?(d={parent:o,cache:o},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),Nr(n,vt,o)):(o=m.cache,Nr(n,vt,o),o!==d.cache&&Ku(n,[vt],i,!0))),Mt(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function sr(t){t.flags|=4}function Bc(t,n,i,o,d){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(ug())t.flags|=8192;else throw bl=So,ec}else t.flags&=-16777217}function Bm(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Jg(n))if(ug())t.flags|=8192;else throw bl=So,ec}function Io(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Sr():536870912,t.lanes|=n,ci|=n)}function oa(t,n){if(!Pe)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function ft(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(n)for(var d=t.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=o,t.childLanes=i,n}function ew(t,n,i){var o=n.pendingProps;switch($u(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(n),null;case 1:return ft(n),null;case 3:return i=n.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),lr(vt),he(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Ql(n)?sr(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Yu())),ft(n),null;case 26:var d=n.type,m=n.memoizedState;return t===null?(sr(n),m!==null?(ft(n),Bm(n,m)):(ft(n),Bc(n,d,null,o,i))):m?m!==t.memoizedState?(sr(n),ft(n),Bm(n,m)):(ft(n),n.flags&=-16777217):(t=t.memoizedProps,t!==o&&sr(n),ft(n),Bc(n,d,t,o,i)),null;case 27:if(xe(n),i=de.current,d=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==o&&sr(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return ft(n),null}t=le.current,Ql(n)?gp(n):(t=Vg(d,o,i),n.stateNode=t,sr(n))}return ft(n),null;case 5:if(xe(n),d=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==o&&sr(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return ft(n),null}if(m=le.current,Ql(n))gp(n);else{var S=es(de.current);switch(m){case 1:m=S.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=S.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=S.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=S.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof o.is=="string"?S.createElement("select",{is:o.is}):S.createElement("select"),o.multiple?m.multiple=!0:o.size&&(m.size=o.size);break;default:m=typeof o.is=="string"?S.createElement(d,{is:o.is}):S.createElement(d)}}m[ne]=n,m[be]=o;e:for(S=n.child;S!==null;){if(S.tag===5||S.tag===6)m.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=m;e:switch(zt(m,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&sr(n)}}return ft(n),Bc(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,i),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==o&&sr(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(a(166));if(t=de.current,Ql(n)){if(t=n.stateNode,i=n.memoizedProps,o=null,d=Dt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}t[ne]=n,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||Dg(t.nodeValue,i)),t||Ar(n,!0)}else t=es(t).createTextNode(o),t[ne]=n,n.stateNode=t}return ft(n),null;case 31:if(i=n.memoizedState,t===null||t.memoizedState!==null){if(o=Ql(n),i!==null){if(t===null){if(!o)throw Error(a(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(557));t[ne]=n}else dl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ft(n),t=!1}else i=Yu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return n.flags&256?(hn(n),n):(hn(n),null);if((n.flags&128)!==0)throw Error(a(558))}return ft(n),null;case 13:if(o=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=Ql(n),o!==null&&o.dehydrated!==null){if(t===null){if(!d)throw Error(a(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[ne]=n}else dl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ft(n),d=!1}else d=Yu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(hn(n),n):(hn(n),null)}return hn(n),(n.flags&128)!==0?(n.lanes=i,n):(i=o!==null,t=t!==null&&t.memoizedState!==null,i&&(o=n.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==d&&(o.flags|=2048)),i!==t&&i&&(n.child.flags|=8192),Io(n,n.updateQueue),ft(n),null);case 4:return he(),t===null&&af(n.stateNode.containerInfo),ft(n),null;case 10:return lr(n.type),ft(n),null;case 19:if(H(yt),o=n.memoizedState,o===null)return ft(n),null;if(d=(n.flags&128)!==0,m=o.rendering,m===null)if(d)oa(o,!1);else{if(bt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(m=To(t),m!==null){for(n.flags|=128,oa(o,!1),t=m.updateQueue,n.updateQueue=t,Io(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)fp(i,t),i=i.sibling;return A(yt,yt.current&1|2),Pe&&nr(n,o.treeForkCount),n.child}t=t.sibling}o.tail!==null&&at()>Vo&&(n.flags|=128,d=!0,oa(o,!1),n.lanes=4194304)}else{if(!d)if(t=To(m),t!==null){if(n.flags|=128,d=!0,t=t.updateQueue,n.updateQueue=t,Io(n,t),oa(o,!0),o.tail===null&&o.tailMode==="hidden"&&!m.alternate&&!Pe)return ft(n),null}else 2*at()-o.renderingStartTime>Vo&&i!==536870912&&(n.flags|=128,d=!0,oa(o,!1),n.lanes=4194304);o.isBackwards?(m.sibling=n.child,n.child=m):(t=o.last,t!==null?t.sibling=m:n.child=m,o.last=m)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=at(),t.sibling=null,i=yt.current,A(yt,d?i&1|2:i&1),Pe&&nr(n,o.treeForkCount),t):(ft(n),null);case 22:case 23:return hn(n),ac(),o=n.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(i&536870912)!==0&&(n.flags&128)===0&&(ft(n),n.subtreeFlags&6&&(n.flags|=8192)):ft(n),i=n.updateQueue,i!==null&&Io(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),t!==null&&H(ml),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),lr(vt),ft(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function tw(t,n){switch($u(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return lr(vt),he(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return xe(n),null;case 31:if(n.memoizedState!==null){if(hn(n),n.alternate===null)throw Error(a(340));dl()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(hn(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(a(340));dl()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return H(yt),null;case 4:return he(),null;case 10:return lr(n.type),null;case 22:case 23:return hn(n),ac(),t!==null&&H(ml),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return lr(vt),null;case 25:return null;default:return null}}function Fm(t,n){switch($u(n),n.tag){case 3:lr(vt),he();break;case 26:case 27:case 5:xe(n);break;case 4:he();break;case 31:n.memoizedState!==null&&hn(n);break;case 13:hn(n);break;case 19:H(yt);break;case 10:lr(n.type);break;case 22:case 23:hn(n),ac(),t!==null&&H(ml);break;case 24:lr(vt)}}function sa(t,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var d=o.next;i=d;do{if((i.tag&t)===t){o=void 0;var m=i.create,S=i.inst;o=m(),S.destroy=o}i=i.next}while(i!==d)}}catch(j){We(n,n.return,j)}}function Or(t,n,i){try{var o=n.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var m=d.next;o=m;do{if((o.tag&t)===t){var S=o.inst,j=S.destroy;if(j!==void 0){S.destroy=void 0,d=n;var P=i,ee=j;try{ee()}catch(ie){We(d,P,ie)}}}o=o.next}while(o!==m)}}catch(ie){We(n,n.return,ie)}}function Im(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{Rp(n,i)}catch(o){We(t,t.return,o)}}}function Um(t,n,i){i.props=vl(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){We(t,n,o)}}function ua(t,n){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof i=="function"?t.refCleanup=i(o):i.current=o}}catch(d){We(t,n,d)}}function qn(t,n){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(d){We(t,n,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){We(t,n,d)}else i.current=null}function Hm(t){var n=t.type,i=t.memoizedProps,o=t.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(d){We(t,t.return,d)}}function Fc(t,n,i){try{var o=t.stateNode;kw(o,t.type,i,n),o[be]=n}catch(d){We(t,t.return,d)}}function qm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Hr(t.type)||t.tag===4}function Ic(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||qm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Hr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Uc(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(t),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Wn));else if(o!==4&&(o===27&&Hr(t.type)&&(i=t.stateNode,n=null),t=t.child,t!==null))for(Uc(t,n,i),t=t.sibling;t!==null;)Uc(t,n,i),t=t.sibling}function Uo(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(o!==4&&(o===27&&Hr(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Uo(t,n,i),t=t.sibling;t!==null;)Uo(t,n,i),t=t.sibling}function Pm(t){var n=t.stateNode,i=t.memoizedProps;try{for(var o=t.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);zt(n,o,i),n[ne]=t,n[be]=i}catch(m){We(t,t.return,m)}}var ur=!1,kt=!1,Hc=!1,Vm=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function nw(t,n){if(t=t.containerInfo,uf=os,t=np(t),Ou(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var d=o.anchorOffset,m=o.focusNode;o=o.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var S=0,j=-1,P=-1,ee=0,ie=0,ue=t,te=null;t:for(;;){for(var re;ue!==i||d!==0&&ue.nodeType!==3||(j=S+d),ue!==m||o!==0&&ue.nodeType!==3||(P=S+o),ue.nodeType===3&&(S+=ue.nodeValue.length),(re=ue.firstChild)!==null;)te=ue,ue=re;for(;;){if(ue===t)break t;if(te===i&&++ee===d&&(j=S),te===m&&++ie===o&&(P=S),(re=ue.nextSibling)!==null)break;ue=te,te=ue.parentNode}ue=re}i=j===-1||P===-1?null:{start:j,end:P}}else i=null}i=i||{start:0,end:0}}else i=null;for(cf={focusedElem:t,selectionRange:i},os=!1,Rt=n;Rt!==null;)if(n=Rt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Rt=t;else for(;Rt!==null;){switch(n=Rt,m=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)d=t[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=n,d=m.memoizedProps,m=m.memoizedState,o=i.stateNode;try{var we=vl(i.type,d);t=o.getSnapshotBeforeUpdate(we,m),o.__reactInternalSnapshotBeforeUpdate=t}catch(_e){We(i,i.return,_e)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,i=t.nodeType,i===9)hf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":hf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(a(163))}if(t=n.sibling,t!==null){t.return=n.return,Rt=t;break}Rt=n.return}}function $m(t,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:fr(t,i),o&4&&sa(5,i);break;case 1:if(fr(t,i),o&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(S){We(i,i.return,S)}else{var d=vl(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(d,n,t.__reactInternalSnapshotBeforeUpdate)}catch(S){We(i,i.return,S)}}o&64&&Im(i),o&512&&ua(i,i.return);break;case 3:if(fr(t,i),o&64&&(t=i.updateQueue,t!==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{Rp(t,n)}catch(S){We(i,i.return,S)}}break;case 27:n===null&&o&4&&Pm(i);case 26:case 5:fr(t,i),n===null&&o&4&&Hm(i),o&512&&ua(i,i.return);break;case 12:fr(t,i);break;case 31:fr(t,i),o&4&&Xm(t,i);break;case 13:fr(t,i),o&4&&Zm(t,i),o&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=fw.bind(null,i),jw(t,i))));break;case 22:if(o=i.memoizedState!==null||ur,!o){n=n!==null&&n.memoizedState!==null||kt,d=ur;var m=kt;ur=o,(kt=n)&&!m?dr(t,i,(i.subtreeFlags&8772)!==0):fr(t,i),ur=d,kt=m}break;case 30:break;default:fr(t,i)}}function Gm(t){var n=t.alternate;n!==null&&(t.alternate=null,Gm(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&bu(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var dt=null,Jt=!1;function cr(t,n,i){for(i=i.child;i!==null;)Ym(t,n,i),i=i.sibling}function Ym(t,n,i){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Lt,i)}catch{}switch(i.tag){case 26:kt||qn(i,n),cr(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:kt||qn(i,n);var o=dt,d=Jt;Hr(i.type)&&(dt=i.stateNode,Jt=!1),cr(t,n,i),ya(i.stateNode),dt=o,Jt=d;break;case 5:kt||qn(i,n);case 6:if(o=dt,d=Jt,dt=null,cr(t,n,i),dt=o,Jt=d,dt!==null)if(Jt)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(i.stateNode)}catch(m){We(i,n,m)}else try{dt.removeChild(i.stateNode)}catch(m){We(i,n,m)}break;case 18:dt!==null&&(Jt?(t=dt,Ig(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),yi(t)):Ig(dt,i.stateNode));break;case 4:o=dt,d=Jt,dt=i.stateNode.containerInfo,Jt=!0,cr(t,n,i),dt=o,Jt=d;break;case 0:case 11:case 14:case 15:Or(2,i,n),kt||Or(4,i,n),cr(t,n,i);break;case 1:kt||(qn(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Um(i,n,o)),cr(t,n,i);break;case 21:cr(t,n,i);break;case 22:kt=(o=kt)||i.memoizedState!==null,cr(t,n,i),kt=o;break;default:cr(t,n,i)}}function Xm(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{yi(t)}catch(i){We(n,n.return,i)}}}function Zm(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{yi(t)}catch(i){We(n,n.return,i)}}function rw(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Vm),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Vm),n;default:throw Error(a(435,t.tag))}}function Ho(t,n){var i=rw(t);n.forEach(function(o){if(!i.has(o)){i.add(o);var d=dw.bind(null,t,o);o.then(d,d)}})}function Wt(t,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var d=i[o],m=t,S=n,j=S;e:for(;j!==null;){switch(j.tag){case 27:if(Hr(j.type)){dt=j.stateNode,Jt=!1;break e}break;case 5:dt=j.stateNode,Jt=!1;break e;case 3:case 4:dt=j.stateNode.containerInfo,Jt=!0;break e}j=j.return}if(dt===null)throw Error(a(160));Ym(m,S,d),dt=null,Jt=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Km(n,t),n=n.sibling}var zn=null;function Km(t,n){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Wt(n,t),en(t),o&4&&(Or(3,t,t.return),sa(3,t),Or(5,t,t.return));break;case 1:Wt(n,t),en(t),o&512&&(kt||i===null||qn(i,i.return)),o&64&&ur&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var d=zn;if(Wt(n,t),en(t),o&512&&(kt||i===null||qn(i,i.return)),o&4){var m=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":m=d.getElementsByTagName("title")[0],(!m||m[zi]||m[ne]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(o),d.head.insertBefore(m,d.querySelector("head > title"))),zt(m,o,i),m[ne]=t,Nt(m),o=m;break e;case"link":var S=Kg("link","href",d).get(o+(i.href||""));if(S){for(var j=0;j<S.length;j++)if(m=S[j],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){S.splice(j,1);break t}}m=d.createElement(o),zt(m,o,i),d.head.appendChild(m);break;case"meta":if(S=Kg("meta","content",d).get(o+(i.content||""))){for(j=0;j<S.length;j++)if(m=S[j],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){S.splice(j,1);break t}}m=d.createElement(o),zt(m,o,i),d.head.appendChild(m);break;default:throw Error(a(468,o))}m[ne]=t,Nt(m),o=m}t.stateNode=o}else Qg(d,t.type,t.stateNode);else t.stateNode=Zg(d,o,t.memoizedProps);else m!==o?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,o===null?Qg(d,t.type,t.stateNode):Zg(d,o,t.memoizedProps)):o===null&&t.stateNode!==null&&Fc(t,t.memoizedProps,i.memoizedProps)}break;case 27:Wt(n,t),en(t),o&512&&(kt||i===null||qn(i,i.return)),i!==null&&o&4&&Fc(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Wt(n,t),en(t),o&512&&(kt||i===null||qn(i,i.return)),t.flags&32){d=t.stateNode;try{Hl(d,"")}catch(we){We(t,t.return,we)}}o&4&&t.stateNode!=null&&(d=t.memoizedProps,Fc(t,d,i!==null?i.memoizedProps:d)),o&1024&&(Hc=!0);break;case 6:if(Wt(n,t),en(t),o&4){if(t.stateNode===null)throw Error(a(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(we){We(t,t.return,we)}}break;case 3:if(rs=null,d=zn,zn=ts(n.containerInfo),Wt(n,t),zn=d,en(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{yi(n.containerInfo)}catch(we){We(t,t.return,we)}Hc&&(Hc=!1,Qm(t));break;case 4:o=zn,zn=ts(t.stateNode.containerInfo),Wt(n,t),en(t),zn=o;break;case 12:Wt(n,t),en(t);break;case 31:Wt(n,t),en(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Ho(t,o)));break;case 13:Wt(n,t),en(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Po=at()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Ho(t,o)));break;case 22:d=t.memoizedState!==null;var P=i!==null&&i.memoizedState!==null,ee=ur,ie=kt;if(ur=ee||d,kt=ie||P,Wt(n,t),kt=ie,ur=ee,en(t),o&8192)e:for(n=t.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(i===null||P||ur||kt||wl(t)),i=null,n=t;;){if(n.tag===5||n.tag===26){if(i===null){P=i=n;try{if(m=P.stateNode,d)S=m.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{j=P.stateNode;var ue=P.memoizedProps.style,te=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;j.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(we){We(P,P.return,we)}}}else if(n.tag===6){if(i===null){P=n;try{P.stateNode.nodeValue=d?"":P.memoizedProps}catch(we){We(P,P.return,we)}}}else if(n.tag===18){if(i===null){P=n;try{var re=P.stateNode;d?Ug(re,!0):Ug(P.stateNode,!1)}catch(we){We(P,P.return,we)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Ho(t,i))));break;case 19:Wt(n,t),en(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Ho(t,o)));break;case 30:break;case 21:break;default:Wt(n,t),en(t)}}function en(t){var n=t.flags;if(n&2){try{for(var i,o=t.return;o!==null;){if(qm(o)){i=o;break}o=o.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var d=i.stateNode,m=Ic(t);Uo(t,m,d);break;case 5:var S=i.stateNode;i.flags&32&&(Hl(S,""),i.flags&=-33);var j=Ic(t);Uo(t,j,S);break;case 3:case 4:var P=i.stateNode.containerInfo,ee=Ic(t);Uc(t,ee,P);break;default:throw Error(a(161))}}catch(ie){We(t,t.return,ie)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function Qm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Qm(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function fr(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)$m(t,n.alternate,n),n=n.sibling}function wl(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Or(4,n,n.return),wl(n);break;case 1:qn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Um(n,n.return,i),wl(n);break;case 27:ya(n.stateNode);case 26:case 5:qn(n,n.return),wl(n);break;case 22:n.memoizedState===null&&wl(n);break;case 30:wl(n);break;default:wl(n)}t=t.sibling}}function dr(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,d=t,m=n,S=m.flags;switch(m.tag){case 0:case 11:case 15:dr(d,m,i),sa(4,m);break;case 1:if(dr(d,m,i),o=m,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(ee){We(o,o.return,ee)}if(o=m,d=o.updateQueue,d!==null){var j=o.stateNode;try{var P=d.shared.hiddenCallbacks;if(P!==null)for(d.shared.hiddenCallbacks=null,d=0;d<P.length;d++)Np(P[d],j)}catch(ee){We(o,o.return,ee)}}i&&S&64&&Im(m),ua(m,m.return);break;case 27:Pm(m);case 26:case 5:dr(d,m,i),i&&o===null&&S&4&&Hm(m),ua(m,m.return);break;case 12:dr(d,m,i);break;case 31:dr(d,m,i),i&&S&4&&Xm(d,m);break;case 13:dr(d,m,i),i&&S&4&&Zm(d,m);break;case 22:m.memoizedState===null&&dr(d,m,i),ua(m,m.return);break;case 30:break;default:dr(d,m,i)}n=n.sibling}}function qc(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Zi(i))}function Pc(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Zi(t))}function Bn(t,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Jm(t,n,i,o),n=n.sibling}function Jm(t,n,i,o){var d=n.flags;switch(n.tag){case 0:case 11:case 15:Bn(t,n,i,o),d&2048&&sa(9,n);break;case 1:Bn(t,n,i,o);break;case 3:Bn(t,n,i,o),d&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Zi(t)));break;case 12:if(d&2048){Bn(t,n,i,o),t=n.stateNode;try{var m=n.memoizedProps,S=m.id,j=m.onPostCommit;typeof j=="function"&&j(S,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(P){We(n,n.return,P)}}else Bn(t,n,i,o);break;case 31:Bn(t,n,i,o);break;case 13:Bn(t,n,i,o);break;case 23:break;case 22:m=n.stateNode,S=n.alternate,n.memoizedState!==null?m._visibility&2?Bn(t,n,i,o):ca(t,n):m._visibility&2?Bn(t,n,i,o):(m._visibility|=2,oi(t,n,i,o,(n.subtreeFlags&10256)!==0||!1)),d&2048&&qc(S,n);break;case 24:Bn(t,n,i,o),d&2048&&Pc(n.alternate,n);break;default:Bn(t,n,i,o)}}function oi(t,n,i,o,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=t,S=n,j=i,P=o,ee=S.flags;switch(S.tag){case 0:case 11:case 15:oi(m,S,j,P,d),sa(8,S);break;case 23:break;case 22:var ie=S.stateNode;S.memoizedState!==null?ie._visibility&2?oi(m,S,j,P,d):ca(m,S):(ie._visibility|=2,oi(m,S,j,P,d)),d&&ee&2048&&qc(S.alternate,S);break;case 24:oi(m,S,j,P,d),d&&ee&2048&&Pc(S.alternate,S);break;default:oi(m,S,j,P,d)}n=n.sibling}}function ca(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,o=n,d=o.flags;switch(o.tag){case 22:ca(i,o),d&2048&&qc(o.alternate,o);break;case 24:ca(i,o),d&2048&&Pc(o.alternate,o);break;default:ca(i,o)}n=n.sibling}}var fa=8192;function si(t,n,i){if(t.subtreeFlags&fa)for(t=t.child;t!==null;)Wm(t,n,i),t=t.sibling}function Wm(t,n,i){switch(t.tag){case 26:si(t,n,i),t.flags&fa&&t.memoizedState!==null&&Pw(i,zn,t.memoizedState,t.memoizedProps);break;case 5:si(t,n,i);break;case 3:case 4:var o=zn;zn=ts(t.stateNode.containerInfo),si(t,n,i),zn=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=fa,fa=16777216,si(t,n,i),fa=o):si(t,n,i));break;default:si(t,n,i)}}function eg(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function da(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Rt=o,ng(o,t)}eg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)tg(t),t=t.sibling}function tg(t){switch(t.tag){case 0:case 11:case 15:da(t),t.flags&2048&&Or(9,t,t.return);break;case 3:da(t);break;case 12:da(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,qo(t)):da(t);break;default:da(t)}}function qo(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Rt=o,ng(o,t)}eg(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Or(8,n,n.return),qo(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,qo(n));break;default:qo(n)}t=t.sibling}}function ng(t,n){for(;Rt!==null;){var i=Rt;switch(i.tag){case 0:case 11:case 15:Or(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:Zi(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Rt=o;else e:for(i=t;Rt!==null;){o=Rt;var d=o.sibling,m=o.return;if(Gm(o),o===i){Rt=null;break e}if(d!==null){d.return=m,Rt=d;break e}Rt=m}}}var lw={getCacheForType:function(t){var n=Ot(vt),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i},cacheSignal:function(){return Ot(vt).controller.signal}},iw=typeof WeakMap=="function"?WeakMap:Map,Ke=0,lt=null,Be=null,He=0,Je=0,pn=null,Mr=!1,ui=!1,Vc=!1,hr=0,bt=0,zr=0,Sl=0,$c=0,mn=0,ci=0,ha=null,tn=null,Gc=!1,Po=0,rg=0,Vo=1/0,$o=null,Br=null,Tt=0,Fr=null,fi=null,pr=0,Yc=0,Xc=null,lg=null,pa=0,Zc=null;function gn(){return(Ke&2)!==0&&He!==0?He&-He:F.T!==null?tf():Wa()}function ig(){if(mn===0)if((He&536870912)===0||Pe){var t=rl;rl<<=1,(rl&3932160)===0&&(rl=262144),mn=t}else mn=536870912;return t=dn.current,t!==null&&(t.flags|=32),mn}function nn(t,n,i){(t===lt&&(Je===2||Je===9)||t.cancelPendingCommit!==null)&&(di(t,0),Ir(t,He,mn,!1)),kr(t,i),((Ke&2)===0||t!==lt)&&(t===lt&&((Ke&2)===0&&(Sl|=i),bt===4&&Ir(t,He,mn,!1)),Pn(t))}function ag(t,n,i){if((Ke&6)!==0)throw Error(a(327));var o=!i&&(n&127)===0&&(n&t.expiredLanes)===0||ll(t,n),d=o?sw(t,n):Qc(t,n,!0),m=o;do{if(d===0){ui&&!o&&Ir(t,n,0,!1);break}else{if(i=t.current.alternate,m&&!aw(i)){d=Qc(t,n,!1),m=!1;continue}if(d===2){if(m=n,t.errorRecoveryDisabledLanes&m)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){n=S;e:{var j=t;d=ha;var P=j.current.memoizedState.isDehydrated;if(P&&(di(j,S).flags|=256),S=Qc(j,S,!1),S!==2){if(Vc&&!P){j.errorRecoveryDisabledLanes|=m,Sl|=m,d=4;break e}m=tn,tn=d,m!==null&&(tn===null?tn=m:tn.push.apply(tn,m))}d=S}if(m=!1,d!==2)continue}}if(d===1){di(t,0),Ir(t,n,0,!0);break}e:{switch(o=t,m=d,m){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:Ir(o,n,mn,!Mr);break e;case 2:tn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(d=Po+300-at(),10<d)){if(Ir(o,n,mn,!Mr),Ll(o,0,!0)!==0)break e;pr=n,o.timeoutHandle=Bg(og.bind(null,o,i,tn,$o,Gc,n,mn,Sl,ci,Mr,m,"Throttled",-0,0),d);break e}og(o,i,tn,$o,Gc,n,mn,Sl,ci,Mr,m,null,-0,0)}}break}while(!0);Pn(t)}function og(t,n,i,o,d,m,S,j,P,ee,ie,ue,te,re){if(t.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:Wn},Wm(n,m,ue);var we=(m&62914560)===m?Po-at():(m&4194048)===m?rg-at():0;if(we=Vw(ue,we),we!==null){pr=m,t.cancelPendingCommit=we(mg.bind(null,t,n,m,i,o,d,S,j,P,ie,ue,null,te,re)),Ir(t,m,S,!ee);return}}mg(t,n,m,i,o,d,S,j,P)}function aw(t){for(var n=t;;){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 d=i[o],m=d.getSnapshot;d=d.value;try{if(!cn(m(),d))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ir(t,n,i,o){n&=~$c,n&=~Sl,t.suspendedLanes|=n,t.pingedLanes&=~n,o&&(t.warmLanes|=n),o=t.expirationTimes;for(var d=n;0<d;){var m=31-Qe(d),S=1<<m;o[m]=-1,d&=~S}i!==0&&Qa(t,i,n)}function Go(){return(Ke&6)===0?(ma(0),!1):!0}function Kc(){if(Be!==null){if(Je===0)var t=Be.return;else t=Be,rr=hl=null,dc(t),ni=null,Qi=0,t=Be;for(;t!==null;)Fm(t.alternate,t),t=t.return;Be=null}}function di(t,n){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,Tw(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),pr=0,Kc(),lt=t,Be=i=tr(t.current,null),He=n,Je=0,pn=null,Mr=!1,ui=ll(t,n),Vc=!1,ci=mn=$c=Sl=zr=bt=0,tn=ha=null,Gc=!1,(n&8)!==0&&(n|=n&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=n;0<o;){var d=31-Qe(o),m=1<<d;n|=t[d],o&=~m}return hr=n,ho(),i}function sg(t,n){Le=null,F.H=ia,n===ti||n===wo?(n=Ep(),Je=3):n===ec?(n=Ep(),Je=4):Je=n===Nc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,pn=n,Be===null&&(bt=1,Mo(t,Cn(n,t.current)))}function ug(){var t=dn.current;return t===null?!0:(He&4194048)===He?Rn===null:(He&62914560)===He||(He&536870912)!==0?t===Rn:!1}function cg(){var t=F.H;return F.H=ia,t===null?ia:t}function fg(){var t=F.A;return F.A=lw,t}function Yo(){bt=4,Mr||(He&4194048)!==He&&dn.current!==null||(ui=!0),(zr&134217727)===0&&(Sl&134217727)===0||lt===null||Ir(lt,He,mn,!1)}function Qc(t,n,i){var o=Ke;Ke|=2;var d=cg(),m=fg();(lt!==t||He!==n)&&($o=null,di(t,n)),n=!1;var S=bt;e:do try{if(Je!==0&&Be!==null){var j=Be,P=pn;switch(Je){case 8:Kc(),S=6;break e;case 3:case 2:case 9:case 6:dn.current===null&&(n=!0);var ee=Je;if(Je=0,pn=null,hi(t,j,P,ee),i&&ui){S=0;break e}break;default:ee=Je,Je=0,pn=null,hi(t,j,P,ee)}}ow(),S=bt;break}catch(ie){sg(t,ie)}while(!0);return n&&t.shellSuspendCounter++,rr=hl=null,Ke=o,F.H=d,F.A=m,Be===null&&(lt=null,He=0,ho()),S}function ow(){for(;Be!==null;)dg(Be)}function sw(t,n){var i=Ke;Ke|=2;var o=cg(),d=fg();lt!==t||He!==n?($o=null,Vo=at()+500,di(t,n)):ui=ll(t,n);e:do try{if(Je!==0&&Be!==null){n=Be;var m=pn;t:switch(Je){case 1:Je=0,pn=null,hi(t,n,m,1);break;case 2:case 9:if(Sp(m)){Je=0,pn=null,hg(n);break}n=function(){Je!==2&&Je!==9||lt!==t||(Je=7),Pn(t)},m.then(n,n);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:Sp(m)?(Je=0,pn=null,hg(n)):(Je=0,pn=null,hi(t,n,m,7));break;case 5:var S=null;switch(Be.tag){case 26:S=Be.memoizedState;case 5:case 27:var j=Be;if(S?Jg(S):j.stateNode.complete){Je=0,pn=null;var P=j.sibling;if(P!==null)Be=P;else{var ee=j.return;ee!==null?(Be=ee,Xo(ee)):Be=null}break t}}Je=0,pn=null,hi(t,n,m,5);break;case 6:Je=0,pn=null,hi(t,n,m,6);break;case 8:Kc(),bt=6;break e;default:throw Error(a(462))}}uw();break}catch(ie){sg(t,ie)}while(!0);return rr=hl=null,F.H=o,F.A=d,Ke=i,Be!==null?0:(lt=null,He=0,ho(),bt)}function uw(){for(;Be!==null&&!Vt();)dg(Be)}function dg(t){var n=zm(t.alternate,t,hr);t.memoizedProps=t.pendingProps,n===null?Xo(t):Be=n}function hg(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=_m(i,n,n.pendingProps,n.type,void 0,He);break;case 11:n=_m(i,n,n.pendingProps,n.type.render,n.ref,He);break;case 5:dc(n);default:Fm(i,n),n=Be=fp(n,hr),n=zm(i,n,hr)}t.memoizedProps=t.pendingProps,n===null?Xo(t):Be=n}function hi(t,n,i,o){rr=hl=null,dc(n),ni=null,Qi=0;var d=n.return;try{if(Qv(t,d,n,i,He)){bt=1,Mo(t,Cn(i,t.current)),Be=null;return}}catch(m){if(d!==null)throw Be=d,m;bt=1,Mo(t,Cn(i,t.current)),Be=null;return}n.flags&32768?(Pe||o===1?t=!0:ui||(He&536870912)!==0?t=!1:(Mr=t=!0,(o===2||o===9||o===3||o===6)&&(o=dn.current,o!==null&&o.tag===13&&(o.flags|=16384))),pg(n,t)):Xo(n)}function Xo(t){var n=t;do{if((n.flags&32768)!==0){pg(n,Mr);return}t=n.return;var i=ew(n.alternate,n,hr);if(i!==null){Be=i;return}if(n=n.sibling,n!==null){Be=n;return}Be=n=t}while(n!==null);bt===0&&(bt=5)}function pg(t,n){do{var i=tw(t.alternate,t);if(i!==null){i.flags&=32767,Be=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){Be=t;return}Be=t=i}while(t!==null);bt=6,Be=null}function mg(t,n,i,o,d,m,S,j,P){t.cancelPendingCommit=null;do Zo();while(Tt!==0);if((Ke&6)!==0)throw Error(a(327));if(n!==null){if(n===t.current)throw Error(a(177));if(m=n.lanes|n.childLanes,m|=Iu,gu(t,i,m,S,j,P),t===lt&&(Be=lt=null,He=0),fi=n,Fr=t,pr=i,Yc=m,Xc=d,lg=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,hw(Ne,function(){return vg(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=F.T,F.T=null,d=O.p,O.p=2,S=Ke,Ke|=4;try{nw(t,n,i)}finally{Ke=S,O.p=d,F.T=o}}Tt=1,gg(),bg(),yg()}}function gg(){if(Tt===1){Tt=0;var t=Fr,n=fi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=F.T,F.T=null;var o=O.p;O.p=2;var d=Ke;Ke|=4;try{Km(n,t);var m=cf,S=np(t.containerInfo),j=m.focusedElem,P=m.selectionRange;if(S!==j&&j&&j.ownerDocument&&tp(j.ownerDocument.documentElement,j)){if(P!==null&&Ou(j)){var ee=P.start,ie=P.end;if(ie===void 0&&(ie=ee),"selectionStart"in j)j.selectionStart=ee,j.selectionEnd=Math.min(ie,j.value.length);else{var ue=j.ownerDocument||document,te=ue&&ue.defaultView||window;if(te.getSelection){var re=te.getSelection(),we=j.textContent.length,_e=Math.min(P.start,we),nt=P.end===void 0?_e:Math.min(P.end,we);!re.extend&&_e>nt&&(S=nt,nt=_e,_e=S);var Q=ep(j,_e),Z=ep(j,nt);if(Q&&Z&&(re.rangeCount!==1||re.anchorNode!==Q.node||re.anchorOffset!==Q.offset||re.focusNode!==Z.node||re.focusOffset!==Z.offset)){var W=ue.createRange();W.setStart(Q.node,Q.offset),re.removeAllRanges(),_e>nt?(re.addRange(W),re.extend(Z.node,Z.offset)):(W.setEnd(Z.node,Z.offset),re.addRange(W))}}}}for(ue=[],re=j;re=re.parentNode;)re.nodeType===1&&ue.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<ue.length;j++){var oe=ue[j];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}os=!!uf,cf=uf=null}finally{Ke=d,O.p=o,F.T=i}}t.current=n,Tt=2}}function bg(){if(Tt===2){Tt=0;var t=Fr,n=fi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=F.T,F.T=null;var o=O.p;O.p=2;var d=Ke;Ke|=4;try{$m(t,n.alternate,n)}finally{Ke=d,O.p=o,F.T=i}}Tt=3}}function yg(){if(Tt===4||Tt===3){Tt=0,$t();var t=Fr,n=fi,i=pr,o=lg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Tt=5:(Tt=0,fi=Fr=null,xg(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(Br=null),Mi(i),n=n.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Lt,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=F.T,d=O.p,O.p=2,F.T=null;try{for(var m=t.onRecoverableError,S=0;S<o.length;S++){var j=o[S];m(j.value,{componentStack:j.stack})}}finally{F.T=n,O.p=d}}(pr&3)!==0&&Zo(),Pn(t),d=t.pendingLanes,(i&261930)!==0&&(d&42)!==0?t===Zc?pa++:(pa=0,Zc=t):pa=0,ma(0)}}function xg(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Zi(n)))}function Zo(){return gg(),bg(),yg(),vg()}function vg(){if(Tt!==5)return!1;var t=Fr,n=Yc;Yc=0;var i=Mi(pr),o=F.T,d=O.p;try{O.p=32>i?32:i,F.T=null,i=Xc,Xc=null;var m=Fr,S=pr;if(Tt=0,fi=Fr=null,pr=0,(Ke&6)!==0)throw Error(a(331));var j=Ke;if(Ke|=4,tg(m.current),Jm(m,m.current,S,i),Ke=j,ma(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Lt,m)}catch{}return!0}finally{O.p=d,F.T=o,xg(t,n)}}function wg(t,n,i){n=Cn(i,n),n=Ac(t.stateNode,n,2),t=jr(t,n,2),t!==null&&(kr(t,2),Pn(t))}function We(t,n,i){if(t.tag===3)wg(t,t,i);else for(;n!==null;){if(n.tag===3){wg(n,t,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Br===null||!Br.has(o))){t=Cn(i,t),i=Sm(2),o=jr(n,i,2),o!==null&&(km(i,o,n,t),kr(o,2),Pn(o));break}}n=n.return}}function Jc(t,n,i){var o=t.pingCache;if(o===null){o=t.pingCache=new iw;var d=new Set;o.set(n,d)}else d=o.get(n),d===void 0&&(d=new Set,o.set(n,d));d.has(i)||(Vc=!0,d.add(i),t=cw.bind(null,t,n,i),n.then(t,t))}function cw(t,n,i){var o=t.pingCache;o!==null&&o.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,lt===t&&(He&i)===i&&(bt===4||bt===3&&(He&62914560)===He&&300>at()-Po?(Ke&2)===0&&di(t,0):$c|=i,ci===He&&(ci=0)),Pn(t)}function Sg(t,n){n===0&&(n=Sr()),t=cl(t,n),t!==null&&(kr(t,n),Pn(t))}function fw(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),Sg(t,i)}function dw(t,n){var i=0;switch(t.tag){case 31:case 13:var o=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(n),Sg(t,i)}function hw(t,n){return pt(t,n)}var Ko=null,pi=null,Wc=!1,Qo=!1,ef=!1,Ur=0;function Pn(t){t!==pi&&t.next===null&&(pi===null?Ko=pi=t:pi=pi.next=t),Qo=!0,Wc||(Wc=!0,mw())}function ma(t,n){if(!ef&&Qo){ef=!0;do for(var i=!1,o=Ko;o!==null;){if(t!==0){var d=o.pendingLanes;if(d===0)var m=0;else{var S=o.suspendedLanes,j=o.pingedLanes;m=(1<<31-Qe(42|t)+1)-1,m&=d&~(S&~j),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Tg(o,m))}else m=He,m=Ll(o,o===lt?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(m&3)===0||ll(o,m)||(i=!0,Tg(o,m));o=o.next}while(i);ef=!1}}function pw(){kg()}function kg(){Qo=Wc=!1;var t=0;Ur!==0&&Cw()&&(t=Ur);for(var n=at(),i=null,o=Ko;o!==null;){var d=o.next,m=Eg(o,n);m===0?(o.next=null,i===null?Ko=d:i.next=d,d===null&&(pi=i)):(i=o,(t!==0||(m&3)!==0)&&(Qo=!0)),o=d}Tt!==0&&Tt!==5||ma(t),Ur!==0&&(Ur=0)}function Eg(t,n){for(var i=t.suspendedLanes,o=t.pingedLanes,d=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var S=31-Qe(m),j=1<<S,P=d[S];P===-1?((j&i)===0||(j&o)!==0)&&(d[S]=mu(j,n)):P<=n&&(t.expiredLanes|=j),m&=~j}if(n=lt,i=He,i=Ll(t,t===n?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,i===0||t===n&&(Je===2||Je===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Pt(o),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||ll(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(o!==null&&Pt(o),Mi(i)){case 2:case 8:i=me;break;case 32:i=Ne;break;case 268435456:i=Ve;break;default:i=Ne}return o=Cg.bind(null,t),i=pt(i,o),t.callbackPriority=n,t.callbackNode=i,n}return o!==null&&o!==null&&Pt(o),t.callbackPriority=2,t.callbackNode=null,2}function Cg(t,n){if(Tt!==0&&Tt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Zo()&&t.callbackNode!==i)return null;var o=He;return o=Ll(t,t===lt?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(ag(t,o,n),Eg(t,at()),t.callbackNode!=null&&t.callbackNode===i?Cg.bind(null,t):null)}function Tg(t,n){if(Zo())return null;ag(t,n,!0)}function mw(){Aw(function(){(Ke&6)!==0?pt(ae,pw):kg()})}function tf(){if(Ur===0){var t=Wl;t===0&&(t=jl,jl<<=1,(jl&261888)===0&&(jl=256)),Ur=t}return Ur}function Ag(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:lo(""+t)}function Ng(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function gw(t,n,i,o,d){if(n==="submit"&&i&&i.stateNode===d){var m=Ag((d[be]||null).action),S=o.submitter;S&&(n=(n=S[be]||null)?Ag(n.formAction):S.getAttribute("formAction"),n!==null&&(m=n,S=null));var j=new so("action","action",null,o,d);t.push({event:j,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ur!==0){var P=S?Ng(d,S):new FormData(d);wc(i,{pending:!0,data:P,method:d.method,action:m},null,P)}}else typeof m=="function"&&(j.preventDefault(),P=S?Ng(d,S):new FormData(d),wc(i,{pending:!0,data:P,method:d.method,action:m},m,P))},currentTarget:d}]})}}for(var nf=0;nf<Fu.length;nf++){var rf=Fu[nf],bw=rf.toLowerCase(),yw=rf[0].toUpperCase()+rf.slice(1);Mn(bw,"on"+yw)}Mn(ip,"onAnimationEnd"),Mn(ap,"onAnimationIteration"),Mn(op,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(Ov,"onTransitionRun"),Mn(Mv,"onTransitionStart"),Mn(zv,"onTransitionCancel"),Mn(sp,"onTransitionEnd"),Il("onMouseEnter",["mouseout","mouseover"]),Il("onMouseLeave",["mouseout","mouseover"]),Il("onPointerEnter",["pointerout","pointerover"]),Il("onPointerLeave",["pointerout","pointerover"]),al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),al("onBeforeInput",["compositionend","keypress","textInput","paste"]),al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ga="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(" "),xw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ga));function Rg(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],d=o.event;o=o.listeners;e:{var m=void 0;if(n)for(var S=o.length-1;0<=S;S--){var j=o[S],P=j.instance,ee=j.currentTarget;if(j=j.listener,P!==m&&d.isPropagationStopped())break e;m=j,d.currentTarget=ee;try{m(d)}catch(ie){fo(ie)}d.currentTarget=null,m=P}else for(S=0;S<o.length;S++){if(j=o[S],P=j.instance,ee=j.currentTarget,j=j.listener,P!==m&&d.isPropagationStopped())break e;m=j,d.currentTarget=ee;try{m(d)}catch(ie){fo(ie)}d.currentTarget=null,m=P}}}}function Fe(t,n){var i=n[Ee];i===void 0&&(i=n[Ee]=new Set);var o=t+"__bubble";i.has(o)||(_g(n,t,2,!1),i.add(o))}function lf(t,n,i){var o=0;n&&(o|=4),_g(i,t,o,n)}var Jo="_reactListening"+Math.random().toString(36).slice(2);function af(t){if(!t[Jo]){t[Jo]=!0,kh.forEach(function(i){i!=="selectionchange"&&(xw.has(i)||lf(i,!1,t),lf(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Jo]||(n[Jo]=!0,lf("selectionchange",!1,n))}}function _g(t,n,i,o){switch(ib(n)){case 2:var d=Yw;break;case 8:d=Xw;break;default:d=wf}i=d.bind(null,n,i,t),d=void 0,!Cu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),o?d!==void 0?t.addEventListener(n,i,{capture:!0,passive:d}):t.addEventListener(n,i,!0):d!==void 0?t.addEventListener(n,i,{passive:d}):t.addEventListener(n,i,!1)}function of(t,n,i,o,d){var m=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 j=o.stateNode.containerInfo;if(j===d)break;if(S===4)for(S=o.return;S!==null;){var P=S.tag;if((P===3||P===4)&&S.stateNode.containerInfo===d)return;S=S.return}for(;j!==null;){if(S=zl(j),S===null)return;if(P=S.tag,P===5||P===6||P===26||P===27){o=m=S;continue e}j=j.parentNode}}o=o.return}Mh(function(){var ee=m,ie=ku(i),ue=[];e:{var te=up.get(t);if(te!==void 0){var re=so,we=t;switch(t){case"keypress":if(ao(i)===0)break e;case"keydown":case"keyup":re=dv;break;case"focusin":we="focus",re=Ru;break;case"focusout":we="blur",re=Ru;break;case"beforeblur":case"afterblur":re=Ru;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":re=Fh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=ev;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=mv;break;case ip:case ap:case op:re=rv;break;case sp:re=bv;break;case"scroll":case"scrollend":re=J0;break;case"wheel":re=xv;break;case"copy":case"cut":case"paste":re=iv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=Uh;break;case"toggle":case"beforetoggle":re=wv}var _e=(n&4)!==0,nt=!_e&&(t==="scroll"||t==="scrollend"),Q=_e?te!==null?te+"Capture":null:te;_e=[];for(var Z=ee,W;Z!==null;){var oe=Z;if(W=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||W===null||Q===null||(oe=Fi(Z,Q),oe!=null&&_e.push(ba(Z,oe,W))),nt)break;Z=Z.return}0<_e.length&&(te=new re(te,we,null,i,ie),ue.push({event:te,listeners:_e}))}}if((n&7)===0){e:{if(te=t==="mouseover"||t==="pointerover",re=t==="mouseout"||t==="pointerout",te&&i!==Su&&(we=i.relatedTarget||i.fromElement)&&(zl(we)||we[ke]))break e;if((re||te)&&(te=ie.window===ie?ie:(te=ie.ownerDocument)?te.defaultView||te.parentWindow:window,re?(we=i.relatedTarget||i.toElement,re=ee,we=we?zl(we):null,we!==null&&(nt=u(we),_e=we.tag,we!==nt||_e!==5&&_e!==27&&_e!==6)&&(we=null)):(re=null,we=ee),re!==we)){if(_e=Fh,oe="onMouseLeave",Q="onMouseEnter",Z="mouse",(t==="pointerout"||t==="pointerover")&&(_e=Uh,oe="onPointerLeave",Q="onPointerEnter",Z="pointer"),nt=re==null?te:Bi(re),W=we==null?te:Bi(we),te=new _e(oe,Z+"leave",re,i,ie),te.target=nt,te.relatedTarget=W,oe=null,zl(ie)===ee&&(_e=new _e(Q,Z+"enter",we,i,ie),_e.target=W,_e.relatedTarget=nt,oe=_e),nt=oe,re&&we)t:{for(_e=vw,Q=re,Z=we,W=0,oe=Q;oe;oe=_e(oe))W++;oe=0;for(var Te=Z;Te;Te=_e(Te))oe++;for(;0<W-oe;)Q=_e(Q),W--;for(;0<oe-W;)Z=_e(Z),oe--;for(;W--;){if(Q===Z||Z!==null&&Q===Z.alternate){_e=Q;break t}Q=_e(Q),Z=_e(Z)}_e=null}else _e=null;re!==null&&jg(ue,te,re,_e,!1),we!==null&&nt!==null&&jg(ue,nt,we,_e,!0)}}e:{if(te=ee?Bi(ee):window,re=te.nodeName&&te.nodeName.toLowerCase(),re==="select"||re==="input"&&te.type==="file")var Ye=Xh;else if(Gh(te))if(Zh)Ye=jv;else{Ye=Rv;var Se=Nv}else re=te.nodeName,!re||re.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&wu(ee.elementType)&&(Ye=Xh):Ye=_v;if(Ye&&(Ye=Ye(t,ee))){Yh(ue,Ye,i,ie);break e}Se&&Se(t,te,ee),t==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&vu(te,"number",te.value)}switch(Se=ee?Bi(ee):window,t){case"focusin":(Gh(Se)||Se.contentEditable==="true")&&($l=Se,Mu=ee,Gi=null);break;case"focusout":Gi=Mu=$l=null;break;case"mousedown":zu=!0;break;case"contextmenu":case"mouseup":case"dragend":zu=!1,rp(ue,i,ie);break;case"selectionchange":if(Dv)break;case"keydown":case"keyup":rp(ue,i,ie)}var De;if(ju)e:{switch(t){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else Vl?Vh(t,i)&&(qe="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(qe="onCompositionStart");qe&&(Hh&&i.locale!=="ko"&&(Vl||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&Vl&&(De=zh()):(Er=ie,Tu="value"in Er?Er.value:Er.textContent,Vl=!0)),Se=Wo(ee,qe),0<Se.length&&(qe=new Ih(qe,t,null,i,ie),ue.push({event:qe,listeners:Se}),De?qe.data=De:(De=$h(i),De!==null&&(qe.data=De)))),(De=kv?Ev(t,i):Cv(t,i))&&(qe=Wo(ee,"onBeforeInput"),0<qe.length&&(Se=new Ih("onBeforeInput","beforeinput",null,i,ie),ue.push({event:Se,listeners:qe}),Se.data=De)),gw(ue,t,ee,i,ie)}Rg(ue,n)})}function ba(t,n,i){return{instance:t,listener:n,currentTarget:i}}function Wo(t,n){for(var i=n+"Capture",o=[];t!==null;){var d=t,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=Fi(t,i),d!=null&&o.unshift(ba(t,d,m)),d=Fi(t,n),d!=null&&o.push(ba(t,d,m))),t.tag===3)return o;t=t.return}return[]}function vw(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function jg(t,n,i,o,d){for(var m=n._reactName,S=[];i!==null&&i!==o;){var j=i,P=j.alternate,ee=j.stateNode;if(j=j.tag,P!==null&&P===o)break;j!==5&&j!==26&&j!==27||ee===null||(P=ee,d?(ee=Fi(i,m),ee!=null&&S.unshift(ba(i,ee,P))):d||(ee=Fi(i,m),ee!=null&&S.push(ba(i,ee,P)))),i=i.return}S.length!==0&&t.push({event:n,listeners:S})}var ww=/\r\n?/g,Sw=/\u0000|\uFFFD/g;function Lg(t){return(typeof t=="string"?t:""+t).replace(ww,`
|
|
9
|
-
`).replace(Sw,"")}function Dg(t,n){return n=Lg(n),Lg(t)===n}function tt(t,n,i,o,d,m){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Hl(t,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Hl(t,""+o);break;case"className":no(t,"class",o);break;case"tabIndex":no(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":no(t,i,o);break;case"style":Dh(t,o,m);break;case"data":if(n!=="object"){no(t,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=lo(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(n!=="input"&&tt(t,n,"name",d.name,d,null),tt(t,n,"formEncType",d.formEncType,d,null),tt(t,n,"formMethod",d.formMethod,d,null),tt(t,n,"formTarget",d.formTarget,d,null)):(tt(t,n,"encType",d.encType,d,null),tt(t,n,"method",d.method,d,null),tt(t,n,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=lo(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=Wn);break;case"onScroll":o!=null&&Fe("scroll",t);break;case"onScrollEnd":o!=null&&Fe("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}i=lo(""+o),t.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"?t.setAttribute(i,""+o):t.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"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":Fe("beforetoggle",t),Fe("toggle",t),to(t,"popover",o);break;case"xlinkActuate":Jn(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Jn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Jn(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Jn(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Jn(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Jn(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Jn(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Jn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Jn(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":to(t,"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,to(t,i,o))}}function sf(t,n,i,o,d,m){switch(i){case"style":Dh(t,o,m);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"children":typeof o=="string"?Hl(t,o):(typeof o=="number"||typeof o=="bigint")&&Hl(t,""+o);break;case"onScroll":o!=null&&Fe("scroll",t);break;case"onScrollEnd":o!=null&&Fe("scrollend",t);break;case"onClick":o!=null&&(t.onclick=Wn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Eh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),n=i.slice(2,d?i.length-7:void 0),m=t[be]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(n,m,d),typeof o=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,o,d);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):to(t,i,o)}}}function zt(t,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",t),Fe("load",t);var o=!1,d=!1,m;for(m in i)if(i.hasOwnProperty(m)){var S=i[m];if(S!=null)switch(m){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:tt(t,n,m,S,i,null)}}d&&tt(t,n,"srcSet",i.srcSet,i,null),o&&tt(t,n,"src",i.src,i,null);return;case"input":Fe("invalid",t);var j=m=S=d=null,P=null,ee=null;for(o in i)if(i.hasOwnProperty(o)){var ie=i[o];if(ie!=null)switch(o){case"name":d=ie;break;case"type":S=ie;break;case"checked":P=ie;break;case"defaultChecked":ee=ie;break;case"value":m=ie;break;case"defaultValue":j=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(a(137,n));break;default:tt(t,n,o,ie,i,null)}}Rh(t,m,j,P,ee,S,d,!1);return;case"select":Fe("invalid",t),o=S=m=null;for(d in i)if(i.hasOwnProperty(d)&&(j=i[d],j!=null))switch(d){case"value":m=j;break;case"defaultValue":S=j;break;case"multiple":o=j;default:tt(t,n,d,j,i,null)}n=m,i=S,t.multiple=!!o,n!=null?Ul(t,!!o,n,!1):i!=null&&Ul(t,!!o,i,!0);return;case"textarea":Fe("invalid",t),m=d=o=null;for(S in i)if(i.hasOwnProperty(S)&&(j=i[S],j!=null))switch(S){case"value":o=j;break;case"defaultValue":d=j;break;case"children":m=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(a(91));break;default:tt(t,n,S,j,i,null)}jh(t,o,d,m);return;case"option":for(P in i)i.hasOwnProperty(P)&&(o=i[P],o!=null)&&(P==="selected"?t.selected=o&&typeof o!="function"&&typeof o!="symbol":tt(t,n,P,o,i,null));return;case"dialog":Fe("beforetoggle",t),Fe("toggle",t),Fe("cancel",t),Fe("close",t);break;case"iframe":case"object":Fe("load",t);break;case"video":case"audio":for(o=0;o<ga.length;o++)Fe(ga[o],t);break;case"image":Fe("error",t),Fe("load",t);break;case"details":Fe("toggle",t);break;case"embed":case"source":case"link":Fe("error",t),Fe("load",t);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(t,n,ee,o,i,null)}return;default:if(wu(n)){for(ie in i)i.hasOwnProperty(ie)&&(o=i[ie],o!==void 0&&sf(t,n,ie,o,i,void 0));return}}for(j in i)i.hasOwnProperty(j)&&(o=i[j],o!=null&&tt(t,n,j,o,i,null))}function kw(t,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 d=null,m=null,S=null,j=null,P=null,ee=null,ie=null;for(re in i){var ue=i[re];if(i.hasOwnProperty(re)&&ue!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":P=ue;default:o.hasOwnProperty(re)||tt(t,n,re,null,o,ue)}}for(var te in o){var re=o[te];if(ue=i[te],o.hasOwnProperty(te)&&(re!=null||ue!=null))switch(te){case"type":m=re;break;case"name":d=re;break;case"checked":ee=re;break;case"defaultChecked":ie=re;break;case"value":S=re;break;case"defaultValue":j=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(a(137,n));break;default:re!==ue&&tt(t,n,te,re,o,ue)}}xu(t,S,j,P,ee,ie,m,d);return;case"select":re=S=j=te=null;for(m in i)if(P=i[m],i.hasOwnProperty(m)&&P!=null)switch(m){case"value":break;case"multiple":re=P;default:o.hasOwnProperty(m)||tt(t,n,m,null,o,P)}for(d in o)if(m=o[d],P=i[d],o.hasOwnProperty(d)&&(m!=null||P!=null))switch(d){case"value":te=m;break;case"defaultValue":j=m;break;case"multiple":S=m;default:m!==P&&tt(t,n,d,m,o,P)}n=j,i=S,o=re,te!=null?Ul(t,!!i,te,!1):!!o!=!!i&&(n!=null?Ul(t,!!i,n,!0):Ul(t,!!i,i?[]:"",!1));return;case"textarea":re=te=null;for(j in i)if(d=i[j],i.hasOwnProperty(j)&&d!=null&&!o.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:tt(t,n,j,null,o,d)}for(S in o)if(d=o[S],m=i[S],o.hasOwnProperty(S)&&(d!=null||m!=null))switch(S){case"value":te=d;break;case"defaultValue":re=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==m&&tt(t,n,S,d,o,m)}_h(t,te,re);return;case"option":for(var we in i)te=i[we],i.hasOwnProperty(we)&&te!=null&&!o.hasOwnProperty(we)&&(we==="selected"?t.selected=!1:tt(t,n,we,null,o,te));for(P in o)te=o[P],re=i[P],o.hasOwnProperty(P)&&te!==re&&(te!=null||re!=null)&&(P==="selected"?t.selected=te&&typeof te!="function"&&typeof te!="symbol":tt(t,n,P,te,o,re));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 _e in i)te=i[_e],i.hasOwnProperty(_e)&&te!=null&&!o.hasOwnProperty(_e)&&tt(t,n,_e,null,o,te);for(ee in o)if(te=o[ee],re=i[ee],o.hasOwnProperty(ee)&&te!==re&&(te!=null||re!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(a(137,n));break;default:tt(t,n,ee,te,o,re)}return;default:if(wu(n)){for(var nt in i)te=i[nt],i.hasOwnProperty(nt)&&te!==void 0&&!o.hasOwnProperty(nt)&&sf(t,n,nt,void 0,o,te);for(ie in o)te=o[ie],re=i[ie],!o.hasOwnProperty(ie)||te===re||te===void 0&&re===void 0||sf(t,n,ie,te,o,re);return}}for(var Q in i)te=i[Q],i.hasOwnProperty(Q)&&te!=null&&!o.hasOwnProperty(Q)&&tt(t,n,Q,null,o,te);for(ue in o)te=o[ue],re=i[ue],!o.hasOwnProperty(ue)||te===re||te==null&&re==null||tt(t,n,ue,te,o,re)}function Og(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ew(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var d=i[o],m=d.transferSize,S=d.initiatorType,j=d.duration;if(m&&j&&Og(S)){for(S=0,j=d.responseEnd,o+=1;o<i.length;o++){var P=i[o],ee=P.startTime;if(ee>j)break;var ie=P.transferSize,ue=P.initiatorType;ie&&Og(ue)&&(P=P.responseEnd,S+=ie*(P<j?1:(j-ee)/(P-ee)))}if(--o,n+=8*(m+S)/(d.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var uf=null,cf=null;function es(t){return t.nodeType===9?t:t.ownerDocument}function Mg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zg(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function ff(t,n){return t==="textarea"||t==="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 df=null;function Cw(){var t=window.event;return t&&t.type==="popstate"?t===df?!1:(df=t,!0):(df=null,!1)}var Bg=typeof setTimeout=="function"?setTimeout:void 0,Tw=typeof clearTimeout=="function"?clearTimeout:void 0,Fg=typeof Promise=="function"?Promise:void 0,Aw=typeof queueMicrotask=="function"?queueMicrotask:typeof Fg<"u"?function(t){return Fg.resolve(null).then(t).catch(Nw)}:Bg;function Nw(t){setTimeout(function(){throw t})}function Hr(t){return t==="head"}function Ig(t,n){var i=n,o=0;do{var d=i.nextSibling;if(t.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"||i==="/&"){if(o===0){t.removeChild(d),yi(n);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")ya(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,ya(i);for(var m=i.firstChild;m;){var S=m.nextSibling,j=m.nodeName;m[zi]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=S}}else i==="body"&&ya(t.ownerDocument.body);i=d}while(i);yi(n)}function Ug(t,n){var i=t;t=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(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=o}while(i)}function hf(t){var n=t.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":hf(i),bu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function Rw(t,n,i,o){for(;t.nodeType===1;){var d=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[zi])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=_n(t.nextSibling),t===null)break}return null}function _w(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=_n(t.nextSibling),t===null))return null;return t}function Hg(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=_n(t.nextSibling),t===null))return null;return t}function pf(t){return t.data==="$?"||t.data==="$~"}function mf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function jw(t,n){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||i.readyState!=="loading")n();else{var o=function(){n(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function _n(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var gf=null;function qg(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(n===0)return _n(t.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}t=t.nextSibling}return null}function Pg(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return t;n--}else i!=="/$"&&i!=="/&"||n++}t=t.previousSibling}return null}function Vg(t,n,i){switch(n=es(i),t){case"html":if(t=n.documentElement,!t)throw Error(a(452));return t;case"head":if(t=n.head,!t)throw Error(a(453));return t;case"body":if(t=n.body,!t)throw Error(a(454));return t;default:throw Error(a(451))}}function ya(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);bu(t)}var jn=new Map,$g=new Set;function ts(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var mr=O.d;O.d={f:Lw,r:Dw,D:Ow,C:Mw,L:zw,m:Bw,X:Iw,S:Fw,M:Uw};function Lw(){var t=mr.f(),n=Go();return t||n}function Dw(t){var n=Bl(t);n!==null&&n.tag===5&&n.type==="form"?sm(n):mr.r(t)}var mi=typeof document>"u"?null:document;function Gg(t,n,i){var o=mi;if(o&&typeof n=="string"&&n){var d=kn(n);d='link[rel="'+t+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),$g.has(d)||($g.add(d),t={rel:t,crossOrigin:i,href:n},o.querySelector(d)===null&&(n=o.createElement("link"),zt(n,"link",t),Nt(n),o.head.appendChild(n)))}}function Ow(t){mr.D(t),Gg("dns-prefetch",t,null)}function Mw(t,n){mr.C(t,n),Gg("preconnect",t,n)}function zw(t,n,i){mr.L(t,n,i);var o=mi;if(o&&t&&n){var d='link[rel="preload"][as="'+kn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+kn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+kn(i.imageSizes)+'"]')):d+='[href="'+kn(t)+'"]';var m=d;switch(n){case"style":m=gi(t);break;case"script":m=bi(t)}jn.has(m)||(t=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),jn.set(m,t),o.querySelector(d)!==null||n==="style"&&o.querySelector(xa(m))||n==="script"&&o.querySelector(va(m))||(n=o.createElement("link"),zt(n,"link",t),Nt(n),o.head.appendChild(n)))}}function Bw(t,n){mr.m(t,n);var i=mi;if(i&&t){var o=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+kn(o)+'"][href="'+kn(t)+'"]',m=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=bi(t)}if(!jn.has(m)&&(t=g({rel:"modulepreload",href:t},n),jn.set(m,t),i.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(va(m)))return}o=i.createElement("link"),zt(o,"link",t),Nt(o),i.head.appendChild(o)}}}function Fw(t,n,i){mr.S(t,n,i);var o=mi;if(o&&t){var d=Fl(o).hoistableStyles,m=gi(t);n=n||"default";var S=d.get(m);if(!S){var j={loading:0,preload:null};if(S=o.querySelector(xa(m)))j.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":n},i),(i=jn.get(m))&&bf(t,i);var P=S=o.createElement("link");Nt(P),zt(P,"link",t),P._p=new Promise(function(ee,ie){P.onload=ee,P.onerror=ie}),P.addEventListener("load",function(){j.loading|=1}),P.addEventListener("error",function(){j.loading|=2}),j.loading|=4,ns(S,n,o)}S={type:"stylesheet",instance:S,count:1,state:j},d.set(m,S)}}}function Iw(t,n){mr.X(t,n);var i=mi;if(i&&t){var o=Fl(i).hoistableScripts,d=bi(t),m=o.get(d);m||(m=i.querySelector(va(d)),m||(t=g({src:t,async:!0},n),(n=jn.get(d))&&yf(t,n),m=i.createElement("script"),Nt(m),zt(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function Uw(t,n){mr.M(t,n);var i=mi;if(i&&t){var o=Fl(i).hoistableScripts,d=bi(t),m=o.get(d);m||(m=i.querySelector(va(d)),m||(t=g({src:t,async:!0,type:"module"},n),(n=jn.get(d))&&yf(t,n),m=i.createElement("script"),Nt(m),zt(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function Yg(t,n,i,o){var d=(d=de.current)?ts(d):null;if(!d)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=gi(i.href),i=Fl(d).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"){t=gi(i.href);var m=Fl(d).hoistableStyles,S=m.get(t);if(S||(d=d.ownerDocument||d,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,S),(m=d.querySelector(xa(t)))&&!m._p&&(S.instance=m,S.state.loading=5),jn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},jn.set(t,i),m||Hw(d,t,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=bi(i),i=Fl(d).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,t))}}function gi(t){return'href="'+kn(t)+'"'}function xa(t){return'link[rel="stylesheet"]['+t+"]"}function Xg(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function Hw(t,n,i,o){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=t.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),t.head.appendChild(n))}function bi(t){return'[src="'+kn(t)+'"]'}function va(t){return"script[async]"+t}function Zg(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=t.querySelector('style[data-href~="'+kn(i.href)+'"]');if(o)return n.instance=o,Nt(o),o;var d=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),Nt(o),zt(o,"style",d),ns(o,i.precedence,t),n.instance=o;case"stylesheet":d=gi(i.href);var m=t.querySelector(xa(d));if(m)return n.state.loading|=4,n.instance=m,Nt(m),m;o=Xg(i),(d=jn.get(d))&&bf(o,d),m=(t.ownerDocument||t).createElement("link"),Nt(m);var S=m;return S._p=new Promise(function(j,P){S.onload=j,S.onerror=P}),zt(m,"link",o),n.state.loading|=4,ns(m,i.precedence,t),n.instance=m;case"script":return m=bi(i.src),(d=t.querySelector(va(m)))?(n.instance=d,Nt(d),d):(o=i,(d=jn.get(m))&&(o=g({},i),yf(o,d)),t=t.ownerDocument||t,d=t.createElement("script"),Nt(d),zt(d,"link",o),t.head.appendChild(d),n.instance=d);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,ns(o,i.precedence,t));return n.instance}function ns(t,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,m=d,S=0;S<o.length;S++){var j=o[S];if(j.dataset.precedence===n)m=j;else if(m!==d)break}m?m.parentNode.insertBefore(t,m.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function bf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function yf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var rs=null;function Kg(t,n,i){if(rs===null){var o=new Map,d=rs=new Map;d.set(i,o)}else d=rs,o=d.get(i),o||(o=new Map,d.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),d=0;d<i.length;d++){var m=i[d];if(!(m[zi]||m[ne]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var S=m.getAttribute(n)||"";S=t+S;var j=o.get(S);j?j.push(m):o.set(S,[m])}}return o}function Qg(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function qw(t,n,i){if(i===1||n.itemProp!=null)return!1;switch(t){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"?(t=n.disabled,typeof n.precedence=="string"&&t==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 Jg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Pw(t,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 d=gi(o.href),m=n.querySelector(xa(d));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=ls.bind(t),n.then(t,t)),i.state.loading|=4,i.instance=m,Nt(m);return}m=n.ownerDocument||n,o=Xg(o),(d=jn.get(d))&&bf(o,d),m=m.createElement("link"),Nt(m);var S=m;S._p=new Promise(function(j,P){S.onload=j,S.onerror=P}),zt(m,"link",o),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=ls.bind(t),n.addEventListener("load",i),n.addEventListener("error",i))}}var xf=0;function Vw(t,n){return t.stylesheets&&t.count===0&&as(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var o=setTimeout(function(){if(t.stylesheets&&as(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+n);0<t.imgBytes&&xf===0&&(xf=62500*Ew());var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&as(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>xf?50:800)+n);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function ls(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)as(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var is=null;function as(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,is=new Map,n.forEach($w,t),is=null,ls.call(t))}function $w(t,n){if(!(n.state.loading&4)){var i=is.get(t);if(i)var o=i.get(null);else{i=new Map,is.set(t,i);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var S=d[m];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(i.set(S.dataset.precedence,S),o=S)}o&&i.set(null,o)}d=n.instance,S=d.getAttribute("data-precedence"),m=i.get(S)||o,m===o&&i.set(null,d),i.set(S,d),this.count++,o=ls.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),m?m.parentNode.insertBefore(d,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),n.state.loading|=4}}var wa={$$typeof:N,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function Gw(t,n,i,o,d,m,S,j,P){this.tag=1,this.containerInfo=t,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=Dl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dl(0),this.hiddenUpdates=Dl(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function Wg(t,n,i,o,d,m,S,j,P,ee,ie,ue){return t=new Gw(t,n,i,S,P,ee,ie,ue,j),n=1,m===!0&&(n|=24),m=fn(3,null,null,n),t.current=m,m.stateNode=t,n=Qu(),n.refCount++,t.pooledCache=n,n.refCount++,m.memoizedState={element:o,isDehydrated:i,cache:n},tc(m),t}function eb(t){return t?(t=Xl,t):Xl}function tb(t,n,i,o,d,m){d=eb(d),o.context===null?o.context=d:o.pendingContext=d,o=_r(n),o.payload={element:i},m=m===void 0?null:m,m!==null&&(o.callback=m),i=jr(t,o,n),i!==null&&(nn(i,t,n),Wi(i,t,n))}function nb(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function vf(t,n){nb(t,n),(t=t.alternate)&&nb(t,n)}function rb(t){if(t.tag===13||t.tag===31){var n=cl(t,67108864);n!==null&&nn(n,t,67108864),vf(t,67108864)}}function lb(t){if(t.tag===13||t.tag===31){var n=gn();n=Ol(n);var i=cl(t,n);i!==null&&nn(i,t,n),vf(t,n)}}var os=!0;function Yw(t,n,i,o){var d=F.T;F.T=null;var m=O.p;try{O.p=2,wf(t,n,i,o)}finally{O.p=m,F.T=d}}function Xw(t,n,i,o){var d=F.T;F.T=null;var m=O.p;try{O.p=8,wf(t,n,i,o)}finally{O.p=m,F.T=d}}function wf(t,n,i,o){if(os){var d=Sf(o);if(d===null)of(t,n,o,ss,i),ab(t,o);else if(Kw(d,t,n,i,o))o.stopPropagation();else if(ab(t,o),n&4&&-1<Zw.indexOf(t)){for(;d!==null;){var m=Bl(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var S=Qn(m.pendingLanes);if(S!==0){var j=m;for(j.pendingLanes|=2,j.entangledLanes|=2;S;){var P=1<<31-Qe(S);j.entanglements[1]|=P,S&=~P}Pn(m),(Ke&6)===0&&(Vo=at()+500,ma(0))}}break;case 31:case 13:j=cl(m,2),j!==null&&nn(j,m,2),Go(),vf(m,2)}if(m=Sf(o),m===null&&of(t,n,o,ss,i),m===d)break;d=m}d!==null&&o.stopPropagation()}else of(t,n,o,null,i)}}function Sf(t){return t=ku(t),kf(t)}var ss=null;function kf(t){if(ss=null,t=zl(t),t!==null){var n=u(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=c(n),t!==null)return t;t=null}else if(i===31){if(t=f(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return ss=t,null}function ib(t){switch(t){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(wr()){case ae:return 2;case me:return 8;case Ne:case ze:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var Ef=!1,qr=null,Pr=null,Vr=null,Sa=new Map,ka=new Map,$r=[],Zw="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 ab(t,n){switch(t){case"focusin":case"focusout":qr=null;break;case"dragenter":case"dragleave":Pr=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Sa.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ka.delete(n.pointerId)}}function Ea(t,n,i,o,d,m){return t===null||t.nativeEvent!==m?(t={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:m,targetContainers:[d]},n!==null&&(n=Bl(n),n!==null&&rb(n)),t):(t.eventSystemFlags|=o,n=t.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),t)}function Kw(t,n,i,o,d){switch(n){case"focusin":return qr=Ea(qr,t,n,i,o,d),!0;case"dragenter":return Pr=Ea(Pr,t,n,i,o,d),!0;case"mouseover":return Vr=Ea(Vr,t,n,i,o,d),!0;case"pointerover":var m=d.pointerId;return Sa.set(m,Ea(Sa.get(m)||null,t,n,i,o,d)),!0;case"gotpointercapture":return m=d.pointerId,ka.set(m,Ea(ka.get(m)||null,t,n,i,o,d)),!0}return!1}function ob(t){var n=zl(t.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){t.blockedOn=n,eo(t.priority,function(){lb(i)});return}}else if(n===31){if(n=f(i),n!==null){t.blockedOn=n,eo(t.priority,function(){lb(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function us(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=Sf(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);Su=o,i.target.dispatchEvent(o),Su=null}else return n=Bl(i),n!==null&&rb(n),t.blockedOn=i,!1;n.shift()}return!0}function sb(t,n,i){us(t)&&i.delete(n)}function Qw(){Ef=!1,qr!==null&&us(qr)&&(qr=null),Pr!==null&&us(Pr)&&(Pr=null),Vr!==null&&us(Vr)&&(Vr=null),Sa.forEach(sb),ka.forEach(sb)}function cs(t,n){t.blockedOn===n&&(t.blockedOn=null,Ef||(Ef=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Qw)))}var fs=null;function ub(t){fs!==t&&(fs=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){fs===t&&(fs=null);for(var n=0;n<t.length;n+=3){var i=t[n],o=t[n+1],d=t[n+2];if(typeof o!="function"){if(kf(o||i)===null)continue;break}var m=Bl(i);m!==null&&(t.splice(n,3),n-=3,wc(m,{pending:!0,data:d,method:i.method,action:o},o,d))}}))}function yi(t){function n(P){return cs(P,t)}qr!==null&&cs(qr,t),Pr!==null&&cs(Pr,t),Vr!==null&&cs(Vr,t),Sa.forEach(n),ka.forEach(n);for(var i=0;i<$r.length;i++){var o=$r[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<$r.length&&(i=$r[0],i.blockedOn===null);)ob(i),i.blockedOn===null&&$r.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var d=i[o],m=i[o+1],S=d[be]||null;if(typeof m=="function")S||ub(i);else if(S){var j=null;if(m&&m.hasAttribute("formAction")){if(d=m,S=m[be]||null)j=S.formAction;else if(kf(d)!==null)continue}else j=S.action;typeof j=="function"?i[o+1]=j:(i.splice(o,3),o-=3),ub(i)}}}function cb(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(S){return d=S})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function Cf(t){this._internalRoot=t}ds.prototype.render=Cf.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,o=gn();tb(i,o,t,n,null,null)},ds.prototype.unmount=Cf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;tb(t.current,2,null,t,null,null),Go(),n[ke]=null}};function ds(t){this._internalRoot=t}ds.prototype.unstable_scheduleHydration=function(t){if(t){var n=Wa();t={blockedOn:null,target:t,priority:n};for(var i=0;i<$r.length&&n!==0&&n<$r[i].priority;i++);$r.splice(i,0,t),i===0&&ob(t)}};var fb=r.version;if(fb!=="19.2.3")throw Error(a(527,fb,"19.2.3"));O.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(a(188)):(t=Object.keys(t).join(","),Error(a(268,t)));return t=h(n),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var Jw={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{Lt=hs.inject(Jw),mt=hs}catch{}}return Ta.createRoot=function(t,n){if(!s(t))throw Error(a(299));var i=!1,o="",d=ym,m=xm,S=vm;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError)),n=Wg(t,1,!1,null,null,i,o,null,d,m,S,cb),t[ke]=n.current,af(t),new Cf(n)},Ta.hydrateRoot=function(t,n,i){if(!s(t))throw Error(a(299));var o=!1,d="",m=ym,S=xm,j=vm,P=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(S=i.onCaughtError),i.onRecoverableError!==void 0&&(j=i.onRecoverableError),i.formState!==void 0&&(P=i.formState)),n=Wg(t,1,!0,n,i??null,o,d,P,m,S,j,cb),n.context=eb(null),i=n.current,o=gn(),o=Ol(o),d=_r(o),d.callback=null,jr(i,d,o),i=o,n.current.lanes=i,kr(n,i),Pn(n),t[ke]=n.current,af(t),new ds(n)},Ta.version="19.2.3",Ta}var wb;function s2(){if(wb)return Nf.exports;wb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Nf.exports=o2(),Nf.exports}var u2=s2();const c2=Ys(u2),yx=["shift","alt","meta","mod","ctrl","control"],f2={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 Wr(e){return(f2[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function xx(e){return yx.includes(e)}function Lf(e,r=","){return e.toLowerCase().split(r)}function Df(e,r="+",l=">",a=!1,s){let u=[],c=!1;e=e.trim(),e.includes(l)?(c=!0,u=e.toLocaleLowerCase().split(l).map(h=>Wr(h))):u=e.toLocaleLowerCase().split(r).map(h=>Wr(h));const f={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=>!yx.includes(h));return{...f,keys:p,description:s,isSequence:c,hotkey:e}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&vx([Wr(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&wx([Wr(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{br.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{br.clear()},0)}));const br=new Set;function Vd(e){return Array.isArray(e)}function d2(e,r=","){return(Vd(e)?e:e.split(r)).every(l=>br.has(l.trim().toLowerCase()))}function vx(e){const r=Array.isArray(e)?e:[e];br.has("meta")&&br.forEach(l=>!xx(l)&&br.delete(l.toLowerCase())),r.forEach(l=>br.add(l.toLowerCase()))}function wx(e){const r=Array.isArray(e)?e:[e];e==="meta"?br.clear():r.forEach(l=>br.delete(l.toLowerCase()))}function h2(e,r,l){(typeof l=="function"&&l(e,r)||l===!0)&&e.preventDefault()}function p2(e,r,l){return typeof l=="function"?l(e,r):l===!0||l===void 0}const m2=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function g2(e){return Sx(e,m2)}function Sx(e,r=!1){const{target:l,composed:a}=e;let s,u;return b2(l)&&a?(s=e.composedPath()[0]&&e.composedPath()[0].tagName,u=e.composedPath()[0]&&e.composedPath()[0].role):(s=l&&l.tagName,u=l&&l.role),Vd(r)?!!(s&&r&&r.some(c=>c.toLowerCase()===s.toLowerCase()||c===u)):!!(s&&r&&r)}function b2(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function y2(e,r){return e.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?e.some(l=>r.includes(l))||e.includes("*"):!0}const x2=(e,r,l=!1)=>{const{alt:a,meta:s,mod:u,shift:c,ctrl:f,keys:p,useKey:h}=r,{code:b,key:g,ctrlKey:x,metaKey:v,shiftKey:w,altKey:k}=e,T=Wr(b);if(h&&p?.length===1&&p.includes(g))return!0;if(!p?.includes(T)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(T))return!1;if(!l){if(a!==k&&T!=="alt"||c!==w&&T!=="shift")return!1;if(u){if(!v&&!x)return!1}else if(s!==v&&T!=="meta"&&T!=="os"||f!==x&&T!=="ctrl"&&T!=="control")return!1}return p&&p.length===1&&p.includes(T)?!0:p?d2(p):!p},kx=R.createContext(void 0),v2=()=>R.useContext(kx);function w2({addHotkey:e,removeHotkey:r,children:l}){return y.jsx(kx.Provider,{value:{addHotkey:e,removeHotkey:r},children:l})}function $d(e,r){return e&&r&&typeof e=="object"&&typeof r=="object"?Object.keys(e).length===Object.keys(r).length&&Object.keys(e).reduce((l,a)=>l&&$d(e[a],r[a]),!0):e===r}const Ex=R.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Xs=()=>R.useContext(Ex),S2=({initiallyActiveScopes:e=["*"],children:r})=>{const[l,a]=R.useState(e),[s,u]=R.useState([]),c=R.useCallback(g=>{a(x=>x.includes("*")?[g]:Array.from(new Set([...x,g])))},[]),f=R.useCallback(g=>{a(x=>x.filter(v=>v!==g))},[]),p=R.useCallback(g=>{a(x=>x.includes(g)?x.filter(v=>v!==g):x.includes("*")?[g]:Array.from(new Set([...x,g])))},[]),h=R.useCallback(g=>{u(x=>[...x,g])},[]),b=R.useCallback(g=>{u(x=>x.filter(v=>!$d(v,g)))},[]);return y.jsx(Ex.Provider,{value:{activeScopes:l,hotkeys:s,enableScope:c,disableScope:f,toggleScope:p},children:y.jsx(w2,{addHotkey:h,removeHotkey:b,children:r})})};function k2(e){const r=R.useRef(void 0);return $d(r.current,e)||(r.current=e),r.current}const Sb=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},E2=typeof window<"u"?R.useLayoutEffect:R.useEffect;function rt(e,r,l,a){const s=R.useRef(null),u=R.useRef(!1),c=Array.isArray(l)?Array.isArray(a)?void 0:a:l,f=Vd(e)?e.join(c?.delimiter):e,p=Array.isArray(l)?l:Array.isArray(a)?a:void 0,h=R.useCallback(r,p??[]),b=R.useRef(h);p?b.current=h:b.current=r;const g=k2(c),{activeScopes:x}=Xs(),v=v2();return E2(()=>{if(g?.enabled===!1||!y2(x,g?.scopes))return;let w=[],k;const T=(B,q=!1)=>{if(!(g2(B)&&!Sx(B,g?.enableOnFormTags))){if(s.current!==null){const L=s.current.getRootNode();if((L instanceof Document||L instanceof ShadowRoot)&&L.activeElement!==s.current&&!s.current.contains(L.activeElement)){Sb(B);return}}B.target?.isContentEditable&&!g?.enableOnContentEditable||Lf(f,g?.delimiter).forEach(L=>{if(L.includes(g?.splitKey??"+")&&L.includes(g?.sequenceSplitKey??">")){console.warn(`Hotkey ${L} contains both ${g?.splitKey??"+"} and ${g?.sequenceSplitKey??">"} which is not supported.`);return}const I=Df(L,g?.splitKey,g?.sequenceSplitKey,g?.useKey,g?.description);if(I.isSequence){k=setTimeout(()=>{w=[]},g?.sequenceTimeoutMs??1e3);const $=I.useKey?B.key:Wr(B.code);if(xx($.toLowerCase()))return;w.push($);const G=I.keys?.[w.length-1];if($!==G){w=[],k&&clearTimeout(k);return}w.length===I.keys?.length&&(b.current(B,I),k&&clearTimeout(k),w=[])}else if(x2(B,I,g?.ignoreModifiers)||I.keys?.includes("*")){if(g?.ignoreEventWhen?.(B)||q&&u.current)return;if(h2(B,I,g?.preventDefault),!p2(B,I,g?.enabled)){Sb(B);return}b.current(B,I),q||(u.current=!0)}})}},E=B=>{B.code!==void 0&&(vx(Wr(B.code)),(g?.keydown===void 0&&g?.keyup!==!0||g?.keydown)&&T(B))},C=B=>{B.code!==void 0&&(wx(Wr(B.code)),u.current=!1,g?.keyup&&T(B,!0))},N=s.current||c?.document||document;return N.addEventListener("keyup",C,c?.eventListenerOptions),N.addEventListener("keydown",E,c?.eventListenerOptions),v&&Lf(f,g?.delimiter).forEach(B=>v.addHotkey(Df(B,g?.splitKey,g?.sequenceSplitKey,g?.useKey,g?.description))),()=>{N.removeEventListener("keyup",C,c?.eventListenerOptions),N.removeEventListener("keydown",E,c?.eventListenerOptions),v&&Lf(f,g?.delimiter).forEach(B=>v.removeHotkey(Df(B,g?.splitKey,g?.sequenceSplitKey,g?.useKey,g?.description))),w=[],k&&clearTimeout(k)}},[f,g,x]),s}const C2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),T2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,a)=>a?a.toUpperCase():l.toLowerCase()),kb=e=>{const r=T2(e);return r.charAt(0).toUpperCase()+r.slice(1)},Cx=(...e)=>e.filter((r,l,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===l).join(" ").trim(),A2=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};var N2={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 R2=R.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:s="",children:u,iconNode:c,...f},p)=>R.createElement("svg",{ref:p,...N2,width:r,height:r,stroke:e,strokeWidth:a?Number(l)*24/Number(r):l,className:Cx("lucide",s),...!u&&!A2(f)&&{"aria-hidden":"true"},...f},[...c.map(([h,b])=>R.createElement(h,b)),...Array.isArray(u)?u:[u]]));const Ze=(e,r)=>{const l=R.forwardRef(({className:a,...s},u)=>R.createElement(R2,{ref:u,iconNode:r,className:Cx(`lucide-${C2(kb(e))}`,`lucide-${e}`,a),...s}));return l.displayName=kb(e),l};const _2=[["path",{d:"M19 3H5",key:"1236rx"}],["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m6 15 6 6 6-6",key:"h15q88"}]],j2=Ze("arrow-down-from-line",_2);const L2=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],D2=Ze("arrow-up-from-line",L2);const O2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ua=Ze("check",O2);const M2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zs=Ze("chevron-down",M2);const z2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Tx=Ze("chevron-right",z2);const B2=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],F2=Ze("chevrons-down-up",B2);const I2=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],U2=Ze("chevrons-up-down",I2);const H2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],q2=Ze("columns-2",H2);const P2=[["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"}]],Ax=Ze("copy",P2);const V2=[["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"}]],$2=Ze("eraser",V2);const G2=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Y2=Ze("external-link",G2);const X2=[["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"}]],Ts=Ze("eye",X2);const Z2=[["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"}]],Ks=Ze("file-diff",Z2);const K2=[["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"}]],Nx=Ze("file-pen",K2);const Q2=[["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"}]],Rx=Ze("file-plus",Q2);const J2=[["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"}]],_x=Ze("file-x",J2);const W2=[["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"}]],eS=Ze("folder-open",W2);const tS=[["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"}]],nS=Ze("folder",tS);const rS=[["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"}]],lS=Ze("keyboard",rS);const iS=[["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"}]],aS=Ze("list",iS);const oS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sS=Ze("loader-circle",oS);const uS=[["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"}]],jx=Ze("message-square",uS);const cS=[["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"}]],fS=Ze("panel-left-close",cS);const dS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],hS=Ze("panel-left",dS);const pS=[["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"}]],mS=Ze("pen",pS);const gS=[["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"}]],bS=Ze("refresh-cw",gS);const yS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],xS=Ze("search",yS);const vS=[["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"}]],Lx=Ze("settings",vS);const wS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],SS=Ze("square",wS);const kS=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],ES=Ze("text-align-start",kS);const CS=[["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"}]],TS=Ze("unfold-vertical",CS);const AS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gd=Ze("x",AS),$a="split";function NS(e){switch(e){case"split":case"side-by-side":return"split";case"unified":case"inline":return"unified";default:return $a}}function Dx({checked:e,onChange:r,label:l,className:a="",title:s}){const u=f=>{f.stopPropagation(),r(!e)},c=f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),f.stopPropagation(),r(!e))};return y.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":e,tabIndex:0,children:[y.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center transition-all duration-200 cursor-pointer ${e?"bg-github-accent border-github-accent":"bg-github-bg-tertiary border-github-text-muted hover:border-github-accent/50"}`,children:e&&y.jsx(Ua,{size:10,className:"text-white"})}),l&&y.jsx("span",{className:"select-none",children:l})]})}function RS({commentsCount:e,isCopiedAll:r,onCopyAll:l,onDeleteAll:a,onViewAll:s}){const[u,c]=R.useState(!1),f=R.useRef(null);R.useEffect(()=>{const g=x=>{f.current&&!f.current.contains(x.target)&&c(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const p=()=>{l(),c(!1)},h=()=>{a(),c(!1)},b=()=>{s?.(),c(!1)};return y.jsxs("div",{className:"relative",ref:f,children:[y.jsxs("div",{className:"flex",children:[y.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:g=>{g.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",g.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",g.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:`Copy all ${e} comments to AI coding agent`,children:[r?y.jsx(Ua,{size:12}):y.jsx(Ax,{size:12}),r?"Copied All!":`Copy All Prompt (${e})`]}),y.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:g=>{g.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",g.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",g.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"More options",children:y.jsx(Zs,{size:12,className:`transition-transform duration-200 ${u?"rotate-180":""}`})})]}),u&&y.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&&y.jsxs("button",{onClick:b,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:e===0,children:[y.jsx(aS,{size:12}),"View All Comments"]}),y.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:[y.jsx($2,{size:12}),"Cleanup All Prompt"]})]})]})}function Yd({comment:e,onGeneratePrompt:r,onRemoveComment:l,onUpdateComment:a,onClick:s}){const[u,c]=R.useState(!1),[f,p]=R.useState(!1),[h,b]=R.useState(e.body),g=async E=>{E.stopPropagation();try{const C=r(e);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),b(e.body)},v=()=>{p(!1),b(e.body)},w=E=>{E?.stopPropagation(),h.trim()!==e.body&&a(e.id,h.trim()),p(!1)},k=E=>{E.stopPropagation(),l(e.id)},T=E=>{E.key==="Enter"&&(E.metaKey||E.ctrlKey)?(E.preventDefault(),w()):E.key==="Escape"&&(E.preventDefault(),v())};return rt("escape",()=>{f&&v()},{enableOnFormTags:["textarea"],enabled:f},[f]),rt("mod+enter",()=>{f&&w()},{enableOnFormTags:["textarea"],enabled:f},[f,h,e.body]),y.jsxs("div",{id:`comment-${e.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:[y.jsxs("div",{className:"flex items-center justify-between mb-2 gap-3",children:[y.jsx("div",{className:"flex items-center gap-2 text-xs text-github-text-secondary flex-1 min-w-0",children:y.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:[e.file,":",Array.isArray(e.line)?`${e.line[0]}-${e.line[1]}`:e.line]})}),y.jsx("div",{className:"flex items-center gap-2",children:!f&&y.jsxs(y.Fragment,{children:[y.jsx("button",{onClick:g,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"}),y.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:y.jsx(mS,{size:12})}),y.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:y.jsx(Ua,{size:12})})]})})]}),f?y.jsxs("div",{children:[y.jsx("textarea",{value:h,onChange:E=>b(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(),T(E)}}),y.jsxs("div",{className:"flex gap-2 justify-end mt-2",children:[y.jsx("button",{type:"button",onClick:v,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"}),y.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"})]})]}):y.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:e.body})]})}function _S({isOpen:e,onClose:r,onNavigate:l,comments:a,onRemoveComment:s,onGeneratePrompt:u,onUpdateComment:c}){const[f,p]=R.useState(0),h=R.useRef([]),{enableScope:b,disableScope:g}=Xs(),x=[...a].sort((T,E)=>{const C=T.file.localeCompare(E.file);if(C!==0)return C;const N=Array.isArray(T.line)?T.line[0]:T.line,B=Array.isArray(E.line)?E.line[0]:E.line;return N-B}),v=R.useCallback(T=>{l(T),r()},[l,r]),w=R.useCallback(T=>{confirm(`Delete this comment?
|
|
11
|
-
|
|
12
|
-
"${T.body}"`)&&(s(T.id),f>=x.length-1&&f>0&&p(f-1))},[s,f,x.length]);R.useEffect(()=>(e?(b("comments-list"),g("navigation")):(b("navigation"),g("comments-list"),p(0)),()=>{b("navigation"),g("comments-list")}),[e,b,g]);const k={scopes:"comments-list",enableOnFormTags:!1};return rt("escape",()=>r(),k,[r]),rt("j, down",()=>p(T=>Math.min(T+1,x.length-1)),k,[x.length]),rt("k, up",()=>p(T=>Math.max(T-1,0)),k,[]),rt("enter",()=>{x[f]&&v(x[f])},k,[f,x,v]),rt("d",()=>{x[f]&&w(x[f])},k,[f,x,w]),R.useEffect(()=>{h.current[f]&&h.current[f]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[f]),e?y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),y.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:[y.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4",children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"All Comments"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close comments list",children:y.jsx(Gd,{size:20})})]}),y.jsxs("div",{className:"text-xs text-github-text-secondary",children:[y.jsx("span",{className:"font-mono",children:"j/k"})," or ",y.jsx("span",{className:"font-mono",children:"↑/↓"})," to navigate • ",y.jsx("span",{className:"font-mono",children:"Enter"})," to jump •"," ",y.jsx("span",{className:"font-mono",children:"d"})," to delete • ",y.jsx("span",{className:"font-mono",children:"Esc"})," ","to close"]})]}),y.jsx("div",{className:"overflow-y-auto max-h-[calc(80vh-120px)]",children:y.jsx("div",{className:"p-6",children:x.length===0?y.jsx("p",{className:"text-github-text-secondary text-center",children:"No comments yet"}):y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"space-y-2",children:x.map((T,E)=>y.jsx("div",{ref:C=>{h.current[E]=C},className:`${f===E?"ring-2 ring-blue-500 rounded":""}`,children:y.jsx(Yd,{comment:T,onGeneratePrompt:u,onRemoveComment:s,onUpdateComment:c,onClick:C=>{C.stopPropagation(),p(E),v(T)}})},T.id))}),x.length>0&&y.jsxs("div",{className:"mt-4 pt-4 border-t border-github-border text-xs text-github-text-secondary text-center",children:[f+1," of ",x.length," comments"]})]})})})]})]}):null}function Qs(e){return e&&e.split(".").pop()?.toLowerCase()||null}function jS(e){return e&&e.split("/").pop()||""}const LS=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function DS(e){if(!e)return!1;const r=Qs(e);return r?LS.includes(r):!1}const OS=["md","markdown"];function MS(e){if(!e)return!1;const r=Qs(e);return r?OS.includes(r):!1}const zS=["ipynb"];function BS(e){if(!e)return!1;const r=Qs(e);return r?zS.includes(r):!1}function FS({file:e,diffMode:r,baseCommitish:l,targetCommitish:a}){const s=r??$a,u=e.status==="deleted",c=e.status==="added",f=e.status==="modified"||e.status==="renamed",p=l||"HEAD~1",h=a||"HEAD",[b,g]=R.useState({}),[x,v]=R.useState({}),w=async(C,N)=>{try{const B=C.naturalWidth,q=C.naturalHeight,$=(await(await fetch(C.src)).blob()).size;N({width:B,height:q,size:$})}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`:"",T=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?y.jsx("div",{className:"bg-github-bg-primary p-4",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"mb-2",children:y.jsx("span",{className:"text-github-danger font-medium",children:"Deleted Image"})}),y.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),y.jsx("img",{src:`/api/blob/${e.oldPath||e.path}?ref=${p}`,alt:`Previous version of ${e.oldPath||e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,g),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[T(b),T(b)&&k(b.size)&&" | ",k(b.size)]})]})]})}):c?y.jsx("div",{className:"bg-github-bg-primary p-4",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"mb-2",children:y.jsx("span",{className:"text-github-accent font-medium",children:"Added Image"})}),y.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"New file:"}),y.jsx("img",{src:`/api/blob/${e.path}?ref=${h}`,alt:`New image ${e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,v),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(x.width||x.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[T(x),T(x)&&k(x.size)&&" | ",k(x.size)]})]})]})}):f?s==="split"?y.jsxs("div",{className:"bg-github-bg-primary p-4",children:[y.jsx("div",{className:"text-center mb-4",children:y.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),y.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),y.jsx("img",{src:`/api/blob/${e.oldPath||e.path}?ref=${p}`,alt:`Previous version of ${e.oldPath||e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,g),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[T(b),T(b)&&k(b.size)&&" | ",k(b.size)]})]})}),y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),y.jsx("img",{src:`/api/blob/${e.path}?ref=${h}`,alt:`Current version of ${e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,v),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(x.width||x.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[T(x),T(x)&&k(x.size)&&" | ",k(x.size)]})]})})]})]}):y.jsxs("div",{className:"bg-github-bg-primary p-4",children:[y.jsx("div",{className:"text-center mb-4",children:y.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),y.jsxs("div",{className:"space-y-6",children:[y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),y.jsx("img",{src:`/api/blob/${e.oldPath||e.path}?ref=${p}`,alt:`Previous version of ${e.oldPath||e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,g),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[T(b),T(b)&&k(b.size)&&" | ",k(b.size)]})]})}),y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),y.jsx("img",{src:`/api/blob/${e.path}?ref=${h}`,alt:`Current version of ${e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,v),onError:C=>{const N=C.target;N.style.display="none",N.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(x.width||x.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[T(x),T(x)&&k(x.size)&&" | ",k(x.size)]})]})})]})]}):null}function IS(e,r){const l={};return(e[e.length-1]===""?[...e,""]:e).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const US=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qS={};function Eb(e,r){return(qS.jsx?HS:US).test(e)}const PS=/[ \t\n\f\r]/g;function VS(e){return typeof e=="object"?e.type==="text"?Cb(e.value):!1:Cb(e)}function Cb(e){return e.replace(PS,"")===""}class Ga{constructor(r,l,a){this.normal=l,this.property=r,a&&(this.space=a)}}Ga.prototype.normal={};Ga.prototype.property={};Ga.prototype.space=void 0;function Ox(e,r){const l={},a={};for(const s of e)Object.assign(l,s.property),Object.assign(a,s.normal);return new Ga(l,a,r)}function yd(e){return e.toLowerCase()}class sn{constructor(r,l){this.attribute=l,this.property=r}}sn.prototype.attribute="";sn.prototype.booleanish=!1;sn.prototype.boolean=!1;sn.prototype.commaOrSpaceSeparated=!1;sn.prototype.commaSeparated=!1;sn.prototype.defined=!1;sn.prototype.mustUseProperty=!1;sn.prototype.number=!1;sn.prototype.overloadedBoolean=!1;sn.prototype.property="";sn.prototype.spaceSeparated=!1;sn.prototype.space=void 0;let $S=0;const Oe=_l(),Et=_l(),xd=_l(),pe=_l(),ot=_l(),Ci=_l(),yn=_l();function _l(){return 2**++$S}const vd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:Et,commaOrSpaceSeparated:yn,commaSeparated:Ci,number:pe,overloadedBoolean:xd,spaceSeparated:ot},Symbol.toStringTag,{value:"Module"})),Of=Object.keys(vd);class Xd extends sn{constructor(r,l,a,s){let u=-1;if(super(r,l),Tb(this,"space",s),typeof a=="number")for(;++u<Of.length;){const c=Of[u];Tb(this,Of[u],(a&vd[c])===vd[c])}}}Xd.prototype.defined=!0;function Tb(e,r,l){l&&(e[r]=l)}function Li(e){const r={},l={};for(const[a,s]of Object.entries(e.properties)){const u=new Xd(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),r[a]=u,l[yd(a)]=a,l[yd(u.attribute)]=a}return new Ga(r,l,e.space)}const Mx=Li({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(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function zx(e,r){return r in e?e[r]:r}function Bx(e,r){return zx(e,r.toLowerCase())}const GS=Li({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ci,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|Ci,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:xd,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:xd,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:Bx}),YS=Li({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:Ci,g2:Ci,glyphName:Ci,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:zx}),Fx=Li({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),Ix=Li({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Bx}),Ux=Li({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),XS={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"},ZS=/[A-Z]/g,Ab=/-[a-z]/g,KS=/^data[-\w.:]+$/i;function QS(e,r){const l=yd(r);let a=r,s=sn;if(l in e.normal)return e.property[e.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&KS.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(Ab,WS);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!Ab.test(u)){let c=u.replace(ZS,JS);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}s=Xd}return new s(a,r)}function JS(e){return"-"+e.toLowerCase()}function WS(e){return e.charAt(1).toUpperCase()}const ek=Ox([Mx,GS,Fx,Ix,Ux],"html"),Zd=Ox([Mx,YS,Fx,Ix,Ux],"svg");function tk(e){return e.join(" ").trim()}var xi={},Mf,Nb;function nk(){if(Nb)return Mf;Nb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,p=`
|
|
16
|
-
`,h="/",b="*",g="",x="comment",v="declaration";function w(T,E){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];E=E||{};var C=1,N=1;function B(U){var X=U.match(r);X&&(C+=X.length);var F=U.lastIndexOf(p);N=~F?U.length-F:N+U.length}function q(){var U={line:C,column:N};return function(X){return X.position=new L(U),G(),X}}function L(U){this.start=U,this.end={line:C,column:N},this.source=E.source}L.prototype.content=T;function I(U){var X=new Error(E.source+":"+C+":"+N+": "+U);if(X.reason=U,X.filename=E.source,X.line=C,X.column=N,X.source=T,!E.silent)throw X}function $(U){var X=U.exec(T);if(X){var F=X[0];return B(F),T=T.slice(F.length),X}}function G(){$(l)}function M(U){var X;for(U=U||[];X=V();)X!==!1&&U.push(X);return U}function V(){var U=q();if(!(h!=T.charAt(0)||b!=T.charAt(1))){for(var X=2;g!=T.charAt(X)&&(b!=T.charAt(X)||h!=T.charAt(X+1));)++X;if(X+=2,g===T.charAt(X-1))return I("End of comment missing");var F=T.slice(2,X-2);return N+=2,B(F),T=T.slice(X),N+=2,U({type:x,comment:F})}}function Y(){var U=q(),X=$(a);if(X){if(V(),!$(s))return I("property missing ':'");var F=$(u),O=U({type:v,property:k(X[0].replace(e,g)),value:F?k(F[0].replace(e,g)):g});return $(c),O}}function J(){var U=[];M(U);for(var X;X=Y();)X!==!1&&(U.push(X),M(U));return U}return G(),J()}function k(T){return T?T.replace(f,g):g}return Mf=w,Mf}var Rb;function rk(){if(Rb)return xi;Rb=1;var e=xi&&xi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(xi,"__esModule",{value:!0}),xi.default=l;const r=e(nk());function l(a,s){let u=null;if(!a||typeof a!="string")return u;const c=(0,r.default)(a),f=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:h,value:b}=p;f?s(h,b,p):b&&(u=u||{},u[h]=b)}),u}return xi}var Aa={},_b;function lk(){if(_b)return Aa;_b=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.camelCase=void 0;var e=/^--[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)||e.test(h)},c=function(h,b){return b.toUpperCase()},f=function(h,b){return"".concat(b,"-")},p=function(h,b){return b===void 0&&(b={}),u(h)?h:(h=h.toLowerCase(),b.reactCompat?h=h.replace(s,f):h=h.replace(a,f),h.replace(r,c))};return Aa.camelCase=p,Aa}var Na,jb;function ik(){if(jb)return Na;jb=1;var e=Na&&Na.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=e(rk()),l=lk();function a(s,u){var c={};return!s||typeof s!="string"||(0,r.default)(s,function(f,p){f&&p&&(c[(0,l.camelCase)(f,u)]=p)}),c}return a.default=a,Na=a,Na}var ak=ik();const ok=Ys(ak),Hx=qx("end"),Kd=qx("start");function qx(e){return r;function r(l){const a=l&&l.position&&l.position[e]||{};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 sk(e){const r=Kd(e),l=Hx(e);if(r&&l)return{start:r,end:l}}function Oa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Lb(e.position):"start"in e||"end"in e?Lb(e):"line"in e||"column"in e?wd(e):""}function wd(e){return Db(e&&e.line)+":"+Db(e&&e.column)}function Lb(e){return wd(e&&e.start)+"-"+wd(e&&e.end)}function Db(e){return e&&typeof e=="number"?e: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 f=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=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=Oa(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 Qd={}.hasOwnProperty,uk=new Map,ck=/[A-Z]/g,fk=new Set(["table","tbody","thead","tfoot","tr"]),dk=new Set(["td","th"]),Px="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hk(e,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=wk(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=vk(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"?Zd:ek,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=Vx(s,e,void 0);return u&&typeof u!="string"?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}function Vx(e,r,l){if(r.type==="element")return pk(e,r,l);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return mk(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return bk(e,r,l);if(r.type==="mdxjsEsm")return gk(e,r);if(r.type==="root")return yk(e,r,l);if(r.type==="text")return xk(e,r)}function pk(e,r,l){const a=e.schema;let s=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=Zd,e.schema=s),e.ancestors.push(r);const u=Gx(e,r.tagName,!1),c=Sk(e,r);let f=Wd(e,r);return fk.has(r.tagName)&&(f=f.filter(function(p){return typeof p=="string"?!VS(p):!0})),$x(e,c,u,r),Jd(c,f),e.ancestors.pop(),e.schema=a,e.create(r,u,c,l)}function mk(e,r){if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Ha(e,r.position)}function gk(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);Ha(e,r.position)}function bk(e,r,l){const a=e.schema;let s=a;r.name==="svg"&&a.space==="html"&&(s=Zd,e.schema=s),e.ancestors.push(r);const u=r.name===null?e.Fragment:Gx(e,r.name,!0),c=kk(e,r),f=Wd(e,r);return $x(e,c,u,r),Jd(c,f),e.ancestors.pop(),e.schema=a,e.create(r,u,c,l)}function yk(e,r,l){const a={};return Jd(a,Wd(e,r)),e.create(r,e.Fragment,a,l)}function xk(e,r){return r.value}function $x(e,r,l,a){typeof l!="string"&&l!==e.Fragment&&e.passNode&&(r.node=a)}function Jd(e,r){if(r.length>0){const l=r.length>1?r:r[0];l&&(e.children=l)}}function vk(e,r,l){return a;function a(s,u,c,f){const h=Array.isArray(c.children)?l:r;return f?h(u,c,f):h(u,c)}}function wk(e,r){return l;function l(a,s,u,c){const f=Array.isArray(u.children),p=Kd(a);return r(s,u,c,f,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function Sk(e,r){const l={};let a,s;for(s in r.properties)if(s!=="children"&&Qd.call(r.properties,s)){const u=Ek(e,s,r.properties[s]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&dk.has(r.tagName)?a=f:l[c]=f}}if(a){const u=l.style||(l.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return l}function kk(e,r){const l={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(l,e.evaluater.evaluateExpression(f.argument))}else Ha(e,r.position);else{const s=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else Ha(e,r.position);else u=a.value===null?!0:a.value;l[s]=u}return l}function Wd(e,r){const l=[];let a=-1;const s=e.passKeys?new Map:uk;for(;++a<r.children.length;){const u=r.children[a];let c;if(e.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 f=Vx(e,u,c);f!==void 0&&l.push(f)}return l}function Ek(e,r,l){const a=QS(e.schema,r);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=a.commaSeparated?IS(l):tk(l)),a.property==="style"){let s=typeof l=="object"?l:Ck(e,String(l));return e.stylePropertyNameCase==="css"&&(s=Tk(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&a.space?XS[a.property]||a.property:a.attribute,l]}}function Ck(e,r){try{return ok(r,{reactCompat:!0})}catch(l){if(e.ignoreInvalidStyle)return{};const a=l,s=new qt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Px+"#cannot-parse-style-attribute",s}}function Gx(e,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 f=Eb(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}a=c}else a=Eb(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(a.type==="Literal"){const s=a.value;return Qd.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ha(e)}function Ha(e,r){const l=new qt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Px+"#cannot-handle-mdx-estrees-without-createevaluater",l}function Tk(e){const r={};let l;for(l in e)Qd.call(e,l)&&(r[Ak(l)]=e[l]);return r}function Ak(e){let r=e.replace(ck,Nk);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function Nk(e){return"-"+e.toLowerCase()}const zf={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"]},Rk={};function eh(e,r){const l=Rk,a=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,s=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return Yx(e,a,s)}function Yx(e,r,l){if(_k(e)){if("value"in e)return e.type==="html"&&!l?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ob(e.children,r,l)}return Array.isArray(e)?Ob(e,r,l):""}function Ob(e,r,l){const a=[];let s=-1;for(;++s<e.length;)a[s]=Yx(e[s],r,l);return a.join("")}function _k(e){return!!(e&&typeof e=="object")}const Mb=document.createElement("i");function th(e){const r="&"+e+";";Mb.innerHTML=r;const l=Mb.textContent;return l.charCodeAt(l.length-1)===59&&e!=="semi"||l===r?!1:l}function wn(e,r,l,a){const s=e.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),e.splice(...c);else for(l&&e.splice(r,l);u<a.length;)c=a.slice(u,u+1e4),c.unshift(r,0),e.splice(...c),u+=1e4,r+=1e4}function Ln(e,r){return e.length>0?(wn(e,e.length,0,r),e):r}const zb={}.hasOwnProperty;function Xx(e){const r={};let l=-1;for(;++l<e.length;)jk(r,e[l]);return r}function jk(e,r){let l;for(l in r){const s=(zb.call(e,l)?e[l]:void 0)||(e[l]={}),u=r[l];let c;if(u)for(c in u){zb.call(s,c)||(s[c]=[]);const f=u[c];Lk(s[c],Array.isArray(f)?f:f?[f]:[])}}}function Lk(e,r){let l=-1;const a=[];for(;++l<r.length;)(r[l].add==="after"?e:a).push(r[l]);wn(e,0,0,a)}function Zx(e,r){const l=Number.parseInt(e,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(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xt=tl(/[A-Za-z]/),Ht=tl(/[\dA-Za-z]/),Dk=tl(/[#-'*+\--9=?A-Z^-~]/);function As(e){return e!==null&&(e<32||e===127)}const Sd=tl(/\d/),Ok=tl(/[\dA-Fa-f]/),Mk=tl(/[!-/:-@[-`{-~]/);function Re(e){return e!==null&&e<-2}function it(e){return e!==null&&(e<0||e===32)}function Ie(e){return e===-2||e===-1||e===32}const Js=tl(new RegExp("\\p{P}|\\p{S}","u")),Tl=tl(/\s/);function tl(e){return r;function r(l){return l!==null&&l>-1&&e.test(String.fromCharCode(l))}}function Di(e){const r=[];let l=-1,a=0,s=0;for(;++l<e.length;){const u=e.charCodeAt(l);let c="";if(u===37&&Ht(e.charCodeAt(l+1))&&Ht(e.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 f=e.charCodeAt(l+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),s=1):c="�"}else c=String.fromCharCode(u);c&&(r.push(e.slice(a,l),encodeURIComponent(c)),a=l+s+1,c=""),s&&(l+=s,s=0)}return r.join("")+e.slice(a)}function $e(e,r,l,a){const s=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(p){return Ie(p)?(e.enter(l),f(p)):r(p)}function f(p){return Ie(p)&&u++<s?(e.consume(p),f):(e.exit(l),r(p))}}const zk={tokenize:Bk};function Bk(e){const r=e.attempt(this.parser.constructs.contentInitial,a,s);let l;return r;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),$e(e,r,"linePrefix")}function s(f){return e.enter("paragraph"),u(f)}function u(f){const p=e.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=p),l=p,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Re(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const Fk={tokenize:Ik},Bb={tokenize:Uk};function Ik(e){const r=this,l=[];let a=0,s,u,c;return f;function f(N){if(a<l.length){const B=l[a];return r.containerState=B[1],e.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 q=B,L;for(;q--;)if(r.events[q][0]==="exit"&&r.events[q][1].type==="chunkFlow"){L=r.events[q][1].end;break}E(a);let I=B;for(;I<r.events.length;)r.events[I][1].end={...L},I++;return wn(r.events,q+1,0,r.events.slice(B)),r.events.length=I,h(N)}return f(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={},e.check(Bb,b,g)(N)}function b(N){return s&&C(),E(a),x(N)}function g(N){return r.parser.lazy[r.now().line]=a!==l.length,c=r.now().offset,w(N)}function x(N){return r.containerState={},e.attempt(Bb,v,w)(N)}function v(N){return a++,l.push([r.currentConstruct,r.containerState]),x(N)}function w(N){if(N===null){s&&C(),E(0),e.consume(N);return}return s=s||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),k(N)}function k(N){if(N===null){T(e.exit("chunkFlow"),!0),E(0),e.consume(N);return}return Re(N)?(e.consume(N),T(e.exit("chunkFlow")),a=0,r.interrupt=void 0,f):(e.consume(N),k)}function T(N,B){const q=r.sliceStream(N);if(B&&q.push(null),N.previous=u,u&&(u.next=N),u=N,s.defineSkip(N.start),s.write(q),r.parser.lazy[N.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<c&&(!s.events[L][1].end||s.events[L][1].end.offset>c))return;const I=r.events.length;let $=I,G,M;for(;$--;)if(r.events[$][0]==="exit"&&r.events[$][1].type==="chunkFlow"){if(G){M=r.events[$][1].end;break}G=!0}for(E(a),L=I;L<r.events.length;)r.events[L][1].end={...M},L++;wn(r.events,$+1,0,r.events.slice(I)),r.events.length=L}}function E(N){let B=l.length;for(;B-- >N;){const q=l[B];r.containerState=q[1],q[0].exit.call(r,e)}l.length=N}function C(){s.write([null]),u=void 0,s=void 0,r.containerState._closeFlow=void 0}}function Uk(e,r,l){return $e(e,e.attempt(this.parser.constructs.document,r,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ri(e){if(e===null||it(e)||Tl(e))return 1;if(Js(e))return 2}function Ws(e,r,l){const a=[];let s=-1;for(;++s<e.length;){const u=e[s].resolveAll;u&&!a.includes(u)&&(r=u(r,l),a.push(u))}return r}const kd={name:"attention",resolveAll:Hk,tokenize:qk};function Hk(e,r){let l=-1,a,s,u,c,f,p,h,b;for(;++l<e.length;)if(e[l][0]==="enter"&&e[l][1].type==="attentionSequence"&&e[l][1]._close){for(a=l;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&r.sliceSerialize(e[a][1]).charCodeAt(0)===r.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[a][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;p=e[a][1].end.offset-e[a][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const g={...e[a][1].end},x={...e[l][1].start};Fb(g,-p),Fb(x,p),c={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...e[a][1].end}},f={type:p>1?"strongSequence":"emphasisSequence",start:{...e[l][1].start},end:x},u={type:p>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[l][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[a][1].end={...c.start},e[l][1].start={...f.end},h=[],e[a][1].end.offset-e[a][1].start.offset&&(h=Ln(h,[["enter",e[a][1],r],["exit",e[a][1],r]])),h=Ln(h,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",u,r]]),h=Ln(h,Ws(r.parser.constructs.insideSpan.null,e.slice(a+1,l),r)),h=Ln(h,[["exit",u,r],["enter",f,r],["exit",f,r],["exit",s,r]]),e[l][1].end.offset-e[l][1].start.offset?(b=2,h=Ln(h,[["enter",e[l][1],r],["exit",e[l][1],r]])):b=0,wn(e,a-1,l-a+3,h),l=a+h.length-b-2;break}}for(l=-1;++l<e.length;)e[l][1].type==="attentionSequence"&&(e[l][1].type="data");return e}function qk(e,r){const l=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Ri(a);let u;return c;function c(p){return u=p,e.enter("attentionSequence"),f(p)}function f(p){if(p===u)return e.consume(p),f;const h=e.exit("attentionSequence"),b=Ri(p),g=!b||b===2&&s||l.includes(p),x=!s||s===2&&b||l.includes(a);return h._open=!!(u===42?g:g&&(s||!x)),h._close=!!(u===42?x:x&&(b||!g)),r(p)}}function Fb(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const Pk={name:"autolink",tokenize:Vk};function Vk(e,r,l){let a=0;return s;function s(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(v){return Xt(v)?(e.consume(v),c):v===64?l(v):h(v)}function c(v){return v===43||v===45||v===46||Ht(v)?(a=1,f(v)):h(v)}function f(v){return v===58?(e.consume(v),a=0,p):(v===43||v===45||v===46||Ht(v))&&a++<32?(e.consume(v),f):(a=0,h(v))}function p(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),r):v===null||v===32||v===60||As(v)?l(v):(e.consume(v),p)}function h(v){return v===64?(e.consume(v),b):Dk(v)?(e.consume(v),h):l(v)}function b(v){return Ht(v)?g(v):l(v)}function g(v){return v===46?(e.consume(v),a=0,b):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),r):x(v)}function x(v){if((v===45||Ht(v))&&a++<63){const w=v===45?x:g;return e.consume(v),w}return l(v)}}const Ya={partial:!0,tokenize:$k};function $k(e,r,l){return a;function a(u){return Ie(u)?$e(e,s,"linePrefix")(u):s(u)}function s(u){return u===null||Re(u)?r(u):l(u)}}const Kx={continuation:{tokenize:Yk},exit:Xk,name:"blockQuote",tokenize:Gk};function Gk(e,r,l){const a=this;return s;function s(c){if(c===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return l(c)}function u(c){return Ie(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(c))}}function Yk(e,r,l){const a=this;return s;function s(c){return Ie(c)?$e(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(Kx,r,l)(c)}}function Xk(e){e.exit("blockQuote")}const Qx={name:"characterEscape",tokenize:Zk};function Zk(e,r,l){return a;function a(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),s}function s(u){return Mk(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):l(u)}}const Jx={name:"characterReference",tokenize:Kk};function Kk(e,r,l){const a=this;let s=0,u,c;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),p}function p(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),u=31,c=Ht,b(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=Ok,b):(e.enter("characterReferenceValue"),u=7,c=Sd,b(g))}function b(g){if(g===59&&s){const x=e.exit("characterReferenceValue");return c===Ht&&!th(a.sliceSerialize(x))?l(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return c(g)&&s++<u?(e.consume(g),b):l(g)}}const Ib={partial:!0,tokenize:Jk},Ub={concrete:!0,name:"codeFenced",tokenize:Qk};function Qk(e,r,l){const a=this,s={partial:!0,tokenize:q};let u=0,c=0,f;return p;function p(L){return h(L)}function h(L){const I=a.events[a.events.length-1];return u=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,f=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(L)}function b(L){return L===f?(c++,e.consume(L),b):c<3?l(L):(e.exit("codeFencedFenceSequence"),Ie(L)?$e(e,g,"whitespace")(L):g(L))}function g(L){return L===null||Re(L)?(e.exit("codeFencedFence"),a.interrupt?r(L):e.check(Ib,k,B)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(L))}function x(L){return L===null||Re(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(L)):Ie(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$e(e,v,"whitespace")(L)):L===96&&L===f?l(L):(e.consume(L),x)}function v(L){return L===null||Re(L)?g(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===null||Re(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(L)):L===96&&L===f?l(L):(e.consume(L),w)}function k(L){return e.attempt(s,B,T)(L)}function T(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),E}function E(L){return u>0&&Ie(L)?$e(e,C,"linePrefix",u+1)(L):C(L)}function C(L){return L===null||Re(L)?e.check(Ib,k,B)(L):(e.enter("codeFlowValue"),N(L))}function N(L){return L===null||Re(L)?(e.exit("codeFlowValue"),C(L)):(e.consume(L),N)}function B(L){return e.exit("codeFenced"),r(L)}function q(L,I,$){let G=0;return M;function M(X){return L.enter("lineEnding"),L.consume(X),L.exit("lineEnding"),V}function V(X){return L.enter("codeFencedFence"),Ie(X)?$e(L,Y,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):Y(X)}function Y(X){return X===f?(L.enter("codeFencedFenceSequence"),J(X)):$(X)}function J(X){return X===f?(G++,L.consume(X),J):G>=c?(L.exit("codeFencedFenceSequence"),Ie(X)?$e(L,U,"whitespace")(X):U(X)):$(X)}function U(X){return X===null||Re(X)?(L.exit("codeFencedFence"),I(X)):$(X)}}}function Jk(e,r,l){const a=this;return s;function s(c){return c===null?l(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?l(c):r(c)}}const Bf={name:"codeIndented",tokenize:eE},Wk={partial:!0,tokenize:tE};function eE(e,r,l){const a=this;return s;function s(h){return e.enter("codeIndented"),$e(e,u,"linePrefix",5)(h)}function u(h){const b=a.events[a.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(h):l(h)}function c(h){return h===null?p(h):Re(h)?e.attempt(Wk,c,p)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||Re(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),f)}function p(h){return e.exit("codeIndented"),r(h)}}function tE(e,r,l){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?l(c):Re(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):$e(e,u,"linePrefix",5)(c)}function u(c){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):Re(c)?s(c):l(c)}}const nE={name:"codeText",previous:lE,resolve:rE,tokenize:iE};function rE(e){let r=e.length-4,l=3,a,s;if((e[l][1].type==="lineEnding"||e[l][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(a=l;++a<r;)if(e[a][1].type==="codeTextData"){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(a=l-1,r++;++a<=r;)s===void 0?a!==r&&e[a][1].type!=="lineEnding"&&(s=a):(a===r||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),r-=a-s-2,a=s+2),s=void 0);return e}function lE(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function iE(e,r,l){let a=0,s,u;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),a++,f):(e.exit("codeTextSequence"),p(g))}function p(g){return g===null?l(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),p):g===96?(u=e.enter("codeTextSequence"),s=0,b(g)):Re(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Re(g)?(e.exit("codeTextData"),p(g)):(e.consume(g),h)}function b(g){return g===96?(e.consume(g),s++,b):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),r(g)):(u.type="codeTextData",h(g))}}class aE{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&&Ra(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),Ra(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Ra(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);Ra(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Ra(this.left,l.reverse())}}}function Ra(e,r){let l=0;if(r.length<1e4)e.push(...r);else for(;l<r.length;)e.push(...r.slice(l,l+1e4)),l+=1e4}function Wx(e){const r={};let l=-1,a,s,u,c,f,p,h;const b=new aE(e);for(;++l<b.length;){for(;l in r;)l=r[l];if(a=b.get(l),l&&a[1].type==="chunkFlow"&&b.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,oE(b,l)),l=r[l],h=!0);else if(a[1]._container){for(u=l,s=void 0;u--;)if(c=b.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(b.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={...b.get(s)[1].start},f=b.slice(s,l),f.unshift(a),b.splice(s,l-s+1,f))}}return wn(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!h}function oE(e,r){const l=e.get(r)[1],a=e.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 f=c.events,p=[],h={};let b,g,x=-1,v=l,w=0,k=0;const T=[k];for(;v;){for(;e.get(++s)[1]!==v;);u.push(s),v._tokenizer||(b=a.sliceStream(v),v.next||b.push(null),g&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=l;++x<f.length;)f[x][0]==="exit"&&f[x-1][0]==="enter"&&f[x][1].type===f[x-1][1].type&&f[x][1].start.line!==f[x][1].end.line&&(k=x+1,T.push(k),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):T.pop(),x=T.length;x--;){const E=f.slice(T[x],T[x+1]),C=u.pop();p.push([C,C+E.length-1]),e.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 sE={resolve:cE,tokenize:fE},uE={partial:!0,tokenize:dE};function cE(e){return Wx(e),e}function fE(e,r){let l;return a;function a(f){return e.enter("content"),l=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?u(f):Re(f)?e.check(uE,c,u)(f):(e.consume(f),s)}function u(f){return e.exit("chunkContent"),e.exit("content"),r(f)}function c(f){return e.consume(f),e.exit("chunkContent"),l.next=e.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,s}}function dE(e,r,l){const a=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),$e(e,u,"linePrefix")}function u(c){if(c===null||Re(c))return l(c);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):e.interrupt(a.parser.constructs.flow,l,r)(c)}}function e1(e,r,l,a,s,u,c,f,p){const h=p||Number.POSITIVE_INFINITY;let b=0;return g;function g(E){return E===60?(e.enter(a),e.enter(s),e.enter(u),e.consume(E),e.exit(u),x):E===null||E===32||E===41||As(E)?l(E):(e.enter(a),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),k(E))}function x(E){return E===62?(e.enter(u),e.consume(E),e.exit(u),e.exit(s),e.exit(a),r):(e.enter(f),e.enter("chunkString",{contentType:"string"}),v(E))}function v(E){return E===62?(e.exit("chunkString"),e.exit(f),x(E)):E===null||E===60||Re(E)?l(E):(e.consume(E),E===92?w:v)}function w(E){return E===60||E===62||E===92?(e.consume(E),v):v(E)}function k(E){return!b&&(E===null||E===41||it(E))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(a),r(E)):b<h&&E===40?(e.consume(E),b++,k):E===41?(e.consume(E),b--,k):E===null||E===32||E===40||As(E)?l(E):(e.consume(E),E===92?T:k)}function T(E){return E===40||E===41||E===92?(e.consume(E),k):k(E)}}function t1(e,r,l,a,s,u){const c=this;let f=0,p;return h;function h(v){return e.enter(a),e.enter(s),e.consume(v),e.exit(s),e.enter(u),b}function b(v){return f>999||v===null||v===91||v===93&&!p||v===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?l(v):v===93?(e.exit(u),e.enter(s),e.consume(v),e.exit(s),e.exit(a),r):Re(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||Re(v)||f++>999?(e.exit("chunkString"),b(v)):(e.consume(v),p||(p=!Ie(v)),v===92?x:g)}function x(v){return v===91||v===92||v===93?(e.consume(v),f++,g):g(v)}}function n1(e,r,l,a,s,u){let c;return f;function f(x){return x===34||x===39||x===40?(e.enter(a),e.enter(s),e.consume(x),e.exit(s),c=x===40?41:x,p):l(x)}function p(x){return x===c?(e.enter(s),e.consume(x),e.exit(s),e.exit(a),r):(e.enter(u),h(x))}function h(x){return x===c?(e.exit(u),p(c)):x===null?l(x):Re(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),$e(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(x))}function b(x){return x===c||x===null||Re(x)?(e.exit("chunkString"),h(x)):(e.consume(x),x===92?g:b)}function g(x){return x===c||x===92?(e.consume(x),b):b(x)}}function Ma(e,r){let l;return a;function a(s){return Re(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l=!0,a):Ie(s)?$e(e,a,l?"linePrefix":"lineSuffix")(s):r(s)}}const hE={name:"definition",tokenize:mE},pE={partial:!0,tokenize:gE};function mE(e,r,l){const a=this;let s;return u;function u(v){return e.enter("definition"),c(v)}function c(v){return t1.call(a,e,f,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return s=Fn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),p):l(v)}function p(v){return it(v)?Ma(e,h)(v):h(v)}function h(v){return e1(e,b,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function b(v){return e.attempt(pE,g,g)(v)}function g(v){return Ie(v)?$e(e,x,"whitespace")(v):x(v)}function x(v){return v===null||Re(v)?(e.exit("definition"),a.parser.defined.push(s),r(v)):l(v)}}function gE(e,r,l){return a;function a(f){return it(f)?Ma(e,s)(f):l(f)}function s(f){return n1(e,u,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Ie(f)?$e(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Re(f)?r(f):l(f)}}const bE={name:"hardBreakEscape",tokenize:yE};function yE(e,r,l){return a;function a(u){return e.enter("hardBreakEscape"),e.consume(u),s}function s(u){return Re(u)?(e.exit("hardBreakEscape"),r(u)):l(u)}}const xE={name:"headingAtx",resolve:vE,tokenize:wE};function vE(e,r){let l=e.length-2,a=3,s,u;return e[a][1].type==="whitespace"&&(a+=2),l-2>a&&e[l][1].type==="whitespace"&&(l-=2),e[l][1].type==="atxHeadingSequence"&&(a===l-1||l-4>a&&e[l-2][1].type==="whitespace")&&(l-=a+1===l?2:4),l>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[l][1].end},u={type:"chunkText",start:e[a][1].start,end:e[l][1].end,contentType:"text"},wn(e,a,l-a+1,[["enter",s,r],["enter",u,r],["exit",u,r],["exit",s,r]])),e}function wE(e,r,l){let a=0;return s;function s(b){return e.enter("atxHeading"),u(b)}function u(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&a++<6?(e.consume(b),c):b===null||it(b)?(e.exit("atxHeadingSequence"),f(b)):l(b)}function f(b){return b===35?(e.enter("atxHeadingSequence"),p(b)):b===null||Re(b)?(e.exit("atxHeading"),r(b)):Ie(b)?$e(e,f,"whitespace")(b):(e.enter("atxHeadingText"),h(b))}function p(b){return b===35?(e.consume(b),p):(e.exit("atxHeadingSequence"),f(b))}function h(b){return b===null||b===35||it(b)?(e.exit("atxHeadingText"),f(b)):(e.consume(b),h)}}const SE=["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"],Hb=["pre","script","style","textarea"],kE={concrete:!0,name:"htmlFlow",resolveTo:TE,tokenize:AE},EE={partial:!0,tokenize:RE},CE={partial:!0,tokenize:NE};function TE(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function AE(e,r,l){const a=this;let s,u,c,f,p;return h;function h(A){return b(A)}function b(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),g}function g(A){return A===33?(e.consume(A),x):A===47?(e.consume(A),u=!0,k):A===63?(e.consume(A),s=3,a.interrupt?r:_):Xt(A)?(e.consume(A),c=String.fromCharCode(A),T):l(A)}function x(A){return A===45?(e.consume(A),s=2,v):A===91?(e.consume(A),s=5,f=0,w):Xt(A)?(e.consume(A),s=4,a.interrupt?r:_):l(A)}function v(A){return A===45?(e.consume(A),a.interrupt?r:_):l(A)}function w(A){const le="CDATA[";return A===le.charCodeAt(f++)?(e.consume(A),f===le.length?a.interrupt?r:Y:w):l(A)}function k(A){return Xt(A)?(e.consume(A),c=String.fromCharCode(A),T):l(A)}function T(A){if(A===null||A===47||A===62||it(A)){const le=A===47,ce=c.toLowerCase();return!le&&!u&&Hb.includes(ce)?(s=1,a.interrupt?r(A):Y(A)):SE.includes(c.toLowerCase())?(s=6,le?(e.consume(A),E):a.interrupt?r(A):Y(A)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?l(A):u?C(A):N(A))}return A===45||Ht(A)?(e.consume(A),c+=String.fromCharCode(A),T):l(A)}function E(A){return A===62?(e.consume(A),a.interrupt?r:Y):l(A)}function C(A){return Ie(A)?(e.consume(A),C):M(A)}function N(A){return A===47?(e.consume(A),M):A===58||A===95||Xt(A)?(e.consume(A),B):Ie(A)?(e.consume(A),N):M(A)}function B(A){return A===45||A===46||A===58||A===95||Ht(A)?(e.consume(A),B):q(A)}function q(A){return A===61?(e.consume(A),L):Ie(A)?(e.consume(A),q):N(A)}function L(A){return A===null||A===60||A===61||A===62||A===96?l(A):A===34||A===39?(e.consume(A),p=A,I):Ie(A)?(e.consume(A),L):$(A)}function I(A){return A===p?(e.consume(A),p=null,G):A===null||Re(A)?l(A):(e.consume(A),I)}function $(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||it(A)?q(A):(e.consume(A),$)}function G(A){return A===47||A===62||Ie(A)?N(A):l(A)}function M(A){return A===62?(e.consume(A),V):l(A)}function V(A){return A===null||Re(A)?Y(A):Ie(A)?(e.consume(A),V):l(A)}function Y(A){return A===45&&s===2?(e.consume(A),F):A===60&&s===1?(e.consume(A),O):A===62&&s===4?(e.consume(A),D):A===63&&s===3?(e.consume(A),_):A===93&&s===5?(e.consume(A),K):Re(A)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(EE,H,J)(A)):A===null||Re(A)?(e.exit("htmlFlowData"),J(A)):(e.consume(A),Y)}function J(A){return e.check(CE,U,H)(A)}function U(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),X}function X(A){return A===null||Re(A)?J(A):(e.enter("htmlFlowData"),Y(A))}function F(A){return A===45?(e.consume(A),_):Y(A)}function O(A){return A===47?(e.consume(A),c="",z):Y(A)}function z(A){if(A===62){const le=c.toLowerCase();return Hb.includes(le)?(e.consume(A),D):Y(A)}return Xt(A)&&c.length<8?(e.consume(A),c+=String.fromCharCode(A),z):Y(A)}function K(A){return A===93?(e.consume(A),_):Y(A)}function _(A){return A===62?(e.consume(A),D):A===45&&s===2?(e.consume(A),_):Y(A)}function D(A){return A===null||Re(A)?(e.exit("htmlFlowData"),H(A)):(e.consume(A),D)}function H(A){return e.exit("htmlFlow"),r(A)}}function NE(e,r,l){const a=this;return s;function s(c){return Re(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):l(c)}function u(c){return a.parser.lazy[a.now().line]?l(c):r(c)}}function RE(e,r,l){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Ya,r,l)}}const _E={name:"htmlText",tokenize:jE};function jE(e,r,l){const a=this;let s,u,c;return f;function f(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),p}function p(_){return _===33?(e.consume(_),h):_===47?(e.consume(_),q):_===63?(e.consume(_),N):Xt(_)?(e.consume(_),$):l(_)}function h(_){return _===45?(e.consume(_),b):_===91?(e.consume(_),u=0,w):Xt(_)?(e.consume(_),C):l(_)}function b(_){return _===45?(e.consume(_),v):l(_)}function g(_){return _===null?l(_):_===45?(e.consume(_),x):Re(_)?(c=g,O(_)):(e.consume(_),g)}function x(_){return _===45?(e.consume(_),v):g(_)}function v(_){return _===62?F(_):_===45?x(_):g(_)}function w(_){const D="CDATA[";return _===D.charCodeAt(u++)?(e.consume(_),u===D.length?k:w):l(_)}function k(_){return _===null?l(_):_===93?(e.consume(_),T):Re(_)?(c=k,O(_)):(e.consume(_),k)}function T(_){return _===93?(e.consume(_),E):k(_)}function E(_){return _===62?F(_):_===93?(e.consume(_),E):k(_)}function C(_){return _===null||_===62?F(_):Re(_)?(c=C,O(_)):(e.consume(_),C)}function N(_){return _===null?l(_):_===63?(e.consume(_),B):Re(_)?(c=N,O(_)):(e.consume(_),N)}function B(_){return _===62?F(_):N(_)}function q(_){return Xt(_)?(e.consume(_),L):l(_)}function L(_){return _===45||Ht(_)?(e.consume(_),L):I(_)}function I(_){return Re(_)?(c=I,O(_)):Ie(_)?(e.consume(_),I):F(_)}function $(_){return _===45||Ht(_)?(e.consume(_),$):_===47||_===62||it(_)?G(_):l(_)}function G(_){return _===47?(e.consume(_),F):_===58||_===95||Xt(_)?(e.consume(_),M):Re(_)?(c=G,O(_)):Ie(_)?(e.consume(_),G):F(_)}function M(_){return _===45||_===46||_===58||_===95||Ht(_)?(e.consume(_),M):V(_)}function V(_){return _===61?(e.consume(_),Y):Re(_)?(c=V,O(_)):Ie(_)?(e.consume(_),V):G(_)}function Y(_){return _===null||_===60||_===61||_===62||_===96?l(_):_===34||_===39?(e.consume(_),s=_,J):Re(_)?(c=Y,O(_)):Ie(_)?(e.consume(_),Y):(e.consume(_),U)}function J(_){return _===s?(e.consume(_),s=void 0,X):_===null?l(_):Re(_)?(c=J,O(_)):(e.consume(_),J)}function U(_){return _===null||_===34||_===39||_===60||_===61||_===96?l(_):_===47||_===62||it(_)?G(_):(e.consume(_),U)}function X(_){return _===47||_===62||it(_)?G(_):l(_)}function F(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),r):l(_)}function O(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),z}function z(_){return Ie(_)?$e(e,K,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):K(_)}function K(_){return e.enter("htmlTextData"),c(_)}}const nh={name:"labelEnd",resolveAll:ME,resolveTo:zE,tokenize:BE},LE={tokenize:FE},DE={tokenize:IE},OE={tokenize:UE};function ME(e){let r=-1;const l=[];for(;++r<e.length;){const a=e[r][1];if(l.push(e[r]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",r+=s}}return e.length!==l.length&&wn(e,0,e.length,l),e}function zE(e,r){let l=e.length,a=0,s,u,c,f;for(;l--;)if(s=e[l][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[l][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[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:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[u+a+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",p,r],["enter",h,r]],f=Ln(f,e.slice(u+1,u+a+3)),f=Ln(f,[["enter",b,r]]),f=Ln(f,Ws(r.parser.constructs.insideSpan.null,e.slice(u+a+4,c-3),r)),f=Ln(f,[["exit",b,r],e[c-2],e[c-1],["exit",h,r]]),f=Ln(f,e.slice(c+1)),f=Ln(f,[["exit",p,r]]),wn(e,u,e.length,f),e}function BE(e,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 f;function f(x){return u?u._inactive?g(x):(c=a.parser.defined.includes(Fn(a.sliceSerialize({start:u.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),p):l(x)}function p(x){return x===40?e.attempt(LE,b,c?b:g)(x):x===91?e.attempt(DE,b,c?h:g)(x):c?b(x):g(x)}function h(x){return e.attempt(OE,b,g)(x)}function b(x){return r(x)}function g(x){return u._balanced=!0,l(x)}}function FE(e,r,l){return a;function a(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return it(g)?Ma(e,u)(g):u(g)}function u(g){return g===41?b(g):e1(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return it(g)?Ma(e,p)(g):b(g)}function f(g){return l(g)}function p(g){return g===34||g===39||g===40?n1(e,h,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):b(g)}function h(g){return it(g)?Ma(e,b)(g):b(g)}function b(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),r):l(g)}}function IE(e,r,l){const a=this;return s;function s(f){return t1.call(a,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return a.parser.defined.includes(Fn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?r(f):l(f)}function c(f){return l(f)}}function UE(e,r,l){return a;function a(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),s}function s(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),r):l(u)}}const HE={name:"labelStartImage",resolveAll:nh.resolveAll,tokenize:qE};function qE(e,r,l){const a=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):l(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(f):r(f)}}const PE={name:"labelStartLink",resolveAll:nh.resolveAll,tokenize:VE};function VE(e,r,l){const a=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(c):r(c)}}const Ff={name:"lineEnding",tokenize:$E};function $E(e,r){return l;function l(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$e(e,r,"linePrefix")}}const Es={name:"thematicBreak",tokenize:GE};function GE(e,r,l){let a=0,s;return u;function u(h){return e.enter("thematicBreak"),c(h)}function c(h){return s=h,f(h)}function f(h){return h===s?(e.enter("thematicBreakSequence"),p(h)):a>=3&&(h===null||Re(h))?(e.exit("thematicBreak"),r(h)):l(h)}function p(h){return h===s?(e.consume(h),a++,p):(e.exit("thematicBreakSequence"),Ie(h)?$e(e,f,"whitespace")(h):f(h))}}const rn={continuation:{tokenize:KE},exit:JE,name:"list",tokenize:ZE},YE={partial:!0,tokenize:WE},XE={partial:!0,tokenize:QE};function ZE(e,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 f;function f(v){const w=a.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||v===a.containerState.marker:Sd(v)){if(a.containerState.type||(a.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(Es,l,h)(v):h(v);if(!a.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(v)}return l(v)}function p(v){return Sd(v)&&++c<10?(e.consume(v),p):(!a.interrupt||c<2)&&(a.containerState.marker?v===a.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),h(v)):l(v)}function h(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||v,e.check(Ya,a.interrupt?l:b,e.attempt(YE,x,g))}function b(v){return a.containerState.initialBlankLine=!0,u++,x(v)}function g(v){return Ie(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),x):l(v)}function x(v){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(v)}}function KE(e,r,l){const a=this;return a.containerState._closeFlow=void 0,e.check(Ya,s,u);function s(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,$e(e,r,"listItemIndent",a.containerState.size+1)(f)}function u(f){return a.containerState.furtherBlankLines||!Ie(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(XE,r,c)(f))}function c(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,$e(e,e.attempt(rn,r,l),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function QE(e,r,l){const a=this;return $e(e,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 JE(e){e.exit(this.containerState.type)}function WE(e,r,l){const a=this;return $e(e,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 qb={name:"setextUnderline",resolveTo:eC,tokenize:tC};function eC(e,r){let l=e.length,a,s,u;for(;l--;)if(e[l][0]==="enter"){if(e[l][1].type==="content"){a=l;break}e[l][1].type==="paragraph"&&(s=l)}else e[l][1].type==="content"&&e.splice(l,1),!u&&e[l][1].type==="definition"&&(u=l);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",u?(e.splice(s,0,["enter",c,r]),e.splice(u+1,0,["exit",e[a][1],r]),e[a][1].end={...e[u][1].end}):e[a][1]=c,e.push(["exit",c,r]),e}function tC(e,r,l){const a=this;let s;return u;function u(h){let b=a.events.length,g;for(;b--;)if(a.events[b][1].type!=="lineEnding"&&a.events[b][1].type!=="linePrefix"&&a.events[b][1].type!=="content"){g=a.events[b][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(e.enter("setextHeadingLine"),s=h,c(h)):l(h)}function c(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===s?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),Ie(h)?$e(e,p,"lineSuffix")(h):p(h))}function p(h){return h===null||Re(h)?(e.exit("setextHeadingLine"),r(h)):l(h)}}const nC={tokenize:rC};function rC(e){const r=this,l=e.attempt(Ya,a,e.attempt(this.parser.constructs.flowInitial,s,$e(e,e.attempt(this.parser.constructs.flow,s,e.attempt(sE,s)),"linePrefix")));return l;function a(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),r.currentConstruct=void 0,l}function s(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r.currentConstruct=void 0,l}}const lC={resolveAll:l1()},iC=r1("string"),aC=r1("text");function r1(e){return{resolveAll:l1(e==="text"?oC:void 0),tokenize:r};function r(l){const a=this,s=this.parser.constructs[e],u=l.attempt(s,c,f);return c;function c(b){return h(b)?u(b):f(b)}function f(b){if(b===null){l.consume(b);return}return l.enter("data"),l.consume(b),p}function p(b){return h(b)?(l.exit("data"),u(b)):(l.consume(b),p)}function h(b){if(b===null)return!0;const g=s[b];let x=-1;if(g)for(;++x<g.length;){const v=g[x];if(!v.previous||v.previous.call(a,a.previous))return!0}return!1}}}function l1(e){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 e?e(l,a):l}}function oC(e,r){let l=0;for(;++l<=e.length;)if((l===e.length||e[l][1].type==="lineEnding")&&e[l-1][1].type==="data"){const a=e[l-1][1],s=r.sliceStream(a);let u=s.length,c=-1,f=0,p;for(;u--;){const h=s[u];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(h===-2)p=!0,f++;else if(h!==-1){u++;break}}if(r._contentTypeTextTrailing&&l===e.length&&(f=0),f){const h={type:l===e.length||p||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...h.start},a.start.offset===a.end.offset?Object.assign(a,h):(e.splice(l,0,["enter",h,r],["exit",h,r]),l+=2)}l++}return e}const sC={42:rn,43:rn,45:rn,48:rn,49:rn,50:rn,51:rn,52:rn,53:rn,54:rn,55:rn,56:rn,57:rn,62:Kx},uC={91:hE},cC={[-2]:Bf,[-1]:Bf,32:Bf},fC={35:xE,42:Es,45:[qb,Es],60:kE,61:qb,95:Es,96:Ub,126:Ub},dC={38:Jx,92:Qx},hC={[-5]:Ff,[-4]:Ff,[-3]:Ff,33:HE,38:Jx,42:kd,60:[Pk,_E],91:PE,92:[bE,Qx],93:nh,95:kd,96:nE},pC={null:[kd,lC]},mC={null:[42,95]},gC={null:[]},bC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:mC,contentInitial:uC,disable:gC,document:sC,flow:fC,flowInitial:cC,insideSpan:pC,string:dC,text:hC},Symbol.toStringTag,{value:"Module"}));function yC(e,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=[],f=[];const p={attempt:I(q),check:I(L),consume:C,enter:N,exit:B,interrupt:I(L,{interrupt:!0})},h={code:null,containerState:{},defineSkip:k,events:[],now:w,parser:e,previous:null,sliceSerialize:x,sliceStream:v,write:g};let b=r.tokenize.call(h,p);return r.resolveAll&&u.push(r),h;function g(V){return c=Ln(c,V),T(),c[c.length-1]!==null?[]:($(r,0),h.events=Ws(u,h.events,h),h.events)}function x(V,Y){return vC(v(V),Y)}function v(V){return xC(c,V)}function w(){const{_bufferIndex:V,_index:Y,line:J,column:U,offset:X}=a;return{_bufferIndex:V,_index:Y,line:J,column:U,offset:X}}function k(V){s[V.line]=V.column,M()}function T(){let V;for(;a._index<c.length;){const Y=c[a._index];if(typeof Y=="string")for(V=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===V&&a._bufferIndex<Y.length;)E(Y.charCodeAt(a._bufferIndex));else E(Y)}}function E(V){b=b(V)}function C(V){Re(V)?(a.line++,a.column=1,a.offset+=V===-3?2:1,M()):V!==-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=V}function N(V,Y){const J=Y||{};return J.type=V,J.start=w(),h.events.push(["enter",J,h]),f.push(J),J}function B(V){const Y=f.pop();return Y.end=w(),h.events.push(["exit",Y,h]),Y}function q(V,Y){$(V,Y.from)}function L(V,Y){Y.restore()}function I(V,Y){return J;function J(U,X,F){let O,z,K,_;return Array.isArray(U)?H(U):"tokenize"in U?H([U]):D(U);function D(de){return fe;function fe(ge){const he=ge!==null&&de[ge],ve=ge!==null&&de.null,xe=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return H(xe)(ge)}}function H(de){return O=de,z=0,de.length===0?F:A(de[z])}function A(de){return fe;function fe(ge){return _=G(),K=de,de.partial||(h.currentConstruct=de),de.name&&h.parser.constructs.disable.null.includes(de.name)?ce():de.tokenize.call(Y?Object.assign(Object.create(h),Y):h,p,le,ce)(ge)}}function le(de){return V(K,_),X}function ce(de){return _.restore(),++z<O.length?A(O[z]):F}}}function $(V,Y){V.resolveAll&&!u.includes(V)&&u.push(V),V.resolve&&wn(h.events,Y,h.events.length-Y,V.resolve(h.events.slice(Y),h)),V.resolveTo&&(h.events=V.resolveTo(h.events,h))}function G(){const V=w(),Y=h.previous,J=h.currentConstruct,U=h.events.length,X=Array.from(f);return{from:U,restore:F};function F(){a=V,h.previous=Y,h.currentConstruct=J,h.events.length=U,f=X,M()}}function M(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function xC(e,r){const l=r.start._index,a=r.start._bufferIndex,s=r.end._index,u=r.end._bufferIndex;let c;if(l===s)c=[e[l].slice(a,u)];else{if(c=e.slice(l,s),a>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(a):c.shift()}u>0&&c.push(e[s].slice(0,u))}return c}function vC(e,r){let l=-1;const a=[];let s;for(;++l<e.length;){const u=e[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 wC(e){const a={constructs:Xx([bC,...(e||{}).extensions||[]]),content:s(zk),defined:[],document:s(Fk),flow:s(nC),lazy:{},string:s(iC),text:s(aC)};return a;function s(u){return c;function c(f){return yC(a,u,f)}}}function SC(e){for(;!Wx(e););return e}const Pb=/[\0\t\n\r]/g;function kC(){let e=1,r="",l=!0,a;return s;function s(u,c,f){const p=[];let h,b,g,x,v;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),g=0,r="",l&&(u.charCodeAt(0)===65279&&g++,l=void 0);g<u.length;){if(Pb.lastIndex=g,h=Pb.exec(u),x=h&&h.index!==void 0?h.index:u.length,v=u.charCodeAt(x),!h){r=u.slice(g);break}if(v===10&&g===x&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),g<x&&(p.push(u.slice(g,x)),e+=x-g),v){case 0:{p.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,p.push(-2);e++<b;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:a=!0,e=1}g=x+1}return f&&(a&&p.push(-5),r&&p.push(r),p.push(null)),p}}const EC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function CC(e){return e.replace(EC,TC)}function TC(e,r,l){if(r)return r;if(l.charCodeAt(0)===35){const s=l.charCodeAt(1),u=s===120||s===88;return Zx(l.slice(u?2:1),u?16:10)}return th(l)||e}const i1={}.hasOwnProperty;function AC(e,r,l){return typeof r!="string"&&(l=r,r=void 0),NC(l)(SC(wC(l).document().write(kC()(e,r,!0))))}function NC(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(ht),autolinkProtocol:G,autolinkEmail:G,atxHeading:u(Ge),blockQuote:u(ve),characterEscape:G,characterReference:G,codeFenced:u(xe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(xe,c),codeText:u(ye,c),codeTextData:G,data:G,codeFlowValue:G,definition:u(Ce),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Ae),hardBreakEscape:u(Me),hardBreakTrailing:u(Me),htmlFlow:u(Ue,c),htmlFlowData:G,htmlText:u(Ue,c),htmlTextData:G,image:u(_t),label:c,link:u(ht),listItem:u(Pt),listItemValue:x,listOrdered:u(pt,g),listUnordered:u(pt),paragraph:u(Vt),reference:A,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Ge),strong:u($t),thematicBreak:u(wr)},exit:{atxHeading:p(),atxHeadingSequence:q,autolink:p(),autolinkEmail:he,autolinkProtocol:ge,blockQuote:p(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:de,characterReference:fe,codeFenced:p(T),codeFencedFence:k,codeFencedFenceInfo:v,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(Y),hardBreakTrailing:p(Y),htmlFlow:p(J),htmlFlowData:M,htmlText:p(U),htmlTextData:M,image:p(O),label:K,labelText:z,lineEnding:V,link:p(F),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:le,resourceDestinationString:_,resourceTitleString:D,resource:H,setextHeading:p($),setextHeadingLineSequence:I,setextHeadingText:L,strong:p(),thematicBreak:p()}};a1(r,(e||{}).mdastExtensions||[]);const l={};return a;function a(ae){let me={type:"root",children:[]};const Ne={stack:[me],tokenStack:[],config:r,enter:f,exit:h,buffer:c,resume:b,data:l},ze=[];let Ve=-1;for(;++Ve<ae.length;)if(ae[Ve][1].type==="listOrdered"||ae[Ve][1].type==="listUnordered")if(ae[Ve][0]==="enter")ze.push(Ve);else{const jt=ze.pop();Ve=s(ae,jt,Ve)}for(Ve=-1;++Ve<ae.length;){const jt=r[ae[Ve][0]];i1.call(jt,ae[Ve][1].type)&&jt[ae[Ve][1].type].call(Object.assign({sliceSerialize:ae[Ve][2].sliceSerialize},Ne),ae[Ve][1])}if(Ne.tokenStack.length>0){const jt=Ne.tokenStack[Ne.tokenStack.length-1];(jt[1]||Vb).call(Ne,void 0,jt[0])}for(me.position={start:Yr(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:Yr(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<r.transforms.length;)me=r.transforms[Ve](me)||me;return me}function s(ae,me,Ne){let ze=me-1,Ve=-1,jt=!1,un,Lt,mt,At;for(;++ze<=Ne;){const Qe=ae[ze];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?Ve++:Ve--,At=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(un&&!At&&!Ve&&!mt&&(mt=ze),At=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:At=void 0}if(!Ve&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||Ve===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(un){let On=ze;for(Lt=void 0;On--;){const Kt=ae[On];if(Kt[1].type==="lineEnding"||Kt[1].type==="lineEndingBlank"){if(Kt[0]==="exit")continue;Lt&&(ae[Lt][1].type="lineEndingBlank",jt=!0),Kt[1].type="lineEnding",Lt=On}else if(!(Kt[1].type==="linePrefix"||Kt[1].type==="blockQuotePrefix"||Kt[1].type==="blockQuotePrefixWhitespace"||Kt[1].type==="blockQuoteMarker"||Kt[1].type==="listItemIndent"))break}mt&&(!Lt||mt<Lt)&&(un._spread=!0),un.end=Object.assign({},Lt?ae[Lt][1].start:Qe[1].end),ae.splice(Lt||ze,0,["exit",un,Qe[2]]),ze++,Ne++}if(Qe[1].type==="listItemPrefix"){const On={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};un=On,ae.splice(ze,0,["enter",On,Qe[2]]),ze++,Ne++,mt=void 0,At=!0}}}return ae[me][1]._spread=jt,Ne}function u(ae,me){return Ne;function Ne(ze){f.call(this,ae(ze),ze),me&&me.call(this,ze)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(ae,me,Ne){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([me,Ne||void 0]),ae.position={start:Yr(me.start),end:void 0}}function p(ae){return me;function me(Ne){ae&&ae.call(this,Ne),h.call(this,Ne)}}function h(ae,me){const Ne=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==ae.type&&(me?me.call(this,ae,ze[0]):(ze[1]||Vb).call(this,ae,ze[0]));else throw new Error("Cannot close `"+ae.type+"` ("+Oa({start:ae.start,end:ae.end})+"): it’s not open");Ne.position.end=Yr(ae.end)}function b(){return eh(this.stack.pop())}function g(){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 v(){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 T(){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(),Ne=this.stack[this.stack.length-1];Ne.label=me,Ne.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 q(ae){const me=this.stack[this.stack.length-1];if(!me.depth){const Ne=this.sliceSerialize(ae).length;me.depth=Ne}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function I(ae){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function G(ae){const Ne=this.stack[this.stack.length-1].children;let ze=Ne[Ne.length-1];(!ze||ze.type!=="text")&&(ze=at(),ze.position={start:Yr(ae.start),end:void 0},Ne.push(ze)),this.stack.push(ze)}function M(ae){const me=this.stack.pop();me.value+=this.sliceSerialize(ae),me.position.end=Yr(ae.end)}function V(ae){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ne=me.children[me.children.length-1];Ne.position.end=Yr(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(me.type)&&(G.call(this,ae),M.call(this,ae))}function Y(){this.data.atHardBreak=!0}function J(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae}function U(){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 F(){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 O(){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(ae){const me=this.sliceSerialize(ae),Ne=this.stack[this.stack.length-2];Ne.label=CC(me),Ne.identifier=Fn(me).toLowerCase()}function K(){const ae=this.stack[this.stack.length-1],me=this.resume(),Ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ne.type==="link"){const ze=ae.children;Ne.children=ze}else Ne.alt=me}function _(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.url=ae}function D(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.title=ae}function H(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function le(ae){const me=this.resume(),Ne=this.stack[this.stack.length-1];Ne.label=me,Ne.identifier=Fn(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function ce(ae){this.data.characterReferenceType=ae.type}function de(ae){const me=this.sliceSerialize(ae),Ne=this.data.characterReferenceType;let ze;Ne?(ze=Zx(me,Ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=th(me);const Ve=this.stack[this.stack.length-1];Ve.value+=ze}function fe(ae){const me=this.stack.pop();me.position.end=Yr(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 ve(){return{type:"blockquote",children:[]}}function xe(){return{type:"code",lang:null,meta:null,value:""}}function ye(){return{type:"inlineCode",value:""}}function Ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ae(){return{type:"emphasis",children:[]}}function Ge(){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 Pt(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function Vt(){return{type:"paragraph",children:[]}}function $t(){return{type:"strong",children:[]}}function at(){return{type:"text",value:""}}function wr(){return{type:"thematicBreak"}}}function Yr(e){return{line:e.line,column:e.column,offset:e.offset}}function a1(e,r){let l=-1;for(;++l<r.length;){const a=r[l];Array.isArray(a)?a1(e,a):RC(e,a)}}function RC(e,r){let l;for(l in r)if(i1.call(r,l))switch(l){case"canContainEols":{const a=r[l];a&&e[l].push(...a);break}case"transforms":{const a=r[l];a&&e[l].push(...a);break}case"enter":case"exit":{const a=r[l];a&&Object.assign(e[l],a);break}}}function Vb(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+Oa({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+Oa({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Oa({start:r.start,end:r.end})+") is still open")}function _C(e){const r=this;r.parser=l;function l(a){return AC(a,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function jC(e,r){const l={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,l),e.applyData(r,l)}function LC(e,r){const l={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,l),[e.applyData(r,l),{type:"text",value:`
|
|
19
|
-
`}]}function DC(e,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}),e.patch(r,u),u=e.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(r,u),u}function OC(e,r){const l={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function MC(e,r){const l={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function zC(e,r){const l=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(r.identifier).toUpperCase(),s=Di(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);let c,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(a,f);const p={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+s,id:l+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(r,p);const h={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(r,h),e.applyData(r,h)}function BC(e,r){const l={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function FC(e,r){if(e.options.allowDangerousHtml){const l={type:"raw",value:r.value};return e.patch(r,l),e.applyData(r,l)}}function o1(e,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=e.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 IC(e,r){const l=String(r.identifier).toUpperCase(),a=e.definitionById.get(l);if(!a)return o1(e,r);const s={src:Di(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 e.patch(r,u),e.applyData(r,u)}function UC(e,r){const l={src:Di(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 e.patch(r,a),e.applyData(r,a)}function HC(e,r){const l={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,l);const a={type:"element",tagName:"code",properties:{},children:[l]};return e.patch(r,a),e.applyData(r,a)}function qC(e,r){const l=String(r.identifier).toUpperCase(),a=e.definitionById.get(l);if(!a)return o1(e,r);const s={href:Di(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"a",properties:s,children:e.all(r)};return e.patch(r,u),e.applyData(r,u)}function PC(e,r){const l={href:Di(r.url)};r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"a",properties:l,children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function VC(e,r,l){const a=e.all(r),s=l?$C(l):s1(r),u={},c=[];if(typeof r.checked=="boolean"){const b=a[0];let g;b&&b.type==="element"&&b.tagName==="p"?g=b:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const b=a[f];(s||f!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
|
|
21
|
-
`}),b.type==="element"&&b.tagName==="p"&&!s?c.push(...b.children):c.push(b)}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 e.patch(r,h),e.applyData(r,h)}function $C(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const l=e.children;let a=-1;for(;!r&&++a<l.length;)r=s1(l[a])}return r}function s1(e){const r=e.spread;return r??e.children.length>1}function GC(e,r){const l={},a=e.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:e.wrap(a,!0)};return e.patch(r,u),e.applyData(r,u)}function YC(e,r){const l={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function XC(e,r){const l={type:"root",children:e.wrap(e.all(r))};return e.patch(r,l),e.applyData(r,l)}function ZC(e,r){const l={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function KC(e,r){const l=e.all(r),a=l.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(r.children[0],c),s.push(c)}if(l.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(l,!0)},f=Kd(r.children[1]),p=Hx(r.children[r.children.length-1]);f&&p&&(c.position={start:f,end:p}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(r,u),e.applyData(r,u)}function QC(e,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,f=c?c.length:r.children.length;let p=-1;const h=[];for(;++p<f;){const g=r.children[p],x={},v=c?c[p]:void 0;v&&(x.align=v);let w={type:"element",tagName:u,properties:x,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),h.push(w)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(r,b),e.applyData(r,b)}function JC(e,r){const l={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}const $b=9,Gb=32;function WC(e){const r=String(e),l=/\r?\n|\r/g;let a=l.exec(r),s=0;const u=[];for(;a;)u.push(Yb(r.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=l.exec(r);return u.push(Yb(r.slice(s),s>0,!1)),u.join("")}function Yb(e,r,l){let a=0,s=e.length;if(r){let u=e.codePointAt(a);for(;u===$b||u===Gb;)a++,u=e.codePointAt(a)}if(l){let u=e.codePointAt(s-1);for(;u===$b||u===Gb;)s--,u=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function e3(e,r){const l={type:"text",value:WC(String(r.value))};return e.patch(r,l),e.applyData(r,l)}function t3(e,r){const l={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,l),e.applyData(r,l)}const n3={blockquote:jC,break:LC,code:DC,delete:OC,emphasis:MC,footnoteReference:zC,heading:BC,html:FC,imageReference:IC,image:UC,inlineCode:HC,linkReference:qC,link:PC,listItem:VC,list:GC,paragraph:YC,root:XC,strong:ZC,table:KC,tableCell:JC,tableRow:QC,text:e3,thematicBreak:t3,toml:ps,yaml:ps,definition:ps,footnoteDefinition:ps};function ps(){}const u1=-1,eu=0,za=1,Ns=2,rh=3,lh=4,ih=5,ah=6,c1=7,f1=8,Xb=typeof self=="object"?self:globalThis,r3=(e,r)=>{const l=(s,u)=>(e.set(u,s),s),a=s=>{if(e.has(s))return e.get(s);const[u,c]=r[s];switch(u){case eu:case u1:return l(c,s);case za:{const f=l([],s);for(const p of c)f.push(a(p));return f}case Ns:{const f=l({},s);for(const[p,h]of c)f[a(p)]=a(h);return f}case rh:return l(new Date(c),s);case lh:{const{source:f,flags:p}=c;return l(new RegExp(f,p),s)}case ih:{const f=l(new Map,s);for(const[p,h]of c)f.set(a(p),a(h));return f}case ah:{const f=l(new Set,s);for(const p of c)f.add(a(p));return f}case c1:{const{name:f,message:p}=c;return l(new Xb[f](p),s)}case f1: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:f}=new Uint8Array(c);return l(new DataView(f),c)}}return l(new Xb[u](c),s)};return a},Zb=e=>r3(new Map,e)(0),vi="",{toString:l3}={},{keys:i3}=Object,_a=e=>{const r=typeof e;if(r!=="object"||!e)return[eu,r];const l=l3.call(e).slice(8,-1);switch(l){case"Array":return[za,vi];case"Object":return[Ns,vi];case"Date":return[rh,vi];case"RegExp":return[lh,vi];case"Map":return[ih,vi];case"Set":return[ah,vi];case"DataView":return[za,l]}return l.includes("Array")?[za,l]:l.includes("Error")?[c1,l]:[Ns,l]},ms=([e,r])=>e===eu&&(r==="function"||r==="symbol"),a3=(e,r,l,a)=>{const s=(c,f)=>{const p=a.push(c)-1;return l.set(f,p),p},u=c=>{if(l.has(c))return l.get(c);let[f,p]=_a(c);switch(f){case eu:{let b=c;switch(p){case"bigint":f=f1,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return s([u1],c)}return s([f,b],c)}case za:{if(p){let x=c;return p==="DataView"?x=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(x=new Uint8Array(c)),s([p,[...x]],c)}const b=[],g=s([f,b],c);for(const x of c)b.push(u(x));return g}case Ns:{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 b=[],g=s([f,b],c);for(const x of i3(c))(e||!ms(_a(c[x])))&&b.push([u(x),u(c[x])]);return g}case rh:return s([f,c.toISOString()],c);case lh:{const{source:b,flags:g}=c;return s([f,{source:b,flags:g}],c)}case ih:{const b=[],g=s([f,b],c);for(const[x,v]of c)(e||!(ms(_a(x))||ms(_a(v))))&&b.push([u(x),u(v)]);return g}case ah:{const b=[],g=s([f,b],c);for(const x of c)(e||!ms(_a(x)))&&b.push(u(x));return g}}const{message:h}=c;return s([f,{name:p,message:h}],c)};return u},Kb=(e,{json:r,lossy:l}={})=>{const a=[];return a3(!(r||l),!!r,new Map,a)(e),a},Rs=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?Zb(Kb(e,r)):structuredClone(e):(e,r)=>Zb(Kb(e,r));function o3(e,r){const l=[{type:"text",value:"↩"}];return r>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),l}function s3(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function u3(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=e.options.footnoteBackContent||o3,a=e.options.footnoteBackLabel||s3,s=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let p=-1;for(;++p<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[p]);if(!h)continue;const b=e.all(h),g=String(h.identifier).toUpperCase(),x=Di(g.toLowerCase());let v=0;const w=[],k=e.footnoteCounts.get(g);for(;k!==void 0&&++v<=k;){w.length>0&&w.push({type:"text",value:" "});let C=typeof l=="string"?l:l(p,v);typeof C=="string"&&(C={type:"text",value:C}),w.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+x+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,v),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const T=b[b.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const C=T.children[T.children.length-1];C&&C.type==="text"?C.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...w)}else b.push(...w);const E={type:"element",tagName:"li",properties:{id:r+"fn-"+x},children:e.wrap(b,!0)};e.patch(h,E),f.push(E)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Rs(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
23
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
24
|
-
`}]}}const tu=(function(e){if(e==null)return h3;if(typeof e=="function")return nu(e);if(typeof e=="object")return Array.isArray(e)?c3(e):f3(e);if(typeof e=="string")return d3(e);throw new Error("Expected function, string, or object as test")});function c3(e){const r=[];let l=-1;for(;++l<e.length;)r[l]=tu(e[l]);return nu(a);function a(...s){let u=-1;for(;++u<r.length;)if(r[u].apply(this,s))return!0;return!1}}function f3(e){const r=e;return nu(l);function l(a){const s=a;let u;for(u in e)if(s[u]!==r[u])return!1;return!0}}function d3(e){return nu(r);function r(l){return l&&l.type===e}}function nu(e){return r;function r(l,a,s){return!!(p3(l)&&e.call(this,l,typeof a=="number"?a:void 0,s||void 0))}}function h3(){return!0}function p3(e){return e!==null&&typeof e=="object"&&"type"in e}const d1=[],m3=!0,Ed=!1,g3="skip";function h1(e,r,l,a){let s;typeof r=="function"&&typeof l!="function"?(a=l,l=r):s=r;const u=tu(s),c=a?-1:1;f(e,void 0,[])();function f(p,h,b){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return x;function x(){let v=d1,w,k,T;if((!r||u(p,h,b[b.length-1]||void 0))&&(v=b3(l(p,b)),v[0]===Ed))return v;if("children"in p&&p.children){const E=p;if(E.children&&v[0]!==g3)for(k=(a?E.children.length:-1)+c,T=b.concat(E);k>-1&&k<E.children.length;){const C=E.children[k];if(w=f(C,k,T)(),w[0]===Ed)return w;k=typeof w[1]=="number"?w[1]:k+c}}return v}}}function b3(e){return Array.isArray(e)?e:typeof e=="number"?[m3,e]:e==null?d1:[e]}function oh(e,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),h1(e,u,f,s);function f(p,h){const b=h[h.length-1],g=b?b.children.indexOf(p):void 0;return c(p,g,b)}}const Cd={}.hasOwnProperty,y3={};function x3(e,r){const l=r||y3,a=new Map,s=new Map,u=new Map,c={...n3,...l.handlers},f={all:h,applyData:w3,definitionById:a,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:p,options:l,patch:v3,wrap:k3};return oh(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const g=b.type==="definition"?a:s,x=String(b.identifier).toUpperCase();g.has(x)||g.set(x,b)}}),f;function p(b,g){const x=b.type,v=f.handlers[x];if(Cd.call(f.handlers,x)&&v)return v(f,b,g);if(f.options.passThrough&&f.options.passThrough.includes(x)){if("children"in b){const{children:k,...T}=b,E=Rs(T);return E.children=f.all(b),E}return Rs(b)}return(f.options.unknownHandler||S3)(f,b,g)}function h(b){const g=[];if("children"in b){const x=b.children;let v=-1;for(;++v<x.length;){const w=f.one(x[v],b);if(w){if(v&&x[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Qb(w.value)),!Array.isArray(w)&&w.type==="element")){const k=w.children[0];k&&k.type==="text"&&(k.value=Qb(k.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function v3(e,r){e.position&&(r.position=sk(e))}function w3(e,r){let l=r;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,u=e.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,Rs(u)),"children"in l&&l.children&&s!==null&&s!==void 0&&(l.children=s)}return l}function S3(e,r){const l=r.data||{},a="value"in r&&!(Cd.call(l,"hProperties")||Cd.call(l,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function k3(e,r){const l=[];let a=-1;for(r&&l.push({type:"text",value:`
|
|
25
|
-
`});++a<e.length;)a&&l.push({type:"text",value:`
|
|
26
|
-
`}),l.push(e[a]);return r&&e.length>0&&l.push({type:"text",value:`
|
|
27
|
-
`}),l}function Qb(e){let r=0,l=e.charCodeAt(r);for(;l===9||l===32;)r++,l=e.charCodeAt(r);return e.slice(r)}function Jb(e,r){const l=x3(e,r),a=l.one(e,void 0),s=u3(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 E3(e,r){return e&&"run"in e?async function(l,a){const s=Jb(l,{file:a,...r});await e.run(s,a)}:function(l,a){return Jb(l,{file:a,...e||r})}}function Wb(e){if(e)throw e}var If,ey;function C3(){if(ey)return If;ey=1;var e=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 b=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!b&&!g)return!1;var x;for(x in h);return typeof x>"u"||e.call(h,x)},c=function(h,b){l&&b.name==="__proto__"?l(h,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):h[b.name]=b.newValue},f=function(h,b){if(b==="__proto__")if(e.call(h,b)){if(a)return a(h,b).value}else return;return h[b]};return If=function p(){var h,b,g,x,v,w,k=arguments[0],T=1,E=arguments.length,C=!1;for(typeof k=="boolean"&&(C=k,k=arguments[1]||{},T=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});T<E;++T)if(h=arguments[T],h!=null)for(b in h)g=f(k,b),x=f(h,b),k!==x&&(C&&x&&(u(x)||(v=s(x)))?(v?(v=!1,w=g&&s(g)?g:[]):w=g&&u(g)?g:{},c(k,{name:b,newValue:p(C,w,x)})):typeof x<"u"&&c(k,{name:b,newValue:x}));return k},If}var T3=C3();const Uf=Ys(T3);function Td(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function A3(){const e=[],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);f(null,...s);function f(p,...h){const b=e[++u];let g=-1;if(p){c(p);return}for(;++g<s.length;)(h[g]===null||h[g]===void 0)&&(h[g]=s[g]);s=h,b?N3(b,f)(...h):c(null,...h)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),r}}function N3(e,r){let l;return a;function a(...c){const f=e.length>c.length;let p;f&&c.push(s);try{p=e.apply(this,c)}catch(h){const b=h;if(f&&l)throw b;return s(b)}f||(p&&p.then&&typeof p.then=="function"?p.then(u,s):p instanceof Error?s(p):u(p))}function s(c,...f){l||(l=!0,r(c,...f))}function u(c){s(null,c)}}const Vn={basename:R3,dirname:_3,extname:j3,join:L3,sep:"/"};function R3(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Xa(e);let l=0,a=-1,s=e.length,u;if(r===void 0||r.length===0||r.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(u){l=s+1;break}}else a<0&&(u=!0,a=s+1);return a<0?"":e.slice(l,a)}if(r===e)return"";let c=-1,f=r.length-1;for(;s--;)if(e.codePointAt(s)===47){if(u){l=s+1;break}}else c<0&&(u=!0,c=s+1),f>-1&&(e.codePointAt(s)===r.codePointAt(f--)?f<0&&(a=s):(f=-1,a=c));return l===a?a=c:a<0&&(a=e.length),e.slice(l,a)}function _3(e){if(Xa(e),e.length===0)return".";let r=-1,l=e.length,a;for(;--l;)if(e.codePointAt(l)===47){if(a){r=l;break}}else a||(a=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function j3(e){Xa(e);let r=e.length,l=-1,a=0,s=-1,u=0,c;for(;r--;){const f=e.codePointAt(r);if(f===47){if(c){a=r+1;break}continue}l<0&&(c=!0,l=r+1),f===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?"":e.slice(s,l)}function L3(...e){let r=-1,l;for(;++r<e.length;)Xa(e[r]),e[r]&&(l=l===void 0?e[r]:l+"/"+e[r]);return l===void 0?".":D3(l)}function D3(e){Xa(e);const r=e.codePointAt(0)===47;let l=O3(e,!r);return l.length===0&&!r&&(l="."),l.length>0&&e.codePointAt(e.length-1)===47&&(l+="/"),r?"/"+l:l}function O3(e,r){let l="",a=0,s=-1,u=0,c=-1,f,p;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===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+="/"+e.slice(s+1,c):l=e.slice(s+1,c),a=c-s-1;s=c,u=0}else f===46&&u>-1?u++:u=-1}return l}function Xa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const M3={cwd:z3};function z3(){return"/"}function Ad(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function B3(e){if(typeof e=="string")e=new URL(e);else if(!Ad(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return F3(e)}function F3(e){if(e.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=e.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 Hf=["history","path","basename","stem","extname","dirname"];class p1{constructor(r){let l;r?Ad(r)?l={path:r}:typeof r=="string"||I3(r)?l={value:r}:l=r:l={},this.cwd="cwd"in l?"":M3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Hf.length;){const u=Hf[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)Hf.includes(s)||(this[s]=l[s])}get basename(){return typeof this.path=="string"?Vn.basename(this.path):void 0}set basename(r){Pf(r,"basename"),qf(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){ty(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(qf(r,"extname"),ty(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){Ad(r)&&(r=B3(r)),Pf(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){Pf(r,"stem"),qf(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 qf(e,r){if(e&&e.includes(Vn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Vn.sep+"`")}function Pf(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function ty(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function I3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const U3=(function(e){const a=this.constructor.prototype,s=a[e],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),H3={}.hasOwnProperty;class sh extends U3{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=A3()}copy(){const r=new sh;let l=-1;for(;++l<this.attachers.length;){const a=this.attachers[l];r.use(...a)}return r.data(Uf(!0,{},this.namespace)),r}data(r,l){return typeof r=="string"?arguments.length===2?(Gf("data",this.frozen),this.namespace[r]=l,this):H3.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Gf("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=gs(r),a=this.parser||this.Parser;return Vf("parse",a),a(String(l),l)}process(r,l){const a=this;return this.freeze(),Vf("process",this.parser||this.Parser),$f("process",this.compiler||this.Compiler),l?s(void 0,l):new Promise(s);function s(u,c){const f=gs(r),p=a.parse(f);a.run(p,f,function(b,g,x){if(b||!g||!x)return h(b);const v=g,w=a.stringify(v,x);V3(w)?x.value=w:x.result=w,h(b,x)});function h(b,g){b||!g?c(b):u?u(g):l(void 0,g)}}}processSync(r){let l=!1,a;return this.freeze(),Vf("processSync",this.parser||this.Parser),$f("processSync",this.compiler||this.Compiler),this.process(r,s),ry("processSync","process",l),a;function s(u,c){l=!0,Wb(u),a=c}}run(r,l,a){ny(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,f){const p=gs(l);s.run(r,p,h);function h(b,g,x){const v=g||r;b?f(b):c?c(v):a(void 0,v,x)}}}runSync(r,l){let a=!1,s;return this.run(r,l,u),ry("runSync","run",a),s;function u(c,f){Wb(c),s=f,a=!0}}stringify(r,l){this.freeze();const a=gs(l),s=this.compiler||this.Compiler;return $f("stringify",s),ny(r),s(r,a)}use(r,...l){const a=this.attachers,s=this.namespace;if(Gf("use",this.frozen),r!=null)if(typeof r=="function")p(r,l);else if(typeof r=="object")Array.isArray(r)?f(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[b,...g]=h;p(b,g)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(h.plugins),h.settings&&(s.settings=Uf(!0,s.settings,h.settings))}function f(h){let b=-1;if(h!=null)if(Array.isArray(h))for(;++b<h.length;){const g=h[b];u(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function p(h,b){let g=-1,x=-1;for(;++g<a.length;)if(a[g][0]===h){x=g;break}if(x===-1)a.push([h,...b]);else if(b.length>0){let[v,...w]=b;const k=a[x][1];Td(k)&&Td(v)&&(v=Uf(!0,k,v)),a[x]=[h,v,...w]}}}}const q3=new sh().freeze();function Vf(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $f(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Gf(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ny(e){if(!Td(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ry(e,r,l){if(!l)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function gs(e){return P3(e)?e:new p1(e)}function P3(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function V3(e){return typeof e=="string"||$3(e)}function $3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const G3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ly=[],iy={allowDangerousHtml:!0},Y3=/^(https?|ircs?|mailto|xmpp)$/i,X3=[{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 uh(e){const r=Z3(e),l=K3(e);return Q3(r.runSync(r.parse(l),l),e)}function Z3(e){const r=e.rehypePlugins||ly,l=e.remarkPlugins||ly,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...iy}:iy;return q3().use(_C).use(l).use(E3,a).use(r)}function K3(e){const r=e.children||"",l=new p1;return typeof r=="string"&&(l.value=r),l}function Q3(e,r){const l=r.allowedElements,a=r.allowElement,s=r.components,u=r.disallowedElements,c=r.skipHtml,f=r.unwrapDisallowed,p=r.urlTransform||J3;for(const b of X3)Object.hasOwn(r,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+G3+b.id,void 0);return oh(e,h),hk(e,{Fragment:y.Fragment,components:s,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function h(b,g,x){if(b.type==="raw"&&x&&typeof g=="number")return c?x.children.splice(g,1):x.children[g]={type:"text",value:b.value},g;if(b.type==="element"){let v;for(v in zf)if(Object.hasOwn(zf,v)&&Object.hasOwn(b.properties,v)){const w=b.properties[v],k=zf[v];(k===null||k.includes(b.tagName))&&(b.properties[v]=p(String(w||""),v,b))}}if(b.type==="element"){let v=l?!l.includes(b.tagName):u?u.includes(b.tagName):!1;if(!v&&a&&typeof g=="number"&&(v=!a(b,g,x)),v&&x&&typeof g=="number")return f&&b.children?x.children.splice(g,1,...b.children):x.children.splice(g,1),g}}}function J3(e){const r=e.indexOf(":"),l=e.indexOf("?"),a=e.indexOf("#"),s=e.indexOf("/");return r===-1||s!==-1&&r>s||l!==-1&&r>l||a!==-1&&r>a||Y3.test(e.slice(0,r))?e:""}function ay(e,r){const l=String(e);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(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function e4(e,r,l){const s=tu((l||{}).ignore||[]),u=t4(r);let c=-1;for(;++c<u.length;)h1(e,"text",f);function f(h,b){let g=-1,x;for(;++g<b.length;){const v=b[g],w=x?x.children:void 0;if(s(v,w?w.indexOf(v):void 0,x))return;x=v}if(x)return p(h,b)}function p(h,b){const g=b[b.length-1],x=u[c][0],v=u[c][1];let w=0;const T=g.children.indexOf(h);let E=!1,C=[];x.lastIndex=0;let N=x.exec(h.value);for(;N;){const B=N.index,q={index:N.index,input:N.input,stack:[...b,h]};let L=v(...N,q);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?x.lastIndex=B+1:(w!==B&&C.push({type:"text",value:h.value.slice(w,B)}),Array.isArray(L)?C.push(...L):L&&C.push(L),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)}),g.children.splice(T,1,...C)):C=[h],T+C.length}}function t4(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const l=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<l.length;){const s=l[a];r.push([n4(s[0]),r4(s[1])])}return r}function n4(e){return typeof e=="string"?new RegExp(W3(e),"g"):e}function r4(e){return typeof e=="function"?e:function(){return e}}const Yf="phrasing",Xf=["autolink","link","image","label"];function l4(){return{transforms:[f4],enter:{literalAutolink:a4,literalAutolinkEmail:Zf,literalAutolinkHttp:Zf,literalAutolinkWww:Zf},exit:{literalAutolink:c4,literalAutolinkEmail:u4,literalAutolinkHttp:o4,literalAutolinkWww:s4}}}function i4(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Yf,notInConstruct:Xf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Yf,notInConstruct:Xf},{character:":",before:"[ps]",after:"\\/",inConstruct:Yf,notInConstruct:Xf}]}}function a4(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Zf(e){this.config.enter.autolinkProtocol.call(this,e)}function o4(e){this.config.exit.autolinkProtocol.call(this,e)}function s4(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(e)}function u4(e){this.config.exit.autolinkEmail.call(this,e)}function c4(e){this.exit(e)}function f4(e){e4(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,d4],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),h4]],{ignore:["link","linkReference"]})}function d4(e,r,l,a,s){let u="";if(!m1(s)||(/^w/i.test(r)&&(l=r+l,r="",u="http://"),!p4(l)))return!1;const c=m4(l+a);if(!c[0])return!1;const f={type:"link",title:null,url:u+r+c[0],children:[{type:"text",value:r+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function h4(e,r,l,a){return!m1(a,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+l,children:[{type:"text",value:r+"@"+l}]}}function p4(e){const r=e.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 m4(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let l=r[0],a=l.indexOf(")");const s=ay(e,"(");let u=ay(e,")");for(;a!==-1&&s>u;)e+=l.slice(0,a+1),l=l.slice(a+1),a=l.indexOf(")"),u++;return[e,l]}function m1(e,r){const l=e.input.charCodeAt(e.index-1);return(e.index===0||Tl(l)||Js(l))&&(!r||l!==47)}g1.peek=E4;function g4(){this.buffer()}function b4(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function y4(){this.buffer()}function x4(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function v4(e){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Fn(this.sliceSerialize(e)).toLowerCase(),l.label=r}function w4(e){this.exit(e)}function S4(e){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Fn(this.sliceSerialize(e)).toLowerCase(),l.label=r}function k4(e){this.exit(e)}function E4(){return"["}function g1(e,r,l,a){const s=l.createTracker(a);let u=s.move("[^");const c=l.enter("footnoteReference"),f=l.enter("reference");return u+=s.move(l.safe(l.associationId(e),{after:"]",before:u})),f(),c(),u+=s.move("]"),u}function C4(){return{enter:{gfmFootnoteCallString:g4,gfmFootnoteCall:b4,gfmFootnoteDefinitionLabelString:y4,gfmFootnoteDefinition:x4},exit:{gfmFootnoteCallString:v4,gfmFootnoteCall:w4,gfmFootnoteDefinitionLabelString:S4,gfmFootnoteDefinition:k4}}}function T4(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:l,footnoteReference:g1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(a,s,u,c){const f=u.createTracker(c);let p=f.move("[^");const h=u.enter("footnoteDefinition"),b=u.enter("label");return p+=f.move(u.safe(u.associationId(a),{before:p,after:"]"})),b(),p+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),p+=f.move((r?`
|
|
29
|
-
`:" ")+u.indentLines(u.containerFlow(a,f.current()),r?b1:A4))),h(),p}}function A4(e,r,l){return r===0?e:b1(e,r,l)}function b1(e,r,l){return(l?"":" ")+e}const N4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];y1.peek=D4;function R4(){return{canContainEols:["delete"],enter:{strikethrough:j4},exit:{strikethrough:L4}}}function _4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:N4}],handlers:{delete:y1}}}function j4(e){this.enter({type:"delete",children:[]},e)}function L4(e){this.exit(e)}function y1(e,r,l,a){const s=l.createTracker(a),u=l.enter("strikethrough");let c=s.move("~~");return c+=l.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),u(),c}function D4(){return"~"}function O4(e){return e.length}function M4(e,r){const l=r||{},a=(l.align||[]).concat(),s=l.stringLength||O4,u=[],c=[],f=[],p=[];let h=0,b=-1;for(;++b<e.length;){const k=[],T=[];let E=-1;for(e[b].length>h&&(h=e[b].length);++E<e[b].length;){const C=z4(e[b][E]);if(l.alignDelimiters!==!1){const N=s(C);T[E]=N,(p[E]===void 0||N>p[E])&&(p[E]=N)}k.push(C)}c[b]=k,f[b]=T}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<h;)u[g]=oy(a[g]);else{const k=oy(a);for(;++g<h;)u[g]=k}g=-1;const x=[],v=[];for(;++g<h;){const k=u[g];let T="",E="";k===99?(T=":",E=":"):k===108?T=":":k===114&&(E=":");let C=l.alignDelimiters===!1?1:Math.max(1,p[g]-T.length-E.length);const N=T+"-".repeat(C)+E;l.alignDelimiters!==!1&&(C=T.length+C+E.length,C>p[g]&&(p[g]=C),v[g]=C),x[g]=N}c.splice(1,0,x),f.splice(1,0,v),b=-1;const w=[];for(;++b<c.length;){const k=c[b],T=f[b];g=-1;const E=[];for(;++g<h;){const C=k[g]||"";let N="",B="";if(l.alignDelimiters!==!1){const q=p[g]-(T[g]||0),L=u[g];L===114?N=" ".repeat(q):L===99?q%2?(N=" ".repeat(q/2+.5),B=" ".repeat(q/2-.5)):(N=" ".repeat(q/2),B=N):B=" ".repeat(q)}l.delimiterStart!==!1&&!g&&E.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&C==="")&&(l.delimiterStart!==!1||g)&&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||g!==h-1)&&E.push("|")}w.push(l.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return w.join(`
|
|
30
|
-
`)}function z4(e){return e==null?"":String(e)}function oy(e){const r=typeof e=="string"?e.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function B4(e,r,l,a){const s=l.enter("blockquote"),u=l.createTracker(a);u.move("> "),u.shift(2);const c=l.indentLines(l.containerFlow(e,u.current()),F4);return s(),c}function F4(e,r,l){return">"+(l?"":" ")+e}function I4(e,r){return sy(e,r.inConstruct,!0)&&!sy(e,r.notInConstruct,!1)}function sy(e,r,l){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return l;let a=-1;for(;++a<r.length;)if(e.includes(r[a]))return!0;return!1}function uy(e,r,l,a){let s=-1;for(;++s<l.unsafe.length;)if(l.unsafe[s].character===`
|
|
31
|
-
`&&I4(l.stack,l.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
32
|
-
`}function U4(e,r){const l=String(e);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 H4(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function q4(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function P4(e,r,l,a){const s=q4(l),u=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(H4(e,l)){const g=l.enter("codeIndented"),x=l.indentLines(u,V4);return g(),x}const f=l.createTracker(a),p=s.repeat(Math.max(U4(u,s)+1,3)),h=l.enter("codeFenced");let b=f.move(p);if(e.lang){const g=l.enter(`codeFencedLang${c}`);b+=f.move(l.safe(e.lang,{before:b,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=l.enter(`codeFencedMeta${c}`);b+=f.move(" "),b+=f.move(l.safe(e.meta,{before:b,after:`
|
|
33
|
-
`,encode:["`"],...f.current()})),g()}return b+=f.move(`
|
|
34
|
-
`),u&&(b+=f.move(u+`
|
|
35
|
-
`)),b+=f.move(p),h(),b}function V4(e,r,l){return(l?"":" ")+e}function ch(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function $4(e,r,l,a){const s=ch(l),u=s==='"'?"Quote":"Apostrophe",c=l.enter("definition");let f=l.enter("label");const p=l.createTracker(a);let h=p.move("[");return h+=p.move(l.safe(l.associationId(e),{before:h,after:"]",...p.current()})),h+=p.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=l.enter("destinationLiteral"),h+=p.move("<"),h+=p.move(l.safe(e.url,{before:h,after:">",...p.current()})),h+=p.move(">")):(f=l.enter("destinationRaw"),h+=p.move(l.safe(e.url,{before:h,after:e.title?" ":`
|
|
36
|
-
`,...p.current()}))),f(),e.title&&(f=l.enter(`title${u}`),h+=p.move(" "+s),h+=p.move(l.safe(e.title,{before:h,after:s,...p.current()})),h+=p.move(s),f()),c(),h}function G4(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function qa(e){return"&#x"+e.toString(16).toUpperCase()+";"}function _s(e,r,l){const a=Ri(e),s=Ri(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}}x1.peek=Y4;function x1(e,r,l,a){const s=G4(l),u=l.enter("emphasis"),c=l.createTracker(a),f=c.move(s);let p=c.move(l.containerPhrasing(e,{after:s,before:f,...c.current()}));const h=p.charCodeAt(0),b=_s(a.before.charCodeAt(a.before.length-1),h,s);b.inside&&(p=qa(h)+p.slice(1));const g=p.charCodeAt(p.length-1),x=_s(a.after.charCodeAt(0),g,s);x.inside&&(p=p.slice(0,-1)+qa(g));const v=c.move(s);return u(),l.attentionEncodeSurroundingInfo={after:x.outside,before:b.outside},f+p+v}function Y4(e,r,l){return l.options.emphasis||"*"}function X4(e,r){let l=!1;return oh(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return l=!0,Ed}),!!((!e.depth||e.depth<3)&&eh(e)&&(r.options.setext||l))}function Z4(e,r,l,a){const s=Math.max(Math.min(6,e.depth||1),1),u=l.createTracker(a);if(X4(e,l)){const b=l.enter("headingSetext"),g=l.enter("phrasing"),x=l.containerPhrasing(e,{...u.current(),before:`
|
|
37
|
-
`,after:`
|
|
38
|
-
`});return g(),b(),x+`
|
|
39
|
-
`+(s===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
|
|
40
|
-
`))+1))}const c="#".repeat(s),f=l.enter("headingAtx"),p=l.enter("phrasing");u.move(c+" ");let h=l.containerPhrasing(e,{before:"# ",after:`
|
|
41
|
-
`,...u.current()});return/^[\t ]/.test(h)&&(h=qa(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,l.options.closeAtx&&(h+=" "+c),p(),f(),h}v1.peek=K4;function v1(e){return e.value||""}function K4(){return"<"}w1.peek=Q4;function w1(e,r,l,a){const s=ch(l),u=s==='"'?"Quote":"Apostrophe",c=l.enter("image");let f=l.enter("label");const p=l.createTracker(a);let h=p.move("![");return h+=p.move(l.safe(e.alt,{before:h,after:"]",...p.current()})),h+=p.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=l.enter("destinationLiteral"),h+=p.move("<"),h+=p.move(l.safe(e.url,{before:h,after:">",...p.current()})),h+=p.move(">")):(f=l.enter("destinationRaw"),h+=p.move(l.safe(e.url,{before:h,after:e.title?" ":")",...p.current()}))),f(),e.title&&(f=l.enter(`title${u}`),h+=p.move(" "+s),h+=p.move(l.safe(e.title,{before:h,after:s,...p.current()})),h+=p.move(s),f()),h+=p.move(")"),c(),h}function Q4(){return"!"}S1.peek=J4;function S1(e,r,l,a){const s=e.referenceType,u=l.enter("imageReference");let c=l.enter("label");const f=l.createTracker(a);let p=f.move("![");const h=l.safe(e.alt,{before:p,after:"]",...f.current()});p+=f.move(h+"]["),c();const b=l.stack;l.stack=[],c=l.enter("reference");const g=l.safe(l.associationId(e),{before:p,after:"]",...f.current()});return c(),l.stack=b,u(),s==="full"||!h||h!==g?p+=f.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=f.move("]"),p}function J4(){return"!"}k1.peek=W4;function k1(e,r,l){let a=e.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],f=l.compilePattern(c);let p;if(c.atBreak)for(;p=f.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 E1(e,r){const l=eh(e);return!!(!r.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(l===e.url||"mailto:"+l===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}C1.peek=eT;function C1(e,r,l,a){const s=ch(l),u=s==='"'?"Quote":"Apostrophe",c=l.createTracker(a);let f,p;if(E1(e,l)){const b=l.stack;l.stack=[],f=l.enter("autolink");let g=c.move("<");return g+=c.move(l.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),f(),l.stack=b,g}f=l.enter("link"),p=l.enter("label");let h=c.move("[");return h+=c.move(l.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),p(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(p=l.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(l.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(p=l.enter("destinationRaw"),h+=c.move(l.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),p(),e.title&&(p=l.enter(`title${u}`),h+=c.move(" "+s),h+=c.move(l.safe(e.title,{before:h,after:s,...c.current()})),h+=c.move(s),p()),h+=c.move(")"),f(),h}function eT(e,r,l){return E1(e,l)?"<":"["}T1.peek=tT;function T1(e,r,l,a){const s=e.referenceType,u=l.enter("linkReference");let c=l.enter("label");const f=l.createTracker(a);let p=f.move("[");const h=l.containerPhrasing(e,{before:p,after:"]",...f.current()});p+=f.move(h+"]["),c();const b=l.stack;l.stack=[],c=l.enter("reference");const g=l.safe(l.associationId(e),{before:p,after:"]",...f.current()});return c(),l.stack=b,u(),s==="full"||!h||h!==g?p+=f.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=f.move("]"),p}function tT(){return"["}function fh(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function nT(e){const r=fh(e),l=e.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 rT(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function A1(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function lT(e,r,l,a){const s=l.enter("list"),u=l.bulletCurrent;let c=e.ordered?rT(l):fh(l);const f=e.ordered?c==="."?")":".":nT(l);let p=r&&l.bulletLastUsed?c===l.bulletLastUsed:!1;if(!e.ordered){const b=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&b&&(!b.children||!b.children[0])&&l.stack[l.stack.length-1]==="list"&&l.stack[l.stack.length-2]==="listItem"&&l.stack[l.stack.length-3]==="list"&&l.stack[l.stack.length-4]==="listItem"&&l.indexStack[l.indexStack.length-1]===0&&l.indexStack[l.indexStack.length-2]===0&&l.indexStack[l.indexStack.length-3]===0&&(p=!0),A1(l)===c&&b){let g=-1;for(;++g<e.children.length;){const x=e.children[g];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=f),l.bulletCurrent=c;const h=l.containerFlow(e,a);return l.bulletLastUsed=c,l.bulletCurrent=u,s(),h}function iT(e){const r=e.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 aT(e,r,l,a){const s=iT(l);let u=l.bulletCurrent||fh(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(e))+u);let c=u.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=l.createTracker(a);f.move(u+" ".repeat(c-u.length)),f.shift(c);const p=l.enter("listItem"),h=l.indentLines(l.containerFlow(e,f.current()),b);return p(),h;function b(g,x,v){return x?(v?"":" ".repeat(c))+g:(v?u:u+" ".repeat(c-u.length))+g}}function oT(e,r,l,a){const s=l.enter("paragraph"),u=l.enter("phrasing"),c=l.containerPhrasing(e,a);return u(),s(),c}const sT=tu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function uT(e,r,l,a){return(e.children.some(function(c){return sT(c)})?l.containerPhrasing:l.containerFlow).call(l,e,a)}function cT(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}N1.peek=fT;function N1(e,r,l,a){const s=cT(l),u=l.enter("strong"),c=l.createTracker(a),f=c.move(s+s);let p=c.move(l.containerPhrasing(e,{after:s,before:f,...c.current()}));const h=p.charCodeAt(0),b=_s(a.before.charCodeAt(a.before.length-1),h,s);b.inside&&(p=qa(h)+p.slice(1));const g=p.charCodeAt(p.length-1),x=_s(a.after.charCodeAt(0),g,s);x.inside&&(p=p.slice(0,-1)+qa(g));const v=c.move(s+s);return u(),l.attentionEncodeSurroundingInfo={after:x.outside,before:b.outside},f+p+v}function fT(e,r,l){return l.options.strong||"*"}function dT(e,r,l,a){return l.safe(e.value,a)}function hT(e){const r=e.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 pT(e,r,l){const a=(A1(l)+(l.options.ruleSpaces?" ":"")).repeat(hT(l));return l.options.ruleSpaces?a.slice(0,-1):a}const R1={blockquote:B4,break:uy,code:P4,definition:$4,emphasis:x1,hardBreak:uy,heading:Z4,html:v1,image:w1,imageReference:S1,inlineCode:k1,link:C1,linkReference:T1,list:lT,listItem:aT,paragraph:oT,root:uT,strong:N1,text:dT,thematicBreak:pT};function mT(){return{enter:{table:gT,tableData:cy,tableHeader:cy,tableRow:yT},exit:{codeText:xT,table:bT,tableData:Kf,tableHeader:Kf,tableRow:Kf}}}function gT(e){const r=e._align;this.enter({type:"table",align:r.map(function(l){return l==="none"?null:l}),children:[]},e),this.data.inTable=!0}function bT(e){this.exit(e),this.data.inTable=void 0}function yT(e){this.enter({type:"tableRow",children:[]},e)}function Kf(e){this.exit(e)}function cy(e){this.enter({type:"tableCell",children:[]},e)}function xT(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,vT));const l=this.stack[this.stack.length-1];l.type,l.value=r,this.exit(e)}function vT(e,r){return r==="|"?r:e}function wT(e){const r=e||{},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:f}};function c(v,w,k,T){return h(b(v,k,T),v.align)}function f(v,w,k,T){const E=g(v,k,T),C=h([E]);return C.slice(0,C.indexOf(`
|
|
43
|
-
`))}function p(v,w,k,T){const E=k.enter("tableCell"),C=k.enter("phrasing"),N=k.containerPhrasing(v,{...T,before:u,after:u});return C(),E(),N}function h(v,w){return M4(v,{align:w,alignDelimiters:a,padding:l,stringLength:s})}function b(v,w,k){const T=v.children;let E=-1;const C=[],N=w.enter("table");for(;++E<T.length;)C[E]=g(T[E],w,k);return N(),C}function g(v,w,k){const T=v.children;let E=-1;const C=[],N=w.enter("tableRow");for(;++E<T.length;)C[E]=p(T[E],v,w,k);return N(),C}function x(v,w,k){let T=R1.inlineCode(v,w,k);return k.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function ST(){return{exit:{taskListCheckValueChecked:fy,taskListCheckValueUnchecked:fy,paragraph:ET}}}function kT(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:CT}}}function fy(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function ET(e){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 f=s[u];if(f.type==="paragraph"){c=f;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(e)}function CT(e,r,l,a){const s=e.children[0],u=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=l.createTracker(a);u&&f.move(c);let p=R1.listItem(e,r,l,{...a,...f.current()});return u&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),p;function h(b){return b+c}}function TT(){return[l4(),C4(),R4(),mT(),ST()]}function AT(e){return{extensions:[i4(),T4(e),_4(),wT(e),kT()]}}const NT={tokenize:OT,partial:!0},_1={tokenize:MT,partial:!0},j1={tokenize:zT,partial:!0},L1={tokenize:BT,partial:!0},RT={tokenize:FT,partial:!0},D1={name:"wwwAutolink",tokenize:LT,previous:M1},O1={name:"protocolAutolink",tokenize:DT,previous:z1},vr={name:"emailAutolink",tokenize:jT,previous:B1},Yn={};function _T(){return{text:Yn}}let kl=48;for(;kl<123;)Yn[kl]=vr,kl++,kl===58?kl=65:kl===91&&(kl=97);Yn[43]=vr;Yn[45]=vr;Yn[46]=vr;Yn[95]=vr;Yn[72]=[vr,O1];Yn[104]=[vr,O1];Yn[87]=[vr,D1];Yn[119]=[vr,D1];function jT(e,r,l){const a=this;let s,u;return c;function c(g){return!Nd(g)||!B1.call(a,a.previous)||dh(a.events)?l(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return Nd(g)?(e.consume(g),f):g===64?(e.consume(g),p):l(g)}function p(g){return g===46?e.check(RT,b,h)(g):g===45||g===95||Ht(g)?(u=!0,e.consume(g),p):b(g)}function h(g){return e.consume(g),s=!0,p}function b(g){return u&&s&&Xt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(g)):l(g)}}function LT(e,r,l){const a=this;return s;function s(c){return c!==87&&c!==119||!M1.call(a,a.previous)||dh(a.events)?l(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(NT,e.attempt(_1,e.attempt(j1,u),l),l)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(c)}}function DT(e,r,l){const a=this;let s="",u=!1;return c;function c(g){return(g===72||g===104)&&z1.call(a,a.previous)&&!dh(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),f):l(g)}function f(g){if(Xt(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const x=s.toLowerCase();if(x==="http"||x==="https")return e.consume(g),p}return l(g)}function p(g){return g===47?(e.consume(g),u?h:(u=!0,p)):l(g)}function h(g){return g===null||As(g)||it(g)||Tl(g)||Js(g)?l(g):e.attempt(_1,e.attempt(j1,b),l)(g)}function b(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(g)}}function OT(e,r,l){let a=0;return s;function s(c){return(c===87||c===119)&&a<3?(a++,e.consume(c),s):c===46&&a===3?(e.consume(c),u):l(c)}function u(c){return c===null?l(c):r(c)}}function MT(e,r,l){let a,s,u;return c;function c(h){return h===46||h===95?e.check(L1,p,f)(h):h===null||it(h)||Tl(h)||h!==45&&Js(h)?p(h):(u=!0,e.consume(h),c)}function f(h){return h===95?a=!0:(s=a,a=void 0),e.consume(h),c}function p(h){return s||a||!u?l(h):r(h)}}function zT(e,r){let l=0,a=0;return s;function s(c){return c===40?(l++,e.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?e.check(L1,r,u)(c):c===null||it(c)||Tl(c)?r(c):(e.consume(c),s)}function u(c){return c===41&&a++,e.consume(c),s}}function BT(e,r,l){return a;function a(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),a):f===38?(e.consume(f),u):f===93?(e.consume(f),s):f===60||f===null||it(f)||Tl(f)?r(f):l(f)}function s(f){return f===null||f===40||f===91||it(f)||Tl(f)?r(f):a(f)}function u(f){return Xt(f)?c(f):l(f)}function c(f){return f===59?(e.consume(f),a):Xt(f)?(e.consume(f),c):l(f)}}function FT(e,r,l){return a;function a(u){return e.consume(u),s}function s(u){return Ht(u)?l(u):r(u)}}function M1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||it(e)}function z1(e){return!Xt(e)}function B1(e){return!(e===47||Nd(e))}function Nd(e){return e===43||e===45||e===46||e===95||Ht(e)}function dh(e){let r=e.length,l=!1;for(;r--;){const a=e[r][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){l=!0;break}if(a._gfmAutolinkLiteralWalkedInto){l=!1;break}}return e.length>0&&!l&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const IT={tokenize:YT,partial:!0};function UT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VT,continuation:{tokenize:$T},exit:GT}},text:{91:{name:"gfmFootnoteCall",tokenize:PT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:HT,resolveTo:qT}}}}function HT(e,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 f;function f(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):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),r(p))}}function qT(e,r){let l=e.length;for(;l--;)if(e[l][1].type==="labelImage"&&e[l][0]==="enter"){e[l][1];break}e[l+1][1].type="data",e[l+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[l+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[l+3][1].end),end:Object.assign({},e[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({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[l+1],e[l+2],["enter",a,r],e[l+3],e[l+4],["enter",s,r],["exit",s,r],["enter",u,r],["enter",c,r],["exit",c,r],["exit",u,r],e[e.length-2],e[e.length-1],["exit",a,r]];return e.splice(l,e.length-l+1,...f),e}function PT(e,r,l){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u=0,c;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?l(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(u>999||g===93&&!c||g===null||g===91||it(g))return l(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return s.includes(Fn(a.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):l(g)}return it(g)||(c=!0),u++,e.consume(g),g===92?b:h}function b(g){return g===91||g===92||g===93?(e.consume(g),u++,h):h(g)}}function VT(e,r,l){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u,c=0,f;return p;function p(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):l(w)}function b(w){if(c>999||w===93&&!f||w===null||w===91||it(w))return l(w);if(w===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return u=Fn(a.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return it(w)||(f=!0),c++,e.consume(w),w===92?g:b}function g(w){return w===91||w===92||w===93?(e.consume(w),c++,b):b(w)}function x(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),s.includes(u)||s.push(u),$e(e,v,"gfmFootnoteDefinitionWhitespace")):l(w)}function v(w){return r(w)}}function $T(e,r,l){return e.check(Ya,r,e.attempt(IT,r,l))}function GT(e){e.exit("gfmFootnoteDefinition")}function YT(e,r,l){const a=this;return $e(e,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 XT(e){let l=(e||{}).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,f){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 b={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[p][1].end)},g={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[p][1].start)},x=[["enter",b,f],["enter",c[h][1],f],["exit",c[h][1],f],["enter",g,f]],v=f.parser.constructs.insideSpan.null;v&&wn(x,x.length,0,Ws(v,c.slice(h+1,p),f)),wn(x,x.length,0,[["exit",g,f],["enter",c[p][1],f],["exit",c[p][1],f],["exit",b,f]]),wn(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,f,p){const h=this.previous,b=this.events;let g=0;return x;function x(w){return h===126&&b[b.length-1][1].type!=="characterEscape"?p(w):(c.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const k=Ri(h);if(w===126)return g>1?p(w):(c.consume(w),g++,v);if(g<2&&!l)return p(w);const T=c.exit("strikethroughSequenceTemporary"),E=Ri(w);return T._open=!E||E===2&&!!k,T._close=!k||k===2&&!!E,f(w)}}}class ZT{constructor(){this.map=[]}add(r,l,a){KT(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 KT(e,r,l,a){let s=0;if(!(l===0&&a.length===0)){for(;s<e.map.length;){if(e.map[s][0]===r){e.map[s][1]+=l,e.map[s][2].push(...a);return}s+=1}e.map.push([r,l,a])}}function QT(e,r){let l=!1;const a=[];for(;r<e.length;){const s=e[r];if(l){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[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 JT(){return{flow:{null:{name:"table",tokenize:WT,resolveAll:eA}}}}function WT(e,r,l){const a=this;let s=0,u=0,c;return f;function f(M){let V=a.events.length-1;for(;V>-1;){const U=a.events[V][1].type;if(U==="lineEnding"||U==="linePrefix")V--;else break}const Y=V>-1?a.events[V][1].type:null,J=Y==="tableHead"||Y==="tableRow"?L:p;return J===L&&a.parser.lazy[a.now().line]?l(M):J(M)}function p(M){return e.enter("tableHead"),e.enter("tableRow"),h(M)}function h(M){return M===124||(c=!0,u+=1),b(M)}function b(M){return M===null?l(M):Re(M)?u>1?(u=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),v):l(M):Ie(M)?$e(e,b,"whitespace")(M):(u+=1,c&&(c=!1,s+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),c=!0,b):(e.enter("data"),g(M)))}function g(M){return M===null||M===124||it(M)?(e.exit("data"),b(M)):(e.consume(M),M===92?x:g)}function x(M){return M===92||M===124?(e.consume(M),g):g(M)}function v(M){return a.interrupt=!1,a.parser.lazy[a.now().line]?l(M):(e.enter("tableDelimiterRow"),c=!1,Ie(M)?$e(e,w,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):w(M))}function w(M){return M===45||M===58?T(M):M===124?(c=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),k):q(M)}function k(M){return Ie(M)?$e(e,T,"whitespace")(M):T(M)}function T(M){return M===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),E):M===45?(u+=1,E(M)):M===null||Re(M)?B(M):q(M)}function E(M){return M===45?(e.enter("tableDelimiterFiller"),C(M)):q(M)}function C(M){return M===45?(e.consume(M),C):M===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(M))}function N(M){return Ie(M)?$e(e,B,"whitespace")(M):B(M)}function B(M){return M===124?w(M):M===null||Re(M)?!c||s!==u?q(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(M)):q(M)}function q(M){return l(M)}function L(M){return e.enter("tableRow"),I(M)}function I(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),I):M===null||Re(M)?(e.exit("tableRow"),r(M)):Ie(M)?$e(e,I,"whitespace")(M):(e.enter("data"),$(M))}function $(M){return M===null||M===124||it(M)?(e.exit("data"),I(M)):(e.consume(M),M===92?G:$)}function G(M){return M===92||M===124?(e.consume(M),$):$(M)}}function eA(e,r){let l=-1,a=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,p=0,h,b,g;const x=new ZT;for(;++l<e.length;){const v=e[l],w=v[1];v[0]==="enter"?w.type==="tableHead"?(f=!1,p!==0&&(dy(x,r,p,h,b),b=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,g=void 0,u=[0,0,0,0],c=[0,l+1,0,0],f&&(f=!1,b={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},x.add(l,0,[["enter",b,r]])),s=w.type==="tableDelimiterRow"?2:b?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],g=bs(x,r,u,s,void 0,g),u=[0,0,0,0]),c[2]=l)):w.type==="tableCellDivider"&&(a?a=!1:(u[1]!==0&&(c[0]=c[1],g=bs(x,r,u,s,void 0,g)),u=c,c=[u[1],l,0,0])):w.type==="tableHead"?(f=!0,p=l):w.type==="tableRow"||w.type==="tableDelimiterRow"?(p=l,u[1]!==0?(c[0]=c[1],g=bs(x,r,u,s,l,g)):c[1]!==0&&(g=bs(x,r,c,s,l,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=l)}for(p!==0&&dy(x,r,p,h,b),x.consume(r.events),l=-1;++l<r.events.length;){const v=r.events[l];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=QT(r.events,l))}return e}function bs(e,r,l,a,s,u){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",f="tableContent";l[0]!==0&&(u.end=Object.assign({},Ei(r.events,l[0])),e.add(l[0],0,[["exit",u,r]]));const p=Ei(r.events,l[1]);if(u={type:c,start:Object.assign({},p),end:Object.assign({},p)},e.add(l[1],0,[["enter",u,r]]),l[2]!==0){const h=Ei(r.events,l[2]),b=Ei(r.events,l[3]),g={type:f,start:Object.assign({},h),end:Object.assign({},b)};if(e.add(l[2],0,[["enter",g,r]]),a!==2){const x=r.events[l[2]],v=r.events[l[3]];if(x[1].end=Object.assign({},v[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;e.add(w,k,[])}}e.add(l[3]+1,0,[["exit",g,r]])}return s!==void 0&&(u.end=Object.assign({},Ei(r.events,s)),e.add(s,0,[["exit",u,r]]),u=void 0),u}function dy(e,r,l,a,s){const u=[],c=Ei(r.events,l);s&&(s.end=Object.assign({},c),u.push(["exit",s,r])),a.end=Object.assign({},c),u.push(["exit",a,r]),e.add(l+1,0,u)}function Ei(e,r){const l=e[r],a=l[0]==="enter"?"start":"end";return l[1][a]}const tA={name:"tasklistCheck",tokenize:rA};function nA(){return{text:{91:tA}}}function rA(e,r,l){const a=this;return s;function s(p){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?l(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),u)}function u(p){return it(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),c):l(p)}function c(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):l(p)}function f(p){return Re(p)?r(p):Ie(p)?e.check({tokenize:lA},r,l)(p):l(p)}}function lA(e,r,l){return $e(e,a,"whitespace");function a(s){return s===null?l(s):r(s)}}function iA(e){return Xx([_T(),UT(),XT(e),JT(),nA()])}const aA={};function hh(e){const r=this,l=e||aA,a=r.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),u=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(iA(l)),u.push(TT()),c.push(AT(l))}function F1(e){var r,l,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(l=F1(e[r]))&&(a&&(a+=" "),a+=l)}else for(l in e)e[l]&&(a&&(a+=" "),a+=l);return a}function I1(){for(var e,r,l=0,a="",s=arguments.length;l<s;l++)(e=arguments[l])&&(r=F1(e))&&(a&&(a+=" "),a+=r);return a}var oA=Object.create,ru=Object.defineProperty,sA=Object.defineProperties,uA=Object.getOwnPropertyDescriptor,cA=Object.getOwnPropertyDescriptors,U1=Object.getOwnPropertyNames,js=Object.getOwnPropertySymbols,fA=Object.getPrototypeOf,ph=Object.prototype.hasOwnProperty,H1=Object.prototype.propertyIsEnumerable,hy=(e,r,l)=>r in e?ru(e,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[r]=l,$n=(e,r)=>{for(var l in r||(r={}))ph.call(r,l)&&hy(e,l,r[l]);if(js)for(var l of js(r))H1.call(r,l)&&hy(e,l,r[l]);return e},lu=(e,r)=>sA(e,cA(r)),q1=(e,r)=>{var l={};for(var a in e)ph.call(e,a)&&r.indexOf(a)<0&&(l[a]=e[a]);if(e!=null&&js)for(var a of js(e))r.indexOf(a)<0&&H1.call(e,a)&&(l[a]=e[a]);return l},dA=(e,r)=>function(){return r||(0,e[U1(e)[0]])((r={exports:{}}).exports,r),r.exports},hA=(e,r)=>{for(var l in r)ru(e,l,{get:r[l],enumerable:!0})},pA=(e,r,l,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of U1(r))!ph.call(e,s)&&s!==l&&ru(e,s,{get:()=>r[s],enumerable:!(a=uA(r,s))||a.enumerable});return e},mA=(e,r,l)=>(l=e!=null?oA(fA(e)):{},pA(!e||!e.__esModule?ru(l,"default",{value:e,enumerable:!0}):l,e)),gA=dA({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,r){var l=(function(){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,u={},c={util:{encode:function w(k){return k instanceof f?new f(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,T){T=T||{};var E,C;switch(c.util.type(k)){case"Object":if(C=c.util.objId(k),T[C])return T[C];E={},T[C]=E;for(var N in k)k.hasOwnProperty(N)&&(E[N]=w(k[N],T));return E;case"Array":return C=c.util.objId(k),T[C]?T[C]:(E=[],T[C]=E,k.forEach(function(B,q){E[q]=w(B,T)}),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,T){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!!T}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(w,k){var T=c.util.clone(c.languages[w]);for(var E in k)T[E]=k[E];return T},insertBefore:function(w,k,T,E){E=E||c.languages;var C=E[w],N={};for(var B in C)if(C.hasOwnProperty(B)){if(B==k)for(var q in T)T.hasOwnProperty(q)&&(N[q]=T[q]);T.hasOwnProperty(B)||(N[B]=C[B])}var L=E[w];return E[w]=N,c.languages.DFS(c.languages,function(I,$){$===L&&I!=w&&(this[I]=N)}),N},DFS:function w(k,T,E,C){C=C||{};var N=c.util.objId;for(var B in k)if(k.hasOwnProperty(B)){T.call(k,B,k[B],E||B);var q=k[B],L=c.util.type(q);L==="Object"&&!C[N(q)]?(C[N(q)]=!0,w(q,T,null,C)):L==="Array"&&!C[N(q)]&&(C[N(q)]=!0,w(q,T,B,C))}}},plugins:{},highlight:function(w,k,T){var E={code:w,grammar:k,language:T};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),f.stringify(c.util.encode(E.tokens),E.language)},tokenize:function(w,k){var T=k.rest;if(T){for(var E in T)k[E]=T[E];delete k.rest}var C=new b;return g(C,C.head,w),h(w,C,k,C.head,0),v(C)},hooks:{all:{},add:function(w,k){var T=c.hooks.all;T[w]=T[w]||[],T[w].push(k)},run:function(w,k){var T=c.hooks.all[w];if(!(!T||!T.length))for(var E=0,C;C=T[E++];)C(k)}},Token:f};function f(w,k,T,E){this.type=w,this.content=k,this.alias=T,this.length=(E||"").length|0}f.stringify=function w(k,T){if(typeof k=="string")return k;if(Array.isArray(k)){var E="";return k.forEach(function(L){E+=w(L,T)}),E}var C={type:k.type,content:w(k.content,T),tag:"span",classes:["token",k.type],attributes:{},language:T},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 q in C.attributes)B+=" "+q+'="'+(C.attributes[q]||"").replace(/"/g,""")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+B+">"+C.content+"</"+C.tag+">"};function p(w,k,T,E){w.lastIndex=k;var C=w.exec(T);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,T,E,C,N){for(var B in T)if(!(!T.hasOwnProperty(B)||!T[B])){var q=T[B];q=Array.isArray(q)?q:[q];for(var L=0;L<q.length;++L){if(N&&N.cause==B+","+L)return;var I=q[L],$=I.inside,G=!!I.lookbehind,M=!!I.greedy,V=I.alias;if(M&&!I.pattern.global){var Y=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,Y+"g")}for(var J=I.pattern||I,U=E.next,X=C;U!==k.tail&&!(N&&X>=N.reach);X+=U.value.length,U=U.next){var F=U.value;if(k.length>w.length)return;if(!(F instanceof f)){var O=1,z;if(M){if(z=p(J,X,w,G),!z||z.index>=w.length)break;var H=z.index,K=z.index+z[0].length,_=X;for(_+=U.value.length;H>=_;)U=U.next,_+=U.value.length;if(_-=U.value.length,X=_,U.value instanceof f)continue;for(var D=U;D!==k.tail&&(_<K||typeof D.value=="string");D=D.next)O++,_+=D.value.length;O--,F=w.slice(X,_),z.index-=X}else if(z=p(J,0,F,G),!z)continue;var H=z.index,A=z[0],le=F.slice(0,H),ce=F.slice(H+A.length),de=X+F.length;N&&de>N.reach&&(N.reach=de);var fe=U.prev;le&&(fe=g(k,fe,le),X+=le.length),x(k,fe,O);var ge=new f(B,$?c.tokenize(A,$):A,V,A);if(U=g(k,fe,ge),ce&&g(k,U,ce),O>1){var he={cause:B+","+L,reach:de};h(w,k,T,U.prev,X,he),N&&he.reach>N.reach&&(N.reach=he.reach)}}}}}}function b(){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 g(w,k,T){var E=k.next,C={value:T,prev:k,next:E};return k.next=C,E.prev=C,w.length++,C}function x(w,k,T){for(var E=k.next,C=0;C<T&&E!==w.tail;C++)E=E.next;k.next=E,E.prev=k,w.length-=C}function v(w){for(var k=[],T=w.head.next;T!==w.tail;)k.push(T.value),T=T.next;return k}return c})();r.exports=l,l.default=l}}),se=mA(gA());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(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(se.languages.markup.tag,"addInlined",{value:function(e,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[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:l},se.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(se.languages.markup.tag,"addAttribute",{value:function(e,r){se.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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(e){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"};e.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(e){var r=/#(?!\{).+/,l={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.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"}}),e.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}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:l}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript})(se),(function(e){var r=e.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(g){g.inside||(g.inside={}),g.inside.rest=a},c="doc-comment";if(f=e.languages[s]){var f,p=f[c];if((p=p||(f=e.languages.insertBefore(s,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[c])instanceof RegExp&&(p=f[c]={pattern:p}),Array.isArray(p))for(var h=0,b=p.length;h<b;h++)p[h]instanceof RegExp&&(p[h]={pattern:p[h]}),u(p[h]);else u(p)}})}}),r.addSupport(["java","javascript","php"],r)})(se),(function(e){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,r=(e.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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(se),(function(e){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=(e.languages.css.selector={pattern:e.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:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=r,e.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};e.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(e){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(f,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 f});return RegExp(h,p)}e.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:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(se),(function(e){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=(e.languages.markdown=e.languages.extend("markup",{}),e.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:e.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:e.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:e.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(b){h!==b&&(e.languages.markdown[h].inside.content.inside[b]=e.languages.markdown[b])})}),e.hooks.add("after-tokenize",function(h){h.language!=="markdown"&&h.language!=="md"||(function b(g){if(g&&typeof g!="string")for(var x=0,v=g.length;x<v;x++){var w,k=g[x];k.type!=="code"?b(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)}),e.hooks.add("wrap",function(h){if(h.type==="code-block"){for(var b="",g=0,x=h.classes.length;g<x;g++){var v=h.classes[g],v=/language-(.+)/.exec(v);if(v){b=v[1];break}}var w,k=e.languages[b];k?h.content=e.highlight((function(T){return T=T.replace(c,""),T=T.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)):f[C]||E})})(h.content),k,b):b&&b!=="none"&&e.plugins.autoloader&&(w="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),h.attributes.id=w,e.plugins.autoloader.loadLanguages(b,function(){var T=document.getElementById(w);T&&(T.innerHTML=e.highlight(T.textContent,e.languages[b],b))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),f={amp:"&",lt:"<",gt:">",quot:'"'},p=String.fromCodePoint||String.fromCharCode;e.languages.md=e.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(e){if(e.language==="graphql")for(var r=e.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(g(["definition-mutation","punctuation"])&&b(1).content==="("){l+=2;var u=x(/^\($/,/^\)$/);if(u===-1)continue;for(;l<u;l++){var c=b(0);c.type==="variable"&&(v(c,"variable-input"),s.push(c.content))}l=u+1}if(g(["punctuation","property-query"])&&b(0).content==="{"&&(l++,v(b(0),"property-mutation"),0<s.length)){var f=x(/^\{$/,/^\}$/);if(f!==-1)for(var p=l;p<f;p++){var h=r[p];h.type==="variable"&&0<=s.indexOf(h.content)&&v(h,"variable-input")}}}}function b(w){return r[l+w]}function g(w,k){k=k||0;for(var T=0;T<w.length;T++){var E=b(T+k);if(!E||E.type!==w[T])return}return 1}function x(w,k){for(var T=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))T++;else if(k.test(N)&&--T===0)return E}}return-1}function v(w,k){var T=w.alias;T?Array.isArray(T)||(w.alias=T=[T]):w.alias=T=[],T.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(e){var r=e.languages.javascript["template-string"],l=r.pattern.source,a=r.inside.interpolation,s=a.inside["interpolation-punctuation"],u=a.pattern.source;function c(g,x){if(e.languages[g])return{pattern:RegExp("((?:"+x+")\\s*)"+l),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}function f(g,x,v){return g={code:g,grammar:x,language:v},e.hooks.run("before-tokenize",g),g.tokens=e.tokenize(g.code,g.grammar),e.hooks.run("after-tokenize",g),g.tokens}function p(g,x,v){var T=e.tokenize(g,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),w=0,k={},T=f(T.map(function(C){if(typeof C=="string")return C;for(var N,B,C=C.content;g.indexOf((B=w++,N="___"+v.toUpperCase()+"_"+B+"___"))!==-1;);return k[N]=C,N}).join(""),x,v),E=Object.keys(k);return w=0,(function C(N){for(var B=0;B<N.length;B++){if(w>=E.length)return;var q,L,I,$,G,M,V,Y=N[B];typeof Y=="string"||typeof Y.content=="string"?(q=E[w],(V=(M=typeof Y=="string"?Y:Y.content).indexOf(q))!==-1&&(++w,L=M.substring(0,V),G=k[q],I=void 0,($={})["interpolation-punctuation"]=s,($=e.tokenize(G,$)).length===3&&((I=[1,1]).push.apply(I,f($[1],e.languages.javascript,"javascript")),$.splice.apply($,I)),I=new e.Token("interpolation",$,a.alias,G),$=M.substring(V+q.length),G=[],L&&G.push(L),G.push(I),$&&(C(M=[$]),G.push.apply(G,M)),typeof Y=="string"?(N.splice.apply(N,[B,1].concat(G)),B+=G.length-1):Y.content=G)):(V=Y.content,Array.isArray(V)?C(V):C([V]))}})(T),new e.Token(v,T,"language-"+v,g)}e.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 b(g){return typeof g=="string"?g:Array.isArray(g)?g.map(b).join(""):b(g.content)}e.hooks.add("after-tokenize",function(g){g.language in h&&(function x(v){for(var w=0,k=v.length;w<k;w++){var T,E,C,N=v[w];typeof N!="string"&&(T=N.content,Array.isArray(T)?N.type==="template-string"?(N=T[1],T.length===3&&typeof N!="string"&&N.type==="embedded-code"&&(E=b(N),N=N.alias,N=Array.isArray(N)?N[0]:N,C=e.languages[N])&&(T[1]=p(E,C,N))):x(T):typeof T!="string"&&x([T]))}})(g.tokens)})})(se),(function(e){e.languages.typescript=e.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/}),e.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 e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var r=e.languages.extend("typescript",{});delete r["class-name"],e.languages.typescript["class-name"].inside=r,e.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}}}}),e.languages.ts=e.languages.typescript})(se),(function(e){var r=e.languages.javascript,l=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+l+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.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:e.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"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)})(se),(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.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 e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.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(e){function r(c,f){return RegExp(c.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.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"}]}),e.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:e.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.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"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.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=e.languages.javascript[u],u=(s=e.util.type(s)==="RegExp"?e.languages.javascript[u]={pattern:s}:s).inside||{};(s.inside=u)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(se),(function(e){var r=e.util.clone(e.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,e.languages.jsx=e.languages.extend("markup",r),e.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=r.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function c(p){for(var h=[],b=0;b<p.length;b++){var g=p[b],x=!1;typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?0<h.length&&h[h.length-1].tagName===f(g.content[0].content[1])&&h.pop():g.content[g.content.length-1].content!=="/>"&&h.push({tagName:f(g.content[0].content[1]),openedBraces:0}):0<h.length&&g.type==="punctuation"&&g.content==="{"?h[h.length-1].openedBraces++:0<h.length&&0<h[h.length-1].openedBraces&&g.type==="punctuation"&&g.content==="}"?h[h.length-1].openedBraces--:x=!0),(x||typeof g=="string")&&0<h.length&&h[h.length-1].openedBraces===0&&(x=f(g),b<p.length-1&&(typeof p[b+1]=="string"||p[b+1].type==="plain-text")&&(x+=f(p[b+1]),p.splice(b+1,1)),0<b&&(typeof p[b-1]=="string"||p[b-1].type==="plain-text")&&(x=f(p[b-1])+x,p.splice(b-1,1),b--),p[b]=new e.Token("plain-text",x,null,x)),g.content&&typeof g.content!="string"&&c(g.content)}}var f=function(p){return p?typeof p=="string"?p:typeof p.content=="string"?p.content:p.content.map(f).join(""):""};e.hooks.add("after-tokenize",function(p){p.language!=="jsx"&&p.language!=="tsx"||c(p.tokens)})})(se),(function(e){var r=e.util.clone(e.languages.typescript),r=(e.languages.tsx=e.languages.extend("jsx",r),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.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(e){e.inside.interpolation.inside=se.languages.swift}),(function(e){e.languages.kotlin=e.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 e.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.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 e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.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(e){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}),e.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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.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(e){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});e.languages.cpp=e.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/}),e.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}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.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 xn={};hA(xn,{dracula:()=>yA,duotoneDark:()=>vA,duotoneLight:()=>SA,github:()=>EA,gruvboxMaterialDark:()=>WA,gruvboxMaterialLight:()=>t6,jettwaveDark:()=>$A,jettwaveLight:()=>YA,nightOwl:()=>TA,nightOwlLight:()=>NA,oceanicNext:()=>_A,okaidia:()=>LA,oneDark:()=>ZA,oneLight:()=>QA,palenight:()=>OA,shadesOfPurple:()=>zA,synthwave84:()=>FA,ultramin:()=>UA,vsDark:()=>P1,vsLight:()=>PA});var bA={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)"}}]},yA=bA,xA={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"}}]},vA=xA,wA={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"}}]},SA=wA,kA={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"}}]},EA=kA,CA={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)"}}]},TA=CA,AA={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)"}}]},NA=AA,bn={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},RA={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:bn.keyword}},{types:["attr-value"],style:{color:bn.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:bn.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:bn.primitive}},{types:["boolean"],style:{color:bn.boolean}},{types:["tag"],style:{color:bn.tag}},{types:["string"],style:{color:bn.string}},{types:["punctuation"],style:{color:bn.string}},{types:["selector","char","builtin","inserted"],style:{color:bn.char}},{types:["function"],style:{color:bn.function}},{types:["operator","entity","url","variable"],style:{color:bn.variable}},{types:["keyword"],style:{color:bn.keyword}},{types:["atrule","class-name"],style:{color:bn.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},_A=RA,jA={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"}}]},LA=jA,DA={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)"}}]},OA=DA,MA={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)"}}]},zA=MA,BA={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"}}]},FA=BA,IA={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)"}}]},UA=IA,HA={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)"}}]},P1=HA,qA={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)"}}]},PA=qA,VA={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"}}]},$A=VA,GA={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"}}]},YA=GA,XA={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%)"}}]},ZA=XA,KA={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%)"}}]},QA=KA,JA={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=JA,e6={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"}}]},t6=e6,n6=e=>R.useCallback(r=>{var l=r,{className:a,style:s,line:u}=l,c=q1(l,["className","style","line"]);const f=lu($n({},c),{className:I1("token-line",a)});return typeof e=="object"&&"plain"in e&&(f.style=e.plain),typeof s=="object"&&(f.style=$n($n({},f.style||{}),s)),f},[e]),r6=e=>{const r=R.useCallback(({types:l,empty:a})=>{if(e!=null){{if(l.length===1&&l[0]==="plain")return a!=null?{display:"inline-block"}:void 0;if(l.length===1&&a!=null)return e[l[0]]}return Object.assign(a!=null?{display:"inline-block"}:{},...l.map(s=>e[s]))}},[e]);return R.useCallback(l=>{var a=l,{token:s,className:u,style:c}=a,f=q1(a,["token","className","style"]);const p=lu($n({},f),{className:I1("token",...s.types,u),children:s.content,style:r(s)});return c!=null&&(p.style=$n($n({},p.style||{}),c)),p},[r])},l6=/\r\n|\r|\n/,py=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
44
|
-
`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
|
|
45
|
-
`,e[0].empty=!0)},my=(e,r)=>{const l=e.length;return l>0&&e[l-1]===r?e:e.concat(r)},i6=e=>{const r=[[]],l=[e],a=[0],s=[e.length];let u=0,c=0,f=[];const p=[f];for(;c>-1;){for(;(u=a[c]++)<s[c];){let h,b=r[c];const x=l[c][u];if(typeof x=="string"?(b=c>0?b:["plain"],h=x):(b=my(b,x.type),x.alias&&(b=my(b,x.alias)),h=x.content),typeof h!="string"){c++,r.push(b),l.push(h),a.push(0),s.push(h.length);continue}const v=h.split(l6),w=v.length;f.push({types:b,content:v[0]});for(let k=1;k<w;k++)py(f),p.push(f=[]),f.push({types:b,content:v[k]})}c--,r.pop(),l.pop(),a.pop(),s.pop()}return py(f),p},gy=i6,a6=({prism:e,code:r,grammar:l,language:a})=>R.useMemo(()=>{if(l==null)return gy([r]);const s={code:r,grammar:l,language:a,tokens:[]};return e.hooks.run("before-tokenize",s),s.tokens=e.tokenize(r,l),e.hooks.run("after-tokenize",s),gy(s.tokens)},[r,l,a,e]),o6=(e,r)=>{const{plain:l}=e,a=e.styles.reduce((s,u)=>{const{languages:c,style:f}=u;return c&&!c.includes(r)||u.types.forEach(p=>{const h=$n($n({},s[p]),f);s[p]=h}),s},{});return a.root=l,a.plain=lu($n({},l),{backgroundColor:void 0}),a},s6=o6,u6=({children:e,language:r,code:l,theme:a,prism:s})=>{const u=r.toLowerCase(),c=s6(a,u),f=n6(c),p=r6(c),h=s.languages[u],b=a6({prism:s,language:u,code:l,grammar:h});return e({tokens:b,className:`prism-code language-${u}`,style:c!=null?c.root:{},getLineProps:f,getTokenProps:p})},c6=e=>R.createElement(u6,lu($n({},e),{prism:e.prism||se,theme:e.theme||P1,code:e.code,language:e.language}));const f6="modulepreload",d6=function(e){return"/"+e},by={},Ft=function(r,l,a){let s=Promise.resolve();if(l&&l.length>0){let p=function(h){return Promise.all(h.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");s=p(l.map(h=>{if(h=d6(h),h in by)return;by[h]=!0;const b=h.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const x=document.createElement("link");if(x.rel=b?"stylesheet":f6,b||(x.as="script"),x.crossOrigin="",x.href=h,f&&x.setAttribute("nonce",f),document.head.appendChild(x),b)return new Promise((v,w)=>{x.addEventListener("load",v),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function u(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return s.then(c=>{for(const f of c||[])f.status==="rejected"&&u(f.reason);return r().catch(u)})},ys={};function V1(e){if(!ys[e]){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-C05TZp5_.js").then(a=>a.p),[])),sql:()=>Ft(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>Ft(()=>import("./prism-ruby-C_UU6C7J.js").then(a=>a.p),[]),java:()=>Ft(()=>import("./prism-java-NEfmWs-a.js").then(a=>a.p),[]),scala:async()=>(await V1("java"),Ft(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>Ft(()=>import("./prism-solidity-Dy4Vtzco.js").then(a=>a.p),[]),vim:()=>Ft(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>Ft(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>Ft(()=>import("./prism-csharp-B0flB6m_.js").then(a=>a.p),[]),protobuf:()=>Ft(()=>import("./prism-protobuf-DiQ_z8B5.js"),[]),hcl:()=>Ft(()=>import("./prism-hcl-Dw-ceyEl.js").then(a=>a.p),[]),perl:()=>Ft(()=>import("./prism-perl-BBlpkdoq.js").then(a=>a.p),[])}[e];if(!l)return console.warn(`No loader available for language: ${e}`),Promise.reject(new Error(`Unsupported language: ${e}`));ys[e]=l().then(()=>{}).catch(a=>{throw delete ys[e],console.warn(`Failed to load language: ${e}`,a),a})}return ys[e]}typeof global<"u"?global.Prism=se:typeof window<"u"&&(window.Prism=se);const yy=["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 h6(e,r){const[l,a]=R.useState(()=>yy.includes(r)||!!se.languages[r]);return R.useEffect(()=>{if(!l){if(yy.includes(r)){a(!0);return}V1(r).then(()=>{a(!0)}).catch(()=>{a(!1)})}},[r,l]),{ready:l,actualLang:l?r:"text"}}const xy=[{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"}],vy=[{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 p6(e){return{...e,styles:e.styles.map(r=>({...r,style:{...r.style,background:void 0,backgroundColor:void 0}}))}}function m6(e){let r;switch(e){case"github":r=xn.github;break;case"vsLight":r=xn.vsLight;break;case"oneLight":r=xn.oneLight;break;case"gruvboxMaterialLight":r=xn.gruvboxMaterialLight;break;case"nightOwlLight":r=xn.nightOwlLight;break;case"vsDark":r=xn.vsDark;break;case"oneDark":r=xn.oneDark;break;case"gruvboxMaterialDark":r=xn.gruvboxMaterialDark;break;case"nightOwl":r=xn.nightOwl;break;case"dracula":r=xn.dracula;break;case"okaidia":r=xn.okaidia;break;default:r=xn.vsDark}return p6(r)}function g6(e){const r=jS(e).toLowerCase(),l=Qs(e),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 mh=Zt.memo(function({code:r,language:l,className:a,syntaxTheme:s="vsDark",filename:u="",renderToken:c,onMouseOver:f,onMouseOut:p}){const h=l||(u?g6(u):"text"),{actualLang:b}=h6(r,h),g=m6(s),x=R.useCallback(({style:v,tokens:w,getLineProps:k,getTokenProps:T})=>y.jsx("span",{className:a,style:{...v,background:"transparent",backgroundColor:"transparent"},onMouseOver:f,onMouseOut:p,children:w.map((E,C)=>y.jsx("span",{...k({line:E}),children:E.map((N,B)=>c?c(N,B,T):y.jsx("span",{...T({token:N})},B))},C))}),[a,f,p,c]);return y.jsx(c6,{code:r,language:b,theme:g,prism:se,children:x})});class $1{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),f=this.removeEmpty(this.tokenize(u,a)),p=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(f,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},f=l.length,p=r.length;let h=1,b=f+p;a.maxEditLength!=null&&(b=Math.min(b,a.maxEditLength));const g=(u=a.timeout)!==null&&u!==void 0?u:1/0,x=Date.now()+g,v=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(v[0],l,r,0,a);if(v[0].oldPos+1>=p&&w+1>=f)return c(this.buildValues(v[0].lastComponent,l,r));let k=-1/0,T=1/0;const E=()=>{for(let C=Math.max(k,-h);C<=Math.min(T,h);C+=2){let N;const B=v[C-1],q=v[C+1];B&&(v[C-1]=void 0);let L=!1;if(q){const $=q.oldPos-C;L=q&&0<=$&&$<f}const I=B&&B.oldPos+1<p;if(!L&&!I){v[C]=void 0;continue}if(!I||L&&B.oldPos<q.oldPos?N=this.addToPath(q,!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>=f)return c(this.buildValues(N.lastComponent,l,r))||!0;v[C]=N,N.oldPos+1>=p&&(T=Math.min(T,C-1)),w+1>=f&&(k=Math.max(k,C+1))}h++};if(s)(function C(){setTimeout(function(){if(h>b||Date.now()>x)return s(void 0);E()||C()},0)})();else for(;h<=b&&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,f=a.length;let p=r.oldPos,h=p-s,b=0;for(;h+1<c&&p+1<f&&this.equals(a[p+1],l[h+1],u);)h++,p++,b++,u.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return b&&!u.oneChangePerToken&&(r.lastComponent={count:b,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 f=0,p=0,h=0;for(;f<c;f++){const b=s[f];if(b.removed)b.value=this.join(a.slice(h,h+b.count)),h+=b.count;else{if(!b.added&&this.useLongestToken){let g=l.slice(p,p+b.count);g=g.map(function(x,v){const w=a[h+v];return w.length>x.length?w:x}),b.value=this.join(g)}else b.value=this.join(l.slice(p,p+b.count));p+=b.count,b.added||(h+=b.count)}}return s}}function wy(e,r){let l;for(l=0;l<e.length&&l<r.length;l++)if(e[l]!=r[l])return e.slice(0,l);return e.slice(0,l)}function Sy(e,r){let l;if(!e||!r||e[e.length-1]!=r[r.length-1])return"";for(l=0;l<e.length&&l<r.length;l++)if(e[e.length-(l+1)]!=r[r.length-(l+1)])return e.slice(-l);return e.slice(-l)}function Rd(e,r,l){if(e.slice(0,r.length)!=r)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(r)}; this is a bug`);return l+e.slice(r.length)}function _d(e,r,l){if(!r)return e+l;if(e.slice(-r.length)!=r)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(r)}; this is a bug`);return e.slice(0,-r.length)+l}function ja(e,r){return Rd(e,r,"")}function xs(e,r){return _d(e,r,"")}function ky(e,r){return r.slice(0,b6(e,r))}function b6(e,r){let l=0;e.length>r.length&&(l=e.length-r.length);let a=r.length;e.length<r.length&&(a=e.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<e.length;c++){for(;u>0&&e[c]!=r[u];)u=s[u];e[c]==r[u]&&u++}return u}function La(e){let r;for(r=e.length-1;r>=0&&e[r].match(/\s/);r--);return e.substring(r+1)}function Xr(e){const r=e.match(/^\s*/);return r?r[0]:""}const Ey="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}",y6=new RegExp(`[${Ey}]+|\\s+|[^${Ey}]`,"ug");class x6 extends $1{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 f of Array.from(c.segment(r))){const p=f.segment;a.length&&/\s/.test(a[a.length-1])&&/\s/.test(p)?a[a.length-1]+=p:a.push(p)}}else a=r.match(y6)||[];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)&&Cy(a,u,s,c),a=c,s=null,u=null)}),(s||u)&&Cy(a,u,s,null),r}}const v6=new x6;function G1(e,r,l){return v6.diff(e,r,l)}function Cy(e,r,l,a){if(r&&l){const s=Xr(r.value),u=La(r.value),c=Xr(l.value),f=La(l.value);if(e){const p=wy(s,c);e.value=_d(e.value,c,p),r.value=ja(r.value,p),l.value=ja(l.value,p)}if(a){const p=Sy(u,f);a.value=Rd(a.value,f,p),r.value=xs(r.value,p),l.value=xs(l.value,p)}}else if(l){if(e){const s=Xr(l.value);l.value=l.value.substring(s.length)}if(a){const s=Xr(a.value);a.value=a.value.substring(s.length)}}else if(e&&a){const s=Xr(a.value),u=Xr(r.value),c=La(r.value),f=wy(s,u);r.value=ja(r.value,f);const p=Sy(ja(s,f),c);r.value=xs(r.value,p),a.value=Rd(a.value,s,p),e.value=_d(e.value,s,s.slice(0,s.length-p.length))}else if(a){const s=Xr(a.value),u=La(r.value),c=ky(u,s);r.value=xs(r.value,c)}else if(e){const s=La(e.value),u=Xr(r.value),c=ky(s,u);r.value=ja(r.value,c)}}class w6 extends $1{constructor(){super(...arguments),this.tokenize=E6}equals(r,l,a){return a.ignoreWhitespace?((!a.newlineIsToken||!r.includes(`
|
|
46
|
-
`))&&(r=r.trim()),(!a.newlineIsToken||!l.includes(`
|
|
47
|
-
`))&&(l=l.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(r.endsWith(`
|
|
48
|
-
`)&&(r=r.slice(0,-1)),l.endsWith(`
|
|
49
|
-
`)&&(l=l.slice(0,-1))),super.equals(r,l,a)}}const S6=new w6;function k6(e,r,l){return S6.diff(e,r,l)}function E6(e,r){r.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
50
|
-
`));const l=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let s=0;s<a.length;s++){const u=a[s];s%2&&!r.newlineIsToken?l[l.length-1]+=u:l.push(u)}return l}function Y1(e,r){const l=G1(e,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 X1(e,r){if(!e.trim()||!r.trim()||e===r)return!1;const l=G1(e,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 Z1({onSubmit:e,onCancel:r}){const[l,a]=R.useState(""),[s,u]=R.useState(!1),c=async h=>{if(h.preventDefault(),!!l.trim()){u(!0);try{await e(l.trim()),a("")}catch(b){console.error("Failed to submit comment:",b)}finally{u(!1)}}},f=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 y.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:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-yellow-path-text)"},children:"Add a comment"}),y.jsxs("span",{className:"text-xs text-github-text-muted",children:[p,"+Enter to submit • Escape to cancel"]})]}),y.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:f,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:s}),y.jsxs("div",{className:"flex gap-2 justify-end",children:[y.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"}),y.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 Ls=Zt.memo(({onMouseDown:e,onMouseUp:r,title:l="Add a comment"})=>y.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:e,onMouseUp:r,title:l,children:y.jsx(jx,{className:"w-4 h-4"})}));Ls.displayName="CommentButton";const C6=2,T6=100;function A6(e){return!(e.length<C6||e.length>T6)}function Ty(e){return e.toLowerCase()}function Ay(e){const r=e.trim();return r?r.match(/^\w+$/)!==null&&A6(r):!1}const N6=200,K1=R.createContext(void 0);function R6({children:e}){const[r,l]=R.useState(null),a=R.useRef(null),s=R.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null)},[]),u=R.useCallback(h=>{const b=h.target;if(!b.classList.contains("word-token"))return;s();const g=b.getAttribute("data-word");g&&(a.current=setTimeout(()=>{l(g)},N6))},[s]),c=R.useCallback(()=>{s(),l(null)},[s]),f=R.useCallback(h=>r?Ty(h)===Ty(r):!1,[r]);R.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]);const p={highlightedWord:r,handleMouseOver:u,handleMouseOut:c,isWordHighlighted:f};return y.jsx(K1.Provider,{value:p,children:e})}function _6(){const e=R.useContext(K1);if(!e)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return e}const Pa=Zt.memo(function(r){const{handleMouseOver:l,handleMouseOut:a,isWordHighlighted:s}=_6(),u=R.useCallback((c,f,p)=>{const h=p({token:c}),b=c.content.split(/( +)/);if(b.length===1&&b[0]&&!Ay(b[0]))return y.jsx("span",{...h},f);const g=b.map((x,v)=>{if(!x)return null;if(Ay(x)){const w=x.trim(),k=s(w);return y.jsx("span",{className:`word-token ${k?"word-highlight":""}`,"data-word":w,children:x},`${f}-${v}`)}return y.jsx("span",{children:x},`${f}-${v}`)});return y.jsx("span",{...h,children:g},f)},[s]);return y.jsx(mh,{...r,renderToken:u,onMouseOver:l,onMouseOut:a})}),Ds=Zt.memo(({onClick:e,title:r="Open in editor",className:l})=>y.jsx("button",{className:`absolute -right-10 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 ${l||""}`,"data-open-in-editor-button":"true",style:{backgroundColor:"var(--color-editor-btn-bg)",color:"var(--color-editor-btn-text)",border:"1px solid var(--color-editor-btn-border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="var(--color-editor-btn-hover-bg)",a.currentTarget.style.borderColor="var(--color-editor-btn-hover-border)"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="var(--color-editor-btn-bg)",a.currentTarget.style.borderColor="var(--color-editor-btn-border)"},onMouseDown:a=>{a.stopPropagation()},onClick:a=>{a.stopPropagation(),e(a)},title:r,children:y.jsx(Y2,{className:"w-4 h-4 opacity-80"})}));Ds.displayName="OpenInEditorButton";const jd=Zt.memo(function({segments:r,className:l=""}){const a=R.useMemo(()=>r.map((s,u)=>{const c=s.type==="added"?"word-diff-added":s.type==="removed"?"word-diff-removed":"";return y.jsx("span",{className:c,children:s.value},u)}),[r]);return y.jsx("span",{className:l,children:a})}),j6=e=>{if("isExpanded"in e&&e.isExpanded)return"bg-github-bg-tertiary/80";switch(e.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},L6=e=>{switch(e.type){case"add":return"+";case"delete":return"-";default:return" "}},Q1=Zt.memo(({line:e,index:r,lineId:l,isCurrentLine:a=!1,hoveredLineIndex:s,selectedLineStyle:u,onMouseEnter:c,onMouseLeave:f,onMouseMove:p,onCommentButtonMouseDown:h,onCommentButtonMouseUp:b,onOpenInEditor:g,syntaxTheme:x,onClick:v,filename:w,diffSegments:k})=>{const T=e.newLineNumber||e.oldLineNumber,E=s===r&&T,C=a?"keyboard-cursor":"";return y.jsxs("tr",{id:l,className:`group ${j6(e)} relative ${u} ${C} cursor-pointer`,onMouseEnter:c,onMouseLeave:f,onMouseMove:p,onClick:v,children:[y.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:e.oldLineNumber||""}),y.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:[y.jsx("span",{children:e.newLineNumber||""}),E&&y.jsxs(y.Fragment,{children:[g&&y.jsx(Ds,{onClick:g}),y.jsx(Ls,{onMouseDown:h,onMouseUp:b})]})]}),y.jsx("td",{className:"p-0 w-full relative align-top",children:y.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[y.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${e.type==="add"?"text-github-accent bg-diff-addition-bg":e.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:L6(e)}),k?y.jsx(jd,{segments:k,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Pa,{code:e.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:x,filename:w})]})})]})});Q1.displayName="DiffLineRow";const Ny=e=>e!==void 0&&"isExpanded"in e&&e.isExpanded===!0,Ry=(e,r)=>r?"bg-github-bg-tertiary/80":e?.type==="delete"?"bg-diff-deletion-bg":e?.type==="add"?"bg-diff-addition-bg":e?.type==="normal"?"bg-transparent":"bg-github-bg-secondary";function D6({chunk:e,chunkIndex:r,comments:l,onAddComment:a,onGeneratePrompt:s,onRemoveComment:u,onUpdateComment:c,syntaxTheme:f,cursor:p=null,fileIndex:h=0,onLineClick:b,commentTrigger:g,onCommentTriggerHandled:x,filename:v,onOpenInEditor:w}){const[k,T]=R.useState(null),[E,C]=R.useState(null),[N,B]=R.useState(!1),[q,L]=R.useState(null),[I,$]=R.useState(null);R.useEffect(()=>{if(g?.lineIndex!==void 0){const O=e.lines[g.lineIndex];if(O&&O.type!=="delete"){const z=O.newLineNumber;z&&(L({side:"new",lineNumber:z}),x?.())}}},[g,e.lines,x]),R.useEffect(()=>{if(N){const O=()=>{B(!1),T(null),C(null)};return document.addEventListener("mouseup",O),()=>{document.removeEventListener("mouseup",O)}}},[N]);const G=R.useCallback((O,z)=>{q?.side===O&&q?.lineNumber===z?L(null):L({side:O,lineNumber:z})},[q]),M=R.useCallback(()=>{L(null)},[]),V=R.useCallback(async O=>{q!==null&&(await a(q.lineNumber,O,void 0,q.side),L(null))},[q,a]),Y=(O,z)=>l.filter(K=>{const _=Array.isArray(K.line)?K.line[1]===O:K.line===O,D=!K.side||K.side===z;return _&&D}),J=O=>O.oldLine?.type==="delete"&&O.newLine?.type==="add"?O.newLineNumber?"right":"left":O.oldLine?.type==="delete"?"left":O.newLine?.type==="add"?"right":"full",U=(O,z)=>{const K=O==="old"?z.oldLineNumber:z.newLineNumber;if(!K)return"";if(N&&k&&E&&k.side===O&&E.side===O){const _=Math.min(k.lineNumber,E.lineNumber),D=Math.max(k.lineNumber,E.lineNumber);if(K>=_&&K<=D){let H="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 K===_&&(H+=" after:border-t-2"),K===D&&(H+=" after:border-b-2"),H}}if(q&&q.side===O){const _=Array.isArray(q.lineNumber)?q.lineNumber:[q.lineNumber,q.lineNumber],D=_[0],H=_[1];if(D!==void 0&&H!==void 0&&K>=D&&K<=H)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""},X=R.useCallback(O=>{const z=[];let K=e.oldStart,_=e.newStart,D=0;for(;D<O.length;){const H=O[D];if(!H){D++;continue}if(H.type==="normal")z.push({oldLine:H,newLine:{...H},oldLineNumber:H.oldLineNumber??K,newLineNumber:H.newLineNumber??_,oldLineOriginalIndex:D,newLineOriginalIndex:D}),K++,_++,D++;else if(H.type==="delete"){let A=D+1;for(;A<O.length&&O[A]?.type==="delete";)A++;const le=O.slice(D,A),ce=D,de=[],fe=A;for(;A<O.length&&O[A]?.type==="add";){const he=O[A];he&&de.push(he),A++}const ge=Math.max(le.length,de.length);for(let he=0;he<ge;he++){const ve=le[he],xe=de[he];let ye;ve&&xe&&X1(ve.content,xe.content)&&(ye=Y1(ve.content,xe.content)),z.push({oldLine:ve,newLine:xe,oldLineNumber:ve?ve.oldLineNumber??K+he:void 0,newLineNumber:xe?xe.newLineNumber??_+he:void 0,oldLineOriginalIndex:ve?ce+he:void 0,newLineOriginalIndex:xe?fe+he:void 0,wordLevelDiff:ye})}K+=le.length,_+=de.length,D=A}else H.type==="add"&&(z.push({newLine:H,newLineNumber:H.newLineNumber??_,newLineOriginalIndex:D}),_++,D++)}return z},[e.oldStart,e.newStart]),F=R.useMemo(()=>X(e.lines),[e.lines,X]);return y.jsx("div",{className:"bg-github-bg-primary overflow-hidden",children:y.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:y.jsx("tbody",{children:F.map((O,z)=>{const K=O.oldLineNumber?Y(O.oldLineNumber,"old"):[],_=O.newLineNumber?Y(O.newLineNumber,"new"):[],D=[...K,..._],H=O.oldLineOriginalIndex??-1,A=O.newLineOriginalIndex??-1,le=p?p.side==="left"&&H>=0?p.chunkIndex===r&&p.lineIndex===H:p.side==="right"&&A>=0?p.chunkIndex===r&&p.lineIndex===A:!1:!1,ce=H>=0?`file-${h}-chunk-${r}-line-${H}-left`:void 0,de=A>=0?`file-${h}-chunk-${r}-line-${A}-right`:void 0,fe=le&&p?.side==="left",ge=le&&p?.side==="right",he="keyboard-cursor";return y.jsxs(Zt.Fragment,{children:[y.jsxs("tr",{className:"group cursor-pointer",onClick:ve=>{if(!N){const xe=ve.target,ye=xe.closest("td:nth-child(1)")||xe.closest("td:nth-child(2)"),Ce=xe.closest("td:nth-child(3)")||xe.closest("td:nth-child(4)");ye&&H>=0?b?.(h,r,H,"left"):Ce&&A>=0&&b?.(h,r,A,"right")}},onMouseEnter:ve=>{const xe=ve.target,ye=xe.closest("td:nth-child(1)")||xe.closest("td:nth-child(2)"),Ce=xe.closest("td:nth-child(3)")||xe.closest("td:nth-child(4)");ye&&O.oldLineNumber?$({side:"old",lineNumber:O.oldLineNumber}):Ce&&O.newLineNumber&&$({side:"new",lineNumber:O.newLineNumber})},onMouseMove:ve=>{const xe=ve.target,ye=xe.closest("td:nth-child(1)")||xe.closest("td:nth-child(2)"),Ce=xe.closest("td:nth-child(3)")||xe.closest("td:nth-child(4)");ye&&O.oldLineNumber?(I?.side!=="old"||I?.lineNumber!==O.oldLineNumber)&&$({side:"old",lineNumber:O.oldLineNumber}):Ce&&O.newLineNumber&&(I?.side!=="new"||I?.lineNumber!==O.newLineNumber)&&$({side:"new",lineNumber:O.newLineNumber}),N&&k&&(k.side==="old"&&O.oldLineNumber?C({side:"old",lineNumber:O.oldLineNumber}):k.side==="new"&&O.newLineNumber&&C({side:"new",lineNumber:O.newLineNumber}))},onMouseLeave:()=>$(null),children:[y.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 ${fe?he:""}`,children:[y.jsx("span",{children:O.oldLineNumber||""}),I?.side==="old"&&I?.lineNumber===O.oldLineNumber&&y.jsxs(y.Fragment,{children:[w&&O.oldLine?.type!=="delete"&&O.newLineNumber!==void 0&&y.jsx(Ds,{onClick:()=>{const ve=O.newLineNumber;!v||ve===void 0||w(v,ve)}}),y.jsx(Ls,{onMouseDown:ve=>{ve.stopPropagation(),O.oldLineNumber&&(T({side:"old",lineNumber:O.oldLineNumber}),C({side:"old",lineNumber:O.oldLineNumber}),B(!0))},onMouseUp:ve=>{if(ve.stopPropagation(),!O.oldLineNumber||!k){B(!1),T(null),C(null);return}const xe=E&&E.side==="old"?E.lineNumber:O.oldLineNumber;if(k.side!=="old"||k.lineNumber===xe)G("old",O.oldLineNumber);else{const ye=Math.min(k.lineNumber,xe),Ce=Math.max(k.lineNumber,xe);G("old",[ye,Ce])}B(!1),T(null),C(null)}})]})]}),y.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${Ry(O.oldLine,Ny(O.oldLine))} ${U("old",O)} ${fe?he:""}`,children:O.oldLine&&y.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:O.wordLevelDiff?y.jsx(jd,{segments:O.wordLevelDiff.oldSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Pa,{code:O.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:f,filename:v})})}),y.jsxs("td",{id:de,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 ${ge?he:""}`,children:[y.jsx("span",{children:O.newLineNumber||""}),I?.side==="new"&&I?.lineNumber===O.newLineNumber&&y.jsxs(y.Fragment,{children:[w&&y.jsx(Ds,{onClick:()=>{const ve=O.newLineNumber;!v||ve===void 0||w(v,ve)}}),y.jsx(Ls,{onMouseDown:ve=>{ve.stopPropagation(),O.newLineNumber&&(T({side:"new",lineNumber:O.newLineNumber}),C({side:"new",lineNumber:O.newLineNumber}),B(!0))},onMouseUp:ve=>{if(ve.stopPropagation(),!O.newLineNumber||!k){B(!1),T(null),C(null);return}const xe=E&&E.side==="new"?E.lineNumber:O.newLineNumber;if(k.side!=="new"||k.lineNumber===xe)G("new",O.newLineNumber);else{const ye=Math.min(k.lineNumber,xe),Ce=Math.max(k.lineNumber,xe);G("new",[ye,Ce])}B(!1),T(null),C(null)}})]})]}),y.jsx("td",{className:`w-1/2 p-0 align-top relative ${Ry(O.newLine,Ny(O.newLine))} ${U("new",O)} ${ge?he:""}`,children:O.newLine&&y.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:O.wordLevelDiff?y.jsx(jd,{segments:O.wordLevelDiff.newSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Pa,{code:O.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:f,filename:v})})})]}),D.length>0&&y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:D.map(ve=>{const xe=ve.side||"new";let ye;return xe==="old"&&O.oldLineNumber?ye="left":xe==="new"&&O.newLineNumber?ye="right":ye=J(O),y.jsx("div",{className:`flex ${ye==="left"?"justify-start":ye==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${ye==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:y.jsx(Yd,{comment:ve,onGeneratePrompt:s,onRemoveComment:u,onUpdateComment:c})})},ve.id)})})}),q&&(q.side==="old"&&q.lineNumber===O.oldLineNumber||q.side==="new"&&q.lineNumber===O.newLineNumber||Array.isArray(q.lineNumber)&&(q.side==="new"&&q.lineNumber[1]===O.newLineNumber||q.side==="old"&&q.lineNumber[1]===O.oldLineNumber))&&y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:4,className:"p-0",children:y.jsx("div",{className:`flex ${q.side==="old"?"justify-start":q.side==="new"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:"w-1/2",children:y.jsx(Z1,{onSubmit:V,onCancel:M})})})})})]},z)})})})})}const O6=R.memo(function({chunk:r,chunkIndex:l,comments:a,onAddComment:s,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f,mode:p=$a,syntaxTheme:h,cursor:b=null,fileIndex:g=0,onLineClick:x,commentTrigger:v,onCommentTriggerHandled:w,filename:k,onOpenInEditor:T}){const[E,C]=R.useState(null),[N,B]=R.useState(null),[q,L]=R.useState(!1),[I,$]=R.useState(null),[G,M]=R.useState(null);R.useEffect(()=>{if(v?.lineIndex!==void 0){const z=r.lines[v.lineIndex];if(z){const K=z.newLineNumber||z.oldLineNumber,_=z.type==="delete"?"old":"new";K&&($({side:_,lineNumber:K}),w?.())}}},[v,r.lines,w]),R.useEffect(()=>{if(q){const z=()=>{L(!1),C(null),B(null)};return document.addEventListener("mouseup",z),()=>{document.removeEventListener("mouseup",z)}}},[q]);const V=R.useCallback((z,K)=>{I?.side===z&&I?.lineNumber===K?$(null):$({side:z,lineNumber:K})},[I]),Y=R.useCallback(()=>{$(null)},[]),J=R.useCallback(async z=>{I!==null&&(await s(I.lineNumber,z,void 0,I.side),$(null))},[I,s]),U=(z,K)=>a.filter(_=>{const D=Array.isArray(_.line)?_.line[1]===z:_.line===z,H=!_.side||_.side===K;return D&&H}),X=z=>{if(p==="unified")return"full";switch(z.type){case"delete":return"left";case"add":return"right";default:return"full"}},F=(z,K)=>{if(!z)return"";if(q&&E&&N){const _=Math.min(E,N),D=Math.max(E,N);if(z>=_&&z<=D){let H="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===_&&(H+=" after:border-t-2"),z===D&&(H+=" after:border-b-2"),H}}if(I&&I.side===K){const _=Array.isArray(I.lineNumber)?I.lineNumber[0]:I.lineNumber,D=Array.isArray(I.lineNumber)?I.lineNumber[1]:I.lineNumber;if(z>=_&&z<=D)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""},O=R.useMemo(()=>{const z=new Map,K=r.lines;let _=0;for(;_<K.length;){const D=K[_];if(!D){_++;continue}if(D.type==="delete"){let H=_+1;for(;H<K.length&&K[H]?.type==="delete";)H++;const A=K.slice(_,H),le=_,ce=[];for(;H<K.length&&K[H]?.type==="add";){const fe=K[H];fe&&ce.push({line:fe,index:H}),H++}const de=Math.max(A.length,ce.length);for(let fe=0;fe<de;fe++){const ge=A[fe],he=ce[fe];if(ge&&he&&X1(ge.content,he.line.content)){const ve=Y1(ge.content,he.line.content);z.set(le+fe,ve.oldSegments),z.set(he.index,ve.newSegments)}}_=H}else _++}return z},[r.lines]);return p==="split"?y.jsx(D6,{chunk:r,chunkIndex:l,comments:a,onAddComment:s,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f,onOpenInEditor:T,syntaxTheme:h,cursor:b,fileIndex:g,onLineClick:x,filename:k,commentTrigger:v,onCommentTriggerHandled:w}):y.jsx("div",{className:"bg-github-bg-primary",children:y.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:y.jsx("tbody",{children:r.lines.map((z,K)=>{const _=z.newLineNumber||z.oldLineNumber||0,D=z.type==="delete"?"old":"new",H=I?Array.isArray(I.lineNumber)?I.lineNumber[1]:I.lineNumber:null,A=z.type==="delete"?z.oldLineNumber:z.newLineNumber,le=z.type==="delete"?"old":"new",ce=A?U(A,le):[],de=`file-${g}-chunk-${l}-line-${K}`,fe=b&&b.chunkIndex===l&&b.lineIndex===K;return y.jsxs(Zt.Fragment,{children:[y.jsx(Q1,{line:z,index:K,lineId:de,isCurrentLine:fe||!1,hoveredLineIndex:G,selectedLineStyle:F(z.newLineNumber||z.oldLineNumber,z.type==="delete"?"old":"new"),onMouseEnter:()=>{M(K)},onMouseLeave:()=>M(null),onMouseMove:()=>{if(q&&E){const ge=z.newLineNumber||z.oldLineNumber;ge&&B(ge)}},onCommentButtonMouseDown:ge=>{ge.stopPropagation();const he=z.newLineNumber||z.oldLineNumber;he&&(C(he),B(he),L(!0))},onCommentButtonMouseUp:ge=>{ge.stopPropagation();const he=z.newLineNumber||z.oldLineNumber,ve=z.type==="delete"?"old":"new";if(!he||!E){L(!1),C(null),B(null);return}const xe=N||he;if(E===xe)V(ve,he);else{const ye=Math.min(E,xe),Ce=Math.max(E,xe);V(ve,[ye,Ce])}L(!1),C(null),B(null)},onOpenInEditor:T&&z.type!=="delete"&&(z.newLineNumber||z.oldLineNumber)?()=>{const ge=z.newLineNumber||z.oldLineNumber;ge&&k&&T(k,ge)}:void 0,syntaxTheme:h,filename:k,diffSegments:O.get(K),onClick:()=>{const ge=z.type==="delete"?"left":"right";x?.(g,l,K,ge)}}),ce.map(ge=>{const he=X(z);return y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:y.jsx("div",{className:`flex ${he==="left"?"justify-start":he==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${he==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:y.jsx(Yd,{comment:ge,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f})})})})},ge.id)}),I&&I.side===D&&H===_&&y.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:y.jsx("td",{colSpan:3,className:"p-0",children:y.jsx("div",{className:`flex ${X(z)==="left"?"justify-start":X(z)==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${X(z)==="full"?"w-full":"w-1/2"}`,children:y.jsx(Z1,{onSubmit:J,onCancel:Y})})})})})]},K)})})})})}),Qf=20,Jf=R.memo(function({direction:r,hiddenLines:l,onExpandUp:a,onExpandDown:s,onExpandAll:u,isLoading:c=!1}){if(l<=0)return null;const f=`${l} ${l===1?"line":"lines"}`,p=l<=Qf,h="grid-cols-[var(--line-number-width)_1fr]",b="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",g=[];return p?g.push({key:"all",onClick:u,ariaLabel:`Expand all ${l} hidden lines`,icon:y.jsx(TS,{size:16,"aria-hidden":"true"})}):((r==="up"||r==="both")&&g.push({key:"up",onClick:a,ariaLabel:`Expand ${Qf} hidden lines above`,icon:y.jsx(D2,{size:12,"aria-hidden":"true",className:"translate-y-0.5"})}),(r==="down"||r==="both")&&g.push({key:"down",onClick:s,ariaLabel:`Expand ${Qf} hidden lines below`,icon:y.jsx(j2,{size:12,"aria-hidden":"true",className:"-translate-y-0.5"})})),y.jsxs("div",{className:`grid w-full border-l border-r border-github-border bg-github-bg-tertiary text-sm ${h}`,children:[y.jsx("div",{className:"flex flex-col items-stretch justify-center gap-0.5 border-r border-github-border",children:c?y.jsx(sS,{size:14,className:"animate-spin text-github-text-muted self-center","aria-hidden":"true"}):g.map(x=>y.jsx("button",{type:"button",onClick:x.onClick,disabled:c||!x.onClick,className:b,title:x.ariaLabel,"aria-label":x.ariaLabel,children:x.icon},x.key))}),y.jsx("div",{className:"flex items-center justify-start px-3 py-1.5 font-mono text-github-text-muted select-none",children:f})]})});function Os({file:e,comments:r,diffMode:l,syntaxTheme:a,cursor:s,fileIndex:u,mergedChunks:c,isExpandLoading:f,expandHiddenLines:p,expandAllBetweenChunks:h,onAddComment:b,onGeneratePrompt:g,onRemoveComment:x,onUpdateComment:v,onLineClick:w,onOpenInEditor:k,commentTrigger:T,onCommentTriggerHandled:E}){const C=(N,B,q,L)=>N==="top"&&B.hiddenLinesBefore>0?y.jsx(Jf,{direction:"down",hiddenLines:B.hiddenLinesBefore,onExpandDown:()=>p(e,q,"up"),onExpandAll:()=>h(e,q,B.hiddenLinesBefore),isLoading:f}):N==="middle"&&B.hiddenLinesBefore>0?y.jsx(Jf,{direction:"both",hiddenLines:B.hiddenLinesBefore,onExpandUp:()=>p(e,q-1,"down"),onExpandDown:()=>p(e,q,"up"),onExpandAll:()=>h(e,q,B.hiddenLinesBefore),isLoading:f}):N==="bottom"&&B.hiddenLinesAfter>0?y.jsx(Jf,{direction:"up",hiddenLines:B.hiddenLinesAfter,onExpandUp:()=>p(e,L,"down"),onExpandAll:()=>p(e,L,"down",B.hiddenLinesAfter),isLoading:f}):null;return y.jsx(y.Fragment,{children:c.map((N,B)=>{const q=B===0,L=B===c.length-1,I=N.originalIndices[0]??0,$=N.originalIndices[N.originalIndices.length-1]??0;return y.jsxs(Zt.Fragment,{children:[q&&C("top",N,I,$),!q&&C("middle",N,I,$),y.jsx("div",{id:`chunk-${e.path.replace(/[^a-zA-Z0-9]/g,"-")}-${B}`,children:y.jsx(O6,{chunk:N,chunkIndex:B,comments:r,onAddComment:b,onGeneratePrompt:g,onRemoveComment:x,onUpdateComment:v,onOpenInEditor:k,mode:l,syntaxTheme:a,cursor:s&&s.chunkIndex===B?s:null,fileIndex:u,onLineClick:w,commentTrigger:T&&T.chunkIndex===B?T:null,onCommentTriggerHandled:E,filename:e.path})}),L&&C("bottom",N,I,$)]},B)})})}const wi=["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"],M6=e=>e.type==="delete"||e.type==="remove",z6=e=>e.type==="normal"||e.type==="context",Ms=e=>/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim()),Ld=(e,r,l)=>{const a=e[e.length-1];if(a&&a.type===r){a.lines.push(l);return}e.push({type:r,lines:[l]})},Wf=(e,r)=>{r.forEach(l=>Ld(e,"delete",l)),r.length=0},B6=e=>{const r=[],l=[];let a=!1;return e.forEach(s=>{s.lines.forEach(u=>{if(!(u.type==="header"||u.type==="hunk")){if(M6(u)){l.push(u.content);return}if(u.type==="add"){l.length>0&&(Wf(r,l),a=!0),Ld(r,a?"change":"add",u.content);return}z6(u)&&(Wf(r,l),a=!1,Ld(r,"context",u.content))}}),Wf(r,l),a=!1}),r},F6=e=>Zt.isValidElement(e),I6=e=>Zt.isValidElement(e),Dd=e=>e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Dd).join(""):F6(e)?Dd(e.props.children):"",J1=e=>({h1:({children:r})=>y.jsx("h1",{className:`${wi[0]} mt-6 mb-2 first:mt-0`,children:r}),h2:({children:r})=>y.jsx("h2",{className:`${wi[1]} mt-6 mb-2 first:mt-0`,children:r}),h3:({children:r})=>y.jsx("h3",{className:`${wi[2]} mt-6 mb-2 first:mt-0`,children:r}),h4:({children:r})=>y.jsx("h4",{className:`${wi[3]} mt-6 mb-2 first:mt-0`,children:r}),h5:({children:r})=>y.jsx("h5",{className:`${wi[4]} mt-6 mb-2 first:mt-0`,children:r}),h6:({children:r})=>y.jsx("h6",{className:`${wi[5]} mt-6 mb-2 first:mt-0`,children:r}),p:({children:r})=>y.jsx("p",{className:"text-base leading-7",children:r}),ul:({children:r})=>y.jsx("ul",{className:"list-disc pl-6 text-base space-y-1",children:r}),ol:({children:r})=>y.jsx("ol",{className:"list-decimal pl-6 text-base space-y-1",children:r}),li:({children:r})=>y.jsx("li",{children:r}),blockquote:({children:r})=>y.jsx("blockquote",{className:"border-l-4 border-github-border pl-4 text-github-text-muted italic",children:r}),hr:()=>y.jsx("hr",{className:"border-github-border"}),a:({href:r,children:l})=>{const a=r??"";if(!a||!Ms(a))return y.jsx("span",{children:l});const s=a.startsWith("http");return y.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||!Ms(a)?null:y.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(I6),s=Dd(a??r),c=/language-(\S+)/.exec(a?.props.className??"")?.[1];return s.trim()?y.jsx("pre",{className:"markdown-preview-code border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-sm",children:y.jsx(mh,{code:s.replace(/\n$/,""),language:c,syntaxTheme:e,className:"font-mono text-github-text-primary"})}):y.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?y.jsx("code",{className:r,children:l}):y.jsx("code",{className:"px-1 py-0.5 rounded bg-github-bg-tertiary border border-github-border text-sm font-mono",children:l})}),U6=e=>{switch(e){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"}},H6=e=>/^\s*\[[^\]]+\]:\s+\S+/.test(e),q6=e=>/^\s*\[\^[^\]]+\]:\s+/.test(e),P6=e=>/^\s*<!--.*-->\s*$/.test(e),V6=e=>e.trim()===""||H6(e)||q6(e)||P6(e),$6=e=>e.every(V6),G6=({blocks:e,syntaxTheme:r})=>{const l=R.useMemo(()=>J1(r),[r]);return y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const c=a.lines.join(`
|
|
51
|
-
`).trim();if(!c)return null;const f=$6(a.lines);return y.jsx("div",{className:`px-4 ${U6(a.type)}`,children:f?y.jsx("pre",{className:"whitespace-pre-wrap text-sm text-github-text-primary font-mono",children:c}):y.jsx(uh,{remarkPlugins:[hh],urlTransform:p=>Ms(p)?p:"",components:l,children:c})},`preview-block-${s}`)})})},Y6=({content:e,syntaxTheme:r})=>{const l=R.useMemo(()=>J1(r),[r]);return y.jsx("div",{className:"space-y-4",children:y.jsx(uh,{remarkPlugins:[hh],urlTransform:a=>Ms(a)?a:"",components:l,children:e})})};function X6(e){const{file:r,baseCommitish:l,targetCommitish:a,mergedChunks:s,syntaxTheme:u}=e,[c,f]=R.useState("diff-preview"),[p,h]=R.useState(null),[b,g]=R.useState(!1),[x,v]=R.useState(null),[w,k]=R.useState(null),T=R.useMemo(()=>B6(s),[s]),E=R.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=R.useMemo(()=>E?`${E.ref}:${E.path}`:null,[E]);return R.useEffect(()=>{if(c!=="full-preview")return;if(!E||!C){h(null),k(null),v(null),g(!1);return}let N=!1;return(C!==w||!p)&&(async()=>{C!==w&&h(null),g(!0),v(null);try{const q=encodeURIComponent(E.path),L=await fetch(`/api/blob/${q}?ref=${encodeURIComponent(E.ref)}`);if(!L.ok)throw new Error(`Failed to fetch preview: ${L.statusText}`);const I=await L.text();N||(h(I),k(C))}catch(q){N||(h(null),k(null),v(q instanceof Error?q.message:"Failed to load preview"))}finally{N||g(!1)}})(),()=>{N=!0}},[p,w,c,E,C]),y.jsxs("div",{className:"bg-github-bg-primary",children:[y.jsx("div",{className:"flex items-center justify-between border-b border-github-border px-4 py-2",children:y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsxs("button",{onClick:()=>f("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:[y.jsx(Ks,{size:14}),"Diff"]}),y.jsxs("button",{onClick:()=>f("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:[y.jsx(Ts,{size:14}),"Diff Preview"]}),y.jsxs("button",{onClick:()=>f("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:[y.jsx(Ts,{size:14}),"Full Preview"]})]})}),c==="diff"&&y.jsx(Os,{...e}),c==="diff-preview"&&y.jsx("div",{className:"p-4",children:y.jsx(G6,{blocks:T,syntaxTheme:u})}),c==="full-preview"&&y.jsxs("div",{className:"p-4",children:[b&&y.jsx("div",{className:"text-sm text-github-text-muted mb-3",children:"Loading preview..."}),x&&y.jsx("div",{className:"text-sm text-github-danger mb-3",children:x}),!b&&!x&&p&&y.jsx(Y6,{content:p,syntaxTheme:u}),!b&&!x&&!p&&y.jsx("div",{className:"text-sm text-github-text-muted",children:"Preview unavailable."})]})]})}const Si=["text-2xl font-semibold","text-xl font-semibold","text-lg font-semibold","text-base font-semibold","text-sm font-semibold uppercase tracking-wide","text-sm font-semibold"],W1={markdown:"Markdown",code:"Code",raw:"Raw",unknown:"Cell"},Z6=/"cell_type"\s*:\s*"([^"]+)"/,_y=/"source"\s*:/,K6=/"execution_count"\s*:\s*(null|[0-9]+)/,Q6=/"id"\s*:\s*"([^"]+)"/,J6=e=>e.type==="delete"||e.type==="remove",W6=e=>e.type==="normal"||e.type==="context",e0=e=>e.type==="add"?"add":J6(e)?"delete":W6(e)?"context":null,t0=e=>e==="markdown"||e==="code"||e==="raw"?e:"unknown",eN=e=>{const r=e.trim();if(!r.startsWith('"'))return null;let l=r;l.endsWith(",")&&(l=l.slice(0,-1));try{const a=JSON.parse(l);return typeof a=="string"?a:null}catch{return l.replace(/^"/,"").replace(/"$/,"").replace(/\\n/g,`
|
|
52
|
-
`).replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}},tN=e=>{const r=e.indexOf('"source"');if(r===-1)return null;const l=e.indexOf(":",r);if(l===-1)return null;let a=e.slice(l+1).trim();if(!a)return null;if(a.endsWith(",")&&(a=a.slice(0,-1).trim()),a.startsWith("[")){const s=a.lastIndexOf("]");if(s===-1)return null;const u=a.slice(0,s+1);try{const c=JSON.parse(u);if(Array.isArray(c))return c.filter(f=>typeof f=="string")}catch{return null}return[]}if(a.startsWith('"'))try{const s=JSON.parse(a);return typeof s=="string"?[s]:null}catch{return null}return null},nN=e=>{const r=rN(e);if(r)return r;const l=[];let a=null,s=!1,u=!1,c=!1;const f=()=>{a&&(a.status=s&&u?"change":s?"add":u?"delete":"context",l.push(a),a=null,s=!1,u=!1,c=!1)},p=h=>{f(),a={cellType:h,sourceLines:[],status:"context"}};return e.forEach(h=>{h.lines.forEach(b=>{const g=e0(b);if(!g)return;const x=b.content.match(Z6);if(x?p(t0(x[1]??"")):!a&&_y.test(b.content)&&p("unknown"),!a)return;if(g==="add"&&(s=!0),g==="delete"&&(u=!0),!a.id){const k=b.content.match(Q6);k&&(a.id=k[1])}if(a.executionCount===void 0){const k=b.content.match(K6);k&&(a.executionCount=k[1]==="null"?null:k[1])}if(_y.test(b.content)){const k=tN(b.content);if(k){k.forEach(T=>{a?.sourceLines.push({type:g,content:T})}),c=!1;return}c=!0;return}if(!c)return;if(b.content.trim().startsWith("]")){c=!1;return}const w=eN(b.content);w!==null&&a.sourceLines.push({type:g,content:w})})}),f(),{cells:l}},rN=e=>{const r=jy(e,["add","context"]),l=jy(e,["delete","context"]),a=Ba(r),s=Ba(l);if(!a&&!s||a&&a.cells.length===0&&!s)return null;const u=a?.language??s?.language;return{cells:n0(s?.cells??[],a?.cells??[]),language:u}},jy=(e,r)=>e.flatMap(l=>l.lines).map(l=>{const a=e0(l);return!a||!r.includes(a)?null:l.content}).filter(l=>l!==null).join(`
|
|
53
|
-
`),Ba=e=>{if(!e.trim())return null;try{const r=JSON.parse(e);if(!r||typeof r!="object"||!("cells"in r))return null;const l=r.cells;if(!Array.isArray(l))return null;const a=r.metadata,s=lN(a);return{cells:l.map(u=>iN(u)),language:s}}catch{return null}},lN=e=>{if(!e||typeof e!="object")return;const r=e,l=r.language_info;if(l&&typeof l=="object"){const s=l.name;if(typeof s=="string"&&s.trim())return s}const a=r.kernelspec;if(a&&typeof a=="object"){const s=a.language;if(typeof s=="string"&&s.trim())return s}},iN=e=>{const r=typeof e=="object"&&e?e:{},l=typeof r.cell_type=="string"?r.cell_type:"",a=t0(l),s=typeof r.id=="string"?r.id:void 0,u=r.execution_count,c=u===null?null:typeof u=="number"?String(u):typeof u=="string"?u:void 0,f=aN(r.source);return{cellType:a,sourceText:f,id:s,executionCount:c}},aN=e=>typeof e=="string"?e:Array.isArray(e)?e.filter(r=>typeof r=="string").join(""):"",n0=(e,r)=>{const l=[];if(e.some(u=>!!u.id)||r.some(u=>!!u.id)){const u=new Map;e.forEach((f,p)=>{f.id&&u.set(f.id,{cell:f,index:p})});const c=new Set;return r.forEach(f=>{const p=f.id?u.get(f.id):void 0;p&&c.add(p.index),l.push(ed(p?.cell??null,f))}),e.forEach((f,p)=>{c.has(p)||l.push(ed(f,null))}),l}const s=Math.max(e.length,r.length);for(let u=0;u<s;u+=1){const c=e[u]??null,f=r[u]??null;l.push(ed(c,f))}return l},ed=(e,r)=>{if(!r&&e)return{cellType:e.cellType,sourceLines:Da(e.sourceText,"delete"),status:"delete",id:e.id,executionCount:e.executionCount};if(r&&!e)return{cellType:r.cellType,sourceLines:Da(r.sourceText,"add"),status:"add",id:r.id,executionCount:r.executionCount};const l=e?.sourceText??"",a=r?.sourceText??"",s=r?.cellType??e?.cellType??"unknown",u=r?.id??e?.id,c=r?.executionCount??e?.executionCount;return l===a&&(e?.cellType??"")===(r?.cellType??"")?{cellType:s,sourceLines:Da(a,"context"),status:"context",id:u,executionCount:c}:{cellType:s,sourceLines:[...Da(l,"delete"),...Da(a,"add")],status:"change",id:u,executionCount:c}},Da=(e,r)=>e?[{type:r,content:e}]:[],td=e=>!!(e&&e!=="stdin"),nd=async(e,r)=>{const l=encodeURIComponent(e),a=await fetch(`/api/blob/${l}?ref=${encodeURIComponent(r)}`);return a.ok?a.text():null},_i=(e,r)=>e.filter(l=>r.includes(l.type)).map(l=>l.content).join(""),rd=e=>{if(!e)return[];const r=e.split(`
|
|
54
|
-
`);return r.length>0&&r[r.length-1]===""&&r.pop(),r},r0=(e,r)=>!e&&!r?[]:e?r?k6(e,r).flatMap(l=>{const a=l.added?"add":l.removed?"delete":"context";return rd(l.value).map(s=>({type:a,content:s}))}):rd(e).map(l=>({type:"delete",content:l})):rd(r).map(l=>({type:"add",content:l})),oN=e=>Zt.isValidElement(e),sN=e=>Zt.isValidElement(e),Od=e=>e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Od).join(""):oN(e)?Od(e.props.children):"",uN=e=>{switch(e){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"}},Ly=e=>{switch(e){case"before":return"border-l-4 border-diff-deletion-border";case"after":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},cN=e=>{switch(e){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},fN=e=>{switch(e){case"add":return"+";case"delete":return"-";default:return" "}},dN=e=>{switch(e){case"add":return"text-github-accent";case"delete":return"text-github-danger";default:return"text-github-text-muted"}},Md=e=>/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim()),hN=e=>({h1:({children:r})=>y.jsx("h1",{className:`${Si[0]} mb-2`,children:r}),h2:({children:r})=>y.jsx("h2",{className:`${Si[1]} mb-2`,children:r}),h3:({children:r})=>y.jsx("h3",{className:`${Si[2]} mb-2`,children:r}),h4:({children:r})=>y.jsx("h4",{className:`${Si[3]} mb-2`,children:r}),h5:({children:r})=>y.jsx("h5",{className:`${Si[4]} mb-2`,children:r}),h6:({children:r})=>y.jsx("h6",{className:`${Si[5]} mb-2`,children:r}),p:({children:r})=>y.jsx("p",{className:"text-sm leading-7",children:r}),ul:({children:r})=>y.jsx("ul",{className:"list-disc pl-6 text-sm space-y-1",children:r}),ol:({children:r})=>y.jsx("ol",{className:"list-decimal pl-6 text-sm space-y-1",children:r}),li:({children:r})=>y.jsx("li",{children:r}),blockquote:({children:r})=>y.jsx("blockquote",{className:"border-l-4 border-github-border pl-4 text-github-text-muted italic",children:r}),hr:()=>y.jsx("hr",{className:"border-github-border"}),a:({href:r,children:l})=>{const a=r??"";if(!a||!Md(a))return y.jsx("span",{children:l});const s=a.startsWith("http");return y.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||!Md(a)?null:y.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(sN),s=Od(a??r),c=/language-(\S+)/.exec(a?.props.className??"")?.[1];return s.trim()?y.jsx("pre",{className:"border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-xs",children:y.jsx(mh,{code:s.replace(/\n$/,""),language:c,syntaxTheme:e,className:"font-mono text-github-text-primary [&_.token-line]:block [&_.token-line]:whitespace-pre"})}):y.jsx("pre",{className:"border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-xs",children:r})},code:({className:r,children:l})=>r?y.jsx("code",{className:r,children:l}):y.jsx("code",{className:"px-1 py-0.5 rounded bg-github-bg-tertiary border border-github-border text-xs font-mono",children:l}),table:({children:r})=>y.jsx("div",{className:"overflow-x-auto",children:y.jsx("table",{className:"min-w-full border border-github-border",children:r})}),th:({children:r})=>y.jsx("th",{className:"border border-github-border px-2 py-1 bg-github-bg-tertiary text-sm",children:r}),td:({children:r})=>y.jsx("td",{className:"border border-github-border px-2 py-1 text-sm",children:r})}),pN=e=>{const r=_i(e.sourceLines,["context","delete"]),l=_i(e.sourceLines,["context","add"]),a=[];return e.status==="change"?(r.trim()&&a.push({label:"Before",content:r,tone:"before"}),l.trim()&&a.push({label:"After",content:l,tone:"after"}),a.length===0&&a.push({label:"After",content:l,tone:"after"}),a):e.status==="delete"?(a.push({label:"Before",content:r||l,tone:"before"}),a):(a.push({label:"After",content:l||r,tone:"after"}),a)},l0=(e,r,l,a)=>{if(!r.trim())return y.jsx("span",{className:"text-xs text-github-text-muted",children:"Empty cell"});if(e==="markdown"){const s=hN(l);return y.jsx(uh,{remarkPlugins:[hh],urlTransform:u=>Md(u)?u:"",components:s,children:r})}return e==="raw"?y.jsx("pre",{className:"whitespace-pre-wrap break-words text-xs font-mono text-github-text-primary",children:r}):y.jsx("pre",{className:"overflow-x-auto text-xs",children:y.jsx(Pa,{code:r.replace(/\n$/,""),language:a||"python",syntaxTheme:l,className:"font-mono text-github-text-primary [&_.token-line]:block [&_.token-line]:whitespace-pre"})})},mN=({lines:e,syntaxTheme:r,language:l})=>e.length===0?y.jsx("span",{className:"text-xs text-github-text-muted",children:"Empty cell"}):y.jsx("div",{className:"overflow-x-auto",children:y.jsx("div",{className:"font-mono text-xs",children:e.map((a,s)=>y.jsxs("div",{className:`flex items-start min-h-[16px] ${cN(a.type)}`,children:[y.jsx("span",{className:`w-5 text-center flex-shrink-0 select-none ${dN(a.type)}`,children:fN(a.type)}),y.jsx(Pa,{code:a.content||" ",language:l||"python",syntaxTheme:r,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"})]},`notebook-code-line-${s}`))})}),gN=({cells:e,syntaxTheme:r,language:l})=>y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const u=pN(a),c=a.cellType==="code"&&a.executionCount!==void 0?`In[${a.executionCount??" "}]`:null,f=a.cellType==="code",p=f?r0(_i(a.sourceLines,["context","delete"]),_i(a.sourceLines,["context","add"])).filter(h=>h.type!=="context"):[];return f&&p.length===0?null:y.jsxs("div",{className:`rounded border border-github-border bg-github-bg-secondary/40 p-4 ${uN(a.status)}`,children:[y.jsx("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-3",children:y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-github-text-muted",children:W1[a.cellType]}),c&&y.jsx("span",{className:"text-xs font-mono text-github-text-secondary",children:c}),a.id&&y.jsx("span",{className:"text-xs font-mono text-github-text-muted",children:a.id})]})}),y.jsx("div",{className:"space-y-3",children:f?y.jsx("div",{className:`px-4 py-3 ${Ly(a.status==="delete"?"before":"after")}`,children:y.jsx(mN,{lines:p,syntaxTheme:r,language:l})}):u.map((h,b)=>y.jsx("div",{className:`px-4 py-3 ${Ly(h.tone)}`,children:y.jsx("div",{className:"text-sm text-github-text-primary",children:l0(a.cellType,h.content,r,l)})},`notebook-cell-${s}-section-${b}`))})]},`notebook-cell-${s}`)})}),bN=({cells:e,syntaxTheme:r,language:l})=>y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const u=a.cellType==="code"&&a.executionCount!==void 0?`In[${a.executionCount??" "}]`:null;return y.jsxs("div",{className:"rounded border border-github-border bg-github-bg-secondary/40 p-4",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[y.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-github-text-muted",children:W1[a.cellType]}),u&&y.jsx("span",{className:"text-xs font-mono text-github-text-secondary",children:u}),a.id&&y.jsx("span",{className:"text-xs font-mono text-github-text-muted",children:a.id})]}),y.jsx("div",{className:"text-sm text-github-text-primary",children:l0(a.cellType,a.sourceText,r,l)})]},`notebook-full-cell-${s}`)})});function yN(e){const{file:r,baseCommitish:l,targetCommitish:a}=e,[s,u]=R.useState("diff-preview"),c=R.useMemo(()=>nN(e.mergedChunks),[e.mergedChunks]),[f,p]=R.useState({status:"idle",cells:c.cells,language:c.language}),h=R.useMemo(()=>f.cells.filter(L=>L.status==="context"?!1:L.cellType!=="code"?!0:r0(_i(L.sourceLines,["context","delete"]),_i(L.sourceLines,["context","add"])).filter($=>$.type!=="context").length>0),[f.cells]),[b,g]=R.useState(null),[x,v]=R.useState(c.language),[w,k]=R.useState(!1),[T,E]=R.useState(null),[C,N]=R.useState(null),B=R.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.oldPath,r.path,r.status]),q=R.useMemo(()=>B?`${B.ref}:${B.path}`:null,[B]);return R.useEffect(()=>{let L=!1;return(async()=>{const $=l||"HEAD~1",G=a||"HEAD",M=r.oldPath||r.path,V=r.status!=="added"&&td($),Y=r.status!=="deleted"&&td(G);if(!V&&!Y){p({status:"ready",cells:c.cells,language:c.language,source:"diff",message:"Notebook content could not be loaded, falling back to diff preview."});return}p(J=>({...J,status:"loading"}));try{const[J,U]=await Promise.all([V?nd(M,$):Promise.resolve(null),Y?nd(r.path,G):Promise.resolve(null)]),X=J?Ba(J):null,F=U?Ba(U):null;if(!X&&!F){L||p({status:"ready",cells:c.cells,language:c.language,source:"diff",message:"Notebook content could not be parsed, falling back to diff preview."});return}const O=F?.language??X?.language??c.language,z=n0(X?.cells??[],F?.cells??[]);L||p({status:"ready",cells:z,source:"blob",language:O})}catch(J){L||p({status:"error",cells:c.cells,language:c.language,source:"diff",message:J instanceof Error?J.message:"Failed to load notebook preview."})}})(),()=>{L=!0}},[l,r.oldPath,r.path,r.status,e.mergedChunks,a,c]),R.useEffect(()=>{if(s!=="full-preview")return;if(!B||!q||!td(B.ref)){g(null),N(null),E(null),k(!1);return}let L=!1;return(q!==C||!b)&&(async()=>{q!==C&&g(null),k(!0),E(null);try{const $=await nd(B.path,B.ref);if(!$)throw new Error("Failed to load preview.");const G=Ba($);if(!G)throw new Error("Notebook content could not be parsed.");L||(g(G.cells),v(G.language??c.language),N(q))}catch($){L||(g(null),N(null),E($ instanceof Error?$.message:"Failed to load preview"))}finally{L||k(!1)}})(),()=>{L=!0}},[c.language,b,C,s,B,q]),y.jsxs("div",{className:"bg-github-bg-primary",children:[y.jsx("div",{className:"flex items-center justify-between border-b border-github-border px-4 py-2",children:y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsxs("button",{onClick:()=>u("diff"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="diff"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Code Diff",children:[y.jsx(Ks,{size:14}),"Diff"]}),y.jsxs("button",{onClick:()=>u("diff-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="diff-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Diff Preview",children:[y.jsx(Ts,{size:14}),"Diff Preview"]}),y.jsxs("button",{onClick:()=>u("full-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="full-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Full Preview",children:[y.jsx(Ts,{size:14}),"Full Preview"]})]})}),s==="diff"&&y.jsx(Os,{...e}),s==="diff-preview"&&y.jsxs("div",{className:"p-4",children:[f.status==="loading"&&y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:"Loading notebook preview…"}),f.message&&y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:f.message}),h.length===0?y.jsxs("div",{children:[y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:"No changed notebook cells were found. Showing raw diff instead."}),y.jsx(Os,{...e})]}):y.jsx(gN,{cells:h,syntaxTheme:e.syntaxTheme,language:f.language})]}),s==="full-preview"&&y.jsxs("div",{className:"p-4",children:[w&&y.jsx("div",{className:"text-sm text-github-text-muted mb-3",children:"Loading preview..."}),T&&y.jsx("div",{className:"text-sm text-github-danger mb-3",children:T}),!w&&!T&&b&&y.jsx(bN,{cells:b,syntaxTheme:e.syntaxTheme,language:x??c.language}),!w&&!T&&!b&&y.jsx("div",{className:"text-sm text-github-text-muted",children:"Preview unavailable."})]})]})}const ld=[{id:"image",match:e=>DS(e.path),Component:FS,canExpandHiddenLines:()=>!1},{id:"markdown",match:e=>MS(e.path),Component:X6,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"},{id:"notebook",match:e=>BS(e.path),Component:yN,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"},{id:"default",match:()=>!0,Component:Os,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"}],xN=e=>{const r=ld[ld.length-1];if(!r)throw new Error("No diff viewers registered");return ld.find(l=>l.match(e))??r},vN=e=>{switch(e){case"added":return y.jsx(Rx,{size:16,className:"text-github-accent"});case"deleted":return y.jsx(_x,{size:16,className:"text-github-danger"});case"renamed":return y.jsx(Nx,{size:16,className:"text-github-warning"});default:return y.jsx(Ks,{size:16,className:"text-github-text-secondary"})}},wN=({file:e,isCollapsed:r,isReviewed:l,onToggleCollapsed:a,onToggleAllCollapsed:s,onToggleReviewed:u})=>{const[c,f]=R.useState(!1);return y.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:[y.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[y.jsx("button",{onClick:p=>{p.altKey?s(!r):a(e.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?y.jsx(Tx,{size:16}):y.jsx(Zs,{size:16})}),vN(e.status),y.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:e.path}),y.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(e.path).then(()=>{console.log("File path copied to clipboard:",e.path),f(!0),setTimeout(()=>f(!1),2e3)}).catch(p=>{console.error("Failed to copy file path:",p)})},title:"Copy file path",children:c?y.jsx(Ua,{size:14}):y.jsx(Ax,{size:14})}),e.oldPath&&e.oldPath!==e.path&&y.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",e.oldPath,")"]})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[y.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",e.additions]}),y.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",e.deletions]})]}),y.jsxs("button",{onClick:()=>u(e.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?y.jsx(Ua,{size:14}):y.jsx(SS,{size:14}),"Viewed"]})]})]})},SN=e=>{const r={old:[],new:[]};return e.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},kN=(e,r)=>e.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),EN=e=>{const r=[],l=e[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<e.length;s+=1){const u=e[s-1],c=e[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=e[e.length-1];return a&&r.push({type:"after",start:a.end+1,end:Number.POSITIVE_INFINITY,prevChunkIndex:a.index}),r},CN=e=>{const r=new Map;return e.forEach(l=>{const a=l.originalIndices[0];a!==void 0&&r.set(a,l)}),r},TN=e=>{const r=e[e.length-1];return r?.originalIndices[r.originalIndices.length-1]??null},AN=R.memo(function({file:r,comments:l,diffMode:a,reviewedFiles:s,onToggleReviewed:u,collapsedFiles:c,onToggleCollapsed:f,onToggleAllCollapsed:p,onAddComment:h,onGeneratePrompt:b,onRemoveComment:g,onUpdateComment:x,onOpenInEditor:v,syntaxTheme:w,baseCommitish:k,targetCommitish:T,cursor:E=null,fileIndex:C=0,onLineClick:N,commentTrigger:B,onCommentTriggerHandled:q,mergedChunks:L,expandLines:I,expandAllBetweenChunks:$,prefetchFileContent:G,isExpandLoading:M}){const V=c.has(r.path),Y=R.useRef(null),[J,U]=R.useState(!1),X=xN(r),F=X.canExpandHiddenLines?.(r)??!1;R.useEffect(()=>{if(!F)return;const D=Y.current;if(!D)return;const H=new IntersectionObserver(([A])=>{A?.isIntersecting&&U(!0)},{rootMargin:"200px"});return H.observe(D),()=>H.disconnect()},[F]),R.useEffect(()=>{J&&!V&&F&&G(r)},[J,V,F,r,G]);const O=R.useCallback(async(D,H,A,le)=>{try{await h(r.path,D,H,A,le)}catch(ce){console.error("Failed to add comment:",ce)}},[r.path,h]);R.useEffect(()=>{if(V||M||!F||l.length===0||r.chunks.length===0||L.length===0)return;const D=SN(l),H=CN(L),A=TN(L),le=L[L.length-1],ce=new Set,de=(fe,ge)=>{ce.has(fe)||(ce.add(fe),ge())};["old","new"].forEach(fe=>{const ge=D[fe];if(ge.length===0)return;const he=kN(r,fe);EN(he).forEach(xe=>{if(!ge.some(Ge=>Ge.start<=xe.end&&Ge.end>=xe.start))return;if(xe.type==="after"&&le&&A!==null){le.hiddenLinesAfter>0&&de(`after-${A}`,()=>{I(r,A,"down",le.hiddenLinesAfter)});return}const Ce=xe.nextChunkIndex;if(Ce===void 0)return;const Ae=H.get(Ce);!Ae||Ae.hiddenLinesBefore<=0||(xe.type==="before"?de(`before-${Ce}`,()=>{I(r,Ce,"up",Ae.hiddenLinesBefore)}):xe.type==="between"&&de(`between-${Ce}`,()=>{$(r,Ce,Ae.hiddenLinesBefore)}))})})},[l,$,I,r,V,M,L,F]);const z="4em",K=X.Component,_={file:r,comments:l,diffMode:a,syntaxTheme:w,baseCommitish:k,targetCommitish:T,cursor:E,fileIndex:C,mergedChunks:L,isExpandLoading:M,expandHiddenLines:I,expandAllBetweenChunks:$,onAddComment:O,onGeneratePrompt:b,onRemoveComment:g,onUpdateComment:x,onOpenInEditor:v,onLineClick:N,commentTrigger:B,onCommentTriggerHandled:q};return y.jsxs("div",{ref:Y,className:"bg-github-bg-primary",style:{"--line-number-width":z},children:[y.jsx(wN,{file:r,isCollapsed:V,isReviewed:s.has(r.path),onToggleCollapsed:f,onToggleAllCollapsed:p,onToggleReviewed:u}),!V&&y.jsx("div",{className:"overflow-y-auto",children:y.jsx(K,{..._})})]})});function NN(e){const r={name:"",path:"",isDirectory:!0,children:[]};e.forEach(a=>{const s=a.path.split("/");let u=r;for(let c=0;c<s.length;c++){const f=s[c];if(!f)continue;const p=c===s.length-1,h=s.slice(0,c+1).join("/");u.children||(u.children=[]);let b=u.children.find(g=>g.name===f);b||(b={name:f,path:h,isDirectory:!p,children:p?void 0:[],file:p?a:void 0},u.children.push(b)),u=b}});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 RN({files:e,onScrollToFile:r,comments:l,reviewedFiles:a,onToggleReviewed:s,selectedFileIndex:u}){const c=NN(e),f=R.useRef(null),p=R.useRef(new Map),h={"--dir-row-height":"calc(var(--spacing, 0.25rem) * 9)"},b=$=>{if(!$.isDirectory||!$.children)return[];const G=[];return $.path&&G.push($.path),$.children.forEach(M=>{G.push(...b(M))}),G},[g,x]=R.useState(()=>new Set(b(c))),[v,w]=R.useState(""),k=$=>l.filter(G=>G.file===$).length,T=R.useMemo(()=>{const $=G=>{if(!v.trim())return G;if(G.isDirectory&&G.children){const M=G.children.map(V=>$(V)).filter(V=>V!==null);return M.length>0?{...G,children:M}:null}else if(G.file)return G.file.path.toLowerCase().includes(v.toLowerCase())?G:null;return null};return $(c)||{...c,children:[]}},[c,v]),E=$=>{switch($){case"added":return y.jsx(Rx,{size:16,className:"text-github-accent"});case"deleted":return y.jsx(_x,{size:16,className:"text-github-danger"});case"renamed":return y.jsx(Nx,{size:16,className:"text-github-warning"});default:return y.jsx(Ks,{size:16,className:"text-github-text-secondary"})}},C=$=>{x(G=>{const M=new Set(G);return M.has($)?M.delete($):M.add($),M})},N=b(c),B=g.size===N.length&&N.length>0,q=()=>{x(B?new Set:new Set(N))},L=($,G)=>{const M=f.current,V=$.currentTarget;if(!M){C(G);return}const Y=M.getBoundingClientRect(),J=V.getBoundingClientRect(),U=Number.parseFloat(getComputedStyle(V).top||"0");if(J.top-Y.top<=U+1){const z=p.current.get(G)?.querySelector('[data-tree-row="true"]:not([data-dir-header="true"])'),K=V.getBoundingClientRect().height||0,_=z??V,D=Number.parseInt(_.dataset.depth||V.dataset.depth||"0",10),H=K*D,A=Math.max(0,_.offsetTop-H);if(Math.abs(M.scrollTop-A)<=1){C(G);return}M.scrollTo({top:A,behavior:"smooth"});return}C(G)},I=($,G=0)=>{if($.isDirectory&&$.children){const M=g.has($.path);return y.jsxs("div",{"data-dir-container":$.path||void 0,ref:V=>{$.path&&(V?p.current.set($.path,V):p.current.delete($.path))},children:[$.name&&y.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":G,style:{paddingLeft:`${G*16+16}px`,top:`calc(${G} * var(--dir-row-height))`,zIndex:1e3-G},onClick:V=>L(V,$.path),children:[M?y.jsx(Zs,{size:16}):y.jsx(Tx,{size:16}),M?y.jsx(eS,{size:16,className:"text-github-text-secondary"}):y.jsx(nS,{size:16,className:"text-github-text-secondary"}),y.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:$.name,children:$.name})]}),(M||!$.name)&&$.children.map(V=>I(V,$.name?G+1:G))]},$.path)}else if($.file){const M=$.file,V=k(M.path),Y=a.has(M.path),J=e.findIndex(X=>X.path===M.path),U=u!==null&&u===J;return y.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${Y?"opacity-70":""} ${U?"bg-github-bg-tertiary":""}`,"data-file-row":"true","data-tree-row":"true","data-depth":G,style:{paddingLeft:`${G*16+16}px`},onClick:()=>r(M.path),children:[y.jsx(Dx,{checked:Y,onChange:()=>{s(M.path)},title:Y?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),E($.file.status),y.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${Y?"line-through text-github-text-muted":""}`,title:$.file.path,children:$.name}),V>0&&y.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[y.jsx(jx,{size:14}),V]})]},M.path)}return null};return y.jsxs("div",{className:"h-full flex flex-col",children:[y.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0",children:["Files changed (",e.length,")"]}),y.jsx("button",{onClick:q,className:"p-1 hover:bg-github-bg-primary rounded transition-colors",title:B?"Collapse all":"Expand all",children:B?y.jsx(F2,{size:16,className:"text-github-text-secondary"}):y.jsx(U2,{size:16,className:"text-github-text-secondary"})})]}),y.jsxs("div",{className:"relative",children:[y.jsx(xS,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),y.jsx("input",{type:"text",placeholder:"Filter files...",value:v,onChange:$=>w($.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"})]})]}),y.jsx("div",{className:"flex-1 overflow-y-auto relative z-0",style:h,ref:f,children:T.children?.map($=>I($))})]})}function _N({style:e}){return y.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:e,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:y.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 jN({isOpen:e,onClose:r}){const{enableScope:l,disableScope:a}=Xs();return rt("escape",()=>r(),{enabled:e},[r,e]),R.useEffect(()=>(e?a("navigation"):l("navigation"),()=>{l("navigation")}),[e,l,a]),e?y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),y.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:[y.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:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:y.jsx(Gd,{size:20})})]}),y.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Jump to first file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Jump to last file"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Management"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"v"}),y.jsx("span",{className:"text-github-text-secondary",children:"Toggle viewed state of current file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"R"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Refresh diff when changes detected"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),y.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),y.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),y.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),y.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:y.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function LN({style:e}){return y.jsxs("svg",{style:e,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[y.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"}),y.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 DN({shouldReload:e,isReloading:r,onReload:l,changeType:a,className:s=""}){if(!e)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 y.jsxs("button",{onClick:l,disabled:r,className:`
|
|
55
|
-
flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md border ${s}
|
|
56
|
-
${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"}
|
|
57
|
-
`,title:`${u()} - Click to refresh`,children:[y.jsx(bS,{size:12,className:`${r?"animate-spin":""}`}),"Refresh"]})}function iu(){return typeof window<"u"}function nl(e){return gh(e)?(e.nodeName||"").toLowerCase():"#document"}function on(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Xn(e){var r;return(r=(gh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function gh(e){return iu()?e instanceof Node||e instanceof on(e).Node:!1}function st(e){return iu()?e instanceof Element||e instanceof on(e).Element:!1}function Ct(e){return iu()?e instanceof HTMLElement||e instanceof on(e).HTMLElement:!1}function zs(e){return!iu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof on(e).ShadowRoot}const ON=new Set(["inline","contents"]);function Za(e){const{overflow:r,overflowX:l,overflowY:a,display:s}=Dn(e);return/auto|scroll|overlay|hidden|clip/.test(r+a+l)&&!ON.has(s)}const MN=new Set(["table","td","th"]);function zN(e){return MN.has(nl(e))}const BN=[":popover-open",":modal"];function au(e){return BN.some(r=>{try{return e.matches(r)}catch{return!1}})}const FN=["transform","translate","scale","rotate","perspective"],IN=["transform","translate","scale","rotate","perspective","filter"],UN=["paint","layout","strict","content"];function bh(e){const r=ou(),l=st(e)?Dn(e):e;return FN.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)||IN.some(a=>(l.willChange||"").includes(a))||UN.some(a=>(l.contain||"").includes(a))}function HN(e){let r=xr(e);for(;Ct(r)&&!yr(r);){if(bh(r))return r;if(au(r))return null;r=xr(r)}return null}function ou(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const qN=new Set(["html","body","#document"]);function yr(e){return qN.has(nl(e))}function Dn(e){return on(e).getComputedStyle(e)}function su(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xr(e){if(nl(e)==="html")return e;const r=e.assignedSlot||e.parentNode||zs(e)&&e.host||Xn(e);return zs(r)?r.host:r}function i0(e){const r=xr(e);return yr(r)?e.ownerDocument?e.ownerDocument.body:e.body:Ct(r)&&Za(r)?r:i0(r)}function el(e,r,l){var a;r===void 0&&(r=[]),l===void 0&&(l=!0);const s=i0(e),u=s===((a=e.ownerDocument)==null?void 0:a.body),c=on(s);if(u){const f=zd(c);return r.concat(c,c.visualViewport||[],Za(s)?s:[],f&&l?el(f):[])}return r.concat(s,el(s,[],l))}function zd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Bs=Math.min,Cl=Math.max,Fs=Math.round,vs=Math.floor,Gn=e=>({x:e,y:e}),PN={left:"right",right:"left",bottom:"top",top:"bottom"},VN={start:"end",end:"start"};function Dy(e,r,l){return Cl(e,Bs(r,l))}function uu(e,r){return typeof e=="function"?e(r):e}function Al(e){return e.split("-")[0]}function cu(e){return e.split("-")[1]}function a0(e){return e==="x"?"y":"x"}function o0(e){return e==="y"?"height":"width"}const $N=new Set(["top","bottom"]);function Qr(e){return $N.has(Al(e))?"y":"x"}function s0(e){return a0(Qr(e))}function GN(e,r,l){l===void 0&&(l=!1);const a=cu(e),s=s0(e),u=o0(s);let c=s==="x"?a===(l?"end":"start")?"right":"left":a==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(c=Is(c)),[c,Is(c)]}function YN(e){const r=Is(e);return[Bd(e),r,Bd(r)]}function Bd(e){return e.replace(/start|end/g,r=>VN[r])}const Oy=["left","right"],My=["right","left"],XN=["top","bottom"],ZN=["bottom","top"];function KN(e,r,l){switch(e){case"top":case"bottom":return l?r?My:Oy:r?Oy:My;case"left":case"right":return r?XN:ZN;default:return[]}}function QN(e,r,l,a){const s=cu(e);let u=KN(Al(e),l==="start",a);return s&&(u=u.map(c=>c+"-"+s),r&&(u=u.concat(u.map(Bd)))),u}function Is(e){return e.replace(/left|right|bottom|top/g,r=>PN[r])}function JN(e){return{top:0,right:0,bottom:0,left:0,...e}}function WN(e){return typeof e!="number"?JN(e):{top:e,right:e,bottom:e,left:e}}function Us(e){const{x:r,y:l,width:a,height:s}=e;return{width:a,height:s,top:l,left:r,right:r+a,bottom:l+s,x:r,y:l}}var e5=["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] *)"],Hs=e5.join(","),u0=typeof Element>"u",ji=u0?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,qs=!u0&&Element.prototype.getRootNode?function(e){var r;return e==null||(r=e.getRootNode)===null||r===void 0?void 0:r.call(e)}:function(e){return e?.ownerDocument},Ps=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]"):Ps(r.parentNode));return c},t5=function(r){var l,a=r==null||(l=r.getAttribute)===null||l===void 0?void 0:l.call(r,"contenteditable");return a===""||a==="true"},c0=function(r,l,a){if(Ps(r))return[];var s=Array.prototype.slice.apply(r.querySelectorAll(Hs));return l&&ji.call(r,Hs)&&s.unshift(r),s=s.filter(a),s},Vs=function(r,l,a){for(var s=[],u=Array.from(r);u.length;){var c=u.shift();if(!Ps(c,!1))if(c.tagName==="SLOT"){var f=c.assignedElements(),p=f.length?f:c.children,h=Vs(p,!0,a);a.flatten?s.push.apply(s,h):s.push({scopeParent:c,candidates:h})}else{var b=ji.call(c,Hs);b&&a.filter(c)&&(l||!r.includes(c))&&s.push(c);var g=c.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(c),x=!Ps(g,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(c));if(g&&x){var v=Vs(g===!0?c.children:g.children,!0,a);a.flatten?s.push.apply(s,v):s.push({scopeParent:c,candidates:v})}else u.unshift.apply(u,c.children)}}return s},f0=function(r){return!isNaN(parseInt(r.getAttribute("tabindex"),10))},d0=function(r){if(!r)throw new Error("No node provided");return r.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(r.tagName)||t5(r))&&!f0(r)?0:r.tabIndex},n5=function(r,l){var a=d0(r);return a<0&&l&&!f0(r)?0:a},r5=function(r,l){return r.tabIndex===l.tabIndex?r.documentOrder-l.documentOrder:r.tabIndex-l.tabIndex},h0=function(r){return r.tagName==="INPUT"},l5=function(r){return h0(r)&&r.type==="hidden"},i5=function(r){var l=r.tagName==="DETAILS"&&Array.prototype.slice.apply(r.children).some(function(a){return a.tagName==="SUMMARY"});return l},a5=function(r,l){for(var a=0;a<r.length;a++)if(r[a].checked&&r[a].form===l)return r[a]},o5=function(r){if(!r.name)return!0;var l=r.form||qs(r),a=function(f){return l.querySelectorAll('input[type="radio"][name="'+f+'"]')},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=a5(s,r.form);return!u||u===r},s5=function(r){return h0(r)&&r.type==="radio"},u5=function(r){return s5(r)&&!o5(r)},c5=function(r){var l,a=r&&qs(r),s=(l=a)===null||l===void 0?void 0:l.host,u=!1;if(a&&a!==r){var c,f,p;for(u=!!((c=s)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(s)||r!=null&&(p=r.ownerDocument)!==null&&p!==void 0&&p.contains(r));!u&&s;){var h,b,g;a=qs(s),s=(h=a)===null||h===void 0?void 0:h.host,u=!!((b=s)!==null&&b!==void 0&&(g=b.ownerDocument)!==null&&g!==void 0&&g.contains(s))}}return u},zy=function(r){var l=r.getBoundingClientRect(),a=l.width,s=l.height;return a===0&&s===0},f5=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=ji.call(r,"details>summary:first-of-type"),f=c?r.parentElement:r;if(ji.call(f,"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,b=qs(r);if(h&&!h.shadowRoot&&s(h)===!0)return zy(r);r.assignedSlot?r=r.assignedSlot:!h&&b!==r.ownerDocument?r=b.host:r=h}r=p}if(c5(r))return!r.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return zy(r);return!1},d5=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 ji.call(l,"fieldset[disabled] *")?!0:!s.contains(r)}return!0}l=l.parentElement}return!1},Fd=function(r,l){return!(l.disabled||l5(l)||f5(l,r)||i5(l)||d5(l))},Id=function(r,l){return!(u5(l)||d0(l)<0||!Fd(r,l))},h5=function(r){var l=parseInt(r.getAttribute("tabindex"),10);return!!(isNaN(l)||l>=0)},p0=function(r){var l=[],a=[];return r.forEach(function(s,u){var c=!!s.scopeParent,f=c?s.scopeParent:s,p=n5(f,c),h=c?p0(s.candidates):f;p===0?c?l.push.apply(l,h):l.push(f):a.push({documentOrder:u,tabIndex:p,item:s,isScope:c,content:h})}),a.sort(r5).reduce(function(s,u){return u.isScope?s.push.apply(s,u.content):s.push(u.content),s},[]).concat(l)},fu=function(r,l){l=l||{};var a;return l.getShadowRoot?a=Vs([r],l.includeContainer,{filter:Id.bind(null,l),flatten:!1,getShadowRoot:l.getShadowRoot,shadowRootFilter:h5}):a=c0(r,l.includeContainer,Id.bind(null,l)),p0(a)},p5=function(r,l){l=l||{};var a;return l.getShadowRoot?a=Vs([r],l.includeContainer,{filter:Fd.bind(null,l),flatten:!0,getShadowRoot:l.getShadowRoot}):a=c0(r,l.includeContainer,Fd.bind(null,l)),a},m0=function(r,l){if(l=l||{},!r)throw new Error("No node provided");return ji.call(r,Hs)===!1?!1:Id(l,r)};function g0(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function b0(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:l,version:a}=r;return l+"/"+a}).join(" "):navigator.userAgent}function y0(){return/apple/i.test(navigator.vendor)}function Ud(){const e=/android/i;return e.test(g0())||e.test(b0())}function m5(){return g0().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function x0(){return b0().includes("jsdom/")}const By="data-floating-ui-focusable",g5="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Kr(e){let r=e.activeElement;for(;((l=r)==null||(l=l.shadowRoot)==null?void 0:l.activeElement)!=null;){var l;r=r.shadowRoot.activeElement}return r}function It(e,r){if(!e||!r)return!1;const l=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(l&&zs(l)){let a=r;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function gr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function id(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const l=e;return l.target!=null&&r.contains(l.target)}function b5(e){return e.matches("html,body")}function Ut(e){return e?.ownerDocument||document}function yh(e){return Ct(e)&&e.matches(g5)}function Fy(e){return e?e.getAttribute("role")==="combobox"&&yh(e):!1}function y5(e){if(!e||x0())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Hd(e){return e?e.hasAttribute(By)?e:e.querySelector("["+By+"]")||e:null}function Ti(e,r,l){return l===void 0&&(l=!0),e.filter(s=>{var u;return s.parentId===r&&(!l||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...Ti(e,s.id,l)])}function Iy(e,r){var l;let a=[],s=(l=e.find(u=>u.id===r))==null?void 0:l.parentId;for(;s;){const u=e.find(c=>c.id===s);s=u?.parentId,u&&(a=a.concat(u))}return a}function ad(e){e.preventDefault(),e.stopPropagation()}function x5(e){return"nativeEvent"in e}function v5(e){return e.mozInputSource===0&&e.isTrusted?!0:Ud()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function w5(e){return x0()?!1:!Ud()&&e.width===0&&e.height===0||Ud()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Va(e,r){const l=["mouse","pen"];return r||l.push("",void 0),l.includes(e)}var S5=typeof document<"u",k5=function(){},an=S5?R.useLayoutEffect:k5;const E5={...gx};function El(e){const r=R.useRef(e);return an(()=>{r.current=e}),r}const C5=E5.useInsertionEffect,T5=C5||(e=>e());function ln(e){const r=R.useRef(()=>{});return T5(()=>{r.current=e}),R.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 Ka=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function v0(e,r){const l=fu(e,Ka()),a=l.length;if(a===0)return;const s=Kr(Ut(e)),u=l.indexOf(s),c=u===-1?r===1?0:a-1:u+r;return l[c]}function w0(e){return v0(Ut(e).body,1)||e}function S0(e){return v0(Ut(e).body,-1)||e}function Fa(e,r){const l=r||e.currentTarget,a=e.relatedTarget;return!a||!It(l,a)}function A5(e){fu(e,Ka()).forEach(l=>{l.dataset.tabindex=l.getAttribute("tabindex")||"",l.setAttribute("tabindex","-1")})}function Uy(e){e.querySelectorAll("[data-tabindex]").forEach(l=>{const a=l.dataset.tabindex;delete l.dataset.tabindex,a?l.setAttribute("tabindex",a):l.removeAttribute("tabindex")})}var k0=bx();function Hy(e,r,l){let{reference:a,floating:s}=e;const u=Qr(r),c=s0(r),f=o0(c),p=Al(r),h=u==="y",b=a.x+a.width/2-s.width/2,g=a.y+a.height/2-s.height/2,x=a[f]/2-s[f]/2;let v;switch(p){case"top":v={x:b,y:a.y-s.height};break;case"bottom":v={x:b,y:a.y+a.height};break;case"right":v={x:a.x+a.width,y:g};break;case"left":v={x:a.x-s.width,y:g};break;default:v={x:a.x,y:a.y}}switch(cu(r)){case"start":v[c]-=x*(l&&h?-1:1);break;case"end":v[c]+=x*(l&&h?-1:1);break}return v}const N5=async(e,r,l)=>{const{placement:a="bottom",strategy:s="absolute",middleware:u=[],platform:c}=l,f=u.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(r));let h=await c.getElementRects({reference:e,floating:r,strategy:s}),{x:b,y:g}=Hy(h,a,p),x=a,v={},w=0;for(let k=0;k<f.length;k++){const{name:T,fn:E}=f[k],{x:C,y:N,data:B,reset:q}=await E({x:b,y:g,initialPlacement:a,placement:x,strategy:s,middlewareData:v,rects:h,platform:c,elements:{reference:e,floating:r}});b=C??b,g=N??g,v={...v,[T]:{...v[T],...B}},q&&w<=50&&(w++,typeof q=="object"&&(q.placement&&(x=q.placement),q.rects&&(h=q.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:s}):q.rects),{x:b,y:g}=Hy(h,x,p)),k=-1)}return{x:b,y:g,placement:x,strategy:s,middlewareData:v}};async function E0(e,r){var l;r===void 0&&(r={});const{x:a,y:s,platform:u,rects:c,elements:f,strategy:p}=e,{boundary:h="clippingAncestors",rootBoundary:b="viewport",elementContext:g="floating",altBoundary:x=!1,padding:v=0}=uu(r,e),w=WN(v),T=f[x?g==="floating"?"reference":"floating":g],E=Us(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(T)))==null||l?T:T.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:h,rootBoundary:b,strategy:p})),C=g==="floating"?{x:a,y:s,width:c.floating.width,height:c.floating.height}:c.reference,N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.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},q=Us(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:C,offsetParent:N,strategy:p}):C);return{top:(E.top-q.top+w.top)/B.y,bottom:(q.bottom-E.bottom+w.bottom)/B.y,left:(E.left-q.left+w.left)/B.x,right:(q.right-E.right+w.right)/B.x}}const R5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var l,a;const{placement:s,middlewareData:u,rects:c,initialPlacement:f,platform:p,elements:h}=r,{mainAxis:b=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:k=!0,...T}=uu(e,r);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const E=Al(s),C=Qr(f),N=Al(f)===f,B=await(p.isRTL==null?void 0:p.isRTL(h.floating)),q=x||(N||!k?[Is(f)]:YN(f)),L=w!=="none";!x&&L&&q.push(...QN(f,k,w,B));const I=[f,...q],$=await E0(r,T),G=[];let M=((a=u.flip)==null?void 0:a.overflows)||[];if(b&&G.push($[E]),g){const U=GN(s,c,B);G.push($[U[0]],$[U[1]])}if(M=[...M,{placement:s,overflows:G}],!G.every(U=>U<=0)){var V,Y;const U=(((V=u.flip)==null?void 0:V.index)||0)+1,X=I[U];if(X&&(!(g==="alignment"?C!==Qr(X):!1)||M.every(z=>Qr(z.placement)===C?z.overflows[0]>0:!0)))return{data:{index:U,overflows:M},reset:{placement:X}};let F=(Y=M.filter(O=>O.overflows[0]<=0).sort((O,z)=>O.overflows[1]-z.overflows[1])[0])==null?void 0:Y.placement;if(!F)switch(v){case"bestFit":{var J;const O=(J=M.filter(z=>{if(L){const K=Qr(z.placement);return K===C||K==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(K=>K>0).reduce((K,_)=>K+_,0)]).sort((z,K)=>z[1]-K[1])[0])==null?void 0:J[0];O&&(F=O);break}case"initialPlacement":F=f;break}if(s!==F)return{reset:{placement:F}}}return{}}}},_5=new Set(["left","top"]);async function j5(e,r){const{placement:l,platform:a,elements:s}=e,u=await(a.isRTL==null?void 0:a.isRTL(s.floating)),c=Al(l),f=cu(l),p=Qr(l)==="y",h=_5.has(c)?-1:1,b=u&&p?-1:1,g=uu(r,e);let{mainAxis:x,crossAxis:v,alignmentAxis:w}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof w=="number"&&(v=f==="end"?w*-1:w),p?{x:v*b,y:x*h}:{x:x*h,y:v*b}}const L5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var l,a;const{x:s,y:u,placement:c,middlewareData:f}=r,p=await j5(r,e);return c===((l=f.offset)==null?void 0:l.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:c}}}}},D5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:l,y:a,placement:s}=r,{mainAxis:u=!0,crossAxis:c=!1,limiter:f={fn:T=>{let{x:E,y:C}=T;return{x:E,y:C}}},...p}=uu(e,r),h={x:l,y:a},b=await E0(r,p),g=Qr(Al(s)),x=a0(g);let v=h[x],w=h[g];if(u){const T=x==="y"?"top":"left",E=x==="y"?"bottom":"right",C=v+b[T],N=v-b[E];v=Dy(C,v,N)}if(c){const T=g==="y"?"top":"left",E=g==="y"?"bottom":"right",C=w+b[T],N=w-b[E];w=Dy(C,w,N)}const k=f.fn({...r,[x]:v,[g]:w});return{...k,data:{x:k.x-l,y:k.y-a,enabled:{[x]:u,[g]:c}}}}}};function C0(e){const r=Dn(e);let l=parseFloat(r.width)||0,a=parseFloat(r.height)||0;const s=Ct(e),u=s?e.offsetWidth:l,c=s?e.offsetHeight:a,f=Fs(l)!==u||Fs(a)!==c;return f&&(l=u,a=c),{width:l,height:a,$:f}}function xh(e){return st(e)?e:e.contextElement}function Ai(e){const r=xh(e);if(!Ct(r))return Gn(1);const l=r.getBoundingClientRect(),{width:a,height:s,$:u}=C0(r);let c=(u?Fs(l.width):l.width)/a,f=(u?Fs(l.height):l.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const O5=Gn(0);function T0(e){const r=on(e);return!ou()||!r.visualViewport?O5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function M5(e,r,l){return r===void 0&&(r=!1),!l||r&&l!==on(e)?!1:r}function Nl(e,r,l,a){r===void 0&&(r=!1),l===void 0&&(l=!1);const s=e.getBoundingClientRect(),u=xh(e);let c=Gn(1);r&&(a?st(a)&&(c=Ai(a)):c=Ai(e));const f=M5(u,l,a)?T0(u):Gn(0);let p=(s.left+f.x)/c.x,h=(s.top+f.y)/c.y,b=s.width/c.x,g=s.height/c.y;if(u){const x=on(u),v=a&&st(a)?on(a):a;let w=x,k=zd(w);for(;k&&a&&v!==w;){const T=Ai(k),E=k.getBoundingClientRect(),C=Dn(k),N=E.left+(k.clientLeft+parseFloat(C.paddingLeft))*T.x,B=E.top+(k.clientTop+parseFloat(C.paddingTop))*T.y;p*=T.x,h*=T.y,b*=T.x,g*=T.y,p+=N,h+=B,w=on(k),k=zd(w)}}return Us({width:b,height:g,x:p,y:h})}function du(e,r){const l=su(e).scrollLeft;return r?r.left+l:Nl(Xn(e)).left+l}function A0(e,r){const l=e.getBoundingClientRect(),a=l.left+r.scrollLeft-du(e,l),s=l.top+r.scrollTop;return{x:a,y:s}}function z5(e){let{elements:r,rect:l,offsetParent:a,strategy:s}=e;const u=s==="fixed",c=Xn(a),f=r?au(r.floating):!1;if(a===c||f&&u)return l;let p={scrollLeft:0,scrollTop:0},h=Gn(1);const b=Gn(0),g=Ct(a);if((g||!g&&!u)&&((nl(a)!=="body"||Za(c))&&(p=su(a)),Ct(a))){const v=Nl(a);h=Ai(a),b.x=v.x+a.clientLeft,b.y=v.y+a.clientTop}const x=c&&!g&&!u?A0(c,p):Gn(0);return{width:l.width*h.x,height:l.height*h.y,x:l.x*h.x-p.scrollLeft*h.x+b.x+x.x,y:l.y*h.y-p.scrollTop*h.y+b.y+x.y}}function B5(e){return Array.from(e.getClientRects())}function F5(e){const r=Xn(e),l=su(e),a=e.ownerDocument.body,s=Cl(r.scrollWidth,r.clientWidth,a.scrollWidth,a.clientWidth),u=Cl(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let c=-l.scrollLeft+du(e);const f=-l.scrollTop;return Dn(a).direction==="rtl"&&(c+=Cl(r.clientWidth,a.clientWidth)-s),{width:s,height:u,x:c,y:f}}const qy=25;function I5(e,r){const l=on(e),a=Xn(e),s=l.visualViewport;let u=a.clientWidth,c=a.clientHeight,f=0,p=0;if(s){u=s.width,c=s.height;const b=ou();(!b||b&&r==="fixed")&&(f=s.offsetLeft,p=s.offsetTop)}const h=du(a);if(h<=0){const b=a.ownerDocument,g=b.body,x=getComputedStyle(g),v=b.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,w=Math.abs(a.clientWidth-g.clientWidth-v);w<=qy&&(u-=w)}else h<=qy&&(u+=h);return{width:u,height:c,x:f,y:p}}const U5=new Set(["absolute","fixed"]);function H5(e,r){const l=Nl(e,!0,r==="fixed"),a=l.top+e.clientTop,s=l.left+e.clientLeft,u=Ct(e)?Ai(e):Gn(1),c=e.clientWidth*u.x,f=e.clientHeight*u.y,p=s*u.x,h=a*u.y;return{width:c,height:f,x:p,y:h}}function Py(e,r,l){let a;if(r==="viewport")a=I5(e,l);else if(r==="document")a=F5(Xn(e));else if(st(r))a=H5(r,l);else{const s=T0(e);a={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Us(a)}function N0(e,r){const l=xr(e);return l===r||!st(l)||yr(l)?!1:Dn(l).position==="fixed"||N0(l,r)}function q5(e,r){const l=r.get(e);if(l)return l;let a=el(e,[],!1).filter(f=>st(f)&&nl(f)!=="body"),s=null;const u=Dn(e).position==="fixed";let c=u?xr(e):e;for(;st(c)&&!yr(c);){const f=Dn(c),p=bh(c);!p&&f.position==="fixed"&&(s=null),(u?!p&&!s:!p&&f.position==="static"&&!!s&&U5.has(s.position)||Za(c)&&!p&&N0(e,c))?a=a.filter(b=>b!==c):s=f,c=xr(c)}return r.set(e,a),a}function P5(e){let{element:r,boundary:l,rootBoundary:a,strategy:s}=e;const c=[...l==="clippingAncestors"?au(r)?[]:q5(r,this._c):[].concat(l),a],f=c[0],p=c.reduce((h,b)=>{const g=Py(r,b,s);return h.top=Cl(g.top,h.top),h.right=Bs(g.right,h.right),h.bottom=Bs(g.bottom,h.bottom),h.left=Cl(g.left,h.left),h},Py(r,f,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function V5(e){const{width:r,height:l}=C0(e);return{width:r,height:l}}function $5(e,r,l){const a=Ct(r),s=Xn(r),u=l==="fixed",c=Nl(e,!0,u,r);let f={scrollLeft:0,scrollTop:0};const p=Gn(0);function h(){p.x=du(s)}if(a||!a&&!u)if((nl(r)!=="body"||Za(s))&&(f=su(r)),a){const v=Nl(r,!0,u,r);p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}else s&&h();u&&!a&&s&&h();const b=s&&!a&&!u?A0(s,f):Gn(0),g=c.left+f.scrollLeft-p.x-b.x,x=c.top+f.scrollTop-p.y-b.y;return{x:g,y:x,width:c.width,height:c.height}}function od(e){return Dn(e).position==="static"}function Vy(e,r){if(!Ct(e)||Dn(e).position==="fixed")return null;if(r)return r(e);let l=e.offsetParent;return Xn(e)===l&&(l=l.ownerDocument.body),l}function R0(e,r){const l=on(e);if(au(e))return l;if(!Ct(e)){let s=xr(e);for(;s&&!yr(s);){if(st(s)&&!od(s))return s;s=xr(s)}return l}let a=Vy(e,r);for(;a&&zN(a)&&od(a);)a=Vy(a,r);return a&&yr(a)&&od(a)&&!bh(a)?l:a||HN(e)||l}const G5=async function(e){const r=this.getOffsetParent||R0,l=this.getDimensions,a=await l(e.floating);return{reference:$5(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Y5(e){return Dn(e).direction==="rtl"}const X5={convertOffsetParentRelativeRectToViewportRelativeRect:z5,getDocumentElement:Xn,getClippingRect:P5,getOffsetParent:R0,getElementRects:G5,getClientRects:B5,getDimensions:V5,getScale:Ai,isElement:st,isRTL:Y5};function _0(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function Z5(e,r){let l=null,a;const s=Xn(e);function u(){var f;clearTimeout(a),(f=l)==null||f.disconnect(),l=null}function c(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),u();const h=e.getBoundingClientRect(),{left:b,top:g,width:x,height:v}=h;if(f||r(),!x||!v)return;const w=vs(g),k=vs(s.clientWidth-(b+x)),T=vs(s.clientHeight-(g+v)),E=vs(b),N={rootMargin:-w+"px "+-k+"px "+-T+"px "+-E+"px",threshold:Cl(0,Bs(1,p))||1};let B=!0;function q(L){const I=L[0].intersectionRatio;if(I!==p){if(!B)return c();I?c(!1,I):a=setTimeout(()=>{c(!1,1e-7)},1e3)}I===1&&!_0(h,e.getBoundingClientRect())&&c(),B=!1}try{l=new IntersectionObserver(q,{...N,root:s.ownerDocument})}catch{l=new IntersectionObserver(q,N)}l.observe(e)}return c(!0),u}function K5(e,r,l,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=a,h=xh(e),b=s||u?[...h?el(h):[],...el(r)]:[];b.forEach(E=>{s&&E.addEventListener("scroll",l,{passive:!0}),u&&E.addEventListener("resize",l)});const g=h&&f?Z5(h,l):null;let x=-1,v=null;c&&(v=new ResizeObserver(E=>{let[C]=E;C&&C.target===h&&v&&(v.unobserve(r),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=v)==null||N.observe(r)})),l()}),h&&!p&&v.observe(h),v.observe(r));let w,k=p?Nl(e):null;p&&T();function T(){const E=Nl(e);k&&!_0(k,E)&&l(),k=E,w=requestAnimationFrame(T)}return l(),()=>{var E;b.forEach(C=>{s&&C.removeEventListener("scroll",l),u&&C.removeEventListener("resize",l)}),g?.(),(E=v)==null||E.disconnect(),v=null,p&&cancelAnimationFrame(w)}}const Q5=L5,J5=D5,W5=R5,e8=(e,r,l)=>{const a=new Map,s={platform:X5,...l},u={...s.platform,_c:a};return N5(e,r,{...s,platform:u})};var t8=typeof document<"u",n8=function(){},Cs=t8?R.useLayoutEffect:n8;function $s(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let l,a,s;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(l=e.length,l!==r.length)return!1;for(a=l;a--!==0;)if(!$s(e[a],r[a]))return!1;return!0}if(s=Object.keys(e),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"&&e.$$typeof)&&!$s(e[u],r[u]))return!1}return!0}return e!==e&&r!==r}function j0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $y(e,r){const l=j0(e);return Math.round(r*l)/l}function sd(e){const r=R.useRef(e);return Cs(()=>{r.current=e}),r}function r8(e){e===void 0&&(e={});const{placement:r="bottom",strategy:l="absolute",middleware:a=[],platform:s,elements:{reference:u,floating:c}={},transform:f=!0,whileElementsMounted:p,open:h}=e,[b,g]=R.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[x,v]=R.useState(a);$s(x,a)||v(a);const[w,k]=R.useState(null),[T,E]=R.useState(null),C=R.useCallback(z=>{z!==L.current&&(L.current=z,k(z))},[]),N=R.useCallback(z=>{z!==I.current&&(I.current=z,E(z))},[]),B=u||w,q=c||T,L=R.useRef(null),I=R.useRef(null),$=R.useRef(b),G=p!=null,M=sd(p),V=sd(s),Y=sd(h),J=R.useCallback(()=>{if(!L.current||!I.current)return;const z={placement:r,strategy:l,middleware:x};V.current&&(z.platform=V.current),e8(L.current,I.current,z).then(K=>{const _={...K,isPositioned:Y.current!==!1};U.current&&!$s($.current,_)&&($.current=_,k0.flushSync(()=>{g(_)}))})},[x,r,l,V,Y]);Cs(()=>{h===!1&&$.current.isPositioned&&($.current.isPositioned=!1,g(z=>({...z,isPositioned:!1})))},[h]);const U=R.useRef(!1);Cs(()=>(U.current=!0,()=>{U.current=!1}),[]),Cs(()=>{if(B&&(L.current=B),q&&(I.current=q),B&&q){if(M.current)return M.current(B,q,J);J()}},[B,q,J,M,G]);const X=R.useMemo(()=>({reference:L,floating:I,setReference:C,setFloating:N}),[C,N]),F=R.useMemo(()=>({reference:B,floating:q}),[B,q]),O=R.useMemo(()=>{const z={position:l,left:0,top:0};if(!F.floating)return z;const K=$y(F.floating,b.x),_=$y(F.floating,b.y);return f?{...z,transform:"translate("+K+"px, "+_+"px)",...j0(F.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:K,top:_}},[l,f,F.floating,b.x,b.y]);return R.useMemo(()=>({...b,update:J,refs:X,elements:F,floatingStyles:O}),[b,J,X,F,O])}const l8=(e,r)=>({...Q5(e),options:[e,r]}),i8=(e,r)=>({...J5(e),options:[e,r]}),a8=(e,r)=>({...W5(e),options:[e,r]}),o8="data-floating-ui-focusable",Gy="active",Yy="selected",s8={...gx};let Xy=!1,u8=0;const Zy=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+u8++;function c8(){const[e,r]=R.useState(()=>Xy?Zy():void 0);return an(()=>{e==null&&r(Zy())},[]),R.useEffect(()=>{Xy=!0},[]),e}const f8=s8.useId,vh=f8||c8;function d8(){const e=new Map;return{emit(r,l){var a;(a=e.get(r))==null||a.forEach(s=>s(l))},on(r,l){e.has(r)||e.set(r,new Set),e.get(r).add(l)},off(r,l){var a;(a=e.get(r))==null||a.delete(l)}}}const h8=R.createContext(null),p8=R.createContext(null),wh=()=>{var e;return((e=R.useContext(h8))==null?void 0:e.id)||null},hu=()=>R.useContext(p8);function Rl(e){return"data-floating-ui-"+e}function Yt(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const Ky=Rl("safe-polygon");function ud(e,r,l){if(l&&!Va(l))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const a=e();return typeof a=="number"?a:a?.[r]}return e?.[r]}function cd(e){return typeof e=="function"?e():e}function m8(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,dataRef:s,events:u,elements:c}=e,{enabled:f=!0,delay:p=0,handleClose:h=null,mouseOnly:b=!1,restMs:g=0,move:x=!0}=r,v=hu(),w=wh(),k=El(h),T=El(p),E=El(l),C=El(g),N=R.useRef(),B=R.useRef(-1),q=R.useRef(),L=R.useRef(-1),I=R.useRef(!0),$=R.useRef(!1),G=R.useRef(()=>{}),M=R.useRef(!1),V=ln(()=>{var O;const z=(O=s.current.openEvent)==null?void 0:O.type;return z?.includes("mouse")&&z!=="mousedown"});R.useEffect(()=>{if(!f)return;function O(z){let{open:K}=z;K||(Yt(B),Yt(L),I.current=!0,M.current=!1)}return u.on("openchange",O),()=>{u.off("openchange",O)}},[f,u]),R.useEffect(()=>{if(!f||!k.current||!l)return;function O(K){V()&&a(!1,K,"hover")}const z=Ut(c.floating).documentElement;return z.addEventListener("mouseleave",O),()=>{z.removeEventListener("mouseleave",O)}},[c.floating,l,a,f,k,V]);const Y=R.useCallback(function(O,z,K){z===void 0&&(z=!0),K===void 0&&(K="hover");const _=ud(T.current,"close",N.current);_&&!q.current?(Yt(B),B.current=window.setTimeout(()=>a(!1,O,K),_)):z&&(Yt(B),a(!1,O,K))},[T,a]),J=ln(()=>{G.current(),q.current=void 0}),U=ln(()=>{if($.current){const O=Ut(c.floating).body;O.style.pointerEvents="",O.removeAttribute(Ky),$.current=!1}}),X=ln(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);R.useEffect(()=>{if(!f)return;function O(H){if(Yt(B),I.current=!1,b&&!Va(N.current)||cd(C.current)>0&&!ud(T.current,"open"))return;const A=ud(T.current,"open",N.current);A?B.current=window.setTimeout(()=>{E.current||a(!0,H,"hover")},A):l||a(!0,H,"hover")}function z(H){if(X()){U();return}G.current();const A=Ut(c.floating);if(Yt(L),M.current=!1,k.current&&s.current.floatingContext){l||Yt(B),q.current=k.current({...s.current.floatingContext,tree:v,x:H.clientX,y:H.clientY,onClose(){U(),J(),X()||Y(H,!0,"safe-polygon")}});const ce=q.current;A.addEventListener("mousemove",ce),G.current=()=>{A.removeEventListener("mousemove",ce)};return}(N.current!=="touch"||!It(c.floating,H.relatedTarget))&&Y(H)}function K(H){X()||s.current.floatingContext&&(k.current==null||k.current({...s.current.floatingContext,tree:v,x:H.clientX,y:H.clientY,onClose(){U(),J(),X()||Y(H)}})(H))}function _(){Yt(B)}function D(H){X()||Y(H,!1)}if(st(c.domReference)){const H=c.domReference,A=c.floating;return l&&H.addEventListener("mouseleave",K),x&&H.addEventListener("mousemove",O,{once:!0}),H.addEventListener("mouseenter",O),H.addEventListener("mouseleave",z),A&&(A.addEventListener("mouseleave",K),A.addEventListener("mouseenter",_),A.addEventListener("mouseleave",D)),()=>{l&&H.removeEventListener("mouseleave",K),x&&H.removeEventListener("mousemove",O),H.removeEventListener("mouseenter",O),H.removeEventListener("mouseleave",z),A&&(A.removeEventListener("mouseleave",K),A.removeEventListener("mouseenter",_),A.removeEventListener("mouseleave",D))}}},[c,f,e,b,x,Y,J,U,a,l,E,v,T,k,s,X,C]),an(()=>{var O;if(f&&l&&(O=k.current)!=null&&(O=O.__options)!=null&&O.blockPointerEvents&&V()){$.current=!0;const K=c.floating;if(st(c.domReference)&&K){var z;const _=Ut(c.floating).body;_.setAttribute(Ky,"");const D=c.domReference,H=v==null||(z=v.nodesRef.current.find(A=>A.id===w))==null||(z=z.context)==null?void 0:z.elements.floating;return H&&(H.style.pointerEvents=""),_.style.pointerEvents="none",D.style.pointerEvents="auto",K.style.pointerEvents="auto",()=>{_.style.pointerEvents="",D.style.pointerEvents="",K.style.pointerEvents=""}}}},[f,l,w,c,v,k,V]),an(()=>{l||(N.current=void 0,M.current=!1,J(),U())},[l,J,U]),R.useEffect(()=>()=>{J(),Yt(B),Yt(L),U()},[f,c.domReference,J,U]);const F=R.useMemo(()=>{function O(z){N.current=z.pointerType}return{onPointerDown:O,onPointerEnter:O,onMouseMove(z){const{nativeEvent:K}=z;function _(){!I.current&&!E.current&&a(!0,K,"hover")}b&&!Va(N.current)||l||cd(C.current)===0||M.current&&z.movementX**2+z.movementY**2<2||(Yt(L),N.current==="touch"?_():(M.current=!0,L.current=window.setTimeout(_,cd(C.current))))}}},[b,a,l,E,C]);return R.useMemo(()=>f?{reference:F}:{},[f,F])}let Qy=0;function ki(e,r){r===void 0&&(r={});const{preventScroll:l=!1,cancelPrevious:a=!0,sync:s=!1}=r;a&&cancelAnimationFrame(Qy);const u=()=>e?.focus({preventScroll:l});s?u():Qy=requestAnimationFrame(u)}function fd(e,r){if(!e||!r)return!1;const l=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(l&&zs(l)){let a=r;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function g8(e){return"composedPath"in e?e.composedPath()[0]:e.target}function b8(e){return e?.ownerDocument||document}const Ni={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Jy(e){return e==="inert"?Ni.inert:e==="aria-hidden"?Ni["aria-hidden"]:Ni.none}let ws=new WeakSet,Ss={},dd=0;const y8=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,L0=e=>e&&(e.host||L0(e.parentNode)),x8=(e,r)=>r.map(l=>{if(e.contains(l))return l;const a=L0(l);return e.contains(a)?a:null}).filter(l=>l!=null);function v8(e,r,l,a){const s="data-floating-ui-inert",u=a?"inert":l?"aria-hidden":null,c=x8(r,e),f=new Set,p=new Set(c),h=[];Ss[s]||(Ss[s]=new WeakMap);const b=Ss[s];c.forEach(g),x(r),f.clear();function g(v){!v||f.has(v)||(f.add(v),v.parentNode&&g(v.parentNode))}function x(v){!v||p.has(v)||[].forEach.call(v.children,w=>{if(nl(w)!=="script")if(f.has(w))x(w);else{const k=u?w.getAttribute(u):null,T=k!==null&&k!=="false",E=Jy(u),C=(E.get(w)||0)+1,N=(b.get(w)||0)+1;E.set(w,C),b.set(w,N),h.push(w),C===1&&T&&ws.add(w),N===1&&w.setAttribute(s,""),!T&&u&&w.setAttribute(u,u==="inert"?"":"true")}})}return dd++,()=>{h.forEach(v=>{const w=Jy(u),T=(w.get(v)||0)-1,E=(b.get(v)||0)-1;w.set(v,T),b.set(v,E),T||(!ws.has(v)&&u&&v.removeAttribute(u),ws.delete(v)),E||v.removeAttribute(s)}),dd--,dd||(Ni.inert=new WeakMap,Ni["aria-hidden"]=new WeakMap,Ni.none=new WeakMap,ws=new WeakSet,Ss={})}}function Wy(e,r,l){r===void 0&&(r=!1),l===void 0&&(l=!1);const a=b8(e[0]).body;return v8(e.concat(Array.from(a.querySelectorAll('[aria-live],[role="status"],output'))),a,r,l)}const pu={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},Gs=R.forwardRef(function(r,l){const[a,s]=R.useState();an(()=>{y0()&&s("button")},[]);const u={ref:l,tabIndex:0,role:a,"aria-hidden":a?void 0:!0,[Rl("focus-guard")]:"",style:pu};return y.jsx("span",{...r,...u})}),D0=R.createContext(null),ex=Rl("portal");function w8(e){e===void 0&&(e={});const{id:r,root:l}=e,a=vh(),s=O0(),[u,c]=R.useState(null),f=R.useRef(null);return an(()=>()=>{u?.remove(),queueMicrotask(()=>{f.current=null})},[u]),an(()=>{if(!a||f.current)return;const p=r?document.getElementById(r):null;if(!p)return;const h=document.createElement("div");h.id=a,h.setAttribute(ex,""),p.appendChild(h),f.current=h,c(h)},[r,a]),an(()=>{if(l===null||!a||f.current)return;let p=l||s?.portalNode;p&&!gh(p)&&(p=p.current),p=p||document.body;let h=null;r&&(h=document.createElement("div"),h.id=r,p.appendChild(h));const b=document.createElement("div");b.id=a,b.setAttribute(ex,""),p=h||p,p.appendChild(b),f.current=b,c(b)},[r,l,a,s]),u}function S8(e){const{children:r,id:l,root:a,preserveTabOrder:s=!0}=e,u=w8({id:l,root:a}),[c,f]=R.useState(null),p=R.useRef(null),h=R.useRef(null),b=R.useRef(null),g=R.useRef(null),x=c?.modal,v=c?.open,w=!!c&&!c.modal&&c.open&&s&&!!(a||u);return R.useEffect(()=>{if(!u||!s||x)return;function k(T){u&&Fa(T)&&(T.type==="focusin"?Uy:A5)(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]),R.useEffect(()=>{u&&(v||Uy(u))},[v,u]),y.jsxs(D0.Provider,{value:R.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:p,afterOutsideRef:h,beforeInsideRef:b,afterInsideRef:g,portalNode:u,setFocusManagerState:f}),[s,u]),children:[w&&u&&y.jsx(Gs,{"data-type":"outside",ref:p,onFocus:k=>{if(Fa(k,u)){var T;(T=b.current)==null||T.focus()}else{const E=c?c.domReference:null,C=S0(E);C?.focus()}}}),w&&u&&y.jsx("span",{"aria-owns":u.id,style:pu}),u&&k0.createPortal(r,u),w&&u&&y.jsx(Gs,{"data-type":"outside",ref:h,onFocus:k=>{if(Fa(k,u)){var T;(T=g.current)==null||T.focus()}else{const E=c?c.domReference:null,C=w0(E);C?.focus(),c?.closeOnFocusOut&&c?.onOpenChange(!1,k.nativeEvent,"focus-out")}}})]})}const O0=()=>R.useContext(D0);function tx(e){return R.useMemo(()=>r=>{e.forEach(l=>{l&&(l.current=r)})},e)}const k8=20;let Jr=[];function Sh(){Jr=Jr.filter(e=>e.isConnected)}function E8(e){Sh(),e&&nl(e)!=="body"&&(Jr.push(e),Jr.length>k8&&(Jr=Jr.slice(-20)))}function nx(){return Sh(),Jr[Jr.length-1]}function C8(e){const r=Ka();return m0(e,r)?e:fu(e,r)[0]||e}function rx(e,r){var l;if(!r.current.includes("floating")&&!((l=e.getAttribute("role"))!=null&&l.includes("dialog")))return;const a=Ka(),u=p5(e,a).filter(f=>{const p=f.getAttribute("data-tabindex")||"";return m0(f,a)||f.hasAttribute("data-tabindex")&&!p.startsWith("-")}),c=e.getAttribute("tabindex");r.current.includes("floating")||u.length===0?c!=="0"&&e.setAttribute("tabindex","0"):(c!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const T8=R.forwardRef(function(r,l){return y.jsx("button",{...r,type:"button",ref:l,tabIndex:-1,style:pu})});function A8(e){const{context:r,children:l,disabled:a=!1,order:s=["content"],guards:u=!0,initialFocus:c=0,returnFocus:f=!0,restoreFocus:p=!1,modal:h=!0,visuallyHiddenDismiss:b=!1,closeOnFocusOut:g=!0,outsideElementsInert:x=!1,getInsideElements:v=()=>[]}=e,{open:w,onOpenChange:k,events:T,dataRef:E,elements:{domReference:C,floating:N}}=r,B=ln(()=>{var ye;return(ye=E.current.floatingContext)==null?void 0:ye.nodeId}),q=ln(v),L=typeof c=="number"&&c<0,I=Fy(C)&&L,$=y8(),G=$?u:!0,M=!G||$&&x,V=El(s),Y=El(c),J=El(f),U=hu(),X=O0(),F=R.useRef(null),O=R.useRef(null),z=R.useRef(!1),K=R.useRef(!1),_=R.useRef(-1),D=R.useRef(-1),H=X!=null,A=Hd(N),le=ln(function(ye){return ye===void 0&&(ye=A),ye?fu(ye,Ka()):[]}),ce=ln(ye=>{const Ce=le(ye);return V.current.map(Ae=>C&&Ae==="reference"?C:A&&Ae==="floating"?A:Ce).filter(Boolean).flat()});R.useEffect(()=>{if(a||!h)return;function ye(Ae){if(Ae.key==="Tab"){It(A,Kr(Ut(A)))&&le().length===0&&!I&&ad(Ae);const Ge=ce(),Me=gr(Ae);V.current[0]==="reference"&&Me===C&&(ad(Ae),Ae.shiftKey?ki(Ge[Ge.length-1]):ki(Ge[1])),V.current[1]==="floating"&&Me===A&&Ae.shiftKey&&(ad(Ae),ki(Ge[0]))}}const Ce=Ut(A);return Ce.addEventListener("keydown",ye),()=>{Ce.removeEventListener("keydown",ye)}},[a,C,A,h,V,I,le,ce]),R.useEffect(()=>{if(a||!N)return;function ye(Ce){const Ae=gr(Ce),Me=le().indexOf(Ae);Me!==-1&&(_.current=Me)}return N.addEventListener("focusin",ye),()=>{N.removeEventListener("focusin",ye)}},[a,N,le]),R.useEffect(()=>{if(a||!g)return;function ye(){K.current=!0,setTimeout(()=>{K.current=!1})}function Ce(Me){const Ue=Me.relatedTarget,_t=Me.currentTarget,ht=gr(Me);queueMicrotask(()=>{const pt=B(),Pt=!(It(C,Ue)||It(N,Ue)||It(Ue,N)||It(X?.portalNode,Ue)||Ue!=null&&Ue.hasAttribute(Rl("focus-guard"))||U&&(Ti(U.nodesRef.current,pt).find(Vt=>{var $t,at;return It(($t=Vt.context)==null?void 0:$t.elements.floating,Ue)||It((at=Vt.context)==null?void 0:at.elements.domReference,Ue)})||Iy(U.nodesRef.current,pt).find(Vt=>{var $t,at,wr;return[($t=Vt.context)==null?void 0:$t.elements.floating,Hd((at=Vt.context)==null?void 0:at.elements.floating)].includes(Ue)||((wr=Vt.context)==null?void 0:wr.elements.domReference)===Ue})));if(_t===C&&A&&rx(A,V),p&&_t!==C&&!(ht!=null&&ht.isConnected)&&Kr(Ut(A))===Ut(A).body){Ct(A)&&A.focus();const Vt=_.current,$t=le(),at=$t[Vt]||$t[$t.length-1]||A;Ct(at)&&at.focus()}if(E.current.insideReactTree){E.current.insideReactTree=!1;return}(I||!h)&&Ue&&Pt&&!K.current&&Ue!==nx()&&(z.current=!0,k(!1,Me,"focus-out"))})}const Ae=!!(!U&&X);function Ge(){Yt(D),E.current.insideReactTree=!0,D.current=window.setTimeout(()=>{E.current.insideReactTree=!1})}if(N&&Ct(C))return C.addEventListener("focusout",Ce),C.addEventListener("pointerdown",ye),N.addEventListener("focusout",Ce),Ae&&N.addEventListener("focusout",Ge,!0),()=>{C.removeEventListener("focusout",Ce),C.removeEventListener("pointerdown",ye),N.removeEventListener("focusout",Ce),Ae&&N.removeEventListener("focusout",Ge,!0)}},[a,C,N,A,h,U,X,k,g,p,le,I,B,V,E]);const de=R.useRef(null),fe=R.useRef(null),ge=tx([de,X?.beforeInsideRef]),he=tx([fe,X?.afterInsideRef]);R.useEffect(()=>{var ye,Ce;if(a||!N)return;const Ae=Array.from((X==null||(ye=X.portalNode)==null?void 0:ye.querySelectorAll("["+Rl("portal")+"]"))||[]),Me=(Ce=(U?Iy(U.nodesRef.current,B()):[]).find(ht=>{var pt;return Fy(((pt=ht.context)==null?void 0:pt.elements.domReference)||null)}))==null||(Ce=Ce.context)==null?void 0:Ce.elements.domReference,Ue=[N,Me,...Ae,...q(),F.current,O.current,de.current,fe.current,X?.beforeOutsideRef.current,X?.afterOutsideRef.current,V.current.includes("reference")||I?C:null].filter(ht=>ht!=null),_t=h||I?Wy(Ue,!M,M):Wy(Ue);return()=>{_t()}},[a,C,N,h,V,X,I,G,M,U,B,q]),an(()=>{if(a||!Ct(A))return;const ye=Ut(A),Ce=Kr(ye);queueMicrotask(()=>{const Ae=ce(A),Ge=Y.current,Me=(typeof Ge=="number"?Ae[Ge]:Ge.current)||A,Ue=It(A,Ce);!L&&!Ue&&w&&ki(Me,{preventScroll:Me===A})})},[a,w,A,L,ce,Y]),an(()=>{if(a||!A)return;const ye=Ut(A),Ce=Kr(ye);E8(Ce);function Ae(Ue){let{reason:_t,event:ht,nested:pt}=Ue;if(["hover","safe-polygon"].includes(_t)&&ht.type==="mouseleave"&&(z.current=!0),_t==="outside-press")if(pt)z.current=!1;else if(v5(ht)||w5(ht))z.current=!1;else{let Pt=!1;document.createElement("div").focus({get preventScroll(){return Pt=!0,!1}}),Pt?z.current=!1:z.current=!0}}T.on("openchange",Ae);const Ge=ye.createElement("span");Ge.setAttribute("tabindex","-1"),Ge.setAttribute("aria-hidden","true"),Object.assign(Ge.style,pu),H&&C&&C.insertAdjacentElement("afterend",Ge);function Me(){if(typeof J.current=="boolean"){const Ue=C||nx();return Ue&&Ue.isConnected?Ue:Ge}return J.current.current||Ge}return()=>{T.off("openchange",Ae);const Ue=Kr(ye),_t=It(N,Ue)||U&&Ti(U.nodesRef.current,B(),!1).some(pt=>{var Pt;return It((Pt=pt.context)==null?void 0:Pt.elements.floating,Ue)}),ht=Me();queueMicrotask(()=>{const pt=C8(ht);J.current&&!z.current&&Ct(pt)&&(!(pt!==Ue&&Ue!==ye.body)||_t)&&pt.focus({preventScroll:!0}),Ge.remove()})}},[a,N,A,J,E,T,U,H,C,B]),R.useEffect(()=>(queueMicrotask(()=>{z.current=!1}),()=>{queueMicrotask(Sh)}),[a]),an(()=>{if(!a&&X)return X.setFocusManagerState({modal:h,closeOnFocusOut:g,open:w,onOpenChange:k,domReference:C}),()=>{X.setFocusManagerState(null)}},[a,X,h,w,k,g,C]),an(()=>{a||A&&rx(A,V)},[a,A,V]);function ve(ye){return a||!b||!h?null:y.jsx(T8,{ref:ye==="start"?F:O,onClick:Ce=>k(!1,Ce.nativeEvent),children:typeof b=="string"?b:"Dismiss"})}const xe=!a&&G&&(h?!I:!0)&&(H||h);return y.jsxs(y.Fragment,{children:[xe&&y.jsx(Gs,{"data-type":"inside",ref:ge,onFocus:ye=>{if(h){const Ae=ce();ki(s[0]==="reference"?Ae[0]:Ae[Ae.length-1])}else if(X!=null&&X.preserveTabOrder&&X.portalNode)if(z.current=!1,Fa(ye,X.portalNode)){const Ae=w0(C);Ae?.focus()}else{var Ce;(Ce=X.beforeOutsideRef.current)==null||Ce.focus()}}}),!I&&ve("start"),l,ve("end"),xe&&y.jsx(Gs,{"data-type":"inside",ref:he,onFocus:ye=>{if(h)ki(ce()[0]);else if(X!=null&&X.preserveTabOrder&&X.portalNode)if(g&&(z.current=!0),Fa(ye,X.portalNode)){const Ae=S0(C);Ae?.focus()}else{var Ce;(Ce=X.afterOutsideRef.current)==null||Ce.focus()}}})]})}function lx(e){return Ct(e.target)&&e.target.tagName==="BUTTON"}function N8(e){return Ct(e.target)&&e.target.tagName==="A"}function ix(e){return yh(e)}function R8(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,dataRef:s,elements:{domReference:u}}=e,{enabled:c=!0,event:f="click",toggle:p=!0,ignoreMouse:h=!1,keyboardHandlers:b=!0,stickIfOpen:g=!0}=r,x=R.useRef(),v=R.useRef(!1),w=R.useMemo(()=>({onPointerDown(k){x.current=k.pointerType},onMouseDown(k){const T=x.current;k.button===0&&f!=="click"&&(Va(T,!0)&&h||(l&&p&&(!(s.current.openEvent&&g)||s.current.openEvent.type==="mousedown")?a(!1,k.nativeEvent,"click"):(k.preventDefault(),a(!0,k.nativeEvent,"click"))))},onClick(k){const T=x.current;if(f==="mousedown"&&x.current){x.current=void 0;return}Va(T,!0)&&h||(l&&p&&(!(s.current.openEvent&&g)||s.current.openEvent.type==="click")?a(!1,k.nativeEvent,"click"):a(!0,k.nativeEvent,"click"))},onKeyDown(k){x.current=void 0,!(k.defaultPrevented||!b||lx(k))&&(k.key===" "&&!ix(u)&&(k.preventDefault(),v.current=!0),!N8(k)&&k.key==="Enter"&&a(!(l&&p),k.nativeEvent,"click"))},onKeyUp(k){k.defaultPrevented||!b||lx(k)||ix(u)||k.key===" "&&v.current&&(v.current=!1,a(!(l&&p),k.nativeEvent,"click"))}}),[s,u,f,h,b,a,l,g,p]);return R.useMemo(()=>c?{reference:w}:{},[c,w])}const _8={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},j8={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ax=e=>{var r,l;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(l=e?.outsidePress)!=null?l:!0}};function L8(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,elements:s,dataRef:u}=e,{enabled:c=!0,escapeKey:f=!0,outsidePress:p=!0,outsidePressEvent:h="pointerdown",referencePress:b=!1,referencePressEvent:g="pointerdown",ancestorScroll:x=!1,bubbles:v,capture:w}=r,k=hu(),T=ln(typeof p=="function"?p:()=>!1),E=typeof p=="function"?T:p,C=R.useRef(!1),{escapeKey:N,outsidePress:B}=ax(v),{escapeKey:q,outsidePress:L}=ax(w),I=R.useRef(!1),$=ln(U=>{var X;if(!l||!c||!f||U.key!=="Escape"||I.current)return;const F=(X=u.current.floatingContext)==null?void 0:X.nodeId,O=k?Ti(k.nodesRef.current,F):[];if(!N&&(U.stopPropagation(),O.length>0)){let z=!0;if(O.forEach(K=>{var _;if((_=K.context)!=null&&_.open&&!K.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}a(!1,x5(U)?U.nativeEvent:U,"escape-key")}),G=ln(U=>{var X;const F=()=>{var O;$(U),(O=gr(U))==null||O.removeEventListener("keydown",F)};(X=gr(U))==null||X.addEventListener("keydown",F)}),M=ln(U=>{var X;const F=u.current.insideReactTree;u.current.insideReactTree=!1;const O=C.current;if(C.current=!1,h==="click"&&O||F||typeof E=="function"&&!E(U))return;const z=gr(U),K="["+Rl("inert")+"]",_=Ut(s.floating).querySelectorAll(K);let D=st(z)?z:null;for(;D&&!yr(D);){const ce=xr(D);if(yr(ce)||!st(ce))break;D=ce}if(_.length&&st(z)&&!b5(z)&&!It(z,s.floating)&&Array.from(_).every(ce=>!It(D,ce)))return;if(Ct(z)&&J){const ce=yr(z),de=Dn(z),fe=/auto|scroll/,ge=ce||fe.test(de.overflowX),he=ce||fe.test(de.overflowY),ve=ge&&z.clientWidth>0&&z.scrollWidth>z.clientWidth,xe=he&&z.clientHeight>0&&z.scrollHeight>z.clientHeight,ye=de.direction==="rtl",Ce=xe&&(ye?U.offsetX<=z.offsetWidth-z.clientWidth:U.offsetX>z.clientWidth),Ae=ve&&U.offsetY>z.clientHeight;if(Ce||Ae)return}const H=(X=u.current.floatingContext)==null?void 0:X.nodeId,A=k&&Ti(k.nodesRef.current,H).some(ce=>{var de;return id(U,(de=ce.context)==null?void 0:de.elements.floating)});if(id(U,s.floating)||id(U,s.domReference)||A)return;const le=k?Ti(k.nodesRef.current,H):[];if(le.length>0){let ce=!0;if(le.forEach(de=>{var fe;if((fe=de.context)!=null&&fe.open&&!de.context.dataRef.current.__outsidePressBubbles){ce=!1;return}}),!ce)return}a(!1,U,"outside-press")}),V=ln(U=>{var X;const F=()=>{var O;M(U),(O=gr(U))==null||O.removeEventListener(h,F)};(X=gr(U))==null||X.addEventListener(h,F)});R.useEffect(()=>{if(!l||!c)return;u.current.__escapeKeyBubbles=N,u.current.__outsidePressBubbles=B;let U=-1;function X(_){a(!1,_,"ancestor-scroll")}function F(){window.clearTimeout(U),I.current=!0}function O(){U=window.setTimeout(()=>{I.current=!1},ou()?5:0)}const z=Ut(s.floating);f&&(z.addEventListener("keydown",q?G:$,q),z.addEventListener("compositionstart",F),z.addEventListener("compositionend",O)),E&&z.addEventListener(h,L?V:M,L);let K=[];return x&&(st(s.domReference)&&(K=el(s.domReference)),st(s.floating)&&(K=K.concat(el(s.floating))),!st(s.reference)&&s.reference&&s.reference.contextElement&&(K=K.concat(el(s.reference.contextElement)))),K=K.filter(_=>{var D;return _!==((D=z.defaultView)==null?void 0:D.visualViewport)}),K.forEach(_=>{_.addEventListener("scroll",X,{passive:!0})}),()=>{f&&(z.removeEventListener("keydown",q?G:$,q),z.removeEventListener("compositionstart",F),z.removeEventListener("compositionend",O)),E&&z.removeEventListener(h,L?V:M,L),K.forEach(_=>{_.removeEventListener("scroll",X)}),window.clearTimeout(U)}},[u,s,f,E,h,l,a,x,c,N,B,$,q,G,M,L,V]),R.useEffect(()=>{u.current.insideReactTree=!1},[u,E,h]);const Y=R.useMemo(()=>({onKeyDown:$,...b&&{[_8[g]]:U=>{a(!1,U.nativeEvent,"reference-press")},...g!=="click"&&{onClick(U){a(!1,U.nativeEvent,"reference-press")}}}}),[$,a,b,g]),J=R.useMemo(()=>({onKeyDown:$,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[j8[h]]:()=>{u.current.insideReactTree=!0}}),[$,h,u]);return R.useMemo(()=>c?{reference:Y,floating:J}:{},[c,Y,J])}function D8(e){const{open:r=!1,onOpenChange:l,elements:a}=e,s=vh(),u=R.useRef({}),[c]=R.useState(()=>d8()),f=wh()!=null,[p,h]=R.useState(a.reference),b=ln((v,w,k)=>{u.current.openEvent=v?w:void 0,c.emit("openchange",{open:v,event:w,reason:k,nested:f}),l?.(v,w,k)}),g=R.useMemo(()=>({setPositionReference:h}),[]),x=R.useMemo(()=>({reference:p||a.reference||null,floating:a.floating||null,domReference:a.reference}),[p,a.reference,a.floating]);return R.useMemo(()=>({dataRef:u,open:r,onOpenChange:b,elements:x,events:c,floatingId:s,refs:g}),[r,b,x,c,s,g])}function O8(e){e===void 0&&(e={});const{nodeId:r}=e,l=D8({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||l,s=a.elements,[u,c]=R.useState(null),[f,p]=R.useState(null),b=s?.domReference||u,g=R.useRef(null),x=hu();an(()=>{b&&(g.current=b)},[b]);const v=r8({...e,elements:{...s,...f&&{reference:f}}}),w=R.useCallback(N=>{const B=st(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),getClientRects:()=>N.getClientRects(),contextElement:N}:N;p(B),v.refs.setReference(B)},[v.refs]),k=R.useCallback(N=>{(st(N)||N===null)&&(g.current=N,c(N)),(st(v.refs.reference.current)||v.refs.reference.current===null||N!==null&&!st(N))&&v.refs.setReference(N)},[v.refs]),T=R.useMemo(()=>({...v.refs,setReference:k,setPositionReference:w,domReference:g}),[v.refs,k,w]),E=R.useMemo(()=>({...v.elements,domReference:b}),[v.elements,b]),C=R.useMemo(()=>({...v,...a,refs:T,elements:E,nodeId:r}),[v,T,E,r,a]);return an(()=>{a.dataRef.current.floatingContext=C;const N=x?.nodesRef.current.find(B=>B.id===r);N&&(N.context=C)}),R.useMemo(()=>({...v,context:C,refs:T,elements:E}),[v,T,E,C])}function hd(){return m5()&&y0()}function M8(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,events:s,dataRef:u,elements:c}=e,{enabled:f=!0,visibleOnly:p=!0}=r,h=R.useRef(!1),b=R.useRef(-1),g=R.useRef(!0);R.useEffect(()=>{if(!f)return;const v=on(c.domReference);function w(){!l&&Ct(c.domReference)&&c.domReference===Kr(Ut(c.domReference))&&(h.current=!0)}function k(){g.current=!0}function T(){g.current=!1}return v.addEventListener("blur",w),hd()&&(v.addEventListener("keydown",k,!0),v.addEventListener("pointerdown",T,!0)),()=>{v.removeEventListener("blur",w),hd()&&(v.removeEventListener("keydown",k,!0),v.removeEventListener("pointerdown",T,!0))}},[c.domReference,l,f]),R.useEffect(()=>{if(!f)return;function v(w){let{reason:k}=w;(k==="reference-press"||k==="escape-key")&&(h.current=!0)}return s.on("openchange",v),()=>{s.off("openchange",v)}},[s,f]),R.useEffect(()=>()=>{Yt(b)},[]);const x=R.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(v){if(h.current)return;const w=gr(v.nativeEvent);if(p&&st(w)){if(hd()&&!v.relatedTarget){if(!g.current&&!yh(w))return}else if(!y5(w))return}a(!0,v.nativeEvent,"focus")},onBlur(v){h.current=!1;const w=v.relatedTarget,k=v.nativeEvent,T=st(w)&&w.hasAttribute(Rl("focus-guard"))&&w.getAttribute("data-type")==="outside";b.current=window.setTimeout(()=>{var E;const C=Kr(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)||T||a(!1,k,"focus")})}}),[u,c.domReference,a,p]);return R.useMemo(()=>f?{reference:x}:{},[f,x])}function pd(e,r,l){const a=new Map,s=l==="item";let u=e;if(s&&e){const{[Gy]:c,[Yy]:f,...p}=e;u=p}return{...l==="floating"&&{tabIndex:-1,[o8]:""},...u,...r.map(c=>{const f=c?c[l]:null;return typeof f=="function"?e?f(e):null:f}).concat(e).reduce((c,f)=>(f&&Object.entries(f).forEach(p=>{let[h,b]=p;if(!(s&&[Gy,Yy].includes(h)))if(h.indexOf("on")===0){if(a.has(h)||a.set(h,[]),typeof b=="function"){var g;(g=a.get(h))==null||g.push(b),c[h]=function(){for(var x,v=arguments.length,w=new Array(v),k=0;k<v;k++)w[k]=arguments[k];return(x=a.get(h))==null?void 0:x.map(T=>T(...w)).find(T=>T!==void 0)}}}else c[h]=b}),c),{})}}function z8(e){e===void 0&&(e=[]);const r=e.map(f=>f?.reference),l=e.map(f=>f?.floating),a=e.map(f=>f?.item),s=R.useCallback(f=>pd(f,e,"reference"),r),u=R.useCallback(f=>pd(f,e,"floating"),l),c=R.useCallback(f=>pd(f,e,"item"),a);return R.useMemo(()=>({getReferenceProps:s,getFloatingProps:u,getItemProps:c}),[s,u,c])}const B8=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function F8(e,r){var l,a;r===void 0&&(r={});const{open:s,elements:u,floatingId:c}=e,{enabled:f=!0,role:p="dialog"}=r,h=vh(),b=((l=u.domReference)==null?void 0:l.id)||h,g=R.useMemo(()=>{var C;return((C=Hd(u.floating))==null?void 0:C.id)||c},[u.floating,c]),x=(a=B8.get(p))!=null?a:p,w=wh()!=null,k=R.useMemo(()=>x==="tooltip"||p==="label"?{["aria-"+(p==="label"?"labelledby":"describedby")]:s?g:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":x==="alertdialog"?"dialog":x,"aria-controls":s?g:void 0,...x==="listbox"&&{role:"combobox"},...x==="menu"&&{id:b},...x==="menu"&&w&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[x,g,w,s,b,p]),T=R.useMemo(()=>{const C={id:g,...x&&{role:x}};return x==="tooltip"||p==="label"?C:{...C,...x==="menu"&&{"aria-labelledby":b}}},[x,g,b,p]),E=R.useCallback(C=>{let{active:N,selected:B}=C;const q={role:"option",...N&&{id:g+"-fui-option"}};switch(p){case"select":case"combobox":return{...q,"aria-selected":B}}return{}},[g,p]);return R.useMemo(()=>f?{reference:k,floating:T,item:E}:{},[f,k,T,E])}function M0(e,r,l){return l===void 0&&(l=!0),e.filter(s=>{var u;return s.parentId===r&&(!l||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...M0(e,s.id,l)])}function ox(e,r){const[l,a]=e;let s=!1;const u=r.length;for(let c=0,f=u-1;c<u;f=c++){const[p,h]=r[c]||[0,0],[b,g]=r[f]||[0,0];h>=a!=g>=a&&l<=(b-p)*(a-h)/(g-h)+p&&(s=!s)}return s}function I8(e,r){return e[0]>=r.x&&e[0]<=r.x+r.width&&e[1]>=r.y&&e[1]<=r.y+r.height}function U8(e){e===void 0&&(e={});const{buffer:r=.5,blockPointerEvents:l=!1,requireIntent:a=!0}=e,s={current:-1};let u=!1,c=null,f=null,p=typeof performance<"u"?performance.now():0;function h(g,x){const v=performance.now(),w=v-p;if(c===null||f===null||w===0)return c=g,f=x,p=v,null;const k=g-c,T=x-f,C=Math.sqrt(k*k+T*T)/w;return c=g,f=x,p=v,C}const b=g=>{let{x,y:v,placement:w,elements:k,onClose:T,nodeId:E,tree:C}=g;return function(B){function q(){Yt(s),T()}if(Yt(s),!k.domReference||!k.floating||w==null||x==null||v==null)return;const{clientX:L,clientY:I}=B,$=[L,I],G=g8(B),M=B.type==="mouseleave",V=fd(k.floating,G),Y=fd(k.domReference,G),J=k.domReference.getBoundingClientRect(),U=k.floating.getBoundingClientRect(),X=w.split("-")[0],F=x>U.right-U.width/2,O=v>U.bottom-U.height/2,z=I8($,J),K=U.width>J.width,_=U.height>J.height,D=(K?J:U).left,H=(K?J:U).right,A=(_?J:U).top,le=(_?J:U).bottom;if(V&&(u=!0,!M))return;if(Y&&(u=!1),Y&&!M){u=!0;return}if(M&&st(B.relatedTarget)&&fd(k.floating,B.relatedTarget)||C&&M0(C.nodesRef.current,E).length)return;if(X==="top"&&v>=J.bottom-1||X==="bottom"&&v<=J.top+1||X==="left"&&x>=J.right-1||X==="right"&&x<=J.left+1)return q();let ce=[];switch(X){case"top":ce=[[D,J.top+1],[D,U.bottom-1],[H,U.bottom-1],[H,J.top+1]];break;case"bottom":ce=[[D,U.top+1],[D,J.bottom-1],[H,J.bottom-1],[H,U.top+1]];break;case"left":ce=[[U.right-1,le],[U.right-1,A],[J.left+1,A],[J.left+1,le]];break;case"right":ce=[[J.right-1,le],[J.right-1,A],[U.left+1,A],[U.left+1,le]];break}function de(fe){let[ge,he]=fe;switch(X){case"top":{const ve=[K?ge+r/2:F?ge+r*4:ge-r*4,he+r+1],xe=[K?ge-r/2:F?ge+r*4:ge-r*4,he+r+1],ye=[[U.left,F||K?U.bottom-r:U.top],[U.right,F?K?U.bottom-r:U.top:U.bottom-r]];return[ve,xe,...ye]}case"bottom":{const ve=[K?ge+r/2:F?ge+r*4:ge-r*4,he-r],xe=[K?ge-r/2:F?ge+r*4:ge-r*4,he-r],ye=[[U.left,F||K?U.top+r:U.bottom],[U.right,F?K?U.top+r:U.bottom:U.top+r]];return[ve,xe,...ye]}case"left":{const ve=[ge+r+1,_?he+r/2:O?he+r*4:he-r*4],xe=[ge+r+1,_?he-r/2:O?he+r*4:he-r*4];return[...[[O||_?U.right-r:U.left,U.top],[O?_?U.right-r:U.left:U.right-r,U.bottom]],ve,xe]}case"right":{const ve=[ge-r,_?he+r/2:O?he+r*4:he-r*4],xe=[ge-r,_?he-r/2:O?he+r*4:he-r*4],ye=[[O||_?U.left+r:U.right,U.top],[O?_?U.left+r:U.right:U.left+r,U.bottom]];return[ve,xe,...ye]}}}if(!ox([L,I],ce)){if(u&&!z)return q();if(!M&&a){const fe=h(B.clientX,B.clientY);if(fe!==null&&fe<.1)return q()}ox([L,I],de([x,v]))?!u&&a&&(s.current=window.setTimeout(q,40)):q()}}};return b.__options={blockPointerEvents:l},b}function sx({label:e,value:r,resolvedValue:l,onChange:a,options:s,disabledValues:u=[]}){const[c,f]=R.useState(!1),{refs:p,floatingStyles:h,context:b}=O8({open:c,onOpenChange:f,middleware:[l8(4),a8(),i8({padding:8})],whileElementsMounted:K5}),g=m8(b,{handleClose:U8()}),x=R8(b),v=M8(b),w=L8(b),k=F8(b),{getReferenceProps:T,getFloatingProps:E}=z8([g,x,v,w,k]),C=r==="working"&&u.includes("staged")||r==="staged"&&u.includes("working"),N=()=>{const G=s.specialOptions.find(Y=>Y.value===r);if(G)return G.label;const M=s.branches.find(Y=>Y.name===r);if(M)return`${M.name}${M.current?" (current)":""}`;const V=s.commits.find(Y=>Y.shortHash===r);return V?`${V.shortHash} - ${V.message}`:r||"Select..."},B=G=>{a(G),f(!1)},q=G=>u.includes(G),L=(G,M)=>["w-full text-left px-3 py-2 text-xs focus:outline-none transition-colors",G?"hover:bg-diff-selected-bg focus:bg-diff-selected-bg":"hover:bg-github-bg-tertiary focus:bg-github-bg-tertiary",G?"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(" "),I=(G,M)=>G===r||M===r?!0:l?G===l||M===l:!1,$=()=>{let G=0;const M=s.specialOptions.findIndex(V=>V.value===r);if(M!==-1)return M;if(G+=s.specialOptions.length,!C){const V=s.commits.findIndex(J=>J.shortHash===r);if(V!==-1)return G+V;G+=s.commits.length;const Y=s.branches.findIndex(J=>J.name===r);if(Y!==-1)return G+Y}return 0};return y.jsxs(y.Fragment,{children:[y.jsxs("button",{ref:p.setReference,type:"button",className:"flex items-center gap-1.5 cursor-pointer group","aria-haspopup":"listbox","aria-expanded":c,...T(),children:[y.jsxs("span",{className:"text-xs text-github-text-secondary",children:[e,":"]}),y.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:[y.jsx("code",{className:"text-xs text-github-text-primary max-w-[150px] truncate",children:N()}),y.jsx(Zs,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]})]}),c&&y.jsx(S8,{children:y.jsx(A8,{context:b,modal:!1,initialFocus:$(),children:y.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&&y.jsxs("div",{className:"border-b border-github-border",children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Special"}),s.specialOptions.map(G=>y.jsx("button",{onClick:()=>B(G.value),disabled:q(G.value),className:L(G.value===r,q(G.value)),children:G.label},G.value))]}),!C&&s.commits.length>0&&y.jsxs("div",{className:"border-b border-github-border",children:[y.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(G=>y.jsx("button",{onClick:()=>B(G.shortHash),disabled:q(G.shortHash),className:L(I(G.shortHash,G.hash),q(G.shortHash)),children:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx("code",{className:"text-xs text-github-text-primary font-mono whitespace-nowrap",children:G.shortHash}),y.jsx("span",{className:"text-xs text-github-text-secondary flex-1 break-words",children:G.message})]})},G.hash))]}),!C&&s.branches.length>0&&y.jsxs("div",{children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Branches"}),s.branches.map(G=>y.jsx("button",{onClick:()=>B(G.name),disabled:q(G.name),className:L(G.name===r,q(G.name)),children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-github-text-primary",children:G.name}),G.current&&y.jsx("span",{className:"text-xs text-github-text-muted",children:"(current)"})]})},G.name))]})]})})})]})}const H8=[{id:"vscode",label:"VS Code",protocol:"vscode",cliCommand:"code",cliArgs:[],aliases:["vscode","code"]},{id:"cursor",label:"Cursor",protocol:"cursor",cliCommand:"cursor",cliArgs:[],aliases:["cursor"]},{id:"none",label:"Hide “Open in editor” button",protocol:null,cliCommand:null,cliArgs:[],aliases:["none","disabled","off"]}],z0="vscode",q8={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark",editor:z0},P8=[{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 V8({isOpen:e,onClose:r,settings:l,onSettingsChange:a}){const[s,u]=R.useState(l),{enableScope:c,disableScope:f}=Xs();R.useEffect(()=>{u(l)},[l]),R.useEffect(()=>{a(s)},[s,a]),R.useEffect(()=>(e?f("navigation"):c("navigation"),()=>{c("navigation")}),[e,c,f]);const p=()=>s.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s.theme,h=()=>p()==="light"?xy:vy,b=x=>{const v={...s,theme:x},k=(x==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":x)==="light"?xy:vy;if(!k.some(E=>E.id===s.syntaxTheme)&&k.length>0){const E=k[0];E&&(v.syntaxTheme=E.id)}u(v)},g=()=>{u(q8)};return e?y.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:y.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[y.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[y.jsx(Lx,{size:20}),"Appearance Settings"]}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:y.jsx(Gd,{size:18})})]}),y.jsxs("div",{className:"p-4 space-y-6",children:[y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.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"}),y.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[s.fontSize,"px"]})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),y.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:P8.map(x=>y.jsx("option",{value:x.value,children:x.name},x.value))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),y.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(x=>y.jsx("button",{onClick:()=>b(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))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),y.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=>y.jsx("option",{value:x.id,children:x.label},x.id))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Open In Editor"}),y.jsx("select",{value:s.editor,onChange:x=>u({...s,editor:x.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:H8.map(x=>y.jsx("option",{value:x.id,children:x.label},x.id))})]})]}),y.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[y.jsx("button",{onClick:g,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),y.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 ux={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},$8=({isActive:e})=>e?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"animate-sparkle-rise",style:{...ux,left:"-12px",animationDelay:"0s"},children:"✨"}),y.jsx("div",{className:"animate-sparkle-rise",style:{...ux,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,cx={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark",editor:z0},fx="reviewit-appearance-settings";function G8(){const[e,r]=R.useState(()=>{try{const s=localStorage.getItem(fx);if(s)return{...cx,...JSON.parse(s)}}catch(s){console.warn("Failed to load appearance settings from localStorage:",s)}return cx}),l=R.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-editor-btn-bg","rgba(248, 250, 252, 0.1)"),u.style.setProperty("--color-editor-btn-border","rgba(31, 41, 55, 0.35)"),u.style.setProperty("--color-editor-btn-text","#1f2937"),u.style.setProperty("--color-editor-btn-hover-bg","rgba(248, 250, 252, 0.2)"),u.style.setProperty("--color-editor-btn-hover-border","rgba(31, 41, 55, 0.5)")):(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"),u.style.setProperty("--color-editor-btn-bg","rgba(248, 250, 252, 0.1)"),u.style.setProperty("--color-editor-btn-border","rgba(248, 250, 252, 0.3)"),u.style.setProperty("--color-editor-btn-text","#f0f6fc"),u.style.setProperty("--color-editor-btn-hover-bg","rgba(248, 250, 252, 0.2)"),u.style.setProperty("--color-editor-btn-hover-border","rgba(248, 250, 252, 0.45)")),document.body.style.backgroundColor="var(--color-github-bg-primary)",document.body.style.color="var(--color-github-text-primary)"},[]);return R.useEffect(()=>{const s=document.documentElement;if(s.style.setProperty("--app-font-size",`${e.fontSize}px`),s.style.setProperty("--app-font-family",e.fontFamily),e.theme==="auto"){const u=window.matchMedia("(prefers-color-scheme: dark)");l(u.matches?"dark":"light");const c=f=>{l(f.matches?"dark":"light")};return u.addEventListener("change",c),()=>u.removeEventListener("change",c)}else{l(e.theme);return}},[e,l]),{settings:e,updateSettings:s=>{r(s);try{localStorage.setItem(fx,JSON.stringify(s))}catch(u){console.warn("Failed to save appearance settings to localStorage:",u)}}}}function B0(e,r,l){const a=typeof r=="number"?`L${r}`:Array.isArray(r)?`L${r[0]}-L${r[1]}`:"";return`${e||"<unknown file>"}:${a}
|
|
58
|
-
${l}`}function Y8(e){return e.length===0?"":e.map(l=>B0(l.file,l.line,l.body)).join(`
|
|
59
|
-
=====
|
|
60
|
-
`)}const ks="difit-storage-v1";class X8{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,f;l==="."||l==="working"?(c=a||r,f="WORKING"):l==="staged"?(c=a||r,f="STAGED"):(c=this.normalizeCommitish(r,a,s),f=this.normalizeCommitish(l,a,s));const p=this.generateStorageKey(c,f);return u?`${ks}/${u}/${p}`:`${ks}/${p}`}getDiffContextData(r,l,a,s,u){try{const c=this.getStorageKey(r,l,a,s,u),f=localStorage.getItem(c);if(!f)return null;const p=JSON.parse(f);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 f=this.getStorageKey(r,l,s,u,c),p={...a,baseCommitish:r,targetCommitish:l,lastModifiedAt:new Date().toISOString()};localStorage.setItem(f,JSON.stringify(p))}catch(f){f instanceof DOMException&&f.name==="QuotaExceededError"?console.error("localStorage quota exceeded"):console.error("Error saving diff context data:",f)}}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(ks))try{const f=localStorage.getItem(c);if(!f)continue;const p=JSON.parse(f);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(ks))continue;const s=localStorage.getItem(a);s&&(r+=(a.length+s.length)*2)}return r}}const Ia=new X8;async function dx(e){try{const l=new TextEncoder().encode(e),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"),Z8(e)}}function Z8(e){let r=0;for(let l=0;l<e.length;l++){const a=e.charCodeAt(l);r=(r<<5)-r+a,r=r&r}return Math.abs(r).toString(16)}function hx(e){const r=e.chunks.map(l=>{const a=l.lines.filter(s=>s.type!=="hunk"&&s.type!=="header").map(s=>`${s.type}:${s.content}`).join(`
|
|
61
|
-
`);return`${l.header}
|
|
62
|
-
${a}`}).join(`
|
|
63
|
-
|
|
64
|
-
`);return`${e.path}
|
|
65
|
-
${e.status}
|
|
66
|
-
${r}`}function K8(e){const r=e.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 Q8(e,r,l,a,s){const[u,c]=R.useState([]);R.useEffect(()=>{if(!e||!r)return;const w=Ia.getComments(e,r,l,a,s);c(w)},[e,r,l,a,s]);const f=R.useCallback(w=>{!e||!r||(Ia.saveComments(e,r,w,l,a,s),c(w))},[e,r,l,a,s]),p=R.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:K8(w.filePath)}},T=[...u,k];return f(T),k},[u,f]),h=R.useCallback(w=>{const k=u.filter(T=>T.id!==w);f(k)},[u,f]),b=R.useCallback((w,k)=>{const T=u.map(E=>E.id===w?{...E,body:k,updatedAt:new Date().toISOString()}:E);f(T)},[u,f]),g=R.useCallback(()=>{f([])},[f]),x=R.useCallback(w=>{const k=u.find(E=>E.id===w);if(!k)return"";const T=typeof k.position.line=="number"?k.position.line:[k.position.line.start,k.position.line.end];return B0(k.filePath,T,k.body)},[u]),v=R.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 Y8(w)},[u]);return{comments:u,addComment:p,removeComment:h,updateComment:b,clearAllComments:g,generatePrompt:x,generateAllCommentsPrompt:v}}const J8=20;async function px(e,r){const l=encodeURIComponent(e),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(`
|
|
67
|
-
`);return u.length>0&&u[u.length-1]===""&&u.pop(),{lines:u,totalLines:u.length}}async function W8(e,r,l,a){const s=encodeURIComponent(e),u=new URLSearchParams;r&&u.set("oldRef",r),l&&u.set("newRef",l),a&&a!==e&&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 eR({baseCommitish:e,targetCommitish:r}){const[l,a]=R.useState({}),[s,u]=R.useState(!1),[c,f]=R.useState(null),[p,h]=R.useState(0),b=R.useRef(new Map),g=R.useRef({});g.current=l;const x=R.useCallback(async L=>{const I=b.current.get(L.path);if(I)return I;const $=(async()=>{const G=g.current[L.path];if(G?.oldContent&&G?.newContent)return G;const M={...G,expandedRanges:G?.expandedRanges||[]};if(L.status!=="added"&&e){const V=L.oldPath||L.path;try{const{lines:Y,totalLines:J}=await px(V,e);M.oldContent=Y,M.oldTotalLines=J}catch(Y){console.error("Failed to fetch old file content:",Y),M.oldContent=[],M.oldTotalLines=0}}if(L.status!=="deleted"&&r)try{const{lines:V,totalLines:Y}=await px(L.path,r);M.newContent=V,M.newTotalLines=Y}catch(V){console.error("Failed to fetch new file content:",V),M.newContent=[],M.newTotalLines=0}return M})();b.current.set(L.path,$);try{return await $}finally{b.current.delete(L.path)}},[e,r]),v=R.useCallback(L=>{f(L),h(I=>I+1)},[]),w=R.useCallback(async(L,I,$,G=J8)=>{u(!0);try{const M=await x(L);a(V=>{const Y=V[L.path],J=Y?.expandedRanges||M.expandedRanges||[],U=J.findIndex(F=>F.chunkIndex===I&&F.direction===$),X=[...J];if(U>=0&&X[U]){const F=X[U];X[U]={chunkIndex:F.chunkIndex,direction:F.direction,count:F.count+G}}else X.push({chunkIndex:I,direction:$,count:G});return{...V,[L.path]:{oldContent:Y?.oldContent??M.oldContent,newContent:Y?.newContent??M.newContent,oldTotalLines:Y?.oldTotalLines??M.oldTotalLines,newTotalLines:Y?.newTotalLines??M.newTotalLines,expandedRanges:X}}}),v(L.path)}finally{u(!1)}},[x,v]),k=R.useCallback(async(L,I,$)=>{u(!0);try{const G=await x(L);a(M=>{const V=M[L.path],J=[...V?.expandedRanges||G.expandedRanges||[]],U=J.findIndex(D=>D.chunkIndex===I&&D.direction==="up"),X=J.findIndex(D=>D.chunkIndex===I-1&&D.direction==="down");let F=0,O=0;U>=0&&J[U]&&(F=J[U].count),X>=0&&J[X]&&(O=J[X].count);const z=F+O+$,K=J.filter(D=>!(D.chunkIndex===I-1&&D.direction==="down")),_=K.findIndex(D=>D.chunkIndex===I&&D.direction==="up");return _>=0&&K[_]?K[_]={chunkIndex:I,direction:"up",count:z}:K.push({chunkIndex:I,direction:"up",count:z}),{...M,[L.path]:{oldContent:V?.oldContent??G.oldContent,newContent:V?.newContent??G.newContent,oldTotalLines:V?.oldTotalLines??G.oldTotalLines,newTotalLines:V?.newTotalLines??G.newTotalLines,expandedRanges:K}}}),v(L.path)}finally{u(!1)}},[x,v]),T=R.useCallback(async L=>{const I=g.current[L.path];if(I?.oldTotalLines!==void 0||I?.newTotalLines!==void 0)return;const $=L.status!=="added"?e:void 0,G=L.status!=="deleted"?r:void 0;if(!(!$&&!G))try{const{oldLineCount:M,newLineCount:V}=await W8(L.path,$,G,L.oldPath);a(Y=>{const J=Y[L.path];return J?.oldTotalLines!==void 0||J?.newTotalLines!==void 0?Y:{...Y,[L.path]:{...J,expandedRanges:J?.expandedRanges||[],oldTotalLines:M,newTotalLines:V}}}),v(L.path)}catch(M){console.error("Failed to prefetch line count:",M)}},[e,r,v]),E=R.useCallback((L,I,$)=>{const G=l[L];return G&&G.expandedRanges.find(V=>V.chunkIndex===I&&V.direction===$)?.count||0},[l]),C=R.useCallback((L,I,$)=>{if(L.status==="added"||L.status==="deleted")return 0;const G=L.chunks[$-1];let M;if(!G)M=I.oldStart-1;else{const J=G.oldStart+G.oldLines;M=I.oldStart-J}const V=E(L.path,$,"up"),Y=$>0?E(L.path,$-1,"down"):0;return Math.max(0,M-V-Y)},[E]),N=R.useCallback((L,I,$)=>{if(L.status==="added"||L.status==="deleted")return 0;const G=l[L.path],M=G?.oldTotalLines||G?.newTotalLines;if(M===void 0)return L.chunks[$+1]?0:-1;if(L.chunks[$+1])return 0;const Y=I.oldStart+I.oldLines-1,J=M-Y,U=E(L.path,$,"down");return Math.max(0,J-U)},[l,E]),B=R.useCallback((L,I,$)=>{const G=l[L.path];if(!G)return I;const M=E(L.path,$,"up"),V=E(L.path,$,"down");if(M===0&&V===0)return I;const Y=G.oldContent||[],J=G.newContent||[],U=[];if(M>0){const O=L.chunks[$-1];let z;O?z=O.oldStart+O.oldLines-1:z=Math.max(0,I.oldStart-1-M);const K=I.oldStart-1,_=I.newStart-1,D=Math.min(M,K-z),H=K-D,A=_-D;for(let le=0;le<D;le++){const ce=H+le+1,de=A+le+1,fe=Y[ce-1]??J[de-1]??"";U.push({type:"normal",content:fe,oldLineNumber:ce,newLineNumber:de,isExpanded:!0})}}if(U.push(...I.lines),V>0){const O=I.oldStart+I.oldLines-1,z=I.newStart+I.newLines-1,K=L.chunks[$+1],_=K?K.oldStart-1:G.oldTotalLines||O,D=Math.min(V,_-O);for(let H=0;H<D;H++){const A=O+H+1,le=z+H+1,ce=Y[A-1]??J[le-1]??"";U.push({type:"normal",content:ce,oldLineNumber:A,newLineNumber:le,isExpanded:!0})}}const X=U[0],F=U[U.length-1];return{...I,lines:U,oldStart:X?.oldLineNumber??I.oldStart,newStart:X?.newLineNumber??I.newStart,oldLines:(F?.oldLineNumber??I.oldStart+I.oldLines-1)-(X?.oldLineNumber??I.oldStart)+1,newLines:(F?.newLineNumber??I.newStart+I.newLines-1)-(X?.newLineNumber??I.newStart)+1}},[l,E]),q=R.useCallback(L=>{const I=[];for(let $=0;$<L.chunks.length;$++){const G=L.chunks[$];if(!G)continue;const M=B(L,G,$),V=C(L,G,$),Y=N(L,G,$),J=I[I.length-1];if(J&&V===0){J.lines=[...J.lines,...M.lines],J.originalIndices.push($),J.hiddenLinesAfter=Y;const U=J.lines[J.lines.length-1];J.oldLines=(U?.oldLineNumber??J.oldStart+J.oldLines-1)-J.oldStart+1,J.newLines=(U?.newLineNumber??J.newStart+J.newLines-1)-J.newStart+1}else I.push({...M,originalIndices:[$],hiddenLinesBefore:V,hiddenLinesAfter:Y})}return I},[B,C,N]);return{expandedState:l,isLoading:s,lastUpdatedFilePath:c,lastUpdatedAt:p,expandLines:w,expandAllBetweenChunks:k,prefetchFileContent:T,getMergedChunks:q,getHiddenLinesBefore:C,getHiddenLinesAfter:N}}var F0=(e=>(e.DEFAULT="default",e.WORKING="working",e.STAGED="staged",e.DOT="dot",e.SPECIFIC="specific",e))(F0||{});function tR(e){const r=R.useRef(null),l=R.useRef(null),a=R.useRef(0),s=5,u=3e3,[c,f]=R.useState({isWatchEnabled:!1,diffMode:F0.DEFAULT,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null,connectionStatus:"disconnected"}),[p,h]=R.useState(null),b=R.useCallback(()=>{if(!r.current)try{const v=new EventSource("/api/watch");r.current=v,v.onopen=()=>{console.log("Connected to file watch service"),f(w=>({...w,connectionStatus:"connected"})),a.current=0,h(null)},v.onmessage=w=>{try{const k=JSON.parse(w.data);switch(k.type){case"connected":f(T=>({...T,isWatchEnabled:!0,diffMode:k.diffMode,connectionStatus:"connected"}));break;case"reload":console.log("File changes detected, showing reload button:",k.changeType),f(T=>({...T,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)}},v.onerror=()=>{console.log("File watch connection lost"),f(w=>({...w,connectionStatus:"disconnected"})),r.current&&(r.current.close(),r.current=null),a.current<s?(f(w=>({...w,connectionStatus:"reconnecting"})),a.current+=1,l.current=setTimeout(()=>{console.log(`Attempting to reconnect to file watch service (${a.current}/${s})...`),b()},u)):(console.error("Max reconnection attempts reached"),h("Lost connection to file watch service"))}}catch(v){console.error("Failed to connect to file watch service:",v),h("Failed to connect to file watch service")}},[s,u]),g=R.useCallback(async()=>{if(!c.isReloading){f(v=>({...v,isReloading:!0}));try{e&&await e(),f(v=>({...v,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null}))}catch(v){console.error("Reload failed:",v),h("Failed to reload diff data"),f(w=>({...w,isReloading:!1}))}}},[e,c.isReloading]),x=()=>{r.current&&(r.current.close(),r.current=null),l.current&&(clearTimeout(l.current),l.current=null)};return R.useEffect(()=>(b(),x),[b]),R.useEffect(()=>x,[]),{shouldReload:c.shouldReload,isConnected:c.connectionStatus==="connected",error:p,reload:g,watchState:c}}const qd={SCROLL_CONTAINER:"main.overflow-y-auto"};function Zr(e,r){const l=`file-${e.fileIndex}-chunk-${e.chunkIndex}-line-${e.lineIndex}`;return r==="split"?`${l}-${e.side}`:l}function I0(e,r){return`${e}:${r}`}function nR(e,r){const l=r[e.fileIndex]?.chunks[e.chunkIndex]?.lines[e.lineIndex];return l&&(l.type==="add"||l.type==="delete"||l.type==="normal")?l.type:null}function vn(e,r){const l=nR(e,r);return l?l==="normal"?!0:l==="delete"?e.side==="left":l==="add"?e.side==="right":!1:!1}function U0(e,r){return vn(e,r)?e:{...e,side:e.side==="left"?"right":"left"}}const mx={VIEWPORT_OFFSET_RATIO:1/3};function rR(e,r,l,a){return{line:s=>{const u=e[s.fileIndex];return!u||a?.has(u.path)?!1:l==="unified"||vn(s,e)},chunk:s=>{const u=e[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 f=u.chunks[s.chunkIndex]?.lines[s.lineIndex-1];return!f||f.type==="normal"},comment:s=>{const u=e[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 f=c.newLineNumber;if(!f)return!1;const p=I0(u.path,f);return r.has(p)},file:s=>s.chunkIndex===0&&s.lineIndex===0}}function lR(){return e=>{const r=document.getElementById(e);if(!r)return;const l=document.querySelector(qd.SCROLL_CONTAINER);if(!l)throw new Error(`Scrollable container (${qd.SCROLL_CONTAINER}) not found`);const a=r.getBoundingClientRect(),s=l.getBoundingClientRect(),u=l.clientHeight,c=l.scrollTop,f=Math.max(s.top,0),p=Math.min(s.bottom,window.innerHeight);if(!(a.top>=f&&a.bottom<=p)){const k=iR(r,l)-u*mx.VIEWPORT_OFFSET_RATIO;l.scrollTop=Math.max(0,k);return}const b=a.bottom>Math.min(s.bottom,window.innerHeight),x=r.offsetTop-l.offsetTop-u*mx.VIEWPORT_OFFSET_RATIO,v=x>c;b&&v&&(l.scrollTop=Math.max(0,x))}}function iR(e,r){let l=e,a=0;for(;l&&l!==r&&l.offsetParent;)a+=l.offsetTop,l=l.offsetParent;return l&&l!==r&&(a+=l.offsetTop),a}function aR(e){return e||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function oR(e,r,l){return l&&e.fileIndex===r.fileIndex&&e.chunkIndex===r.chunkIndex&&e.lineIndex===r.lineIndex}function sR(e,r,l){let{fileIndex:a,chunkIndex:s,lineIndex:u}=e;const c=l.length;let f=0;if(r==="next")for(u++;f<c;){if(l[a]?.chunks[s]?.lines[u])return{...e,fileIndex:a,chunkIndex:s,lineIndex:u};s++,u=0,l[a]?.chunks[s]||(a++,s=0,u=0,a>=c&&(a=0,f++))}else for(u--;f<c;){if(u<0)if(s--,s<0){a--,a<0&&(a=c-1,f++);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{...e,fileIndex:a,chunkIndex:s,lineIndex:u};u<0||u--}return null}function uR(e,r,l,a,s){let u=e,c=!1;for(;u;){const f=sR(u,r,a);if(!f||(u=f,oR(u,e,c)))break;if(c=!0,l(u,a)){const p=U0(u,a);return{position:p,scrollTarget:Zr(p,s)}}}return{position:null,scrollTarget:null}}function cR({files:e,comments:r,viewMode:l=$a,reviewedFiles:a,onToggleReviewed:s,onCreateComment:u,onCopyAllComments:c,onDeleteAllComments:f,onShowCommentsList:p,onRefresh:h}){const[b,g]=R.useState(null),[x,v]=R.useState(!1),w=R.useMemo(()=>lR(),[]),k=R.useMemo(()=>{const V=new Map;return r.forEach(Y=>{const J=Array.isArray(Y.line)?Y.line[0]:Y.line,U=I0(Y.file,J);V.has(U)||V.set(U,[]),V.get(U)?.push(Y)}),V},[r]),T=R.useMemo(()=>rR(e,k,l,a),[e,k,l,a]),E=R.useCallback((V,Y)=>{if(e.length===0)return{position:null,scrollTarget:null};const J=aR(b);return uR(J,V,Y,e,l)},[b,e,l]),C=R.useCallback(V=>Y=>{const J=E(Y,V);J.position&&(g(J.position),J.scrollTarget&&w(J.scrollTarget))},[E,w]),N=R.useMemo(()=>C(T.line),[C,T.line]),B=R.useMemo(()=>C(T.chunk),[C,T.chunk]),q=R.useMemo(()=>C(T.file),[C,T.file]),L=R.useMemo(()=>C(T.comment),[C,T.comment]),I=R.useCallback(V=>{if(!b||l!=="split")return;let Y={...b,side:V};const J=e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex];if(J){if(V==="left"&&J.type==="add"&&b.lineIndex>0){if(e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex-1]?.type==="delete"){Y={...Y,lineIndex:b.lineIndex-1},g(Y),w(Zr(Y,l));return}}else if(V==="right"&&J.type==="delete"&&e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex+1]?.type==="add"){Y={...Y,lineIndex:b.lineIndex+1},g(Y),w(Zr(Y,l));return}}if(!vn(Y,e)){const U=e[b.fileIndex];if(!U)return;const X=U.chunks[b.chunkIndex];if(X){for(let F=b.lineIndex+1;F<X.lines.length;F++){const O={...Y,lineIndex:F};if(vn(O,e)){Y=O;break}}if(!vn(Y,e))for(let F=b.lineIndex-1;F>=0;F--){const O={...Y,lineIndex:F};if(vn(O,e)){Y=O;break}}}if(!vn(Y,e)){for(let F=b.chunkIndex+1;F<U.chunks.length;F++){const O=U.chunks[F];if(O){for(let z=0;z<O.lines.length;z++){const K={...Y,chunkIndex:F,lineIndex:z};if(vn(K,e)){Y=K;break}}if(vn(Y,e))break}}if(!vn(Y,e))for(let F=b.chunkIndex-1;F>=0;F--){const O=U.chunks[F];if(O){for(let z=O.lines.length-1;z>=0;z--){const K={...Y,chunkIndex:F,lineIndex:z};if(vn(K,e)){Y=K;break}}if(vn(Y,e))break}}}}g(Y),w(Zr(Y,l))},[b,l,w,e]),$=R.useCallback(()=>{const V=document.querySelector(qd.SCROLL_CONTAINER);if(!V)return;const Y=V.getBoundingClientRect(),J=Y.top+Y.height/2;let U=1/0,X=null;e.forEach((F,O)=>{F.chunks.forEach((z,K)=>{z.lines.forEach((_,D)=>{const H=l==="split"?["left","right"]:["right"];for(const A of H){const le={fileIndex:O,chunkIndex:K,lineIndex:D,side:A};if(l==="split"&&!vn(le,e))continue;const ce=Zr(le,l),de=document.getElementById(ce);if(de){const fe=de.getBoundingClientRect(),ge=fe.top+fe.height/2,he=Math.abs(ge-J);fe.top<Y.bottom&&fe.bottom>Y.top&&he<U&&(U=he,X=le)}}})})}),X&&g(X)},[e,l,g]),G=R.useCallback(V=>{if(!V){g(null);return}const Y=U0(V,e);g(Y),w(Zr(Y,l))},[e,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",()=>L("next"),M,[L]),rt("shift+p",()=>L("prev"),M,[L]),rt("]",()=>q("next"),{...M,useKey:!0},[q]),rt("[",()=>q("prev"),{...M,useKey:!0},[q]),rt("{",()=>{e.length>0&&(g({fileIndex:0,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"}),w(Zr({fileIndex:0,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"},l)))},{...M,useKey:!0},[e,l,w]),rt("}",()=>{if(e.length>0){const V=e.length-1,Y=e[V];Y&&Y.chunks.length>0&&(g({fileIndex:V,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"}),w(Zr({fileIndex:V,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"},l)))}},{...M,useKey:!0},[e,l,w]),rt("h, left",()=>I("left"),{...M,enabled:l==="split"},[I,l]),rt("l, right",()=>I("right"),{...M,enabled:l==="split"},[I,l]),rt("v",()=>{if(b){const V=e[b.fileIndex];V&&s(V.path)}},M,[b,e,s]),rt("shift+r",()=>{h&&h()},M,[h]),rt("c",()=>{if(b&&u){const V=e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex];V&&V.type!=="delete"&&u()}},M,[b,e,u]),rt("?",()=>v(!x),{...M,useKey:!0},[x]),rt(".",V=>{V.ctrlKey||V.altKey||V.shiftKey||V.metaKey||($(),V.preventDefault())},{...M,useKey:!0,preventDefault:!1},[$]),rt("shift+c",()=>{c&&c()},{...M,scopes:["navigation","comments-list"]},[c]),rt("shift+d",()=>{f&&f()},{...M,scopes:["navigation","comments-list"]},[f]),rt("shift+l",()=>{p&&p()},M,[p]),{cursor:b,isHelpOpen:x,setIsHelpOpen:v,setCursorPosition:G}}function fR(e,r,l,a,s,u){const[c,f]=R.useState([]),[p,h]=R.useState(new Map);R.useEffect(()=>{if(!e||!r)return;const E=Ia.getViewedFiles(e,r,l,a,u);(async()=>{if(s&&s.length>0){const N=[],B=new Set(E.map(q=>q.filePath));for(const q of s)if((q.isGenerated||q.status==="deleted")&&!B.has(q.path))try{const L=hx(q),I=await dx(L),$={filePath:q.path,viewedAt:new Date().toISOString(),diffContentHash:I};N.push($)}catch(L){console.error("Failed to generate hash for auto-collapsed file:",L)}if(N.length>0){const q=[...E,...N];Ia.saveViewedFiles(e,r,q,l,a,u),f(q);return}}f(E)})()},[e,r,l,a,u]);const b=R.useCallback(E=>{!e||!r||(Ia.saveViewedFiles(e,r,E,l,a,u),f(E))},[e,r,l,a,u]),g=R.useMemo(()=>new Set(c.map(E=>E.filePath)),[c]),x=R.useCallback(E=>c.find(C=>C.filePath===E),[c]),v=R.useCallback(async E=>{const C=p.get(E.path);if(C)return C;const N=hx(E),B=await dx(N);return h(q=>new Map(q).set(E.path,B)),B},[p]),w=R.useCallback(async(E,C)=>{const N=x(E);if(!N)return!1;const B=await v(C);return N.diffContentHash!==B},[x,v]),k=R.useCallback(async(E,C)=>{if(x(E)){const B=c.filter(q=>q.filePath!==E);b(B)}else{const B=await v(C),q={filePath:E,viewedAt:new Date().toISOString(),diffContentHash:B},L=[...c,q];b(L)}},[c,x,v,b]),T=R.useCallback(()=>{b([]),h(new Map)},[b]);return{viewedFiles:g,toggleFileViewed:k,isFileContentChanged:w,getViewedFileRecord:x,clearViewedFiles:T}}const md=new Map;let dR=0;function gd(e){return md.has(e)||md.set(e,`file-${++dR}`),md.get(e)??""}function hR(e,r,l){for(let a=0;a<e.chunks.length;a++){const s=e.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 pR(e,r){const l=r.findIndex(u=>u.path===e.file);if(l===-1)return null;const a=r[l];if(!a)return null;const s=Array.isArray(e.line)?e.line[1]:e.line;return hR(a,l,s)}const mR=[],gR=[],H0="difit.sidebarWidth",q0=200,P0=600,bd=320,bR=()=>{if(typeof window>"u")return bd;const e=window.localStorage.getItem(H0);if(!e)return bd;const r=Number.parseInt(e,10);return Number.isFinite(r)?Math.min(P0,Math.max(q0,r)):bd};function yR(){const[e,r]=R.useState(null),[l,a]=R.useState($a),s=R.useRef(!1),[u,c]=R.useState(!0),[f,p]=R.useState(!0),[h,b]=R.useState(null),[g,x]=R.useState(!1),[v,w]=R.useState(bR),[k,T]=R.useState(!1),[E,C]=R.useState(!0),[N,B]=R.useState(!1),[q,L]=R.useState(!1),[I,$]=R.useState(!1),[G,M]=R.useState(!1),[V,Y]=R.useState(new Set),J=R.useRef(!1),[U,X]=R.useState(null),[F,O]=R.useState(""),[z,K]=R.useState(""),[_,D]=R.useState(""),[H,A]=R.useState(""),le=R.useRef(!1),{settings:ce,updateSettings:de}=G8(),{comments:fe,addComment:ge,removeComment:he,updateComment:ve,clearAllComments:xe,generatePrompt:ye,generateAllCommentsPrompt:Ce}=Q8(e?.baseCommitish,e?.targetCommitish,e?.commit,void 0,e?.repositoryId),Ae=R.useMemo(()=>fe.map(ne=>({id:ne.id,file:ne.filePath,line:typeof ne.position.line=="number"?ne.position.line:[ne.position.line.start,ne.position.line.end],body:ne.body,timestamp:ne.createdAt,codeContent:ne.codeSnapshot?.content,side:ne.position.side})),[fe]),Ge=R.useMemo(()=>{const ne=new Map;return Ae.forEach(be=>{const ke=ne.get(be.file);ke?ke.push(be):ne.set(be.file,[be])}),ne},[Ae]),{viewedFiles:Me,toggleFileViewed:Ue,clearViewedFiles:_t}=fR(e?.baseCommitish,e?.targetCommitish,e?.commit,void 0,e?.files,e?.repositoryId);R.useEffect(()=>{J.current=!1},[e?.repositoryId,e?.commit]),R.useEffect(()=>{J.current||(Y(new Set(Me)),J.current=!0)},[Me]);const ht=R.useCallback(async ne=>{if(!e)return;const be=e.files.find(Ee=>Ee.path===ne);if(!be)return;const ke=Me.has(ne);await Ue(ne,be),Y(Ee=>{const ut=new Set(Ee);return ke?ut.delete(ne):ut.add(ne),ut}),ke||setTimeout(()=>{const Ee=document.getElementById(gd(ne));Ee&&Ee.scrollIntoView({behavior:"smooth",block:"start"})},100)},[e,Ue,Me]),pt=R.useCallback(ne=>{Y(be=>{const ke=new Set(be);return ke.has(ne)?ke.delete(ne):ke.add(ne),ke})},[]),Pt=R.useCallback(ne=>{e&&Y(ne?new Set(e.files.map(be=>be.path)):new Set)},[e]),Vt=R.useCallback(ne=>{s.current=!0,a(ne)},[]),{isLoading:$t,expandLines:at,expandAllBetweenChunks:wr,prefetchFileContent:ae,getMergedChunks:me,lastUpdatedFilePath:Ne,lastUpdatedAt:ze}=eR({baseCommitish:e?.baseCommitish,targetCommitish:e?.targetCommitish}),Ve=R.useRef(me);R.useEffect(()=>{Ve.current=me},[me]);const[jt,un]=R.useState(new Map);R.useEffect(()=>{if(!e){un(new Map);return}const ne=new Map;e.files.forEach(be=>{ne.set(be.path,Ve.current(be))}),un(ne)},[e]),R.useEffect(()=>{if(!e||!Ne)return;const ne=e.files.find(be=>be.path===Ne);ne&&un(be=>{const ke=new Map(be);return ke.set(ne.path,Ve.current(ne)),ke})},[e,Ne,ze]);const Lt=R.useMemo(()=>e?e.files.map(ne=>({...ne,chunks:jt.get(ne.path)||ne.chunks})):[],[e,jt]),[mt,At]=R.useState(null),{shouldReload:Qe,reload:On,watchState:Kt}=tR(async()=>{await Sr()}),{cursor:Zn,isHelpOpen:jl,setIsHelpOpen:rl,setCursorPosition:Kn}=cR({files:Lt,comments:Ae,viewMode:l,reviewedFiles:Me,onToggleReviewed:ht,onCreateComment:()=>{Zn&&At({fileIndex:Zn.fileIndex,chunkIndex:Zn.chunkIndex,lineIndex:Zn.lineIndex})},onCopyAllComments:()=>{fe.length>0&&Ol()},onDeleteAllComments:()=>{fe.length>0&&confirm("Delete all comments?")&&xe()},onShowCommentsList:()=>{M(!0)},onRefresh:()=>{On()}}),Qn=R.useCallback((ne,be,ke,Ee)=>{Kn({fileIndex:ne,chunkIndex:be,lineIndex:ke,side:Ee})},[Kn]),Ll=R.useCallback(()=>{At(null)},[At]),ll=R.useCallback(ne=>ye(ne.id),[ye]),mu=ne=>{ne.preventDefault(),B(!0);const be=ne.clientX,ke=v,Ee=Ml=>{const il=Math.max(q0,Math.min(P0,ke+(Ml.clientX-be)));w(il)},ut=()=>{B(!1),document.removeEventListener("mousemove",Ee),document.removeEventListener("mouseup",ut)};document.addEventListener("mousemove",Ee),document.addEventListener("mouseup",ut)},Sr=R.useCallback(async(ne,be)=>{try{const ke=new URLSearchParams({ignoreWhitespace:String(u)});ne&&ke.set("base",ne),be&&ke.set("target",be);const Ee=await fetch(`/api/diff?${ke}`);if(!Ee.ok)throw new Error("Failed to fetch diff data");const ut=await Ee.json();if(r(ut),ut.baseCommitish&&D(ut.baseCommitish),ut.targetCommitish&&A(ut.targetCommitish),!le.current){const Ml=ut.requestedBaseCommitish??ut.baseCommitish,il=ut.requestedTargetCommitish??ut.targetCommitish;Ml&&O(Ml),il&&K(il)}ut.mode&&!s.current&&a(NS(ut.mode))}catch(ke){b(ke instanceof Error?ke.message:"Unknown error")}finally{p(!1)}},[u]);R.useEffect(()=>{Sr()},[Sr]),R.useEffect(()=>{try{window.localStorage.setItem(H0,String(v))}catch{}},[v]),R.useEffect(()=>{fetch("/api/revisions").then(ne=>ne.ok?ne.json():null).then(ne=>{X(ne),ne?.resolvedBase&&D(be=>be||ne.resolvedBase||""),ne?.resolvedTarget&&A(be=>be||ne.resolvedTarget||"")}).catch(()=>X(null))},[]);const Dl=R.useCallback(async(ne,be)=>{ne===F&&be===z||(le.current=!0,O(ne),K(be),p(!0),b(null),await Sr(ne,be))},[F,z,Sr]),kr=ne=>U?U.commits.findIndex(be=>be.shortHash===ne||be.hash===ne):-1,gu=()=>{if(!U)return[];const be=kr(H||z);if(be===-1)return z?[z]:[];const ke=U.commits.slice(0,be+1).map(Ee=>Ee.shortHash);return z&&!ke.includes(z)&&ke.push(z),ke.includes("working")||ke.push("working"),ke},Qa=()=>{if(!U)return[];const be=kr(_||F);if(be===-1)return F?[F]:[];const ke=U.commits.slice(be).map(Ee=>Ee.shortHash);return F&&!ke.includes(F)&&ke.push(F),ke},Oi=R.useRef(!1);R.useEffect(()=>{e?.clearComments&&!Oi.current&&(Oi.current=!0,xe(),_t(),console.log("✅ All existing comments and viewed files cleared as requested via --clean flag"))},[e?.clearComments,xe,_t]),R.useEffect(()=>{e&&(Me.size<e.files.length?$(!1):Me.size===e.files.length&&!I&&(L(!0),$(!0),setTimeout(()=>{L(!1)},1e3)))},[Me.size,e,I]),R.useEffect(()=>{if(fe.length>0){const be=fe.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})),ke=JSON.stringify({comments:be});fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:ke}).catch(Ee=>{console.error("Failed to sync comments:",Ee)})}const ne=()=>{if(fe.length>0){const be=fe.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})),ke=JSON.stringify({comments:be});navigator.sendBeacon("/api/comments",ke)}};return window.addEventListener("beforeunload",ne),()=>{window.removeEventListener("beforeunload",ne)}},[fe]),R.useEffect(()=>{const ne=new EventSource("/api/heartbeat");return ne.onopen=()=>{console.log("Connected to server heartbeat")},ne.onerror=()=>{console.log("Server connection lost"),ne.close()},()=>{ne.close()}},[]);const Ja=R.useCallback((ne,be,ke,Ee,ut)=>(ge({filePath:ne,body:ke,side:ut||"new",line:typeof be=="number"?be:{start:be[0],end:be[1]},codeSnapshot:Ee?{content:Ee,language:void 0}:void 0}),Promise.resolve()),[ge]),Ol=async()=>{try{const ne=Ce();await navigator.clipboard.writeText(ne),x(!0),setTimeout(()=>x(!1),2e3)}catch(ne){console.error("Failed to copy all comments prompt:",ne)}},Mi=ne=>{if(!e)return;const be=pR(ne,e.files);be&&Kn(be)},Wa=R.useCallback(async(ne,be)=>{try{const ke=await fetch("/api/open-in-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:ne,line:be,editor:ce.editor})});if(!ke.ok){const Ee=await ke.json().catch(()=>null);let ut=ke.statusText;Ee&&typeof Ee=="object"&&"error"in Ee&&typeof Ee.error=="string"&&(ut=Ee.error),console.error("Failed to open file in editor:",ut)}}catch(ke){console.error("Failed to open file in editor:",ke)}},[ce.editor]),eo=ne=>{Kn(null);const be=ne.target,ke=be.closest('[data-comment-button="true"]'),Ee=be.closest('[data-open-in-editor-button="true"]');!ke&&!Ee&&In(ne)},In=ne=>{document.querySelectorAll('form[data-empty="true"]').forEach(ke=>{ke.contains(ne.target)||ke.querySelector('button[type="button"]')?.click()})};return f?y.jsx("div",{className:"flex items-center justify-center h-screen bg-github-bg-primary",children:y.jsx("div",{className:"text-github-text-secondary text-base",children:"Loading diff..."})}):h?y.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[y.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"Error"}),y.jsx("p",{className:"text-github-text-secondary text-base",children:h})]}):e?y.jsx(R6,{children:y.jsxs("div",{className:"h-screen flex flex-col",onClickCapture:eo,children:[y.jsxs("header",{className:"bg-github-bg-secondary border-b border-github-border flex items-center",children:[y.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?`${v}px`:"auto",minWidth:E?"200px":"auto",maxWidth:E?"600px":"auto"},children:[y.jsx("h1",{children:y.jsx(LN,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.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?y.jsx(fS,{size:18}):y.jsx(hS,{size:18})}),y.jsx("button",{onClick:()=>T(!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:y.jsx(Lx,{size:18})})]})]}),y.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)"}}),y.jsxs("div",{className:"flex-1 px-4 py-3 flex items-center justify-between gap-4",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("div",{className:"flex bg-github-bg-tertiary border border-github-border rounded-md p-1",children:[y.jsxs("button",{onClick:()=>Vt("split"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${l==="split"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[y.jsx(q2,{size:14}),"Split"]}),y.jsxs("button",{onClick:()=>Vt("unified"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${l==="unified"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[y.jsx(ES,{size:14}),"Unified"]})]}),y.jsx(Dx,{checked:u,onChange:c,label:"Ignore Whitespace",title:u?"Show whitespace changes":"Ignore whitespace changes"}),y.jsx(DN,{shouldReload:Qe,isReloading:Kt.isReloading,onReload:On,changeType:Kt.lastChangeType})]}),y.jsxs("div",{className:"flex items-center gap-4 text-sm text-github-text-secondary",children:[fe.length>0&&y.jsx(RS,{commentsCount:fe.length,isCopiedAll:g,onCopyAll:Ol,onDeleteAll:xe,onViewAll:()=>M(!0)}),y.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[y.jsxs("div",{className:"text-xs relative",children:[Me.size===e.files.length?"All diffs difit-ed!":`${Me.size} / ${e.files.length} files viewed`,y.jsx($8,{isActive:q})]}),y.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:y.jsx("div",{className:"absolute top-0 right-0 h-full transition-all duration-300 ease-out",style:{width:`${(e.files.length-Me.size)/e.files.length*100}%`,backgroundColor:(()=>{const ne=(e.files.length-Me.size)/e.files.length*100;return ne>50?"var(--color-github-accent)":ne>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),U?y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(sx,{label:"Base",value:F,resolvedValue:_,onChange:ne=>{Dl(ne,z)},options:U,disabledValues:gu()}),y.jsx("span",{className:"text-github-text-muted",children:"..."}),y.jsx(sx,{label:"Target",value:z,resolvedValue:H,onChange:ne=>{Dl(F,ne)},options:U,disabledValues:Qa()})]}):y.jsxs("span",{children:["Reviewing:"," ",y.jsx("code",{className:"bg-github-bg-tertiary px-1.5 py-0.5 rounded text-xs text-github-text-primary",children:e.commit.includes("...")?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"text-github-text-secondary font-medium",children:[e.commit.split("...")[0],"..."]}),y.jsx("span",{className:"font-medium",children:e.commit.split("...")[1]})]}):e.commit})]})]})]})]}),y.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[y.jsx("div",{className:`relative overflow-hidden ${N?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?`${v}px`:"0px"},children:y.jsxs("aside",{id:"file-tree-panel",className:"bg-github-bg-secondary border-r border-github-border overflow-y-auto flex flex-col",style:{width:`${v}px`,minWidth:"200px",maxWidth:"600px",height:"100%"},children:[y.jsx("div",{className:"flex-1 overflow-y-auto",children:y.jsx(RN,{files:e.files,onScrollToFile:ne=>{const be=document.getElementById(gd(ne));be&&be.scrollIntoView({behavior:"smooth",block:"start"})},comments:fe.map(ne=>({id:ne.id,file:ne.filePath,line:typeof ne.position.line=="number"?ne.position.line:[ne.position.line.start,ne.position.line.end],body:ne.body,timestamp:ne.createdAt,codeContent:ne.codeSnapshot?.content})),reviewedFiles:Me,onToggleReviewed:ht,selectedFileIndex:Zn?.fileIndex??null})}),y.jsxs("div",{className:"p-4 border-t border-github-border flex justify-between items-center",children:[y.jsxs("button",{onClick:()=>rl(!0),className:"flex items-center gap-1.5 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"Keyboard shortcuts (Shift+?)",children:[y.jsx(lS,{size:16}),y.jsx("span",{className:"text-sm",children:"Shortcuts"})]}),y.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:[y.jsx("span",{className:"text-sm",children:"Star on GitHub"}),y.jsx(_N,{style:{height:"18px",width:"18px"}})]})]})]})}),y.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:mu,title:"Drag to resize file list"}),y.jsx("main",{className:"flex-1 overflow-y-auto",children:e.files.map((ne,be)=>{const ke=Ge.get(ne.path)??mR,Ee=jt.get(ne.path)??gR;return y.jsx("div",{id:gd(ne.path),className:"mb-6",children:y.jsx(AN,{file:ne,comments:ke,diffMode:l,reviewedFiles:Me,onToggleReviewed:ht,collapsedFiles:V,onToggleCollapsed:pt,onToggleAllCollapsed:Pt,onAddComment:Ja,onGeneratePrompt:ll,onRemoveComment:he,onUpdateComment:ve,onOpenInEditor:ce.editor==="none"?void 0:Wa,syntaxTheme:ce.syntaxTheme,baseCommitish:e.baseCommitish,targetCommitish:e.targetCommitish,cursor:Zn?.fileIndex===be?Zn:null,fileIndex:be,onLineClick:Qn,commentTrigger:mt?.fileIndex===be?mt:null,onCommentTriggerHandled:Ll,mergedChunks:Ee,expandLines:at,expandAllBetweenChunks:wr,prefetchFileContent:ae,isExpandLoading:$t})},ne.path)})})]}),y.jsx(V8,{isOpen:k,onClose:()=>T(!1),settings:ce,onSettingsChange:de}),y.jsx(jN,{isOpen:jl,onClose:()=>rl(!1)}),y.jsx(_S,{isOpen:G,onClose:()=>M(!1),onNavigate:Mi,comments:fe.map(ne=>({id:ne.id,file:ne.filePath,line:typeof ne.position.line=="number"?ne.position.line:[ne.position.line.start,ne.position.line.end],body:ne.body,timestamp:ne.createdAt,codeContent:ne.codeSnapshot?.content})),onRemoveComment:he,onGeneratePrompt:ne=>ye(ne.id),onUpdateComment:ve})]})}):y.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[y.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"No data"}),y.jsx("p",{className:"text-github-text-secondary text-base",children:"No diff data available"})]})}const V0=document.getElementById("root");if(!V0)throw new Error("Root element not found");c2.createRoot(V0).render(y.jsx(Zt.StrictMode,{children:y.jsx(S2,{initiallyActiveScopes:["navigation"],children:y.jsx(yR,{})})}));export{Ys as g};
|