difit 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,220 +0,0 @@
1
- (function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))c(g);new MutationObserver(g=>{for(const h of g)if(h.type==="childList")for(const x of h.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&c(x)}).observe(document,{childList:!0,subtree:!0});function f(g){const h={};return g.integrity&&(h.integrity=g.integrity),g.referrerPolicy&&(h.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?h.credentials="include":g.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(g){if(g.ep)return;g.ep=!0;const h=f(g);fetch(g.href,h)}})();function og(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ws={exports:{}},qa={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Md;function ib(){if(Md)return qa;Md=1;var r=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function f(c,g,h){var x=null;if(h!==void 0&&(x=""+h),g.key!==void 0&&(x=""+g.key),"key"in g){h={};for(var T in g)T!=="key"&&(h[T]=g[T])}else h=g;return g=h.ref,{$$typeof:r,type:c,key:x,ref:g!==void 0?g:null,props:h}}return qa.Fragment=u,qa.jsx=f,qa.jsxs=f,qa}var Ld;function rb(){return Ld||(Ld=1,ws.exports=ib()),ws.exports}var s=rb(),As={exports:{}},ye={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Ud;function ub(){if(Ud)return ye;Ud=1;var r=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),x=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),b=Symbol.iterator;function k(m){return m===null||typeof m!="object"?null:(m=b&&m[b]||m["@@iterator"],typeof m=="function"?m:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,A={};function N(m,U,Q){this.props=m,this.context=U,this.refs=A,this.updater=Q||q}N.prototype.isReactComponent={},N.prototype.setState=function(m,U){if(typeof m!="object"&&typeof m!="function"&&m!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,m,U,"setState")},N.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function j(){}j.prototype=N.prototype;function _(m,U,Q){this.props=m,this.context=U,this.refs=A,this.updater=Q||q}var H=_.prototype=new j;H.constructor=_,v(H,N.prototype),H.isPureReactComponent=!0;var z=Array.isArray,X={H:null,A:null,T:null,S:null,V:null},ee=Object.prototype.hasOwnProperty;function le(m,U,Q,I,ne,he){return Q=he.ref,{$$typeof:r,type:m,key:U,ref:Q!==void 0?Q:null,props:he}}function se(m,U){return le(m.type,U,void 0,void 0,void 0,m.props)}function pe(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}function ce(m){var U={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(Q){return U[Q]})}var ae=/\/+/g;function K(m,U){return typeof m=="object"&&m!==null&&m.key!=null?ce(""+m.key):U.toString(36)}function me(){}function ge(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(me,me):(m.status="pending",m.then(function(U){m.status==="pending"&&(m.status="fulfilled",m.value=U)},function(U){m.status==="pending"&&(m.status="rejected",m.reason=U)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function J(m,U,Q,I,ne){var he=typeof m;(he==="undefined"||he==="boolean")&&(m=null);var re=!1;if(m===null)re=!0;else switch(he){case"bigint":case"string":case"number":re=!0;break;case"object":switch(m.$$typeof){case r:case u:re=!0;break;case w:return re=m._init,J(re(m._payload),U,Q,I,ne)}}if(re)return ne=ne(m),re=I===""?"."+K(m,0):I,z(ne)?(Q="",re!=null&&(Q=re.replace(ae,"$&/")+"/"),J(ne,U,Q,"",function(Te){return Te})):ne!=null&&(pe(ne)&&(ne=se(ne,Q+(ne.key==null||m&&m.key===ne.key?"":(""+ne.key).replace(ae,"$&/")+"/")+re)),U.push(ne)),1;re=0;var be=I===""?".":I+":";if(z(m))for(var P=0;P<m.length;P++)I=m[P],he=be+K(I,P),re+=J(I,U,Q,he,ne);else if(P=k(m),typeof P=="function")for(m=P.call(m),P=0;!(I=m.next()).done;)I=I.value,he=be+K(I,P++),re+=J(I,U,Q,he,ne);else if(he==="object"){if(typeof m.then=="function")return J(ge(m),U,Q,I,ne);throw U=String(m),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return re}function y(m,U,Q){if(m==null)return m;var I=[],ne=0;return J(m,I,"","",function(he){return U.call(Q,he,ne++)}),I}function G(m){if(m._status===-1){var U=m._result;U=U(),U.then(function(Q){(m._status===0||m._status===-1)&&(m._status=1,m._result=Q)},function(Q){(m._status===0||m._status===-1)&&(m._status=2,m._result=Q)}),m._status===-1&&(m._status=0,m._result=U)}if(m._status===1)return m._result.default;throw m._result}var $=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)};function te(){}return ye.Children={map:y,forEach:function(m,U,Q){y(m,function(){U.apply(this,arguments)},Q)},count:function(m){var U=0;return y(m,function(){U++}),U},toArray:function(m){return y(m,function(U){return U})||[]},only:function(m){if(!pe(m))throw Error("React.Children.only expected to receive a single React element child.");return m}},ye.Component=N,ye.Fragment=f,ye.Profiler=g,ye.PureComponent=_,ye.StrictMode=c,ye.Suspense=S,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ye.__COMPILER_RUNTIME={__proto__:null,c:function(m){return X.H.useMemoCache(m)}},ye.cache=function(m){return function(){return m.apply(null,arguments)}},ye.cloneElement=function(m,U,Q){if(m==null)throw Error("The argument must be a React element, but you passed "+m+".");var I=v({},m.props),ne=m.key,he=void 0;if(U!=null)for(re in U.ref!==void 0&&(he=void 0),U.key!==void 0&&(ne=""+U.key),U)!ee.call(U,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&U.ref===void 0||(I[re]=U[re]);var re=arguments.length-2;if(re===1)I.children=Q;else if(1<re){for(var be=Array(re),P=0;P<re;P++)be[P]=arguments[P+2];I.children=be}return le(m.type,ne,void 0,void 0,he,I)},ye.createContext=function(m){return m={$$typeof:x,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null},m.Provider=m,m.Consumer={$$typeof:h,_context:m},m},ye.createElement=function(m,U,Q){var I,ne={},he=null;if(U!=null)for(I in U.key!==void 0&&(he=""+U.key),U)ee.call(U,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ne[I]=U[I]);var re=arguments.length-2;if(re===1)ne.children=Q;else if(1<re){for(var be=Array(re),P=0;P<re;P++)be[P]=arguments[P+2];ne.children=be}if(m&&m.defaultProps)for(I in re=m.defaultProps,re)ne[I]===void 0&&(ne[I]=re[I]);return le(m,he,void 0,void 0,null,ne)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(m){return{$$typeof:T,render:m}},ye.isValidElement=pe,ye.lazy=function(m){return{$$typeof:w,_payload:{_status:-1,_result:m},_init:G}},ye.memo=function(m,U){return{$$typeof:p,type:m,compare:U===void 0?null:U}},ye.startTransition=function(m){var U=X.T,Q={};X.T=Q;try{var I=m(),ne=X.S;ne!==null&&ne(Q,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(te,$)}catch(he){$(he)}finally{X.T=U}},ye.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ye.use=function(m){return X.H.use(m)},ye.useActionState=function(m,U,Q){return X.H.useActionState(m,U,Q)},ye.useCallback=function(m,U){return X.H.useCallback(m,U)},ye.useContext=function(m){return X.H.useContext(m)},ye.useDebugValue=function(){},ye.useDeferredValue=function(m,U){return X.H.useDeferredValue(m,U)},ye.useEffect=function(m,U,Q){var I=X.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return I.useEffect(m,U)},ye.useId=function(){return X.H.useId()},ye.useImperativeHandle=function(m,U,Q){return X.H.useImperativeHandle(m,U,Q)},ye.useInsertionEffect=function(m,U){return X.H.useInsertionEffect(m,U)},ye.useLayoutEffect=function(m,U){return X.H.useLayoutEffect(m,U)},ye.useMemo=function(m,U){return X.H.useMemo(m,U)},ye.useOptimistic=function(m,U){return X.H.useOptimistic(m,U)},ye.useReducer=function(m,U,Q){return X.H.useReducer(m,U,Q)},ye.useRef=function(m){return X.H.useRef(m)},ye.useState=function(m){return X.H.useState(m)},ye.useSyncExternalStore=function(m,U,Q){return X.H.useSyncExternalStore(m,U,Q)},ye.useTransition=function(){return X.H.useTransition()},ye.version="19.1.0",ye}var Bd;function Us(){return Bd||(Bd=1,As.exports=ub()),As.exports}var L=Us();const tn=og(L);var Ts={exports:{}},Ga={},_s={exports:{}},js={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Hd;function sb(){return Hd||(Hd=1,function(r){function u(y,G){var $=y.length;y.push(G);e:for(;0<$;){var te=$-1>>>1,m=y[te];if(0<g(m,G))y[te]=G,y[$]=m,$=te;else break e}}function f(y){return y.length===0?null:y[0]}function c(y){if(y.length===0)return null;var G=y[0],$=y.pop();if($!==G){y[0]=$;e:for(var te=0,m=y.length,U=m>>>1;te<U;){var Q=2*(te+1)-1,I=y[Q],ne=Q+1,he=y[ne];if(0>g(I,$))ne<m&&0>g(he,I)?(y[te]=he,y[ne]=$,te=ne):(y[te]=I,y[Q]=$,te=Q);else if(ne<m&&0>g(he,$))y[te]=he,y[ne]=$,te=ne;else break e}}return G}function g(y,G){var $=y.sortIndex-G.sortIndex;return $!==0?$:y.id-G.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var x=Date,T=x.now();r.unstable_now=function(){return x.now()-T}}var S=[],p=[],w=1,b=null,k=3,q=!1,v=!1,A=!1,N=!1,j=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function z(y){for(var G=f(p);G!==null;){if(G.callback===null)c(p);else if(G.startTime<=y)c(p),G.sortIndex=G.expirationTime,u(S,G);else break;G=f(p)}}function X(y){if(A=!1,z(y),!v)if(f(S)!==null)v=!0,ee||(ee=!0,K());else{var G=f(p);G!==null&&J(X,G.startTime-y)}}var ee=!1,le=-1,se=5,pe=-1;function ce(){return N?!0:!(r.unstable_now()-pe<se)}function ae(){if(N=!1,ee){var y=r.unstable_now();pe=y;var G=!0;try{e:{v=!1,A&&(A=!1,_(le),le=-1),q=!0;var $=k;try{t:{for(z(y),b=f(S);b!==null&&!(b.expirationTime>y&&ce());){var te=b.callback;if(typeof te=="function"){b.callback=null,k=b.priorityLevel;var m=te(b.expirationTime<=y);if(y=r.unstable_now(),typeof m=="function"){b.callback=m,z(y),G=!0;break t}b===f(S)&&c(S),z(y)}else c(S);b=f(S)}if(b!==null)G=!0;else{var U=f(p);U!==null&&J(X,U.startTime-y),G=!1}}break e}finally{b=null,k=$,q=!1}G=void 0}}finally{G?K():ee=!1}}}var K;if(typeof H=="function")K=function(){H(ae)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,ge=me.port2;me.port1.onmessage=ae,K=function(){ge.postMessage(null)}}else K=function(){j(ae,0)};function J(y,G){le=j(function(){y(r.unstable_now())},G)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(y){y.callback=null},r.unstable_forceFrameRate=function(y){0>y||125<y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<y?Math.floor(1e3/y):5},r.unstable_getCurrentPriorityLevel=function(){return k},r.unstable_next=function(y){switch(k){case 1:case 2:case 3:var G=3;break;default:G=k}var $=k;k=G;try{return y()}finally{k=$}},r.unstable_requestPaint=function(){N=!0},r.unstable_runWithPriority=function(y,G){switch(y){case 1:case 2:case 3:case 4:case 5:break;default:y=3}var $=k;k=y;try{return G()}finally{k=$}},r.unstable_scheduleCallback=function(y,G,$){var te=r.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?te+$:te):$=te,y){case 1:var m=-1;break;case 2:m=250;break;case 5:m=1073741823;break;case 4:m=1e4;break;default:m=5e3}return m=$+m,y={id:w++,callback:G,priorityLevel:y,startTime:$,expirationTime:m,sortIndex:-1},$>te?(y.sortIndex=$,u(p,y),f(S)===null&&y===f(p)&&(A?(_(le),le=-1):A=!0,J(X,$-te))):(y.sortIndex=m,u(S,y),v||q||(v=!0,ee||(ee=!0,K()))),y},r.unstable_shouldYield=ce,r.unstable_wrapCallback=function(y){var G=k;return function(){var $=k;k=G;try{return y.apply(this,arguments)}finally{k=$}}}}(js)),js}var qd;function ob(){return qd||(qd=1,_s.exports=sb()),_s.exports}var Cs={exports:{}},it={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Gd;function cb(){if(Gd)return it;Gd=1;var r=Us();function u(S){var p="https://react.dev/errors/"+S;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)p+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+S+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var c={d:{f,r:function(){throw Error(u(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},g=Symbol.for("react.portal");function h(S,p,w){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:b==null?null:""+b,children:S,containerInfo:p,implementation:w}}var x=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function T(S,p){if(S==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,it.createPortal=function(S,p){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return h(S,p,null,w)},it.flushSync=function(S){var p=x.T,w=c.p;try{if(x.T=null,c.p=2,S)return S()}finally{x.T=p,c.p=w,c.d.f()}},it.preconnect=function(S,p){typeof S=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(S,p))},it.prefetchDNS=function(S){typeof S=="string"&&c.d.D(S)},it.preinit=function(S,p){if(typeof S=="string"&&p&&typeof p.as=="string"){var w=p.as,b=T(w,p.crossOrigin),k=typeof p.integrity=="string"?p.integrity:void 0,q=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;w==="style"?c.d.S(S,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:k,fetchPriority:q}):w==="script"&&c.d.X(S,{crossOrigin:b,integrity:k,fetchPriority:q,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},it.preinitModule=function(S,p){if(typeof S=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var w=T(p.as,p.crossOrigin);c.d.M(S,{crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&c.d.M(S)},it.preload=function(S,p){if(typeof S=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var w=p.as,b=T(w,p.crossOrigin);c.d.L(S,w,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},it.preloadModule=function(S,p){if(typeof S=="string")if(p){var w=T(p.as,p.crossOrigin);c.d.m(S,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else c.d.m(S)},it.requestFormReset=function(S){c.d.r(S)},it.unstable_batchedUpdates=function(S,p){return S(p)},it.useFormState=function(S,p,w){return x.H.useFormState(S,p,w)},it.useFormStatus=function(){return x.H.useHostTransitionStatus()},it.version="19.1.0",it}var Yd;function fb(){if(Yd)return Cs.exports;Yd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(u){console.error(u)}}return r(),Cs.exports=cb(),Cs.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Zd;function db(){if(Zd)return Ga;Zd=1;var r=ob(),u=Us(),f=fb();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function x(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T(e){if(h(e)!==e)throw Error(c(188))}function S(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return T(a),e;if(i===n)return T(a),t;i=i.sibling}throw Error(c(188))}if(l.return!==n.return)l=a,n=i;else{for(var o=!1,d=a.child;d;){if(d===l){o=!0,l=a,n=i;break}if(d===n){o=!0,n=a,l=i;break}d=d.sibling}if(!o){for(d=i.child;d;){if(d===l){o=!0,l=i,n=a;break}if(d===n){o=!0,n=i,l=a;break}d=d.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==n)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var w=Object.assign,b=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.consumer"),H=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var me=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case N:return"Profiler";case A:return"StrictMode";case X:return"Suspense";case ee:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case H:return(e.displayName||"Context")+".Provider";case _:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:ge(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var J=Array.isArray,y=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},te=[],m=-1;function U(e){return{current:e}}function Q(e){0>m||(e.current=te[m],te[m]=null,m--)}function I(e,t){m++,te[m]=e.current,e.current=t}var ne=U(null),he=U(null),re=U(null),be=U(null);function P(e,t){switch(I(re,t),I(he,e),I(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?od(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=od(t),e=cd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(ne),I(ne,e)}function Te(){Q(ne),Q(he),Q(re)}function Ze(e){e.memoizedState!==null&&I(be,e);var t=ne.current,l=cd(t,e.type);t!==l&&(I(he,e),I(ne,l))}function rl(e){he.current===e&&(Q(ne),Q(he)),be.current===e&&(Q(be),Ma._currentValue=$)}var Zn=Object.prototype.hasOwnProperty,zl=r.unstable_scheduleCallback,ln=r.unstable_cancelCallback,fr=r.unstable_shouldYield,Va=r.unstable_requestPaint,At=r.unstable_now,dr=r.unstable_getCurrentPriorityLevel,Xa=r.unstable_ImmediatePriority,W=r.unstable_UserBlockingPriority,Ne=r.unstable_NormalPriority,we=r.unstable_LowPriority,je=r.unstable_IdlePriority,ul=r.log,Ml=r.unstable_setDisableYieldValue,Ll=null,gt=null;function sl(e){if(typeof ul=="function"&&Ml(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(Ll,e)}catch{}}var ht=Math.clz32?Math.clz32:Xg,Zg=Math.log,Vg=Math.LN2;function Xg(e){return e>>>=0,e===0?32:31-(Zg(e)/Vg|0)|0}var Fa=256,Qa=4194304;function Ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ka(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~i,n!==0?a=Ul(n):(o&=d,o!==0?a=Ul(o):l||(l=d&~e,l!==0&&(a=Ul(l))))):(d=n&~i,d!==0?a=Ul(d):o!==0?a=Ul(o):l||(l=n&~e,l!==0&&(a=Ul(l)))),a===0?0:t!==0&&t!==a&&(t&i)===0&&(i=a&-a,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:a}function Vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Vs(){var e=Fa;return Fa<<=1,(Fa&4194048)===0&&(Fa=256),e}function Xs(){var e=Qa;return Qa<<=1,(Qa&62914560)===0&&(Qa=4194304),e}function gr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Xn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qg(e,t,l,n,a,i){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,E=e.expirationTimes,R=e.hiddenUpdates;for(l=o&~l;0<l;){var Y=31-ht(l),F=1<<Y;d[Y]=0,E[Y]=-1;var M=R[Y];if(M!==null)for(R[Y]=null,Y=0;Y<M.length;Y++){var B=M[Y];B!==null&&(B.lane&=-536870913)}l&=~F}n!==0&&Fs(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Fs(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-ht(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&4194090}function Qs(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-ht(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function hr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function pr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ks(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Cd(e.type))}function Kg(e,t){var l=G.p;try{return G.p=e,t()}finally{G.p=l}}var ol=Math.random().toString(36).slice(2),nt="__reactFiber$"+ol,ut="__reactProps$"+ol,nn="__reactContainer$"+ol,br="__reactEvents$"+ol,$g="__reactListeners$"+ol,Ig="__reactHandles$"+ol,$s="__reactResources$"+ol,Fn="__reactMarker$"+ol;function yr(e){delete e[nt],delete e[ut],delete e[br],delete e[$g],delete e[Ig]}function an(e){var t=e[nt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[nn]||l[nt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=hd(e);e!==null;){if(l=e[nt])return l;e=hd(e)}return t}e=l,l=e.parentNode}return null}function rn(e){if(e=e[nt]||e[nn]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Qn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function un(e){var t=e[$s];return t||(t=e[$s]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Fn]=!0}var Is=new Set,Js={};function Bl(e,t){sn(e,t),sn(e+"Capture",t)}function sn(e,t){for(Js[e]=t,e=0;e<t.length;e++)Is.add(t[e])}var Jg=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]*$"),Ws={},Ps={};function Wg(e){return Zn.call(Ps,e)?!0:Zn.call(Ws,e)?!1:Jg.test(e)?Ps[e]=!0:(Ws[e]=!0,!1)}function $a(e,t,l){if(Wg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ia(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Vt(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}var mr,eo;function on(e){if(mr===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);mr=t&&t[1]||"",eo=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+mr+e+eo}var vr=!1;function xr(e,t){if(!e||vr)return"";vr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(B){var M=B}Reflect.construct(e,[],F)}else{try{F.call()}catch(B){M=B}e.call(F.prototype)}}else{try{throw Error()}catch(B){M=B}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(B){if(B&&M&&typeof B.stack=="string")return[B.stack,M.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),o=i[0],d=i[1];if(o&&d){var E=o.split(`
44
- `),R=d.split(`
45
- `);for(a=n=0;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;for(;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;if(n===E.length||a===R.length)for(n=E.length-1,a=R.length-1;1<=n&&0<=a&&E[n]!==R[a];)a--;for(;1<=n&&0<=a;n--,a--)if(E[n]!==R[a]){if(n!==1||a!==1)do if(n--,a--,0>a||E[n]!==R[a]){var Y=`
46
- `+E[n].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=n&&0<=a);break}}}finally{vr=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?on(l):""}function Pg(e){switch(e.tag){case 26:case 27:case 5:return on(e.type);case 16:return on("Lazy");case 13:return on("Suspense");case 19:return on("SuspenseList");case 0:case 15:return xr(e.type,!1);case 11:return xr(e.type.render,!1);case 1:return xr(e.type,!0);case 31:return on("Activity");default:return""}}function to(e){try{var t="";do t+=Pg(e),e=e.return;while(e);return t}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eh(e){var t=lo(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ja(e){e._valueTracker||(e._valueTracker=eh(e))}function no(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=lo(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Wa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var th=/[\n"\\]/g;function _t(e){return e.replace(th,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Sr(e,t,l,n,a,i,o,d){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Er(e,o,Tt(t)):l!=null?Er(e,o,Tt(l)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Tt(d):e.removeAttribute("name")}function ao(e,t,l,n,a,i,o,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;l=l!=null?""+Tt(l):"",t=t!=null?""+Tt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=d?e.checked:!!n,e.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o)}function Er(e,t,l){t==="number"&&Wa(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function cn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+Tt(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function io(e,t,l){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Tt(l):""}function ro(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(c(92));if(J(n)){if(1<n.length)throw Error(c(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=Tt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n)}function fn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var lh=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 uo(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||lh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function so(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&uo(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&uo(e,i,t[i])}function Nr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nh=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"]]),ah=/^[\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 Pa(e){return ah.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var wr=null;function Ar(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dn=null,gn=null;function oo(e){var t=rn(e);if(t&&(e=t.stateNode)){var l=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Sr(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[ut]||null;if(!a)throw Error(c(90));Sr(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&no(n)}break e;case"textarea":io(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&cn(e,!!l.multiple,t,!1)}}}var Tr=!1;function co(e,t,l){if(Tr)return e(t,l);Tr=!0;try{var n=e(t);return n}finally{if(Tr=!1,(dn!==null||gn!==null)&&(Bi(),dn&&(t=dn,e=gn,gn=dn=null,oo(t),e)))for(t=0;t<e.length;t++)oo(e[t])}}function Kn(e,t){var l=e.stateNode;if(l===null)return null;var n=l[ut]||null;if(n===null)return null;l=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var Xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_r=!1;if(Xt)try{var $n={};Object.defineProperty($n,"passive",{get:function(){_r=!0}}),window.addEventListener("test",$n,$n),window.removeEventListener("test",$n,$n)}catch{_r=!1}var cl=null,jr=null,ei=null;function fo(){if(ei)return ei;var e,t=jr,l=t.length,n,a="value"in cl?cl.value:cl.textContent,i=a.length;for(e=0;e<l&&t[e]===a[e];e++);var o=l-e;for(n=1;n<=o&&t[l-n]===a[i-n];n++);return ei=a.slice(e,1<n?1-n:void 0)}function ti(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function li(){return!0}function go(){return!1}function st(e){function t(l,n,a,i,o){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?li:go,this.isPropagationStopped=go,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=li)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=li)},persist:function(){},isPersistent:li}),t}var Hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ni=st(Hl),In=w({},Hl,{view:0,detail:0}),ih=st(In),Cr,kr,Jn,ai=w({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jn&&(Jn&&e.type==="mousemove"?(Cr=e.screenX-Jn.screenX,kr=e.screenY-Jn.screenY):kr=Cr=0,Jn=e),Cr)},movementY:function(e){return"movementY"in e?e.movementY:kr}}),ho=st(ai),rh=w({},ai,{dataTransfer:0}),uh=st(rh),sh=w({},In,{relatedTarget:0}),Or=st(sh),oh=w({},Hl,{animationName:0,elapsedTime:0,pseudoElement:0}),ch=st(oh),fh=w({},Hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dh=st(fh),gh=w({},Hl,{data:0}),po=st(gh),hh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ph={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"},bh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bh[e])?!!t[e]:!1}function Dr(){return yh}var mh=w({},In,{key:function(e){if(e.key){var t=hh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ti(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ph[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dr,charCode:function(e){return e.type==="keypress"?ti(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ti(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vh=st(mh),xh=w({},ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bo=st(xh),Sh=w({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dr}),Eh=st(Sh),Nh=w({},Hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),wh=st(Nh),Ah=w({},ai,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Th=st(Ah),_h=w({},Hl,{newState:0,oldState:0}),jh=st(_h),Ch=[9,13,27,32],Rr=Xt&&"CompositionEvent"in window,Wn=null;Xt&&"documentMode"in document&&(Wn=document.documentMode);var kh=Xt&&"TextEvent"in window&&!Wn,yo=Xt&&(!Rr||Wn&&8<Wn&&11>=Wn),mo=" ",vo=!1;function xo(e,t){switch(e){case"keyup":return Ch.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function So(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hn=!1;function Oh(e,t){switch(e){case"compositionend":return So(t);case"keypress":return t.which!==32?null:(vo=!0,mo);case"textInput":return e=t.data,e===mo&&vo?null:e;default:return null}}function Dh(e,t){if(hn)return e==="compositionend"||!Rr&&xo(e,t)?(e=fo(),ei=jr=cl=null,hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return yo&&t.locale!=="ko"?null:t.data;default:return null}}var Rh={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 Eo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rh[e.type]:t==="textarea"}function No(e,t,l,n){dn?gn?gn.push(n):gn=[n]:dn=n,t=Vi(t,"onChange"),0<t.length&&(l=new ni("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Pn=null,ea=null;function zh(e){ad(e,0)}function ii(e){var t=Qn(e);if(no(t))return e}function wo(e,t){if(e==="change")return t}var Ao=!1;if(Xt){var zr;if(Xt){var Mr="oninput"in document;if(!Mr){var To=document.createElement("div");To.setAttribute("oninput","return;"),Mr=typeof To.oninput=="function"}zr=Mr}else zr=!1;Ao=zr&&(!document.documentMode||9<document.documentMode)}function _o(){Pn&&(Pn.detachEvent("onpropertychange",jo),ea=Pn=null)}function jo(e){if(e.propertyName==="value"&&ii(ea)){var t=[];No(t,ea,e,Ar(e)),co(zh,t)}}function Mh(e,t,l){e==="focusin"?(_o(),Pn=t,ea=l,Pn.attachEvent("onpropertychange",jo)):e==="focusout"&&_o()}function Lh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ii(ea)}function Uh(e,t){if(e==="click")return ii(t)}function Bh(e,t){if(e==="input"||e==="change")return ii(t)}function Hh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:Hh;function ta(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Zn.call(t,a)||!pt(e[a],t[a]))return!1}return!0}function Co(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ko(e,t){var l=Co(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Co(l)}}function Oo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Oo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Do(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wa(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Wa(e.document)}return t}function Lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var qh=Xt&&"documentMode"in document&&11>=document.documentMode,pn=null,Ur=null,la=null,Br=!1;function Ro(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Br||pn==null||pn!==Wa(n)||(n=pn,"selectionStart"in n&&Lr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),la&&ta(la,n)||(la=n,n=Vi(Ur,"onSelect"),0<n.length&&(t=new ni("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=pn)))}function ql(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var bn={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},Hr={},zo={};Xt&&(zo=document.createElement("div").style,"AnimationEvent"in window||(delete bn.animationend.animation,delete bn.animationiteration.animation,delete bn.animationstart.animation),"TransitionEvent"in window||delete bn.transitionend.transition);function Gl(e){if(Hr[e])return Hr[e];if(!bn[e])return e;var t=bn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in zo)return Hr[e]=t[l];return e}var Mo=Gl("animationend"),Lo=Gl("animationiteration"),Uo=Gl("animationstart"),Gh=Gl("transitionrun"),Yh=Gl("transitionstart"),Zh=Gl("transitioncancel"),Bo=Gl("transitionend"),Ho=new Map,qr="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(" ");qr.push("scrollEnd");function Mt(e,t){Ho.set(e,t),Bl(t,[e])}var qo=new WeakMap;function jt(e,t){if(typeof e=="object"&&e!==null){var l=qo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:to(t)},qo.set(e,t),t)}return{value:e,source:t,stack:to(t)}}var Ct=[],yn=0,Gr=0;function ri(){for(var e=yn,t=Gr=yn=0;t<e;){var l=Ct[t];Ct[t++]=null;var n=Ct[t];Ct[t++]=null;var a=Ct[t];Ct[t++]=null;var i=Ct[t];if(Ct[t++]=null,n!==null&&a!==null){var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}i!==0&&Go(l,a,i)}}function ui(e,t,l,n){Ct[yn++]=e,Ct[yn++]=t,Ct[yn++]=l,Ct[yn++]=n,Gr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Yr(e,t,l,n){return ui(e,t,l,n),si(e)}function mn(e,t){return ui(e,null,null,t),si(e)}function Go(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=e.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-ht(l),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),i):null}function si(e){if(50<_a)throw _a=0,Ku=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vn={};function Vh(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,l,n){return new Vh(e,t,l,n)}function Zr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var l=e.alternate;return l===null?(l=bt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Yo(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function oi(e,t,l,n,a,i){var o=0;if(n=e,typeof e=="function")Zr(e)&&(o=1);else if(typeof e=="string")o=Fp(e,l,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=bt(31,l,t,a),e.elementType=pe,e.lanes=i,e;case v:return Yl(l.children,a,i,t);case A:o=8,a|=24;break;case N:return e=bt(12,l,t,a|2),e.elementType=N,e.lanes=i,e;case X:return e=bt(13,l,t,a),e.elementType=X,e.lanes=i,e;case ee:return e=bt(19,l,t,a),e.elementType=ee,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:case H:o=10;break e;case _:o=9;break e;case z:o=11;break e;case le:o=14;break e;case se:o=16,n=null;break e}o=29,l=Error(c(130,e===null?"null":typeof e,"")),n=null}return t=bt(o,l,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Yl(e,t,l,n){return e=bt(7,e,n,t),e.lanes=l,e}function Vr(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function Xr(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xn=[],Sn=0,ci=null,fi=0,kt=[],Ot=0,Zl=null,Qt=1,Kt="";function Vl(e,t){xn[Sn++]=fi,xn[Sn++]=ci,ci=e,fi=t}function Zo(e,t,l){kt[Ot++]=Qt,kt[Ot++]=Kt,kt[Ot++]=Zl,Zl=e;var n=Qt;e=Kt;var a=32-ht(n)-1;n&=~(1<<a),l+=1;var i=32-ht(t)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,Qt=1<<32-ht(t)+a|l<<a|n,Kt=i+e}else Qt=1<<i|l<<a|n,Kt=e}function Fr(e){e.return!==null&&(Vl(e,1),Zo(e,1,0))}function Qr(e){for(;e===ci;)ci=xn[--Sn],xn[Sn]=null,fi=xn[--Sn],xn[Sn]=null;for(;e===Zl;)Zl=kt[--Ot],kt[Ot]=null,Kt=kt[--Ot],kt[Ot]=null,Qt=kt[--Ot],kt[Ot]=null}var rt=null,Ge=null,Ce=!1,Xl=null,Bt=!1,Kr=Error(c(519));function Fl(e){var t=Error(c(418,""));throw ia(jt(t,e)),Kr}function Vo(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[nt]=e,t[ut]=n,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<Ca.length;l++)Ee(Ca[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),ao(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),Ja(t);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),ro(t,n.value,n.defaultValue,n.children),Ja(t)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||sd(t.textContent,l)?(n.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),n.onScroll!=null&&Ee("scroll",t),n.onScrollEnd!=null&&Ee("scrollend",t),n.onClick!=null&&(t.onclick=Xi),t=!0):t=!1,t||Fl(e)}function Xo(e){for(rt=e.return;rt;)switch(rt.tag){case 5:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:rt=rt.return}}function na(e){if(e!==rt)return!1;if(!Ce)return Xo(e),Ce=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||cs(e.type,e.memoizedProps)),l=!l),l&&Ge&&Fl(e),Xo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){Ge=Ut(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Ge=null}}else t===27?(t=Ge,Tl(e.type)?(e=hs,hs=null,Ge=e):Ge=t):Ge=rt?Ut(e.stateNode.nextSibling):null;return!0}function aa(){Ge=rt=null,Ce=!1}function Fo(){var e=Xl;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),Xl=null),e}function ia(e){Xl===null?Xl=[e]:Xl.push(e)}var $r=U(null),Ql=null,$t=null;function fl(e,t,l){I($r,t._currentValue),t._currentValue=l}function It(e){e._currentValue=$r.current,Q($r)}function Ir(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function Jr(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=a;for(var E=0;E<t.length;E++)if(d.context===t[E]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),Ir(i.return,l,e),n||(o=null);break e}i=d.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(c(341));o.lanes|=l,i=o.alternate,i!==null&&(i.lanes|=l),Ir(o,l,e),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function ra(e,t,l,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var d=a.type;pt(a.pendingProps.value,o.value)||(e!==null?e.push(d):e=[d])}}else if(a===be.current){if(o=a.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Ma):e=[Ma])}a=a.return}e!==null&&Jr(t,e,l,n),t.flags|=262144}function di(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){Ql=e,$t=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return Qo(Ql,e)}function gi(e,t){return Ql===null&&Kl(e),Qo(e,t)}function Qo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},$t===null){if(e===null)throw Error(c(308));$t=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $t=$t.next=t;return l}var Xh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Fh=r.unstable_scheduleCallback,Qh=r.unstable_NormalPriority,Ke={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wr(){return{controller:new Xh,data:new Map,refCount:0}}function ua(e){e.refCount--,e.refCount===0&&Fh(Qh,function(){e.controller.abort()})}var sa=null,Pr=0,En=0,Nn=null;function Kh(e,t){if(sa===null){var l=sa=[];Pr=0,En=ts(),Nn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Pr++,t.then(Ko,Ko),t}function Ko(){if(--Pr===0&&sa!==null){Nn!==null&&(Nn.status="fulfilled");var e=sa;sa=null,En=0,Nn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $h(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var $o=y.S;y.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Kh(e,t),$o!==null&&$o(e,t)};var $l=U(null);function eu(){var e=$l.current;return e!==null?e:Ue.pooledCache}function hi(e,t){t===null?I($l,$l.current):I($l,t.pool)}function Io(){var e=eu();return e===null?null:{parent:Ke._currentValue,pool:e}}var oa=Error(c(460)),Jo=Error(c(474)),pi=Error(c(542)),tu={then:function(){}};function Wo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bi(){}function Po(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(bi,bi),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tc(e),e;default:if(typeof t.status=="string")t.then(bi,bi);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tc(e),e}throw ca=t,oa}}var ca=null;function ec(){if(ca===null)throw Error(c(459));var e=ca;return ca=null,e}function tc(e){if(e===oa||e===pi)throw Error(c(483))}var dl=!1;function lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function gl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function hl(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(ke&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=si(e),Go(e,null,l),t}return ui(e,n,t,l),si(e)}function fa(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Qs(e,l)}}function au(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,l=l.next}while(l!==null);i===null?a=i=t:i=i.next=t}else a=i=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var iu=!1;function da(){if(iu){var e=Nn;if(e!==null)throw e}}function ga(e,t,l,n){iu=!1;var a=e.updateQueue;dl=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,d=a.shared.pending;if(d!==null){a.shared.pending=null;var E=d,R=E.next;E.next=null,o===null?i=R:o.next=R,o=E;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,d=Y.lastBaseUpdate,d!==o&&(d===null?Y.firstBaseUpdate=R:d.next=R,Y.lastBaseUpdate=E))}if(i!==null){var F=a.baseState;o=0,Y=R=E=null,d=i;do{var M=d.lane&-536870913,B=M!==d.lane;if(B?(Ae&M)===M:(n&M)===M){M!==0&&M===En&&(iu=!0),Y!==null&&(Y=Y.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var de=e,oe=d;M=t;var ze=l;switch(oe.tag){case 1:if(de=oe.payload,typeof de=="function"){F=de.call(ze,F,M);break e}F=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=oe.payload,M=typeof de=="function"?de.call(ze,F,M):de,M==null)break e;F=w({},F,M);break e;case 2:dl=!0}}M=d.callback,M!==null&&(e.flags|=64,B&&(e.flags|=8192),B=a.callbacks,B===null?a.callbacks=[M]:B.push(M))}else B={lane:M,tag:d.tag,payload:d.payload,callback:d.callback,next:null},Y===null?(R=Y=B,E=F):Y=Y.next=B,o|=M;if(d=d.next,d===null){if(d=a.shared.pending,d===null)break;B=d,d=B.next,B.next=null,a.lastBaseUpdate=B,a.shared.pending=null}}while(!0);Y===null&&(E=F),a.baseState=E,a.firstBaseUpdate=R,a.lastBaseUpdate=Y,i===null&&(a.shared.lanes=0),El|=o,e.lanes=o,e.memoizedState=F}}function lc(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function nc(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)lc(l[e],t)}var wn=U(null),yi=U(0);function ac(e,t){e=nl,I(yi,e),I(wn,t),nl=e|t.baseLanes}function ru(){I(yi,nl),I(wn,wn.current)}function uu(){nl=yi.current,Q(wn),Q(yi)}var pl=0,ve=null,De=null,Fe=null,mi=!1,An=!1,Il=!1,vi=0,ha=0,Tn=null,Ih=0;function Ve(){throw Error(c(321))}function su(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function ou(e,t,l,n,a,i){return pl=i,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,y.H=e===null||e.memoizedState===null?Gc:Yc,Il=!1,i=l(n,a),Il=!1,An&&(i=rc(t,l,n,a)),ic(e),i}function ic(e){y.H=Ai;var t=De!==null&&De.next!==null;if(pl=0,Fe=De=ve=null,mi=!1,ha=0,Tn=null,t)throw Error(c(300));e===null||Je||(e=e.dependencies,e!==null&&di(e)&&(Je=!0))}function rc(e,t,l,n){ve=e;var a=0;do{if(An&&(Tn=null),ha=0,An=!1,25<=a)throw Error(c(301));if(a+=1,Fe=De=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}y.H=np,i=t(l,n)}while(An);return i}function Jh(){var e=y.H,t=e.useState()[0];return t=typeof t.then=="function"?pa(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ve.flags|=1024),t}function cu(){var e=vi!==0;return vi=0,e}function fu(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function du(e){if(mi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mi=!1}pl=0,Fe=De=ve=null,An=!1,ha=vi=0,Tn=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?ve.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Qe(){if(De===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Fe===null?ve.memoizedState:Fe.next;if(t!==null)Fe=t,De=e;else{if(e===null)throw ve.alternate===null?Error(c(467)):Error(c(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Fe===null?ve.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pa(e){var t=ha;return ha+=1,Tn===null&&(Tn=[]),e=Po(Tn,e,t),t=ve,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,y.H=t===null||t.memoizedState===null?Gc:Yc),e}function xi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pa(e);if(e.$$typeof===H)return at(e)}throw Error(c(438,String(e)))}function hu(e){var t=null,l=ve.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=ve.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=gu(),ve.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=ce;return t.index++,l}function Jt(e,t){return typeof t=="function"?t(e):t}function Si(e){var t=Qe();return pu(t,De,e)}function pu(e,t,l){var n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=l;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var d=o=null,E=null,R=t,Y=!1;do{var F=R.lane&-536870913;if(F!==R.lane?(Ae&F)===F:(pl&F)===F){var M=R.revertLane;if(M===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),F===En&&(Y=!0);else if((pl&M)===M){R=R.next,M===En&&(Y=!0);continue}else F={lane:0,revertLane:R.revertLane,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},E===null?(d=E=F,o=i):E=E.next=F,ve.lanes|=M,El|=M;F=R.action,Il&&l(i,F),i=R.hasEagerState?R.eagerState:l(i,F)}else M={lane:F,revertLane:R.revertLane,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},E===null?(d=E=M,o=i):E=E.next=M,ve.lanes|=F,El|=F;R=R.next}while(R!==null&&R!==t);if(E===null?o=i:E.next=d,!pt(i,e.memoizedState)&&(Je=!0,Y&&(l=Nn,l!==null)))throw l;e.memoizedState=i,e.baseState=o,e.baseQueue=E,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function bu(e){var t=Qe(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,i=t.memoizedState;if(a!==null){l.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);pt(i,t.memoizedState)||(Je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,n]}function uc(e,t,l){var n=ve,a=Qe(),i=Ce;if(i){if(l===void 0)throw Error(c(407));l=l()}else l=t();var o=!pt((De||a).memoizedState,l);o&&(a.memoizedState=l,Je=!0),a=a.queue;var d=cc.bind(null,n,a,e);if(ba(2048,8,d,[e]),a.getSnapshot!==t||o||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,_n(9,Ei(),oc.bind(null,n,a,l,t),null),Ue===null)throw Error(c(349));i||(pl&124)!==0||sc(n,t,l)}return l}function sc(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ve.updateQueue,t===null?(t=gu(),ve.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function oc(e,t,l,n){t.value=l,t.getSnapshot=n,fc(t)&&dc(e)}function cc(e,t,l){return l(function(){fc(t)&&dc(e)})}function fc(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function dc(e){var t=mn(e,2);t!==null&&St(t,e,2)}function yu(e){var t=ot();if(typeof e=="function"){var l=e;if(e=l(),Il){sl(!0);try{l()}finally{sl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:e},t}function gc(e,t,l,n){return e.baseState=l,pu(e,De,typeof n=="function"?n:Jt)}function Wh(e,t,l,n,a){if(wi(e))throw Error(c(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};y.T!==null?l(!0):i.isTransition=!1,n(i),l=t.pending,l===null?(i.next=t.pending=i,hc(t,i)):(i.next=l.next,t.pending=l.next=i)}}function hc(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=y.T,o={};y.T=o;try{var d=l(a,n),E=y.S;E!==null&&E(o,d),pc(e,t,d)}catch(R){mu(e,t,R)}finally{y.T=i}}else try{i=l(a,n),pc(e,t,i)}catch(R){mu(e,t,R)}}function pc(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){bc(e,t,n)},function(n){return mu(e,t,n)}):bc(e,t,l)}function bc(e,t,l){t.status="fulfilled",t.value=l,yc(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,hc(e,l)))}function mu(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,yc(t),t=t.next;while(t!==n)}e.action=null}function yc(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mc(e,t){return t}function vc(e,t){if(Ce){var l=Ue.formState;if(l!==null){e:{var n=ve;if(Ce){if(Ge){t:{for(var a=Ge,i=Bt;a.nodeType!==8;){if(!i){a=null;break t}if(a=Ut(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Ge=Ut(a.nextSibling),n=a.data==="F!";break e}}Fl(n)}n=!1}n&&(t=l[0])}}return l=ot(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mc,lastRenderedState:t},l.queue=n,l=Bc.bind(null,ve,n),n.dispatch=l,n=yu(!1),i=Nu.bind(null,ve,!1,n.queue),n=ot(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=Wh.bind(null,ve,a,i,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function xc(e){var t=Qe();return Sc(t,De,e)}function Sc(e,t,l){if(t=pu(e,t,mc)[0],e=Si(Jt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=pa(t)}catch(o){throw o===oa?pi:o}else n=t;t=Qe();var a=t.queue,i=a.dispatch;return l!==t.memoizedState&&(ve.flags|=2048,_n(9,Ei(),Ph.bind(null,a,l),null)),[n,i,e]}function Ph(e,t){e.action=t}function Ec(e){var t=Qe(),l=De;if(l!==null)return Sc(t,l,e);Qe(),t=t.memoizedState,l=Qe();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function _n(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=ve.updateQueue,t===null&&(t=gu(),ve.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function Ei(){return{destroy:void 0,resource:void 0}}function Nc(){return Qe().memoizedState}function Ni(e,t,l,n){var a=ot();n=n===void 0?null:n,ve.flags|=e,a.memoizedState=_n(1|t,Ei(),l,n)}function ba(e,t,l,n){var a=Qe();n=n===void 0?null:n;var i=a.memoizedState.inst;De!==null&&n!==null&&su(n,De.memoizedState.deps)?a.memoizedState=_n(t,i,l,n):(ve.flags|=e,a.memoizedState=_n(1|t,i,l,n))}function wc(e,t){Ni(8390656,8,e,t)}function Ac(e,t){ba(2048,8,e,t)}function Tc(e,t){return ba(4,2,e,t)}function _c(e,t){return ba(4,4,e,t)}function jc(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Cc(e,t,l){l=l!=null?l.concat([e]):null,ba(4,4,jc.bind(null,t,e),l)}function vu(){}function kc(e,t){var l=Qe();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&su(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Oc(e,t){var l=Qe();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&su(t,n[1]))return n[0];if(n=e(),Il){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[n,t],n}function xu(e,t,l){return l===void 0||(pl&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=Mf(),ve.lanes|=e,El|=e,l)}function Dc(e,t,l,n){return pt(l,t)?l:wn.current!==null?(e=xu(e,l,n),pt(e,t)||(Je=!0),e):(pl&42)===0?(Je=!0,e.memoizedState=l):(e=Mf(),ve.lanes|=e,El|=e,t)}function Rc(e,t,l,n,a){var i=G.p;G.p=i!==0&&8>i?i:8;var o=y.T,d={};y.T=d,Nu(e,!1,t,l);try{var E=a(),R=y.S;if(R!==null&&R(d,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var Y=$h(E,n);ya(e,t,Y,xt(e))}else ya(e,t,n,xt(e))}catch(F){ya(e,t,{then:function(){},status:"rejected",reason:F},xt())}finally{G.p=i,y.T=o}}function ep(){}function Su(e,t,l,n){if(e.tag!==5)throw Error(c(476));var a=zc(e).queue;Rc(e,a,t,$,l===null?ep:function(){return Mc(e),l(n)})}function zc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:$},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mc(e){var t=zc(e).next.queue;ya(e,t,{},xt())}function Eu(){return at(Ma)}function Lc(){return Qe().memoizedState}function Uc(){return Qe().memoizedState}function tp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=xt();e=gl(l);var n=hl(t,e,l);n!==null&&(St(n,t,l),fa(n,t,l)),t={cache:Wr()},e.payload=t;return}t=t.return}}function lp(e,t,l){var n=xt();l={lane:n,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},wi(e)?Hc(t,l):(l=Yr(e,t,l,n),l!==null&&(St(l,e,n),qc(l,t,n)))}function Bc(e,t,l){var n=xt();ya(e,t,l,n)}function ya(e,t,l,n){var a={lane:n,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(wi(e))Hc(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,d=i(o,l);if(a.hasEagerState=!0,a.eagerState=d,pt(d,o))return ui(e,t,a,0),Ue===null&&ri(),!1}catch{}finally{}if(l=Yr(e,t,a,n),l!==null)return St(l,e,n),qc(l,t,n),!0}return!1}function Nu(e,t,l,n){if(n={lane:2,revertLane:ts(),action:n,hasEagerState:!1,eagerState:null,next:null},wi(e)){if(t)throw Error(c(479))}else t=Yr(e,l,n,2),t!==null&&St(t,e,2)}function wi(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Hc(e,t){An=mi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function qc(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Qs(e,l)}}var Ai={readContext:at,use:xi,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve},Gc={readContext:at,use:xi,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:wc,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ni(4194308,4,jc.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){Ni(4,2,e,t)},useMemo:function(e,t){var l=ot();t=t===void 0?null:t;var n=e();if(Il){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=ot();if(l!==void 0){var a=l(t);if(Il){sl(!0);try{l(t)}finally{sl(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=lp.bind(null,ve,e),[n.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=yu(e);var t=e.queue,l=Bc.bind(null,ve,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:vu,useDeferredValue:function(e,t){var l=ot();return xu(l,e,t)},useTransition:function(){var e=yu(!1);return e=Rc.bind(null,ve,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=ve,a=ot();if(Ce){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Ue===null)throw Error(c(349));(Ae&124)!==0||sc(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,wc(cc.bind(null,n,i,e),[e]),n.flags|=2048,_n(9,Ei(),oc.bind(null,n,i,l,t),null),l},useId:function(){var e=ot(),t=Ue.identifierPrefix;if(Ce){var l=Kt,n=Qt;l=(n&~(1<<32-ht(n)-1)).toString(32)+l,t="«"+t+"R"+l,l=vi++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=Ih++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Eu,useFormState:vc,useActionState:vc,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Nu.bind(null,ve,!0,l),l.dispatch=t,[e,t]},useMemoCache:hu,useCacheRefresh:function(){return ot().memoizedState=tp.bind(null,ve)}},Yc={readContext:at,use:xi,useCallback:kc,useContext:at,useEffect:Ac,useImperativeHandle:Cc,useInsertionEffect:Tc,useLayoutEffect:_c,useMemo:Oc,useReducer:Si,useRef:Nc,useState:function(){return Si(Jt)},useDebugValue:vu,useDeferredValue:function(e,t){var l=Qe();return Dc(l,De.memoizedState,e,t)},useTransition:function(){var e=Si(Jt)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:pa(e),t]},useSyncExternalStore:uc,useId:Lc,useHostTransitionStatus:Eu,useFormState:xc,useActionState:xc,useOptimistic:function(e,t){var l=Qe();return gc(l,De,e,t)},useMemoCache:hu,useCacheRefresh:Uc},np={readContext:at,use:xi,useCallback:kc,useContext:at,useEffect:Ac,useImperativeHandle:Cc,useInsertionEffect:Tc,useLayoutEffect:_c,useMemo:Oc,useReducer:bu,useRef:Nc,useState:function(){return bu(Jt)},useDebugValue:vu,useDeferredValue:function(e,t){var l=Qe();return De===null?xu(l,e,t):Dc(l,De.memoizedState,e,t)},useTransition:function(){var e=bu(Jt)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:pa(e),t]},useSyncExternalStore:uc,useId:Lc,useHostTransitionStatus:Eu,useFormState:Ec,useActionState:Ec,useOptimistic:function(e,t){var l=Qe();return De!==null?gc(l,De,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:hu,useCacheRefresh:Uc},jn=null,ma=0;function Ti(e){var t=ma;return ma+=1,jn===null&&(jn=[]),Po(jn,e,t)}function va(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function _i(e,t){throw t.$$typeof===b?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Zc(e){var t=e._init;return t(e._payload)}function Vc(e){function t(O,C){if(e){var D=O.deletions;D===null?(O.deletions=[C],O.flags|=16):D.push(C)}}function l(O,C){if(!e)return null;for(;C!==null;)t(O,C),C=C.sibling;return null}function n(O){for(var C=new Map;O!==null;)O.key!==null?C.set(O.key,O):C.set(O.index,O),O=O.sibling;return C}function a(O,C){return O=Ft(O,C),O.index=0,O.sibling=null,O}function i(O,C,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<C?(O.flags|=67108866,C):D):(O.flags|=67108866,C)):(O.flags|=1048576,C)}function o(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function d(O,C,D,V){return C===null||C.tag!==6?(C=Vr(D,O.mode,V),C.return=O,C):(C=a(C,D),C.return=O,C)}function E(O,C,D,V){var ie=D.type;return ie===v?Y(O,C,D.props.children,V,D.key):C!==null&&(C.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===se&&Zc(ie)===C.type)?(C=a(C,D.props),va(C,D),C.return=O,C):(C=oi(D.type,D.key,D.props,null,O.mode,V),va(C,D),C.return=O,C)}function R(O,C,D,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=Xr(D,O.mode,V),C.return=O,C):(C=a(C,D.children||[]),C.return=O,C)}function Y(O,C,D,V,ie){return C===null||C.tag!==7?(C=Yl(D,O.mode,V,ie),C.return=O,C):(C=a(C,D),C.return=O,C)}function F(O,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Vr(""+C,O.mode,D),C.return=O,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return D=oi(C.type,C.key,C.props,null,O.mode,D),va(D,C),D.return=O,D;case q:return C=Xr(C,O.mode,D),C.return=O,C;case se:var V=C._init;return C=V(C._payload),F(O,C,D)}if(J(C)||K(C))return C=Yl(C,O.mode,D,null),C.return=O,C;if(typeof C.then=="function")return F(O,Ti(C),D);if(C.$$typeof===H)return F(O,gi(O,C),D);_i(O,C)}return null}function M(O,C,D,V){var ie=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ie!==null?null:d(O,C,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case k:return D.key===ie?E(O,C,D,V):null;case q:return D.key===ie?R(O,C,D,V):null;case se:return ie=D._init,D=ie(D._payload),M(O,C,D,V)}if(J(D)||K(D))return ie!==null?null:Y(O,C,D,V,null);if(typeof D.then=="function")return M(O,C,Ti(D),V);if(D.$$typeof===H)return M(O,C,gi(O,D),V);_i(O,D)}return null}function B(O,C,D,V,ie){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return O=O.get(D)||null,d(C,O,""+V,ie);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case k:return O=O.get(V.key===null?D:V.key)||null,E(C,O,V,ie);case q:return O=O.get(V.key===null?D:V.key)||null,R(C,O,V,ie);case se:var xe=V._init;return V=xe(V._payload),B(O,C,D,V,ie)}if(J(V)||K(V))return O=O.get(D)||null,Y(C,O,V,ie,null);if(typeof V.then=="function")return B(O,C,D,Ti(V),ie);if(V.$$typeof===H)return B(O,C,D,gi(C,V),ie);_i(C,V)}return null}function de(O,C,D,V){for(var ie=null,xe=null,ue=C,fe=C=0,Pe=null;ue!==null&&fe<D.length;fe++){ue.index>fe?(Pe=ue,ue=null):Pe=ue.sibling;var _e=M(O,ue,D[fe],V);if(_e===null){ue===null&&(ue=Pe);break}e&&ue&&_e.alternate===null&&t(O,ue),C=i(_e,C,fe),xe===null?ie=_e:xe.sibling=_e,xe=_e,ue=Pe}if(fe===D.length)return l(O,ue),Ce&&Vl(O,fe),ie;if(ue===null){for(;fe<D.length;fe++)ue=F(O,D[fe],V),ue!==null&&(C=i(ue,C,fe),xe===null?ie=ue:xe.sibling=ue,xe=ue);return Ce&&Vl(O,fe),ie}for(ue=n(ue);fe<D.length;fe++)Pe=B(ue,O,fe,D[fe],V),Pe!==null&&(e&&Pe.alternate!==null&&ue.delete(Pe.key===null?fe:Pe.key),C=i(Pe,C,fe),xe===null?ie=Pe:xe.sibling=Pe,xe=Pe);return e&&ue.forEach(function(Ol){return t(O,Ol)}),Ce&&Vl(O,fe),ie}function oe(O,C,D,V){if(D==null)throw Error(c(151));for(var ie=null,xe=null,ue=C,fe=C=0,Pe=null,_e=D.next();ue!==null&&!_e.done;fe++,_e=D.next()){ue.index>fe?(Pe=ue,ue=null):Pe=ue.sibling;var Ol=M(O,ue,_e.value,V);if(Ol===null){ue===null&&(ue=Pe);break}e&&ue&&Ol.alternate===null&&t(O,ue),C=i(Ol,C,fe),xe===null?ie=Ol:xe.sibling=Ol,xe=Ol,ue=Pe}if(_e.done)return l(O,ue),Ce&&Vl(O,fe),ie;if(ue===null){for(;!_e.done;fe++,_e=D.next())_e=F(O,_e.value,V),_e!==null&&(C=i(_e,C,fe),xe===null?ie=_e:xe.sibling=_e,xe=_e);return Ce&&Vl(O,fe),ie}for(ue=n(ue);!_e.done;fe++,_e=D.next())_e=B(ue,O,fe,_e.value,V),_e!==null&&(e&&_e.alternate!==null&&ue.delete(_e.key===null?fe:_e.key),C=i(_e,C,fe),xe===null?ie=_e:xe.sibling=_e,xe=_e);return e&&ue.forEach(function(ab){return t(O,ab)}),Ce&&Vl(O,fe),ie}function ze(O,C,D,V){if(typeof D=="object"&&D!==null&&D.type===v&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case k:e:{for(var ie=D.key;C!==null;){if(C.key===ie){if(ie=D.type,ie===v){if(C.tag===7){l(O,C.sibling),V=a(C,D.props.children),V.return=O,O=V;break e}}else if(C.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===se&&Zc(ie)===C.type){l(O,C.sibling),V=a(C,D.props),va(V,D),V.return=O,O=V;break e}l(O,C);break}else t(O,C);C=C.sibling}D.type===v?(V=Yl(D.props.children,O.mode,V,D.key),V.return=O,O=V):(V=oi(D.type,D.key,D.props,null,O.mode,V),va(V,D),V.return=O,O=V)}return o(O);case q:e:{for(ie=D.key;C!==null;){if(C.key===ie)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){l(O,C.sibling),V=a(C,D.children||[]),V.return=O,O=V;break e}else{l(O,C);break}else t(O,C);C=C.sibling}V=Xr(D,O.mode,V),V.return=O,O=V}return o(O);case se:return ie=D._init,D=ie(D._payload),ze(O,C,D,V)}if(J(D))return de(O,C,D,V);if(K(D)){if(ie=K(D),typeof ie!="function")throw Error(c(150));return D=ie.call(D),oe(O,C,D,V)}if(typeof D.then=="function")return ze(O,C,Ti(D),V);if(D.$$typeof===H)return ze(O,C,gi(O,D),V);_i(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(l(O,C.sibling),V=a(C,D),V.return=O,O=V):(l(O,C),V=Vr(D,O.mode,V),V.return=O,O=V),o(O)):l(O,C)}return function(O,C,D,V){try{ma=0;var ie=ze(O,C,D,V);return jn=null,ie}catch(ue){if(ue===oa||ue===pi)throw ue;var xe=bt(29,ue,null,O.mode);return xe.lanes=V,xe.return=O,xe}finally{}}}var Cn=Vc(!0),Xc=Vc(!1),Dt=U(null),Ht=null;function bl(e){var t=e.alternate;I($e,$e.current&1),I(Dt,e),Ht===null&&(t===null||wn.current!==null||t.memoizedState!==null)&&(Ht=e)}function Fc(e){if(e.tag===22){if(I($e,$e.current),I(Dt,e),Ht===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Ht=e)}}else yl()}function yl(){I($e,$e.current),I(Dt,Dt.current)}function Wt(e){Q(Dt),Ht===e&&(Ht=null),Q($e)}var $e=U(0);function ji(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||gs(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function wu(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:w({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Au={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=xt(),a=gl(n);a.payload=t,l!=null&&(a.callback=l),t=hl(e,a,n),t!==null&&(St(t,e,n),fa(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=xt(),a=gl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=hl(e,a,n),t!==null&&(St(t,e,n),fa(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=xt(),n=gl(l);n.tag=2,t!=null&&(n.callback=t),t=hl(e,n,l),t!==null&&(St(t,e,l),fa(t,e,l))}};function Qc(e,t,l,n,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!ta(l,n)||!ta(a,i):!0}function Kc(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&Au.enqueueReplaceState(t,t.state,null)}function Jl(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=w({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}var Ci=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function $c(e){Ci(e)}function Ic(e){console.error(e)}function Jc(e){Ci(e)}function ki(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Wc(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Tu(e,t,l){return l=gl(l),l.tag=3,l.payload={element:null},l.callback=function(){ki(e,t)},l}function Pc(e){return e=gl(e),e.tag=3,e}function ef(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){Wc(t,l,n)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Wc(t,l,n),typeof a!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function ap(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&ra(t,l,a,!0),l=Dt.current,l!==null){switch(l.tag){case 13:return Ht===null?Iu():l.alternate===null&&Ye===0&&(Ye=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===tu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Wu(e,n,a)),!1;case 22:return l.flags|=65536,n===tu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Wu(e,n,a)),!1}throw Error(c(435,l.tag))}return Wu(e,n,a),Iu(),!1}if(Ce)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Kr&&(e=Error(c(422),{cause:n}),ia(jt(e,l)))):(n!==Kr&&(t=Error(c(423),{cause:n}),ia(jt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=jt(n,l),a=Tu(e.stateNode,n,a),au(e,a),Ye!==4&&(Ye=2)),!1;var i=Error(c(520),{cause:n});if(i=jt(i,l),Ta===null?Ta=[i]:Ta.push(i),Ye!==4&&(Ye=2),t===null)return!0;n=jt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=Tu(l.stateNode,n,e),au(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Nl===null||!Nl.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=Pc(a),ef(a,e,l,n),au(l,a),!1}l=l.return}while(l!==null);return!1}var tf=Error(c(461)),Je=!1;function et(e,t,l,n){t.child=e===null?Xc(t,null,l,n):Cn(t,e.child,l,n)}function lf(e,t,l,n,a){l=l.render;var i=t.ref;if("ref"in n){var o={};for(var d in n)d!=="ref"&&(o[d]=n[d])}else o=n;return Kl(t),n=ou(e,t,l,o,i,a),d=cu(),e!==null&&!Je?(fu(e,t,a),Pt(e,t,a)):(Ce&&d&&Fr(t),t.flags|=1,et(e,t,n,a),t.child)}function nf(e,t,l,n,a){if(e===null){var i=l.type;return typeof i=="function"&&!Zr(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,af(e,t,i,n,a)):(e=oi(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!zu(e,a)){var o=i.memoizedProps;if(l=l.compare,l=l!==null?l:ta,l(o,n)&&e.ref===t.ref)return Pt(e,t,a)}return t.flags|=1,e=Ft(i,n),e.ref=t.ref,e.return=t,t.child=e}function af(e,t,l,n,a){if(e!==null){var i=e.memoizedProps;if(ta(i,n)&&e.ref===t.ref)if(Je=!1,t.pendingProps=n=i,zu(e,a))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,Pt(e,t,a)}return _u(e,t,l,n,a)}function rf(e,t,l){var n=t.pendingProps,a=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden"){if((t.flags&128)!==0){if(n=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;t.childLanes=i&~n}else t.childLanes=0,t.child=null;return uf(e,t,n,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&hi(t,i!==null?i.cachePool:null),i!==null?ac(t,i):ru(),Fc(t);else return t.lanes=t.childLanes=536870912,uf(e,t,i!==null?i.baseLanes|l:l,l)}else i!==null?(hi(t,i.cachePool),ac(t,i),yl(),t.memoizedState=null):(e!==null&&hi(t,null),ru(),yl());return et(e,t,a,l),t.child}function uf(e,t,l,n){var a=eu();return a=a===null?null:{parent:Ke._currentValue,pool:a},t.memoizedState={baseLanes:l,cachePool:a},e!==null&&hi(t,null),ru(),Fc(t),e!==null&&ra(e,t,n,!0),null}function Oi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function _u(e,t,l,n,a){return Kl(t),l=ou(e,t,l,n,void 0,a),n=cu(),e!==null&&!Je?(fu(e,t,a),Pt(e,t,a)):(Ce&&n&&Fr(t),t.flags|=1,et(e,t,l,a),t.child)}function sf(e,t,l,n,a,i){return Kl(t),t.updateQueue=null,l=rc(t,n,l,a),ic(e),n=cu(),e!==null&&!Je?(fu(e,t,i),Pt(e,t,i)):(Ce&&n&&Fr(t),t.flags|=1,et(e,t,l,i),t.child)}function of(e,t,l,n,a){if(Kl(t),t.stateNode===null){var i=vn,o=l.contextType;typeof o=="object"&&o!==null&&(i=at(o)),i=new l(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Au,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},lu(t),o=l.contextType,i.context=typeof o=="object"&&o!==null?at(o):vn,i.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(wu(t,l,o,n),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&Au.enqueueReplaceState(i,i.state,null),ga(t,n,i,a),da(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,E=Jl(l,d);i.props=E;var R=i.context,Y=l.contextType;o=vn,typeof Y=="object"&&Y!==null&&(o=at(Y));var F=l.getDerivedStateFromProps;Y=typeof F=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,Y||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||R!==o)&&Kc(t,i,n,o),dl=!1;var M=t.memoizedState;i.state=M,ga(t,n,i,a),da(),R=t.memoizedState,d||M!==R||dl?(typeof F=="function"&&(wu(t,l,F,n),R=t.memoizedState),(E=dl||Qc(t,l,E,n,M,R,o))?(Y||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=R),i.props=n,i.state=R,i.context=o,n=E):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,nu(e,t),o=t.memoizedProps,Y=Jl(l,o),i.props=Y,F=t.pendingProps,M=i.context,R=l.contextType,E=vn,typeof R=="object"&&R!==null&&(E=at(R)),d=l.getDerivedStateFromProps,(R=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==F||M!==E)&&Kc(t,i,n,E),dl=!1,M=t.memoizedState,i.state=M,ga(t,n,i,a),da();var B=t.memoizedState;o!==F||M!==B||dl||e!==null&&e.dependencies!==null&&di(e.dependencies)?(typeof d=="function"&&(wu(t,l,d,n),B=t.memoizedState),(Y=dl||Qc(t,l,Y,n,M,B,E)||e!==null&&e.dependencies!==null&&di(e.dependencies))?(R||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,B,E),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,B,E)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=B),i.props=n,i.state=B,i.context=E,n=Y):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,Oi(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=Cn(t,e.child,null,a),t.child=Cn(t,null,l,a)):et(e,t,l,a),t.memoizedState=i.state,e=t.child):e=Pt(e,t,a),e}function cf(e,t,l,n){return aa(),t.flags|=256,et(e,t,l,n),t.child}var ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cu(e){return{baseLanes:e,cachePool:Io()}}function ku(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Rt),e}function ff(e,t,l){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(a?bl(t):yl(),Ce){var d=Ge,E;if(E=d){e:{for(E=d,d=Bt;E.nodeType!==8;){if(!d){d=null;break e}if(E=Ut(E.nextSibling),E===null){d=null;break e}}d=E}d!==null?(t.memoizedState={dehydrated:d,treeContext:Zl!==null?{id:Qt,overflow:Kt}:null,retryLane:536870912,hydrationErrors:null},E=bt(18,null,null,0),E.stateNode=d,E.return=t,t.child=E,rt=t,Ge=null,E=!0):E=!1}E||Fl(t)}if(d=t.memoizedState,d!==null&&(d=d.dehydrated,d!==null))return gs(d)?t.lanes=32:t.lanes=536870912,null;Wt(t)}return d=n.children,n=n.fallback,a?(yl(),a=t.mode,d=Di({mode:"hidden",children:d},a),n=Yl(n,a,l,null),d.return=t,n.return=t,d.sibling=n,t.child=d,a=t.child,a.memoizedState=Cu(l),a.childLanes=ku(e,o,l),t.memoizedState=ju,n):(bl(t),Ou(t,d))}if(E=e.memoizedState,E!==null&&(d=E.dehydrated,d!==null)){if(i)t.flags&256?(bl(t),t.flags&=-257,t=Du(e,t,l)):t.memoizedState!==null?(yl(),t.child=e.child,t.flags|=128,t=null):(yl(),a=n.fallback,d=t.mode,n=Di({mode:"visible",children:n.children},d),a=Yl(a,d,l,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,Cn(t,e.child,null,l),n=t.child,n.memoizedState=Cu(l),n.childLanes=ku(e,o,l),t.memoizedState=ju,t=a);else if(bl(t),gs(d)){if(o=d.nextSibling&&d.nextSibling.dataset,o)var R=o.dgst;o=R,n=Error(c(419)),n.stack="",n.digest=o,ia({value:n,source:null,stack:null}),t=Du(e,t,l)}else if(Je||ra(e,t,l,!1),o=(l&e.childLanes)!==0,Je||o){if(o=Ue,o!==null&&(n=l&-l,n=(n&42)!==0?1:hr(n),n=(n&(o.suspendedLanes|l))!==0?0:n,n!==0&&n!==E.retryLane))throw E.retryLane=n,mn(e,n),St(o,e,n),tf;d.data==="$?"||Iu(),t=Du(e,t,l)}else d.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ge=Ut(d.nextSibling),rt=t,Ce=!0,Xl=null,Bt=!1,e!==null&&(kt[Ot++]=Qt,kt[Ot++]=Kt,kt[Ot++]=Zl,Qt=e.id,Kt=e.overflow,Zl=t),t=Ou(t,n.children),t.flags|=4096);return t}return a?(yl(),a=n.fallback,d=t.mode,E=e.child,R=E.sibling,n=Ft(E,{mode:"hidden",children:n.children}),n.subtreeFlags=E.subtreeFlags&65011712,R!==null?a=Ft(R,a):(a=Yl(a,d,l,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,d=e.child.memoizedState,d===null?d=Cu(l):(E=d.cachePool,E!==null?(R=Ke._currentValue,E=E.parent!==R?{parent:R,pool:R}:E):E=Io(),d={baseLanes:d.baseLanes|l,cachePool:E}),a.memoizedState=d,a.childLanes=ku(e,o,l),t.memoizedState=ju,n):(bl(t),l=e.child,e=l.sibling,l=Ft(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function Ou(e,t){return t=Di({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Di(e,t){return e=bt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Du(e,t,l){return Cn(t,e.child,null,l),e=Ou(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function df(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ir(e.return,t,l)}function Ru(e,t,l,n,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=l,i.tailMode=a)}function gf(e,t,l){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(et(e,t,n.children,l),n=$e.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&df(e,l,t);else if(e.tag===19)df(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}switch(I($e,n),a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&ji(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Ru(t,!1,a,l,i);break;case"backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&ji(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Ru(t,!0,l,null,i);break;case"together":Ru(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Pt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),El|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ra(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=Ft(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ft(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function zu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&di(e)))}function ip(e,t,l){switch(t.tag){case 3:P(t,t.stateNode.containerInfo),fl(t,Ke,e.memoizedState.cache),aa();break;case 27:case 5:Ze(t);break;case 4:P(t,t.stateNode.containerInfo);break;case 10:fl(t,t.type,t.memoizedProps.value);break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(bl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ff(e,t,l):(bl(t),e=Pt(e,t,l),e!==null?e.sibling:null);bl(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(ra(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return gf(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),I($e,$e.current),n)break;return null;case 22:case 23:return t.lanes=0,rf(e,t,l);case 24:fl(t,Ke,e.memoizedState.cache)}return Pt(e,t,l)}function hf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!zu(e,l)&&(t.flags&128)===0)return Je=!1,ip(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,Ce&&(t.flags&1048576)!==0&&Zo(t,fi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var n=t.elementType,a=n._init;if(n=a(n._payload),t.type=n,typeof n=="function")Zr(n)?(e=Jl(n,e),t.tag=1,t=of(null,t,n,e,l)):(t.tag=0,t=_u(null,t,n,e,l));else{if(n!=null){if(a=n.$$typeof,a===z){t.tag=11,t=lf(null,t,n,e,l);break e}else if(a===le){t.tag=14,t=nf(null,t,n,e,l);break e}}throw t=ge(n)||n,Error(c(306,t,""))}}return t;case 0:return _u(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Jl(n,t.pendingProps),of(e,t,n,a,l);case 3:e:{if(P(t,t.stateNode.containerInfo),e===null)throw Error(c(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,nu(e,t),ga(t,n,null,l);var o=t.memoizedState;if(n=o.cache,fl(t,Ke,n),n!==i.cache&&Jr(t,[Ke],l,!0),da(),n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=cf(e,t,n,l);break e}else if(n!==a){a=jt(Error(c(424)),t),ia(a),t=cf(e,t,n,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=Ut(e.firstChild),rt=t,Ce=!0,Xl=null,Bt=!0,l=Xc(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(aa(),n===a){t=Pt(e,t,l);break e}et(e,t,n,l)}t=t.child}return t;case 26:return Oi(e,t),e===null?(l=md(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ce||(l=t.type,e=t.pendingProps,n=Fi(re.current).createElement(l),n[nt]=t,n[ut]=e,lt(n,l,e),Ie(n),t.stateNode=n):t.memoizedState=md(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ze(t),e===null&&Ce&&(n=t.stateNode=pd(t.type,t.pendingProps,re.current),rt=t,Bt=!0,a=Ge,Tl(t.type)?(hs=a,Ge=Ut(n.firstChild)):Ge=a),et(e,t,t.pendingProps.children,l),Oi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((a=n=Ge)&&(n=Rp(n,t.type,t.pendingProps,Bt),n!==null?(t.stateNode=n,rt=t,Ge=Ut(n.firstChild),Bt=!1,a=!0):a=!1),a||Fl(t)),Ze(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,n=i.children,cs(a,i)?n=null:o!==null&&cs(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=ou(e,t,Jh,null,null,l),Ma._currentValue=a),Oi(e,t),et(e,t,n,l),t.child;case 6:return e===null&&Ce&&((e=l=Ge)&&(l=zp(l,t.pendingProps,Bt),l!==null?(t.stateNode=l,rt=t,Ge=null,e=!0):e=!1),e||Fl(t)),null;case 13:return ff(e,t,l);case 4:return P(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Cn(t,null,n,l):et(e,t,n,l),t.child;case 11:return lf(e,t,t.type,t.pendingProps,l);case 7:return et(e,t,t.pendingProps,l),t.child;case 8:return et(e,t,t.pendingProps.children,l),t.child;case 12:return et(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,fl(t,t.type,n.value),et(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Kl(t),a=at(a),n=n(a),t.flags|=1,et(e,t,n,l),t.child;case 14:return nf(e,t,t.type,t.pendingProps,l);case 15:return af(e,t,t.type,t.pendingProps,l);case 19:return gf(e,t,l);case 31:return n=t.pendingProps,l=t.mode,n={mode:n.mode,children:n.children},e===null?(l=Di(n,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=Ft(e.child,n),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return rf(e,t,l);case 24:return Kl(t),n=at(Ke),e===null?(a=eu(),a===null&&(a=Ue,i=Wr(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),t.memoizedState={parent:n,cache:a},lu(t),fl(t,Ke,a)):((e.lanes&l)!==0&&(nu(e,t),ga(t,null,null,l),da()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),fl(t,Ke,n)):(n=i.cache,fl(t,Ke,n),n!==a.cache&&Jr(t,[Ke],l,!0))),et(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function el(e){e.flags|=4}function pf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nd(t)){if(t=Dt.current,t!==null&&((Ae&4194048)===Ae?Ht!==null:(Ae&62914560)!==Ae&&(Ae&536870912)===0||t!==Ht))throw ca=tu,Jo;e.flags|=8192}}function Ri(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xs():536870912,e.lanes|=t,Rn|=t)}function xa(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function rp(e,t,l){var n=t.pendingProps;switch(Qr(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),It(Ke),Te(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(na(t)?el(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fo())),qe(t),null;case 26:return l=t.memoizedState,e===null?(el(t),l!==null?(qe(t),pf(t,l)):(qe(t),t.flags&=-16777217)):l?l!==e.memoizedState?(el(t),qe(t),pf(t,l)):(qe(t),t.flags&=-16777217):(e.memoizedProps!==n&&el(t),qe(t),t.flags&=-16777217),null;case 27:rl(t),l=re.current;var a=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==n&&el(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return qe(t),null}e=ne.current,na(t)?Vo(t):(e=pd(a,n,l),t.stateNode=e,el(t))}return qe(t),null;case 5:if(rl(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&el(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return qe(t),null}if(e=ne.current,na(t))Vo(t);else{switch(a=Fi(re.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof n.is=="string"?a.createElement("select",{is:n.is}):a.createElement("select"),n.multiple?e.multiple=!0:n.size&&(e.size=n.size);break;default:e=typeof n.is=="string"?a.createElement(l,{is:n.is}):a.createElement(l)}}e[nt]=t,e[ut]=n;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(lt(e,l,n),l){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&el(t)}}return qe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&el(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(c(166));if(e=re.current,na(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=rt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[nt]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||sd(e.nodeValue,l)),e||Fl(t)}else e=Fi(e).createTextNode(n),e[nt]=t,t.stateNode=e}return qe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=na(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(c(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(c(317));a[nt]=t}else aa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),a=!1}else a=Fo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Wt(t),t):(Wt(t),null)}if(Wt(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=n!==null,e=e!==null&&e.memoizedState!==null,l){n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool);var i=null;n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),Ri(t,t.updateQueue),qe(t),null;case 4:return Te(),e===null&&is(t.stateNode.containerInfo),qe(t),null;case 10:return It(t.type),qe(t),null;case 19:if(Q($e),a=t.memoizedState,a===null)return qe(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)xa(a,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=ji(e),i!==null){for(t.flags|=128,xa(a,!1),e=i.updateQueue,t.updateQueue=e,Ri(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Yo(l,e),l=l.sibling;return I($e,$e.current&1|2),t.child}e=e.sibling}a.tail!==null&&At()>Li&&(t.flags|=128,n=!0,xa(a,!1),t.lanes=4194304)}else{if(!n)if(e=ji(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Ri(t,e),xa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Ce)return qe(t),null}else 2*At()-a.renderingStartTime>Li&&l!==536870912&&(t.flags|=128,n=!0,xa(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=At(),t.sibling=null,e=$e.current,I($e,n?e&1|2:e&1),t):(qe(t),null);case 22:case 23:return Wt(t),uu(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ri(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&Q($l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(Ke),qe(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function up(e,t){switch(Qr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Ke),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return rl(t),null;case 13:if(Wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q($e),null;case 4:return Te(),null;case 10:return It(t.type),null;case 22:case 23:return Wt(t),uu(),e!==null&&Q($l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Ke),null;case 25:return null;default:return null}}function bf(e,t){switch(Qr(t),t.tag){case 3:It(Ke),Te();break;case 26:case 27:case 5:rl(t);break;case 4:Te();break;case 13:Wt(t);break;case 19:Q($e);break;case 10:It(t.type);break;case 22:case 23:Wt(t),uu(),e!==null&&Q($l);break;case 24:It(Ke)}}function Sa(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var i=l.create,o=l.inst;n=i(),o.destroy=n}l=l.next}while(l!==a)}}catch(d){Le(t,t.return,d)}}function ml(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var o=n.inst,d=o.destroy;if(d!==void 0){o.destroy=void 0,a=t;var E=l,R=d;try{R()}catch(Y){Le(a,E,Y)}}}n=n.next}while(n!==i)}}catch(Y){Le(t,t.return,Y)}}function yf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{nc(t,l)}catch(n){Le(e,e.return,n)}}}function mf(e,t,l){l.props=Jl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Le(e,t,n)}}function Ea(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){Le(e,t,a)}}function qt(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Le(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Le(e,t,a)}else l.current=null}function vf(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Le(e,e.return,a)}}function Mu(e,t,l){try{var n=e.stateNode;jp(n,e.type,l,t),n[ut]=t}catch(a){Le(e,e.return,a)}}function xf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uu(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Xi));else if(n!==4&&(n===27&&Tl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Uu(e,t,l),e=e.sibling;e!==null;)Uu(e,t,l),e=e.sibling}function zi(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&Tl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(zi(e,t,l),e=e.sibling;e!==null;)zi(e,t,l),e=e.sibling}function Sf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);lt(t,n,l),t[nt]=e,t[ut]=l}catch(i){Le(e,e.return,i)}}var tl=!1,Xe=!1,Bu=!1,Ef=typeof WeakSet=="function"?WeakSet:Set,We=null;function sp(e,t){if(e=e.containerInfo,ss=Wi,e=Do(e),Lr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var o=0,d=-1,E=-1,R=0,Y=0,F=e,M=null;t:for(;;){for(var B;F!==l||a!==0&&F.nodeType!==3||(d=o+a),F!==i||n!==0&&F.nodeType!==3||(E=o+n),F.nodeType===3&&(o+=F.nodeValue.length),(B=F.firstChild)!==null;)M=F,F=B;for(;;){if(F===e)break t;if(M===l&&++R===a&&(d=o),M===i&&++Y===n&&(E=o),(B=F.nextSibling)!==null)break;F=M,M=F.parentNode}F=B}l=d===-1||E===-1?null:{start:d,end:E}}else l=null}l=l||{start:0,end:0}}else l=null;for(os={focusedElem:e,selectionRange:l},Wi=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,i=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var de=Jl(l.type,a,l.elementType===l.type);e=n.getSnapshotBeforeUpdate(de,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(oe){Le(l,l.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ds(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ds(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function Nf(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:vl(e,l),n&4&&Sa(5,l);break;case 1:if(vl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){Le(l,l.return,o)}else{var a=Jl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Le(l,l.return,o)}}n&64&&yf(l),n&512&&Ea(l,l.return);break;case 3:if(vl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{nc(e,t)}catch(o){Le(l,l.return,o)}}break;case 27:t===null&&n&4&&Sf(l);case 26:case 5:vl(e,l),t===null&&n&4&&vf(l),n&512&&Ea(l,l.return);break;case 12:vl(e,l);break;case 13:vl(e,l),n&4&&Tf(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=yp.bind(null,l),Mp(e,l))));break;case 22:if(n=l.memoizedState!==null||tl,!n){t=t!==null&&t.memoizedState!==null||Xe,a=tl;var i=Xe;tl=n,(Xe=t)&&!i?xl(e,l,(l.subtreeFlags&8772)!==0):vl(e,l),tl=a,Xe=i}break;case 30:break;default:vl(e,l)}}function wf(e){var t=e.alternate;t!==null&&(e.alternate=null,wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Be=null,ct=!1;function ll(e,t,l){for(l=l.child;l!==null;)Af(e,t,l),l=l.sibling}function Af(e,t,l){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Ll,l)}catch{}switch(l.tag){case 26:Xe||qt(l,t),ll(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Xe||qt(l,t);var n=Be,a=ct;Tl(l.type)&&(Be=l.stateNode,ct=!1),ll(e,t,l),Oa(l.stateNode),Be=n,ct=a;break;case 5:Xe||qt(l,t);case 6:if(n=Be,a=ct,Be=null,ll(e,t,l),Be=n,ct=a,Be!==null)if(ct)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(l.stateNode)}catch(i){Le(l,t,i)}else try{Be.removeChild(l.stateNode)}catch(i){Le(l,t,i)}break;case 18:Be!==null&&(ct?(e=Be,gd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ha(e)):gd(Be,l.stateNode));break;case 4:n=Be,a=ct,Be=l.stateNode.containerInfo,ct=!0,ll(e,t,l),Be=n,ct=a;break;case 0:case 11:case 14:case 15:Xe||ml(2,l,t),Xe||ml(4,l,t),ll(e,t,l);break;case 1:Xe||(qt(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&mf(l,t,n)),ll(e,t,l);break;case 21:ll(e,t,l);break;case 22:Xe=(n=Xe)||l.memoizedState!==null,ll(e,t,l),Xe=n;break;default:ll(e,t,l)}}function Tf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ha(e)}catch(l){Le(t,t.return,l)}}function op(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ef),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ef),t;default:throw Error(c(435,e.tag))}}function Hu(e,t){var l=op(e);t.forEach(function(n){var a=mp.bind(null,e,n);l.has(n)||(l.add(n),n.then(a,a))})}function yt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=e,o=t,d=o;e:for(;d!==null;){switch(d.tag){case 27:if(Tl(d.type)){Be=d.stateNode,ct=!1;break e}break;case 5:Be=d.stateNode,ct=!1;break e;case 3:case 4:Be=d.stateNode.containerInfo,ct=!0;break e}d=d.return}if(Be===null)throw Error(c(160));Af(i,o,a),Be=null,ct=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)_f(t,e),t=t.sibling}var Lt=null;function _f(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),mt(e),n&4&&(ml(3,e,e.return),Sa(3,e),ml(5,e,e.return));break;case 1:yt(t,e),mt(e),n&512&&(Xe||l===null||qt(l,l.return)),n&64&&tl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Lt;if(yt(t,e),mt(e),n&512&&(Xe||l===null||qt(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Fn]||i[nt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),lt(i,n,l),i[nt]=e,Ie(i),n=i;break e;case"link":var o=Sd("link","href",a).get(n+(l.href||""));if(o){for(var d=0;d<o.length;d++)if(i=o[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(d,1);break t}}i=a.createElement(n),lt(i,n,l),a.head.appendChild(i);break;case"meta":if(o=Sd("meta","content",a).get(n+(l.content||""))){for(d=0;d<o.length;d++)if(i=o[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(d,1);break t}}i=a.createElement(n),lt(i,n,l),a.head.appendChild(i);break;default:throw Error(c(468,n))}i[nt]=e,Ie(i),n=i}e.stateNode=n}else Ed(a,e.type,e.stateNode);else e.stateNode=xd(a,n,e.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?Ed(a,e.type,e.stateNode):xd(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Mu(e,e.memoizedProps,l.memoizedProps)}break;case 27:yt(t,e),mt(e),n&512&&(Xe||l===null||qt(l,l.return)),l!==null&&n&4&&Mu(e,e.memoizedProps,l.memoizedProps);break;case 5:if(yt(t,e),mt(e),n&512&&(Xe||l===null||qt(l,l.return)),e.flags&32){a=e.stateNode;try{fn(a,"")}catch(B){Le(e,e.return,B)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Mu(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Bu=!0);break;case 6:if(yt(t,e),mt(e),n&4){if(e.stateNode===null)throw Error(c(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(B){Le(e,e.return,B)}}break;case 3:if($i=null,a=Lt,Lt=Qi(t.containerInfo),yt(t,e),Lt=a,mt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Ha(t.containerInfo)}catch(B){Le(e,e.return,B)}Bu&&(Bu=!1,jf(e));break;case 4:n=Lt,Lt=Qi(e.stateNode.containerInfo),yt(t,e),mt(e),Lt=n;break;case 12:yt(t,e),mt(e);break;case 13:yt(t,e),mt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Xu=At()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Hu(e,n)));break;case 22:a=e.memoizedState!==null;var E=l!==null&&l.memoizedState!==null,R=tl,Y=Xe;if(tl=R||a,Xe=Y||E,yt(t,e),Xe=Y,tl=R,mt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||E||tl||Xe||Wl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){E=l=t;try{if(i=E.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{d=E.stateNode;var F=E.memoizedProps.style,M=F!=null&&F.hasOwnProperty("display")?F.display:null;d.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(B){Le(E,E.return,B)}}}else if(t.tag===6){if(l===null){E=t;try{E.stateNode.nodeValue=a?"":E.memoizedProps}catch(B){Le(E,E.return,B)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Hu(e,l))));break;case 19:yt(t,e),mt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Hu(e,n)));break;case 30:break;case 21:break;default:yt(t,e),mt(e)}}function mt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(xf(n)){l=n;break}n=n.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var a=l.stateNode,i=Lu(e);zi(e,i,a);break;case 5:var o=l.stateNode;l.flags&32&&(fn(o,""),l.flags&=-33);var d=Lu(e);zi(e,d,o);break;case 3:case 4:var E=l.stateNode.containerInfo,R=Lu(e);Uu(e,R,E);break;default:throw Error(c(161))}}catch(Y){Le(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nf(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ml(4,t,t.return),Wl(t);break;case 1:qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&mf(t,t.return,l),Wl(t);break;case 27:Oa(t.stateNode);case 26:case 5:qt(t,t.return),Wl(t);break;case 22:t.memoizedState===null&&Wl(t);break;case 30:Wl(t);break;default:Wl(t)}e=e.sibling}}function xl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:xl(a,i,l),Sa(4,i);break;case 1:if(xl(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(R){Le(n,n.return,R)}if(n=i,a=n.updateQueue,a!==null){var d=n.stateNode;try{var E=a.shared.hiddenCallbacks;if(E!==null)for(a.shared.hiddenCallbacks=null,a=0;a<E.length;a++)lc(E[a],d)}catch(R){Le(n,n.return,R)}}l&&o&64&&yf(i),Ea(i,i.return);break;case 27:Sf(i);case 26:case 5:xl(a,i,l),l&&n===null&&o&4&&vf(i),Ea(i,i.return);break;case 12:xl(a,i,l);break;case 13:xl(a,i,l),l&&o&4&&Tf(a,i);break;case 22:i.memoizedState===null&&xl(a,i,l),Ea(i,i.return);break;case 30:break;default:xl(a,i,l)}t=t.sibling}}function qu(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ua(l))}function Gu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e))}function Gt(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cf(e,t,l,n),t=t.sibling}function Cf(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Gt(e,t,l,n),a&2048&&Sa(9,t);break;case 1:Gt(e,t,l,n);break;case 3:Gt(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e)));break;case 12:if(a&2048){Gt(e,t,l,n),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,d=i.onPostCommit;typeof d=="function"&&d(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Le(t,t.return,E)}}else Gt(e,t,l,n);break;case 13:Gt(e,t,l,n);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Gt(e,t,l,n):Na(e,t):i._visibility&2?Gt(e,t,l,n):(i._visibility|=2,kn(e,t,l,n,(t.subtreeFlags&10256)!==0)),a&2048&&qu(o,t);break;case 24:Gt(e,t,l,n),a&2048&&Gu(t.alternate,t);break;default:Gt(e,t,l,n)}}function kn(e,t,l,n,a){for(a=a&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var i=e,o=t,d=l,E=n,R=o.flags;switch(o.tag){case 0:case 11:case 15:kn(i,o,d,E,a),Sa(8,o);break;case 23:break;case 22:var Y=o.stateNode;o.memoizedState!==null?Y._visibility&2?kn(i,o,d,E,a):Na(i,o):(Y._visibility|=2,kn(i,o,d,E,a)),a&&R&2048&&qu(o.alternate,o);break;case 24:kn(i,o,d,E,a),a&&R&2048&&Gu(o.alternate,o);break;default:kn(i,o,d,E,a)}t=t.sibling}}function Na(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:Na(l,n),a&2048&&qu(n.alternate,n);break;case 24:Na(l,n),a&2048&&Gu(n.alternate,n);break;default:Na(l,n)}t=t.sibling}}var wa=8192;function On(e){if(e.subtreeFlags&wa)for(e=e.child;e!==null;)kf(e),e=e.sibling}function kf(e){switch(e.tag){case 26:On(e),e.flags&wa&&e.memoizedState!==null&&Kp(Lt,e.memoizedState,e.memoizedProps);break;case 5:On(e);break;case 3:case 4:var t=Lt;Lt=Qi(e.stateNode.containerInfo),On(e),Lt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=wa,wa=16777216,On(e),wa=t):On(e));break;default:On(e)}}function Of(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Aa(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];We=n,Rf(n,e)}Of(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Df(e),e=e.sibling}function Df(e){switch(e.tag){case 0:case 11:case 15:Aa(e),e.flags&2048&&ml(9,e,e.return);break;case 3:Aa(e);break;case 12:Aa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Mi(e)):Aa(e);break;default:Aa(e)}}function Mi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];We=n,Rf(n,e)}Of(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ml(8,t,t.return),Mi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Mi(t));break;default:Mi(t)}e=e.sibling}}function Rf(e,t){for(;We!==null;){var l=We;switch(l.tag){case 0:case 11:case 15:ml(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ua(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,We=n;else e:for(l=e;We!==null;){n=We;var a=n.sibling,i=n.return;if(wf(n),n===l){We=null;break e}if(a!==null){a.return=i,We=a;break e}We=i}}}var cp={getCacheForType:function(e){var t=at(Ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},fp=typeof WeakMap=="function"?WeakMap:Map,ke=0,Ue=null,Se=null,Ae=0,Oe=0,vt=null,Sl=!1,Dn=!1,Yu=!1,nl=0,Ye=0,El=0,Pl=0,Zu=0,Rt=0,Rn=0,Ta=null,ft=null,Vu=!1,Xu=0,Li=1/0,Ui=null,Nl=null,tt=0,wl=null,zn=null,Mn=0,Fu=0,Qu=null,zf=null,_a=0,Ku=null;function xt(){if((ke&2)!==0&&Ae!==0)return Ae&-Ae;if(y.T!==null){var e=En;return e!==0?e:ts()}return Ks()}function Mf(){Rt===0&&(Rt=(Ae&536870912)===0||Ce?Vs():536870912);var e=Dt.current;return e!==null&&(e.flags|=32),Rt}function St(e,t,l){(e===Ue&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(Ln(e,0),Al(e,Ae,Rt,!1)),Xn(e,l),((ke&2)===0||e!==Ue)&&(e===Ue&&((ke&2)===0&&(Pl|=l),Ye===4&&Al(e,Ae,Rt,!1)),Yt(e))}function Lf(e,t,l){if((ke&6)!==0)throw Error(c(327));var n=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Vn(e,t),a=n?hp(e,t):Ju(e,t,!0),i=n;do{if(a===0){Dn&&!n&&Al(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!dp(l)){a=Ju(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var d=e;a=Ta;var E=d.current.memoizedState.isDehydrated;if(E&&(Ln(d,o).flags|=256),o=Ju(d,o,!1),o!==2){if(Yu&&!E){d.errorRecoveryDisabledLanes|=i,Pl|=i,a=4;break e}i=ft,ft=a,i!==null&&(ft===null?ft=i:ft.push.apply(ft,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){Ln(e,0),Al(e,t,0,!0);break}e:{switch(n=e,i=a,i){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Al(n,t,Rt,!Sl);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(a=Xu+300-At(),10<a)){if(Al(n,t,Rt,!Sl),Ka(n,0,!0)!==0)break e;n.timeoutHandle=fd(Uf.bind(null,n,l,ft,Ui,Vu,t,Rt,Pl,Rn,Sl,i,2,-0,0),a);break e}Uf(n,l,ft,Ui,Vu,t,Rt,Pl,Rn,Sl,i,0,-0,0)}}break}while(!0);Yt(e)}function Uf(e,t,l,n,a,i,o,d,E,R,Y,F,M,B){if(e.timeoutHandle=-1,F=t.subtreeFlags,(F&8192||(F&16785408)===16785408)&&(za={stylesheets:null,count:0,unsuspend:Qp},kf(t),F=$p(),F!==null)){e.cancelPendingCommit=F(Vf.bind(null,e,t,i,l,n,a,o,d,E,Y,1,M,B)),Al(e,i,o,!R);return}Vf(e,t,i,l,n,a,o,d,E)}function dp(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!pt(i(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Al(e,t,l,n){t&=~Zu,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-ht(a),o=1<<i;n[i]=-1,a&=~o}l!==0&&Fs(e,l,t)}function Bi(){return(ke&6)===0?(ja(0),!1):!0}function $u(){if(Se!==null){if(Oe===0)var e=Se.return;else e=Se,$t=Ql=null,du(e),jn=null,ma=0,e=Se;for(;e!==null;)bf(e.alternate,e),e=e.return;Se=null}}function Ln(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,kp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),$u(),Ue=e,Se=l=Ft(e.current,null),Ae=t,Oe=0,vt=null,Sl=!1,Dn=Vn(e,t),Yu=!1,Rn=Rt=Zu=Pl=El=Ye=0,ft=Ta=null,Vu=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-ht(n),i=1<<a;t|=e[a],n&=~i}return nl=t,ri(),l}function Bf(e,t){ve=null,y.H=Ai,t===oa||t===pi?(t=ec(),Oe=3):t===Jo?(t=ec(),Oe=4):Oe=t===tf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,Se===null&&(Ye=1,ki(e,jt(t,e.current)))}function Hf(){var e=y.H;return y.H=Ai,e===null?Ai:e}function qf(){var e=y.A;return y.A=cp,e}function Iu(){Ye=4,Sl||(Ae&4194048)!==Ae&&Dt.current!==null||(Dn=!0),(El&134217727)===0&&(Pl&134217727)===0||Ue===null||Al(Ue,Ae,Rt,!1)}function Ju(e,t,l){var n=ke;ke|=2;var a=Hf(),i=qf();(Ue!==e||Ae!==t)&&(Ui=null,Ln(e,t)),t=!1;var o=Ye;e:do try{if(Oe!==0&&Se!==null){var d=Se,E=vt;switch(Oe){case 8:$u(),o=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var R=Oe;if(Oe=0,vt=null,Un(e,d,E,R),l&&Dn){o=0;break e}break;default:R=Oe,Oe=0,vt=null,Un(e,d,E,R)}}gp(),o=Ye;break}catch(Y){Bf(e,Y)}while(!0);return t&&e.shellSuspendCounter++,$t=Ql=null,ke=n,y.H=a,y.A=i,Se===null&&(Ue=null,Ae=0,ri()),o}function gp(){for(;Se!==null;)Gf(Se)}function hp(e,t){var l=ke;ke|=2;var n=Hf(),a=qf();Ue!==e||Ae!==t?(Ui=null,Li=At()+500,Ln(e,t)):Dn=Vn(e,t);e:do try{if(Oe!==0&&Se!==null){t=Se;var i=vt;t:switch(Oe){case 1:Oe=0,vt=null,Un(e,t,i,1);break;case 2:case 9:if(Wo(i)){Oe=0,vt=null,Yf(t);break}t=function(){Oe!==2&&Oe!==9||Ue!==e||(Oe=7),Yt(e)},i.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Wo(i)?(Oe=0,vt=null,Yf(t)):(Oe=0,vt=null,Un(e,t,i,7));break;case 5:var o=null;switch(Se.tag){case 26:o=Se.memoizedState;case 5:case 27:var d=Se;if(!o||Nd(o)){Oe=0,vt=null;var E=d.sibling;if(E!==null)Se=E;else{var R=d.return;R!==null?(Se=R,Hi(R)):Se=null}break t}}Oe=0,vt=null,Un(e,t,i,5);break;case 6:Oe=0,vt=null,Un(e,t,i,6);break;case 8:$u(),Ye=6;break e;default:throw Error(c(462))}}pp();break}catch(Y){Bf(e,Y)}while(!0);return $t=Ql=null,y.H=n,y.A=a,ke=l,Se!==null?0:(Ue=null,Ae=0,ri(),Ye)}function pp(){for(;Se!==null&&!fr();)Gf(Se)}function Gf(e){var t=hf(e.alternate,e,nl);e.memoizedProps=e.pendingProps,t===null?Hi(e):Se=t}function Yf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=sf(l,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=sf(l,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:du(t);default:bf(l,t),t=Se=Yo(t,nl),t=hf(l,t,nl)}e.memoizedProps=e.pendingProps,t===null?Hi(e):Se=t}function Un(e,t,l,n){$t=Ql=null,du(t),jn=null,ma=0;var a=t.return;try{if(ap(e,a,t,l,Ae)){Ye=1,ki(e,jt(l,e.current)),Se=null;return}}catch(i){if(a!==null)throw Se=a,i;Ye=1,ki(e,jt(l,e.current)),Se=null;return}t.flags&32768?(Ce||n===1?e=!0:Dn||(Ae&536870912)!==0?e=!1:(Sl=e=!0,(n===2||n===9||n===3||n===6)&&(n=Dt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Zf(t,e)):Hi(t)}function Hi(e){var t=e;do{if((t.flags&32768)!==0){Zf(t,Sl);return}e=t.return;var l=rp(t.alternate,t,nl);if(l!==null){Se=l;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ye===0&&(Ye=5)}function Zf(e,t){do{var l=up(e.alternate,e);if(l!==null){l.flags&=32767,Se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=l}while(e!==null);Ye=6,Se=null}function Vf(e,t,l,n,a,i,o,d,E){e.cancelPendingCommit=null;do qi();while(tt!==0);if((ke&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(i=t.lanes|t.childLanes,i|=Gr,Qg(e,l,i,o,d,E),e===Ue&&(Se=Ue=null,Ae=0),zn=t,wl=e,Mn=l,Fu=i,Qu=a,zf=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,vp(Ne,function(){return $f(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=y.T,y.T=null,a=G.p,G.p=2,o=ke,ke|=4;try{sp(e,t,l)}finally{ke=o,G.p=a,y.T=n}}tt=1,Xf(),Ff(),Qf()}}function Xf(){if(tt===1){tt=0;var e=wl,t=zn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=y.T,y.T=null;var n=G.p;G.p=2;var a=ke;ke|=4;try{_f(t,e);var i=os,o=Do(e.containerInfo),d=i.focusedElem,E=i.selectionRange;if(o!==d&&d&&d.ownerDocument&&Oo(d.ownerDocument.documentElement,d)){if(E!==null&&Lr(d)){var R=E.start,Y=E.end;if(Y===void 0&&(Y=R),"selectionStart"in d)d.selectionStart=R,d.selectionEnd=Math.min(Y,d.value.length);else{var F=d.ownerDocument||document,M=F&&F.defaultView||window;if(M.getSelection){var B=M.getSelection(),de=d.textContent.length,oe=Math.min(E.start,de),ze=E.end===void 0?oe:Math.min(E.end,de);!B.extend&&oe>ze&&(o=ze,ze=oe,oe=o);var O=ko(d,oe),C=ko(d,ze);if(O&&C&&(B.rangeCount!==1||B.anchorNode!==O.node||B.anchorOffset!==O.offset||B.focusNode!==C.node||B.focusOffset!==C.offset)){var D=F.createRange();D.setStart(O.node,O.offset),B.removeAllRanges(),oe>ze?(B.addRange(D),B.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),B.addRange(D))}}}}for(F=[],B=d;B=B.parentNode;)B.nodeType===1&&F.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<F.length;d++){var V=F[d];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Wi=!!ss,os=ss=null}finally{ke=a,G.p=n,y.T=l}}e.current=t,tt=2}}function Ff(){if(tt===2){tt=0;var e=wl,t=zn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=y.T,y.T=null;var n=G.p;G.p=2;var a=ke;ke|=4;try{Nf(e,t.alternate,t)}finally{ke=a,G.p=n,y.T=l}}tt=3}}function Qf(){if(tt===4||tt===3){tt=0,Va();var e=wl,t=zn,l=Mn,n=zf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,zn=wl=null,Kf(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Nl=null),pr(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(Ll,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=y.T,a=G.p,G.p=2,y.T=null;try{for(var i=e.onRecoverableError,o=0;o<n.length;o++){var d=n[o];i(d.value,{componentStack:d.stack})}}finally{y.T=t,G.p=a}}(Mn&3)!==0&&qi(),Yt(e),a=e.pendingLanes,(l&4194090)!==0&&(a&42)!==0?e===Ku?_a++:(_a=0,Ku=e):_a=0,ja(0)}}function Kf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ua(t)))}function qi(e){return Xf(),Ff(),Qf(),$f()}function $f(){if(tt!==5)return!1;var e=wl,t=Fu;Fu=0;var l=pr(Mn),n=y.T,a=G.p;try{G.p=32>l?32:l,y.T=null,l=Qu,Qu=null;var i=wl,o=Mn;if(tt=0,zn=wl=null,Mn=0,(ke&6)!==0)throw Error(c(331));var d=ke;if(ke|=4,Df(i.current),Cf(i,i.current,o,l),ke=d,ja(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Ll,i)}catch{}return!0}finally{G.p=a,y.T=n,Kf(e,t)}}function If(e,t,l){t=jt(l,t),t=Tu(e.stateNode,t,2),e=hl(e,t,2),e!==null&&(Xn(e,2),Yt(e))}function Le(e,t,l){if(e.tag===3)If(e,e,l);else for(;t!==null;){if(t.tag===3){If(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Nl===null||!Nl.has(n))){e=jt(l,e),l=Pc(2),n=hl(t,l,2),n!==null&&(ef(l,n,t,e),Xn(n,2),Yt(n));break}}t=t.return}}function Wu(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new fp;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(Yu=!0,a.add(l),e=bp.bind(null,e,t,l),t.then(e,e))}function bp(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ue===e&&(Ae&l)===l&&(Ye===4||Ye===3&&(Ae&62914560)===Ae&&300>At()-Xu?(ke&2)===0&&Ln(e,0):Zu|=l,Rn===Ae&&(Rn=0)),Yt(e)}function Jf(e,t){t===0&&(t=Xs()),e=mn(e,t),e!==null&&(Xn(e,t),Yt(e))}function yp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Jf(e,l)}function mp(e,t){var l=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(t),Jf(e,l)}function vp(e,t){return zl(e,t)}var Gi=null,Bn=null,Pu=!1,Yi=!1,es=!1,en=0;function Yt(e){e!==Bn&&e.next===null&&(Bn===null?Gi=Bn=e:Bn=Bn.next=e),Yi=!0,Pu||(Pu=!0,Sp())}function ja(e,t){if(!es&&Yi){es=!0;do for(var l=!1,n=Gi;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var o=n.suspendedLanes,d=n.pingedLanes;i=(1<<31-ht(42|e)+1)-1,i&=a&~(o&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,td(n,i))}else i=Ae,i=Ka(n,n===Ue?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||Vn(n,i)||(l=!0,td(n,i));n=n.next}while(l);es=!1}}function xp(){Wf()}function Wf(){Yi=Pu=!1;var e=0;en!==0&&(Cp()&&(e=en),en=0);for(var t=At(),l=null,n=Gi;n!==null;){var a=n.next,i=Pf(n,t);i===0?(n.next=null,l===null?Gi=a:l.next=a,a===null&&(Bn=l)):(l=n,(e!==0||(i&3)!==0)&&(Yi=!0)),n=a}ja(e)}function Pf(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-ht(i),d=1<<o,E=a[o];E===-1?((d&l)===0||(d&n)!==0)&&(a[o]=Fg(d,t)):E<=t&&(e.expiredLanes|=d),i&=~d}if(t=Ue,l=Ae,l=Ka(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&ln(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Vn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&ln(n),pr(l)){case 2:case 8:l=W;break;case 32:l=Ne;break;case 268435456:l=je;break;default:l=Ne}return n=ed.bind(null,e),l=zl(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&ln(n),e.callbackPriority=2,e.callbackNode=null,2}function ed(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(qi()&&e.callbackNode!==l)return null;var n=Ae;return n=Ka(e,e===Ue?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Lf(e,n,t),Pf(e,At()),e.callbackNode!=null&&e.callbackNode===l?ed.bind(null,e):null)}function td(e,t){if(qi())return null;Lf(e,t,!0)}function Sp(){Op(function(){(ke&6)!==0?zl(Xa,xp):Wf()})}function ts(){return en===0&&(en=Vs()),en}function ld(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pa(""+e)}function nd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Ep(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var i=ld((a[ut]||null).action),o=n.submitter;o&&(t=(t=o[ut]||null)?ld(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var d=new ni("action","action",null,n,a);e.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(en!==0){var E=o?nd(a,o):new FormData(a);Su(l,{pending:!0,data:E,method:a.method,action:i},null,E)}}else typeof i=="function"&&(d.preventDefault(),E=o?nd(a,o):new FormData(a),Su(l,{pending:!0,data:E,method:a.method,action:i},i,E))},currentTarget:a}]})}}for(var ls=0;ls<qr.length;ls++){var ns=qr[ls],Np=ns.toLowerCase(),wp=ns[0].toUpperCase()+ns.slice(1);Mt(Np,"on"+wp)}Mt(Mo,"onAnimationEnd"),Mt(Lo,"onAnimationIteration"),Mt(Uo,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(Gh,"onTransitionRun"),Mt(Yh,"onTransitionStart"),Mt(Zh,"onTransitionCancel"),Mt(Bo,"onTransitionEnd"),sn("onMouseEnter",["mouseout","mouseover"]),sn("onMouseLeave",["mouseout","mouseover"]),sn("onPointerEnter",["pointerout","pointerover"]),sn("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ca="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(" "),Ap=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ca));function ad(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var d=n[o],E=d.instance,R=d.currentTarget;if(d=d.listener,E!==i&&a.isPropagationStopped())break e;i=d,a.currentTarget=R;try{i(a)}catch(Y){Ci(Y)}a.currentTarget=null,i=E}else for(o=0;o<n.length;o++){if(d=n[o],E=d.instance,R=d.currentTarget,d=d.listener,E!==i&&a.isPropagationStopped())break e;i=d,a.currentTarget=R;try{i(a)}catch(Y){Ci(Y)}a.currentTarget=null,i=E}}}}function Ee(e,t){var l=t[br];l===void 0&&(l=t[br]=new Set);var n=e+"__bubble";l.has(n)||(id(t,e,2,!1),l.add(n))}function as(e,t,l){var n=0;t&&(n|=4),id(l,e,n,t)}var Zi="_reactListening"+Math.random().toString(36).slice(2);function is(e){if(!e[Zi]){e[Zi]=!0,Is.forEach(function(l){l!=="selectionchange"&&(Ap.has(l)||as(l,!1,e),as(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zi]||(t[Zi]=!0,as("selectionchange",!1,t))}}function id(e,t,l,n){switch(Cd(t)){case 2:var a=Wp;break;case 8:a=Pp;break;default:a=vs}l=a.bind(null,t,l,e),a=void 0,!_r||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function rs(e,t,l,n,a){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var d=n.stateNode.containerInfo;if(d===a)break;if(o===4)for(o=n.return;o!==null;){var E=o.tag;if((E===3||E===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;d!==null;){if(o=an(d),o===null)return;if(E=o.tag,E===5||E===6||E===26||E===27){n=i=o;continue e}d=d.parentNode}}n=n.return}co(function(){var R=i,Y=Ar(l),F=[];e:{var M=Ho.get(e);if(M!==void 0){var B=ni,de=e;switch(e){case"keypress":if(ti(l)===0)break e;case"keydown":case"keyup":B=vh;break;case"focusin":de="focus",B=Or;break;case"focusout":de="blur",B=Or;break;case"beforeblur":case"afterblur":B=Or;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=ho;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=uh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Eh;break;case Mo:case Lo:case Uo:B=ch;break;case Bo:B=wh;break;case"scroll":case"scrollend":B=ih;break;case"wheel":B=Th;break;case"copy":case"cut":case"paste":B=dh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=bo;break;case"toggle":case"beforetoggle":B=jh}var oe=(t&4)!==0,ze=!oe&&(e==="scroll"||e==="scrollend"),O=oe?M!==null?M+"Capture":null:M;oe=[];for(var C=R,D;C!==null;){var V=C;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||O===null||(V=Kn(C,O),V!=null&&oe.push(ka(C,V,D))),ze)break;C=C.return}0<oe.length&&(M=new B(M,de,null,l,Y),F.push({event:M,listeners:oe}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",M&&l!==wr&&(de=l.relatedTarget||l.fromElement)&&(an(de)||de[nn]))break e;if((B||M)&&(M=Y.window===Y?Y:(M=Y.ownerDocument)?M.defaultView||M.parentWindow:window,B?(de=l.relatedTarget||l.toElement,B=R,de=de?an(de):null,de!==null&&(ze=h(de),oe=de.tag,de!==ze||oe!==5&&oe!==27&&oe!==6)&&(de=null)):(B=null,de=R),B!==de)){if(oe=ho,V="onMouseLeave",O="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(oe=bo,V="onPointerLeave",O="onPointerEnter",C="pointer"),ze=B==null?M:Qn(B),D=de==null?M:Qn(de),M=new oe(V,C+"leave",B,l,Y),M.target=ze,M.relatedTarget=D,V=null,an(Y)===R&&(oe=new oe(O,C+"enter",de,l,Y),oe.target=D,oe.relatedTarget=ze,V=oe),ze=V,B&&de)t:{for(oe=B,O=de,C=0,D=oe;D;D=Hn(D))C++;for(D=0,V=O;V;V=Hn(V))D++;for(;0<C-D;)oe=Hn(oe),C--;for(;0<D-C;)O=Hn(O),D--;for(;C--;){if(oe===O||O!==null&&oe===O.alternate)break t;oe=Hn(oe),O=Hn(O)}oe=null}else oe=null;B!==null&&rd(F,M,B,oe,!1),de!==null&&ze!==null&&rd(F,ze,de,oe,!0)}}e:{if(M=R?Qn(R):window,B=M.nodeName&&M.nodeName.toLowerCase(),B==="select"||B==="input"&&M.type==="file")var ie=wo;else if(Eo(M))if(Ao)ie=Bh;else{ie=Lh;var xe=Mh}else B=M.nodeName,!B||B.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?R&&Nr(R.elementType)&&(ie=wo):ie=Uh;if(ie&&(ie=ie(e,R))){No(F,ie,l,Y);break e}xe&&xe(e,M,R),e==="focusout"&&R&&M.type==="number"&&R.memoizedProps.value!=null&&Er(M,"number",M.value)}switch(xe=R?Qn(R):window,e){case"focusin":(Eo(xe)||xe.contentEditable==="true")&&(pn=xe,Ur=R,la=null);break;case"focusout":la=Ur=pn=null;break;case"mousedown":Br=!0;break;case"contextmenu":case"mouseup":case"dragend":Br=!1,Ro(F,l,Y);break;case"selectionchange":if(qh)break;case"keydown":case"keyup":Ro(F,l,Y)}var ue;if(Rr)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else hn?xo(e,l)&&(fe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(fe="onCompositionStart");fe&&(yo&&l.locale!=="ko"&&(hn||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&hn&&(ue=fo()):(cl=Y,jr="value"in cl?cl.value:cl.textContent,hn=!0)),xe=Vi(R,fe),0<xe.length&&(fe=new po(fe,e,null,l,Y),F.push({event:fe,listeners:xe}),ue?fe.data=ue:(ue=So(l),ue!==null&&(fe.data=ue)))),(ue=kh?Oh(e,l):Dh(e,l))&&(fe=Vi(R,"onBeforeInput"),0<fe.length&&(xe=new po("onBeforeInput","beforeinput",null,l,Y),F.push({event:xe,listeners:fe}),xe.data=ue)),Ep(F,e,R,l,Y)}ad(F,t)})}function ka(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Vi(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Kn(e,l),a!=null&&n.unshift(ka(e,a,i)),a=Kn(e,t),a!=null&&n.push(ka(e,a,i))),e.tag===3)return n;e=e.return}return[]}function Hn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rd(e,t,l,n,a){for(var i=t._reactName,o=[];l!==null&&l!==n;){var d=l,E=d.alternate,R=d.stateNode;if(d=d.tag,E!==null&&E===n)break;d!==5&&d!==26&&d!==27||R===null||(E=R,a?(R=Kn(l,i),R!=null&&o.unshift(ka(l,R,E))):a||(R=Kn(l,i),R!=null&&o.push(ka(l,R,E)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var Tp=/\r\n?/g,_p=/\u0000|\uFFFD/g;function ud(e){return(typeof e=="string"?e:""+e).replace(Tp,`
49
- `).replace(_p,"")}function sd(e,t){return t=ud(t),ud(e)===t}function Xi(){}function Re(e,t,l,n,a,i){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||fn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&fn(e,""+n);break;case"className":Ia(e,"class",n);break;case"tabIndex":Ia(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ia(e,l,n);break;case"style":so(e,n,i);break;case"data":if(t!=="object"){Ia(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Pa(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"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 i=="function"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",a.name,a,null),Re(e,t,"formEncType",a.formEncType,a,null),Re(e,t,"formMethod",a.formMethod,a,null),Re(e,t,"formTarget",a.formTarget,a,null)):(Re(e,t,"encType",a.encType,a,null),Re(e,t,"method",a.method,a,null),Re(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Pa(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=Xi);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=Pa(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),$a(e,"popover",n);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":$a(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=nh.get(l)||l,$a(e,l,n))}}function us(e,t,l,n,a,i){switch(l){case"style":so(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof n=="string"?fn(e,n):(typeof n=="number"||typeof n=="bigint")&&fn(e,""+n);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Xi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Js.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),i=e[ut]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):$a(e,l,n)}}}function lt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var o=l[i];if(o!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,i,o,l,null)}}a&&Re(e,t,"srcSet",l.srcSet,l,null),n&&Re(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var d=i=o=a=null,E=null,R=null;for(n in l)if(l.hasOwnProperty(n)){var Y=l[n];if(Y!=null)switch(n){case"name":a=Y;break;case"type":o=Y;break;case"checked":E=Y;break;case"defaultChecked":R=Y;break;case"value":i=Y;break;case"defaultValue":d=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(c(137,t));break;default:Re(e,t,n,Y,l,null)}}ao(e,i,d,E,R,o,a,!1),Ja(e);return;case"select":Ee("invalid",e),n=o=i=null;for(a in l)if(l.hasOwnProperty(a)&&(d=l[a],d!=null))switch(a){case"value":i=d;break;case"defaultValue":o=d;break;case"multiple":n=d;default:Re(e,t,a,d,l,null)}t=i,l=o,e.multiple=!!n,t!=null?cn(e,!!n,t,!1):l!=null&&cn(e,!!n,l,!0);return;case"textarea":Ee("invalid",e),i=a=n=null;for(o in l)if(l.hasOwnProperty(o)&&(d=l[o],d!=null))switch(o){case"value":n=d;break;case"defaultValue":a=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(c(91));break;default:Re(e,t,o,d,l,null)}ro(e,n,a,i),Ja(e);return;case"option":for(E in l)if(l.hasOwnProperty(E)&&(n=l[E],n!=null))switch(E){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Re(e,t,E,n,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(n=0;n<Ca.length;n++)Ee(Ca[n],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in l)if(l.hasOwnProperty(R)&&(n=l[R],n!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,R,n,l,null)}return;default:if(Nr(t)){for(Y in l)l.hasOwnProperty(Y)&&(n=l[Y],n!==void 0&&us(e,t,Y,n,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(n=l[d],n!=null&&Re(e,t,d,n,l,null))}function jp(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,d=null,E=null,R=null,Y=null;for(B in l){var F=l[B];if(l.hasOwnProperty(B)&&F!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":E=F;default:n.hasOwnProperty(B)||Re(e,t,B,null,n,F)}}for(var M in n){var B=n[M];if(F=l[M],n.hasOwnProperty(M)&&(B!=null||F!=null))switch(M){case"type":i=B;break;case"name":a=B;break;case"checked":R=B;break;case"defaultChecked":Y=B;break;case"value":o=B;break;case"defaultValue":d=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(c(137,t));break;default:B!==F&&Re(e,t,M,B,n,F)}}Sr(e,o,d,E,R,Y,i,a);return;case"select":B=o=d=M=null;for(i in l)if(E=l[i],l.hasOwnProperty(i)&&E!=null)switch(i){case"value":break;case"multiple":B=E;default:n.hasOwnProperty(i)||Re(e,t,i,null,n,E)}for(a in n)if(i=n[a],E=l[a],n.hasOwnProperty(a)&&(i!=null||E!=null))switch(a){case"value":M=i;break;case"defaultValue":d=i;break;case"multiple":o=i;default:i!==E&&Re(e,t,a,i,n,E)}t=d,l=o,n=B,M!=null?cn(e,!!l,M,!1):!!n!=!!l&&(t!=null?cn(e,!!l,t,!0):cn(e,!!l,l?[]:"",!1));return;case"textarea":B=M=null;for(d in l)if(a=l[d],l.hasOwnProperty(d)&&a!=null&&!n.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Re(e,t,d,null,n,a)}for(o in n)if(a=n[o],i=l[o],n.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":M=a;break;case"defaultValue":B=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(c(91));break;default:a!==i&&Re(e,t,o,a,n,i)}io(e,M,B);return;case"option":for(var de in l)if(M=l[de],l.hasOwnProperty(de)&&M!=null&&!n.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Re(e,t,de,null,n,M)}for(E in n)if(M=n[E],B=l[E],n.hasOwnProperty(E)&&M!==B&&(M!=null||B!=null))switch(E){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:Re(e,t,E,M,n,B)}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 oe in l)M=l[oe],l.hasOwnProperty(oe)&&M!=null&&!n.hasOwnProperty(oe)&&Re(e,t,oe,null,n,M);for(R in n)if(M=n[R],B=l[R],n.hasOwnProperty(R)&&M!==B&&(M!=null||B!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,t));break;default:Re(e,t,R,M,n,B)}return;default:if(Nr(t)){for(var ze in l)M=l[ze],l.hasOwnProperty(ze)&&M!==void 0&&!n.hasOwnProperty(ze)&&us(e,t,ze,void 0,n,M);for(Y in n)M=n[Y],B=l[Y],!n.hasOwnProperty(Y)||M===B||M===void 0&&B===void 0||us(e,t,Y,M,n,B);return}}for(var O in l)M=l[O],l.hasOwnProperty(O)&&M!=null&&!n.hasOwnProperty(O)&&Re(e,t,O,null,n,M);for(F in n)M=n[F],B=l[F],!n.hasOwnProperty(F)||M===B||M==null&&B==null||Re(e,t,F,M,n,B)}var ss=null,os=null;function Fi(e){return e.nodeType===9?e:e.ownerDocument}function od(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function cs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fs=null;function Cp(){var e=window.event;return e&&e.type==="popstate"?e===fs?!1:(fs=e,!0):(fs=null,!1)}var fd=typeof setTimeout=="function"?setTimeout:void 0,kp=typeof clearTimeout=="function"?clearTimeout:void 0,dd=typeof Promise=="function"?Promise:void 0,Op=typeof queueMicrotask=="function"?queueMicrotask:typeof dd<"u"?function(e){return dd.resolve(null).then(e).catch(Dp)}:fd;function Dp(e){setTimeout(function(){throw e})}function Tl(e){return e==="head"}function gd(e,t){var l=t,n=0,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(0<n&&8>n){l=n;var o=e.ownerDocument;if(l&1&&Oa(o.documentElement),l&2&&Oa(o.body),l&4)for(l=o.head,Oa(l),o=l.firstChild;o;){var d=o.nextSibling,E=o.nodeName;o[Fn]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&o.rel.toLowerCase()==="stylesheet"||l.removeChild(o),o=d}}if(a===0){e.removeChild(i),Ha(t);return}a--}else l==="$"||l==="$?"||l==="$!"?a++:n=l.charCodeAt(0)-48;else n=0;l=i}while(l);Ha(t)}function ds(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ds(l),yr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Rp(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Fn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ut(e.nextSibling),e===null)break}return null}function zp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ut(e.nextSibling),e===null))return null;return e}function gs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Mp(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var hs=null;function hd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function pd(e,t,l){switch(t=Fi(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Oa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yr(e)}var zt=new Map,bd=new Set;function Qi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var al=G.d;G.d={f:Lp,r:Up,D:Bp,C:Hp,L:qp,m:Gp,X:Zp,S:Yp,M:Vp};function Lp(){var e=al.f(),t=Bi();return e||t}function Up(e){var t=rn(e);t!==null&&t.tag===5&&t.type==="form"?Mc(t):al.r(e)}var qn=typeof document>"u"?null:document;function yd(e,t,l){var n=qn;if(n&&typeof t=="string"&&t){var a=_t(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),bd.has(a)||(bd.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),lt(t,"link",e),Ie(t),n.head.appendChild(t)))}}function Bp(e){al.D(e),yd("dns-prefetch",e,null)}function Hp(e,t){al.C(e,t),yd("preconnect",e,t)}function qp(e,t,l){al.L(e,t,l);var n=qn;if(n&&e&&t){var a='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+_t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+_t(l.imageSizes)+'"]')):a+='[href="'+_t(e)+'"]';var i=a;switch(t){case"style":i=Gn(e);break;case"script":i=Yn(e)}zt.has(i)||(e=w({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),zt.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Da(i))||t==="script"&&n.querySelector(Ra(i))||(t=n.createElement("link"),lt(t,"link",e),Ie(t),n.head.appendChild(t)))}}function Gp(e,t){al.m(e,t);var l=qn;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+_t(n)+'"][href="'+_t(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Yn(e)}if(!zt.has(i)&&(e=w({rel:"modulepreload",href:e},t),zt.set(i,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ra(i)))return}n=l.createElement("link"),lt(n,"link",e),Ie(n),l.head.appendChild(n)}}}function Yp(e,t,l){al.S(e,t,l);var n=qn;if(n&&e){var a=un(n).hoistableStyles,i=Gn(e);t=t||"default";var o=a.get(i);if(!o){var d={loading:0,preload:null};if(o=n.querySelector(Da(i)))d.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},l),(l=zt.get(i))&&ps(e,l);var E=o=n.createElement("link");Ie(E),lt(E,"link",e),E._p=new Promise(function(R,Y){E.onload=R,E.onerror=Y}),E.addEventListener("load",function(){d.loading|=1}),E.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Ki(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:d},a.set(i,o)}}}function Zp(e,t){al.X(e,t);var l=qn;if(l&&e){var n=un(l).hoistableScripts,a=Yn(e),i=n.get(a);i||(i=l.querySelector(Ra(a)),i||(e=w({src:e,async:!0},t),(t=zt.get(a))&&bs(e,t),i=l.createElement("script"),Ie(i),lt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Vp(e,t){al.M(e,t);var l=qn;if(l&&e){var n=un(l).hoistableScripts,a=Yn(e),i=n.get(a);i||(i=l.querySelector(Ra(a)),i||(e=w({src:e,async:!0,type:"module"},t),(t=zt.get(a))&&bs(e,t),i=l.createElement("script"),Ie(i),lt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function md(e,t,l,n){var a=(a=re.current)?Qi(a):null;if(!a)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Gn(l.href),l=un(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Gn(l.href);var i=un(a).hoistableStyles,o=i.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=a.querySelector(Da(e)))&&!i._p&&(o.instance=i,o.state.loading=5),zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},zt.set(e,l),i||Xp(a,e,l,o.state))),t&&n===null)throw Error(c(528,""));return o}if(t&&n!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yn(l),l=un(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Gn(e){return'href="'+_t(e)+'"'}function Da(e){return'link[rel="stylesheet"]['+e+"]"}function vd(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Xp(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),lt(t,"link",l),Ie(t),e.head.appendChild(t))}function Yn(e){return'[src="'+_t(e)+'"]'}function Ra(e){return"script[async]"+e}function xd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+_t(l.href)+'"]');if(n)return t.instance=n,Ie(n),n;var a=w({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ie(n),lt(n,"style",a),Ki(n,l.precedence,e),t.instance=n;case"stylesheet":a=Gn(l.href);var i=e.querySelector(Da(a));if(i)return t.state.loading|=4,t.instance=i,Ie(i),i;n=vd(l),(a=zt.get(a))&&ps(n,a),i=(e.ownerDocument||e).createElement("link"),Ie(i);var o=i;return o._p=new Promise(function(d,E){o.onload=d,o.onerror=E}),lt(i,"link",n),t.state.loading|=4,Ki(i,l.precedence,e),t.instance=i;case"script":return i=Yn(l.src),(a=e.querySelector(Ra(i)))?(t.instance=a,Ie(a),a):(n=l,(a=zt.get(i))&&(n=w({},l),bs(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ie(a),lt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Ki(n,l.precedence,e));return t.instance}function Ki(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,o=0;o<n.length;o++){var d=n[o];if(d.dataset.precedence===t)i=d;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function ps(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $i=null;function Sd(e,t,l){if($i===null){var n=new Map,a=$i=new Map;a.set(l,n)}else a=$i,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var i=l[a];if(!(i[Fn]||i[nt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var d=n.get(o);d?d.push(i):n.set(o,[i])}}return n}function Ed(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Fp(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Nd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var za=null;function Qp(){}function Kp(e,t,l){if(za===null)throw Error(c(475));var n=za;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var a=Gn(l.href),i=e.querySelector(Da(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(n.count++,n=Ii.bind(n),e.then(n,n)),t.state.loading|=4,t.instance=i,Ie(i);return}i=e.ownerDocument||e,l=vd(l),(a=zt.get(a))&&ps(l,a),i=i.createElement("link"),Ie(i);var o=i;o._p=new Promise(function(d,E){o.onload=d,o.onerror=E}),lt(i,"link",l),t.instance=i}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(n.count++,t=Ii.bind(n),e.addEventListener("load",t),e.addEventListener("error",t))}}function $p(){if(za===null)throw Error(c(475));var e=za;return e.stylesheets&&e.count===0&&ys(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&ys(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function Ii(){if(this.count--,this.count===0){if(this.stylesheets)ys(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ji=null;function ys(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ji=new Map,t.forEach(Ip,e),Ji=null,Ii.call(e))}function Ip(e,t){if(!(t.state.loading&4)){var l=Ji.get(e);if(l)var n=l.get(null);else{l=new Map,Ji.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),n=o)}n&&l.set(null,n)}a=t.instance,o=a.getAttribute("data-precedence"),i=l.get(o)||n,i===n&&l.set(null,a),l.set(o,a),this.count++,n=Ii.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Ma={$$typeof:H,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Jp(e,t,l,n,a,i,o,d){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gr(0),this.hiddenUpdates=gr(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function wd(e,t,l,n,a,i,o,d,E,R,Y,F){return e=new Jp(e,t,l,o,d,E,R,F),t=1,i===!0&&(t|=24),i=bt(3,null,null,t),e.current=i,i.stateNode=e,t=Wr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:t},lu(i),e}function Ad(e){return e?(e=vn,e):vn}function Td(e,t,l,n,a,i){a=Ad(a),n.context===null?n.context=a:n.pendingContext=a,n=gl(t),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=hl(e,n,t),l!==null&&(St(l,e,t),fa(l,e,t))}function _d(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ms(e,t){_d(e,t),(e=e.alternate)&&_d(e,t)}function jd(e){if(e.tag===13){var t=mn(e,67108864);t!==null&&St(t,e,67108864),ms(e,67108864)}}var Wi=!0;function Wp(e,t,l,n){var a=y.T;y.T=null;var i=G.p;try{G.p=2,vs(e,t,l,n)}finally{G.p=i,y.T=a}}function Pp(e,t,l,n){var a=y.T;y.T=null;var i=G.p;try{G.p=8,vs(e,t,l,n)}finally{G.p=i,y.T=a}}function vs(e,t,l,n){if(Wi){var a=xs(n);if(a===null)rs(e,t,n,Pi,l),kd(e,n);else if(tb(a,e,t,l,n))n.stopPropagation();else if(kd(e,n),t&4&&-1<eb.indexOf(e)){for(;a!==null;){var i=rn(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=Ul(i.pendingLanes);if(o!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;o;){var E=1<<31-ht(o);d.entanglements[1]|=E,o&=~E}Yt(i),(ke&6)===0&&(Li=At()+500,ja(0))}}break;case 13:d=mn(i,2),d!==null&&St(d,i,2),Bi(),ms(i,2)}if(i=xs(n),i===null&&rs(e,t,n,Pi,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else rs(e,t,n,null,l)}}function xs(e){return e=Ar(e),Ss(e)}var Pi=null;function Ss(e){if(Pi=null,e=an(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=x(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pi=e,null}function Cd(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(dr()){case Xa:return 2;case W:return 8;case Ne:case we:return 32;case je:return 268435456;default:return 32}default:return 32}}var Es=!1,_l=null,jl=null,Cl=null,La=new Map,Ua=new Map,kl=[],eb="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 kd(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Cl=null;break;case"pointerover":case"pointerout":La.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ua.delete(t.pointerId)}}function Ba(e,t,l,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=rn(t),t!==null&&jd(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function tb(e,t,l,n,a){switch(t){case"focusin":return _l=Ba(_l,e,t,l,n,a),!0;case"dragenter":return jl=Ba(jl,e,t,l,n,a),!0;case"mouseover":return Cl=Ba(Cl,e,t,l,n,a),!0;case"pointerover":var i=a.pointerId;return La.set(i,Ba(La.get(i)||null,e,t,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Ua.set(i,Ba(Ua.get(i)||null,e,t,l,n,a)),!0}return!1}function Od(e){var t=an(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=x(l),t!==null){e.blockedOn=t,Kg(e.priority,function(){if(l.tag===13){var n=xt();n=hr(n);var a=mn(l,n);a!==null&&St(a,l,n),ms(l,n)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function er(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=xs(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);wr=n,l.target.dispatchEvent(n),wr=null}else return t=rn(l),t!==null&&jd(t),e.blockedOn=l,!1;t.shift()}return!0}function Dd(e,t,l){er(e)&&l.delete(t)}function lb(){Es=!1,_l!==null&&er(_l)&&(_l=null),jl!==null&&er(jl)&&(jl=null),Cl!==null&&er(Cl)&&(Cl=null),La.forEach(Dd),Ua.forEach(Dd)}function tr(e,t){e.blockedOn===t&&(e.blockedOn=null,Es||(Es=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,lb)))}var lr=null;function Rd(e){lr!==e&&(lr=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){lr===e&&(lr=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(Ss(n||l)===null)continue;break}var i=rn(l);i!==null&&(e.splice(t,3),t-=3,Su(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Ha(e){function t(E){return tr(E,e)}_l!==null&&tr(_l,e),jl!==null&&tr(jl,e),Cl!==null&&tr(Cl,e),La.forEach(t),Ua.forEach(t);for(var l=0;l<kl.length;l++){var n=kl[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<kl.length&&(l=kl[0],l.blockedOn===null);)Od(l),l.blockedOn===null&&kl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],o=a[ut]||null;if(typeof i=="function")o||Rd(l);else if(o){var d=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[ut]||null)d=o.formAction;else if(Ss(a)!==null)continue}else d=o.action;typeof d=="function"?l[n+1]=d:(l.splice(n,3),n-=3),Rd(l)}}}function Ns(e){this._internalRoot=e}nr.prototype.render=Ns.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,n=xt();Td(l,n,e,t,null,null)},nr.prototype.unmount=Ns.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Td(e.current,2,null,e,null,null),Bi(),t[nn]=null}};function nr(e){this._internalRoot=e}nr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ks();e={blockedOn:null,target:e,priority:t};for(var l=0;l<kl.length&&t!==0&&t<kl[l].priority;l++);kl.splice(l,0,e),l===0&&Od(e)}};var zd=u.version;if(zd!=="19.1.0")throw Error(c(527,zd,"19.1.0"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=S(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var nb={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:y,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ar=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ar.isDisabled&&ar.supportsFiber)try{Ll=ar.inject(nb),gt=ar}catch{}}return Ga.createRoot=function(e,t){if(!g(e))throw Error(c(299));var l=!1,n="",a=$c,i=Ic,o=Jc,d=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(d=t.unstable_transitionCallbacks)),t=wd(e,1,!1,null,null,l,n,a,i,o,d,null),e[nn]=t.current,is(e),new Ns(t)},Ga.hydrateRoot=function(e,t,l){if(!g(e))throw Error(c(299));var n=!1,a="",i=$c,o=Ic,d=Jc,E=null,R=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(E=l.unstable_transitionCallbacks),l.formState!==void 0&&(R=l.formState)),t=wd(e,1,!0,t,l??null,n,a,i,o,d,E,R),t.context=Ad(null),l=t.current,n=xt(),n=hr(n),a=gl(n),a.callback=null,hl(l,a,n),l=n,t.current.lanes=l,Xn(t,l),Yt(t),e[nn]=t.current,is(e),new nr(t)},Ga.version="19.1.0",Ga}var Vd;function gb(){if(Vd)return Ts.exports;Vd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(u){console.error(u)}}return r(),Ts.exports=db(),Ts.exports}var hb=gb();const pb=og(hb),cg=["shift","alt","meta","mod","ctrl","control"],bb={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 Rl(r){return(bb[r.trim()]||r.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function fg(r){return cg.includes(r)}function ks(r,u=","){return r.toLowerCase().split(u)}function Os(r,u="+",f=">",c=!1,g){let h=[],x=!1;r.includes(f)?(x=!0,h=r.toLocaleLowerCase().split(f).map(p=>Rl(p))):h=r.toLocaleLowerCase().split(u).map(p=>Rl(p));const T={alt:h.includes("alt"),ctrl:h.includes("ctrl")||h.includes("control"),shift:h.includes("shift"),meta:h.includes("meta"),mod:h.includes("mod"),useKey:c},S=h.filter(p=>!cg.includes(p));return{...T,keys:S,description:g,isSequence:x}}typeof document<"u"&&(document.addEventListener("keydown",r=>{r.code!==void 0&&dg([Rl(r.code)])}),document.addEventListener("keyup",r=>{r.code!==void 0&&gg([Rl(r.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{il.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{il.clear()},0)}));const il=new Set;function Bs(r){return Array.isArray(r)}function yb(r,u=","){return(Bs(r)?r:r.split(u)).every(f=>il.has(f.trim().toLowerCase()))}function dg(r){const u=Array.isArray(r)?r:[r];il.has("meta")&&il.forEach(f=>!fg(f)&&il.delete(f.toLowerCase())),u.forEach(f=>il.add(f.toLowerCase()))}function gg(r){const u=Array.isArray(r)?r:[r];r==="meta"?il.clear():u.forEach(f=>il.delete(f.toLowerCase()))}function mb(r,u,f){(typeof f=="function"&&f(r,u)||f===!0)&&r.preventDefault()}function vb(r,u,f){return typeof f=="function"?f(r,u):f===!0||f===void 0}function xb(r){return hg(r,["input","textarea","select"])}function hg(r,u=!1){const{target:f,composed:c}=r;let g;return Sb(f)&&c?g=r.composedPath()[0]&&r.composedPath()[0].tagName:g=f&&f.tagName,Bs(u)?!!(g&&u&&u.some(h=>h.toLowerCase()===g.toLowerCase())):!!(g&&u&&u)}function Sb(r){return!!r.tagName&&!r.tagName.startsWith("-")&&r.tagName.includes("-")}function Eb(r,u){return r.length===0&&u?(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):u?r.some(f=>u.includes(f))||r.includes("*"):!0}const Nb=(r,u,f=!1)=>{const{alt:c,meta:g,mod:h,shift:x,ctrl:T,keys:S,useKey:p}=u,{code:w,key:b,ctrlKey:k,metaKey:q,shiftKey:v,altKey:A}=r,N=Rl(w);if(p&&S?.length===1&&S.includes(b))return!0;if(!(S!=null&&S.includes(N))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(N))return!1;if(!f){if(c!==A&&N!=="alt"||x!==v&&N!=="shift")return!1;if(h){if(!q&&!k)return!1}else if(g!==q&&N!=="meta"&&N!=="os"||T!==k&&N!=="ctrl"&&N!=="control")return!1}return S&&S.length===1&&S.includes(N)?!0:S?yb(S):!S},pg=L.createContext(void 0),wb=()=>L.useContext(pg);function Ab({addHotkey:r,removeHotkey:u,children:f}){return s.jsx(pg.Provider,{value:{addHotkey:r,removeHotkey:u},children:f})}function Hs(r,u){return r&&u&&typeof r=="object"&&typeof u=="object"?Object.keys(r).length===Object.keys(u).length&&Object.keys(r).reduce((f,c)=>f&&Hs(r[c],u[c]),!0):r===u}const bg=L.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),sr=()=>L.useContext(bg),Tb=({initiallyActiveScopes:r=["*"],children:u})=>{const[f,c]=L.useState(r),[g,h]=L.useState([]),x=L.useCallback(b=>{c(k=>k.includes("*")?[b]:Array.from(new Set([...k,b])))},[]),T=L.useCallback(b=>{c(k=>k.filter(q=>q!==b))},[]),S=L.useCallback(b=>{c(k=>k.includes(b)?k.filter(q=>q!==b):k.includes("*")?[b]:Array.from(new Set([...k,b])))},[]),p=L.useCallback(b=>{h(k=>[...k,b])},[]),w=L.useCallback(b=>{h(k=>k.filter(q=>!Hs(q,b)))},[]);return s.jsx(bg.Provider,{value:{activeScopes:f,hotkeys:g,enableScope:x,disableScope:T,toggleScope:S},children:s.jsx(Ab,{addHotkey:p,removeHotkey:w,children:u})})};function _b(r){const u=L.useRef(void 0);return Hs(u.current,r)||(u.current=r),u.current}const Xd=r=>{r.stopPropagation(),r.preventDefault(),r.stopImmediatePropagation()},jb=typeof window<"u"?L.useLayoutEffect:L.useEffect;function Me(r,u,f,c){const g=L.useRef(null),h=L.useRef(!1),x=f instanceof Array?c instanceof Array?void 0:c:f,T=Bs(r)?r.join(x?.delimiter):r,S=f instanceof Array?f:c instanceof Array?c:void 0,p=L.useCallback(u,S??[]),w=L.useRef(p);S?w.current=p:w.current=u;const b=_b(x),{activeScopes:k}=sr(),q=wb();return jb(()=>{if(b?.enabled===!1||!Eb(k,b?.scopes))return;let v=[],A;const N=(z,X=!1)=>{var ee;if(!(xb(z)&&!hg(z,b?.enableOnFormTags))){if(g.current!==null){const le=g.current.getRootNode();if((le instanceof Document||le instanceof ShadowRoot)&&le.activeElement!==g.current&&!g.current.contains(le.activeElement)){Xd(z);return}}(ee=z.target)!=null&&ee.isContentEditable&&!(b!=null&&b.enableOnContentEditable)||ks(T,b?.delimiter).forEach(le=>{var se,pe,ce,ae;if(le.includes(b?.splitKey??"+")&&le.includes(b?.sequenceSplitKey??">")){console.warn(`Hotkey ${le} contains both ${b?.splitKey??"+"} and ${b?.sequenceSplitKey??">"} which is not supported.`);return}const K=Os(le,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description);if(K.isSequence){A=setTimeout(()=>{v=[]},b?.sequenceTimeoutMs??1e3);const me=K.useKey?z.key:Rl(z.code);if(fg(me.toLowerCase()))return;v.push(me);const ge=(se=K.keys)==null?void 0:se[v.length-1];if(me!==ge){v=[],A&&clearTimeout(A);return}v.length===((pe=K.keys)==null?void 0:pe.length)&&(w.current(z,K),A&&clearTimeout(A),v=[])}else if(Nb(z,K,b?.ignoreModifiers)||(ce=K.keys)!=null&&ce.includes("*")){if((ae=b?.ignoreEventWhen)!=null&&ae.call(b,z)||X&&h.current)return;if(mb(z,K,b?.preventDefault),!vb(z,K,b?.enabled)){Xd(z);return}w.current(z,K),X||(h.current=!0)}})}},j=z=>{z.code!==void 0&&(dg(Rl(z.code)),(b?.keydown===void 0&&b?.keyup!==!0||b!=null&&b.keydown)&&N(z))},_=z=>{z.code!==void 0&&(gg(Rl(z.code)),h.current=!1,b!=null&&b.keyup&&N(z,!0))},H=g.current||x?.document||document;return H.addEventListener("keyup",_,x?.eventListenerOptions),H.addEventListener("keydown",j,x?.eventListenerOptions),q&&ks(T,b?.delimiter).forEach(z=>q.addHotkey(Os(z,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description))),()=>{H.removeEventListener("keyup",_,x?.eventListenerOptions),H.removeEventListener("keydown",j,x?.eventListenerOptions),q&&ks(T,b?.delimiter).forEach(z=>q.removeHotkey(Os(z,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description))),v=[],A&&clearTimeout(A)}},[T,b,k]),g}/**
50
- * @license lucide-react v0.525.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */const Cb=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kb=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,f,c)=>c?c.toUpperCase():f.toLowerCase()),Fd=r=>{const u=kb(r);return u.charAt(0).toUpperCase()+u.slice(1)},yg=(...r)=>r.filter((u,f,c)=>!!u&&u.trim()!==""&&c.indexOf(u)===f).join(" ").trim(),Ob=r=>{for(const u in r)if(u.startsWith("aria-")||u==="role"||u==="title")return!0};/**
55
- * @license lucide-react v0.525.0 - ISC
56
- *
57
- * This source code is licensed under the ISC license.
58
- * See the LICENSE file in the root directory of this source tree.
59
- */var Db={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"};/**
60
- * @license lucide-react v0.525.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const Rb=L.forwardRef(({color:r="currentColor",size:u=24,strokeWidth:f=2,absoluteStrokeWidth:c,className:g="",children:h,iconNode:x,...T},S)=>L.createElement("svg",{ref:S,...Db,width:u,height:u,stroke:r,strokeWidth:c?Number(f)*24/Number(u):f,className:yg("lucide",g),...!h&&!Ob(T)&&{"aria-hidden":"true"},...T},[...x.map(([p,w])=>L.createElement(p,w)),...Array.isArray(h)?h:[h]]));/**
65
- * @license lucide-react v0.525.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */const He=(r,u)=>{const f=L.forwardRef(({className:c,...g},h)=>L.createElement(Rb,{ref:h,iconNode:u,className:yg(`lucide-${Cb(Fd(r))}`,`lucide-${r}`,c),...g}));return f.displayName=Fd(r),f};/**
70
- * @license lucide-react v0.525.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const zb=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Mb=He("align-left",zb);/**
75
- * @license lucide-react v0.525.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */const Lb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Za=He("check",Lb);/**
80
- * @license lucide-react v0.525.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const Ub=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],qs=He("chevron-down",Ub);/**
85
- * @license lucide-react v0.525.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const Bb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],mg=He("chevron-right",Bb);/**
90
- * @license lucide-react v0.525.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const Hb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],qb=He("columns-2",Hb);/**
95
- * @license lucide-react v0.525.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const Gb=[["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"}]],vg=He("copy",Gb);/**
100
- * @license lucide-react v0.525.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const Yb=[["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"}]],Zb=He("eraser",Yb);/**
105
- * @license lucide-react v0.525.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const Vb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],xg=He("file-diff",Vb);/**
110
- * @license lucide-react v0.525.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const Xb=[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]],Sg=He("file-pen",Xb);/**
115
- * @license lucide-react v0.525.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const Fb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],Eg=He("file-plus",Fb);/**
120
- * @license lucide-react v0.525.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */const Qb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],Ng=He("file-x",Qb);/**
125
- * @license lucide-react v0.525.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */const Kb=[["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"}]],$b=He("folder-open",Kb);/**
130
- * @license lucide-react v0.525.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */const Ib=[["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"}]],Jb=He("folder",Ib);/**
135
- * @license lucide-react v0.525.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */const Wb=[["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"}]],Pb=He("keyboard",Wb);/**
140
- * @license lucide-react v0.525.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const ey=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],ty=He("list",ey);/**
145
- * @license lucide-react v0.525.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */const ly=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],wg=He("message-square",ly);/**
150
- * @license lucide-react v0.525.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */const ny=[["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"}]],ay=He("panel-left-close",ny);/**
155
- * @license lucide-react v0.525.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const iy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ry=He("panel-left",iy);/**
160
- * @license lucide-react v0.525.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const uy=[["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"}]],sy=He("pen",uy);/**
165
- * @license lucide-react v0.525.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const oy=[["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"}]],cy=He("refresh-cw",oy);/**
170
- * @license lucide-react v0.525.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */const fy=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],dy=He("search",fy);/**
175
- * @license lucide-react v0.525.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const gy=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ag=He("settings",gy);/**
180
- * @license lucide-react v0.525.0 - ISC
181
- *
182
- * This source code is licensed under the ISC license.
183
- * See the LICENSE file in the root directory of this source tree.
184
- */const hy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],py=He("square",hy);/**
185
- * @license lucide-react v0.525.0 - ISC
186
- *
187
- * This source code is licensed under the ISC license.
188
- * See the LICENSE file in the root directory of this source tree.
189
- */const by=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gs=He("x",by);function Tg({checked:r,onChange:u,label:f,className:c="",title:g}){const h=T=>{T.stopPropagation(),u(!r)},x=T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),T.stopPropagation(),u(!r))};return s.jsxs("div",{className:`flex items-center gap-2 text-xs text-github-text-primary cursor-pointer ${c}`,title:g,onClick:h,onKeyDown:x,role:"checkbox","aria-checked":r,tabIndex:0,children:[s.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center transition-all duration-200 cursor-pointer ${r?"bg-github-accent border-github-accent":"bg-github-bg-tertiary border-github-text-muted hover:border-github-accent/50"}`,children:r&&s.jsx(Za,{size:10,className:"text-white"})}),f&&s.jsx("span",{className:"select-none",children:f})]})}function yy({commentsCount:r,isCopiedAll:u,onCopyAll:f,onDeleteAll:c,onViewAll:g}){const[h,x]=L.useState(!1),T=L.useRef(null);L.useEffect(()=>{const b=k=>{T.current&&!T.current.contains(k.target)&&x(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const S=()=>{f(),x(!1)},p=()=>{c(),x(!1)},w=()=>{g?.(),x(!1)};return s.jsxs("div",{className:"relative",ref:T,children:[s.jsxs("div",{className:"flex",children:[s.jsxs("button",{onClick:S,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:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:`Copy all ${r} comments to AI coding agent`,children:[u?s.jsx(Za,{size:12}):s.jsx(vg,{size:12}),u?"Copied All!":`Copy All Prompt (${r})`]}),s.jsx("button",{onClick:()=>x(!h),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:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"More options",children:s.jsx(qs,{size:12,className:`transition-transform duration-200 ${h?"rotate-180":""}`})})]}),h&&s.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:[g&&s.jsxs("button",{onClick:w,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:r===0,children:[s.jsx(ty,{size:12}),"View All Comments"]}),s.jsxs("button",{onClick:p,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:[s.jsx(Zb,{size:12}),"Cleanup All Prompt"]})]})]})}function Ys({comment:r,onGeneratePrompt:u,onRemoveComment:f,onUpdateComment:c,onClick:g}){const[h,x]=L.useState(!1),[T,S]=L.useState(!1),[p,w]=L.useState(r.body),b=async j=>{j.stopPropagation();try{const _=u(r);await navigator.clipboard.writeText(_),x(!0),setTimeout(()=>x(!1),2e3)}catch(_){console.error("Failed to copy prompt:",_)}},k=j=>{j.stopPropagation(),S(!0),w(r.body)},q=()=>{S(!1),w(r.body)},v=j=>{j?.stopPropagation(),p.trim()!==r.body&&c(r.id,p.trim()),S(!1)},A=j=>{j.stopPropagation(),f(r.id)},N=j=>{j.key==="Enter"&&(j.metaKey||j.ctrlKey)?(j.preventDefault(),v()):j.key==="Escape"&&(j.preventDefault(),q())};return Me("escape",()=>{T&&q()},{enableOnFormTags:["textarea"],enabled:T},[T]),Me("mod+enter",()=>{T&&v()},{enableOnFormTags:["textarea"],enabled:T},[T,p,r.body]),s.jsxs("div",{id:`comment-${r.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 ${g?"hover:shadow-md cursor-pointer":""}`,onClick:g,children:[s.jsxs("div",{className:"flex items-center justify-between mb-2 gap-3",children:[s.jsx("div",{className:"flex items-center gap-2 text-xs text-github-text-secondary flex-1 min-w-0",children:s.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:[r.file,":",Array.isArray(r.line)?`${r.line[0]}-${r.line[1]}`:r.line]})}),s.jsx("div",{className:"flex items-center gap-2",children:!T&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:b,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:j=>{j.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",j.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:j=>{j.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",j.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"Copy prompt for AI coding agent",children:h?"Copied!":"Copy Prompt"}),s.jsx("button",{onClick:k,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:s.jsx(sy,{size:12})}),s.jsx("button",{onClick:A,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:s.jsx(Za,{size:12})})]})})]}),T?s.jsxs("div",{children:[s.jsx("textarea",{value:p,onChange:j=>w(j.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,p.split(`
190
- `).length),placeholder:"Edit your comment...",autoFocus:!0,onClick:j=>j.stopPropagation(),onKeyDown:j=>{j.stopPropagation(),N(j)}}),s.jsxs("div",{className:"flex gap-2 justify-end mt-2",children:[s.jsx("button",{type:"button",onClick:q,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"}),s.jsx("button",{type:"button",onClick:v,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:j=>{j.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",j.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:j=>{j.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",j.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!p.trim(),children:"Submit"})]})]}):s.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:r.body})]})}function my({isOpen:r,onClose:u,onNavigate:f,comments:c,onRemoveComment:g,onGeneratePrompt:h,onUpdateComment:x}){const[T,S]=L.useState(0),p=L.useRef([]),{enableScope:w,disableScope:b}=sr(),k=[...c].sort((N,j)=>{const _=N.file.localeCompare(j.file);if(_!==0)return _;const H=Array.isArray(N.line)?N.line[0]:N.line,z=Array.isArray(j.line)?j.line[0]:j.line;return H-z}),q=L.useCallback(N=>{f(N),u()},[f,u]),v=L.useCallback(N=>{confirm(`Delete this comment?
191
-
192
- "${N.body}"`)&&(g(N.id),T>=k.length-1&&T>0&&S(T-1))},[g,T,k.length]);L.useEffect(()=>(r?(w("comments-list"),b("navigation")):(w("navigation"),b("comments-list"),S(0)),()=>{w("navigation"),b("comments-list")}),[r,w,b]);const A={scopes:"comments-list",enableOnFormTags:!1};return Me("escape",()=>u(),A,[u]),Me("j, down",()=>S(N=>Math.min(N+1,k.length-1)),A,[k.length]),Me("k, up",()=>S(N=>Math.max(N-1,0)),A,[]),Me("enter",()=>{k[T]&&q(k[T])},A,[T,k,q]),Me("d",()=>{k[T]&&v(k[T])},A,[T,k,v]),L.useEffect(()=>{p.current[T]&&p.current[T]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[T]),r?s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:u}),s.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:[s.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"All Comments"}),s.jsx("button",{onClick:u,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close comments list",children:s.jsx(Gs,{size:20})})]}),s.jsxs("div",{className:"text-xs text-github-text-secondary",children:[s.jsx("span",{className:"font-mono",children:"j/k"})," or ",s.jsx("span",{className:"font-mono",children:"↑/↓"})," to navigate • ",s.jsx("span",{className:"font-mono",children:"Enter"})," to jump •"," ",s.jsx("span",{className:"font-mono",children:"d"})," to delete • ",s.jsx("span",{className:"font-mono",children:"Esc"})," ","to close"]})]}),s.jsx("div",{className:"overflow-y-auto max-h-[calc(80vh-120px)]",children:s.jsx("div",{className:"p-6",children:k.length===0?s.jsx("p",{className:"text-github-text-secondary text-center",children:"No comments yet"}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"space-y-2",children:k.map((N,j)=>s.jsx("div",{ref:_=>{p.current[j]=_},className:`${T===j?"ring-2 ring-blue-500 rounded":""}`,children:s.jsx(Ys,{comment:N,onGeneratePrompt:h,onRemoveComment:g,onUpdateComment:x,onClick:_=>{_.stopPropagation(),S(j),q(N)}})},N.id))}),k.length>0&&s.jsxs("div",{className:"mt-4 pt-4 border-t border-github-border text-xs text-github-text-secondary text-center",children:[T+1," of ",k.length," comments"]})]})})})]})]}):null}function _g(r){return r&&r.split(".").pop()?.toLowerCase()||null}function vy(r){return r&&r.split("/").pop()||""}const xy=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function Sy(r){if(!r)return!1;const u=_g(r);return u?xy.includes(u):!1}function jg({onSubmit:r,onCancel:u}){const[f,c]=L.useState(""),[g,h]=L.useState(!1),x=async S=>{if(S.preventDefault(),!!f.trim()){h(!0);try{await r(f.trim()),c("")}catch(p){console.error("Failed to submit comment:",p)}finally{h(!1)}}},T=S=>{S.key==="Enter"&&(S.metaKey||S.ctrlKey)?x(S):S.key==="Escape"&&u()};return s.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:x,"data-empty":!f.trim(),children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-yellow-path-text)"},children:"Add a comment"}),s.jsx("span",{className:"text-xs text-github-text-muted",children:"Cmd+Enter to submit • Escape to cancel"})]}),s.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:f,onChange:S=>c(S.target.value),onKeyDown:T,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:g}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:u,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:g,children:"Cancel"}),s.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:S=>{S.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",S.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:S=>{S.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",S.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!f.trim()||g,children:g?"Submitting...":"Submit"})]})]})}const rr=tn.memo(({onMouseDown:r,onMouseUp:u,title:f="Add a comment"})=>s.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:c=>{c.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",c.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:c=>{c.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",c.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:r,onMouseUp:u,title:f,children:s.jsx(wg,{className:"w-4 h-4"})}));rr.displayName="CommentButton";const Ey=2,Ny=100;function wy(r){return!(r.length<Ey||r.length>Ny)}function Qd(r){return r.toLowerCase()}function Kd(r){const u=r.trim();return u?u.match(/^\w+$/)!==null&&wy(u):!1}const Ay=200,Cg=L.createContext(void 0);function Ty({children:r}){const[u,f]=L.useState(null),c=L.useRef(null),g=L.useCallback(()=>{c.current&&(clearTimeout(c.current),c.current=null)},[]),h=L.useCallback(p=>{const w=p.target;if(!w.classList.contains("word-token"))return;g();const b=w.getAttribute("data-word");b&&(c.current=setTimeout(()=>{f(b)},Ay))},[g]),x=L.useCallback(()=>{g(),f(null)},[g]),T=L.useCallback(p=>u?Qd(p)===Qd(u):!1,[u]);L.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]);const S={highlightedWord:u,handleMouseOver:h,handleMouseOut:x,isWordHighlighted:T};return s.jsx(Cg.Provider,{value:S,children:r})}function _y(){const r=L.useContext(Cg);if(!r)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return r}function kg(r){var u,f,c="";if(typeof r=="string"||typeof r=="number")c+=r;else if(typeof r=="object")if(Array.isArray(r)){var g=r.length;for(u=0;u<g;u++)r[u]&&(f=kg(r[u]))&&(c&&(c+=" "),c+=f)}else for(f in r)r[f]&&(c&&(c+=" "),c+=f);return c}function Og(){for(var r,u,f=0,c="",g=arguments.length;f<g;f++)(r=arguments[f])&&(u=kg(r))&&(c&&(c+=" "),c+=u);return c}var jy=Object.create,or=Object.defineProperty,Cy=Object.defineProperties,ky=Object.getOwnPropertyDescriptor,Oy=Object.getOwnPropertyDescriptors,Dg=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,Dy=Object.getPrototypeOf,Zs=Object.prototype.hasOwnProperty,Rg=Object.prototype.propertyIsEnumerable,$d=(r,u,f)=>u in r?or(r,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[u]=f,Zt=(r,u)=>{for(var f in u||(u={}))Zs.call(u,f)&&$d(r,f,u[f]);if(ur)for(var f of ur(u))Rg.call(u,f)&&$d(r,f,u[f]);return r},cr=(r,u)=>Cy(r,Oy(u)),zg=(r,u)=>{var f={};for(var c in r)Zs.call(r,c)&&u.indexOf(c)<0&&(f[c]=r[c]);if(r!=null&&ur)for(var c of ur(r))u.indexOf(c)<0&&Rg.call(r,c)&&(f[c]=r[c]);return f},Ry=(r,u)=>function(){return u||(0,r[Dg(r)[0]])((u={exports:{}}).exports,u),u.exports},zy=(r,u)=>{for(var f in u)or(r,f,{get:u[f],enumerable:!0})},My=(r,u,f,c)=>{if(u&&typeof u=="object"||typeof u=="function")for(let g of Dg(u))!Zs.call(r,g)&&g!==f&&or(r,g,{get:()=>u[g],enumerable:!(c=ky(u,g))||c.enumerable});return r},Ly=(r,u,f)=>(f=r!=null?jy(Dy(r)):{},My(!r||!r.__esModule?or(f,"default",{value:r,enumerable:!0}):f,r)),Uy=Ry({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(r,u){var f=function(){var c=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,g=0,h={},x={util:{encode:function v(A){return A instanceof T?new T(A.type,v(A.content),A.alias):Array.isArray(A)?A.map(v):A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++g}),v.__id},clone:function v(A,N){N=N||{};var j,_;switch(x.util.type(A)){case"Object":if(_=x.util.objId(A),N[_])return N[_];j={},N[_]=j;for(var H in A)A.hasOwnProperty(H)&&(j[H]=v(A[H],N));return j;case"Array":return _=x.util.objId(A),N[_]?N[_]:(j=[],N[_]=j,A.forEach(function(z,X){j[X]=v(z,N)}),j);default:return A}},getLanguage:function(v){for(;v;){var A=c.exec(v.className);if(A)return A[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,A){v.className=v.className.replace(RegExp(c,"gi"),""),v.classList.add("language-"+A)},isActive:function(v,A,N){for(var j="no-"+A;v;){var _=v.classList;if(_.contains(A))return!0;if(_.contains(j))return!1;v=v.parentElement}return!!N}},languages:{plain:h,plaintext:h,text:h,txt:h,extend:function(v,A){var N=x.util.clone(x.languages[v]);for(var j in A)N[j]=A[j];return N},insertBefore:function(v,A,N,j){j=j||x.languages;var _=j[v],H={};for(var z in _)if(_.hasOwnProperty(z)){if(z==A)for(var X in N)N.hasOwnProperty(X)&&(H[X]=N[X]);N.hasOwnProperty(z)||(H[z]=_[z])}var ee=j[v];return j[v]=H,x.languages.DFS(x.languages,function(le,se){se===ee&&le!=v&&(this[le]=H)}),H},DFS:function v(A,N,j,_){_=_||{};var H=x.util.objId;for(var z in A)if(A.hasOwnProperty(z)){N.call(A,z,A[z],j||z);var X=A[z],ee=x.util.type(X);ee==="Object"&&!_[H(X)]?(_[H(X)]=!0,v(X,N,null,_)):ee==="Array"&&!_[H(X)]&&(_[H(X)]=!0,v(X,N,z,_))}}},plugins:{},highlight:function(v,A,N){var j={code:v,grammar:A,language:N};if(x.hooks.run("before-tokenize",j),!j.grammar)throw new Error('The language "'+j.language+'" has no grammar.');return j.tokens=x.tokenize(j.code,j.grammar),x.hooks.run("after-tokenize",j),T.stringify(x.util.encode(j.tokens),j.language)},tokenize:function(v,A){var N=A.rest;if(N){for(var j in N)A[j]=N[j];delete A.rest}var _=new w;return b(_,_.head,v),p(v,_,A,_.head,0),q(_)},hooks:{all:{},add:function(v,A){var N=x.hooks.all;N[v]=N[v]||[],N[v].push(A)},run:function(v,A){var N=x.hooks.all[v];if(!(!N||!N.length))for(var j=0,_;_=N[j++];)_(A)}},Token:T};function T(v,A,N,j){this.type=v,this.content=A,this.alias=N,this.length=(j||"").length|0}T.stringify=function v(A,N){if(typeof A=="string")return A;if(Array.isArray(A)){var j="";return A.forEach(function(ee){j+=v(ee,N)}),j}var _={type:A.type,content:v(A.content,N),tag:"span",classes:["token",A.type],attributes:{},language:N},H=A.alias;H&&(Array.isArray(H)?Array.prototype.push.apply(_.classes,H):_.classes.push(H)),x.hooks.run("wrap",_);var z="";for(var X in _.attributes)z+=" "+X+'="'+(_.attributes[X]||"").replace(/"/g,"&quot;")+'"';return"<"+_.tag+' class="'+_.classes.join(" ")+'"'+z+">"+_.content+"</"+_.tag+">"};function S(v,A,N,j){v.lastIndex=A;var _=v.exec(N);if(_&&j&&_[1]){var H=_[1].length;_.index+=H,_[0]=_[0].slice(H)}return _}function p(v,A,N,j,_,H){for(var z in N)if(!(!N.hasOwnProperty(z)||!N[z])){var X=N[z];X=Array.isArray(X)?X:[X];for(var ee=0;ee<X.length;++ee){if(H&&H.cause==z+","+ee)return;var le=X[ee],se=le.inside,pe=!!le.lookbehind,ce=!!le.greedy,ae=le.alias;if(ce&&!le.pattern.global){var K=le.pattern.toString().match(/[imsuy]*$/)[0];le.pattern=RegExp(le.pattern.source,K+"g")}for(var me=le.pattern||le,ge=j.next,J=_;ge!==A.tail&&!(H&&J>=H.reach);J+=ge.value.length,ge=ge.next){var y=ge.value;if(A.length>v.length)return;if(!(y instanceof T)){var G=1,$;if(ce){if($=S(me,J,v,pe),!$||$.index>=v.length)break;var Q=$.index,te=$.index+$[0].length,m=J;for(m+=ge.value.length;Q>=m;)ge=ge.next,m+=ge.value.length;if(m-=ge.value.length,J=m,ge.value instanceof T)continue;for(var U=ge;U!==A.tail&&(m<te||typeof U.value=="string");U=U.next)G++,m+=U.value.length;G--,y=v.slice(J,m),$.index-=J}else if($=S(me,0,y,pe),!$)continue;var Q=$.index,I=$[0],ne=y.slice(0,Q),he=y.slice(Q+I.length),re=J+y.length;H&&re>H.reach&&(H.reach=re);var be=ge.prev;ne&&(be=b(A,be,ne),J+=ne.length),k(A,be,G);var P=new T(z,se?x.tokenize(I,se):I,ae,I);if(ge=b(A,be,P),he&&b(A,ge,he),G>1){var Te={cause:z+","+ee,reach:re};p(v,A,N,ge.prev,J,Te),H&&Te.reach>H.reach&&(H.reach=Te.reach)}}}}}}function w(){var v={value:null,prev:null,next:null},A={value:null,prev:v,next:null};v.next=A,this.head=v,this.tail=A,this.length=0}function b(v,A,N){var j=A.next,_={value:N,prev:A,next:j};return A.next=_,j.prev=_,v.length++,_}function k(v,A,N){for(var j=A.next,_=0;_<N&&j!==v.tail;_++)j=j.next;A.next=j,j.prev=A,v.length-=_}function q(v){for(var A=[],N=v.head.next;N!==v.tail;)A.push(N.value),N=N.next;return A}return x}();u.exports=f,f.default=f}}),Z=Ly(Uy());Z.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]},Z.languages.markup.tag.inside["attr-value"].inside.entity=Z.languages.markup.entity,Z.languages.markup.doctype.inside["internal-subset"].inside=Z.languages.markup,Z.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(Z.languages.markup.tag,"addInlined",{value:function(r,c){var f={},f=(f["language-"+c]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Z.languages[c]},f.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:f}}),c=(f["language-"+c]={pattern:/[\s\S]+/,inside:Z.languages[c]},{});c[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:f},Z.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(Z.languages.markup.tag,"addAttribute",{value:function(r,u){Z.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:[u,"language-"+u],inside:Z.languages[u]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Z.languages.html=Z.languages.markup,Z.languages.mathml=Z.languages.markup,Z.languages.svg=Z.languages.markup,Z.languages.xml=Z.languages.extend("markup",{}),Z.languages.ssml=Z.languages.xml,Z.languages.atom=Z.languages.xml,Z.languages.rss=Z.languages.xml,function(r){var u={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},f=/\\(?: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]|.)/,c="(?:[^\\\\-]|"+f.source+")",c=RegExp(c+"-"+c),g={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.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:c,inside:{escape:f,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":u,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:f}},"special-escape":u,"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":g}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:f,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":g}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Z),Z.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:/[{}[\];(),.:]/},Z.languages.javascript=Z.languages.extend("clike",{"class-name":[Z.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}|\?\?=?|\?\.?|[~:]/}),Z.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Z.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:Z.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:Z.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Z.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Z.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:Z.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Z.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:Z.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"}}),Z.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Z.languages.markup&&(Z.languages.markup.tag.addInlined("script","javascript"),Z.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")),Z.languages.js=Z.languages.javascript,Z.languages.actionscript=Z.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Z.languages.actionscript["class-name"].alias="function",delete Z.languages.actionscript.parameter,delete Z.languages.actionscript["literal-property"],Z.languages.markup&&Z.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Z.languages.markup}}),function(r){var u=/#(?!\{).+/,f={pattern:/#\{[^}]+\}/,alias:"variable"};r.languages.coffeescript=r.languages.extend("javascript",{comment:u,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:f}}],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"}}),r.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:u,interpolation:f}}}),r.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:r.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:f}}]}),r.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete r.languages.coffeescript["template-string"],r.languages.coffee=r.languages.coffeescript}(Z),function(r){var u=r.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(u,"addSupport",{value:function(f,c){(f=typeof f=="string"?[f]:f).forEach(function(g){var h=function(b){b.inside||(b.inside={}),b.inside.rest=c},x="doc-comment";if(T=r.languages[g]){var T,S=T[x];if((S=S||(T=r.languages.insertBefore(g,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[x])instanceof RegExp&&(S=T[x]={pattern:S}),Array.isArray(S))for(var p=0,w=S.length;p<w;p++)S[p]instanceof RegExp&&(S[p]={pattern:S[p]}),h(S[p]);else h(S)}})}}),u.addSupport(["java","javascript","php"],u)}(Z),function(r){var u=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,u=(r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+u.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\\((?:"+u.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+u.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+u.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:u,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css,r.languages.markup);u&&(u.tag.addInlined("style","css"),u.tag.addAttribute("style","css"))}(Z),function(r){var u=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,u=(r.languages.css.selector={pattern:r.languages.css.selector.pattern,lookbehind:!0,inside:u={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+u.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":[u,{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:/[(),]/}},r.languages.css.atrule.inside["selector-function-argument"].inside=u,r.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}),f={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};r.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:u,number:f,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:u,number:f})}(Z),function(r){var u=/[*&][^\s[\]{},]+/,f=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,c="(?:"+f.source+"(?:[ ]+"+u.source+")?|"+u.source+"(?:[ ]+"+f.source+")?)",g=/(?:[^\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}),h=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function x(T,S){S=(S||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return c}).replace(/<<value>>/g,function(){return T});return RegExp(p,S)}r.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 c})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return c}).replace(/<<key>>/g,function(){return"(?:"+g+"|"+h+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:x(/\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:x(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:x(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:x(h),lookbehind:!0,greedy:!0},number:{pattern:x(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:f,important:u,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml}(Z),function(r){var u=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function f(p){return p=p.replace(/<inner>/g,function(){return u}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var c=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,g=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return c}),h=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,x=(r.languages.markdown=r.languages.extend("markup",{}),r.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:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+g+h+"(?:"+g+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+g+h+")(?:"+g+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(c),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+g+")"+h+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+g+"$"),inside:{"table-header":{pattern:RegExp(c),alias:"important",inside:r.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:f(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:f(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:f(/(~~?)(?:(?!~)<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:f(/!?\[(?:(?!\])<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(p){["url","bold","italic","strike","code-snippet"].forEach(function(w){p!==w&&(r.languages.markdown[p].inside.content.inside[w]=r.languages.markdown[w])})}),r.hooks.add("after-tokenize",function(p){p.language!=="markdown"&&p.language!=="md"||function w(b){if(b&&typeof b!="string")for(var k=0,q=b.length;k<q;k++){var v,A=b[k];A.type!=="code"?w(A.content):(v=A.content[1],A=A.content[3],v&&A&&v.type==="code-language"&&A.type==="code-block"&&typeof v.content=="string"&&(v=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),v="language-"+(v=(/[a-z][\w-]*/i.exec(v)||[""])[0].toLowerCase()),A.alias?typeof A.alias=="string"?A.alias=[A.alias,v]:A.alias.push(v):A.alias=[v]))}}(p.tokens)}),r.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var w="",b=0,k=p.classes.length;b<k;b++){var q=p.classes[b],q=/language-(.+)/.exec(q);if(q){w=q[1];break}}var v,A=r.languages[w];A?p.content=r.highlight(function(N){return N=N.replace(x,""),N=N.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(j,_){var H;return(_=_.toLowerCase())[0]==="#"?(H=_[1]==="x"?parseInt(_.slice(2),16):Number(_.slice(1)),S(H)):T[_]||j})}(p.content),A,w):w&&w!=="none"&&r.plugins.autoloader&&(v="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),p.attributes.id=v,r.plugins.autoloader.loadLanguages(w,function(){var N=document.getElementById(v);N&&(N.innerHTML=r.highlight(N.textContent,r.languages[w],w))}))}}),RegExp(r.languages.markup.tag.pattern.source,"gi")),T={amp:"&",lt:"<",gt:">",quot:'"'},S=String.fromCodePoint||String.fromCharCode;r.languages.md=r.languages.markdown}(Z),Z.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:Z.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+/},Z.hooks.add("after-tokenize",function(r){if(r.language==="graphql")for(var u=r.tokens.filter(function(v){return typeof v!="string"&&v.type!=="comment"&&v.type!=="scalar"}),f=0;f<u.length;){var c=u[f++];if(c.type==="keyword"&&c.content==="mutation"){var g=[];if(b(["definition-mutation","punctuation"])&&w(1).content==="("){f+=2;var h=k(/^\($/,/^\)$/);if(h===-1)continue;for(;f<h;f++){var x=w(0);x.type==="variable"&&(q(x,"variable-input"),g.push(x.content))}f=h+1}if(b(["punctuation","property-query"])&&w(0).content==="{"&&(f++,q(w(0),"property-mutation"),0<g.length)){var T=k(/^\{$/,/^\}$/);if(T!==-1)for(var S=f;S<T;S++){var p=u[S];p.type==="variable"&&0<=g.indexOf(p.content)&&q(p,"variable-input")}}}}function w(v){return u[f+v]}function b(v,A){A=A||0;for(var N=0;N<v.length;N++){var j=w(N+A);if(!j||j.type!==v[N])return}return 1}function k(v,A){for(var N=1,j=f;j<u.length;j++){var _=u[j],H=_.content;if(_.type==="punctuation"&&typeof H=="string"){if(v.test(H))N++;else if(A.test(H)&&--N===0)return j}}return-1}function q(v,A){var N=v.alias;N?Array.isArray(N)||(v.alias=N=[N]):v.alias=N=[],N.push(A)}}),Z.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(r){var u=r.languages.javascript["template-string"],f=u.pattern.source,c=u.inside.interpolation,g=c.inside["interpolation-punctuation"],h=c.pattern.source;function x(b,k){if(r.languages[b])return{pattern:RegExp("((?:"+k+")\\s*)"+f),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}function T(b,k,q){return b={code:b,grammar:k,language:q},r.hooks.run("before-tokenize",b),b.tokens=r.tokenize(b.code,b.grammar),r.hooks.run("after-tokenize",b),b.tokens}function S(b,k,q){var N=r.tokenize(b,{interpolation:{pattern:RegExp(h),lookbehind:!0}}),v=0,A={},N=T(N.map(function(_){if(typeof _=="string")return _;for(var H,z,_=_.content;b.indexOf((z=v++,H="___"+q.toUpperCase()+"_"+z+"___"))!==-1;);return A[H]=_,H}).join(""),k,q),j=Object.keys(A);return v=0,function _(H){for(var z=0;z<H.length;z++){if(v>=j.length)return;var X,ee,le,se,pe,ce,ae,K=H[z];typeof K=="string"||typeof K.content=="string"?(X=j[v],(ae=(ce=typeof K=="string"?K:K.content).indexOf(X))!==-1&&(++v,ee=ce.substring(0,ae),pe=A[X],le=void 0,(se={})["interpolation-punctuation"]=g,(se=r.tokenize(pe,se)).length===3&&((le=[1,1]).push.apply(le,T(se[1],r.languages.javascript,"javascript")),se.splice.apply(se,le)),le=new r.Token("interpolation",se,c.alias,pe),se=ce.substring(ae+X.length),pe=[],ee&&pe.push(ee),pe.push(le),se&&(_(ce=[se]),pe.push.apply(pe,ce)),typeof K=="string"?(H.splice.apply(H,[z,1].concat(pe)),z+=pe.length-1):K.content=pe)):(ae=K.content,Array.isArray(ae)?_(ae):_([ae]))}}(N),new r.Token(q,N,"language-"+q,b)}r.languages.javascript["template-string"]=[x("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),x("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),x("svg",/\bsvg/.source),x("markdown",/\b(?:markdown|md)/.source),x("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),x("sql",/\bsql/.source),u].filter(Boolean);var p={};function w(b){return typeof b=="string"?b:Array.isArray(b)?b.map(w).join(""):w(b.content)}r.hooks.add("after-tokenize",function(b){b.language in p&&function k(q){for(var v=0,A=q.length;v<A;v++){var N,j,_,H=q[v];typeof H!="string"&&(N=H.content,Array.isArray(N)?H.type==="template-string"?(H=N[1],N.length===3&&typeof H!="string"&&H.type==="embedded-code"&&(j=w(H),H=H.alias,H=Array.isArray(H)?H[0]:H,_=r.languages[H])&&(N[1]=S(j,_,H))):k(N):typeof N!="string"&&k([N]))}}(b.tokens)})}(Z),function(r){r.languages.typescript=r.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/}),r.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 r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var u=r.languages.extend("typescript",{});delete u["class-name"],r.languages.typescript["class-name"].inside=u,r.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:u}}}}),r.languages.ts=r.languages.typescript}(Z),function(r){var u=r.languages.javascript,f=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,c="(@(?:arg|argument|param|property)\\s+(?:"+f+"\\s+)?)";r.languages.jsdoc=r.languages.extend("javadoclike",{parameter:{pattern:RegExp(c+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(c+/\[(?:(?!\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:u,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 f})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+f),lookbehind:!0,inside:{string:u.string,number:u.number,boolean:u.boolean,keyword:r.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:u,alias:"language-javascript"}}}}),r.languages.javadoclike.addSupport("javascript",r.languages.jsdoc)}(Z),function(r){r.languages.flow=r.languages.extend("javascript",{}),r.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),r.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 r.languages.flow.parameter,r.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(r.languages.flow.keyword)||(r.languages.flow.keyword=[r.languages.flow.keyword]),r.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})}(Z),Z.languages.n4js=Z.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/}),Z.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Z.languages.n4jsd=Z.languages.n4js,function(r){function u(x,T){return RegExp(x.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),T)}r.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+r.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),r.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+r.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),r.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"}]}),r.languages.insertBefore("javascript","keyword",{imports:{pattern:u(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:r.languages.javascript},exports:{pattern:u(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:r.languages.javascript}}),r.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"}),r.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),r.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:u(/(\.\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 f=["function","function-variable","method","method-variable","property-access"],c=0;c<f.length;c++){var h=f[c],g=r.languages.javascript[h],h=(g=r.util.type(g)==="RegExp"?r.languages.javascript[h]={pattern:g}:g).inside||{};(g.inside=h)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Z),function(r){var u=r.util.clone(r.languages.javascript),f=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,c=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,g=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function h(S,p){return S=S.replace(/<S>/g,function(){return f}).replace(/<BRACES>/g,function(){return c}).replace(/<SPREAD>/g,function(){return g}),RegExp(S,p)}g=h(g).source,r.languages.jsx=r.languages.extend("markup",u),r.languages.jsx.tag.pattern=h(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=u.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:h(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:h(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);function x(S){for(var p=[],w=0;w<S.length;w++){var b=S[w],k=!1;typeof b!="string"&&(b.type==="tag"&&b.content[0]&&b.content[0].type==="tag"?b.content[0].content[0].content==="</"?0<p.length&&p[p.length-1].tagName===T(b.content[0].content[1])&&p.pop():b.content[b.content.length-1].content!=="/>"&&p.push({tagName:T(b.content[0].content[1]),openedBraces:0}):0<p.length&&b.type==="punctuation"&&b.content==="{"?p[p.length-1].openedBraces++:0<p.length&&0<p[p.length-1].openedBraces&&b.type==="punctuation"&&b.content==="}"?p[p.length-1].openedBraces--:k=!0),(k||typeof b=="string")&&0<p.length&&p[p.length-1].openedBraces===0&&(k=T(b),w<S.length-1&&(typeof S[w+1]=="string"||S[w+1].type==="plain-text")&&(k+=T(S[w+1]),S.splice(w+1,1)),0<w&&(typeof S[w-1]=="string"||S[w-1].type==="plain-text")&&(k=T(S[w-1])+k,S.splice(w-1,1),w--),S[w]=new r.Token("plain-text",k,null,k)),b.content&&typeof b.content!="string"&&x(b.content)}}var T=function(S){return S?typeof S=="string"?S:typeof S.content=="string"?S.content:S.content.map(T).join(""):""};r.hooks.add("after-tokenize",function(S){S.language!=="jsx"&&S.language!=="tsx"||x(S.tokens)})}(Z),function(r){var u=r.util.clone(r.languages.typescript),u=(r.languages.tsx=r.languages.extend("jsx",u),delete r.languages.tsx.parameter,delete r.languages.tsx["literal-property"],r.languages.tsx.tag);u.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+u.pattern.source+")",u.pattern.flags),u.lookbehind=!0}(Z),Z.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:/[{}[\]();,.:\\]/},Z.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=Z.languages.swift}),function(r){r.languages.kotlin=r.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 r.languages.kotlin["class-name"];var u={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:u},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:u},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin}(Z),Z.languages.c=Z.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|[?:~]|[-+*/%&|^!=<>]=?/}),Z.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Z.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},Z.languages.c.string],char:Z.languages.c.char,comment:Z.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:Z.languages.c}}}}),Z.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 Z.languages.c.boolean,Z.languages.objectivec=Z.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 Z.languages.objectivec["class-name"],Z.languages.objc=Z.languages.objectivec,Z.languages.reason=Z.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/}),Z.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 Z.languages.reason.function,function(r){for(var u=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,f=0;f<2;f++)u=u.replace(/<self>/g,function(){return u});u=u.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+u),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string}(Z),Z.languages.go=Z.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/}),Z.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Z.languages.go["class-name"],function(r){var u=/\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/,f=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return u.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return u.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:u,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/}),r.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 f})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.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:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(Z),Z.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Z.languages.python["string-interpolation"].inside.interpolation.inside.rest=Z.languages.python,Z.languages.py=Z.languages.python,Z.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"}},Z.languages.webmanifest=Z.languages.json;var Nt={};zy(Nt,{dracula:()=>Hy,duotoneDark:()=>Gy,duotoneLight:()=>Zy,github:()=>Xy,gruvboxMaterialDark:()=>xm,gruvboxMaterialLight:()=>Em,jettwaveDark:()=>dm,jettwaveLight:()=>hm,nightOwl:()=>Qy,nightOwlLight:()=>$y,oceanicNext:()=>Jy,okaidia:()=>Py,oneDark:()=>bm,oneLight:()=>mm,palenight:()=>tm,shadesOfPurple:()=>nm,synthwave84:()=>im,ultramin:()=>um,vsDark:()=>Mg,vsLight:()=>cm});var By={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)"}}]},Hy=By,qy={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"}}]},Gy=qy,Yy={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"}}]},Zy=Yy,Vy={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"}}]},Xy=Vy,Fy={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)"}}]},Qy=Fy,Ky={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)"}}]},$y=Ky,Et={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},Iy={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Et.keyword}},{types:["attr-value"],style:{color:Et.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:Et.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:Et.primitive}},{types:["boolean"],style:{color:Et.boolean}},{types:["tag"],style:{color:Et.tag}},{types:["string"],style:{color:Et.string}},{types:["punctuation"],style:{color:Et.string}},{types:["selector","char","builtin","inserted"],style:{color:Et.char}},{types:["function"],style:{color:Et.function}},{types:["operator","entity","url","variable"],style:{color:Et.variable}},{types:["keyword"],style:{color:Et.keyword}},{types:["atrule","class-name"],style:{color:Et.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Jy=Iy,Wy={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"}}]},Py=Wy,em={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)"}}]},tm=em,lm={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)"}}]},nm=lm,am={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"}}]},im=am,rm={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)"}}]},um=rm,sm={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)"}}]},Mg=sm,om={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)"}}]},cm=om,fm={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"}}]},dm=fm,gm={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"}}]},hm=gm,pm={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%)"}}]},bm=pm,ym={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%)"}}]},mm=ym,vm={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"}}]},xm=vm,Sm={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"}}]},Em=Sm,Nm=r=>L.useCallback(u=>{var f=u,{className:c,style:g,line:h}=f,x=zg(f,["className","style","line"]);const T=cr(Zt({},x),{className:Og("token-line",c)});return typeof r=="object"&&"plain"in r&&(T.style=r.plain),typeof g=="object"&&(T.style=Zt(Zt({},T.style||{}),g)),T},[r]),wm=r=>{const u=L.useCallback(({types:f,empty:c})=>{if(r!=null){{if(f.length===1&&f[0]==="plain")return c!=null?{display:"inline-block"}:void 0;if(f.length===1&&c!=null)return r[f[0]]}return Object.assign(c!=null?{display:"inline-block"}:{},...f.map(g=>r[g]))}},[r]);return L.useCallback(f=>{var c=f,{token:g,className:h,style:x}=c,T=zg(c,["token","className","style"]);const S=cr(Zt({},T),{className:Og("token",...g.types,h),children:g.content,style:u(g)});return x!=null&&(S.style=Zt(Zt({},S.style||{}),x)),S},[u])},Am=/\r\n|\r|\n/,Id=r=>{r.length===0?r.push({types:["plain"],content:`
193
- `,empty:!0}):r.length===1&&r[0].content===""&&(r[0].content=`
194
- `,r[0].empty=!0)},Jd=(r,u)=>{const f=r.length;return f>0&&r[f-1]===u?r:r.concat(u)},Tm=r=>{const u=[[]],f=[r],c=[0],g=[r.length];let h=0,x=0,T=[];const S=[T];for(;x>-1;){for(;(h=c[x]++)<g[x];){let p,w=u[x];const k=f[x][h];if(typeof k=="string"?(w=x>0?w:["plain"],p=k):(w=Jd(w,k.type),k.alias&&(w=Jd(w,k.alias)),p=k.content),typeof p!="string"){x++,u.push(w),f.push(p),c.push(0),g.push(p.length);continue}const q=p.split(Am),v=q.length;T.push({types:w,content:q[0]});for(let A=1;A<v;A++)Id(T),S.push(T=[]),T.push({types:w,content:q[A]})}x--,u.pop(),f.pop(),c.pop(),g.pop()}return Id(T),S},Wd=Tm,_m=({prism:r,code:u,grammar:f,language:c})=>L.useMemo(()=>{if(f==null)return Wd([u]);const g={code:u,grammar:f,language:c,tokens:[]};return r.hooks.run("before-tokenize",g),g.tokens=r.tokenize(u,f),r.hooks.run("after-tokenize",g),Wd(g.tokens)},[u,f,c,r]),jm=(r,u)=>{const{plain:f}=r,c=r.styles.reduce((g,h)=>{const{languages:x,style:T}=h;return x&&!x.includes(u)||h.types.forEach(S=>{const p=Zt(Zt({},g[S]),T);g[S]=p}),g},{});return c.root=f,c.plain=cr(Zt({},f),{backgroundColor:void 0}),c},Cm=jm,km=({children:r,language:u,code:f,theme:c,prism:g})=>{const h=u.toLowerCase(),x=Cm(c,h),T=Nm(x),S=wm(x),p=g.languages[h],w=_m({prism:g,language:h,code:f,grammar:p});return r({tokens:w,className:`prism-code language-${h}`,style:x!=null?x.root:{},getLineProps:T,getTokenProps:S})},Om=r=>L.createElement(km,cr(Zt({},r),{prism:r.prism||Z,theme:r.theme||Mg,code:r.code,language:r.language}));/*! Bundled license information:
195
-
196
- prismjs/prism.js:
197
- (**
198
- * Prism: Lightweight, robust, elegant syntax highlighting
199
- *
200
- * @license MIT <https://opensource.org/licenses/MIT>
201
- * @author Lea Verou <https://lea.verou.me>
202
- * @namespace
203
- * @public
204
- *)
205
- */const Dm="modulepreload",Rm=function(r){return"/"+r},Pd={},dt=function(u,f,c){let g=Promise.resolve();if(f&&f.length>0){let S=function(p){return Promise.all(p.map(w=>Promise.resolve(w).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),T=x?.nonce||x?.getAttribute("nonce");g=S(f.map(p=>{if(p=Rm(p),p in Pd)return;Pd[p]=!0;const w=p.endsWith(".css"),b=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${b}`))return;const k=document.createElement("link");if(k.rel=w?"stylesheet":Dm,w||(k.as="script"),k.crossOrigin="",k.href=p,T&&k.setAttribute("nonce",T),document.head.appendChild(k),w)return new Promise((q,v)=>{k.addEventListener("load",q),k.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${p}`)))})}))}function h(x){const T=new Event("vite:preloadError",{cancelable:!0});if(T.payload=x,window.dispatchEvent(T),!T.defaultPrevented)throw x}return g.then(x=>{for(const T of x||[])T.status==="rejected"&&h(T.reason);return u().catch(h)})},ir={};function Lg(r){if(!ir[r]){const f={bash:()=>dt(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>dt(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>dt(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await dt(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),dt(()=>import("./prism-php-JOWoQkNd.js").then(c=>c.p),[])),sql:()=>dt(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>dt(()=>import("./prism-ruby-C2sQ8Hg4.js").then(c=>c.p),[]),java:()=>dt(()=>import("./prism-java-C2ppxXW3.js").then(c=>c.p),[]),scala:async()=>(await Lg("java"),dt(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>dt(()=>import("./prism-solidity-BRuCGEwy.js").then(c=>c.p),[]),vim:()=>dt(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>dt(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>dt(()=>import("./prism-csharp-BKbuORRj.js").then(c=>c.p),[]),protobuf:()=>dt(()=>import("./prism-protobuf-DiQ_z8B5.js"),[])}[r];if(!f)return console.warn(`No loader available for language: ${r}`),Promise.reject(new Error(`Unsupported language: ${r}`));ir[r]=f().then(()=>{}).catch(c=>{throw delete ir[r],console.warn(`Failed to load language: ${r}`,c),c})}return ir[r]}typeof global<"u"?global.Prism=Z:typeof window<"u"&&(window.Prism=Z);const eg=["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 zm(r,u){const[f,c]=L.useState(()=>eg.includes(u)||!!Z.languages[u]);return L.useEffect(()=>{if(!f){if(eg.includes(u)){c(!0);return}Lg(u).then(()=>{c(!0)}).catch(()=>{c(!1)})}},[u,f]),{ready:f,actualLang:f?u:"text"}}const tg=[{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"}],lg=[{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 Mm(r){return{...r,styles:r.styles.map(u=>({...u,style:{...u.style,background:void 0,backgroundColor:void 0}}))}}function Lm(r){let u;switch(r){case"github":u=Nt.github;break;case"vsLight":u=Nt.vsLight;break;case"oneLight":u=Nt.oneLight;break;case"gruvboxMaterialLight":u=Nt.gruvboxMaterialLight;break;case"nightOwlLight":u=Nt.nightOwlLight;break;case"vsDark":u=Nt.vsDark;break;case"oneDark":u=Nt.oneDark;break;case"gruvboxMaterialDark":u=Nt.gruvboxMaterialDark;break;case"nightOwl":u=Nt.nightOwl;break;case"dracula":u=Nt.dracula;break;case"okaidia":u=Nt.okaidia;break;default:u=Nt.vsDark}return Mm(u)}function Um(r){const u=vy(r).toLowerCase(),f=_g(r),c={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};return c[u]?c[u]:{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",dockerfile:"docker",makefile:"makefile",gitignore:"git",env:"bash",conf:"nginx",ini:"ini",toml:"toml",sol:"solidity",vim:"vim",dart:"dart",cs:"csharp",proto:"protobuf"}[f||""]||"text"}const Bm=tn.memo(function({code:u,language:f,className:c,syntaxTheme:g="vsDark",filename:h="",renderToken:x,onMouseOver:T,onMouseOut:S}){const p=f||(h?Um(h):"text"),{actualLang:w}=zm(u,p),b=Lm(g),k=L.useCallback(({style:q,tokens:v,getLineProps:A,getTokenProps:N})=>s.jsx("span",{className:c,style:{...q,background:"transparent",backgroundColor:"transparent"},onMouseOver:T,onMouseOut:S,children:v.map((j,_)=>s.jsx("span",{...A({line:j}),children:j.map((H,z)=>x?x(H,z,N):s.jsx("span",{...N({token:H})},z))},_))}),[c,T,S,x]);return s.jsx(Om,{code:u,language:w,theme:b,prism:Z,children:k})}),Ms=tn.memo(function(u){const{handleMouseOver:f,handleMouseOut:c,isWordHighlighted:g}=_y(),h=L.useCallback((x,T,S)=>{const p=S({token:x}),w=x.content.split(/( +)/);if(w.length===1&&w[0]&&!Kd(w[0]))return s.jsx("span",{...p},T);const b=w.map((k,q)=>{if(!k)return null;if(Kd(k)){const v=k.trim(),A=g(v);return s.jsx("span",{className:`word-token ${A?"word-highlight":""}`,"data-word":v,children:k},`${T}-${q}`)}return s.jsx("span",{children:k},`${T}-${q}`)});return s.jsx("span",{...p,children:b},T)},[g]);return s.jsx(Bm,{...u,renderToken:h,onMouseOver:f,onMouseOut:c})}),Hm=r=>{switch(r.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},qm=r=>{switch(r.type){case"add":return"+";case"delete":return"-";default:return" "}},Ug=tn.memo(({line:r,lineId:u,isCurrentLine:f=!1,hoveredLine:c,selectedLineStyle:g,onMouseEnter:h,onMouseLeave:x,onMouseMove:T,onCommentButtonMouseDown:S,onCommentButtonMouseUp:p,syntaxTheme:w,onClick:b,filename:k})=>{const q=r.newLineNumber||r.oldLineNumber,v=c===q&&q,A=f?"keyboard-cursor":"";return s.jsxs("tr",{id:u,className:`group ${Hm(r)} relative ${g} ${A} cursor-pointer`,onMouseEnter:h,onMouseLeave:x,onMouseMove:T,onClick:b,children:[s.jsx("td",{className:"w-[50px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative",children:r.oldLineNumber||""}),s.jsxs("td",{className:"w-[50px] 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:[s.jsx("span",{className:"pr-5",children:r.newLineNumber||""}),v&&s.jsx(rr,{onMouseDown:S,onMouseUp:p})]}),s.jsx("td",{className:"p-0 w-full relative align-top",children:s.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[s.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${r.type==="add"?"text-github-accent bg-diff-addition-bg":r.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:qm(r)}),s.jsx(Ms,{code:r.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:w,filename:k})]})})]})});Ug.displayName="DiffLineRow";function Gm({chunk:r,chunkIndex:u,comments:f,onAddComment:c,onGeneratePrompt:g,onRemoveComment:h,onUpdateComment:x,syntaxTheme:T,cursor:S=null,fileIndex:p=0,onLineClick:w,commentTrigger:b,onCommentTriggerHandled:k,filename:q}){const[v,A]=L.useState(null),[N,j]=L.useState(null),[_,H]=L.useState(!1),[z,X]=L.useState(null),[ee,le]=L.useState(null);L.useEffect(()=>{if(b?.lineIndex!==void 0){const y=r.lines[b.lineIndex];if(y&&y.type!=="delete"){const G=y.newLineNumber;G&&(X({side:"new",lineNumber:G}),k?.())}}},[b,r.lines,k]),L.useEffect(()=>{if(_){const y=()=>{H(!1),A(null),j(null)};return document.addEventListener("mouseup",y),()=>{document.removeEventListener("mouseup",y)}}},[_]);const se=L.useCallback((y,G)=>{z?.side===y&&z?.lineNumber===G?X(null):X({side:y,lineNumber:G})},[z]),pe=L.useCallback(()=>{X(null)},[]),ce=L.useCallback(async y=>{z!==null&&(await c(z.lineNumber,y,void 0,z.side),X(null))},[z,c]),ae=y=>f.filter(G=>Array.isArray(G.line)?G.line[1]===y:G.line===y),K=y=>y.oldLine?.type==="delete"&&y.newLine?.type==="add"?y.newLineNumber?"right":"left":y.oldLine?.type==="delete"?"left":y.newLine?.type==="add"?"right":"full",me=(y,G)=>{const $=y==="old"?G.oldLineNumber:G.newLineNumber;if(!$)return"";if(_&&v&&N&&v.side===y&&N.side===y){const te=Math.min(v.lineNumber,N.lineNumber),m=Math.max(v.lineNumber,N.lineNumber);if($>=te&&$<=m){let U="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 $===te&&(U+=" after:border-t-2"),$===m&&(U+=" after:border-b-2"),U}}if(z&&z.side===y){const te=Array.isArray(z.lineNumber)?z.lineNumber:[z.lineNumber,z.lineNumber],m=te[0],U=te[1];if(m!==void 0&&U!==void 0&&$>=m&&$<=U)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""},J=(y=>{const G=[];let $=r.oldStart,te=r.newStart,m=0;for(;m<y.length;){const U=y[m];if(!U){m++;continue}if(U.type==="normal")G.push({oldLine:U,newLine:{...U},oldLineNumber:U.oldLineNumber??$,newLineNumber:U.newLineNumber??te,oldLineOriginalIndex:m,newLineOriginalIndex:m}),$++,te++,m++;else if(U.type==="delete"){let Q=m+1;for(;Q<y.length&&y[Q]?.type==="delete";)Q++;const I=y.slice(m,Q),ne=m,he=[],re=Q;for(;Q<y.length&&y[Q]?.type==="add";){const P=y[Q];P&&he.push(P),Q++}const be=Math.max(I.length,he.length);for(let P=0;P<be;P++){const Te=I[P],Ze=he[P];G.push({oldLine:Te,newLine:Ze,oldLineNumber:Te?Te.oldLineNumber??$+P:void 0,newLineNumber:Ze?Ze.newLineNumber??te+P:void 0,oldLineOriginalIndex:Te?ne+P:void 0,newLineOriginalIndex:Ze?re+P:void 0})}$+=I.length,te+=he.length,m=Q}else U.type==="add"&&(G.push({newLine:U,newLineNumber:U.newLineNumber??te,newLineOriginalIndex:m}),te++,m++)}return G})(r.lines);return s.jsx("div",{className:"bg-github-bg-primary border border-github-border rounded-md overflow-hidden",children:s.jsx("table",{className:"w-full border-collapse font-mono text-xs leading-5",children:s.jsx("tbody",{children:J.map((y,G)=>{const $=y.newLineNumber?ae(y.newLineNumber):y.oldLineNumber?ae(y.oldLineNumber):[],te=y.oldLineOriginalIndex??-1,m=y.newLineOriginalIndex??-1,U=S?S.side==="left"&&te>=0?S.chunkIndex===u&&S.lineIndex===te:S.side==="right"&&m>=0?S.chunkIndex===u&&S.lineIndex===m:!1:!1,Q=te>=0?`file-${p}-chunk-${u}-line-${te}-left`:void 0,I=m>=0?`file-${p}-chunk-${u}-line-${m}-right`:void 0,ne=U&&S?.side==="left",he=U&&S?.side==="right",re="keyboard-cursor";return s.jsxs(tn.Fragment,{children:[s.jsxs("tr",{className:"group cursor-pointer",onClick:be=>{if(!_){const P=be.target,Te=P.closest("td:nth-child(1)")||P.closest("td:nth-child(2)"),Ze=P.closest("td:nth-child(3)")||P.closest("td:nth-child(4)");Te&&te>=0?w?.(p,u,te,"left"):Ze&&m>=0&&w?.(p,u,m,"right")}},onMouseEnter:be=>{const P=be.target,Te=P.closest("td:nth-child(1)")||P.closest("td:nth-child(2)"),Ze=P.closest("td:nth-child(3)")||P.closest("td:nth-child(4)");Te&&y.oldLineNumber?le({side:"old",lineNumber:y.oldLineNumber}):Ze&&y.newLineNumber&&le({side:"new",lineNumber:y.newLineNumber})},onMouseMove:be=>{const P=be.target,Te=P.closest("td:nth-child(1)")||P.closest("td:nth-child(2)"),Ze=P.closest("td:nth-child(3)")||P.closest("td:nth-child(4)");Te&&y.oldLineNumber?(ee?.side!=="old"||ee?.lineNumber!==y.oldLineNumber)&&le({side:"old",lineNumber:y.oldLineNumber}):Ze&&y.newLineNumber&&(ee?.side!=="new"||ee?.lineNumber!==y.newLineNumber)&&le({side:"new",lineNumber:y.newLineNumber}),_&&v&&(v.side==="old"&&y.oldLineNumber?j({side:"old",lineNumber:y.oldLineNumber}):v.side==="new"&&y.newLineNumber&&j({side:"new",lineNumber:y.newLineNumber}))},onMouseLeave:()=>le(null),children:[s.jsxs("td",{id:Q,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${ne?re:""}`,children:[s.jsx("span",{className:"pr-5",children:y.oldLineNumber||""}),ee?.side==="old"&&ee?.lineNumber===y.oldLineNumber&&s.jsx(rr,{onMouseDown:be=>{be.stopPropagation(),y.oldLineNumber&&(A({side:"old",lineNumber:y.oldLineNumber}),j({side:"old",lineNumber:y.oldLineNumber}),H(!0))},onMouseUp:be=>{if(be.stopPropagation(),!y.oldLineNumber||!v){H(!1),A(null),j(null);return}const P=N&&N.side==="old"?N.lineNumber:y.oldLineNumber;if(v.side!=="old"||v.lineNumber===P)se("old",y.oldLineNumber);else{const Te=Math.min(v.lineNumber,P),Ze=Math.max(v.lineNumber,P);se("old",[Te,Ze])}H(!1),A(null),j(null)}})]}),s.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${y.oldLine?.type==="delete"?"bg-diff-deletion-bg":y.oldLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${me("old",y)} ${ne?re:""}`,children:y.oldLine&&s.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:s.jsx(Ms,{code:y.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:T,filename:q})})}),s.jsxs("td",{id:I,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${he?re:""}`,children:[s.jsx("span",{className:"pr-5",children:y.newLineNumber||""}),ee?.side==="new"&&ee?.lineNumber===y.newLineNumber&&s.jsx(rr,{onMouseDown:be=>{be.stopPropagation(),y.newLineNumber&&(A({side:"new",lineNumber:y.newLineNumber}),j({side:"new",lineNumber:y.newLineNumber}),H(!0))},onMouseUp:be=>{if(be.stopPropagation(),!y.newLineNumber||!v){H(!1),A(null),j(null);return}const P=N&&N.side==="new"?N.lineNumber:y.newLineNumber;if(v.side!=="new"||v.lineNumber===P)se("new",y.newLineNumber);else{const Te=Math.min(v.lineNumber,P),Ze=Math.max(v.lineNumber,P);se("new",[Te,Ze])}H(!1),A(null),j(null)}})]}),s.jsx("td",{className:`w-1/2 p-0 align-top relative ${y.newLine?.type==="add"?"bg-diff-addition-bg":y.newLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${me("new",y)} ${he?re:""}`,children:y.newLine&&s.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:s.jsx(Ms,{code:y.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:T,filename:q})})})]}),$.length>0&&s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:$.map(be=>{const P=K(y);return s.jsx("div",{className:`flex ${P==="left"?"justify-start":P==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${P==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:s.jsx(Ys,{comment:be,onGeneratePrompt:g,onRemoveComment:h,onUpdateComment:x})})},be.id)})})}),z&&(z.side==="old"&&z.lineNumber===y.oldLineNumber||z.side==="new"&&z.lineNumber===y.newLineNumber||Array.isArray(z.lineNumber)&&(z.side==="new"&&z.lineNumber[1]===y.newLineNumber||z.side==="old"&&z.lineNumber[1]===y.oldLineNumber))&&s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:4,className:"p-0",children:s.jsx("div",{className:`flex ${K(y)==="left"?"justify-start":K(y)==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${K(y)==="full"?"w-full":"w-1/2"}`,children:s.jsx(jg,{onSubmit:ce,onCancel:pe})})})})})]},G)})})})})}function Ym({chunk:r,chunkIndex:u,comments:f,onAddComment:c,onGeneratePrompt:g,onRemoveComment:h,onUpdateComment:x,mode:T="inline",syntaxTheme:S,cursor:p=null,fileIndex:w=0,onLineClick:b,commentTrigger:k,onCommentTriggerHandled:q,filename:v}){const[A,N]=L.useState(null),[j,_]=L.useState(null),[H,z]=L.useState(!1),[X,ee]=L.useState(null),[le,se]=L.useState(null);L.useEffect(()=>{if(k?.lineIndex!==void 0){const J=r.lines[k.lineIndex];if(J){const y=J.newLineNumber||J.oldLineNumber;y&&(ee(y),q?.())}}},[k,r.lines,q]),L.useEffect(()=>{if(H){const J=()=>{z(!1),N(null),_(null)};return document.addEventListener("mouseup",J),()=>{document.removeEventListener("mouseup",J)}}},[H]);const pe=L.useCallback(J=>{ee(X===J?null:J)},[X]),ce=L.useCallback(()=>{ee(null)},[]),ae=L.useCallback(async J=>{if(X!==null){let y;if(Array.isArray(X)){const G=X[0],$=X[1],te=r.lines.filter(Q=>{const I=Q.newLineNumber||Q.oldLineNumber;return I&&I>=G&&I<=$}),m=te.some(Q=>Q.type==="delete"||Q.type==="normal"&&Q.oldLineNumber),U=te.some(Q=>Q.type==="add"||Q.type==="normal"&&Q.newLineNumber);m&&!U?y="old":U&&(y="new")}else{const G=r.lines.find($=>$.newLineNumber===X||$.oldLineNumber===X);G&&(G.type==="delete"?y="old":(G.type==="add"||G.type==="normal")&&(y="new"))}await c(X,J,void 0,y),ee(null)}},[X,c,r.lines]),K=J=>f.filter(y=>Array.isArray(y.line)?y.line[1]===J:y.line===J),me=J=>{if(T==="inline")return"full";switch(J.type){case"delete":return"left";case"add":return"right";default:return"full"}},ge=J=>{if(!J)return"";if(H&&A&&j){const y=Math.min(A,j),G=Math.max(A,j);if(J>=y&&J<=G){let $="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 J===y&&($+=" after:border-t-2"),J===G&&($+=" after:border-b-2"),$}}if(X){const y=Array.isArray(X)?X[0]:X,G=Array.isArray(X)?X[1]:X;if(J>=y&&J<=G)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""};return T==="side-by-side"?s.jsx(Gm,{chunk:r,chunkIndex:u,comments:f,onAddComment:c,onGeneratePrompt:g,onRemoveComment:h,onUpdateComment:x,syntaxTheme:S,cursor:p,fileIndex:w,onLineClick:b,filename:v,commentTrigger:k,onCommentTriggerHandled:q}):s.jsx("div",{className:"bg-github-bg-primary",children:s.jsx("table",{className:"w-full border-collapse font-mono text-xs leading-5",children:s.jsx("tbody",{children:r.lines.map((J,y)=>{const G=K(J.newLineNumber||J.oldLineNumber||0),$=`file-${w}-chunk-${u}-line-${y}`,te=p&&p.chunkIndex===u&&p.lineIndex===y;return s.jsxs(tn.Fragment,{children:[s.jsx(Ug,{line:J,index:y,lineId:$,isCurrentLine:te||!1,hoveredLine:le,selectedLineStyle:ge(J.newLineNumber||J.oldLineNumber),onMouseEnter:()=>{const m=J.newLineNumber||J.oldLineNumber;m&&se(m)},onMouseLeave:()=>se(null),onMouseMove:()=>{if(H&&A){const m=J.newLineNumber||J.oldLineNumber;m&&_(m)}},onCommentButtonMouseDown:m=>{m.stopPropagation();const U=J.newLineNumber||J.oldLineNumber;U&&(N(U),_(U),z(!0))},onCommentButtonMouseUp:m=>{m.stopPropagation();const U=J.newLineNumber||J.oldLineNumber;if(!U||!A){z(!1),N(null),_(null);return}const Q=j||U;if(A===Q)pe(U);else{const I=Math.min(A,Q),ne=Math.max(A,Q);pe([I,ne])}z(!1),N(null),_(null)},syntaxTheme:S,filename:v,onClick:()=>{const m=J.type==="delete"?"left":"right";b?.(w,u,y,m)}}),G.map(m=>{const U=me(J);return s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:s.jsx("div",{className:`flex ${U==="left"?"justify-start":U==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${U==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:s.jsx(Ys,{comment:m,onGeneratePrompt:g,onRemoveComment:h,onUpdateComment:x})})})})},m.id)}),X&&(X===(J.newLineNumber||J.oldLineNumber)||Array.isArray(X)&&X[1]===(J.newLineNumber||J.oldLineNumber))&&s.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:s.jsx("td",{colSpan:3,className:"p-0",children:s.jsx("div",{className:`flex ${me(J)==="left"?"justify-start":me(J)==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${me(J)==="full"?"w-full":"w-1/2"}`,children:s.jsx(jg,{onSubmit:ae,onCancel:ce})})})})})]},y)})})})})}function Zm({file:r,mode:u="inline",baseCommitish:f,targetCommitish:c}){const g=r.status==="deleted",h=r.status==="added",x=r.status==="modified"||r.status==="renamed",T=f||"HEAD~1",S=c||"HEAD",[p,w]=L.useState({}),[b,k]=L.useState({}),q=async(j,_)=>{try{const H=j.naturalWidth,z=j.naturalHeight,le=(await(await fetch(j.src)).blob()).size;_({width:H,height:z,size:le})}catch(H){console.error("Failed to get image info:",H)}},v=j=>j?j<1024?`${j} B`:j<1024*1024?`${(j/1024).toFixed(1)} KB`:`${(j/(1024*1024)).toFixed(1)} MB`:"",A=j=>!j.width||!j.height?"":`W: ${j.width}px | H: ${j.height}px`,N={backgroundImage:`
206
- linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
207
- linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%)
208
- `,backgroundSize:"20px 20px",backgroundPosition:"0 0, 10px 10px",backgroundColor:"white"};return g?s.jsx("div",{className:"bg-github-bg-primary p-4",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-2",children:s.jsx("span",{className:"text-github-danger font-medium",children:"Deleted Image"})}),s.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${T}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,w),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(p.width||p.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(p),A(p)&&v(p.size)&&" | ",v(p.size)]})]})]})}):h?s.jsx("div",{className:"bg-github-bg-primary p-4",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-2",children:s.jsx("span",{className:"text-github-accent font-medium",children:"Added Image"})}),s.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"New file:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${S}`,alt:`New image ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,k),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(b),A(b)&&v(b.size)&&" | ",v(b.size)]})]})]})}):x?u==="side-by-side"?s.jsxs("div",{className:"bg-github-bg-primary p-4",children:[s.jsx("div",{className:"text-center mb-4",children:s.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${T}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,w),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(p.width||p.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(p),A(p)&&v(p.size)&&" | ",v(p.size)]})]})}),s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${S}`,alt:`Current version of ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,k),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(b),A(b)&&v(b.size)&&" | ",v(b.size)]})]})})]})]}):s.jsxs("div",{className:"bg-github-bg-primary p-4",children:[s.jsx("div",{className:"text-center mb-4",children:s.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${T}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,w),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(p.width||p.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(p),A(p)&&v(p.size)&&" | ",v(p.size)]})]})}),s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${S}`,alt:`Current version of ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,k),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(b),A(b)&&v(b.size)&&" | ",v(b.size)]})]})})]})]}):null}function Vm({file:r,comments:u,diffMode:f,reviewedFiles:c,onToggleReviewed:g,onAddComment:h,onGeneratePrompt:x,onRemoveComment:T,onUpdateComment:S,syntaxTheme:p,baseCommitish:w,targetCommitish:b,cursor:k=null,fileIndex:q=0,onLineClick:v,commentTrigger:A,onCommentTriggerHandled:N}){const j=c.has(r.path),[_,H]=L.useState(!1),z=ee=>{switch(ee){case"added":return s.jsx(Eg,{size:16,className:"text-github-accent"});case"deleted":return s.jsx(Ng,{size:16,className:"text-github-danger"});case"renamed":return s.jsx(Sg,{size:16,className:"text-github-warning"});default:return s.jsx(xg,{size:16,className:"text-github-text-secondary"})}},X=async(ee,le,se,pe,ce)=>{try{await h(r.path,ee,le,se,pe,ce)}catch(ae){console.error("Failed to add comment:",ae)}};return s.jsxs("div",{className:"bg-github-bg-primary",children:[s.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:[s.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[s.jsx("button",{onClick:()=>g(r.path),className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:j?"Expand file":"Collapse file",children:j?s.jsx(mg,{size:16}):s.jsx(qs,{size:16})}),z(r.status),s.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:r.path}),s.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${_?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(r.path).then(()=>{console.log("File path copied to clipboard:",r.path),H(!0),setTimeout(()=>H(!1),2e3)}).catch(ee=>{console.error("Failed to copy file path:",ee)})},title:"Copy file path",children:_?s.jsx(Za,{size:14}):s.jsx(vg,{size:14})}),r.oldPath&&r.oldPath!==r.path&&s.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",r.oldPath,")"]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[s.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",r.additions]}),s.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",r.deletions]})]}),s.jsxs("button",{onClick:()=>g(r.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${c.has(r.path)?"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:c.has(r.path)?"Mark as not reviewed":"Mark as reviewed",children:[c.has(r.path)?s.jsx(Za,{size:14}):s.jsx(py,{size:14}),"Viewed"]})]})]}),!j&&s.jsx("div",{className:"overflow-y-auto",children:Sy(r.path)?s.jsx(Zm,{file:r,mode:f,baseCommitish:w,targetCommitish:b}):r.chunks.map((ee,le)=>s.jsxs("div",{id:`chunk-${r.path.replace(/[^a-zA-Z0-9]/g,"-")}-${le}`,className:"border-b border-github-border",children:[s.jsx("div",{className:"bg-github-bg-tertiary px-3 py-2 border-b border-github-border",children:s.jsx("code",{className:"text-github-text-secondary text-xs font-mono",children:ee.header})}),s.jsx(Ym,{chunk:ee,chunkIndex:le,comments:u,onAddComment:(se,pe,ce,ae)=>X(se,pe,ce,ee.header,ae),onGeneratePrompt:x,onRemoveComment:T,onUpdateComment:S,mode:f,syntaxTheme:p,cursor:k,fileIndex:q,onLineClick:v,commentTrigger:A?.chunkIndex===le?A:null,onCommentTriggerHandled:N,filename:r.path})]},le))})]})}function Xm(r){const u={name:"",path:"",isDirectory:!0,children:[]};r.forEach(c=>{const g=c.path.split("/");let h=u;for(let x=0;x<g.length;x++){const T=g[x];if(!T)continue;const S=x===g.length-1,p=g.slice(0,x+1).join("/");h.children||(h.children=[]);let w=h.children.find(b=>b.name===T);w||(w={name:T,path:p,isDirectory:!S,children:S?void 0:[],file:S?c:void 0},h.children.push(w)),h=w}});const f=c=>{if(!c.isDirectory||!c.children)return c;if(c.children=c.children.map(f),c.children.length===1&&c.children[0]?.isDirectory&&c.children[0]?.children){const g=c.children[0];if(g)return c.name?{...c,name:`${c.name}/${g.name}`,path:g.path,children:g.children}:c}return c};return f(u)}function Fm({files:r,onScrollToFile:u,comments:f,reviewedFiles:c,onToggleReviewed:g,selectedFileIndex:h}){const x=Xm(r),T=_=>{if(!_.isDirectory||!_.children)return[];const H=[];return _.path&&H.push(_.path),_.children.forEach(z=>{H.push(...T(z))}),H},[S,p]=L.useState(()=>new Set(T(x))),[w,b]=L.useState(""),k=_=>f.filter(H=>H.file===_).length,q=_=>{if(!w.trim())return _;if(_.isDirectory&&_.children){const H=_.children.map(z=>q(z)).filter(z=>z!==null);return H.length>0?{..._,children:H}:null}else if(_.file)return _.file.path.toLowerCase().includes(w.toLowerCase())?_:null;return null},v=q(x)||{...x,children:[]},A=_=>{switch(_){case"added":return s.jsx(Eg,{size:16,className:"text-github-accent"});case"deleted":return s.jsx(Ng,{size:16,className:"text-github-danger"});case"renamed":return s.jsx(Sg,{size:16,className:"text-github-warning"});default:return s.jsx(xg,{size:16,className:"text-github-text-secondary"})}},N=_=>{p(H=>{const z=new Set(H);return z.has(_)?z.delete(_):z.add(_),z})},j=(_,H=0)=>{if(_.isDirectory&&_.children){const z=S.has(_.path);return s.jsxs("div",{children:[_.name&&s.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer",style:{paddingLeft:`${H*16+16}px`},onClick:()=>N(_.path),children:[z?s.jsx(qs,{size:16}):s.jsx(mg,{size:16}),z?s.jsx($b,{size:16,className:"text-github-text-secondary"}):s.jsx(Jb,{size:16,className:"text-github-text-secondary"}),s.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:_.name,children:_.name})]}),(z||!_.name)&&_.children.map(X=>j(X,H+1))]},_.path)}else if(_.file){const z=_.file,X=k(z.path),ee=c.has(z.path),le=r.findIndex(pe=>pe.path===z.path),se=h!==null&&h===le;return s.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${ee?"opacity-70":""} ${se?"bg-github-bg-tertiary":""}`,style:{paddingLeft:`${H*16+16}px`},onClick:()=>u(z.path),children:[s.jsx(Tg,{checked:ee,onChange:()=>{g(z.path)},title:ee?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),A(_.file.status),s.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${ee?"line-through text-github-text-muted":""}`,title:_.file.path,children:_.name}),X>0&&s.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[s.jsx(wg,{size:14}),X]})]},z.path)}return null};return s.jsxs("div",{className:"h-full flex flex-col",children:[s.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[s.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0 mb-3",children:["Files changed (",r.length,")"]}),s.jsxs("div",{className:"relative",children:[s.jsx(dy,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),s.jsx("input",{type:"text",placeholder:"Filter files...",value:w,onChange:_=>b(_.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"})]})]}),s.jsx("div",{className:"flex-1 overflow-y-auto",children:v.children?.map(_=>j(_))})]})}function Qm({style:r}){return s.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:r,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:s.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 Km({isOpen:r,onClose:u}){const{enableScope:f,disableScope:c}=sr();return Me("escape",()=>u(),{enabled:r},[u,r]),L.useEffect(()=>(r?c("navigation"):f("navigation"),()=>{f("navigation")}),[r,f,c]),r?s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:u}),s.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:[s.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:[s.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),s.jsx("button",{onClick:u,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:s.jsx(Gs,{size:20})})]}),s.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Jump to first file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Jump to last file"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Management"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"v"}),s.jsx("span",{className:"text-github-text-secondary",children:"Toggle viewed state of current file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"R"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Refresh diff when changes detected"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),s.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),s.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),s.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),s.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:s.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function $m({style:r}){return s.jsxs("svg",{style:r,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[s.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"}),s.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 Im({shouldReload:r,isReloading:u,onReload:f,changeType:c,className:g=""}){if(!r)return null;const h=()=>{switch(c){case"commit":return"New commits available";case"staging":return"Staging changes detected";case"file":return"File changes detected";default:return"Changes detected"}};return s.jsxs("button",{onClick:f,disabled:u,className:`
209
- flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md border ${g}
210
- ${u?"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"}
211
- `,title:`${h()} - Click to refresh`,children:[s.jsx(cy,{size:12,className:`${u?"animate-spin":""}`}),"Refresh"]})}const Jm={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},Wm=[{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 Pm({isOpen:r,onClose:u,settings:f,onSettingsChange:c}){const[g,h]=L.useState(f),{enableScope:x,disableScope:T}=sr();L.useEffect(()=>{h(f)},[f]),L.useEffect(()=>{c(g)},[g,c]),L.useEffect(()=>(r?T("navigation"):x("navigation"),()=>{x("navigation")}),[r,x,T]);const S=()=>g.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":g.theme,p=()=>S()==="light"?tg:lg,w=k=>{const q={...g,theme:k},A=(k==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":k)==="light"?tg:lg;if(!A.some(j=>j.id===g.syntaxTheme)&&A.length>0){const j=A[0];j&&(q.syntaxTheme=j.id)}h(q)},b=()=>{h(Jm)};return r?s.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:s.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[s.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[s.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[s.jsx(Ag,{size:20}),"Appearance Settings"]}),s.jsx("button",{onClick:u,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:s.jsx(Gs,{size:18})})]}),s.jsxs("div",{className:"p-4 space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("input",{type:"range",min:"10",max:"20",step:"1",value:g.fontSize,onChange:k=>h({...g,fontSize:parseInt(k.target.value)}),className:"flex-1 accent-github-accent"}),s.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[g.fontSize,"px"]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),s.jsx("select",{value:g.fontFamily,onChange:k=>h({...g,fontFamily:k.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:Wm.map(k=>s.jsx("option",{value:k.value,children:k.name},k.value))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),s.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(k=>s.jsx("button",{onClick:()=>w(k),className:`px-3 py-2 text-sm rounded border transition-colors ${g.theme===k?"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:k.charAt(0).toUpperCase()+k.slice(1)},k))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),s.jsx("select",{value:g.syntaxTheme,onChange:k=>h({...g,syntaxTheme:k.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:p().map(k=>s.jsx("option",{value:k.id,children:k.label},k.id))})]})]}),s.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[s.jsx("button",{onClick:b,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),s.jsx("button",{onClick:u,className:"px-4 py-2 text-sm bg-github-accent text-white rounded hover:bg-green-600",children:"Close"})]})]})}):null}const ng={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},e0=({isActive:r})=>r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"animate-sparkle-rise",style:{...ng,left:"-12px",animationDelay:"0s"},children:"✨"}),s.jsx("div",{className:"animate-sparkle-rise",style:{...ng,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,ag={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},ig="reviewit-appearance-settings";function t0(){const[r,u]=L.useState(ag);L.useEffect(()=>{try{const g=localStorage.getItem(ig);if(g){const h=JSON.parse(g);u({...ag,...h})}}catch(g){console.warn("Failed to load appearance settings from localStorage:",g)}},[]),L.useEffect(()=>{const g=document.documentElement;if(g.style.setProperty("--app-font-size",`${r.fontSize}px`),g.style.setProperty("--app-font-family",r.fontFamily),r.theme==="auto"){const h=window.matchMedia("(prefers-color-scheme: dark)");f(h.matches?"dark":"light");const x=T=>{f(T.matches?"dark":"light")};return h.addEventListener("change",x),()=>h.removeEventListener("change",x)}else{f(r.theme);return}},[r]);const f=g=>{const h=document.documentElement;h.setAttribute("data-theme",g),g==="light"?(h.style.setProperty("--color-github-bg-primary","#ffffff"),h.style.setProperty("--color-github-bg-secondary","#f6f8fa"),h.style.setProperty("--color-github-bg-tertiary","#f1f3f4"),h.style.setProperty("--color-github-border","#d1d9e0"),h.style.setProperty("--color-github-text-primary","#24292f"),h.style.setProperty("--color-github-text-secondary","#656d76"),h.style.setProperty("--color-github-text-muted","#8c959f"),h.style.setProperty("--color-github-accent","#1f883d"),h.style.setProperty("--color-github-danger","#cf222e"),h.style.setProperty("--color-github-warning","#bf8700"),h.style.setProperty("--color-diff-addition-bg","#d1f4cd"),h.style.setProperty("--color-diff-addition-border","#1f883d"),h.style.setProperty("--color-diff-deletion-bg","#ffd8d3"),h.style.setProperty("--color-diff-deletion-border","#cf222e"),h.style.setProperty("--color-diff-neutral-bg","#f1f3f4"),h.style.setProperty("--color-comment-bg","#fff8e1"),h.style.setProperty("--color-comment-border","#ffd54f"),h.style.setProperty("--color-comment-text","#5d4037"),h.style.setProperty("--color-yellow-btn-bg","#fef3c7"),h.style.setProperty("--color-yellow-btn-border","#f59e0b"),h.style.setProperty("--color-yellow-btn-text","#92400e"),h.style.setProperty("--color-yellow-btn-hover-bg","#fde68a"),h.style.setProperty("--color-yellow-btn-hover-border","#d97706"),h.style.setProperty("--color-yellow-path-bg","#fde68a"),h.style.setProperty("--color-yellow-path-text","#92400e")):(h.style.setProperty("--color-github-bg-primary","#0d1117"),h.style.setProperty("--color-github-bg-secondary","#161b22"),h.style.setProperty("--color-github-bg-tertiary","#21262d"),h.style.setProperty("--color-github-border","#30363d"),h.style.setProperty("--color-github-text-primary","#f0f6fc"),h.style.setProperty("--color-github-text-secondary","#8b949e"),h.style.setProperty("--color-github-text-muted","#6e7681"),h.style.setProperty("--color-github-accent","#238636"),h.style.setProperty("--color-github-danger","#da3633"),h.style.setProperty("--color-github-warning","#d29922"),h.style.setProperty("--color-diff-addition-bg","#0d4429"),h.style.setProperty("--color-diff-addition-border","#1b7c3d"),h.style.setProperty("--color-diff-deletion-bg","#67060c"),h.style.setProperty("--color-diff-deletion-border","#da3633"),h.style.setProperty("--color-diff-neutral-bg","#21262d"),h.style.setProperty("--color-comment-bg","#1c2128"),h.style.setProperty("--color-comment-border","#373e47"),h.style.setProperty("--color-comment-text","#e6edf3"),h.style.setProperty("--color-yellow-btn-bg","rgba(180, 83, 9, 0.2)"),h.style.setProperty("--color-yellow-btn-border","rgba(217, 119, 6, 0.5)"),h.style.setProperty("--color-yellow-btn-text","#fbbf24"),h.style.setProperty("--color-yellow-btn-hover-bg","rgba(180, 83, 9, 0.3)"),h.style.setProperty("--color-yellow-btn-hover-border","#d97706"),h.style.setProperty("--color-yellow-path-bg","rgba(180, 83, 9, 0.3)"),h.style.setProperty("--color-yellow-path-text","#fbbf24")),document.body.style.backgroundColor="var(--color-github-bg-primary)",document.body.style.color="var(--color-github-text-primary)"};return{settings:r,updateSettings:g=>{u(g);try{localStorage.setItem(ig,JSON.stringify(g))}catch(h){console.warn("Failed to save appearance settings to localStorage:",h)}}}}function Bg(r,u,f){const c=typeof u=="number"?`L${u}`:Array.isArray(u)?`L${u[0]}-L${u[1]}`:"";return`${r||"<unknown file>"}:${c}
212
- ${f}`}function l0(r){return r.length===0?"":r.map(f=>Bg(f.file,f.line,f.body)).join(`
213
- =====
214
- `)}const Ds="difit-storage-v1";class n0{generateStorageKey(u,f){const c=g=>g.replace(/[^a-zA-Z0-9-_]/g,h=>`_${h.charCodeAt(0).toString(16)}_`);return`${c(u)}-${c(f)}`}normalizeCommitish(u,f,c){if(u==="."||u==="working")return"WORKING";if(u==="staged")return"STAGED";if(u==="HEAD"&&f)return f;if(c?.has(u)){const g=c.get(u);if(g)return g}return u}getStorageKey(u,f,c,g){let h,x;f==="."||f==="working"?(h=c||u,x="WORKING"):f==="staged"?(h=c||u,x="STAGED"):(h=this.normalizeCommitish(u,c,g),x=this.normalizeCommitish(f,c,g));const T=this.generateStorageKey(h,x);return`${Ds}/${T}`}getDiffContextData(u,f,c,g){try{const h=this.getStorageKey(u,f,c,g),x=localStorage.getItem(h);if(!x)return null;const T=JSON.parse(x);return T.version!==1?(console.warn(`Unknown storage version: ${T.version}`),null):T}catch(h){return console.error("Error reading diff context data:",h),null}}saveDiffContextData(u,f,c,g,h){try{const x=this.getStorageKey(u,f,g,h),T={...c,baseCommitish:u,targetCommitish:f,lastModifiedAt:new Date().toISOString()};localStorage.setItem(x,JSON.stringify(T))}catch(x){x instanceof DOMException&&x.name==="QuotaExceededError"?console.error("localStorage quota exceeded"):console.error("Error saving diff context data:",x)}}getComments(u,f,c,g){return this.getDiffContextData(u,f,c,g)?.comments||[]}saveComments(u,f,c,g,h){const T=this.getDiffContextData(u,f,g,h)||{version:1,baseCommitish:u,targetCommitish:f,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};T.comments=c,this.saveDiffContextData(u,f,T,g,h)}getViewedFiles(u,f,c,g){return this.getDiffContextData(u,f,c,g)?.viewedFiles||[]}saveViewedFiles(u,f,c,g,h){const T=this.getDiffContextData(u,f,g,h)||{version:1,baseCommitish:u,targetCommitish:f,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};T.viewedFiles=c,this.saveDiffContextData(u,f,T,g,h)}cleanupOldData(u){const f=new Date;f.setDate(f.getDate()-u);const c=f.getTime(),g=[];for(let h=0;h<localStorage.length;h++){const x=localStorage.key(h);if(x?.startsWith(Ds))try{const T=localStorage.getItem(x);if(!T)continue;const S=JSON.parse(T);new Date(S.lastModifiedAt).getTime()<c&&g.push(x)}catch{}}g.forEach(h=>localStorage.removeItem(h))}getStorageSize(){let u=0;for(let f=0;f<localStorage.length;f++){const c=localStorage.key(f);if(!c?.startsWith(Ds))continue;const g=localStorage.getItem(c);g&&(u+=(c.length+g.length)*2)}return u}}const Ya=new n0;async function rg(r){try{const f=new TextEncoder().encode(r),c=await crypto.subtle.digest("SHA-256",f);return Array.from(new Uint8Array(c)).map(h=>h.toString(16).padStart(2,"0")).join("")}catch{return console.warn("Crypto API not available, using fallback hash"),a0(r)}}function a0(r){let u=0;for(let f=0;f<r.length;f++){const c=r.charCodeAt(f);u=(u<<5)-u+c,u=u&u}return Math.abs(u).toString(16)}function ug(r){const u=r.chunks.map(f=>{const c=f.lines.filter(g=>g.type!=="hunk"&&g.type!=="header").map(g=>`${g.type}:${g.content}`).join(`
215
- `);return`${f.header}
216
- ${c}`}).join(`
217
-
218
- `);return`${r.path}
219
- ${r.status}
220
- ${u}`}function i0(r){const u=r.split(".").pop()?.toLowerCase();return u?{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"}[u]:void 0}function r0(r,u,f,c){const[g,h]=L.useState([]);L.useEffect(()=>{if(!r||!u)return;const q=Ya.getComments(r,u,f,c);h(q)},[r,u,f,c]);const x=L.useCallback(q=>{!r||!u||(Ya.saveComments(r,u,q,f,c),h(q))},[r,u,f,c]),T=L.useCallback(q=>{const v={id:crypto.randomUUID(),filePath:q.filePath,body:q.body,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),chunkHeader:q.chunkHeader,position:{side:q.side,line:q.line},codeSnapshot:q.codeSnapshot||{content:"",language:i0(q.filePath)}},A=[...g,v];return x(A),v},[g,x]),S=L.useCallback(q=>{const v=g.filter(A=>A.id!==q);x(v)},[g,x]),p=L.useCallback((q,v)=>{const A=g.map(N=>N.id===q?{...N,body:v,updatedAt:new Date().toISOString()}:N);x(A)},[g,x]),w=L.useCallback(()=>{x([])},[x]),b=L.useCallback(q=>{const v=g.find(N=>N.id===q);if(!v)return"";const A=typeof v.position.line=="number"?v.position.line:[v.position.line.start,v.position.line.end];return Bg(v.filePath,A,v.body)},[g]),k=L.useCallback(()=>{const q=g.map(v=>({id:v.id,file:v.filePath,line:typeof v.position.line=="number"?v.position.line:[v.position.line.start,v.position.line.end],body:v.body,timestamp:v.createdAt}));return l0(q)},[g]);return{comments:g,addComment:T,removeComment:S,updateComment:p,clearAllComments:w,generatePrompt:b,generateAllCommentsPrompt:k}}var Hg=(r=>(r.DEFAULT="default",r.WORKING="working",r.STAGED="staged",r.DOT="dot",r.SPECIFIC="specific",r))(Hg||{});function u0(r){const u=L.useRef(null),f=L.useRef(null),c=L.useRef(0),g=5,h=3e3,[x,T]=L.useState({isWatchEnabled:!1,diffMode:Hg.DEFAULT,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null,connectionStatus:"disconnected"}),[S,p]=L.useState(null),w=L.useCallback(()=>{if(!u.current)try{const q=new EventSource("/api/watch");u.current=q,q.onopen=()=>{console.log("Connected to file watch service"),T(v=>({...v,connectionStatus:"connected"})),c.current=0,p(null)},q.onmessage=v=>{try{const A=JSON.parse(v.data);switch(A.type){case"connected":T(N=>({...N,isWatchEnabled:!0,diffMode:A.diffMode,connectionStatus:"connected"}));break;case"reload":console.log("File changes detected, showing reload button:",A.changeType),T(N=>({...N,shouldReload:!0,lastChangeTime:new Date,lastChangeType:A.changeType}));break;case"error":console.error("File watch error:",A.message),p(A.message||"File watch error occurred");break}}catch(A){console.error("Error parsing watch event:",A)}},q.onerror=()=>{console.log("File watch connection lost"),T(v=>({...v,connectionStatus:"disconnected"})),u.current&&(u.current.close(),u.current=null),c.current<g?(T(v=>({...v,connectionStatus:"reconnecting"})),c.current+=1,f.current=setTimeout(()=>{console.log(`Attempting to reconnect to file watch service (${c.current}/${g})...`),w()},h)):(console.error("Max reconnection attempts reached"),p("Lost connection to file watch service"))}}catch(q){console.error("Failed to connect to file watch service:",q),p("Failed to connect to file watch service")}},[g,h]),b=L.useCallback(async()=>{if(!x.isReloading){T(q=>({...q,isReloading:!0}));try{r&&await r(),T(q=>({...q,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null}))}catch(q){console.error("Reload failed:",q),p("Failed to reload diff data"),T(v=>({...v,isReloading:!1}))}}},[r,x.isReloading]),k=()=>{u.current&&(u.current.close(),u.current=null),f.current&&(clearTimeout(f.current),f.current=null)};return L.useEffect(()=>(w(),k),[w]),L.useEffect(()=>k,[]),{shouldReload:x.shouldReload,isConnected:x.connectionStatus==="connected",error:S,reload:b,watchState:x}}const Ls={SCROLL_CONTAINER:"main.overflow-y-auto"};function Dl(r,u){const f=`file-${r.fileIndex}-chunk-${r.chunkIndex}-line-${r.lineIndex}`;return u==="side-by-side"?`${f}-${r.side}`:f}function qg(r,u){return`${r}:${u}`}function s0(r,u){const f=u[r.fileIndex]?.chunks[r.chunkIndex]?.lines[r.lineIndex];return f&&(f.type==="add"||f.type==="delete"||f.type==="normal")?f.type:null}function wt(r,u){const f=s0(r,u);return f?f==="normal"?!0:f==="delete"?r.side==="left":f==="add"?r.side==="right":!1:!1}function Gg(r,u){return wt(r,u)?r:{...r,side:r.side==="left"?"right":"left"}}const sg={VIEWPORT_OFFSET_RATIO:1/3};function o0(r,u,f,c){return{line:g=>{const h=r[g.fileIndex];return!h||c?.has(h.path)?!1:f==="inline"||wt(g,r)},chunk:g=>{const h=r[g.fileIndex];if(!h||c?.has(h.path))return!1;const x=h.chunks[g.chunkIndex]?.lines[g.lineIndex];if(!x||x.type==="normal")return!1;if(g.lineIndex===0)return!0;const T=h.chunks[g.chunkIndex]?.lines[g.lineIndex-1];return!T||T.type==="normal"},comment:g=>{const h=r[g.fileIndex];if(!h||c?.has(h.path))return!1;const x=h.chunks[g.chunkIndex]?.lines[g.lineIndex];if(!x||x.type==="delete")return!1;const T=x.newLineNumber;if(!T)return!1;const S=qg(h.path,T);return u.has(S)},file:g=>g.chunkIndex===0&&g.lineIndex===0}}function c0(){return r=>{const u=document.getElementById(r);if(!u)return;const f=document.querySelector(Ls.SCROLL_CONTAINER);if(!f)throw new Error(`Scrollable container (${Ls.SCROLL_CONTAINER}) not found`);const c=u.getBoundingClientRect(),g=f.getBoundingClientRect(),h=f.clientHeight,x=f.scrollTop,T=Math.max(g.top,0),S=Math.min(g.bottom,window.innerHeight);if(!(c.top>=T&&c.bottom<=S)){const A=f0(u,f)-h*sg.VIEWPORT_OFFSET_RATIO;f.scrollTop=Math.max(0,A);return}const w=c.bottom>Math.min(g.bottom,window.innerHeight),k=u.offsetTop-f.offsetTop-h*sg.VIEWPORT_OFFSET_RATIO,q=k>x;w&&q&&(f.scrollTop=Math.max(0,k))}}function f0(r,u){let f=r,c=0;for(;f&&f!==u&&f.offsetParent;)c+=f.offsetTop,f=f.offsetParent;return f&&f!==u&&(c+=f.offsetTop),c}function d0(r){return r||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function g0(r,u,f){return f&&r.fileIndex===u.fileIndex&&r.chunkIndex===u.chunkIndex&&r.lineIndex===u.lineIndex}function h0(r,u,f){let{fileIndex:c,chunkIndex:g,lineIndex:h}=r;const x=f.length;let T=0;if(u==="next")for(h++;T<x;){if(f[c]?.chunks[g]?.lines[h])return{...r,fileIndex:c,chunkIndex:g,lineIndex:h};g++,h=0,f[c]?.chunks[g]||(c++,g=0,h=0,c>=x&&(c=0,T++))}else for(h--;T<x;){if(h<0)if(g--,g<0){c--,c<0&&(c=x-1,T++);const S=f[c];if(S&&S.chunks.length>0){g=S.chunks.length-1;const p=S.chunks[g];h=p&&p.lines.length>0?p.lines.length-1:-1}else g=-1,h=-1}else{const S=f[c]?.chunks[g];h=S&&S.lines.length>0?S.lines.length-1:-1}if(h>=0&&f[c]?.chunks[g]?.lines[h])return{...r,fileIndex:c,chunkIndex:g,lineIndex:h};h<0||h--}return null}function p0(r,u,f,c,g){let h=r,x=!1;for(;h;){const T=h0(h,u,c);if(!T||(h=T,g0(h,r,x)))break;if(x=!0,f(h,c)){const S=Gg(h,c);return{position:S,scrollTarget:Dl(S,g)}}}return{position:null,scrollTarget:null}}function b0({files:r,comments:u,viewMode:f="inline",reviewedFiles:c,onToggleReviewed:g,onCreateComment:h,onCopyAllComments:x,onDeleteAllComments:T,onShowCommentsList:S,onRefresh:p}){const[w,b]=L.useState(null),[k,q]=L.useState(!1),v=L.useMemo(()=>c0(),[]),A=L.useMemo(()=>{const ae=new Map;return u.forEach(K=>{const me=Array.isArray(K.line)?K.line[0]:K.line,ge=qg(K.file,me);ae.has(ge)||ae.set(ge,[]),ae.get(ge)?.push(K)}),ae},[u]),N=L.useMemo(()=>o0(r,A,f,c),[r,A,f,c]),j=L.useCallback((ae,K)=>{if(r.length===0)return{position:null,scrollTarget:null};const me=d0(w);return p0(me,ae,K,r,f)},[w,r,f]),_=L.useCallback(ae=>K=>{const me=j(K,ae);me.position&&(b(me.position),me.scrollTarget&&v(me.scrollTarget))},[j,v]),H=L.useMemo(()=>_(N.line),[_,N.line]),z=L.useMemo(()=>_(N.chunk),[_,N.chunk]),X=L.useMemo(()=>_(N.file),[_,N.file]),ee=L.useMemo(()=>_(N.comment),[_,N.comment]),le=L.useCallback(ae=>{if(!w||f!=="side-by-side")return;let K={...w,side:ae};const me=r[w.fileIndex]?.chunks[w.chunkIndex]?.lines[w.lineIndex];if(me){if(ae==="left"&&me.type==="add"&&w.lineIndex>0){if(r[w.fileIndex]?.chunks[w.chunkIndex]?.lines[w.lineIndex-1]?.type==="delete"){K={...K,lineIndex:w.lineIndex-1},b(K),v(Dl(K,f));return}}else if(ae==="right"&&me.type==="delete"&&r[w.fileIndex]?.chunks[w.chunkIndex]?.lines[w.lineIndex+1]?.type==="add"){K={...K,lineIndex:w.lineIndex+1},b(K),v(Dl(K,f));return}}if(!wt(K,r)){const ge=r[w.fileIndex];if(!ge)return;const J=ge.chunks[w.chunkIndex];if(J){for(let y=w.lineIndex+1;y<J.lines.length;y++){const G={...K,lineIndex:y};if(wt(G,r)){K=G;break}}if(!wt(K,r))for(let y=w.lineIndex-1;y>=0;y--){const G={...K,lineIndex:y};if(wt(G,r)){K=G;break}}}if(!wt(K,r)){for(let y=w.chunkIndex+1;y<ge.chunks.length;y++){const G=ge.chunks[y];if(G){for(let $=0;$<G.lines.length;$++){const te={...K,chunkIndex:y,lineIndex:$};if(wt(te,r)){K=te;break}}if(wt(K,r))break}}if(!wt(K,r))for(let y=w.chunkIndex-1;y>=0;y--){const G=ge.chunks[y];if(G){for(let $=G.lines.length-1;$>=0;$--){const te={...K,chunkIndex:y,lineIndex:$};if(wt(te,r)){K=te;break}}if(wt(K,r))break}}}}b(K),v(Dl(K,f))},[w,f,v,r]),se=L.useCallback(()=>{const ae=document.querySelector(Ls.SCROLL_CONTAINER);if(!ae)return;const K=ae.getBoundingClientRect(),me=K.top+K.height/2;let ge=1/0,J=null;r.forEach((y,G)=>{y.chunks.forEach(($,te)=>{$.lines.forEach((m,U)=>{const Q=f==="side-by-side"?["left","right"]:["right"];for(const I of Q){const ne={fileIndex:G,chunkIndex:te,lineIndex:U,side:I};if(f==="side-by-side"&&!wt(ne,r))continue;const he=Dl(ne,f),re=document.getElementById(he);if(re){const be=re.getBoundingClientRect(),P=be.top+be.height/2,Te=Math.abs(P-me);be.top<K.bottom&&be.bottom>K.top&&Te<ge&&(ge=Te,J=ne)}}})})}),J&&b(J)},[r,f,b]),pe=L.useCallback(ae=>{if(!ae){b(null);return}const K=Gg(ae,r);b(K),v(Dl(K,f))},[r,f,v]),ce={scopes:"navigation",enableOnFormTags:!1,preventDefault:!0};return Me("j, down",()=>H("next"),ce,[H]),Me("k, up",()=>H("prev"),ce,[H]),Me("n",()=>z("next"),ce,[z]),Me("p",()=>z("prev"),ce,[z]),Me("shift+n",()=>ee("next"),ce,[ee]),Me("shift+p",()=>ee("prev"),ce,[ee]),Me("]",()=>X("next"),{...ce,useKey:!0},[X]),Me("[",()=>X("prev"),{...ce,useKey:!0},[X]),Me("{",()=>{r.length>0&&(b({fileIndex:0,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"}),v(Dl({fileIndex:0,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"},f)))},{...ce,useKey:!0},[r,f,v]),Me("}",()=>{if(r.length>0){const ae=r.length-1,K=r[ae];K&&K.chunks.length>0&&(b({fileIndex:ae,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"}),v(Dl({fileIndex:ae,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"},f)))}},{...ce,useKey:!0},[r,f,v]),Me("h, left",()=>le("left"),{...ce,enabled:f==="side-by-side"},[le,f]),Me("l, right",()=>le("right"),{...ce,enabled:f==="side-by-side"},[le,f]),Me("v",()=>{if(w){const ae=r[w.fileIndex];ae&&g(ae.path)}},ce,[w,r,g]),Me("shift+r",()=>{p&&p()},ce,[p]),Me("c",()=>{if(w&&h){const ae=r[w.fileIndex]?.chunks[w.chunkIndex]?.lines[w.lineIndex];ae&&ae.type!=="delete"&&h()}},ce,[w,r,h]),Me("?",()=>q(!k),{...ce,useKey:!0},[k]),Me(".",ae=>{ae.ctrlKey||ae.altKey||ae.shiftKey||ae.metaKey||(se(),ae.preventDefault())},{...ce,useKey:!0,preventDefault:!1},[se]),Me("shift+c",()=>{x&&x()},{...ce,scopes:["navigation","comments-list"]},[x]),Me("shift+d",()=>{T&&T()},{...ce,scopes:["navigation","comments-list"]},[T]),Me("shift+l",()=>{S&&S()},ce,[S]),{cursor:w,isHelpOpen:k,setIsHelpOpen:q,setCursorPosition:pe}}function y0(r){const u=["package-lock.json","yarn.lock","pnpm-lock.yaml","Cargo.lock","Gemfile.lock","poetry.lock","composer.lock","Pipfile.lock","go.sum","pubspec.lock","flake.lock"],f=r.split("/").pop()||"";return u.includes(f)}function m0(r,u,f,c,g){const[h,x]=L.useState([]),[T,S]=L.useState(new Map);L.useEffect(()=>{if(!r||!u)return;const N=Ya.getViewedFiles(r,u,f,c);(async()=>{if(g&&g.length>0){const _=[],H=new Set(N.map(z=>z.filePath));for(const z of g)if(y0(z.path)&&!H.has(z.path))try{const X=ug(z),ee=await rg(X),le={filePath:z.path,viewedAt:new Date().toISOString(),diffContentHash:ee};_.push(le)}catch(X){console.error("Failed to generate hash for lock file:",X)}if(_.length>0){const z=[...N,..._];Ya.saveViewedFiles(r,u,z,f,c),x(z);return}}x(N)})()},[r,u,f,c]);const p=L.useCallback(N=>{!r||!u||(Ya.saveViewedFiles(r,u,N,f,c),x(N))},[r,u,f,c]),w=L.useMemo(()=>new Set(h.map(N=>N.filePath)),[h]),b=L.useCallback(N=>h.find(j=>j.filePath===N),[h]),k=L.useCallback(async N=>{const j=T.get(N.path);if(j)return j;const _=ug(N),H=await rg(_);return S(z=>new Map(z).set(N.path,H)),H},[T]),q=L.useCallback(async(N,j)=>{const _=b(N);if(!_)return!1;const H=await k(j);return _.diffContentHash!==H},[b,k]),v=L.useCallback(async(N,j)=>{if(b(N)){const H=h.filter(z=>z.filePath!==N);p(H)}else{const H=await k(j),z={filePath:N,viewedAt:new Date().toISOString(),diffContentHash:H},X=[...h,z];p(X)}},[h,b,k,p]),A=L.useCallback(()=>{p([]),S(new Map)},[p]);return{viewedFiles:w,toggleFileViewed:v,isFileContentChanged:q,getViewedFileRecord:b,clearViewedFiles:A}}const Rs=new Map;let v0=0;function zs(r){return Rs.has(r)||Rs.set(r,`file-${++v0}`),Rs.get(r)??""}function x0(r,u,f){for(let c=0;c<r.chunks.length;c++){const g=r.chunks[c];if(g)for(let h=0;h<g.lines.length;h++){const x=g.lines[h];if(!x)continue;if((x.newLineNumber||x.oldLineNumber)===f)return{fileIndex:u,chunkIndex:c,lineIndex:h,side:x.newLineNumber?"right":"left"}}}return null}function S0(r,u){const f=u.findIndex(h=>h.path===r.file);if(f===-1)return null;const c=u[f];if(!c)return null;const g=Array.isArray(r.line)?r.line[1]:r.line;return x0(c,f,g)}function E0(){const[r,u]=L.useState(null),[f,c]=L.useState("side-by-side"),[g,h]=L.useState(!0),[x,T]=L.useState(!0),[S,p]=L.useState(null),[w,b]=L.useState(!1),[k,q]=L.useState(320),[v,A]=L.useState(!1),[N,j]=L.useState(!0),[_,H]=L.useState(!1),[z,X]=L.useState(!1),[ee,le]=L.useState(!1),[se,pe]=L.useState(!1),{settings:ce,updateSettings:ae}=t0(),{comments:K,addComment:me,removeComment:ge,updateComment:J,clearAllComments:y,generatePrompt:G,generateAllCommentsPrompt:$}=r0(r?.baseCommitish,r?.targetCommitish,r?.commit,void 0),{viewedFiles:te,toggleFileViewed:m,clearViewedFiles:U}=m0(r?.baseCommitish,r?.targetCommitish,r?.commit,void 0,r?.files),Q=async W=>{if(r){const Ne=r.files.find(we=>we.path===W);Ne&&(await m(W,Ne),te.has(W)||setTimeout(()=>{const we=document.getElementById(zs(W));we&&we.scrollIntoView({behavior:"instant",block:"start"})},100))}},[I,ne]=L.useState(null),{shouldReload:he,reload:re,watchState:be}=u0(async()=>{await zl()}),{cursor:P,isHelpOpen:Te,setIsHelpOpen:Ze,setCursorPosition:rl}=b0({files:r?.files||[],comments:K.map(W=>({id:W.id,file:W.filePath,line:typeof W.position.line=="number"?W.position.line:[W.position.line.start,W.position.line.end],body:W.body,timestamp:W.createdAt,codeContent:W.codeSnapshot?.content})),viewMode:f,reviewedFiles:te,onToggleReviewed:Q,onCreateComment:()=>{P&&ne({fileIndex:P.fileIndex,chunkIndex:P.chunkIndex,lineIndex:P.lineIndex})},onCopyAllComments:()=>{K.length>0&&Va()},onDeleteAllComments:()=>{K.length>0&&confirm("Delete all comments?")&&y()},onShowCommentsList:()=>{pe(!0)},onRefresh:()=>{re()}}),Zn=W=>{W.preventDefault(),H(!0);const Ne=W.clientX,we=k,je=Ml=>{const Ll=Math.max(200,Math.min(600,we+(Ml.clientX-Ne)));q(Ll)},ul=()=>{H(!1),document.removeEventListener("mousemove",je),document.removeEventListener("mouseup",ul)};document.addEventListener("mousemove",je),document.addEventListener("mouseup",ul)},zl=L.useCallback(async()=>{try{const W=await fetch(`/api/diff?ignoreWhitespace=${g}`);if(!W.ok)throw new Error("Failed to fetch diff data");const Ne=await W.json();u(Ne),Ne.mode&&c(Ne.mode)}catch(W){p(W instanceof Error?W.message:"Unknown error")}finally{T(!1)}},[g]);L.useEffect(()=>{zl()},[zl]);const ln=L.useRef(!1);L.useEffect(()=>{r?.clearComments&&!ln.current&&(ln.current=!0,y(),U(),console.log("✅ All existing comments and viewed files cleared as requested via --clean flag"))},[r?.clearComments,y,U]),L.useEffect(()=>{r&&(te.size<r.files.length?le(!1):te.size===r.files.length&&!ee&&(X(!0),le(!0),setTimeout(()=>{X(!1)},1e3)))},[te.size,r,ee]),L.useEffect(()=>{if(K.length>0){const Ne=K.map(je=>({id:je.id,file:je.filePath,line:typeof je.position.line=="number"?je.position.line:[je.position.line.start,je.position.line.end],body:je.body,timestamp:je.createdAt})),we=JSON.stringify({comments:Ne});fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:we}).catch(je=>{console.error("Failed to sync comments:",je)})}const W=()=>{if(K.length>0){const Ne=K.map(je=>({id:je.id,file:je.filePath,line:typeof je.position.line=="number"?je.position.line:[je.position.line.start,je.position.line.end],body:je.body,timestamp:je.createdAt})),we=JSON.stringify({comments:Ne});navigator.sendBeacon("/api/comments",we)}};return window.addEventListener("beforeunload",W),()=>{window.removeEventListener("beforeunload",W)}},[K]),L.useEffect(()=>{const W=new EventSource("/api/heartbeat");return W.onopen=()=>{console.log("Connected to server heartbeat")},W.onerror=()=>{console.log("Server connection lost"),W.close()},()=>{W.close()}},[]);const fr=(W,Ne,we,je,ul,Ml)=>(me({filePath:W,body:we,side:Ml||"new",line:typeof Ne=="number"?Ne:{start:Ne[0],end:Ne[1]},chunkHeader:ul||"",codeSnapshot:je?{content:je,language:void 0}:void 0}),Promise.resolve()),Va=async()=>{try{const W=$();await navigator.clipboard.writeText(W),b(!0),setTimeout(()=>b(!1),2e3)}catch(W){console.error("Failed to copy all comments prompt:",W)}},At=W=>{if(!r)return;const Ne=S0(W,r.files);Ne&&rl(Ne)},dr=W=>{rl(null),W.target.closest('[data-comment-button="true"]')||Xa(W)},Xa=W=>{document.querySelectorAll('form[data-empty="true"]').forEach(we=>{we.contains(W.target)||we.querySelector('button[type="button"]')?.click()})};return x?s.jsx("div",{className:"flex items-center justify-center h-screen bg-github-bg-primary",children:s.jsx("div",{className:"text-github-text-secondary text-base",children:"Loading diff..."})}):S?s.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[s.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"Error"}),s.jsx("p",{className:"text-github-text-secondary text-base",children:S})]}):r?s.jsx(Ty,{children:s.jsxs("div",{className:"h-screen flex flex-col",onClickCapture:dr,children:[s.jsxs("header",{className:"bg-github-bg-secondary border-b border-github-border flex items-center",children:[s.jsxs("div",{className:`px-4 py-3 flex items-center justify-between gap-4 ${_?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?`${k}px`:"auto",minWidth:N?"200px":"auto",maxWidth:N?"600px":"auto"},children:[s.jsx("h1",{children:s.jsx($m,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{onClick:()=>j(!N),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:N?"Collapse file tree":"Expand file tree","aria-expanded":N,"aria-controls":"file-tree-panel","aria-label":"Toggle file tree panel",children:N?s.jsx(ay,{size:18}):s.jsx(ry,{size:18})}),s.jsx("button",{onClick:()=>A(!0),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:"Appearance Settings",children:s.jsx(Ag,{size:18})})]})]}),s.jsx("div",{className:`border-r border-github-border ${_?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?"4px":"0px",height:"calc(100% - 16px)",margin:"8px 0",transform:"translateX(-2px)"}}),s.jsxs("div",{className:"flex-1 px-4 py-3 flex items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex bg-github-bg-tertiary border border-github-border rounded-md p-1",children:[s.jsxs("button",{onClick:()=>c("side-by-side"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${f==="side-by-side"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[s.jsx(qb,{size:14}),"Side by Side"]}),s.jsxs("button",{onClick:()=>c("inline"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${f==="inline"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[s.jsx(Mb,{size:14}),"Inline"]})]}),s.jsx(Tg,{checked:g,onChange:h,label:"Ignore Whitespace",title:g?"Show whitespace changes":"Ignore whitespace changes"}),s.jsx(Im,{shouldReload:he,isReloading:be.isReloading,onReload:re,changeType:be.lastChangeType})]}),s.jsxs("div",{className:"flex items-center gap-4 text-sm text-github-text-secondary",children:[K.length>0&&s.jsx(yy,{commentsCount:K.length,isCopiedAll:w,onCopyAll:Va,onDeleteAll:y,onViewAll:()=>pe(!0)}),s.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[s.jsxs("div",{className:"text-xs relative",children:[te.size===r.files.length?"All diffs difit-ed!":`${te.size} / ${r.files.length} files viewed`,s.jsx(e0,{isActive:z})]}),s.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:s.jsx("div",{className:"absolute top-0 right-0 h-full transition-all duration-300 ease-out",style:{width:`${(r.files.length-te.size)/r.files.length*100}%`,backgroundColor:(()=>{const W=(r.files.length-te.size)/r.files.length*100;return W>50?"var(--color-github-accent)":W>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),s.jsxs("span",{children:["Reviewing:"," ",s.jsx("code",{className:"bg-github-bg-tertiary px-1.5 py-0.5 rounded text-xs text-github-text-primary",children:r.commit.includes("...")?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-github-text-secondary font-medium",children:[r.commit.split("...")[0],"..."]}),s.jsx("span",{className:"font-medium",children:r.commit.split("...")[1]})]}):r.commit})]}),s.jsxs("span",{children:[r.files.length," file",r.files.length!==1?"s":""," changed"]})]})]})]}),s.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[s.jsx("div",{className:`relative overflow-hidden ${_?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?`${k}px`:"0px"},children:s.jsxs("aside",{id:"file-tree-panel",className:"bg-github-bg-secondary border-r border-github-border overflow-y-auto flex flex-col",style:{width:`${k}px`,minWidth:"200px",maxWidth:"600px",height:"100%"},children:[s.jsx("div",{className:"flex-1 overflow-y-auto",children:s.jsx(Fm,{files:r.files,onScrollToFile:W=>{const Ne=document.getElementById(zs(W));Ne&&Ne.scrollIntoView({behavior:"smooth",block:"start"})},comments:K.map(W=>({id:W.id,file:W.filePath,line:typeof W.position.line=="number"?W.position.line:[W.position.line.start,W.position.line.end],body:W.body,timestamp:W.createdAt,codeContent:W.codeSnapshot?.content})),reviewedFiles:te,onToggleReviewed:Q,selectedFileIndex:P?.fileIndex??null})}),s.jsxs("div",{className:"p-4 border-t border-github-border flex justify-between items-center",children:[s.jsxs("button",{onClick:()=>Ze(!0),className:"flex items-center gap-1.5 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"Keyboard shortcuts (Shift+?)",children:[s.jsx(Pb,{size:16}),s.jsx("span",{className:"text-sm",children:"Shortcuts"})]}),s.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:[s.jsx("span",{className:"text-sm",children:"Star on GitHub"}),s.jsx(Qm,{style:{height:"18px",width:"18px"}})]})]})]})}),s.jsx("div",{className:`bg-github-border hover:bg-github-text-muted cursor-col-resize ${_?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?"4px":"0px"},onMouseDown:Zn,title:"Drag to resize file list"}),s.jsx("main",{className:"flex-1 overflow-y-auto",children:r.files.map((W,Ne)=>s.jsx("div",{id:zs(W.path),className:"mb-6",children:s.jsx(Vm,{file:W,comments:K.filter(we=>we.filePath===W.path).map(we=>({id:we.id,file:we.filePath,line:typeof we.position.line=="number"?we.position.line:[we.position.line.start,we.position.line.end],body:we.body,timestamp:we.createdAt,codeContent:we.codeSnapshot?.content})),diffMode:f,reviewedFiles:te,onToggleReviewed:Q,onAddComment:fr,onGeneratePrompt:we=>G(we.id),onRemoveComment:ge,onUpdateComment:J,syntaxTheme:ce.syntaxTheme,baseCommitish:r.baseCommitish,targetCommitish:r.targetCommitish,cursor:P?.fileIndex===Ne?P:null,fileIndex:Ne,onLineClick:(we,je,ul,Ml)=>{rl({fileIndex:we,chunkIndex:je,lineIndex:ul,side:Ml})},commentTrigger:I?.fileIndex===Ne?I:null,onCommentTriggerHandled:()=>ne(null)})},W.path))})]}),s.jsx(Pm,{isOpen:v,onClose:()=>A(!1),settings:ce,onSettingsChange:ae}),s.jsx(Km,{isOpen:Te,onClose:()=>Ze(!1)}),s.jsx(my,{isOpen:se,onClose:()=>pe(!1),onNavigate:At,comments:K.map(W=>({id:W.id,file:W.filePath,line:typeof W.position.line=="number"?W.position.line:[W.position.line.start,W.position.line.end],body:W.body,timestamp:W.createdAt,codeContent:W.codeSnapshot?.content})),onRemoveComment:ge,onGeneratePrompt:W=>G(W.id),onUpdateComment:J})]})}):s.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[s.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"No data"}),s.jsx("p",{className:"text-github-text-secondary text-base",children:"No diff data available"})]})}const Yg=document.getElementById("root");if(!Yg)throw new Error("Root element not found");pb.createRoot(Yg).render(s.jsx(tn.StrictMode,{children:s.jsx(Tb,{initiallyActiveScopes:["navigation"],children:s.jsx(E0,{})})}));export{og as g};