getgloss 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,327 @@
1
+ (function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const S of m.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&r(S)}).observe(document,{childList:!0,subtree:!0});function f(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(h){if(h.ep)return;h.ep=!0;const m=f(h);fetch(h.href,m)}})();function Z3(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Oo={exports:{}},Li={};/**
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 ad;function K3(){if(ad)return Li;ad=1;var a=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function f(r,h,m){var S=null;if(m!==void 0&&(S=""+m),h.key!==void 0&&(S=""+h.key),"key"in h){m={};for(var T in h)T!=="key"&&(m[T]=h[T])}else m=h;return h=m.ref,{$$typeof:a,type:r,key:S,ref:h!==void 0?h:null,props:m}}return Li.Fragment=u,Li.jsx=f,Li.jsxs=f,Li}var id;function $3(){return id||(id=1,Oo.exports=K3()),Oo.exports}var c=$3(),ko={exports:{}},xe={};/**
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 sd;function J3(){if(sd)return xe;sd=1;var a=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),S=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),U=Symbol.iterator;function B(g){return g===null||typeof g!="object"?null:(g=U&&g[U]||g["@@iterator"],typeof g=="function"?g:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},re=Object.assign,pe={};function $(g,_,C){this.props=g,this.context=_,this.refs=pe,this.updater=C||Q}$.prototype.isReactComponent={},$.prototype.setState=function(g,_){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,_,"setState")},$.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function me(){}me.prototype=$.prototype;function ue(g,_,C){this.props=g,this.context=_,this.refs=pe,this.updater=C||Q}var F=ue.prototype=new me;F.constructor=ue,re(F,$.prototype),F.isPureReactComponent=!0;var ge=Array.isArray;function je(){}var te={H:null,A:null,T:null,S:null},Se=Object.prototype.hasOwnProperty;function we(g,_,C){var X=C.ref;return{$$typeof:a,type:g,key:_,ref:X!==void 0?X:null,props:C}}function _e(g,_){return we(g.type,_,g.props)}function de(g){return typeof g=="object"&&g!==null&&g.$$typeof===a}function V(g){var _={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(C){return _[C]})}var ee=/\/+/g;function W(g,_){return typeof g=="object"&&g!==null&&g.key!=null?V(""+g.key):_.toString(36)}function ve(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(je,je):(g.status="pending",g.then(function(_){g.status==="pending"&&(g.status="fulfilled",g.value=_)},function(_){g.status==="pending"&&(g.status="rejected",g.reason=_)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function b(g,_,C,X,q){var Y=typeof g;(Y==="undefined"||Y==="boolean")&&(g=null);var K=!1;if(g===null)K=!0;else switch(Y){case"bigint":case"string":case"number":K=!0;break;case"object":switch(g.$$typeof){case a:case u:K=!0;break;case N:return K=g._init,b(K(g._payload),_,C,X,q)}}if(K)return q=q(g),K=X===""?"."+W(g,0):X,ge(q)?(C="",K!=null&&(C=K.replace(ee,"$&/")+"/"),b(q,_,C,"",function(at){return at})):q!=null&&(de(q)&&(q=_e(q,C+(q.key==null||g&&g.key===q.key?"":(""+q.key).replace(ee,"$&/")+"/")+K)),_.push(q)),1;K=0;var Ne=X===""?".":X+":";if(ge(g))for(var Me=0;Me<g.length;Me++)X=g[Me],Y=Ne+W(X,Me),K+=b(X,_,C,Y,q);else if(Me=B(g),typeof Me=="function")for(g=Me.call(g),Me=0;!(X=g.next()).done;)X=X.value,Y=Ne+W(X,Me++),K+=b(X,_,C,Y,q);else if(Y==="object"){if(typeof g.then=="function")return b(ve(g),_,C,X,q);throw _=String(g),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return K}function H(g,_,C){if(g==null)return g;var X=[],q=0;return b(g,X,"","",function(Y){return _.call(C,Y,q++)}),X}function Z(g){if(g._status===-1){var _=g._result;_=_(),_.then(function(C){(g._status===0||g._status===-1)&&(g._status=1,g._result=C)},function(C){(g._status===0||g._status===-1)&&(g._status=2,g._result=C)}),g._status===-1&&(g._status=0,g._result=_)}if(g._status===1)return g._result.default;throw g._result}var ae=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},fe={map:H,forEach:function(g,_,C){H(g,function(){_.apply(this,arguments)},C)},count:function(g){var _=0;return H(g,function(){_++}),_},toArray:function(g){return H(g,function(_){return _})||[]},only:function(g){if(!de(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return xe.Activity=L,xe.Children=fe,xe.Component=$,xe.Fragment=f,xe.Profiler=h,xe.PureComponent=ue,xe.StrictMode=r,xe.Suspense=E,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,xe.__COMPILER_RUNTIME={__proto__:null,c:function(g){return te.H.useMemoCache(g)}},xe.cache=function(g){return function(){return g.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(g,_,C){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var X=re({},g.props),q=g.key;if(_!=null)for(Y in _.key!==void 0&&(q=""+_.key),_)!Se.call(_,Y)||Y==="key"||Y==="__self"||Y==="__source"||Y==="ref"&&_.ref===void 0||(X[Y]=_[Y]);var Y=arguments.length-2;if(Y===1)X.children=C;else if(1<Y){for(var K=Array(Y),Ne=0;Ne<Y;Ne++)K[Ne]=arguments[Ne+2];X.children=K}return we(g.type,q,X)},xe.createContext=function(g){return g={$$typeof:S,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:m,_context:g},g},xe.createElement=function(g,_,C){var X,q={},Y=null;if(_!=null)for(X in _.key!==void 0&&(Y=""+_.key),_)Se.call(_,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(q[X]=_[X]);var K=arguments.length-2;if(K===1)q.children=C;else if(1<K){for(var Ne=Array(K),Me=0;Me<K;Me++)Ne[Me]=arguments[Me+2];q.children=Ne}if(g&&g.defaultProps)for(X in K=g.defaultProps,K)q[X]===void 0&&(q[X]=K[X]);return we(g,Y,q)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(g){return{$$typeof:T,render:g}},xe.isValidElement=de,xe.lazy=function(g){return{$$typeof:N,_payload:{_status:-1,_result:g},_init:Z}},xe.memo=function(g,_){return{$$typeof:y,type:g,compare:_===void 0?null:_}},xe.startTransition=function(g){var _=te.T,C={};te.T=C;try{var X=g(),q=te.S;q!==null&&q(C,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(je,ae)}catch(Y){ae(Y)}finally{_!==null&&C.types!==null&&(_.types=C.types),te.T=_}},xe.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},xe.use=function(g){return te.H.use(g)},xe.useActionState=function(g,_,C){return te.H.useActionState(g,_,C)},xe.useCallback=function(g,_){return te.H.useCallback(g,_)},xe.useContext=function(g){return te.H.useContext(g)},xe.useDebugValue=function(){},xe.useDeferredValue=function(g,_){return te.H.useDeferredValue(g,_)},xe.useEffect=function(g,_){return te.H.useEffect(g,_)},xe.useEffectEvent=function(g){return te.H.useEffectEvent(g)},xe.useId=function(){return te.H.useId()},xe.useImperativeHandle=function(g,_,C){return te.H.useImperativeHandle(g,_,C)},xe.useInsertionEffect=function(g,_){return te.H.useInsertionEffect(g,_)},xe.useLayoutEffect=function(g,_){return te.H.useLayoutEffect(g,_)},xe.useMemo=function(g,_){return te.H.useMemo(g,_)},xe.useOptimistic=function(g,_){return te.H.useOptimistic(g,_)},xe.useReducer=function(g,_,C){return te.H.useReducer(g,_,C)},xe.useRef=function(g){return te.H.useRef(g)},xe.useState=function(g){return te.H.useState(g)},xe.useSyncExternalStore=function(g,_,C){return te.H.useSyncExternalStore(g,_,C)},xe.useTransition=function(){return te.H.useTransition()},xe.version="19.2.6",xe}var cd;function tr(){return cd||(cd=1,ko.exports=J3()),ko.exports}var j=tr();const Hi=Z3(j);var Ho={exports:{}},Oi={},Uo={exports:{}},Bo={};/**
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 ud;function F3(){return ud||(ud=1,(function(a){function u(b,H){var Z=b.length;b.push(H);e:for(;0<Z;){var ae=Z-1>>>1,fe=b[ae];if(0<h(fe,H))b[ae]=H,b[Z]=fe,Z=ae;else break e}}function f(b){return b.length===0?null:b[0]}function r(b){if(b.length===0)return null;var H=b[0],Z=b.pop();if(Z!==H){b[0]=Z;e:for(var ae=0,fe=b.length,g=fe>>>1;ae<g;){var _=2*(ae+1)-1,C=b[_],X=_+1,q=b[X];if(0>h(C,Z))X<fe&&0>h(q,C)?(b[ae]=q,b[X]=Z,ae=X):(b[ae]=C,b[_]=Z,ae=_);else if(X<fe&&0>h(q,Z))b[ae]=q,b[X]=Z,ae=X;else break e}}return H}function h(b,H){var Z=b.sortIndex-H.sortIndex;return Z!==0?Z:b.id-H.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;a.unstable_now=function(){return m.now()}}else{var S=Date,T=S.now();a.unstable_now=function(){return S.now()-T}}var E=[],y=[],N=1,L=null,U=3,B=!1,Q=!1,re=!1,pe=!1,$=typeof setTimeout=="function"?setTimeout:null,me=typeof clearTimeout=="function"?clearTimeout:null,ue=typeof setImmediate<"u"?setImmediate:null;function F(b){for(var H=f(y);H!==null;){if(H.callback===null)r(y);else if(H.startTime<=b)r(y),H.sortIndex=H.expirationTime,u(E,H);else break;H=f(y)}}function ge(b){if(re=!1,F(b),!Q)if(f(E)!==null)Q=!0,je||(je=!0,V());else{var H=f(y);H!==null&&ve(ge,H.startTime-b)}}var je=!1,te=-1,Se=5,we=-1;function _e(){return pe?!0:!(a.unstable_now()-we<Se)}function de(){if(pe=!1,je){var b=a.unstable_now();we=b;var H=!0;try{e:{Q=!1,re&&(re=!1,me(te),te=-1),B=!0;var Z=U;try{t:{for(F(b),L=f(E);L!==null&&!(L.expirationTime>b&&_e());){var ae=L.callback;if(typeof ae=="function"){L.callback=null,U=L.priorityLevel;var fe=ae(L.expirationTime<=b);if(b=a.unstable_now(),typeof fe=="function"){L.callback=fe,F(b),H=!0;break t}L===f(E)&&r(E),F(b)}else r(E);L=f(E)}if(L!==null)H=!0;else{var g=f(y);g!==null&&ve(ge,g.startTime-b),H=!1}}break e}finally{L=null,U=Z,B=!1}H=void 0}}finally{H?V():je=!1}}}var V;if(typeof ue=="function")V=function(){ue(de)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,W=ee.port2;ee.port1.onmessage=de,V=function(){W.postMessage(null)}}else V=function(){$(de,0)};function ve(b,H){te=$(function(){b(a.unstable_now())},H)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(b){b.callback=null},a.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Se=0<b?Math.floor(1e3/b):5},a.unstable_getCurrentPriorityLevel=function(){return U},a.unstable_next=function(b){switch(U){case 1:case 2:case 3:var H=3;break;default:H=U}var Z=U;U=H;try{return b()}finally{U=Z}},a.unstable_requestPaint=function(){pe=!0},a.unstable_runWithPriority=function(b,H){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var Z=U;U=b;try{return H()}finally{U=Z}},a.unstable_scheduleCallback=function(b,H,Z){var ae=a.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ae+Z:ae):Z=ae,b){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=Z+fe,b={id:N++,callback:H,priorityLevel:b,startTime:Z,expirationTime:fe,sortIndex:-1},Z>ae?(b.sortIndex=Z,u(y,b),f(E)===null&&b===f(y)&&(re?(me(te),te=-1):re=!0,ve(ge,Z-ae))):(b.sortIndex=fe,u(E,b),Q||B||(Q=!0,je||(je=!0,V()))),b},a.unstable_shouldYield=_e,a.unstable_wrapCallback=function(b){var H=U;return function(){var Z=U;U=H;try{return b.apply(this,arguments)}finally{U=Z}}}})(Bo)),Bo}var od;function W3(){return od||(od=1,Uo.exports=F3()),Uo.exports}var qo={exports:{}},Dt={};/**
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 rd;function I3(){if(rd)return Dt;rd=1;var a=tr();function u(E){var y="https://react.dev/errors/"+E;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)y+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+E+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={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},h=Symbol.for("react.portal");function m(E,y,N){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:L==null?null:""+L,children:E,containerInfo:y,implementation:N}}var S=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function T(E,y){if(E==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Dt.createPortal=function(E,y){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return m(E,y,null,N)},Dt.flushSync=function(E){var y=S.T,N=r.p;try{if(S.T=null,r.p=2,E)return E()}finally{S.T=y,r.p=N,r.d.f()}},Dt.preconnect=function(E,y){typeof E=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(E,y))},Dt.prefetchDNS=function(E){typeof E=="string"&&r.d.D(E)},Dt.preinit=function(E,y){if(typeof E=="string"&&y&&typeof y.as=="string"){var N=y.as,L=T(N,y.crossOrigin),U=typeof y.integrity=="string"?y.integrity:void 0,B=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;N==="style"?r.d.S(E,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:L,integrity:U,fetchPriority:B}):N==="script"&&r.d.X(E,{crossOrigin:L,integrity:U,fetchPriority:B,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Dt.preinitModule=function(E,y){if(typeof E=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var N=T(y.as,y.crossOrigin);r.d.M(E,{crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(E)},Dt.preload=function(E,y){if(typeof E=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var N=y.as,L=T(N,y.crossOrigin);r.d.L(E,N,{crossOrigin:L,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Dt.preloadModule=function(E,y){if(typeof E=="string")if(y){var N=T(y.as,y.crossOrigin);r.d.m(E,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(E)},Dt.requestFormReset=function(E){r.d.r(E)},Dt.unstable_batchedUpdates=function(E,y){return E(y)},Dt.useFormState=function(E,y,N){return S.H.useFormState(E,y,N)},Dt.useFormStatus=function(){return S.H.useHostTransitionStatus()},Dt.version="19.2.6",Dt}var fd;function Kd(){if(fd)return qo.exports;fd=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(u){console.error(u)}}return a(),qo.exports=I3(),qo.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 dd;function P3(){if(dd)return Oi;dd=1;var a=W3(),u=tr(),f=Kd();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function S(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(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function E(e){if(m(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return E(i),e;if(s===l)return E(i),t;s=s.sibling}throw Error(r(188))}if(n.return!==l.return)n=i,l=s;else{for(var o=!1,d=i.child;d;){if(d===n){o=!0,n=i,l=s;break}if(d===l){o=!0,l=i,n=s;break}d=d.sibling}if(!o){for(d=s.child;d;){if(d===n){o=!0,n=s,l=i;break}if(d===l){o=!0,l=s,n=i;break}d=d.sibling}if(!o)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var L=Object.assign,U=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),me=Symbol.for("react.consumer"),ue=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),Se=Symbol.for("react.lazy"),we=Symbol.for("react.activity"),_e=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function V(e){return e===null||typeof e!="object"?null:(e=de&&e[de]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function W(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case re:return"Fragment";case $:return"Profiler";case pe:return"StrictMode";case ge:return"Suspense";case je:return"SuspenseList";case we:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case ue:return e.displayName||"Context";case me:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:W(e.type)||"Memo";case Se:t=e._payload,e=e._init;try{return W(e(t))}catch{}}return null}var ve=Array.isArray,b=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ae=[],fe=-1;function g(e){return{current:e}}function _(e){0>fe||(e.current=ae[fe],ae[fe]=null,fe--)}function C(e,t){fe++,ae[fe]=e.current,e.current=t}var X=g(null),q=g(null),Y=g(null),K=g(null);function Ne(e,t){switch(C(Y,t),C(q,e),C(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Tf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Tf(t),e=Mf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_(X),C(X,e)}function Me(){_(X),_(q),_(Y)}function at(e){e.memoizedState!==null&&C(K,e);var t=X.current,n=Mf(t,e.type);t!==n&&(C(q,e),C(X,n))}function ft(e){q.current===e&&(_(X),_(q)),K.current===e&&(_(K),Ai._currentValue=Z)}var nt,At;function ut(e){if(nt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);nt=t&&t[1]||"",At=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+nt+e+At}var Ot=!1;function ze(e,t){if(!e||Ot)return"";Ot=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(A){var M=A}Reflect.construct(e,[],k)}else{try{k.call()}catch(A){M=A}e.call(k.prototype)}}else{try{throw Error()}catch(A){M=A}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(A){if(A&&M&&typeof A.stack=="string")return[A.stack,M.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),o=s[0],d=s[1];if(o&&d){var p=o.split(`
44
+ `),z=d.split(`
45
+ `);for(i=l=0;l<p.length&&!p[l].includes("DetermineComponentFrameRoot");)l++;for(;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;if(l===p.length||i===z.length)for(l=p.length-1,i=z.length-1;1<=l&&0<=i&&p[l]!==z[i];)i--;for(;1<=l&&0<=i;l--,i--)if(p[l]!==z[i]){if(l!==1||i!==1)do if(l--,i--,0>i||p[l]!==z[i]){var D=`
46
+ `+p[l].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=l&&0<=i);break}}}finally{Ot=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ut(n):""}function vt(e,t){switch(e.tag){case 26:case 27:case 5:return ut(e.type);case 16:return ut("Lazy");case 13:return e.child!==t&&t!==null?ut("Suspense Fallback"):ut("Suspense");case 19:return ut("SuspenseList");case 0:case 15:return ze(e.type,!1);case 11:return ze(e.type.render,!1);case 1:return ze(e.type,!0);case 31:return ut("Activity");default:return""}}function Pt(e){try{var t="",n=null;do t+=vt(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var fn=Object.prototype.hasOwnProperty,jt=a.unstable_scheduleCallback,Fn=a.unstable_cancelCallback,G=a.unstable_shouldYield,ne=a.unstable_requestPaint,se=a.unstable_now,oe=a.unstable_getCurrentPriorityLevel,be=a.unstable_ImmediatePriority,it=a.unstable_UserBlockingPriority,Ie=a.unstable_NormalPriority,bt=a.unstable_LowPriority,kt=a.unstable_IdlePriority,dn=a.log,Ba=a.unstable_setDisableYieldValue,Ht=null,dt=null;function Nt(e){if(typeof dn=="function"&&Ba(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(Ht,e)}catch{}}var lt=Math.clz32?Math.clz32:_l,$e=Math.log,Ut=Math.LN2;function _l(e){return e>>>=0,e===0?32:31-($e(e)/Ut|0)|0}var _t=256,zn=262144,Tn=4194304;function Mn(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Wn(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var i=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=l&134217727;return d!==0?(l=d&~s,l!==0?i=Mn(l):(o&=d,o!==0?i=Mn(o):n||(n=d&~e,n!==0&&(i=Mn(n))))):(d=l&~s,d!==0?i=Mn(d):o!==0?i=Mn(o):n||(n=l&~e,n!==0&&(i=Mn(n)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:i}function Cn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Xi(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 Qi(){var e=Tn;return Tn<<=1,(Tn&62914560)===0&&(Tn=4194304),e}function qa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ga(e,t,n,l,i,s){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var d=e.entanglements,p=e.expirationTimes,z=e.hiddenUpdates;for(n=o&~n;0<n;){var D=31-lt(n),k=1<<D;d[D]=0,p[D]=-1;var M=z[D];if(M!==null)for(z[D]=null,D=0;D<M.length;D++){var A=M[D];A!==null&&(A.lane&=-536870913)}n&=~k}l!==0&&Zi(e,l,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function Zi(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-lt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function ta(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-lt(n),i=1<<l;i&t|e[l]&t&&(e[l]|=t),n&=~i}}function Dl(e,t){var n=t&-t;return n=(n&42)!==0?1:Va(n),(n&(e.suspendedLanes|t))!==0?0:n}function Va(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 na(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ki(){var e=H.p;return e!==0?e:(e=window.event,e===void 0?32:Wf(e.type))}function Ya(e,t){var n=H.p;try{return H.p=e,t()}finally{H.p=n}}var hn=Math.random().toString(36).slice(2),xt="__reactFiber$"+hn,Rt="__reactProps$"+hn,In="__reactContainer$"+hn,Xa="__reactEvents$"+hn,wc="__reactListeners$"+hn,Nc="__reactHandles$"+hn,$i="__reactResources$"+hn,Pn="__reactMarker$"+hn;function Qa(e){delete e[xt],delete e[Rt],delete e[Xa],delete e[wc],delete e[Nc]}function el(e){var t=e[xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[In]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Of(e);e!==null;){if(n=e[xt])return n;e=Of(e)}return t}e=n,n=e.parentNode}return null}function tl(e){if(e=e[xt]||e[In]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ll(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function nl(e){var t=e[$i];return t||(t=e[$i]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ht(e){e[Pn]=!0}var Ji=new Set,Fi={};function An(e,t){ll(e,t),ll(e+"Capture",t)}function ll(e,t){for(Fi[e]=t,e=0;e<t.length;e++)Ji.add(t[e])}var Wi=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]*$"),Ii={},Pi={};function zc(e){return fn.call(Pi,e)?!0:fn.call(Ii,e)?!1:Wi.test(e)?Pi[e]=!0:(Ii[e]=!0,!1)}function R(e,t,n){if(zc(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function J(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function le(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Ue(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tc(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.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 Za(e){if(!e._valueTracker){var t=vn(e)?"checked":"value";e._valueTracker=Tc(e,t,""+e[t])}}function br(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=vn(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function es(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 q2=/[\n"\\]/g;function en(e){return e.replace(q2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mc(e,t,n,l,i,s,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=""+Ue(t)):e.value!==""+Ue(t)&&(e.value=""+Ue(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Cc(e,o,Ue(t)):n!=null?Cc(e,o,Ue(n)):l!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ue(d):e.removeAttribute("name")}function xr(e,t,n,l,i,s,o,d){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Za(e);return}n=n!=null?""+Ue(n):"",t=t!=null?""+Ue(t):n,d||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=d?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Za(e)}function Cc(e,t,n){t==="number"&&es(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function la(e,t,n,l){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Ue(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Sr(e,t,n){if(t!=null&&(t=""+Ue(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ue(n):""}function jr(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(ve(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Ue(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Za(e)}function aa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var G2=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 Er(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||G2.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function wr(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&n[i]!==l&&Er(e,i,l)}else for(var s in t)t.hasOwnProperty(s)&&Er(e,s,t[s])}function Ac(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 V2=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"]]),Y2=/^[\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 ts(e){return Y2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _n(){}var _c=null;function Rc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ia=null,sa=null;function Nr(e){var t=tl(e);if(t&&(e=t.stateNode)){var n=e[Rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+en(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var i=l[Rt]||null;if(!i)throw Error(r(90));Mc(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&br(l)}break e;case"textarea":Sr(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&la(e,!!n.multiple,t,!1)}}}var Dc=!1;function zr(e,t,n){if(Dc)return e(t,n);Dc=!0;try{var l=e(t);return l}finally{if(Dc=!1,(ia!==null||sa!==null)&&(Vs(),ia&&(t=ia,e=sa,sa=ia=null,Nr(t),e)))for(t=0;t<e.length;t++)Nr(e[t])}}function Ka(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Rt]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lc=!1;if(Rn)try{var $a={};Object.defineProperty($a,"passive",{get:function(){Lc=!0}}),window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch{Lc=!1}var al=null,Oc=null,ns=null;function Tr(){if(ns)return ns;var e,t=Oc,n=t.length,l,i="value"in al?al.value:al.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(l=1;l<=o&&t[n-l]===i[s-l];l++);return ns=i.slice(e,1<l?1-l:void 0)}function ls(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 as(){return!0}function Mr(){return!1}function Bt(e){function t(n,l,i,s,o){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?as:Mr,this.isPropagationStopped=Mr,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=as)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=as)},persist:function(){},isPersistent:as}),t}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},is=Bt(Ol),Ja=L({},Ol,{view:0,detail:0}),X2=Bt(Ja),kc,Hc,Fa,ss=L({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bc,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!==Fa&&(Fa&&e.type==="mousemove"?(kc=e.screenX-Fa.screenX,Hc=e.screenY-Fa.screenY):Hc=kc=0,Fa=e),kc)},movementY:function(e){return"movementY"in e?e.movementY:Hc}}),Cr=Bt(ss),Q2=L({},ss,{dataTransfer:0}),Z2=Bt(Q2),K2=L({},Ja,{relatedTarget:0}),Uc=Bt(K2),$2=L({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),J2=Bt($2),F2=L({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),W2=Bt(F2),I2=L({},Ol,{data:0}),Ar=Bt(I2),P2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e4={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"},t4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=t4[e])?!!t[e]:!1}function Bc(){return n4}var l4=L({},Ja,{key:function(e){if(e.key){var t=P2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ls(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?e4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bc,charCode:function(e){return e.type==="keypress"?ls(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ls(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a4=Bt(l4),i4=L({},ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_r=Bt(i4),s4=L({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bc}),c4=Bt(s4),u4=L({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),o4=Bt(u4),r4=L({},ss,{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}),f4=Bt(r4),d4=L({},Ol,{newState:0,oldState:0}),h4=Bt(d4),m4=[9,13,27,32],qc=Rn&&"CompositionEvent"in window,Wa=null;Rn&&"documentMode"in document&&(Wa=document.documentMode);var p4=Rn&&"TextEvent"in window&&!Wa,Rr=Rn&&(!qc||Wa&&8<Wa&&11>=Wa),Dr=" ",Lr=!1;function Or(e,t){switch(e){case"keyup":return m4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ca=!1;function y4(e,t){switch(e){case"compositionend":return kr(t);case"keypress":return t.which!==32?null:(Lr=!0,Dr);case"textInput":return e=t.data,e===Dr&&Lr?null:e;default:return null}}function g4(e,t){if(ca)return e==="compositionend"||!qc&&Or(e,t)?(e=Tr(),ns=Oc=al=null,ca=!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 Rr&&t.locale!=="ko"?null:t.data;default:return null}}var v4={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 Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!v4[e.type]:t==="textarea"}function Ur(e,t,n,l){ia?sa?sa.push(l):sa=[l]:ia=l,t=Js(t,"onChange"),0<t.length&&(n=new is("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ia=null,Pa=null;function b4(e){Sf(e,0)}function cs(e){var t=Ll(e);if(br(t))return e}function Br(e,t){if(e==="change")return t}var qr=!1;if(Rn){var Gc;if(Rn){var Vc="oninput"in document;if(!Vc){var Gr=document.createElement("div");Gr.setAttribute("oninput","return;"),Vc=typeof Gr.oninput=="function"}Gc=Vc}else Gc=!1;qr=Gc&&(!document.documentMode||9<document.documentMode)}function Vr(){Ia&&(Ia.detachEvent("onpropertychange",Yr),Pa=Ia=null)}function Yr(e){if(e.propertyName==="value"&&cs(Pa)){var t=[];Ur(t,Pa,e,Rc(e)),zr(b4,t)}}function x4(e,t,n){e==="focusin"?(Vr(),Ia=t,Pa=n,Ia.attachEvent("onpropertychange",Yr)):e==="focusout"&&Vr()}function S4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cs(Pa)}function j4(e,t){if(e==="click")return cs(t)}function E4(e,t){if(e==="input"||e==="change")return cs(t)}function w4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:w4;function ei(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!fn.call(t,i)||!Qt(e[i],t[i]))return!1}return!0}function Xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qr(e,t){var n=Xr(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xr(n)}}function Zr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=es(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=es(e.document)}return t}function Yc(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 N4=Rn&&"documentMode"in document&&11>=document.documentMode,ua=null,Xc=null,ti=null,Qc=!1;function $r(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qc||ua==null||ua!==es(l)||(l=ua,"selectionStart"in l&&Yc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ti&&ei(ti,l)||(ti=l,l=Js(Xc,"onSelect"),0<l.length&&(t=new is("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=ua)))}function kl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var oa={animationend:kl("Animation","AnimationEnd"),animationiteration:kl("Animation","AnimationIteration"),animationstart:kl("Animation","AnimationStart"),transitionrun:kl("Transition","TransitionRun"),transitionstart:kl("Transition","TransitionStart"),transitioncancel:kl("Transition","TransitionCancel"),transitionend:kl("Transition","TransitionEnd")},Zc={},Jr={};Rn&&(Jr=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function Hl(e){if(Zc[e])return Zc[e];if(!oa[e])return e;var t=oa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jr)return Zc[e]=t[n];return e}var Fr=Hl("animationend"),Wr=Hl("animationiteration"),Ir=Hl("animationstart"),z4=Hl("transitionrun"),T4=Hl("transitionstart"),M4=Hl("transitioncancel"),Pr=Hl("transitionend"),e1=new Map,Kc="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(" ");Kc.push("scrollEnd");function mn(e,t){e1.set(e,t),An(t,[e])}var us=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)},tn=[],ra=0,$c=0;function os(){for(var e=ra,t=$c=ra=0;t<e;){var n=tn[t];tn[t++]=null;var l=tn[t];tn[t++]=null;var i=tn[t];tn[t++]=null;var s=tn[t];if(tn[t++]=null,l!==null&&i!==null){var o=l.pending;o===null?i.next=i:(i.next=o.next,o.next=i),l.pending=i}s!==0&&t1(n,i,s)}}function rs(e,t,n,l){tn[ra++]=e,tn[ra++]=t,tn[ra++]=n,tn[ra++]=l,$c|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Jc(e,t,n,l){return rs(e,t,n,l),fs(e)}function Ul(e,t){return rs(e,null,null,t),fs(e)}function t1(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var i=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-lt(n),e=s.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=n|536870912),s):null}function fs(e){if(50<Ei)throw Ei=0,ao=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fa={};function C4(e,t,n,l){this.tag=e,this.key=n,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zt(e,t,n,l){return new C4(e,t,n,l)}function Fc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dn(e,t){var n=e.alternate;return n===null?(n=Zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function n1(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ds(e,t,n,l,i,s){var o=0;if(l=e,typeof e=="function")Fc(e)&&(o=1);else if(typeof e=="string")o=L3(e,n,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case we:return e=Zt(31,n,t,i),e.elementType=we,e.lanes=s,e;case re:return Bl(n.children,i,s,t);case pe:o=8,i|=24;break;case $:return e=Zt(12,n,t,i|2),e.elementType=$,e.lanes=s,e;case ge:return e=Zt(13,n,t,i),e.elementType=ge,e.lanes=s,e;case je:return e=Zt(19,n,t,i),e.elementType=je,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ue:o=10;break e;case me:o=9;break e;case F:o=11;break e;case te:o=14;break e;case Se:o=16,l=null;break e}o=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Zt(o,n,t,i),t.elementType=e,t.type=l,t.lanes=s,t}function Bl(e,t,n,l){return e=Zt(7,e,l,t),e.lanes=n,e}function Wc(e,t,n){return e=Zt(6,e,null,t),e.lanes=n,e}function l1(e){var t=Zt(18,null,null,0);return t.stateNode=e,t}function Ic(e,t,n){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var a1=new WeakMap;function nn(e,t){if(typeof e=="object"&&e!==null){var n=a1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Pt(t)},a1.set(e,t),t)}return{value:e,source:t,stack:Pt(t)}}var da=[],ha=0,hs=null,ni=0,ln=[],an=0,il=null,bn=1,xn="";function Ln(e,t){da[ha++]=ni,da[ha++]=hs,hs=e,ni=t}function i1(e,t,n){ln[an++]=bn,ln[an++]=xn,ln[an++]=il,il=e;var l=bn;e=xn;var i=32-lt(l)-1;l&=~(1<<i),n+=1;var s=32-lt(t)+i;if(30<s){var o=i-i%5;s=(l&(1<<o)-1).toString(32),l>>=o,i-=o,bn=1<<32-lt(t)+i|n<<i|l,xn=s+e}else bn=1<<s|n<<i|l,xn=e}function Pc(e){e.return!==null&&(Ln(e,1),i1(e,1,0))}function eu(e){for(;e===hs;)hs=da[--ha],da[ha]=null,ni=da[--ha],da[ha]=null;for(;e===il;)il=ln[--an],ln[an]=null,xn=ln[--an],ln[an]=null,bn=ln[--an],ln[an]=null}function s1(e,t){ln[an++]=bn,ln[an++]=xn,ln[an++]=il,bn=t.id,xn=t.overflow,il=e}var zt=null,Fe=null,Le=!1,sl=null,sn=!1,tu=Error(r(519));function cl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw li(nn(t,e)),tu}function c1(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[xt]=e,t[Rt]=l,n){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(n=0;n<Ni.length;n++)Ae(Ni[n],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),xr(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),jr(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Nf(t.textContent,n)?(l.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),l.onScroll!=null&&Ae("scroll",t),l.onScrollEnd!=null&&Ae("scrollend",t),l.onClick!=null&&(t.onclick=_n),t=!0):t=!1,t||cl(e,!0)}function u1(e){for(zt=e.return;zt;)switch(zt.tag){case 5:case 31:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:zt=zt.return}}function ma(e){if(e!==zt)return!1;if(!Le)return u1(e),Le=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||xo(e.type,e.memoizedProps)),n=!n),n&&Fe&&cl(e),u1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Fe=Lf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Fe=Lf(e)}else t===27?(t=Fe,Sl(e.type)?(e=No,No=null,Fe=e):Fe=t):Fe=zt?un(e.stateNode.nextSibling):null;return!0}function ql(){Fe=zt=null,Le=!1}function nu(){var e=sl;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),sl=null),e}function li(e){sl===null?sl=[e]:sl.push(e)}var lu=g(null),Gl=null,On=null;function ul(e,t,n){C(lu,t._currentValue),t._currentValue=n}function kn(e){e._currentValue=lu.current,_(lu)}function au(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function iu(e,t,n,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var o=i.child;s=s.firstContext;e:for(;s!==null;){var d=s;s=i;for(var p=0;p<t.length;p++)if(d.context===t[p]){s.lanes|=n,d=s.alternate,d!==null&&(d.lanes|=n),au(s.return,n,e),l||(o=null);break e}s=d.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(r(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),au(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function pa(e,t,n,l){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var d=i.type;Qt(i.pendingProps.value,o.value)||(e!==null?e.push(d):e=[d])}}else if(i===K.current){if(o=i.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Ai):e=[Ai])}i=i.return}e!==null&&iu(t,e,n,l),t.flags|=262144}function ms(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vl(e){Gl=e,On=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(e){return o1(Gl,e)}function ps(e,t){return Gl===null&&Vl(e),o1(e,t)}function o1(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},On===null){if(e===null)throw Error(r(308));On=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else On=On.next=t;return n}var A4=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},_4=a.unstable_scheduleCallback,R4=a.unstable_NormalPriority,mt={$$typeof:ue,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function su(){return{controller:new A4,data:new Map,refCount:0}}function ai(e){e.refCount--,e.refCount===0&&_4(R4,function(){e.controller.abort()})}var ii=null,cu=0,ya=0,ga=null;function D4(e,t){if(ii===null){var n=ii=[];cu=0,ya=ro(),ga={status:"pending",value:void 0,then:function(l){n.push(l)}}}return cu++,t.then(r1,r1),t}function r1(){if(--cu===0&&ii!==null){ga!==null&&(ga.status="fulfilled");var e=ii;ii=null,ya=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function L4(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var f1=b.S;b.S=function(e,t){$0=se(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&D4(e,t),f1!==null&&f1(e,t)};var Yl=g(null);function uu(){var e=Yl.current;return e!==null?e:Je.pooledCache}function ys(e,t){t===null?C(Yl,Yl.current):C(Yl,t.pool)}function d1(){var e=uu();return e===null?null:{parent:mt._currentValue,pool:e}}var va=Error(r(460)),ou=Error(r(474)),gs=Error(r(542)),vs={then:function(){}};function h1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function m1(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(_n,_n),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,y1(e),e;default:if(typeof t.status=="string")t.then(_n,_n);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,y1(e),e}throw Ql=t,va}}function Xl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ql=n,va):n}}var Ql=null;function p1(){if(Ql===null)throw Error(r(459));var e=Ql;return Ql=null,e}function y1(e){if(e===va||e===gs)throw Error(r(483))}var ba=null,si=0;function bs(e){var t=si;return si+=1,ba===null&&(ba=[]),m1(ba,e,t)}function ci(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xs(e,t){throw t.$$typeof===U?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function g1(e){function t(x,v){if(e){var w=x.deletions;w===null?(x.deletions=[v],x.flags|=16):w.push(v)}}function n(x,v){if(!e)return null;for(;v!==null;)t(x,v),v=v.sibling;return null}function l(x){for(var v=new Map;x!==null;)x.key!==null?v.set(x.key,x):v.set(x.index,x),x=x.sibling;return v}function i(x,v){return x=Dn(x,v),x.index=0,x.sibling=null,x}function s(x,v,w){return x.index=w,e?(w=x.alternate,w!==null?(w=w.index,w<v?(x.flags|=67108866,v):w):(x.flags|=67108866,v)):(x.flags|=1048576,v)}function o(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function d(x,v,w,O){return v===null||v.tag!==6?(v=Wc(w,x.mode,O),v.return=x,v):(v=i(v,w),v.return=x,v)}function p(x,v,w,O){var ce=w.type;return ce===re?D(x,v,w.props.children,O,w.key):v!==null&&(v.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Se&&Xl(ce)===v.type)?(v=i(v,w.props),ci(v,w),v.return=x,v):(v=ds(w.type,w.key,w.props,null,x.mode,O),ci(v,w),v.return=x,v)}function z(x,v,w,O){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Ic(w,x.mode,O),v.return=x,v):(v=i(v,w.children||[]),v.return=x,v)}function D(x,v,w,O,ce){return v===null||v.tag!==7?(v=Bl(w,x.mode,O,ce),v.return=x,v):(v=i(v,w),v.return=x,v)}function k(x,v,w){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Wc(""+v,x.mode,w),v.return=x,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case B:return w=ds(v.type,v.key,v.props,null,x.mode,w),ci(w,v),w.return=x,w;case Q:return v=Ic(v,x.mode,w),v.return=x,v;case Se:return v=Xl(v),k(x,v,w)}if(ve(v)||V(v))return v=Bl(v,x.mode,w,null),v.return=x,v;if(typeof v.then=="function")return k(x,bs(v),w);if(v.$$typeof===ue)return k(x,ps(x,v),w);xs(x,v)}return null}function M(x,v,w,O){var ce=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return ce!==null?null:d(x,v,""+w,O);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case B:return w.key===ce?p(x,v,w,O):null;case Q:return w.key===ce?z(x,v,w,O):null;case Se:return w=Xl(w),M(x,v,w,O)}if(ve(w)||V(w))return ce!==null?null:D(x,v,w,O,null);if(typeof w.then=="function")return M(x,v,bs(w),O);if(w.$$typeof===ue)return M(x,v,ps(x,w),O);xs(x,w)}return null}function A(x,v,w,O,ce){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return x=x.get(w)||null,d(v,x,""+O,ce);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case B:return x=x.get(O.key===null?w:O.key)||null,p(v,x,O,ce);case Q:return x=x.get(O.key===null?w:O.key)||null,z(v,x,O,ce);case Se:return O=Xl(O),A(x,v,w,O,ce)}if(ve(O)||V(O))return x=x.get(w)||null,D(v,x,O,ce,null);if(typeof O.then=="function")return A(x,v,w,bs(O),ce);if(O.$$typeof===ue)return A(x,v,w,ps(v,O),ce);xs(v,O)}return null}function I(x,v,w,O){for(var ce=null,Be=null,ie=v,Te=v=0,De=null;ie!==null&&Te<w.length;Te++){ie.index>Te?(De=ie,ie=null):De=ie.sibling;var qe=M(x,ie,w[Te],O);if(qe===null){ie===null&&(ie=De);break}e&&ie&&qe.alternate===null&&t(x,ie),v=s(qe,v,Te),Be===null?ce=qe:Be.sibling=qe,Be=qe,ie=De}if(Te===w.length)return n(x,ie),Le&&Ln(x,Te),ce;if(ie===null){for(;Te<w.length;Te++)ie=k(x,w[Te],O),ie!==null&&(v=s(ie,v,Te),Be===null?ce=ie:Be.sibling=ie,Be=ie);return Le&&Ln(x,Te),ce}for(ie=l(ie);Te<w.length;Te++)De=A(ie,x,Te,w[Te],O),De!==null&&(e&&De.alternate!==null&&ie.delete(De.key===null?Te:De.key),v=s(De,v,Te),Be===null?ce=De:Be.sibling=De,Be=De);return e&&ie.forEach(function(zl){return t(x,zl)}),Le&&Ln(x,Te),ce}function he(x,v,w,O){if(w==null)throw Error(r(151));for(var ce=null,Be=null,ie=v,Te=v=0,De=null,qe=w.next();ie!==null&&!qe.done;Te++,qe=w.next()){ie.index>Te?(De=ie,ie=null):De=ie.sibling;var zl=M(x,ie,qe.value,O);if(zl===null){ie===null&&(ie=De);break}e&&ie&&zl.alternate===null&&t(x,ie),v=s(zl,v,Te),Be===null?ce=zl:Be.sibling=zl,Be=zl,ie=De}if(qe.done)return n(x,ie),Le&&Ln(x,Te),ce;if(ie===null){for(;!qe.done;Te++,qe=w.next())qe=k(x,qe.value,O),qe!==null&&(v=s(qe,v,Te),Be===null?ce=qe:Be.sibling=qe,Be=qe);return Le&&Ln(x,Te),ce}for(ie=l(ie);!qe.done;Te++,qe=w.next())qe=A(ie,x,Te,qe.value,O),qe!==null&&(e&&qe.alternate!==null&&ie.delete(qe.key===null?Te:qe.key),v=s(qe,v,Te),Be===null?ce=qe:Be.sibling=qe,Be=qe);return e&&ie.forEach(function(Q3){return t(x,Q3)}),Le&&Ln(x,Te),ce}function Ke(x,v,w,O){if(typeof w=="object"&&w!==null&&w.type===re&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case B:e:{for(var ce=w.key;v!==null;){if(v.key===ce){if(ce=w.type,ce===re){if(v.tag===7){n(x,v.sibling),O=i(v,w.props.children),O.return=x,x=O;break e}}else if(v.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Se&&Xl(ce)===v.type){n(x,v.sibling),O=i(v,w.props),ci(O,w),O.return=x,x=O;break e}n(x,v);break}else t(x,v);v=v.sibling}w.type===re?(O=Bl(w.props.children,x.mode,O,w.key),O.return=x,x=O):(O=ds(w.type,w.key,w.props,null,x.mode,O),ci(O,w),O.return=x,x=O)}return o(x);case Q:e:{for(ce=w.key;v!==null;){if(v.key===ce)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(x,v.sibling),O=i(v,w.children||[]),O.return=x,x=O;break e}else{n(x,v);break}else t(x,v);v=v.sibling}O=Ic(w,x.mode,O),O.return=x,x=O}return o(x);case Se:return w=Xl(w),Ke(x,v,w,O)}if(ve(w))return I(x,v,w,O);if(V(w)){if(ce=V(w),typeof ce!="function")throw Error(r(150));return w=ce.call(w),he(x,v,w,O)}if(typeof w.then=="function")return Ke(x,v,bs(w),O);if(w.$$typeof===ue)return Ke(x,v,ps(x,w),O);xs(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,v!==null&&v.tag===6?(n(x,v.sibling),O=i(v,w),O.return=x,x=O):(n(x,v),O=Wc(w,x.mode,O),O.return=x,x=O),o(x)):n(x,v)}return function(x,v,w,O){try{si=0;var ce=Ke(x,v,w,O);return ba=null,ce}catch(ie){if(ie===va||ie===gs)throw ie;var Be=Zt(29,ie,null,x.mode);return Be.lanes=O,Be.return=x,Be}finally{}}}var Zl=g1(!0),v1=g1(!1),ol=!1;function ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fu(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 rl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fl(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ve&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=fs(e),t1(e,null,n),t}return rs(e,l,t,n),fs(e)}function ui(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,ta(e,n)}}function du(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var hu=!1;function oi(){if(hu){var e=ga;if(e!==null)throw e}}function ri(e,t,n,l){hu=!1;var i=e.updateQueue;ol=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var p=d,z=p.next;p.next=null,o===null?s=z:o.next=z,o=p;var D=e.alternate;D!==null&&(D=D.updateQueue,d=D.lastBaseUpdate,d!==o&&(d===null?D.firstBaseUpdate=z:d.next=z,D.lastBaseUpdate=p))}if(s!==null){var k=i.baseState;o=0,D=z=p=null,d=s;do{var M=d.lane&-536870913,A=M!==d.lane;if(A?(Re&M)===M:(l&M)===M){M!==0&&M===ya&&(hu=!0),D!==null&&(D=D.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var I=e,he=d;M=t;var Ke=n;switch(he.tag){case 1:if(I=he.payload,typeof I=="function"){k=I.call(Ke,k,M);break e}k=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=he.payload,M=typeof I=="function"?I.call(Ke,k,M):I,M==null)break e;k=L({},k,M);break e;case 2:ol=!0}}M=d.callback,M!==null&&(e.flags|=64,A&&(e.flags|=8192),A=i.callbacks,A===null?i.callbacks=[M]:A.push(M))}else A={lane:M,tag:d.tag,payload:d.payload,callback:d.callback,next:null},D===null?(z=D=A,p=k):D=D.next=A,o|=M;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;A=d,d=A.next,A.next=null,i.lastBaseUpdate=A,i.shared.pending=null}}while(!0);D===null&&(p=k),i.baseState=p,i.firstBaseUpdate=z,i.lastBaseUpdate=D,s===null&&(i.shared.lanes=0),yl|=o,e.lanes=o,e.memoizedState=k}}function b1(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function x1(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)b1(n[e],t)}var xa=g(null),Ss=g(0);function S1(e,t){e=Qn,C(Ss,e),C(xa,t),Qn=e|t.baseLanes}function mu(){C(Ss,Qn),C(xa,xa.current)}function pu(){Qn=Ss.current,_(xa),_(Ss)}var Kt=g(null),cn=null;function dl(e){var t=e.alternate;C(ot,ot.current&1),C(Kt,e),cn===null&&(t===null||xa.current!==null||t.memoizedState!==null)&&(cn=e)}function yu(e){C(ot,ot.current),C(Kt,e),cn===null&&(cn=e)}function j1(e){e.tag===22?(C(ot,ot.current),C(Kt,e),cn===null&&(cn=e)):hl()}function hl(){C(ot,ot.current),C(Kt,Kt.current)}function $t(e){_(Kt),cn===e&&(cn=null),_(ot)}var ot=g(0);function js(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Eo(n)||wo(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var Hn=0,Ee=null,Qe=null,pt=null,Es=!1,Sa=!1,Kl=!1,ws=0,fi=0,ja=null,O4=0;function st(){throw Error(r(321))}function gu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qt(e[n],t[n]))return!1;return!0}function vu(e,t,n,l,i,s){return Hn=s,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,b.H=e===null||e.memoizedState===null?i0:Du,Kl=!1,s=n(l,i),Kl=!1,Sa&&(s=w1(t,n,l,i)),E1(e),s}function E1(e){b.H=mi;var t=Qe!==null&&Qe.next!==null;if(Hn=0,pt=Qe=Ee=null,Es=!1,fi=0,ja=null,t)throw Error(r(300));e===null||yt||(e=e.dependencies,e!==null&&ms(e)&&(yt=!0))}function w1(e,t,n,l){Ee=e;var i=0;do{if(Sa&&(ja=null),fi=0,Sa=!1,25<=i)throw Error(r(301));if(i+=1,pt=Qe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}b.H=s0,s=t(n,l)}while(Sa);return s}function k4(){var e=b.H,t=e.useState()[0];return t=typeof t.then=="function"?di(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(Ee.flags|=1024),t}function bu(){var e=ws!==0;return ws=0,e}function xu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Su(e){if(Es){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Es=!1}Hn=0,pt=Qe=Ee=null,Sa=!1,fi=ws=0,ja=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?Ee.memoizedState=pt=e:pt=pt.next=e,pt}function rt(){if(Qe===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=pt===null?Ee.memoizedState:pt.next;if(t!==null)pt=t,Qe=e;else{if(e===null)throw Ee.alternate===null?Error(r(467)):Error(r(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},pt===null?Ee.memoizedState=pt=e:pt=pt.next=e}return pt}function Ns(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function di(e){var t=fi;return fi+=1,ja===null&&(ja=[]),e=m1(ja,e,t),t=Ee,(pt===null?t.memoizedState:pt.next)===null&&(t=t.alternate,b.H=t===null||t.memoizedState===null?i0:Du),e}function zs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return di(e);if(e.$$typeof===ue)return Tt(e)}throw Error(r(438,String(e)))}function ju(e){var t=null,n=Ee.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ee.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ns(),Ee.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=_e;return t.index++,n}function Un(e,t){return typeof t=="function"?t(e):t}function Ts(e){var t=rt();return Eu(t,Qe,e)}function Eu(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var i=e.baseQueue,s=l.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}t.baseQueue=i=s,l.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var d=o=null,p=null,z=t,D=!1;do{var k=z.lane&-536870913;if(k!==z.lane?(Re&k)===k:(Hn&k)===k){var M=z.revertLane;if(M===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),k===ya&&(D=!0);else if((Hn&M)===M){z=z.next,M===ya&&(D=!0);continue}else k={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},p===null?(d=p=k,o=s):p=p.next=k,Ee.lanes|=M,yl|=M;k=z.action,Kl&&n(s,k),s=z.hasEagerState?z.eagerState:n(s,k)}else M={lane:k,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},p===null?(d=p=M,o=s):p=p.next=M,Ee.lanes|=k,yl|=k;z=z.next}while(z!==null&&z!==t);if(p===null?o=s:p.next=d,!Qt(s,e.memoizedState)&&(yt=!0,D&&(n=ga,n!==null)))throw n;e.memoizedState=s,e.baseState=o,e.baseQueue=p,l.lastRenderedState=s}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function wu(e){var t=rt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Qt(s,t.memoizedState)||(yt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function N1(e,t,n){var l=Ee,i=rt(),s=Le;if(s){if(n===void 0)throw Error(r(407));n=n()}else n=t();var o=!Qt((Qe||i).memoizedState,n);if(o&&(i.memoizedState=n,yt=!0),i=i.queue,Tu(M1.bind(null,l,i,e),[e]),i.getSnapshot!==t||o||pt!==null&&pt.memoizedState.tag&1){if(l.flags|=2048,Ea(9,{destroy:void 0},T1.bind(null,l,i,n,t),null),Je===null)throw Error(r(349));s||(Hn&127)!==0||z1(l,t,n)}return n}function z1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t=Ns(),Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function T1(e,t,n,l){t.value=n,t.getSnapshot=l,C1(t)&&A1(e)}function M1(e,t,n){return n(function(){C1(t)&&A1(e)})}function C1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qt(e,n)}catch{return!0}}function A1(e){var t=Ul(e,2);t!==null&&Xt(t,e,2)}function Nu(e){var t=Lt();if(typeof e=="function"){var n=e;if(e=n(),Kl){Nt(!0);try{n()}finally{Nt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:e},t}function _1(e,t,n,l){return e.baseState=n,Eu(e,Qe,typeof l=="function"?l:Un)}function H4(e,t,n,l,i){if(As(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};b.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,R1(t,s)):(s.next=n.next,t.pending=n.next=s)}}function R1(e,t){var n=t.action,l=t.payload,i=e.state;if(t.isTransition){var s=b.T,o={};b.T=o;try{var d=n(i,l),p=b.S;p!==null&&p(o,d),D1(e,t,d)}catch(z){zu(e,t,z)}finally{s!==null&&o.types!==null&&(s.types=o.types),b.T=s}}else try{s=n(i,l),D1(e,t,s)}catch(z){zu(e,t,z)}}function D1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){L1(e,t,l)},function(l){return zu(e,t,l)}):L1(e,t,n)}function L1(e,t,n){t.status="fulfilled",t.value=n,O1(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,R1(e,n)))}function zu(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,O1(t),t=t.next;while(t!==l)}e.action=null}function O1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function k1(e,t){return t}function H1(e,t){if(Le){var n=Je.formState;if(n!==null){e:{var l=Ee;if(Le){if(Fe){t:{for(var i=Fe,s=sn;i.nodeType!==8;){if(!s){i=null;break t}if(i=un(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){Fe=un(i.nextSibling),l=i.data==="F!";break e}}cl(l)}l=!1}l&&(t=n[0])}}return n=Lt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:k1,lastRenderedState:t},n.queue=l,n=n0.bind(null,Ee,l),l.dispatch=n,l=Nu(!1),s=Ru.bind(null,Ee,!1,l.queue),l=Lt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,n=H4.bind(null,Ee,i,s,n),i.dispatch=n,l.memoizedState=e,[t,n,!1]}function U1(e){var t=rt();return B1(t,Qe,e)}function B1(e,t,n){if(t=Eu(e,t,k1)[0],e=Ts(Un)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=di(t)}catch(o){throw o===va?gs:o}else l=t;t=rt();var i=t.queue,s=i.dispatch;return n!==t.memoizedState&&(Ee.flags|=2048,Ea(9,{destroy:void 0},U4.bind(null,i,n),null)),[l,s,e]}function U4(e,t){e.action=t}function q1(e){var t=rt(),n=Qe;if(n!==null)return B1(t,n,e);rt(),t=t.memoizedState,n=rt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Ea(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Ee.updateQueue,t===null&&(t=Ns(),Ee.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function G1(){return rt().memoizedState}function Ms(e,t,n,l){var i=Lt();Ee.flags|=e,i.memoizedState=Ea(1|t,{destroy:void 0},n,l===void 0?null:l)}function Cs(e,t,n,l){var i=rt();l=l===void 0?null:l;var s=i.memoizedState.inst;Qe!==null&&l!==null&&gu(l,Qe.memoizedState.deps)?i.memoizedState=Ea(t,s,n,l):(Ee.flags|=e,i.memoizedState=Ea(1|t,s,n,l))}function V1(e,t){Ms(8390656,8,e,t)}function Tu(e,t){Cs(2048,8,e,t)}function B4(e){Ee.flags|=4;var t=Ee.updateQueue;if(t===null)t=Ns(),Ee.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Y1(e){var t=rt().memoizedState;return B4({ref:t,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function X1(e,t){return Cs(4,2,e,t)}function Q1(e,t){return Cs(4,4,e,t)}function Z1(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function K1(e,t,n){n=n!=null?n.concat([e]):null,Cs(4,4,Z1.bind(null,t,e),n)}function Mu(){}function $1(e,t){var n=rt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&gu(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function J1(e,t){var n=rt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&gu(t,l[1]))return l[0];if(l=e(),Kl){Nt(!0);try{e()}finally{Nt(!1)}}return n.memoizedState=[l,t],l}function Cu(e,t,n){return n===void 0||(Hn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=F0(),Ee.lanes|=e,yl|=e,n)}function F1(e,t,n,l){return Qt(n,t)?n:xa.current!==null?(e=Cu(e,n,l),Qt(e,t)||(yt=!0),e):(Hn&42)===0||(Hn&1073741824)!==0&&(Re&261930)===0?(yt=!0,e.memoizedState=n):(e=F0(),Ee.lanes|=e,yl|=e,t)}function W1(e,t,n,l,i){var s=H.p;H.p=s!==0&&8>s?s:8;var o=b.T,d={};b.T=d,Ru(e,!1,t,n);try{var p=i(),z=b.S;if(z!==null&&z(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var D=L4(p,l);hi(e,t,D,Wt(e))}else hi(e,t,l,Wt(e))}catch(k){hi(e,t,{then:function(){},status:"rejected",reason:k},Wt())}finally{H.p=s,o!==null&&d.types!==null&&(o.types=d.types),b.T=o}}function q4(){}function Au(e,t,n,l){if(e.tag!==5)throw Error(r(476));var i=I1(e).queue;W1(e,i,t,Z,n===null?q4:function(){return P1(e),n(l)})}function I1(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:Z},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function P1(e){var t=I1(e);t.next===null&&(t=e.alternate.memoizedState),hi(e,t.next.queue,{},Wt())}function _u(){return Tt(Ai)}function e0(){return rt().memoizedState}function t0(){return rt().memoizedState}function G4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Wt();e=rl(n);var l=fl(t,e,n);l!==null&&(Xt(l,t,n),ui(l,t,n)),t={cache:su()},e.payload=t;return}t=t.return}}function V4(e,t,n){var l=Wt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},As(e)?l0(t,n):(n=Jc(e,t,n,l),n!==null&&(Xt(n,e,l),a0(n,t,l)))}function n0(e,t,n){var l=Wt();hi(e,t,n,l)}function hi(e,t,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(As(e))l0(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,d=s(o,n);if(i.hasEagerState=!0,i.eagerState=d,Qt(d,o))return rs(e,t,i,0),Je===null&&os(),!1}catch{}finally{}if(n=Jc(e,t,i,l),n!==null)return Xt(n,e,l),a0(n,t,l),!0}return!1}function Ru(e,t,n,l){if(l={lane:2,revertLane:ro(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},As(e)){if(t)throw Error(r(479))}else t=Jc(e,n,l,2),t!==null&&Xt(t,e,2)}function As(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function l0(e,t){Sa=Es=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function a0(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,ta(e,n)}}var mi={readContext:Tt,use:zs,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};mi.useEffectEvent=st;var i0={readContext:Tt,use:zs,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:V1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ms(4194308,4,Z1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ms(4194308,4,e,t)},useInsertionEffect:function(e,t){Ms(4,2,e,t)},useMemo:function(e,t){var n=Lt();t=t===void 0?null:t;var l=e();if(Kl){Nt(!0);try{e()}finally{Nt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Lt();if(n!==void 0){var i=n(t);if(Kl){Nt(!0);try{n(t)}finally{Nt(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=V4.bind(null,Ee,e),[l.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=Nu(e);var t=e.queue,n=n0.bind(null,Ee,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Mu,useDeferredValue:function(e,t){var n=Lt();return Cu(n,e,t)},useTransition:function(){var e=Nu(!1);return e=W1.bind(null,Ee,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ee,i=Lt();if(Le){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Je===null)throw Error(r(349));(Re&127)!==0||z1(l,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,V1(M1.bind(null,l,s,e),[e]),l.flags|=2048,Ea(9,{destroy:void 0},T1.bind(null,l,s,n,t),null),n},useId:function(){var e=Lt(),t=Je.identifierPrefix;if(Le){var n=xn,l=bn;n=(l&~(1<<32-lt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ws++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=O4++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_u,useFormState:H1,useActionState:H1,useOptimistic:function(e){var t=Lt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ru.bind(null,Ee,!0,n),n.dispatch=t,[e,t]},useMemoCache:ju,useCacheRefresh:function(){return Lt().memoizedState=G4.bind(null,Ee)},useEffectEvent:function(e){var t=Lt(),n={impl:e};return t.memoizedState=n,function(){if((Ve&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Du={readContext:Tt,use:zs,useCallback:$1,useContext:Tt,useEffect:Tu,useImperativeHandle:K1,useInsertionEffect:X1,useLayoutEffect:Q1,useMemo:J1,useReducer:Ts,useRef:G1,useState:function(){return Ts(Un)},useDebugValue:Mu,useDeferredValue:function(e,t){var n=rt();return F1(n,Qe.memoizedState,e,t)},useTransition:function(){var e=Ts(Un)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:di(e),t]},useSyncExternalStore:N1,useId:e0,useHostTransitionStatus:_u,useFormState:U1,useActionState:U1,useOptimistic:function(e,t){var n=rt();return _1(n,Qe,e,t)},useMemoCache:ju,useCacheRefresh:t0};Du.useEffectEvent=Y1;var s0={readContext:Tt,use:zs,useCallback:$1,useContext:Tt,useEffect:Tu,useImperativeHandle:K1,useInsertionEffect:X1,useLayoutEffect:Q1,useMemo:J1,useReducer:wu,useRef:G1,useState:function(){return wu(Un)},useDebugValue:Mu,useDeferredValue:function(e,t){var n=rt();return Qe===null?Cu(n,e,t):F1(n,Qe.memoizedState,e,t)},useTransition:function(){var e=wu(Un)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:di(e),t]},useSyncExternalStore:N1,useId:e0,useHostTransitionStatus:_u,useFormState:q1,useActionState:q1,useOptimistic:function(e,t){var n=rt();return Qe!==null?_1(n,Qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ju,useCacheRefresh:t0};s0.useEffectEvent=Y1;function Lu(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:L({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ou={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Wt(),i=rl(l);i.payload=t,n!=null&&(i.callback=n),t=fl(e,i,l),t!==null&&(Xt(t,e,l),ui(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Wt(),i=rl(l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=fl(e,i,l),t!==null&&(Xt(t,e,l),ui(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wt(),l=rl(n);l.tag=2,t!=null&&(l.callback=t),t=fl(e,l,n),t!==null&&(Xt(t,e,n),ui(t,e,n))}};function c0(e,t,n,l,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,o):t.prototype&&t.prototype.isPureReactComponent?!ei(n,l)||!ei(i,s):!0}function u0(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Ou.enqueueReplaceState(t,t.state,null)}function $l(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=L({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function o0(e){us(e)}function r0(e){console.error(e)}function f0(e){us(e)}function _s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function d0(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function ku(e,t,n){return n=rl(n),n.tag=3,n.payload={element:null},n.callback=function(){_s(e,t)},n}function h0(e){return e=rl(e),e.tag=3,e}function m0(e,t,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var s=l.value;e.payload=function(){return i(s)},e.callback=function(){d0(t,n,l)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){d0(t,n,l),typeof i!="function"&&(gl===null?gl=new Set([this]):gl.add(this));var d=l.stack;this.componentDidCatch(l.value,{componentStack:d!==null?d:""})})}function Y4(e,t,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&pa(t,n,i,!0),n=Kt.current,n!==null){switch(n.tag){case 31:case 13:return cn===null?Ys():n.alternate===null&&ct===0&&(ct=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===vs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),co(e,l,i)),!1;case 22:return n.flags|=65536,l===vs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),co(e,l,i)),!1}throw Error(r(435,n.tag))}return co(e,l,i),Ys(),!1}if(Le)return t=Kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==tu&&(e=Error(r(422),{cause:l}),li(nn(e,n)))):(l!==tu&&(t=Error(r(423),{cause:l}),li(nn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=nn(l,n),i=ku(e.stateNode,l,i),du(e,i),ct!==4&&(ct=2)),!1;var s=Error(r(520),{cause:l});if(s=nn(s,n),ji===null?ji=[s]:ji.push(s),ct!==4&&(ct=2),t===null)return!0;l=nn(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=ku(n.stateNode,l,e),du(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(gl===null||!gl.has(s))))return n.flags|=65536,i&=-i,n.lanes|=i,i=h0(i),m0(i,e,n,l),du(n,i),!1}n=n.return}while(n!==null);return!1}var Hu=Error(r(461)),yt=!1;function Mt(e,t,n,l){t.child=e===null?v1(t,null,n,l):Zl(t,e.child,n,l)}function p0(e,t,n,l,i){n=n.render;var s=t.ref;if("ref"in l){var o={};for(var d in l)d!=="ref"&&(o[d]=l[d])}else o=l;return Vl(t),l=vu(e,t,n,o,s,i),d=bu(),e!==null&&!yt?(xu(e,t,i),Bn(e,t,i)):(Le&&d&&Pc(t),t.flags|=1,Mt(e,t,l,i),t.child)}function y0(e,t,n,l,i){if(e===null){var s=n.type;return typeof s=="function"&&!Fc(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,g0(e,t,s,l,i)):(e=ds(n.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Qu(e,i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:ei,n(o,l)&&e.ref===t.ref)return Bn(e,t,i)}return t.flags|=1,e=Dn(s,l),e.ref=t.ref,e.return=t,t.child=e}function g0(e,t,n,l,i){if(e!==null){var s=e.memoizedProps;if(ei(s,l)&&e.ref===t.ref)if(yt=!1,t.pendingProps=l=s,Qu(e,i))(e.flags&131072)!==0&&(yt=!0);else return t.lanes=e.lanes,Bn(e,t,i)}return Uu(e,t,n,l,i)}function v0(e,t,n,l){var i=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~s}else l=0,t.child=null;return b0(e,t,s,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ys(t,s!==null?s.cachePool:null),s!==null?S1(t,s):mu(),j1(t);else return l=t.lanes=536870912,b0(e,t,s!==null?s.baseLanes|n:n,n,l)}else s!==null?(ys(t,s.cachePool),S1(t,s),hl(),t.memoizedState=null):(e!==null&&ys(t,null),mu(),hl());return Mt(e,t,i,n),t.child}function pi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function b0(e,t,n,l,i){var s=uu();return s=s===null?null:{parent:mt._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&ys(t,null),mu(),j1(t),e!==null&&pa(e,t,l,!0),t.childLanes=i,null}function Rs(e,t){return t=Ls({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function x0(e,t,n){return Zl(t,e.child,null,n),e=Rs(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function X4(e,t,n){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Le){if(l.mode==="hidden")return e=Rs(t,l),t.lanes=536870912,pi(null,e);if(yu(t),(e=Fe)?(e=Df(e,sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:il!==null?{id:bn,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=l1(e),n.return=t,t.child=n,zt=t,Fe=null)):e=null,e===null)throw cl(t);return t.lanes=536870912,null}return Rs(t,l)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(yu(t),i)if(t.flags&256)t.flags&=-257,t=x0(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(yt||pa(e,t,n,!1),i=(n&e.childLanes)!==0,yt||i){if(l=Je,l!==null&&(o=Dl(l,n),o!==0&&o!==s.retryLane))throw s.retryLane=o,Ul(e,o),Xt(l,e,o),Hu;Ys(),t=x0(e,t,n)}else e=s.treeContext,Fe=un(o.nextSibling),zt=t,Le=!0,sl=null,sn=!1,e!==null&&s1(t,e),t=Rs(t,l),t.flags|=4096;return t}return e=Dn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ds(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Uu(e,t,n,l,i){return Vl(t),n=vu(e,t,n,l,void 0,i),l=bu(),e!==null&&!yt?(xu(e,t,i),Bn(e,t,i)):(Le&&l&&Pc(t),t.flags|=1,Mt(e,t,n,i),t.child)}function S0(e,t,n,l,i,s){return Vl(t),t.updateQueue=null,n=w1(t,l,n,i),E1(e),l=bu(),e!==null&&!yt?(xu(e,t,s),Bn(e,t,s)):(Le&&l&&Pc(t),t.flags|=1,Mt(e,t,n,s),t.child)}function j0(e,t,n,l,i){if(Vl(t),t.stateNode===null){var s=fa,o=n.contextType;typeof o=="object"&&o!==null&&(s=Tt(o)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ou,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},ru(t),o=n.contextType,s.context=typeof o=="object"&&o!==null?Tt(o):fa,s.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Lu(t,n,o,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&Ou.enqueueReplaceState(s,s.state,null),ri(t,l,s,i),oi(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var d=t.memoizedProps,p=$l(n,d);s.props=p;var z=s.context,D=n.contextType;o=fa,typeof D=="object"&&D!==null&&(o=Tt(D));var k=n.getDerivedStateFromProps;D=typeof k=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,D||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||z!==o)&&u0(t,s,l,o),ol=!1;var M=t.memoizedState;s.state=M,ri(t,l,s,i),oi(),z=t.memoizedState,d||M!==z||ol?(typeof k=="function"&&(Lu(t,n,k,l),z=t.memoizedState),(p=ol||c0(t,n,p,l,M,z,o))?(D||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),s.props=l,s.state=z,s.context=o,l=p):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,fu(e,t),o=t.memoizedProps,D=$l(n,o),s.props=D,k=t.pendingProps,M=s.context,z=n.contextType,p=fa,typeof z=="object"&&z!==null&&(p=Tt(z)),d=n.getDerivedStateFromProps,(z=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==k||M!==p)&&u0(t,s,l,p),ol=!1,M=t.memoizedState,s.state=M,ri(t,l,s,i),oi();var A=t.memoizedState;o!==k||M!==A||ol||e!==null&&e.dependencies!==null&&ms(e.dependencies)?(typeof d=="function"&&(Lu(t,n,d,l),A=t.memoizedState),(D=ol||c0(t,n,D,l,M,A,p)||e!==null&&e.dependencies!==null&&ms(e.dependencies))?(z||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,A,p),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,A,p)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=A),s.props=l,s.state=A,s.context=p,l=D):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Ds(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=Zl(t,e.child,null,i),t.child=Zl(t,null,n,i)):Mt(e,t,n,i),t.memoizedState=s.state,e=t.child):e=Bn(e,t,i),e}function E0(e,t,n,l){return ql(),t.flags|=256,Mt(e,t,n,l),t.child}var Bu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qu(e){return{baseLanes:e,cachePool:d1()}}function Gu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ft),e}function w0(e,t,n){var l=t.pendingProps,i=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Le){if(i?dl(t):hl(),(e=Fe)?(e=Df(e,sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:il!==null?{id:bn,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=l1(e),n.return=t,t.child=n,zt=t,Fe=null)):e=null,e===null)throw cl(t);return wo(e)?t.lanes=32:t.lanes=536870912,null}var d=l.children;return l=l.fallback,i?(hl(),i=t.mode,d=Ls({mode:"hidden",children:d},i),l=Bl(l,i,n,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=qu(n),l.childLanes=Gu(e,o,n),t.memoizedState=Bu,pi(null,l)):(dl(t),Vu(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(s)t.flags&256?(dl(t),t.flags&=-257,t=Yu(e,t,n)):t.memoizedState!==null?(hl(),t.child=e.child,t.flags|=128,t=null):(hl(),d=l.fallback,i=t.mode,l=Ls({mode:"visible",children:l.children},i),d=Bl(d,i,n,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Zl(t,e.child,null,n),l=t.child,l.memoizedState=qu(n),l.childLanes=Gu(e,o,n),t.memoizedState=Bu,t=pi(null,l));else if(dl(t),wo(d)){if(o=d.nextSibling&&d.nextSibling.dataset,o)var z=o.dgst;o=z,l=Error(r(419)),l.stack="",l.digest=o,li({value:l,source:null,stack:null}),t=Yu(e,t,n)}else if(yt||pa(e,t,n,!1),o=(n&e.childLanes)!==0,yt||o){if(o=Je,o!==null&&(l=Dl(o,n),l!==0&&l!==p.retryLane))throw p.retryLane=l,Ul(e,l),Xt(o,e,l),Hu;Eo(d)||Ys(),t=Yu(e,t,n)}else Eo(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Fe=un(d.nextSibling),zt=t,Le=!0,sl=null,sn=!1,e!==null&&s1(t,e),t=Vu(t,l.children),t.flags|=4096);return t}return i?(hl(),d=l.fallback,i=t.mode,p=e.child,z=p.sibling,l=Dn(p,{mode:"hidden",children:l.children}),l.subtreeFlags=p.subtreeFlags&65011712,z!==null?d=Dn(z,d):(d=Bl(d,i,n,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,pi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=qu(n):(i=d.cachePool,i!==null?(p=mt._currentValue,i=i.parent!==p?{parent:p,pool:p}:i):i=d1(),d={baseLanes:d.baseLanes|n,cachePool:i}),l.memoizedState=d,l.childLanes=Gu(e,o,n),t.memoizedState=Bu,pi(e.child,l)):(dl(t),n=e.child,e=n.sibling,n=Dn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Vu(e,t){return t=Ls({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ls(e,t){return e=Zt(22,e,null,t),e.lanes=0,e}function Yu(e,t,n){return Zl(t,e.child,null,n),e=Vu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function N0(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),au(e.return,t,n)}function Xu(e,t,n,l,i,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=n,o.tailMode=i,o.treeForkCount=s)}function z0(e,t,n){var l=t.pendingProps,i=l.revealOrder,s=l.tail;l=l.children;var o=ot.current,d=(o&2)!==0;if(d?(o=o&1|2,t.flags|=128):o&=1,C(ot,o),Mt(e,t,l,n),l=Le?ni:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&N0(e,n,t);else if(e.tag===19)N0(e,n,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}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&js(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xu(t,!1,i,n,s,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&js(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xu(t,!0,n,null,s,l);break;case"together":Xu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(pa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ms(e)))}function Q4(e,t,n){switch(t.tag){case 3:Ne(t,t.stateNode.containerInfo),ul(t,mt,e.memoizedState.cache),ql();break;case 27:case 5:at(t);break;case 4:Ne(t,t.stateNode.containerInfo);break;case 10:ul(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,yu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(dl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?w0(e,t,n):(dl(t),e=Bn(e,t,n),e!==null?e.sibling:null);dl(t);break;case 19:var i=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(pa(e,t,n,!1),l=(n&t.childLanes)!==0),i){if(l)return z0(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),C(ot,ot.current),l)break;return null;case 22:return t.lanes=0,v0(e,t,n,t.pendingProps);case 24:ul(t,mt,e.memoizedState.cache)}return Bn(e,t,n)}function T0(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!Qu(e,n)&&(t.flags&128)===0)return yt=!1,Q4(e,t,n);yt=(e.flags&131072)!==0}else yt=!1,Le&&(t.flags&1048576)!==0&&i1(t,ni,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Xl(t.elementType),t.type=e,typeof e=="function")Fc(e)?(l=$l(e,l),t.tag=1,t=j0(null,t,e,l,n)):(t.tag=0,t=Uu(null,t,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===F){t.tag=11,t=p0(null,t,e,l,n);break e}else if(i===te){t.tag=14,t=y0(null,t,e,l,n);break e}}throw t=W(e)||e,Error(r(306,t,""))}}return t;case 0:return Uu(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,i=$l(l,t.pendingProps),j0(e,t,l,i,n);case 3:e:{if(Ne(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var s=t.memoizedState;i=s.element,fu(e,t),ri(t,l,null,n);var o=t.memoizedState;if(l=o.cache,ul(t,mt,l),l!==s.cache&&iu(t,[mt],n,!0),oi(),l=o.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=E0(e,t,l,n);break e}else if(l!==i){i=nn(Error(r(424)),t),li(i),t=E0(e,t,l,n);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(Fe=un(e.firstChild),zt=t,Le=!0,sl=null,sn=!0,n=v1(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ql(),l===i){t=Bn(e,t,n);break e}Mt(e,t,l,n)}t=t.child}return t;case 26:return Ds(e,t),e===null?(n=Bf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Le||(n=t.type,e=t.pendingProps,l=Fs(Y.current).createElement(n),l[xt]=t,l[Rt]=e,Ct(l,n,e),ht(l),t.stateNode=l):t.memoizedState=Bf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return at(t),e===null&&Le&&(l=t.stateNode=kf(t.type,t.pendingProps,Y.current),zt=t,sn=!0,i=Fe,Sl(t.type)?(No=i,Fe=un(l.firstChild)):Fe=i),Mt(e,t,t.pendingProps.children,n),Ds(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Le&&((i=l=Fe)&&(l=S3(l,t.type,t.pendingProps,sn),l!==null?(t.stateNode=l,zt=t,Fe=un(l.firstChild),sn=!1,i=!0):i=!1),i||cl(t)),at(t),i=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,l=s.children,xo(i,s)?l=null:o!==null&&xo(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=vu(e,t,k4,null,null,n),Ai._currentValue=i),Ds(e,t),Mt(e,t,l,n),t.child;case 6:return e===null&&Le&&((e=n=Fe)&&(n=j3(n,t.pendingProps,sn),n!==null?(t.stateNode=n,zt=t,Fe=null,e=!0):e=!1),e||cl(t)),null;case 13:return w0(e,t,n);case 4:return Ne(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Zl(t,null,l,n):Mt(e,t,l,n),t.child;case 11:return p0(e,t,t.type,t.pendingProps,n);case 7:return Mt(e,t,t.pendingProps,n),t.child;case 8:return Mt(e,t,t.pendingProps.children,n),t.child;case 12:return Mt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,ul(t,t.type,l.value),Mt(e,t,l.children,n),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,Vl(t),i=Tt(i),l=l(i),t.flags|=1,Mt(e,t,l,n),t.child;case 14:return y0(e,t,t.type,t.pendingProps,n);case 15:return g0(e,t,t.type,t.pendingProps,n);case 19:return z0(e,t,n);case 31:return X4(e,t,n);case 22:return v0(e,t,n,t.pendingProps);case 24:return Vl(t),l=Tt(mt),e===null?(i=uu(),i===null&&(i=Je,s=su(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=n),i=s),t.memoizedState={parent:l,cache:i},ru(t),ul(t,mt,i)):((e.lanes&n)!==0&&(fu(e,t),ri(t,null,null,n),oi()),i=e.memoizedState,s=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),ul(t,mt,l)):(l=s.cache,ul(t,mt,l),l!==i.cache&&iu(t,[mt],n,!0))),Mt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function qn(e){e.flags|=4}function Zu(e,t,n,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(ef())e.flags|=8192;else throw Ql=vs,ou}else e.flags&=-16777217}function M0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Xf(t))if(ef())e.flags|=8192;else throw Ql=vs,ou}function Os(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Qi():536870912,e.lanes|=t,Ta|=t)}function yi(e,t){if(!Le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function Z4(e,t,n){var l=t.pendingProps;switch(eu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),kn(mt),Me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ma(t)?qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,nu())),We(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(qn(t),s!==null?(We(t),M0(t,s)):(We(t),Zu(t,i,null,l,n))):s?s!==e.memoizedState?(qn(t),We(t),M0(t,s)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&qn(t),We(t),Zu(t,i,e,l,n)),null;case 27:if(ft(t),n=Y.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&qn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return We(t),null}e=X.current,ma(t)?c1(t):(e=kf(i,l,n),t.stateNode=e,qn(t))}return We(t),null;case 5:if(ft(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&qn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return We(t),null}if(s=X.current,ma(t))c1(t);else{var o=Fs(Y.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?o.createElement(i,{is:l.is}):o.createElement(i)}}s[xt]=t,s[Rt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)s.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(Ct(s,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&qn(t)}}return We(t),Zu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&qn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=Y.current,ma(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,i=zt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[xt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Nf(e.nodeValue,n)),e||cl(t,!0)}else e=Fs(e).createTextNode(l),e[xt]=t,t.stateNode=e}return We(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=ma(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[xt]=t}else ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else n=nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(r(558))}return We(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ma(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));i[xt]=t}else ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else i=nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==i&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Os(t,t.updateQueue),We(t),null);case 4:return Me(),e===null&&po(t.stateNode.containerInfo),We(t),null;case 10:return kn(t.type),We(t),null;case 19:if(_(ot),l=t.memoizedState,l===null)return We(t),null;if(i=(t.flags&128)!==0,s=l.rendering,s===null)if(i)yi(l,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=js(e),s!==null){for(t.flags|=128,yi(l,!1),e=s.updateQueue,t.updateQueue=e,Os(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)n1(n,e),n=n.sibling;return C(ot,ot.current&1|2),Le&&Ln(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&se()>qs&&(t.flags|=128,i=!0,yi(l,!1),t.lanes=4194304)}else{if(!i)if(e=js(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Os(t,e),yi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Le)return We(t),null}else 2*se()-l.renderingStartTime>qs&&n!==536870912&&(t.flags|=128,i=!0,yi(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=se(),e.sibling=null,n=ot.current,C(ot,i?n&1|2:n&1),Le&&Ln(t,l.treeForkCount),e):(We(t),null);case 22:case 23:return $t(t),pu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),n=t.updateQueue,n!==null&&Os(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&_(Yl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),kn(mt),We(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function K4(e,t){switch(eu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kn(mt),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ft(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(r(340));ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _(ot),null;case 4:return Me(),null;case 10:return kn(t.type),null;case 22:case 23:return $t(t),pu(),e!==null&&_(Yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return kn(mt),null;case 25:return null;default:return null}}function C0(e,t){switch(eu(t),t.tag){case 3:kn(mt),Me();break;case 26:case 27:case 5:ft(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:_(ot);break;case 10:kn(t.type);break;case 22:case 23:$t(t),pu(),e!==null&&_(Yl);break;case 24:kn(mt)}}function gi(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&e)===e){l=void 0;var s=n.create,o=n.inst;l=s(),o.destroy=l}n=n.next}while(n!==i)}}catch(d){Xe(t,t.return,d)}}function ml(e,t,n){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){var o=l.inst,d=o.destroy;if(d!==void 0){o.destroy=void 0,i=t;var p=n,z=d;try{z()}catch(D){Xe(i,p,D)}}}l=l.next}while(l!==s)}}catch(D){Xe(t,t.return,D)}}function A0(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{x1(t,n)}catch(l){Xe(e,e.return,l)}}}function _0(e,t,n){n.props=$l(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Xe(e,t,l)}}function vi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(i){Xe(e,t,i)}}function Sn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Xe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Xe(e,t,i)}else n.current=null}function R0(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Xe(e,e.return,i)}}function Ku(e,t,n){try{var l=e.stateNode;p3(l,e.type,n,t),l[Rt]=t}catch(i){Xe(e,e.return,i)}}function D0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sl(e.type)||e.tag===4}function $u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||D0(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&&Sl(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 Ju(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_n));else if(l!==4&&(l===27&&Sl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ju(e,t,n),e=e.sibling;e!==null;)Ju(e,t,n),e=e.sibling}function ks(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Sl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ks(e,t,n),e=e.sibling;e!==null;)ks(e,t,n),e=e.sibling}function L0(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ct(t,l,n),t[xt]=e,t[Rt]=n}catch(s){Xe(e,e.return,s)}}var Gn=!1,gt=!1,Fu=!1,O0=typeof WeakSet=="function"?WeakSet:Set,Et=null;function $4(e,t){if(e=e.containerInfo,vo=lc,e=Kr(e),Yc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var i=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,d=-1,p=-1,z=0,D=0,k=e,M=null;t:for(;;){for(var A;k!==n||i!==0&&k.nodeType!==3||(d=o+i),k!==s||l!==0&&k.nodeType!==3||(p=o+l),k.nodeType===3&&(o+=k.nodeValue.length),(A=k.firstChild)!==null;)M=k,k=A;for(;;){if(k===e)break t;if(M===n&&++z===i&&(d=o),M===s&&++D===l&&(p=o),(A=k.nextSibling)!==null)break;k=M,M=k.parentNode}k=A}n=d===-1||p===-1?null:{start:d,end:p}}else n=null}n=n||{start:0,end:0}}else n=null;for(bo={focusedElem:e,selectionRange:n},lc=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){switch(t=Et,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,n=t,i=s.memoizedProps,s=s.memoizedState,l=n.stateNode;try{var I=$l(n.type,i);e=l.getSnapshotBeforeUpdate(I,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(he){Xe(n,n.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)jo(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":jo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Et=e;break}Et=t.return}}function k0(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Yn(e,n),l&4&&gi(5,n);break;case 1:if(Yn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){Xe(n,n.return,o)}else{var i=$l(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Xe(n,n.return,o)}}l&64&&A0(n),l&512&&vi(n,n.return);break;case 3:if(Yn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{x1(e,t)}catch(o){Xe(n,n.return,o)}}break;case 27:t===null&&l&4&&L0(n);case 26:case 5:Yn(e,n),t===null&&l&4&&R0(n),l&512&&vi(n,n.return);break;case 12:Yn(e,n);break;case 31:Yn(e,n),l&4&&B0(e,n);break;case 13:Yn(e,n),l&4&&q0(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=l3.bind(null,n),E3(e,n))));break;case 22:if(l=n.memoizedState!==null||Gn,!l){t=t!==null&&t.memoizedState!==null||gt,i=Gn;var s=gt;Gn=l,(gt=t)&&!s?Xn(e,n,(n.subtreeFlags&8772)!==0):Yn(e,n),Gn=i,gt=s}break;case 30:break;default:Yn(e,n)}}function H0(e){var t=e.alternate;t!==null&&(e.alternate=null,H0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qa(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 Pe=null,qt=!1;function Vn(e,t,n){for(n=n.child;n!==null;)U0(e,t,n),n=n.sibling}function U0(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Ht,n)}catch{}switch(n.tag){case 26:gt||Sn(n,t),Vn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:gt||Sn(n,t);var l=Pe,i=qt;Sl(n.type)&&(Pe=n.stateNode,qt=!1),Vn(e,t,n),Ti(n.stateNode),Pe=l,qt=i;break;case 5:gt||Sn(n,t);case 6:if(l=Pe,i=qt,Pe=null,Vn(e,t,n),Pe=l,qt=i,Pe!==null)if(qt)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(n.stateNode)}catch(s){Xe(n,t,s)}else try{Pe.removeChild(n.stateNode)}catch(s){Xe(n,t,s)}break;case 18:Pe!==null&&(qt?(e=Pe,_f(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Oa(e)):_f(Pe,n.stateNode));break;case 4:l=Pe,i=qt,Pe=n.stateNode.containerInfo,qt=!0,Vn(e,t,n),Pe=l,qt=i;break;case 0:case 11:case 14:case 15:ml(2,n,t),gt||ml(4,n,t),Vn(e,t,n);break;case 1:gt||(Sn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&_0(n,t,l)),Vn(e,t,n);break;case 21:Vn(e,t,n);break;case 22:gt=(l=gt)||n.memoizedState!==null,Vn(e,t,n),gt=l;break;default:Vn(e,t,n)}}function B0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oa(e)}catch(n){Xe(t,t.return,n)}}}function q0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oa(e)}catch(n){Xe(t,t.return,n)}}function J4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new O0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new O0),t;default:throw Error(r(435,e.tag))}}function Hs(e,t){var n=J4(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var i=a3.bind(null,e,l);l.then(i,i)}})}function Gt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l],s=e,o=t,d=o;e:for(;d!==null;){switch(d.tag){case 27:if(Sl(d.type)){Pe=d.stateNode,qt=!1;break e}break;case 5:Pe=d.stateNode,qt=!1;break e;case 3:case 4:Pe=d.stateNode.containerInfo,qt=!0;break e}d=d.return}if(Pe===null)throw Error(r(160));U0(s,o,i),Pe=null,qt=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)G0(t,e),t=t.sibling}var pn=null;function G0(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gt(t,e),Vt(e),l&4&&(ml(3,e,e.return),gi(3,e),ml(5,e,e.return));break;case 1:Gt(t,e),Vt(e),l&512&&(gt||n===null||Sn(n,n.return)),l&64&&Gn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var i=pn;if(Gt(t,e),Vt(e),l&512&&(gt||n===null||Sn(n,n.return)),l&4){var s=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":s=i.getElementsByTagName("title")[0],(!s||s[Pn]||s[xt]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(l),i.head.insertBefore(s,i.querySelector("head > title"))),Ct(s,l,n),s[xt]=e,ht(s),l=s;break e;case"link":var o=Vf("link","href",i).get(l+(n.href||""));if(o){for(var d=0;d<o.length;d++)if(s=o[d],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(d,1);break t}}s=i.createElement(l),Ct(s,l,n),i.head.appendChild(s);break;case"meta":if(o=Vf("meta","content",i).get(l+(n.content||""))){for(d=0;d<o.length;d++)if(s=o[d],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(d,1);break t}}s=i.createElement(l),Ct(s,l,n),i.head.appendChild(s);break;default:throw Error(r(468,l))}s[xt]=e,ht(s),l=s}e.stateNode=l}else Yf(i,e.type,e.stateNode);else e.stateNode=Gf(i,l,e.memoizedProps);else s!==l?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,l===null?Yf(i,e.type,e.stateNode):Gf(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ku(e,e.memoizedProps,n.memoizedProps)}break;case 27:Gt(t,e),Vt(e),l&512&&(gt||n===null||Sn(n,n.return)),n!==null&&l&4&&Ku(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Gt(t,e),Vt(e),l&512&&(gt||n===null||Sn(n,n.return)),e.flags&32){i=e.stateNode;try{aa(i,"")}catch(I){Xe(e,e.return,I)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,Ku(e,i,n!==null?n.memoizedProps:i)),l&1024&&(Fu=!0);break;case 6:if(Gt(t,e),Vt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(I){Xe(e,e.return,I)}}break;case 3:if(Ps=null,i=pn,pn=Ws(t.containerInfo),Gt(t,e),pn=i,Vt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Oa(t.containerInfo)}catch(I){Xe(e,e.return,I)}Fu&&(Fu=!1,V0(e));break;case 4:l=pn,pn=Ws(e.stateNode.containerInfo),Gt(t,e),Vt(e),pn=l;break;case 12:Gt(t,e),Vt(e);break;case 31:Gt(t,e),Vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hs(e,l)));break;case 13:Gt(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Bs=se()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hs(e,l)));break;case 22:i=e.memoizedState!==null;var p=n!==null&&n.memoizedState!==null,z=Gn,D=gt;if(Gn=z||i,gt=D||p,Gt(t,e),gt=D,Gn=z,Vt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||p||Gn||gt||Jl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){p=n=t;try{if(s=p.stateNode,i)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{d=p.stateNode;var k=p.memoizedProps.style,M=k!=null&&k.hasOwnProperty("display")?k.display:null;d.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(I){Xe(p,p.return,I)}}}else if(t.tag===6){if(n===null){p=t;try{p.stateNode.nodeValue=i?"":p.memoizedProps}catch(I){Xe(p,p.return,I)}}}else if(t.tag===18){if(n===null){p=t;try{var A=p.stateNode;i?Rf(A,!0):Rf(p.stateNode,!1)}catch(I){Xe(p,p.return,I)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Hs(e,n))));break;case 19:Gt(t,e),Vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hs(e,l)));break;case 30:break;case 21:break;default:Gt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(D0(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode,s=$u(e);ks(e,s,i);break;case 5:var o=n.stateNode;n.flags&32&&(aa(o,""),n.flags&=-33);var d=$u(e);ks(e,d,o);break;case 3:case 4:var p=n.stateNode.containerInfo,z=$u(e);Ju(e,z,p);break;default:throw Error(r(161))}}catch(D){Xe(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function V0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;V0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)k0(e,t.alternate,t),t=t.sibling}function Jl(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),Jl(t);break;case 1:Sn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&_0(t,t.return,n),Jl(t);break;case 27:Ti(t.stateNode);case 26:case 5:Sn(t,t.return),Jl(t);break;case 22:t.memoizedState===null&&Jl(t);break;case 30:Jl(t);break;default:Jl(t)}e=e.sibling}}function Xn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:Xn(i,s,n),gi(4,s);break;case 1:if(Xn(i,s,n),l=s,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(z){Xe(l,l.return,z)}if(l=s,i=l.updateQueue,i!==null){var d=l.stateNode;try{var p=i.shared.hiddenCallbacks;if(p!==null)for(i.shared.hiddenCallbacks=null,i=0;i<p.length;i++)b1(p[i],d)}catch(z){Xe(l,l.return,z)}}n&&o&64&&A0(s),vi(s,s.return);break;case 27:L0(s);case 26:case 5:Xn(i,s,n),n&&l===null&&o&4&&R0(s),vi(s,s.return);break;case 12:Xn(i,s,n);break;case 31:Xn(i,s,n),n&&o&4&&B0(i,s);break;case 13:Xn(i,s,n),n&&o&4&&q0(i,s);break;case 22:s.memoizedState===null&&Xn(i,s,n),vi(s,s.return);break;case 30:break;default:Xn(i,s,n)}t=t.sibling}}function Wu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ai(n))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ai(e))}function yn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Y0(e,t,n,l),t=t.sibling}function Y0(e,t,n,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:yn(e,t,n,l),i&2048&&gi(9,t);break;case 1:yn(e,t,n,l);break;case 3:yn(e,t,n,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ai(e)));break;case 12:if(i&2048){yn(e,t,n,l),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,d=s.onPostCommit;typeof d=="function"&&d(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){Xe(t,t.return,p)}}else yn(e,t,n,l);break;case 31:yn(e,t,n,l);break;case 13:yn(e,t,n,l);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?yn(e,t,n,l):bi(e,t):s._visibility&2?yn(e,t,n,l):(s._visibility|=2,wa(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Wu(o,t);break;case 24:yn(e,t,n,l),i&2048&&Iu(t.alternate,t);break;default:yn(e,t,n,l)}}function wa(e,t,n,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,d=n,p=l,z=o.flags;switch(o.tag){case 0:case 11:case 15:wa(s,o,d,p,i),gi(8,o);break;case 23:break;case 22:var D=o.stateNode;o.memoizedState!==null?D._visibility&2?wa(s,o,d,p,i):bi(s,o):(D._visibility|=2,wa(s,o,d,p,i)),i&&z&2048&&Wu(o.alternate,o);break;case 24:wa(s,o,d,p,i),i&&z&2048&&Iu(o.alternate,o);break;default:wa(s,o,d,p,i)}t=t.sibling}}function bi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,i=l.flags;switch(l.tag){case 22:bi(n,l),i&2048&&Wu(l.alternate,l);break;case 24:bi(n,l),i&2048&&Iu(l.alternate,l);break;default:bi(n,l)}t=t.sibling}}var xi=8192;function Na(e,t,n){if(e.subtreeFlags&xi)for(e=e.child;e!==null;)X0(e,t,n),e=e.sibling}function X0(e,t,n){switch(e.tag){case 26:Na(e,t,n),e.flags&xi&&e.memoizedState!==null&&O3(n,pn,e.memoizedState,e.memoizedProps);break;case 5:Na(e,t,n);break;case 3:case 4:var l=pn;pn=Ws(e.stateNode.containerInfo),Na(e,t,n),pn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=xi,xi=16777216,Na(e,t,n),xi=l):Na(e,t,n));break;default:Na(e,t,n)}}function Q0(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 Si(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Et=l,K0(l,e)}Q0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Z0(e),e=e.sibling}function Z0(e){switch(e.tag){case 0:case 11:case 15:Si(e),e.flags&2048&&ml(9,e,e.return);break;case 3:Si(e);break;case 12:Si(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Us(e)):Si(e);break;default:Si(e)}}function Us(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Et=l,K0(l,e)}Q0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ml(8,t,t.return),Us(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Us(t));break;default:Us(t)}e=e.sibling}}function K0(e,t){for(;Et!==null;){var n=Et;switch(n.tag){case 0:case 11:case 15:ml(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ai(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Et=l;else e:for(n=e;Et!==null;){l=Et;var i=l.sibling,s=l.return;if(H0(l),l===n){Et=null;break e}if(i!==null){i.return=s,Et=i;break e}Et=s}}}var F4={getCacheForType:function(e){var t=Tt(mt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Tt(mt).controller.signal}},W4=typeof WeakMap=="function"?WeakMap:Map,Ve=0,Je=null,Ce=null,Re=0,Ye=0,Jt=null,pl=!1,za=!1,Pu=!1,Qn=0,ct=0,yl=0,Fl=0,eo=0,Ft=0,Ta=0,ji=null,Yt=null,to=!1,Bs=0,$0=0,qs=1/0,Gs=null,gl=null,St=0,vl=null,Ma=null,Zn=0,no=0,lo=null,J0=null,Ei=0,ao=null;function Wt(){return(Ve&2)!==0&&Re!==0?Re&-Re:b.T!==null?ro():Ki()}function F0(){if(Ft===0)if((Re&536870912)===0||Le){var e=zn;zn<<=1,(zn&3932160)===0&&(zn=262144),Ft=e}else Ft=536870912;return e=Kt.current,e!==null&&(e.flags|=32),Ft}function Xt(e,t,n){(e===Je&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(Ca(e,0),bl(e,Re,Ft,!1)),Rl(e,n),((Ve&2)===0||e!==Je)&&(e===Je&&((Ve&2)===0&&(Fl|=n),ct===4&&bl(e,Re,Ft,!1)),jn(e))}function W0(e,t,n){if((Ve&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Cn(e,t),i=l?e3(e,t):so(e,t,!0),s=l;do{if(i===0){za&&!l&&bl(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!I4(n)){i=so(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)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;i=ji;var p=d.current.memoizedState.isDehydrated;if(p&&(Ca(d,o).flags|=256),o=so(d,o,!1),o!==2){if(Pu&&!p){d.errorRecoveryDisabledLanes|=s,Fl|=s,i=4;break e}s=Yt,Yt=i,s!==null&&(Yt===null?Yt=s:Yt.push.apply(Yt,s))}i=o}if(s=!1,i!==2)continue}}if(i===1){Ca(e,0),bl(e,t,0,!0);break}e:{switch(l=e,s=i,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:bl(l,t,Ft,!pl);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(i=Bs+300-se(),10<i)){if(bl(l,t,Ft,!pl),Wn(l,0,!0)!==0)break e;Zn=t,l.timeoutHandle=Cf(I0.bind(null,l,n,Yt,Gs,to,t,Ft,Fl,Ta,pl,s,"Throttled",-0,0),i);break e}I0(l,n,Yt,Gs,to,t,Ft,Fl,Ta,pl,s,null,-0,0)}}break}while(!0);jn(e)}function I0(e,t,n,l,i,s,o,d,p,z,D,k,M,A){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},X0(t,s,k);var I=(s&62914560)===s?Bs-se():(s&4194048)===s?$0-se():0;if(I=k3(k,I),I!==null){Zn=s,e.cancelPendingCommit=I(cf.bind(null,e,t,s,n,l,i,o,d,p,D,k,null,M,A)),bl(e,s,o,!z);return}}cf(e,t,s,n,l,i,o,d,p)}function I4(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],s=i.getSnapshot;i=i.value;try{if(!Qt(s(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 bl(e,t,n,l){t&=~eo,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var s=31-lt(i),o=1<<s;l[s]=-1,i&=~o}n!==0&&Zi(e,n,t)}function Vs(){return(Ve&6)===0?(wi(0),!1):!0}function io(){if(Ce!==null){if(Ye===0)var e=Ce.return;else e=Ce,On=Gl=null,Su(e),ba=null,si=0,e=Ce;for(;e!==null;)C0(e.alternate,e),e=e.return;Ce=null}}function Ca(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,v3(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Zn=0,io(),Je=e,Ce=n=Dn(e.current,null),Re=t,Ye=0,Jt=null,pl=!1,za=Cn(e,t),Pu=!1,Ta=Ft=eo=Fl=yl=ct=0,Yt=ji=null,to=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-lt(l),s=1<<i;t|=e[i],l&=~s}return Qn=t,os(),n}function P0(e,t){Ee=null,b.H=mi,t===va||t===gs?(t=p1(),Ye=3):t===ou?(t=p1(),Ye=4):Ye=t===Hu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Jt=t,Ce===null&&(ct=1,_s(e,nn(t,e.current)))}function ef(){var e=Kt.current;return e===null?!0:(Re&4194048)===Re?cn===null:(Re&62914560)===Re||(Re&536870912)!==0?e===cn:!1}function tf(){var e=b.H;return b.H=mi,e===null?mi:e}function nf(){var e=b.A;return b.A=F4,e}function Ys(){ct=4,pl||(Re&4194048)!==Re&&Kt.current!==null||(za=!0),(yl&134217727)===0&&(Fl&134217727)===0||Je===null||bl(Je,Re,Ft,!1)}function so(e,t,n){var l=Ve;Ve|=2;var i=tf(),s=nf();(Je!==e||Re!==t)&&(Gs=null,Ca(e,t)),t=!1;var o=ct;e:do try{if(Ye!==0&&Ce!==null){var d=Ce,p=Jt;switch(Ye){case 8:io(),o=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(t=!0);var z=Ye;if(Ye=0,Jt=null,Aa(e,d,p,z),n&&za){o=0;break e}break;default:z=Ye,Ye=0,Jt=null,Aa(e,d,p,z)}}P4(),o=ct;break}catch(D){P0(e,D)}while(!0);return t&&e.shellSuspendCounter++,On=Gl=null,Ve=l,b.H=i,b.A=s,Ce===null&&(Je=null,Re=0,os()),o}function P4(){for(;Ce!==null;)lf(Ce)}function e3(e,t){var n=Ve;Ve|=2;var l=tf(),i=nf();Je!==e||Re!==t?(Gs=null,qs=se()+500,Ca(e,t)):za=Cn(e,t);e:do try{if(Ye!==0&&Ce!==null){t=Ce;var s=Jt;t:switch(Ye){case 1:Ye=0,Jt=null,Aa(e,t,s,1);break;case 2:case 9:if(h1(s)){Ye=0,Jt=null,af(t);break}t=function(){Ye!==2&&Ye!==9||Je!==e||(Ye=7),jn(e)},s.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:h1(s)?(Ye=0,Jt=null,af(t)):(Ye=0,Jt=null,Aa(e,t,s,7));break;case 5:var o=null;switch(Ce.tag){case 26:o=Ce.memoizedState;case 5:case 27:var d=Ce;if(o?Xf(o):d.stateNode.complete){Ye=0,Jt=null;var p=d.sibling;if(p!==null)Ce=p;else{var z=d.return;z!==null?(Ce=z,Xs(z)):Ce=null}break t}}Ye=0,Jt=null,Aa(e,t,s,5);break;case 6:Ye=0,Jt=null,Aa(e,t,s,6);break;case 8:io(),ct=6;break e;default:throw Error(r(462))}}t3();break}catch(D){P0(e,D)}while(!0);return On=Gl=null,b.H=l,b.A=i,Ve=n,Ce!==null?0:(Je=null,Re=0,os(),ct)}function t3(){for(;Ce!==null&&!G();)lf(Ce)}function lf(e){var t=T0(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,t===null?Xs(e):Ce=t}function af(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=S0(n,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=S0(n,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Su(t);default:C0(n,t),t=Ce=n1(t,Qn),t=T0(n,t,Qn)}e.memoizedProps=e.pendingProps,t===null?Xs(e):Ce=t}function Aa(e,t,n,l){On=Gl=null,Su(t),ba=null,si=0;var i=t.return;try{if(Y4(e,i,t,n,Re)){ct=1,_s(e,nn(n,e.current)),Ce=null;return}}catch(s){if(i!==null)throw Ce=i,s;ct=1,_s(e,nn(n,e.current)),Ce=null;return}t.flags&32768?(Le||l===1?e=!0:za||(Re&536870912)!==0?e=!1:(pl=e=!0,(l===2||l===9||l===3||l===6)&&(l=Kt.current,l!==null&&l.tag===13&&(l.flags|=16384))),sf(t,e)):Xs(t)}function Xs(e){var t=e;do{if((t.flags&32768)!==0){sf(t,pl);return}e=t.return;var n=Z4(t.alternate,t,Qn);if(n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);ct===0&&(ct=5)}function sf(e,t){do{var n=K4(e.alternate,e);if(n!==null){n.flags&=32767,Ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=n}while(e!==null);ct=6,Ce=null}function cf(e,t,n,l,i,s,o,d,p){e.cancelPendingCommit=null;do Qs();while(St!==0);if((Ve&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=$c,Ga(e,n,s,o,d,p),e===Je&&(Ce=Je=null,Re=0),Ma=t,vl=e,Zn=n,no=s,lo=i,J0=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,i3(Ie,function(){return df(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=b.T,b.T=null,i=H.p,H.p=2,o=Ve,Ve|=4;try{$4(e,t,n)}finally{Ve=o,H.p=i,b.T=l}}St=1,uf(),of(),rf()}}function uf(){if(St===1){St=0;var e=vl,t=Ma,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=b.T,b.T=null;var l=H.p;H.p=2;var i=Ve;Ve|=4;try{G0(t,e);var s=bo,o=Kr(e.containerInfo),d=s.focusedElem,p=s.selectionRange;if(o!==d&&d&&d.ownerDocument&&Zr(d.ownerDocument.documentElement,d)){if(p!==null&&Yc(d)){var z=p.start,D=p.end;if(D===void 0&&(D=z),"selectionStart"in d)d.selectionStart=z,d.selectionEnd=Math.min(D,d.value.length);else{var k=d.ownerDocument||document,M=k&&k.defaultView||window;if(M.getSelection){var A=M.getSelection(),I=d.textContent.length,he=Math.min(p.start,I),Ke=p.end===void 0?he:Math.min(p.end,I);!A.extend&&he>Ke&&(o=Ke,Ke=he,he=o);var x=Qr(d,he),v=Qr(d,Ke);if(x&&v&&(A.rangeCount!==1||A.anchorNode!==x.node||A.anchorOffset!==x.offset||A.focusNode!==v.node||A.focusOffset!==v.offset)){var w=k.createRange();w.setStart(x.node,x.offset),A.removeAllRanges(),he>Ke?(A.addRange(w),A.extend(v.node,v.offset)):(w.setEnd(v.node,v.offset),A.addRange(w))}}}}for(k=[],A=d;A=A.parentNode;)A.nodeType===1&&k.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<k.length;d++){var O=k[d];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}lc=!!vo,bo=vo=null}finally{Ve=i,H.p=l,b.T=n}}e.current=t,St=2}}function of(){if(St===2){St=0;var e=vl,t=Ma,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=b.T,b.T=null;var l=H.p;H.p=2;var i=Ve;Ve|=4;try{k0(e,t.alternate,t)}finally{Ve=i,H.p=l,b.T=n}}St=3}}function rf(){if(St===4||St===3){St=0,ne();var e=vl,t=Ma,n=Zn,l=J0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?St=5:(St=0,Ma=vl=null,ff(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(gl=null),na(n),t=t.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Ht,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=b.T,i=H.p,H.p=2,b.T=null;try{for(var s=e.onRecoverableError,o=0;o<l.length;o++){var d=l[o];s(d.value,{componentStack:d.stack})}}finally{b.T=t,H.p=i}}(Zn&3)!==0&&Qs(),jn(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===ao?Ei++:(Ei=0,ao=e):Ei=0,wi(0)}}function ff(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ai(t)))}function Qs(){return uf(),of(),rf(),df()}function df(){if(St!==5)return!1;var e=vl,t=no;no=0;var n=na(Zn),l=b.T,i=H.p;try{H.p=32>n?32:n,b.T=null,n=lo,lo=null;var s=vl,o=Zn;if(St=0,Ma=vl=null,Zn=0,(Ve&6)!==0)throw Error(r(331));var d=Ve;if(Ve|=4,Z0(s.current),Y0(s,s.current,o,n),Ve=d,wi(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Ht,s)}catch{}return!0}finally{H.p=i,b.T=l,ff(e,t)}}function hf(e,t,n){t=nn(n,t),t=ku(e.stateNode,t,2),e=fl(e,t,2),e!==null&&(Rl(e,2),jn(e))}function Xe(e,t,n){if(e.tag===3)hf(e,e,n);else for(;t!==null;){if(t.tag===3){hf(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(gl===null||!gl.has(l))){e=nn(n,e),n=h0(2),l=fl(t,n,2),l!==null&&(m0(n,l,t,e),Rl(l,2),jn(l));break}}t=t.return}}function co(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new W4;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(n)||(Pu=!0,i.add(n),e=n3.bind(null,e,t,n),t.then(e,e))}function n3(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Je===e&&(Re&n)===n&&(ct===4||ct===3&&(Re&62914560)===Re&&300>se()-Bs?(Ve&2)===0&&Ca(e,0):eo|=n,Ta===Re&&(Ta=0)),jn(e)}function mf(e,t){t===0&&(t=Qi()),e=Ul(e,t),e!==null&&(Rl(e,t),jn(e))}function l3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mf(e,n)}function a3(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),mf(e,n)}function i3(e,t){return jt(e,t)}var Zs=null,_a=null,uo=!1,Ks=!1,oo=!1,xl=0;function jn(e){e!==_a&&e.next===null&&(_a===null?Zs=_a=e:_a=_a.next=e),Ks=!0,uo||(uo=!0,c3())}function wi(e,t){if(!oo&&Ks){oo=!0;do for(var n=!1,l=Zs;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var s=0;else{var o=l.suspendedLanes,d=l.pingedLanes;s=(1<<31-lt(42|e)+1)-1,s&=i&~(o&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,vf(l,s))}else s=Re,s=Wn(l,l===Je?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||Cn(l,s)||(n=!0,vf(l,s));l=l.next}while(n);oo=!1}}function s3(){pf()}function pf(){Ks=uo=!1;var e=0;xl!==0&&g3()&&(e=xl);for(var t=se(),n=null,l=Zs;l!==null;){var i=l.next,s=yf(l,t);s===0?(l.next=null,n===null?Zs=i:n.next=i,i===null&&(_a=n)):(n=l,(e!==0||(s&3)!==0)&&(Ks=!0)),l=i}St!==0&&St!==5||wi(e),xl!==0&&(xl=0)}function yf(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-lt(s),d=1<<o,p=i[o];p===-1?((d&n)===0||(d&l)!==0)&&(i[o]=Xi(d,t)):p<=t&&(e.expiredLanes|=d),s&=~d}if(t=Je,n=Re,n=Wn(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Fn(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Cn(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Fn(l),na(n)){case 2:case 8:n=it;break;case 32:n=Ie;break;case 268435456:n=kt;break;default:n=Ie}return l=gf.bind(null,e),n=jt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Fn(l),e.callbackPriority=2,e.callbackNode=null,2}function gf(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Qs()&&e.callbackNode!==n)return null;var l=Re;return l=Wn(e,e===Je?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(W0(e,l,t),yf(e,se()),e.callbackNode!=null&&e.callbackNode===n?gf.bind(null,e):null)}function vf(e,t){if(Qs())return null;W0(e,t,!0)}function c3(){b3(function(){(Ve&6)!==0?jt(be,s3):pf()})}function ro(){if(xl===0){var e=ya;e===0&&(e=_t,_t<<=1,(_t&261888)===0&&(_t=256)),xl=e}return xl}function bf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ts(""+e)}function xf(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function u3(e,t,n,l,i){if(t==="submit"&&n&&n.stateNode===i){var s=bf((i[Rt]||null).action),o=l.submitter;o&&(t=(t=o[Rt]||null)?bf(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var d=new is("action","action",null,l,i);e.push({event:d,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xl!==0){var p=o?xf(i,o):new FormData(i);Au(n,{pending:!0,data:p,method:i.method,action:s},null,p)}}else typeof s=="function"&&(d.preventDefault(),p=o?xf(i,o):new FormData(i),Au(n,{pending:!0,data:p,method:i.method,action:s},s,p))},currentTarget:i}]})}}for(var fo=0;fo<Kc.length;fo++){var ho=Kc[fo],o3=ho.toLowerCase(),r3=ho[0].toUpperCase()+ho.slice(1);mn(o3,"on"+r3)}mn(Fr,"onAnimationEnd"),mn(Wr,"onAnimationIteration"),mn(Ir,"onAnimationStart"),mn("dblclick","onDoubleClick"),mn("focusin","onFocus"),mn("focusout","onBlur"),mn(z4,"onTransitionRun"),mn(T4,"onTransitionStart"),mn(M4,"onTransitionCancel"),mn(Pr,"onTransitionEnd"),ll("onMouseEnter",["mouseout","mouseover"]),ll("onMouseLeave",["mouseout","mouseover"]),ll("onPointerEnter",["pointerout","pointerover"]),ll("onPointerLeave",["pointerout","pointerover"]),An("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),An("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),An("onBeforeInput",["compositionend","keypress","textInput","paste"]),An("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),An("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),An("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ni="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(" "),f3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ni));function Sf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],i=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var o=l.length-1;0<=o;o--){var d=l[o],p=d.instance,z=d.currentTarget;if(d=d.listener,p!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=z;try{s(i)}catch(D){us(D)}i.currentTarget=null,s=p}else for(o=0;o<l.length;o++){if(d=l[o],p=d.instance,z=d.currentTarget,d=d.listener,p!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=z;try{s(i)}catch(D){us(D)}i.currentTarget=null,s=p}}}}function Ae(e,t){var n=t[Xa];n===void 0&&(n=t[Xa]=new Set);var l=e+"__bubble";n.has(l)||(jf(t,e,2,!1),n.add(l))}function mo(e,t,n){var l=0;t&&(l|=4),jf(n,e,l,t)}var $s="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[$s]){e[$s]=!0,Ji.forEach(function(n){n!=="selectionchange"&&(f3.has(n)||mo(n,!1,e),mo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$s]||(t[$s]=!0,mo("selectionchange",!1,t))}}function jf(e,t,n,l){switch(Wf(t)){case 2:var i=B3;break;case 8:i=q3;break;default:i=Ao}n=i.bind(null,t,n,e),i=void 0,!Lc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function yo(e,t,n,l,i){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var d=l.stateNode.containerInfo;if(d===i)break;if(o===4)for(o=l.return;o!==null;){var p=o.tag;if((p===3||p===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;d!==null;){if(o=el(d),o===null)return;if(p=o.tag,p===5||p===6||p===26||p===27){l=s=o;continue e}d=d.parentNode}}l=l.return}zr(function(){var z=s,D=Rc(n),k=[];e:{var M=e1.get(e);if(M!==void 0){var A=is,I=e;switch(e){case"keypress":if(ls(n)===0)break e;case"keydown":case"keyup":A=a4;break;case"focusin":I="focus",A=Uc;break;case"focusout":I="blur",A=Uc;break;case"beforeblur":case"afterblur":A=Uc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Cr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Z2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=c4;break;case Fr:case Wr:case Ir:A=J2;break;case Pr:A=o4;break;case"scroll":case"scrollend":A=X2;break;case"wheel":A=f4;break;case"copy":case"cut":case"paste":A=W2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=_r;break;case"toggle":case"beforetoggle":A=h4}var he=(t&4)!==0,Ke=!he&&(e==="scroll"||e==="scrollend"),x=he?M!==null?M+"Capture":null:M;he=[];for(var v=z,w;v!==null;){var O=v;if(w=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||w===null||x===null||(O=Ka(v,x),O!=null&&he.push(zi(v,O,w))),Ke)break;v=v.return}0<he.length&&(M=new A(M,I,null,n,D),k.push({event:M,listeners:he}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",M&&n!==_c&&(I=n.relatedTarget||n.fromElement)&&(el(I)||I[In]))break e;if((A||M)&&(M=D.window===D?D:(M=D.ownerDocument)?M.defaultView||M.parentWindow:window,A?(I=n.relatedTarget||n.toElement,A=z,I=I?el(I):null,I!==null&&(Ke=m(I),he=I.tag,I!==Ke||he!==5&&he!==27&&he!==6)&&(I=null)):(A=null,I=z),A!==I)){if(he=Cr,O="onMouseLeave",x="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(he=_r,O="onPointerLeave",x="onPointerEnter",v="pointer"),Ke=A==null?M:Ll(A),w=I==null?M:Ll(I),M=new he(O,v+"leave",A,n,D),M.target=Ke,M.relatedTarget=w,O=null,el(D)===z&&(he=new he(x,v+"enter",I,n,D),he.target=w,he.relatedTarget=Ke,O=he),Ke=O,A&&I)t:{for(he=d3,x=A,v=I,w=0,O=x;O;O=he(O))w++;O=0;for(var ce=v;ce;ce=he(ce))O++;for(;0<w-O;)x=he(x),w--;for(;0<O-w;)v=he(v),O--;for(;w--;){if(x===v||v!==null&&x===v.alternate){he=x;break t}x=he(x),v=he(v)}he=null}else he=null;A!==null&&Ef(k,M,A,he,!1),I!==null&&Ke!==null&&Ef(k,Ke,I,he,!0)}}e:{if(M=z?Ll(z):window,A=M.nodeName&&M.nodeName.toLowerCase(),A==="select"||A==="input"&&M.type==="file")var Be=Br;else if(Hr(M))if(qr)Be=E4;else{Be=S4;var ie=x4}else A=M.nodeName,!A||A.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?z&&Ac(z.elementType)&&(Be=Br):Be=j4;if(Be&&(Be=Be(e,z))){Ur(k,Be,n,D);break e}ie&&ie(e,M,z),e==="focusout"&&z&&M.type==="number"&&z.memoizedProps.value!=null&&Cc(M,"number",M.value)}switch(ie=z?Ll(z):window,e){case"focusin":(Hr(ie)||ie.contentEditable==="true")&&(ua=ie,Xc=z,ti=null);break;case"focusout":ti=Xc=ua=null;break;case"mousedown":Qc=!0;break;case"contextmenu":case"mouseup":case"dragend":Qc=!1,$r(k,n,D);break;case"selectionchange":if(N4)break;case"keydown":case"keyup":$r(k,n,D)}var Te;if(qc)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else ca?Or(e,n)&&(De="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(De="onCompositionStart");De&&(Rr&&n.locale!=="ko"&&(ca||De!=="onCompositionStart"?De==="onCompositionEnd"&&ca&&(Te=Tr()):(al=D,Oc="value"in al?al.value:al.textContent,ca=!0)),ie=Js(z,De),0<ie.length&&(De=new Ar(De,e,null,n,D),k.push({event:De,listeners:ie}),Te?De.data=Te:(Te=kr(n),Te!==null&&(De.data=Te)))),(Te=p4?y4(e,n):g4(e,n))&&(De=Js(z,"onBeforeInput"),0<De.length&&(ie=new Ar("onBeforeInput","beforeinput",null,n,D),k.push({event:ie,listeners:De}),ie.data=Te)),u3(k,e,z,n,D)}Sf(k,t)})}function zi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Js(e,t){for(var n=t+"Capture",l=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=Ka(e,n),i!=null&&l.unshift(zi(e,i,s)),i=Ka(e,t),i!=null&&l.push(zi(e,i,s))),e.tag===3)return l;e=e.return}return[]}function d3(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ef(e,t,n,l,i){for(var s=t._reactName,o=[];n!==null&&n!==l;){var d=n,p=d.alternate,z=d.stateNode;if(d=d.tag,p!==null&&p===l)break;d!==5&&d!==26&&d!==27||z===null||(p=z,i?(z=Ka(n,s),z!=null&&o.unshift(zi(n,z,p))):i||(z=Ka(n,s),z!=null&&o.push(zi(n,z,p)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var h3=/\r\n?/g,m3=/\u0000|\uFFFD/g;function wf(e){return(typeof e=="string"?e:""+e).replace(h3,`
49
+ `).replace(m3,"")}function Nf(e,t){return t=wf(t),wf(e)===t}function Ze(e,t,n,l,i,s){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||aa(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&aa(e,""+l);break;case"className":J(e,"class",l);break;case"tabIndex":J(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":J(e,n,l);break;case"style":wr(e,l,s);break;case"data":if(t!=="object"){J(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ts(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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 s=="function"&&(n==="formAction"?(t!=="input"&&Ze(e,t,"name",i.name,i,null),Ze(e,t,"formEncType",i.formEncType,i,null),Ze(e,t,"formMethod",i.formMethod,i,null),Ze(e,t,"formTarget",i.formTarget,i,null)):(Ze(e,t,"encType",i.encType,i,null),Ze(e,t,"method",i.method,i,null),Ze(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ts(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=_n);break;case"onScroll":l!=null&&Ae("scroll",e);break;case"onScrollEnd":l!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=ts(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),R(e,"popover",l);break;case"xlinkActuate":le(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":le(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":le(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":le(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":le(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":le(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":le(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":le(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":le(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":R(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=V2.get(n)||n,R(e,n,l))}}function go(e,t,n,l,i,s){switch(n){case"style":wr(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?aa(e,l):(typeof l=="number"||typeof l=="bigint")&&aa(e,""+l);break;case"onScroll":l!=null&&Ae("scroll",e);break;case"onScrollEnd":l!=null&&Ae("scrollend",e);break;case"onClick":l!=null&&(e.onclick=_n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fi.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),s=e[Rt]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof l=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,i);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):R(e,n,l)}}}function Ct(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var l=!1,i=!1,s;for(s in n)if(n.hasOwnProperty(s)){var o=n[s];if(o!=null)switch(s){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ze(e,t,s,o,n,null)}}i&&Ze(e,t,"srcSet",n.srcSet,n,null),l&&Ze(e,t,"src",n.src,n,null);return;case"input":Ae("invalid",e);var d=s=o=i=null,p=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var D=n[l];if(D!=null)switch(l){case"name":i=D;break;case"type":o=D;break;case"checked":p=D;break;case"defaultChecked":z=D;break;case"value":s=D;break;case"defaultValue":d=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:Ze(e,t,l,D,n,null)}}xr(e,s,d,p,z,o,i,!1);return;case"select":Ae("invalid",e),l=o=s=null;for(i in n)if(n.hasOwnProperty(i)&&(d=n[i],d!=null))switch(i){case"value":s=d;break;case"defaultValue":o=d;break;case"multiple":l=d;default:Ze(e,t,i,d,n,null)}t=s,n=o,e.multiple=!!l,t!=null?la(e,!!l,t,!1):n!=null&&la(e,!!l,n,!0);return;case"textarea":Ae("invalid",e),s=i=l=null;for(o in n)if(n.hasOwnProperty(o)&&(d=n[o],d!=null))switch(o){case"value":l=d;break;case"defaultValue":i=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:Ze(e,t,o,d,n,null)}jr(e,l,i,s);return;case"option":for(p in n)if(n.hasOwnProperty(p)&&(l=n[p],l!=null))switch(p){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ze(e,t,p,l,n,null)}return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(l=0;l<Ni.length;l++)Ae(Ni[l],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("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(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ze(e,t,z,l,n,null)}return;default:if(Ac(t)){for(D in n)n.hasOwnProperty(D)&&(l=n[D],l!==void 0&&go(e,t,D,l,n,void 0));return}}for(d in n)n.hasOwnProperty(d)&&(l=n[d],l!=null&&Ze(e,t,d,l,n,null))}function p3(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,o=null,d=null,p=null,z=null,D=null;for(A in n){var k=n[A];if(n.hasOwnProperty(A)&&k!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":p=k;default:l.hasOwnProperty(A)||Ze(e,t,A,null,l,k)}}for(var M in l){var A=l[M];if(k=n[M],l.hasOwnProperty(M)&&(A!=null||k!=null))switch(M){case"type":s=A;break;case"name":i=A;break;case"checked":z=A;break;case"defaultChecked":D=A;break;case"value":o=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:A!==k&&Ze(e,t,M,A,l,k)}}Mc(e,o,d,p,z,D,s,i);return;case"select":A=o=d=M=null;for(s in n)if(p=n[s],n.hasOwnProperty(s)&&p!=null)switch(s){case"value":break;case"multiple":A=p;default:l.hasOwnProperty(s)||Ze(e,t,s,null,l,p)}for(i in l)if(s=l[i],p=n[i],l.hasOwnProperty(i)&&(s!=null||p!=null))switch(i){case"value":M=s;break;case"defaultValue":d=s;break;case"multiple":o=s;default:s!==p&&Ze(e,t,i,s,l,p)}t=d,n=o,l=A,M!=null?la(e,!!n,M,!1):!!l!=!!n&&(t!=null?la(e,!!n,t,!0):la(e,!!n,n?[]:"",!1));return;case"textarea":A=M=null;for(d in n)if(i=n[d],n.hasOwnProperty(d)&&i!=null&&!l.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ze(e,t,d,null,l,i)}for(o in l)if(i=l[o],s=n[o],l.hasOwnProperty(o)&&(i!=null||s!=null))switch(o){case"value":M=i;break;case"defaultValue":A=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(r(91));break;default:i!==s&&Ze(e,t,o,i,l,s)}Sr(e,M,A);return;case"option":for(var I in n)if(M=n[I],n.hasOwnProperty(I)&&M!=null&&!l.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:Ze(e,t,I,null,l,M)}for(p in l)if(M=l[p],A=n[p],l.hasOwnProperty(p)&&M!==A&&(M!=null||A!=null))switch(p){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:Ze(e,t,p,M,l,A)}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 he in n)M=n[he],n.hasOwnProperty(he)&&M!=null&&!l.hasOwnProperty(he)&&Ze(e,t,he,null,l,M);for(z in l)if(M=l[z],A=n[z],l.hasOwnProperty(z)&&M!==A&&(M!=null||A!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:Ze(e,t,z,M,l,A)}return;default:if(Ac(t)){for(var Ke in n)M=n[Ke],n.hasOwnProperty(Ke)&&M!==void 0&&!l.hasOwnProperty(Ke)&&go(e,t,Ke,void 0,l,M);for(D in l)M=l[D],A=n[D],!l.hasOwnProperty(D)||M===A||M===void 0&&A===void 0||go(e,t,D,M,l,A);return}}for(var x in n)M=n[x],n.hasOwnProperty(x)&&M!=null&&!l.hasOwnProperty(x)&&Ze(e,t,x,null,l,M);for(k in l)M=l[k],A=n[k],!l.hasOwnProperty(k)||M===A||M==null&&A==null||Ze(e,t,k,M,l,A)}function zf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function y3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],s=i.transferSize,o=i.initiatorType,d=i.duration;if(s&&d&&zf(o)){for(o=0,d=i.responseEnd,l+=1;l<n.length;l++){var p=n[l],z=p.startTime;if(z>d)break;var D=p.transferSize,k=p.initiatorType;D&&zf(k)&&(p=p.responseEnd,o+=D*(p<d?1:(d-z)/(p-z)))}if(--l,t+=8*(s+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var vo=null,bo=null;function Fs(e){return e.nodeType===9?e:e.ownerDocument}function Tf(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 Mf(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 xo(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 So=null;function g3(){var e=window.event;return e&&e.type==="popstate"?e===So?!1:(So=e,!0):(So=null,!1)}var Cf=typeof setTimeout=="function"?setTimeout:void 0,v3=typeof clearTimeout=="function"?clearTimeout:void 0,Af=typeof Promise=="function"?Promise:void 0,b3=typeof queueMicrotask=="function"?queueMicrotask:typeof Af<"u"?function(e){return Af.resolve(null).then(e).catch(x3)}:Cf;function x3(e){setTimeout(function(){throw e})}function Sl(e){return e==="head"}function _f(e,t){var n=t,l=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(i),Oa(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ti(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ti(n);for(var s=n.firstChild;s;){var o=s.nextSibling,d=s.nodeName;s[Pn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=o}}else n==="body"&&Ti(e.ownerDocument.body);n=i}while(n);Oa(t)}function Rf(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function jo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":jo(n),Qa(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function S3(e,t,n,l){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Pn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=un(e.nextSibling),e===null)break}return null}function j3(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=un(e.nextSibling),e===null))return null;return e}function Df(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=un(e.nextSibling),e===null))return null;return e}function Eo(e){return e.data==="$?"||e.data==="$~"}function wo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function E3(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function un(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==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var No=null;function Lf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return un(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Of(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function kf(e,t,n){switch(t=Fs(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ti(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qa(e)}var on=new Map,Hf=new Set;function Ws(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kn=H.d;H.d={f:w3,r:N3,D:z3,C:T3,L:M3,m:C3,X:_3,S:A3,M:R3};function w3(){var e=Kn.f(),t=Vs();return e||t}function N3(e){var t=tl(e);t!==null&&t.tag===5&&t.type==="form"?P1(t):Kn.r(e)}var Ra=typeof document>"u"?null:document;function Uf(e,t,n){var l=Ra;if(l&&typeof t=="string"&&t){var i=en(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Hf.has(i)||(Hf.add(i),e={rel:e,crossOrigin:n,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),Ct(t,"link",e),ht(t),l.head.appendChild(t)))}}function z3(e){Kn.D(e),Uf("dns-prefetch",e,null)}function T3(e,t){Kn.C(e,t),Uf("preconnect",e,t)}function M3(e,t,n){Kn.L(e,t,n);var l=Ra;if(l&&e&&t){var i='link[rel="preload"][as="'+en(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+en(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+en(n.imageSizes)+'"]')):i+='[href="'+en(e)+'"]';var s=i;switch(t){case"style":s=Da(e);break;case"script":s=La(e)}on.has(s)||(e=L({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),on.set(s,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Mi(s))||t==="script"&&l.querySelector(Ci(s))||(t=l.createElement("link"),Ct(t,"link",e),ht(t),l.head.appendChild(t)))}}function C3(e,t){Kn.m(e,t);var n=Ra;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+en(l)+'"][href="'+en(e)+'"]',s=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=La(e)}if(!on.has(s)&&(e=L({rel:"modulepreload",href:e},t),on.set(s,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ci(s)))return}l=n.createElement("link"),Ct(l,"link",e),ht(l),n.head.appendChild(l)}}}function A3(e,t,n){Kn.S(e,t,n);var l=Ra;if(l&&e){var i=nl(l).hoistableStyles,s=Da(e);t=t||"default";var o=i.get(s);if(!o){var d={loading:0,preload:null};if(o=l.querySelector(Mi(s)))d.loading=5;else{e=L({rel:"stylesheet",href:e,"data-precedence":t},n),(n=on.get(s))&&zo(e,n);var p=o=l.createElement("link");ht(p),Ct(p,"link",e),p._p=new Promise(function(z,D){p.onload=z,p.onerror=D}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Is(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:d},i.set(s,o)}}}function _3(e,t){Kn.X(e,t);var n=Ra;if(n&&e){var l=nl(n).hoistableScripts,i=La(e),s=l.get(i);s||(s=n.querySelector(Ci(i)),s||(e=L({src:e,async:!0},t),(t=on.get(i))&&To(e,t),s=n.createElement("script"),ht(s),Ct(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function R3(e,t){Kn.M(e,t);var n=Ra;if(n&&e){var l=nl(n).hoistableScripts,i=La(e),s=l.get(i);s||(s=n.querySelector(Ci(i)),s||(e=L({src:e,async:!0,type:"module"},t),(t=on.get(i))&&To(e,t),s=n.createElement("script"),ht(s),Ct(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function Bf(e,t,n,l){var i=(i=Y.current)?Ws(i):null;if(!i)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Da(n.href),n=nl(i).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Da(n.href);var s=nl(i).hoistableStyles,o=s.get(e);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=i.querySelector(Mi(e)))&&!s._p&&(o.instance=s,o.state.loading=5),on.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},on.set(e,n),s||D3(i,e,n,o.state))),t&&l===null)throw Error(r(528,""));return o}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=La(n),n=nl(i).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Da(e){return'href="'+en(e)+'"'}function Mi(e){return'link[rel="stylesheet"]['+e+"]"}function qf(e){return L({},e,{"data-precedence":e.precedence,precedence:null})}function D3(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Ct(t,"link",n),ht(t),e.head.appendChild(t))}function La(e){return'[src="'+en(e)+'"]'}function Ci(e){return"script[async]"+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+en(n.href)+'"]');if(l)return t.instance=l,ht(l),l;var i=L({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ht(l),Ct(l,"style",i),Is(l,n.precedence,e),t.instance=l;case"stylesheet":i=Da(n.href);var s=e.querySelector(Mi(i));if(s)return t.state.loading|=4,t.instance=s,ht(s),s;l=qf(n),(i=on.get(i))&&zo(l,i),s=(e.ownerDocument||e).createElement("link"),ht(s);var o=s;return o._p=new Promise(function(d,p){o.onload=d,o.onerror=p}),Ct(s,"link",l),t.state.loading|=4,Is(s,n.precedence,e),t.instance=s;case"script":return s=La(n.src),(i=e.querySelector(Ci(s)))?(t.instance=i,ht(i),i):(l=n,(i=on.get(s))&&(l=L({},n),To(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),ht(i),Ct(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Is(l,n.precedence,e));return t.instance}function Is(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,s=i,o=0;o<l.length;o++){var d=l[o];if(d.dataset.precedence===t)s=d;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function To(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ps=null;function Vf(e,t,n){if(Ps===null){var l=new Map,i=Ps=new Map;i.set(n,l)}else i=Ps,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var s=n[i];if(!(s[Pn]||s[xt]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var d=l.get(o);d?d.push(s):l.set(o,[s])}}return l}function Yf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function L3(e,t,n){if(n===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 Xf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function O3(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Da(l.href),s=t.querySelector(Mi(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ec.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,ht(s);return}s=t.ownerDocument||t,l=qf(l),(i=on.get(i))&&zo(l,i),s=s.createElement("link"),ht(s);var o=s;o._p=new Promise(function(d,p){o.onload=d,o.onerror=p}),Ct(s,"link",l),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ec.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Mo=0;function k3(e,t){return e.stylesheets&&e.count===0&&nc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&nc(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Mo===0&&(Mo=62500*y3());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&nc(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Mo?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function ec(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tc=null;function nc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tc=new Map,t.forEach(H3,e),tc=null,ec.call(e))}function H3(e,t){if(!(t.state.loading&4)){var n=tc.get(e);if(n)var l=n.get(null);else{n=new Map,tc.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var o=i[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),l=o)}l&&n.set(null,l)}i=t.instance,o=i.getAttribute("data-precedence"),s=n.get(o)||l,s===l&&n.set(null,i),n.set(o,i),this.count++,l=ec.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ai={$$typeof:ue,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function U3(e,t,n,l,i,s,o,d,p){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=qa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qa(0),this.hiddenUpdates=qa(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function Qf(e,t,n,l,i,s,o,d,p,z,D,k){return e=new U3(e,t,n,o,p,z,D,k,d),t=1,s===!0&&(t|=24),s=Zt(3,null,null,t),e.current=s,s.stateNode=e,t=su(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},ru(s),e}function Zf(e){return e?(e=fa,e):fa}function Kf(e,t,n,l,i,s){i=Zf(i),l.context===null?l.context=i:l.pendingContext=i,l=rl(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=fl(e,l,t),n!==null&&(Xt(n,e,t),ui(n,e,t))}function $f(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Co(e,t){$f(e,t),(e=e.alternate)&&$f(e,t)}function Jf(e){if(e.tag===13||e.tag===31){var t=Ul(e,67108864);t!==null&&Xt(t,e,67108864),Co(e,67108864)}}function Ff(e){if(e.tag===13||e.tag===31){var t=Wt();t=Va(t);var n=Ul(e,t);n!==null&&Xt(n,e,t),Co(e,t)}}var lc=!0;function B3(e,t,n,l){var i=b.T;b.T=null;var s=H.p;try{H.p=2,Ao(e,t,n,l)}finally{H.p=s,b.T=i}}function q3(e,t,n,l){var i=b.T;b.T=null;var s=H.p;try{H.p=8,Ao(e,t,n,l)}finally{H.p=s,b.T=i}}function Ao(e,t,n,l){if(lc){var i=_o(l);if(i===null)yo(e,t,l,ac,n),If(e,l);else if(V3(i,e,t,n,l))l.stopPropagation();else if(If(e,l),t&4&&-1<G3.indexOf(e)){for(;i!==null;){var s=tl(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=Mn(s.pendingLanes);if(o!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;o;){var p=1<<31-lt(o);d.entanglements[1]|=p,o&=~p}jn(s),(Ve&6)===0&&(qs=se()+500,wi(0))}}break;case 31:case 13:d=Ul(s,2),d!==null&&Xt(d,s,2),Vs(),Co(s,2)}if(s=_o(l),s===null&&yo(e,t,l,ac,n),s===i)break;i=s}i!==null&&l.stopPropagation()}else yo(e,t,l,null,n)}}function _o(e){return e=Rc(e),Ro(e)}var ac=null;function Ro(e){if(ac=null,e=el(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=S(t),e!==null)return e;e=null}else if(n===31){if(e=T(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ac=e,null}function Wf(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(oe()){case be:return 2;case it:return 8;case Ie:case bt:return 32;case kt:return 268435456;default:return 32}default:return 32}}var Do=!1,jl=null,El=null,wl=null,_i=new Map,Ri=new Map,Nl=[],G3="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 If(e,t){switch(e){case"focusin":case"focusout":jl=null;break;case"dragenter":case"dragleave":El=null;break;case"mouseover":case"mouseout":wl=null;break;case"pointerover":case"pointerout":_i.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ri.delete(t.pointerId)}}function Di(e,t,n,l,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[i]},t!==null&&(t=tl(t),t!==null&&Jf(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function V3(e,t,n,l,i){switch(t){case"focusin":return jl=Di(jl,e,t,n,l,i),!0;case"dragenter":return El=Di(El,e,t,n,l,i),!0;case"mouseover":return wl=Di(wl,e,t,n,l,i),!0;case"pointerover":var s=i.pointerId;return _i.set(s,Di(_i.get(s)||null,e,t,n,l,i)),!0;case"gotpointercapture":return s=i.pointerId,Ri.set(s,Di(Ri.get(s)||null,e,t,n,l,i)),!0}return!1}function Pf(e){var t=el(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=S(n),t!==null){e.blockedOn=t,Ya(e.priority,function(){Ff(n)});return}}else if(t===31){if(t=T(n),t!==null){e.blockedOn=t,Ya(e.priority,function(){Ff(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ic(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_o(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);_c=l,n.target.dispatchEvent(l),_c=null}else return t=tl(n),t!==null&&Jf(t),e.blockedOn=n,!1;t.shift()}return!0}function ed(e,t,n){ic(e)&&n.delete(t)}function Y3(){Do=!1,jl!==null&&ic(jl)&&(jl=null),El!==null&&ic(El)&&(El=null),wl!==null&&ic(wl)&&(wl=null),_i.forEach(ed),Ri.forEach(ed)}function sc(e,t){e.blockedOn===t&&(e.blockedOn=null,Do||(Do=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Y3)))}var cc=null;function td(e){cc!==e&&(cc=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){cc===e&&(cc=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Ro(l||n)===null)continue;break}var s=tl(n);s!==null&&(e.splice(t,3),t-=3,Au(s,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function Oa(e){function t(p){return sc(p,e)}jl!==null&&sc(jl,e),El!==null&&sc(El,e),wl!==null&&sc(wl,e),_i.forEach(t),Ri.forEach(t);for(var n=0;n<Nl.length;n++){var l=Nl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Nl.length&&(n=Nl[0],n.blockedOn===null);)Pf(n),n.blockedOn===null&&Nl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],s=n[l+1],o=i[Rt]||null;if(typeof s=="function")o||td(n);else if(o){var d=null;if(s&&s.hasAttribute("formAction")){if(i=s,o=s[Rt]||null)d=o.formAction;else if(Ro(i)!==null)continue}else d=o.action;typeof d=="function"?n[l+1]=d:(n.splice(l,3),l-=3),td(n)}}}function nd(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Lo(e){this._internalRoot=e}uc.prototype.render=Lo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=Wt();Kf(n,l,e,t,null,null)},uc.prototype.unmount=Lo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kf(e.current,2,null,e,null,null),Vs(),t[In]=null}};function uc(e){this._internalRoot=e}uc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ki();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nl.length&&t!==0&&t<Nl[n].priority;n++);Nl.splice(n,0,e),n===0&&Pf(e)}};var ld=u.version;if(ld!=="19.2.6")throw Error(r(527,ld,"19.2.6"));H.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var X3={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:b,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{Ht=oc.inject(X3),dt=oc}catch{}}return Oi.createRoot=function(e,t){if(!h(e))throw Error(r(299));var n=!1,l="",i=o0,s=r0,o=f0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Qf(e,1,!1,null,null,n,l,null,i,s,o,nd),e[In]=t.current,po(e),new Lo(t)},Oi.hydrateRoot=function(e,t,n){if(!h(e))throw Error(r(299));var l=!1,i="",s=o0,o=r0,d=f0,p=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(d=n.onRecoverableError),n.formState!==void 0&&(p=n.formState)),t=Qf(e,1,!0,t,n??null,l,i,p,s,o,d,nd),t.context=Zf(null),n=t.current,l=Wt(),l=Va(l),i=rl(l),i.callback=null,fl(n,i,l),n=l,t.current.lanes=n,Rl(t,n),jn(t),e[In]=t.current,po(e),new uc(t)},Oi.version="19.2.6",Oi}var hd;function eh(){if(hd)return Ho.exports;hd=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(u){console.error(u)}}return a(),Ho.exports=P3(),Ho.exports}var th=eh();/**
50
+ * @license lucide-react v1.16.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 $d=(...a)=>a.filter((u,f,r)=>!!u&&u.trim()!==""&&r.indexOf(u)===f).join(" ").trim();/**
55
+ * @license lucide-react v1.16.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
+ */const nh=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
60
+ * @license lucide-react v1.16.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 lh=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,f,r)=>r?r.toUpperCase():f.toLowerCase());/**
65
+ * @license lucide-react v1.16.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 md=a=>{const u=lh(a);return u.charAt(0).toUpperCase()+u.slice(1)};/**
70
+ * @license lucide-react v1.16.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
+ */var Go={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"};/**
75
+ * @license lucide-react v1.16.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 ah=a=>{for(const u in a)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1},ih=j.createContext({}),sh=()=>j.useContext(ih),ch=j.forwardRef(({color:a,size:u,strokeWidth:f,absoluteStrokeWidth:r,className:h="",children:m,iconNode:S,...T},E)=>{const{size:y=24,strokeWidth:N=2,absoluteStrokeWidth:L=!1,color:U="currentColor",className:B=""}=sh()??{},Q=r??L?Number(f??N)*24/Number(u??y):f??N;return j.createElement("svg",{ref:E,...Go,width:u??y??Go.width,height:u??y??Go.height,stroke:a??U,strokeWidth:Q,className:$d("lucide",B,h),...!m&&!ah(T)&&{"aria-hidden":"true"},...T},[...S.map(([re,pe])=>j.createElement(re,pe)),...Array.isArray(m)?m:[m]])});/**
80
+ * @license lucide-react v1.16.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 ye=(a,u)=>{const f=j.forwardRef(({className:r,...h},m)=>j.createElement(ch,{ref:m,iconNode:u,className:$d(`lucide-${nh(md(a))}`,`lucide-${a}`,r),...h}));return f.displayName=md(a),f};/**
85
+ * @license lucide-react v1.16.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 uh=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],oh=ye("app-window",uh);/**
90
+ * @license lucide-react v1.16.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 rh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Jd=ye("arrow-right",rh);/**
95
+ * @license lucide-react v1.16.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 fh=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],En=ye("check",fh);/**
100
+ * @license lucide-react v1.16.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 dh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Al=ye("chevron-down",dh);/**
105
+ * @license lucide-react v1.16.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 hh=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Fd=ye("chevron-right",hh);/**
110
+ * @license lucide-react v1.16.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 mh=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ph=ye("chevron-up",mh);/**
115
+ * @license lucide-react v1.16.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 yh=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],gh=ye("chevrons-down",yh);/**
120
+ * @license lucide-react v1.16.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 vh=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],bh=ye("chevrons-up-down",vh);/**
125
+ * @license lucide-react v1.16.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 xh=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],Sh=ye("chevrons-up",xh);/**
130
+ * @license lucide-react v1.16.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 jh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Eh=ye("circle-alert",jh);/**
135
+ * @license lucide-react v1.16.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 wh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],nr=ye("circle-check",wh);/**
140
+ * @license lucide-react v1.16.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 Nh=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],zh=ye("clipboard",Nh);/**
145
+ * @license lucide-react v1.16.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 Th=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Tl=ye("code-xml",Th);/**
150
+ * @license lucide-react v1.16.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 Mh=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],Ch=ye("columns-2",Mh);/**
155
+ * @license lucide-react v1.16.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 Ah=[["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"}]],_h=ye("copy",Ah);/**
160
+ * @license lucide-react v1.16.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 Rh=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Dh=ye("ellipsis",Rh);/**
165
+ * @license lucide-react v1.16.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 Lh=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Oh=ye("external-link",Lh);/**
170
+ * @license lucide-react v1.16.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 kh=[["path",{d:"M14 22h4a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6",key:"14cnrg"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M5 14a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1 1 1 0 0 1 1 1v2a1 1 0 0 0 1 1",key:"sr0ebq"}],["path",{d:"M9 22a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1",key:"w793db"}]],Hh=ye("file-braces-corner",kh);/**
175
+ * @license lucide-react v1.16.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 Uh=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],lr=ye("file-code-corner",Uh);/**
180
+ * @license lucide-react v1.16.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 Bh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],qh=ye("file-search",Bh);/**
185
+ * @license lucide-react v1.16.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 Gh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Wd=ye("file-text",Gh);/**
190
+ * @license lucide-react v1.16.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const Vh=[["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"}]],Id=ye("folder-open",Vh);/**
195
+ * @license lucide-react v1.16.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const Yh=[["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"}]],Xh=ye("folder",Yh);/**
200
+ * @license lucide-react v1.16.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const Qh=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],mc=ye("git-branch",Qh);/**
205
+ * @license lucide-react v1.16.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const Zh=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],Kh=ye("git-commit-horizontal",Zh);/**
210
+ * @license lucide-react v1.16.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const $h=[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]],Jh=ye("grip-horizontal",$h);/**
215
+ * @license lucide-react v1.16.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const Fh=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ar=ye("loader-circle",Fh);/**
220
+ * @license lucide-react v1.16.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const Wh=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],Ih=ye("message-square-plus",Wh);/**
225
+ * @license lucide-react v1.16.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const Ph=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ml=ye("message-square",Ph);/**
230
+ * @license lucide-react v1.16.0 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const em=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],tm=ye("monitor",em);/**
235
+ * @license lucide-react v1.16.0 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const nm=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],lm=ye("moon",nm);/**
240
+ * @license lucide-react v1.16.0 - ISC
241
+ *
242
+ * This source code is licensed under the ISC license.
243
+ * See the LICENSE file in the root directory of this source tree.
244
+ */const am=[["path",{d:"m18 8 4 4-4 4",key:"1ak13k"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}]],im=ye("move-horizontal",am);/**
245
+ * @license lucide-react v1.16.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const sm=[["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"}]],cm=ye("panel-left-close",sm);/**
250
+ * @license lucide-react v1.16.0 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const um=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],om=ye("panel-left-open",um);/**
255
+ * @license lucide-react v1.16.0 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ */const rm=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Pd=ye("pencil",rm);/**
260
+ * @license lucide-react v1.16.0 - ISC
261
+ *
262
+ * This source code is licensed under the ISC license.
263
+ * See the LICENSE file in the root directory of this source tree.
264
+ */const fm=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],dm=ye("play",fm);/**
265
+ * @license lucide-react v1.16.0 - ISC
266
+ *
267
+ * This source code is licensed under the ISC license.
268
+ * See the LICENSE file in the root directory of this source tree.
269
+ */const hm=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],e2=ye("plus",hm);/**
270
+ * @license lucide-react v1.16.0 - ISC
271
+ *
272
+ * This source code is licensed under the ISC license.
273
+ * See the LICENSE file in the root directory of this source tree.
274
+ */const mm=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],t2=ye("search",mm);/**
275
+ * @license lucide-react v1.16.0 - ISC
276
+ *
277
+ * This source code is licensed under the ISC license.
278
+ * See the LICENSE file in the root directory of this source tree.
279
+ */const pm=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ym=ye("send",pm);/**
280
+ * @license lucide-react v1.16.0 - ISC
281
+ *
282
+ * This source code is licensed under the ISC license.
283
+ * See the LICENSE file in the root directory of this source tree.
284
+ */const gm=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],vm=ye("sliders-horizontal",gm);/**
285
+ * @license lucide-react v1.16.0 - ISC
286
+ *
287
+ * This source code is licensed under the ISC license.
288
+ * See the LICENSE file in the root directory of this source tree.
289
+ */const bm=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],xm=ye("square-terminal",bm);/**
290
+ * @license lucide-react v1.16.0 - ISC
291
+ *
292
+ * This source code is licensed under the ISC license.
293
+ * See the LICENSE file in the root directory of this source tree.
294
+ */const Sm=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],jm=ye("sun",Sm);/**
295
+ * @license lucide-react v1.16.0 - ISC
296
+ *
297
+ * This source code is licensed under the ISC license.
298
+ * See the LICENSE file in the root directory of this source tree.
299
+ */const Em=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Wo=ye("terminal",Em);/**
300
+ * @license lucide-react v1.16.0 - ISC
301
+ *
302
+ * This source code is licensed under the ISC license.
303
+ * See the LICENSE file in the root directory of this source tree.
304
+ */const wm=[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],n2=ye("text-wrap",wm);/**
305
+ * @license lucide-react v1.16.0 - ISC
306
+ *
307
+ * This source code is licensed under the ISC license.
308
+ * See the LICENSE file in the root directory of this source tree.
309
+ */const Nm=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Bi=ye("trash-2",Nm);/**
310
+ * @license lucide-react v1.16.0 - ISC
311
+ *
312
+ * This source code is licensed under the ISC license.
313
+ * See the LICENSE file in the root directory of this source tree.
314
+ */const zm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yi=ye("x",zm);function qi(a){return a.kind===void 0||a.kind==="line"}function Ua(a,u={}){const f=Math.min(a.startLine,a.endLine),r=Math.max(a.startLine,a.endLine);if(f===r)return`${a.side}${f}`;const h=u.repeatSideOnEnd===!1?"":a.side;return`${a.side}${f}-${h}${r}`}function Tm(a,u=[]){const f=(a==null?void 0:a.comments)??[],r=new Set(u.map(m=>m.commentId)),h=f.filter(m=>r.has(m.id)).length;return{total:f.length,resolved:h,open:f.length-h}}function ir(a){var u;return Tm(a.feedback,((u=a.resolution)==null?void 0:u.comments)??[])}const Mm="brew install iamrajjoshi/tap/gloss",Cm="npm install -g getgloss",Am="gloss open --json",Vo="npx getgloss open --json",pd="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",_m={side:"R",startLine:45,endLine:45},Rm=[{id:"seed-human-review",side:"R",startLine:45,endLine:45,body:"Apply the review feedback before resolving the thread so the agent cannot skip the human pass.",createdAt:"2026-05-23T00:00:00.000Z"}],yd=[{key:"open-review",oldLine:38,newLine:38,side:"R",tone:"neutral",code:"const review = await gloss.open({ base: 'HEAD' });"},{key:"add-reviewer",oldLine:39,newLine:39,side:"R",tone:"neutral",hiddenUntilExpanded:!0,code:"review.addReviewer('human');"},{key:"blocking-mode",oldLine:40,newLine:40,side:"R",tone:"neutral",hiddenUntilExpanded:!0,code:"review.setMode('blocking');"},{key:"wait-feedback",oldLine:41,newLine:41,side:"R",tone:"neutral",hiddenUntilExpanded:!0,code:"const feedback = await review.waitForFeedback();"},{key:"filter-comments",oldLine:42,newLine:42,side:"R",tone:"neutral",code:"const comments = feedback.comments.filter((comment) => comment.actionable);"},{key:"skip-review",oldLine:43,side:"L",tone:"remove",code:"agent.resumeWithoutReview();"},{key:"skip-status",oldLine:44,side:"L",tone:"remove",code:"agent.postStatus('review skipped');"},{key:"guard-comments",newLine:45,side:"R",tone:"add",code:"if (comments.length > 0) {"},{key:"apply-feedback",newLine:46,side:"R",tone:"add",code:" await agent.applyFeedback(comments);"},{key:"resolve-threads",newLine:47,side:"R",tone:"add",code:" await review.resolveThreads(comments);"},{key:"run-checks",newLine:48,side:"R",tone:"add",code:" await agent.runChecks(['pnpm check', 'pnpm test']);"},{key:"close-guard",newLine:49,side:"R",tone:"add",code:"}"},{key:"write-markdown",newLine:50,side:"R",tone:"add",code:"await review.writeFeedbackMarkdown();"},{key:"attach-validation",newLine:51,side:"R",tone:"add",code:"await review.attachValidation('pnpm test');"},{key:"resume-reviewed",newLine:52,side:"R",tone:"add",code:"await agent.resume({ reviewed: true });"},{key:"summary",oldLine:45,newLine:53,side:"R",tone:"neutral",code:"return review.summary();"}];function Dm(a){return a.startLine===a.endLine?`Comment on line ${Ua(a)}`:`Comment on range ${Ua(a)}`}function Lm(a,u){const f=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`;return{...u,id:f,body:a,createdAt:new Date().toISOString()}}function Io({value:a,label:u}){const[f,r]=j.useState(!1);return c.jsxs("button",{className:"marketing-copy",type:"button",onClick:async()=>{await navigator.clipboard.writeText(a),r(!0),window.setTimeout(()=>r(!1),1400)},children:[f?c.jsx(En,{size:15}):c.jsx(zh,{size:15}),c.jsx("span",{children:f?"Copied":u})]})}function rc({command:a}){return c.jsxs("div",{className:"command-line",children:[c.jsx("span",{children:"$"}),c.jsx("code",{children:a}),c.jsx(Io,{value:a,label:"Copy"})]})}function Om(){const[a,u]=j.useState(!0),[f,r]=j.useState(_m),[h,m]=j.useState(!1),[S,T]=j.useState(null),[E,y]=j.useState(""),[N,L]=j.useState(Rm),[U,B]=j.useState("idle"),Q=U==="submitted",re=N.find(V=>V.id===S),pe=Dm(f),$=E.trim(),me=`${N.length} review comment${N.length===1?"":"s"}`,ue=Q?[{marker:"✓",text:"review.submitted received"},{marker:"→",text:"reading ~/.gloss/reviews/01KS5/feedback.json"},{marker:"→",text:`applying ${me}`},{marker:"→",text:"running pnpm check"}]:[{marker:"$",text:"gloss open --json"},{marker:"→",text:"captured 4 files, +128 -31"},{marker:"→",text:"waiting for review.submitted"}],F=a?yd:yd.filter(V=>!V.hiddenUntilExpanded),ge=j.useMemo(()=>JSON.stringify({reviewId:"01KS5...",comments:N.map(V=>({filePath:"src/web/routes/Home.tsx",side:V.side,startLine:V.startLine,endLine:V.endLine,body:V.body}))},null,2),[N]),je=(V,ee)=>f.side===V&&f.startLine===ee&&f.endLine===ee,te=V=>{r(V),T(null),y(""),m(!0),B("idle")},Se=V=>{r({side:V.side,startLine:V.startLine,endLine:V.endLine}),T(V.id),y(V.body),m(!0),B("idle")},we=()=>{$&&(L(V=>S?V.map(ee=>ee.id===S?{...ee,body:$}:ee):[...V,Lm($,f)]),y(""),T(null),m(!1),B("idle"))},_e=V=>{L(ee=>ee.filter(W=>W.id!==V)),S===V&&(T(null),y(""),m(!1)),B("idle")},de=(V,ee)=>N.filter(W=>W.side===V&&Math.max(W.startLine,W.endLine)===ee&&Math.min(W.startLine,W.endLine)===ee);return c.jsxs("section",{className:"hero-scene","aria-label":"Simulated Gloss code review",children:[c.jsxs("div",{className:"scene-topbar",children:[c.jsxs("div",{className:"scene-brand",children:[c.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:"","aria-hidden":"true"}),c.jsx("span",{children:"Gloss review"})]}),c.jsxs("div",{className:"scene-meta",children:[c.jsx(mc,{size:14}),c.jsx("span",{children:"raj--gloss--static-site"})]})]}),c.jsxs("div",{className:"scene-shell",children:[c.jsxs("div",{className:"scene-terminal",children:[c.jsxs("div",{className:"terminal-header",children:[c.jsx(Wo,{size:14}),c.jsx("span",{children:"agent terminal"})]}),c.jsx("div",{className:"terminal-lines",children:ue.map(V=>c.jsxs("p",{children:[c.jsx("span",{children:V.marker})," ",V.text]},V.text))})]}),c.jsxs("div",{className:"scene-review",children:[c.jsxs("button",{className:"scene-file-header",type:"button",children:[c.jsx(Al,{size:16}),c.jsx(Tl,{size:15}),c.jsx("span",{children:"src/web/routes/Home.tsx"}),c.jsx("b",{className:"scene-add",children:"+74"}),c.jsx("b",{className:"scene-del",children:"-6"})]}),c.jsx("button",{className:"scene-hidden",type:"button",onClick:()=>u(V=>!V),children:a?"Hide unchanged context":"194 unmodified lines"}),c.jsx("div",{className:"scene-hunk",children:"@@ -38,11 +38,20 @@ export function Home()"}),F.map(V=>{const ee=V.side==="L"?V.oldLine:V.newLine;if(ee==null)return null;const W=je(V.side,ee),ve=Q&&(V.key==="skip-review"||V.key==="skip-status"),b=Q&&["apply-feedback","resolve-threads","run-checks"].includes(V.key);return c.jsxs("div",{children:[c.jsxs("button",{className:`scene-row ${V.tone} ${V.hiddenUntilExpanded?"dimmed":""} ${W?"selected":""} ${ve?"agent-dimmed":""} ${b?"agent-applied":""}`,type:"button","aria-pressed":W,onClick:()=>te({side:V.side,startLine:ee,endLine:ee}),children:[c.jsx("span",{children:V.oldLine??""}),c.jsx("span",{children:V.newLine??""}),c.jsx("code",{children:V.code||" "})]}),Q&&V.key==="apply-feedback"?c.jsxs("div",{className:"scene-applied-status",children:[c.jsx(En,{size:13}),c.jsx("span",{children:"applied by agent"})]}):null,c.jsx(km,{comments:de(V.side,ee),onOpen:Se,onRemove:_e}),h&&f.side===V.side&&f.endLine===ee?c.jsxs("div",{className:"scene-composer",children:[c.jsxs("div",{className:"scene-composer-title",children:[c.jsx("strong",{children:re?"Review comment":"New local comment"}),c.jsx("span",{children:pe})]}),c.jsx("textarea",{"aria-label":pe,placeholder:"Request change",value:E,onChange:H=>y(H.target.value)}),c.jsxs("div",{className:"scene-composer-actions",children:[c.jsx("button",{className:"scene-secondary-action",type:"button",onClick:()=>{y(""),T(null),m(!1)},children:"Cancel"}),c.jsx("button",{type:"button",disabled:!$,onClick:we,children:re?"Update":"Comment"})]})]}):null]},V.key)})]}),c.jsx("div",{className:"scene-feedback",children:Q?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"feedback-title",children:[c.jsx(Wo,{size:15}),c.jsx("span",{children:"agent is updating"})]}),c.jsxs("div",{className:"agent-update-card",children:[c.jsx("code",{children:"~/.gloss/reviews/01KS5/feedback.json"}),c.jsx("ul",{children:["Read feedback","Resolved comment","Validated"].map(V=>c.jsxs("li",{children:[c.jsx(En,{size:13}),c.jsx("span",{children:V})]},V))})]})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"feedback-title",children:[c.jsx(Hh,{size:15}),c.jsx("span",{children:"~/.gloss/reviews/01KS5/feedback.json"})]}),c.jsx("pre",{children:ge})]})})]}),c.jsxs("div",{className:"scene-submit",children:[c.jsx("span",{children:N.length===0?"No local comments yet":Q?"Sent to agent":`${N.length} local comment${N.length===1?"":"s"} ready`}),c.jsxs("button",{type:"button",disabled:N.length===0,onClick:()=>B("submitted"),children:[Q?c.jsx(En,{size:14}):c.jsx(dm,{size:14}),Q?"Sent to agent":"Submit review"]})]})]})}function km({comments:a,onOpen:u,onRemove:f}){return a.map(r=>c.jsxs("div",{className:"scene-inline-comment",children:[c.jsxs("button",{className:"scene-inline-comment-body",type:"button",onClick:()=>u(r),children:[c.jsx(Ml,{size:14}),c.jsx("span",{children:r.body})]}),c.jsx("button",{className:"scene-inline-comment-remove",type:"button",title:`Remove comment on ${r.side}${r.startLine}`,onClick:()=>f(r.id),children:c.jsx(Bi,{size:13})})]},r.id))}function ki({step:a,title:u,body:f}){return c.jsxs("div",{className:"workflow-step",children:[c.jsx("span",{children:a}),c.jsxs("div",{children:[c.jsx("h3",{children:u}),c.jsx("p",{children:f})]})]})}function Hm(){return c.jsxs("section",{className:"marketing-band demo-video-band",id:"demo",children:[c.jsxs("div",{className:"demo-video-header",children:[c.jsxs("div",{className:"section-heading",children:[c.jsx("p",{children:"Demo"}),c.jsx("h2",{children:"Watch the local review loop run for real."})]}),c.jsx("p",{className:"demo-video-caption",children:"A real pass through the loop: open a local diff, leave review comments, hand them back to the agent."})]}),c.jsx("div",{className:"demo-video-frame",children:c.jsxs("video",{"aria-label":"Gloss product walkthrough showing local diff review comments sent back to an agent",controls:!0,poster:"/gloss-demo-poster.jpg",preload:"metadata",children:[c.jsx("source",{src:"/gloss-demo.mp4",type:"video/mp4"}),c.jsx("track",{default:!0,kind:"captions",label:"English",src:"/gloss-demo-captions.vtt",srcLang:"en"}),"Your browser does not support the video tag."]})})]})}function Um(){return c.jsxs("main",{className:"marketing-page",children:[c.jsxs("section",{className:"marketing-hero",children:[c.jsxs("div",{className:"hero-copy",children:[c.jsxs("div",{className:"hero-copy-main",children:[c.jsx("div",{className:"hero-logo",children:c.jsx("img",{className:"brand-mark",src:"/logo-mark.svg",alt:"Gloss logo"})}),c.jsx("h1",{children:"Gloss"}),c.jsx("p",{className:"hero-subtitle",children:"Review agent-written diffs in your browser."}),c.jsxs("p",{className:"hero-body",children:["Gloss opens your working-tree diff in a local browser, then writes"," ",c.jsx("code",{children:"feedback.json"})," for your agent and ",c.jsx("code",{children:"feedback.md"})," for humans."]}),c.jsxs("div",{className:"hero-actions",children:[c.jsxs("a",{className:"hero-primary",href:"#install",children:["Install with Homebrew",c.jsx(Jd,{size:17})]}),c.jsx("a",{className:"hero-secondary",href:"/setup/",children:"Agent setup"})]})]}),c.jsxs("aside",{className:"hero-quickstart","aria-label":"Quick start command",children:[c.jsx("span",{children:"Run without setup"}),c.jsx("code",{children:Vo}),c.jsx(Io,{value:Vo,label:"Copy command"})]})]}),c.jsx(Om,{})]}),c.jsx(Hm,{}),c.jsxs("section",{className:"marketing-band install-band",id:"install",children:[c.jsxs("div",{className:"section-heading",children:[c.jsx("p",{children:"Install"}),c.jsx("h2",{children:"Start the review loop in one command."})]}),c.jsxs("div",{className:"install-grid",children:[c.jsx(rc,{command:Mm}),c.jsx(rc,{command:Cm}),c.jsx(rc,{command:Am}),c.jsx(rc,{command:Vo})]}),c.jsxs("div",{className:"agent-prompt",children:[c.jsxs("div",{className:"agent-prompt-label",children:[c.jsx(Wo,{size:18}),c.jsx("span",{children:"Packaged skill"})]}),c.jsx("p",{children:"Install the bundled agent skill so Claude Code knows when to open Gloss and how to use the feedback."}),c.jsx("div",{className:"agent-prompt-links",children:c.jsx("a",{href:"/setup/",children:"Agent setup"})}),c.jsxs("div",{className:"agent-skill-command",children:[c.jsx("code",{children:pd}),c.jsx(Io,{value:pd,label:"Copy install"})]})]})]}),c.jsxs("section",{className:"marketing-band workflow-band",id:"workflow",children:[c.jsx("div",{className:"section-heading",children:c.jsx("p",{children:"How it works"})}),c.jsxs("div",{className:"workflow-story",children:[c.jsx(ki,{step:"01",title:"Open a review",body:"The agent runs `gloss open --json`."}),c.jsx(ki,{step:"02",title:"Wait",body:"Gloss blocks while you review the diff."}),c.jsx(ki,{step:"03",title:"Receive feedback",body:"The agent reads `feedbackPath`."}),c.jsx(ki,{step:"04",title:"Fix and validate",body:"The agent applies comments and runs checks."}),c.jsx(ki,{step:"05",title:"Resolve",body:"The agent runs `gloss resolve`."})]})]}),c.jsxs("section",{className:"marketing-band contract-band",id:"contract",children:[c.jsxs("div",{className:"section-heading",children:[c.jsx("p",{children:"Output"}),c.jsx("h2",{children:"What the agent reads."})]}),c.jsxs("div",{className:"contract-layout",children:[c.jsx("pre",{children:`~/.gloss/reviews/<reviewId>/feedback.json
315
+ ~/.gloss/reviews/<reviewId>/feedback.md
316
+ ~/.gloss/reviews/<reviewId>/resolved.json`}),c.jsx("div",{className:"contract-copy",children:c.jsxs("p",{children:[c.jsx("code",{children:"feedback.json"})," is the machine-readable handoff; ",c.jsx("code",{children:"feedback.md"})," ","is the human-readable copy; ",c.jsx("code",{children:"resolved.json"})," tracks comment and review resolution progress."]})})]})]}),c.jsx("footer",{className:"marketing-footer",children:c.jsxs("a",{href:"https://github.com/iamrajjoshi/gloss",target:"_blank",rel:"noreferrer",children:[c.jsx(mc,{size:16}),c.jsx("span",{children:"GitHub"})]})})]})}var Gi=Kd();const Bm=["lockfiles","snapshots","generated","vendored"],l2=[{id:"lockfiles",label:"Lockfiles"},{id:"snapshots",label:"Snapshots"},{id:"generated",label:"Generated"},{id:"vendored",label:"Vendored"}],qm=new Set(["package-lock.json","pnpm-lock.yaml","yarn.lock","Cargo.lock","Gemfile.lock","Pipfile.lock","poetry.lock","uv.lock","go.sum","composer.lock","mix.lock","flake.lock","deno.lock","Podfile.lock"]),Gm=["@generated","Code generated","DO NOT EDIT","automatically generated"];function a2(a){const u=new Set,f=[a.path,a.oldPath].filter(r=>!!r);return f.some(Qm)&&u.add("lockfiles"),f.some(Zm)&&u.add("snapshots"),(f.some(Km)||Jm(a))&&u.add("generated"),f.some($m)&&u.add("vendored"),u}function Vm(a,u){if(u.size===0)return!1;const f=a2(a);for(const r of u)if(f.has(r))return!0;return!1}function Ym(a,u){if(u.size===0)return{files:a,hidden:[]};const f=[],r=[];for(const h of a)(Vm(h,u)?r:f).push(h);return{files:f,hidden:r}}function Xm(a){if(!Array.isArray(a))return new Set;const u=new Set(Bm);return new Set(a.filter(f=>u.has(String(f))))}function Qm(a){const u=sr(a);return qm.has(u)||/^bun\.lock/.test(u)}function Zm(a){const u=xc(a),f=sr(u);return u.split("/").includes("__snapshots__")||/\.snap(?:\.|$)/.test(f)||/\.snapshot(?:\.|$)/.test(f)}function Km(a){const u=xc(a),f=sr(u),r=u.split("/");return r.includes("__generated__")||r.includes("generated")||/\.generated\./.test(f)||/\.gen\./.test(f)||/\.pb\./.test(f)}function $m(a){const u=xc(a).split("/");return u.includes("vendor")||u.includes("vendors")||u.includes("third_party")||u.includes("third-party")||u.includes("external")||u.includes("node_modules")||u.includes("bower_components")||u.includes("Pods")||u.includes("Carthage")||Wm(u,[".yarn","cache"])}function Jm(a){for(const u of a.hunks)for(const f of u.lines)if(Fm(f.content))return!0;return!1}function Fm(a){const u=a.trim(),f=u.toLowerCase();return/^(\/\/|#|\/\*|\*|<!--|;|--)/.test(u)?Gm.some(r=>f.includes(r.toLowerCase())):!1}function Wm(a,u){return a.some((f,r)=>u.every((h,m)=>a[r+m]===h))}function xc(a){return a.replace(/\\/g,"/")}function sr(a){return xc(a).split("/").pop()??a}function i2(a,u,f="",r=""){return a.localeCompare(u,void 0,{sensitivity:"base"})||a.localeCompare(u)||f.localeCompare(r,void 0,{sensitivity:"base"})||f.localeCompare(r)}function Im(a,u){return i2(a.path,u.path,a.oldPath??"",u.oldPath??"")}function Pm(a){return a.toSorted(Im)}const e5={mode:"all"};function t5(a=e5,u=[]){if(a.mode==="all")return"All commits";if(a.mode==="single"){const h=u.find(m=>m.commit.sha===a.sha);return h?`${h.commit.shortSha} ${h.commit.subject}`:`Commit ${Yo(a.sha)}`}const f=u.findIndex(h=>h.commit.sha===a.fromSha),r=u.findIndex(h=>h.commit.sha===a.toSha);return f>=0&&r>=f?`${r-f+1} commits · ${u[f].commit.shortSha} to ${u[r].commit.shortSha}`:`Commit range ${Yo(a.fromSha)} to ${Yo(a.toSha)}`}function Yo(a){return a.slice(0,7)}function gd(a){var f;const u=(f=a.meta.branch??a.diff.branch)==null?void 0:f.trim();return u||n5(a.diff)}function n5(a){switch(a.scope.mode){case"branch":return"Branch diff";case"explicit":return`Diff against ${a.scope.requestedBase??a.base.ref}`;case"working":return"Working changes"}}function l5(a){return a==="submitted"||a==="resolved"}const a5=["L","R"],i5=["pending","submitted","cancelled","resolved"],s5=["context","add","delete"],c5=["working","branch","explicit"],u5=["working-tree-clean","missing-branch-base"],o5=500,r5=240,f5=["import","same-file","repo-search","module"],d5=["all","single","range"],h5=["partial","resolved"],m5=["human","agent","system"],p5=["claimed","working","blocked","completed","failed"],y5=["review-resolved","comment-resolved","comment-reopened","turn-created"],g5=["default","vscode","vscode-insiders","vscodium","cursor","sublime","zed","windsurf","webstorm","intellij","pycharm","goland","phpstorm","rubymine","clion","datagrip","android-studio","fleet","neovide","macvim","emacs","lapce","textmate","bbedit","coteditor","nova","textedit","xcode","terminal","iterm2","ghostty","folder"];function v5(a,u,f){const r=JSON.parse(a);return s2(r,u,f)}function s2(a,u,f){if(!u(a))throw new Error(`Invalid ${f}`);return a}function b5(a){return Ge(a)&&P(a.reviewId)&&et(a.turnId)&&Cl(a.turnIndex)&&P(a.url)&&tt(a.files)&&Cl(a.comments)&&et(a.feedbackPath)&&et(a.markdownPath)&&et(a.artifactDir)}function x5(a){return Ge(a)&&a.ok===!0&&P(a.path)}function S5(a){return Ge(a)&&It(a.targets,V5)}function j5(a){return Ge(a)&&P(a.filePath)&&P(a.content)}function E5(a){return Ge(a)&&P(a.fromSha)&&P(a.toSha)&&jc(a.stats)&&P(a.rawDiff)&&It(a.files,cr)}function w5(a){return Ge(a)&&P(a.filePath)&&ea(a.oldStart)&&ea(a.newStart)&&It(a.lines,d2)}function N5(a){return Ge(a)&&P(a.symbol)&&P(a.targetSymbol)&&P(a.filePath)&&ea(a.startLine)&&ea(a.line)&&K5(a.column)&&Nn(a.language)&&P(a.content)&&gn(a.truncated)&&ea(a.totalLines)&&gn(a.hasMoreAbove)&&gn(a.hasMoreBelow)&&q5(a.matchReason)}function z5(a){return Ge(a)&&P(a.filePath)&&ea(a.startLine)&&ea(a.totalLines)&&P(a.content)&&gn(a.truncated)&&gn(a.hasMoreAbove)&&gn(a.hasMoreBelow)}function T5(a){return Ge(a)&&C5(a.meta)&&It(a.turns,_5)&&c2(a.diff)&&wn(a.feedback,u2)&&wn(a.resolution,o2)&&wn(a.events,u=>It(u,r2))}function M5(a){return Ge(a)&&P(a.id)&&P(a.cwd)&&Sc(a.base)&&Nn(a.branch)&&ur(a.status)&&P(a.createdAt)&&et(a.submittedAt)&&et(a.resolvedAt)&&et(a.artifactDir)&&et(a.activeTurnId)&&wn(a.turns,u=>It(u,A5))&&et(a.feedbackPath)&&et(a.markdownPath)}function C5(a){return M5(a)&&P(a.artifactDir)}function c2(a){return Ge(a)&&Sc(a.base)&&Nn(a.branch)&&P(a.cwd)&&R5(a.scope)&&jc(a.stats)&&P(a.rawDiff)&&It(a.files,cr)&&wn(a.commitDiffs,u=>It(u,O5))&&P(a.capturedAt)}function u2(a){return Ge(a)&&a.version===1&&P(a.reviewId)&&et(a.turnId)&&Cl(a.turnIndex)&&P(a.timestamp)&&Sc(a.base)&&Nn(a.branch)&&wn(a.reviewScope,k5)&&It(a.comments,U5)}function o2(a){return Ge(a)&&P(a.reviewId)&&et(a.turnId)&&Cl(a.turnIndex)&&m2(a.status)&&Nn(a.summary)&&Nn(a.resolvedAt)&&It(a.comments,B5)}function r2(a){if(!Ge(a)||!P(a.reviewId)||!P(a.type)||!Z5(a))return!1;switch(a.type){case"review.opened":case"review.cancelled":return!0;case"review.turn.created":return P(a.turnId)&&tt(a.turnIndex)&&gn(a.reused);case"review.submitted":return et(a.turnId)&&Cl(a.turnIndex)&&Ge(a.counts)&&tt(a.counts.files)&&tt(a.counts.comments);case"review.updated":return et(a.turnId)&&Cl(a.turnIndex)&&Y5(a.reason)&&ur(a.status)&&m2(a.resolutionStatus)&&h2(a.counts);case"agent.claimed":return P(a.turnId)&&tt(a.turnIndex)&&a.status==="claimed"&&et(a.message);case"agent.note":return et(a.turnId)&&Cl(a.turnIndex)&&wn(a.status,Q5)&&P(a.message);default:return!1}}function f2(a){return Ge(a)&&P(a.id)&&tt(a.index)&&ur(a.status)&&P(a.createdAt)&&et(a.submittedAt)&&et(a.resolvedAt)&&P(a.artifactDir)&&P(a.diffPath)&&et(a.feedbackPath)&&et(a.markdownPath)&&et(a.resolvedPath)}function A5(a){return!Ge(a)||!f2(a)?!1:P(a.capturedAt)&&jc(a.stats)&&h2(a.comments)}function _5(a){return!Ge(a)||!f2(a)?!1:c2(a.diff)&&wn(a.feedback,u2)&&wn(a.resolution,o2)}function R5(a){return Ge(a)&&rn(a.mode,c5)&&Nn(a.requestedBase)&&Sc(a.base)&&D5(a.comparison)&&(a.fallbackReason===null||rn(a.fallbackReason,u5))}function D5(a){return Ge(a)&&P(a.ref)&&Nn(a.sha)}function Sc(a){return Ge(a)&&P(a.ref)&&P(a.sha)}function jc(a){return Ge(a)&&tt(a.files)&&tt(a.additions)&&tt(a.deletions)}function L5(a){return Ge(a)&&P(a.sha)&&P(a.shortSha)&&P(a.subject)&&P(a.authorName)&&P(a.authorEmail)&&P(a.authoredAt)&&P(a.committedAt)}function O5(a){return Ge(a)&&L5(a.commit)&&jc(a.stats)&&P(a.rawDiff)&&It(a.files,cr)}function k5(a){if(!Ge(a)||!rn(a.mode,d5))return!1;switch(a.mode){case"all":return!0;case"single":return P(a.sha);case"range":return P(a.fromSha)&&P(a.toSha)}}function cr(a){return Ge(a)&&P(a.path)&&Nn(a.oldPath)&&tt(a.additions)&&tt(a.deletions)&&gn(a.isBinary)&&gn(a.isDeleted)&&gn(a.isNew)&&gn(a.isRenamed)&&Nn(a.language)&&It(a.hunks,H5)}function H5(a){return Ge(a)&&tt(a.oldStart)&&tt(a.oldLines)&&tt(a.newStart)&&tt(a.newLines)&&P(a.header)&&It(a.lines,d2)}function d2(a){return Ge(a)&&rn(a.type,s5)&&vd(a.oldLine)&&vd(a.newLine)&&P(a.content)}function U5(a){return Ge(a)?a.kind==="general"?P(a.id)&&P(a.body)&&P(a.createdAt):P(a.id)&&(a.kind===void 0||a.kind==="line")&&P(a.filePath)&&tt(a.startLine)&&tt(a.endLine)&&rn(a.side,a5)&&P(a.body)&&P(a.originalSnippet)&&P(a.createdAt):!1}function B5(a){return Ge(a)&&P(a.commentId)&&a.status==="resolved"&&et(a.summary)&&P(a.resolvedAt)}function h2(a){return Ge(a)&&tt(a.total)&&tt(a.resolved)&&tt(a.open)}function ur(a){return rn(a,i5)}function m2(a){return rn(a,h5)}function q5(a){return rn(a,f5)}function G5(a){return rn(a,g5)}function V5(a){return Ge(a)&&G5(a.target)&&P(a.label)}function Y5(a){return rn(a,y5)}function X5(a){return rn(a,m5)}function Q5(a){return rn(a,p5)}function Z5(a){return et(a.id)&&Cl(a.seq)&&et(a.createdAt)&&wn(a.actor,X5)}function Ge(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function It(a,u){return Array.isArray(a)&&a.every(u)}function wn(a,u){return a===void 0||u(a)}function P(a){return typeof a=="string"}function et(a){return a===void 0||P(a)}function Nn(a){return a===null||P(a)}function tt(a){return typeof a=="number"&&Number.isFinite(a)}function ea(a){return tt(a)&&Number.isInteger(a)&&a>0}function K5(a){return tt(a)&&Number.isInteger(a)&&a>=0}function Cl(a){return a===void 0||tt(a)}function vd(a){return a===null||tt(a)}function gn(a){return typeof a=="boolean"}function rn(a,u){return typeof a=="string"&&u.includes(a)}async function Jn(a,u,f){if(!a.ok)throw new Error(await $5(a));const r=await a.json();return s2(r,u,f)}async function $5(a){const u=await a.text();return J5(u)??`${a.status}: ${u||a.statusText}`}function J5(a){try{const u=JSON.parse(a);if(typeof u=="object"&&u!==null&&!Array.isArray(u)&&typeof u.error=="string")return u.error}catch{}return null}async function bd(a){return Jn(await fetch(`/api/reviews/${a}`),T5,"review response")}async function F5(a,u,f){const r={comments:u,reviewScope:f};return Jn(await fetch(`/api/reviews/${a}/submit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r)}),b5,"submit review response")}async function xd(a,u,f,r={}){const h={filePath:u,turnId:f,...r};return Jn(await fetch(`/api/reviews/${a}/files/open`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),x5,"open file response")}async function W5(){return Jn(await fetch("/api/open-targets"),S5,"open targets response")}async function Sd(a,u,f,r={}){const h={filePath:u,turnId:f,...r};return Jn(await fetch(`/api/reviews/${a}/files/content`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),j5,"file content response")}async function I5(a,u,f,r){const h={fromSha:u,toSha:f,turnId:r};return Jn(await fetch(`/api/reviews/${a}/commits/range`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),E5,"commit range diff response")}async function P5({filePath:a,lineCount:u,newStart:f,oldPath:r,oldStart:h,reviewId:m,source:S,turnId:T}){const E={filePath:a,oldPath:r,turnId:T,source:S,oldStart:h,newStart:f,lineCount:u};return Jn(await fetch(`/api/reviews/${m}/files/context`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(E)}),w5,"diff context response")}async function e6({column:a,filePath:u,line:f,oldPath:r,reviewId:h,side:m,source:S,symbol:T,turnId:E}){const y={filePath:u,oldPath:r,turnId:E,source:S,side:m,line:f,column:a,symbol:T};return Jn(await fetch(`/api/reviews/${h}/source-peek`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(y)}),N5,"source peek response")}async function t6({filePath:a,lineCount:u,reviewId:f,side:r,source:h,startLine:m,turnId:S}){const T={filePath:a,turnId:S,source:h,side:r,startLine:m,lineCount:u};return Jn(await fetch(`/api/reviews/${f}/source-peek/range`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(T)}),z5,"source peek range response")}const n6="modulepreload",l6=function(a){return"/"+a},jd={},p2=function(u,f,r){let h=Promise.resolve();if(f&&f.length>0){let S=function(y){return Promise.all(y.map(N=>Promise.resolve(N).then(L=>({status:"fulfilled",value:L}),L=>({status:"rejected",reason:L}))))};document.getElementsByTagName("link");const T=document.querySelector("meta[property=csp-nonce]"),E=(T==null?void 0:T.nonce)||(T==null?void 0:T.getAttribute("nonce"));h=S(f.map(y=>{if(y=l6(y),y in jd)return;jd[y]=!0;const N=y.endsWith(".css"),L=N?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${L}`))return;const U=document.createElement("link");if(U.rel=N?"stylesheet":n6,N||(U.as="script"),U.crossOrigin="",U.href=y,E&&U.setAttribute("nonce",E),document.head.appendChild(U),N)return new Promise((B,Q)=>{U.addEventListener("load",B),U.addEventListener("error",()=>Q(new Error(`Unable to preload CSS for ${y}`)))})}))}function m(S){const T=new Event("vite:preloadError",{cancelable:!0});if(T.payload=S,window.dispatchEvent(T),!T.defaultPrevented)throw S}return h.then(S=>{for(const T of S||[])T.status==="rejected"&&m(T.reason);return u().catch(m)})};function a6(a){return a.type==="delete"?"L":"R"}function $n(a,u){return`${a}:${u}`}function pc(a){return y2(a)&&!a.shiftKey}function i6(a){return y2(a)&&a.shiftKey===!0}function y2(a){var u;return a.key==="Enter"&&a.metaKey===!0&&a.ctrlKey!==!0&&a.altKey!==!0&&a.repeat!==!0&&a.defaultPrevented!==!0&&a.isComposing!==!0&&((u=a.nativeEvent)==null?void 0:u.isComposing)!==!0}const g2="0123456789ABCDEFGHJKMNPQRSTVWXYZ",yc=32,s6=16,v2=10,Ed=0xffffffffffff;var Wl;(function(a){a.Base32IncorrectEncoding="B32_ENC_INVALID",a.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",a.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",a.EncodeTimeNegative="ENC_TIME_NEG",a.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",a.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",a.PRNGDetectFailure="PRNG_DETECT",a.ULIDInvalid="ULID_INVALID",a.Unexpected="UNEXPECTED",a.UUIDInvalid="UUID_INVALID"})(Wl||(Wl={}));class Ui extends Error{constructor(u,f){super(`${f} (${u})`),this.name="ULIDError",this.code=u}}function c6(a){const u=Math.floor(a()*yc)%yc;return g2.charAt(u)}function u6(a){const u=o6(),f=u&&(u.crypto||u.msCrypto)||null;if(typeof(f==null?void 0:f.getRandomValues)=="function")return()=>{const r=new Uint8Array(1);return f.getRandomValues(r),r[0]/256};if(typeof(f==null?void 0:f.randomBytes)=="function")return()=>f.randomBytes(1).readUInt8()/256;throw new Ui(Wl.PRNGDetectFailure,"Failed to find a reliable PRNG")}function o6(){return d6()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function r6(a,u){let f="";for(;a>0;a--)f=c6(u)+f;return f}function f6(a,u=v2){if(isNaN(a))throw new Ui(Wl.EncodeTimeValueMalformed,`Time must be a number: ${a}`);if(a>Ed)throw new Ui(Wl.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${Ed}: ${a}`);if(a<0)throw new Ui(Wl.EncodeTimeNegative,`Time must be positive: ${a}`);if(Number.isInteger(a)===!1)throw new Ui(Wl.EncodeTimeValueMalformed,`Time must be an integer: ${a}`);let f,r="";for(let h=u;h>0;h--)f=a%yc,r=g2.charAt(f)+r,a=(a-f)/yc;return r}function d6(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function wd(a,u){const f=u6(),r=Date.now();return f6(r,v2)+r6(s6,f)}const Nd=a=>{let u;const f=new Set,r=(y,N)=>{const L=typeof y=="function"?y(u):y;if(!Object.is(L,u)){const U=u;u=N??(typeof L!="object"||L===null)?L:Object.assign({},u,L),f.forEach(B=>B(u,U))}},h=()=>u,T={setState:r,getState:h,getInitialState:()=>E,subscribe:y=>(f.add(y),()=>f.delete(y))},E=u=a(r,h,T);return T},h6=(a=>a?Nd(a):Nd),m6=a=>a;function p6(a,u=m6){const f=Hi.useSyncExternalStore(a.subscribe,Hi.useCallback(()=>u(a.getState()),[a,u]),Hi.useCallback(()=>u(a.getInitialState()),[a,u]));return Hi.useDebugValue(f),f}const zd=a=>{const u=h6(a),f=r=>p6(u,r);return Object.assign(f,u),f},y6=(a=>a?zd(a):zd),wt=y6((a,u)=>({comments:[],resolution:null,draft:null,setDraft:f=>a({draft:f}),hydrateComments:f=>a({comments:f,resolution:null,draft:null}),hydrateReview:(f,r=null)=>a({comments:f,resolution:r,draft:null}),addComment:f=>{const r=u().draft;!r||f.trim().length===0||a(h=>({comments:[...h.comments,{kind:"line",id:wd(),filePath:r.filePath,side:r.side,startLine:Math.min(r.startLine,r.endLine),endLine:Math.max(r.startLine,r.endLine),body:f.trim(),originalSnippet:r.originalSnippet,createdAt:new Date().toISOString()}],draft:null}))},addGeneralComment:f=>{const r=f.trim();r.length!==0&&a(h=>({comments:[...h.comments,{kind:"general",id:wd(),body:r,createdAt:new Date().toISOString()}]}))},updateComment:(f,r)=>{const h=r.trim();h.length!==0&&a(m=>({comments:m.comments.map(S=>S.id===f?{...S,body:h}:S)}))},removeComment:f=>a(r=>({comments:r.comments.filter(h=>h.id!==f)})),reset:()=>a({comments:[],resolution:null,draft:null})})),b2="gloss:theme-preference",g6="(prefers-color-scheme: dark)",v6=new Set(["system","light","dark"]),x2=j.createContext(null);function b6(a){return!!(a&&v6.has(a))}function x6(a=S2()){if(!a)return"system";try{const u=a.getItem(b2);return b6(u)?u:"system"}catch{return"system"}}function S6(a,u=S2()){if(u)try{u.setItem(b2,a)}catch{}}function Po(a){return a?"dark":"light"}function j6(a,u){return a==="system"?u:a}function E6(a,u=z6()){u&&(u.dataset.theme=a)}function w6({children:a}){const[u,f]=j.useState(()=>x6()),[r,h]=j.useState(()=>N6()),m=j6(u,r);j.useEffect(()=>{const E=j2();if(!E)return;const y=N=>{h(Po(N.matches))};return h(Po(E.matches)),typeof E.addEventListener=="function"?(E.addEventListener("change",y),()=>E.removeEventListener("change",y)):(E.addListener(y),()=>E.removeListener(y))},[]),j.useEffect(()=>{E6(m)},[m]);const S=j.useCallback(E=>{S6(E),f(E)},[]),T=j.useMemo(()=>({preference:u,resolvedTheme:m,setPreference:S}),[u,m,S]);return c.jsx(x2.Provider,{value:T,children:a})}function or(){const a=j.useContext(x2);if(!a)throw new Error("useTheme must be used within ThemeProvider");return a}function N6(a=j2()){return Po(!!(a!=null&&a.matches))}function S2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function j2(){try{return typeof window>"u"||typeof window.matchMedia!="function"?null:window.matchMedia(g6)}catch{return null}}function z6(){return typeof document>"u"?null:document.documentElement}function T6({body:a,tone:u,onBodyChange:f}){const r=wt(N=>N.draft),h=wt(N=>N.setDraft),m=wt(N=>N.addComment),S=j.useRef(null);if(j.useEffect(()=>{var N;r&&((N=S.current)==null||N.focus({preventScroll:!0}))},[r]),!r)return null;const T=r.startLine===r.endLine?`Comment on line ${Ua(r)}`:`Comment on range ${Ua(r)}`,E=()=>{f(""),h(null)},y=()=>{m(a),f("")};return c.jsx("div",{className:`draft-comment-shell tone-${u}`,children:c.jsxs("div",{className:"draft-comment-card",children:[c.jsxs("div",{className:"draft-comment-title",children:[c.jsxs("span",{className:"draft-comment-heading",children:[c.jsx("span",{className:"draft-comment-icon","aria-hidden":"true",children:c.jsx(Ih,{size:15})}),c.jsx("span",{children:"Local comment"})]}),c.jsx("span",{className:"draft-comment-label",children:T})]}),c.jsx("textarea",{"aria-label":T,placeholder:"Request change",ref:S,value:a,onChange:N=>f(N.target.value),onKeyDown:N=>{pc(N)&&(N.preventDefault(),y())}}),c.jsxs("div",{className:"draft-comment-actions",children:[c.jsx("button",{className:"secondary-button",type:"button",onClick:E,children:"Cancel"}),c.jsx("button",{"aria-keyshortcuts":"Meta+Enter",className:"primary-button",title:"Comment (Command+Enter)",type:"button",onClick:y,children:"Comment"})]})]})})}const E2=10;function M6(a,u){const f=u.oldStart-a.oldStart,r=f+u.lineCount-1,h=f>0,m=r<a.lineCount-1;return h&&m?"all":h?"down":m||a.beforeHunkIndex===0?"up":"all"}function C6(a,u){return u.lineCount<=E2?[M6(a,u)]:u.oldStart-a.oldStart>0||a.beforeHunkIndex>0?["up","all","down"]:["up","all"]}function rr(a){const u=[];let f=0,r=0;return a.hunks.forEach((h,m)=>{const S=h.oldStart>f+1?h.oldStart-f-1:0,T=h.newStart>r+1?h.newStart-r-1:0,E=Math.min(S,T);if(E>0){const y=f+1,N=r+1;u.push({id:`${a.path}:${y}:${N}:${E}`,beforeHunkIndex:m,filePath:a.path,oldPath:a.oldPath,oldStart:y,newStart:N,lineCount:E})}f=h.oldStart+h.oldLines-1,r=h.newStart+h.newLines-1}),u}function A6(a,u){const f=Ec(a,u),r=w2(a,f),h=fr(a,u);if(r.length===0)return h.length>0?[{type:"lines",lines:h}]:[];const m=r[0]??0,S=r.at(-1)??a.lineCount-1,T=h.filter(y=>{const N=gc(a,y);return N!=null&&N<m}),E=h.filter(y=>{const N=gc(a,y);return N!=null&&N>S});return[...T.length>0?[{type:"lines",lines:T}]:[],{type:"hidden",oldStart:a.oldStart+m,newStart:a.newStart+m,lineCount:S-m+1},...E.length>0?[{type:"lines",lines:E}]:[]]}function _6(a,u,f,r=E2){const h=Ec(a,u),m=w2(a,h);if(m.length===0)return null;let S,T;if(f==="all")S=m[0]??0,T=m.at(-1)??a.lineCount-1,T=Math.min(T,S+o5-1);else if(f==="down"){for(S=m[0]??0,T=S;T+1<a.lineCount&&!h.has(T+1);)T+=1;T=Math.min(T,S+r-1)}else{for(T=m.at(-1)??a.lineCount-1,S=T;S-1>=0&&!h.has(S-1);)S-=1;S=Math.max(S,T-r+1)}return{oldStart:a.oldStart+S,newStart:a.newStart+S,lineCount:T-S+1}}function R6(a,u,f){const r=Ec(a,u);for(const h of f){const m=gc(a,h);m!=null&&r.set(m,h)}return{lines:Array.from(r.entries()).toSorted(([h],[m])=>h-m).map(([,h])=>h),loading:!1,error:null}}function fr(a,u){return Array.from(Ec(a,u).entries()).toSorted(([f],[r])=>f-r).map(([,f])=>f)}function D6(a,u){const f=new Map(rr(a).map(r=>[r.beforeHunkIndex,r]));return a.hunks.flatMap((r,h)=>{const m=f.get(h);return[...m?fr(m,u[m.id]):[],...r.lines]})}function L6(a,u){const f=new Map(rr(a).map(h=>[h.beforeHunkIndex,h])),r=a.hunks.map((h,m)=>{const S=f.get(m),T=S?fr(S,u[S.id]):[];return T.length>0?{...h,lines:[...T,...h.lines]}:h});return{...a,hunks:r}}function w2(a,u){const f=[];for(let r=0;r<a.lineCount;r+=1)u.has(r)||f.push(r);return f}function Ec(a,u){const f=new Map;if(!a||!u)return f;for(const r of u.lines){const h=gc(a,r);h!=null&&f.set(h,r)}return f}function gc(a,u){const f=u.oldLine==null?null:u.oldLine-a.oldStart;if(f!=null&&f>=0&&f<a.lineCount)return f;const r=u.newLine==null?null:u.newLine-a.newStart;return r!=null&&r>=0&&r<a.lineCount?r:null}const dr=50,hr=25,mr=75,Td=5;function Vi(a){return Number.isFinite(a)?Math.min(mr,Math.max(hr,a)):dr}function O6(a,u,f,r=dr){return!Number.isFinite(a)||!Number.isFinite(u)||!Number.isFinite(f)||f<=0?Vi(r):Vi((a-u)/f*100)}function k6(a,u){return u==="ArrowLeft"?Vi(a-Td):u==="ArrowRight"?Vi(a+Td):u==="Home"?hr:u==="End"?mr:null}function H6(a,u){return!a&&u>0}function pr(a){return`gloss-file-${encodeURIComponent(a)}`}function U6(a,u){const f=a.header.trim();return f.length>0&&u.some(h=>h.type==="context"&&h.oldLine!=null&&h.oldLine<a.oldStart&&h.content.trim()===f)?null:f||`@@ -${a.oldStart},${a.oldLines} +${a.newStart},${a.newLines} @@`}function Ha(a,u){return u==="L"?a.oldLine:a.newLine}function N2(a){return a.type==="add"?"+":a.type==="delete"?"-":" "}function B6(a,u,f,r,h){const m=h==="split"?a.filter(N=>Ha(N,u)!=null):a,S=m.findIndex(N=>Ha(N,u)===f),T=m.findIndex(N=>Ha(N,u)===r);if(S<0||T<0)return"";const E=m.slice(Math.min(S,T),Math.max(S,T)+1),y=new Set(E.map(N=>N.type)).size>1;return E.map(N=>y?`${N2(N)}${N.content}`:N.content).join(`
317
+ `)}function q6(a,u){const f=new Map;if(u==="unified")return a.forEach((m,S)=>{m.oldLine!=null&&f.set($n("L",m.oldLine),S),m.newLine!=null&&f.set($n("R",m.newLine),S)}),f;let r=0,h=0;for(const m of a)m.oldLine!=null&&(f.set($n("L",m.oldLine),r),r+=1),m.newLine!=null&&(f.set($n("R",m.newLine),h),h+=1);return f}function G6(a){const u=[];let f=[],r=[];const h=()=>{const m=Math.max(f.length,r.length);for(let S=0;S<m;S+=1)u.push({left:f[S]??null,right:r[S]??null});f=[],r=[]};for(const m of a)m.type==="context"?(h(),u.push({left:m,right:m})):m.type==="delete"?f.push(m):r.push(m);return h(),u}const Oe='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',ke='</title><path d="',He='"/></svg>',V6={title:"Android Studio",slug:"androidstudio",get svg(){return Oe+"Android Studio"+ke+this.path+He},path:"M19.2693 10.3368c-.3321 0-.6026.2705-.6026.6031v9.8324h-1.7379l-3.3355-6.9396c.476-.5387.6797-1.286.5243-2.0009a2.2862 2.2862 0 0 0-1.2893-1.6248v-.8124c.0121-.2871-.1426-.5787-.4043-.7407-.1391-.0825-.2884-.1234-.4402-.1234a.8478.8478 0 0 0-.4318.1182c-.2701.1671-.4248.4587-.4123.7662l-.0003.721c-1.0149.3668-1.6619 1.4153-1.4867 2.5197a2.282 2.282 0 0 0 .5916 1.2103l-3.2096 6.9064H4.0928c-1.0949-.007-1.9797-.8948-1.9832-1.9896V5.016c-.0055 1.1024.8836 2.0006 1.9859 2.0062a2.024 2.024 0 0 0 .1326-.0037h14.7453s2.5343-.2189 2.8619 1.5392c-.2491.0287-.4449.2321-.4449.4889 0 .7115-.5791 1.2901-1.3028 1.2901h-.8183zM17.222 22.5366c.2347.4837.0329 1.066-.4507 1.3007-.1296.0629-.2666.0895-.4018.0927a.9738.9738 0 0 1-.3194-.0455c-.024-.0078-.046-.0209-.0694-.0305a.9701.9701 0 0 1-.2277-.1321c-.0247-.0192-.0495-.038-.0724-.0598-.0825-.0783-.1574-.1672-.21-.2757l-1.2554-2.6143-1.5585-3.2452a.7725.7725 0 0 0-.6995-.4443h-.0024a.792.792 0 0 0-.7083.4443l-1.5109 3.2452-1.2321 2.6464a.9722.9722 0 0 1-.7985.5795c-.0626.0053-.1238-.0024-.185-.0087-.0344-.0036-.069-.0053-.1025-.0124-.0489-.0103-.0954-.0278-.142-.0452-.0301-.0113-.0613-.0197-.0901-.0339-.0496-.0244-.0948-.0565-.1397-.0889-.0217-.0156-.0457-.0275-.0662-.045a.9862.9862 0 0 1-.1695-.1844.9788.9788 0 0 1-.0708-.9852l.8469-1.8223 3.2676-7.0314a1.7964 1.7964 0 0 1-.7072-1.1637c-.1555-.9799.5129-1.9003 1.4928-2.0559V9.3946a.3542.3542 0 0 1 .1674-.3155.3468.3468 0 0 1 .3541 0 .354.354 0 0 1 .1674.3155v1.159l.0129.0064a1.8028 1.8028 0 0 1 1.2878 1.378 1.7835 1.7835 0 0 1-.6439 1.7836l3.3889 7.0507.8481 1.7643zM12.9841 12.306c.0042-.6081-.4854-1.1044-1.0935-1.1085a1.1204 1.1204 0 0 0-.7856.3219 1.101 1.101 0 0 0-.323.7716c-.0042.6081.4854 1.1044 1.0935 1.1085h.0077c.6046 0 1.0967-.488 1.1009-1.0935zm-1.027 5.2768c-.1119.0005-.2121.0632-.2571.1553l-1.4127 3.0342h3.3733l-1.4564-3.0328a.274.274 0 0 0-.2471-.1567zm8.1432-6.7459l-.0129-.0001h-.8177a.103.103 0 0 0-.103.103v12.9103a.103.103 0 0 0 .0966.103h.8435c.9861-.0035 1.7836-.804 1.7836-1.79V9.0468c0 .9887-.8014 1.7901-1.7901 1.7901zM2.6098 5.0161v.019c.0039.816.6719 1.483 1.4874 1.4869a12.061 12.061 0 0 1 .1309-.0034h1.1286c.1972-1.315.7607-2.525 1.638-3.4859H4.0993c-.9266.0031-1.6971.6401-1.9191 1.4975.2417.0355.4296.235.4296.4859zm6.3381-2.8977L7.9112.3284a.219.219 0 0 1 0-.2189A.2384.2384 0 0 1 8.098 0a.219.219 0 0 1 .1867.1094l1.0496 1.8158a6.4907 6.4907 0 0 1 5.3186 0L15.696.1094a.2189.2189 0 0 1 .3734.2189l-1.0302 1.79c1.6671.9125 2.7974 2.5439 3.0975 4.4018l-12.286-.0014c.3004-1.8572 1.4305-3.488 3.0972-4.4003zm5.3774 2.6202a.515.515 0 0 0 .5271.5028.515.515 0 0 0 .5151-.5151.5213.5213 0 0 0-.8885-.367.5151.5151 0 0 0-.1537.3793zm-5.7178-.0067a.5151.5151 0 0 0 .5207.5095.5086.5086 0 0 0 .367-.1481.5215.5215 0 1 0-.734-.7341.515.515 0 0 0-.1537.3727z",source:"https://developer.android.com/studio",hex:"3DDC84"},Y6={title:"CLion",slug:"clion",get svg(){return Oe+"CLion"+ke+this.path+He},path:"M0 0v24h24V0H0zm7.041 3a5.049 5.049 0 0 1 .219 0c1.86 0 3 .6 3.9 1.56L9.78 6.18C9 5.46 8.22 5.04 7.26 5.04c-1.68 0-2.88 1.38-2.88 3.12 0 1.68 1.2 3.12 2.88 3.12 1.14 0 1.86-.48 2.64-1.14l1.38 1.38c-1.02 1.08-2.16 1.8-4.08 1.8a5.1 5.1 0 0 1-5.1-5.16A5.049 5.049 0 0 1 7.04 3zm5.738.12H15v8.1h4.32v1.86h-6.54V3.12zM2.28 19.5h9V21h-9v-1.5Z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},X6={title:"CSS",slug:"css",get svg(){return Oe+"CSS"+ke+this.path+He},path:"M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63",source:"https://github.com/CSS-Next/logo.css/blob/bacc20878227204b283c68a6b935f8279e06b0cd/css.svg",hex:"663399",guidelines:"https://github.com/CSS-Next/logo.css"},Q6={title:"Cursor",slug:"cursor",get svg(){return Oe+"Cursor"+ke+this.path+He},path:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23",source:"https://cursor.com/brand",hex:"000000"},Z6={title:"DataGrip",slug:"datagrip",get svg(){return Oe+"DataGrip"+ke+this.path+He},path:"M0 0v24h24V0Zm17.1797 2.9477a5.452 5.452 0 0 1 3.9047 1.364L19.7078 5.972a3.672 3.672 0 0 0-2.596-1.0086c-1.6 0-2.8555 1.408-2.8555 3.096v.0282c0 1.816 1.2517 3.1523 3.0117 3.1523a3.492 3.492 0 0 0 2.064-.5921V9.2234h-2.2V7.336h4.3157v4.3157a6.436 6.436 0 0 1-4.2438 1.5757c-3.096 0-5.2242-2.1797-5.2242-5.1117v-.0281a5.1 5.1 0 0 1 5.2-5.1398zm-14.7438.1718h3.8758c3.12 0 5.2805 2.1439 5.2805 4.9399v.028c0 2.8-2.1605 4.968-5.2805 4.968H2.436Zm4.075 1.9688a2.852 2.852 0 0 0-.1992.003H4.6203v6h1.6914A2.832 2.832 0 0 0 9.304 8.1235v-.036a2.852 2.852 0 0 0-2.793-2.9991Zm-4.303 14.407h9v1.5h-9z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},K6={title:"Ghostty",slug:"ghostty",get svg(){return Oe+"Ghostty"+ke+this.path+He},path:"M12 0C6.7 0 2.4 4.3 2.4 9.6v11.146c0 1.772 1.45 3.267 3.222 3.254a3.18 3.18 0 0 0 1.955-.686 1.96 1.96 0 0 1 2.444 0 3.18 3.18 0 0 0 1.976.686c.75 0 1.436-.257 1.98-.686.715-.563 1.71-.587 2.419-.018.59.476 1.355.743 2.182.699 1.705-.094 3.022-1.537 3.022-3.244V9.601C21.6 4.3 17.302 0 12 0M6.069 6.562a1 1 0 0 1 .46.131l3.578 2.065v.002a.974.974 0 0 1 0 1.687L6.53 12.512a.975.975 0 0 1-.976-1.687L7.67 9.602 5.553 8.38a.975.975 0 0 1 .515-1.818m7.438 2.063h4.7a.975.975 0 1 1 0 1.95h-4.7a.975.975 0 0 1 0-1.95",source:"https://github.com/ghostty-org/website/blob/7093f052a2f35e0247fcb828ede644ed74a749a0/public/ghostty-logo.svg",hex:"3551F3"},$6={title:"GNU Bash",slug:"gnubash",get svg(){return Oe+"GNU Bash"+ke+this.path+He},path:"M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z",source:"https://github.com/odb/official-bash-logo/tree/61eff022f2dad3c7468f5deb4f06652d15f2c143",hex:"4EAA25",guidelines:"https://github.com/odb/official-bash-logo",license:{type:"MIT",url:"https://spdx.org/licenses/MIT"}},J6={title:"GNU Emacs",slug:"gnuemacs",get svg(){return Oe+"GNU Emacs"+ke+this.path+He},path:"M12,24C5.448,24,0.118,18.617,0.118,12S5.448,0,12,0c6.552,0,11.882,5.383,11.882,12S18.552,24,12,24z M12,0.661 C5.813,0.661,0.779,5.748,0.779,12S5.813,23.339,12,23.339c6.187,0,11.221-5.086,11.221-11.339S18.187,0.661,12,0.661z M8.03,20.197 c0,0,0.978,0.069,2.236-0.042c0.51-0.045,2.444-0.235,3.891-0.552c0,0,1.764-0.377,2.707-0.725c0.987-0.364,1.524-0.673,1.766-1.11 c-0.011-0.09,0.074-0.408-0.381-0.599c-1.164-0.488-2.514-0.4-5.185-0.457c-2.962-0.102-3.948-0.598-4.472-0.997 c-0.503-0.405-0.25-1.526,1.907-2.513c1.086-0.526,5.345-1.496,5.345-1.496c-1.434-0.709-4.109-1.955-4.659-2.224 c-0.482-0.236-1.254-0.591-1.421-1.021c-0.19-0.413,0.448-0.768,0.804-0.87c1.147-0.331,2.766-0.536,4.24-0.56 c0.741-0.012,0.861-0.059,0.861-0.059c1.022-0.17,1.695-0.869,1.414-1.976c-0.252-1.13-1.579-1.795-2.84-1.565 c-1.188,0.217-4.05,1.048-4.05,1.048c3.539-0.031,4.131,0.028,4.395,0.398c0.156,0.218-0.071,0.518-1.015,0.672 c-1.027,0.168-3.163,0.37-3.163,0.37c-2.049,0.122-3.492,0.13-3.925,1.046C6.202,7.564,6.787,8.094,7.043,8.425 c1.082,1.204,2.646,1.853,3.652,2.331c0.379,0.18,1.49,0.52,1.49,0.52c-3.265-0.18-5.619,0.823-7.001,1.977 c-1.562,1.445-0.871,3.168,2.33,4.228c1.891,0.626,2.828,0.921,5.648,0.667c1.661-0.09,1.923-0.036,1.939,0.1 c0.023,0.192-1.845,0.669-2.355,0.816C11.448,19.438,8.047,20.193,8.03,20.197z",source:"https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/images/icons/hicolor/scalable/apps/emacs.svg",hex:"7F5AB6",license:{type:"GPL-2.0-or-later",url:"https://spdx.org/licenses/GPL-2.0-or-later"}},F6={title:"Go",slug:"go",get svg(){return Oe+"Go"+ke+this.path+He},path:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z",source:"https://blog.golang.org/go-brand",hex:"00ADD8",guidelines:"https://blog.golang.org/go-brand"},W6={title:"GoLand",slug:"goland",get svg(){return Oe+"GoLand"+ke+this.path+He},path:"M0 0v24h24V0Zm6.764 3a5.448 5.448 0 0 1 3.892 1.356L9.284 6.012A3.652 3.652 0 0 0 6.696 5c-1.6 0-2.844 1.4-2.844 3.08v.028c0 1.812 1.244 3.14 3 3.14a3.468 3.468 0 0 0 2.048-.596V9.228H6.708v-1.88H11v4.296a6.428 6.428 0 0 1-4.228 1.572c-3.076 0-5.196-2.164-5.196-5.092v-.028A5.08 5.08 0 0 1 6.764 3Zm10.432 0c3.052 0 5.244 2.276 5.244 5.088v.028a5.116 5.116 0 0 1-5.272 5.12c-3.056-.02-5.248-2.296-5.248-5.112v-.028A5.116 5.116 0 0 1 17.196 3Zm-.028 2A2.96 2.96 0 0 0 14.2 8.068v.028a3.008 3.008 0 0 0 3 3.112 2.96 2.96 0 0 0 2.964-3.084v-.028A3.004 3.004 0 0 0 17.168 5ZM2.252 19.5h9V21h-9z",source:"https://www.jetbrains.com/company/brand/#logos-and-icons-jetbrains-logos",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/#brand-guidelines"},I6={title:"HTML5",slug:"html5",get svg(){return Oe+"HTML5"+ke+this.path+He},path:"M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438L1.5 0zm7.031 9.75l-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157H8.531z",source:"https://www.w3.org/html/logo/",hex:"E34F26"},P6={title:"IntelliJ IDEA",slug:"intellijidea",get svg(){return Oe+"IntelliJ IDEA"+ke+this.path+He},path:"M0 0v24h24V0zm3.723 3.111h5v1.834h-1.39v6.277h1.39v1.834h-5v-1.834h1.444V4.945H3.723zm11.055 0H17v6.5c0 .612-.055 1.111-.222 1.556-.167.444-.39.777-.723 1.11-.277.279-.666.557-1.11.668a3.933 3.933 0 0 1-1.445.278c-.778 0-1.444-.167-1.944-.445a4.81 4.81 0 0 1-1.279-1.056l1.39-1.555c.277.334.555.555.833.722.277.167.611.278.945.278.389 0 .721-.111 1-.389.221-.278.333-.667.333-1.278zM2.222 19.5h9V21h-9z",source:"https://www.jetbrains.com/idea/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},e8={title:"iTerm2",slug:"iterm2",get svg(){return Oe+"iTerm2"+ke+this.path+He},path:"M24 5.359v13.282A5.36 5.36 0 0 1 18.641 24H5.359A5.36 5.36 0 0 1 0 18.641V5.359A5.36 5.36 0 0 1 5.359 0h13.282A5.36 5.36 0 0 1 24 5.359m-.932-.233A4.196 4.196 0 0 0 18.874.932H5.126A4.196 4.196 0 0 0 .932 5.126v13.748a4.196 4.196 0 0 0 4.194 4.194h13.748a4.196 4.196 0 0 0 4.194-4.194zm-.816.233v13.282a3.613 3.613 0 0 1-3.611 3.611H5.359a3.613 3.613 0 0 1-3.611-3.611V5.359a3.613 3.613 0 0 1 3.611-3.611h13.282a3.613 3.613 0 0 1 3.611 3.611M8.854 4.194v6.495h.962V4.194zM5.483 9.493v1.085h.597V9.48q.283-.037.508-.133.373-.165.575-.448.208-.284.208-.649a.9.9 0 0 0-.171-.568 1.4 1.4 0 0 0-.426-.388 3 3 0 0 0-.544-.261 32 32 0 0 0-.545-.209 1.8 1.8 0 0 1-.426-.216q-.164-.12-.164-.284 0-.223.179-.351.18-.126.485-.127.344 0 .575.105.239.105.5.298l.433-.5a2.3 2.3 0 0 0-.605-.433 1.6 1.6 0 0 0-.582-.159v-.968h-.597v.978a2 2 0 0 0-.477.127 1.2 1.2 0 0 0-.545.411q-.194.268-.194.634 0 .335.164.56.164.224.418.38a4 4 0 0 0 .552.262q.291.104.545.209.261.104.425.238a.39.39 0 0 1 .165.321q0 .225-.187.359-.18.134-.537.134-.381 0-.717-.134a4.4 4.4 0 0 1-.649-.351l-.388.589q.209.173.477.306.276.135.575.217.191.046.373.064",source:"https://github.com/gnachman/iTerm2/blob/6a857f3f5872eb1465ddc0dd83412015991e79ae/images/AppIcon/iTermIcon.sketch",hex:"000000"},t8={title:"JavaScript",slug:"javascript",get svg(){return Oe+"JavaScript"+ke+this.path+He},path:"M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179l.004-.056z",source:"https://github.com/voodootikigod/logo.js/blob/1544bdeed6d618a6cfe4f0650d04ab8d9cfa76d9/js.svg",hex:"F7DF1E",license:{type:"MIT",url:"https://spdx.org/licenses/MIT"}},n8={title:"JSON",slug:"json",get svg(){return Oe+"JSON"+ke+this.path+He},path:"M12.043 23.968c.479-.004.953-.029 1.426-.094a11.805 11.805 0 003.146-.863 12.404 12.404 0 003.793-2.542 11.977 11.977 0 002.44-3.427 11.794 11.794 0 001.02-3.476c.149-1.16.135-2.346-.045-3.499a11.96 11.96 0 00-.793-2.788 11.197 11.197 0 00-.854-1.617c-1.168-1.837-2.861-3.314-4.81-4.3a12.835 12.835 0 00-2.172-.87h-.005c.119.063.24.132.345.201.12.074.239.146.351.225a8.93 8.93 0 011.559 1.33c1.063 1.145 1.797 2.548 2.218 4.041.284.982.434 1.998.495 3.017.044.743.044 1.491-.047 2.229-.149 1.27-.554 2.51-1.228 3.596a7.475 7.475 0 01-1.903 2.084c-1.244.928-2.877 1.482-4.436 1.114a3.916 3.916 0 01-.748-.258 4.692 4.692 0 01-.779-.45 6.08 6.08 0 01-1.244-1.105 6.507 6.507 0 01-1.049-1.747 7.366 7.366 0 01-.494-2.54c-.03-1.273.225-2.553.854-3.67a6.43 6.43 0 011.663-1.918c.225-.178.464-.333.704-.479l.016-.007a5.121 5.121 0 00-1.441-.12 4.963 4.963 0 00-1.228.24c-.359.12-.704.27-1.019.45a6.146 6.146 0 00-.733.494c-.211.18-.42.36-.615.555-1.123 1.153-1.768 2.682-2.022 4.256-.15.973-.15 1.96-.091 2.95.105 1.395.391 2.787.945 4.062a8.518 8.518 0 001.348 2.173 8.14 8.14 0 003.132 2.23 7.934 7.934 0 002.113.54c.074.015.149.015.209.015zm-2.934-.398a4.102 4.102 0 01-.45-.228 8.5 8.5 0 01-2.038-1.534c-1.094-1.137-1.827-2.566-2.247-4.08a15.184 15.184 0 01-.495-3.172 12.14 12.14 0 01.046-2.082c.135-1.257.495-2.501 1.124-3.58a6.889 6.889 0 011.783-2.053 6.23 6.23 0 011.633-.9 5.363 5.363 0 013.522-.045c.029 0 .029 0 .045.03.015.015.045.015.06.03.045.016.104.045.165.074.239.12.479.271.704.42a6.294 6.294 0 012.097 2.502c.42.914.615 1.934.631 2.938.014 1.079-.18 2.157-.645 3.146a6.42 6.42 0 01-2.638 2.832c.09.03.18.045.271.075.225.044.449.074.688.074 1.468.045 2.892-.66 3.94-1.647.195-.18.375-.375.54-.585.225-.27.435-.54.614-.823.239-.375.435-.75.614-1.154a8.112 8.112 0 00.509-1.664c.196-1.004.211-2.022.149-3.026-.135-2.022-.673-4.045-1.842-5.724a9.054 9.054 0 00-.555-.719 9.868 9.868 0 00-1.063-1.034 8.477 8.477 0 00-1.363-.915 9.927 9.927 0 00-1.692-.598l-.3-.06c-.209-.03-.42-.044-.634-.06a8.453 8.453 0 00-1.015.016c-.704.045-1.412.16-2.112.337C5.799 1.227 2.863 3.566 1.3 6.67A11.834 11.834 0 00.238 9.801a11.81 11.81 0 00-.104 3.775c.12 1.02.374 2.023.778 2.977.227.57.511 1.124.825 1.648 1.094 1.783 2.683 3.236 4.51 4.24.688.39 1.408.69 2.157.944.226.074.45.15.689.21z",source:"https://commons.wikimedia.org/wiki/File:JSON_vector_logo.svg",hex:"000000"},l8={title:"Lapce",slug:"lapce",get svg(){return Oe+"Lapce"+ke+this.path+He},path:"M3.802 1.267 1.608 0v24L8 20.31v-2.535L3.802 20.2Zm4.208 13.9V6.231L18.003 12l-7.798 4.503v2.533L22.392 12 5.806 2.424V16.44Zm5.598-3.231L10.205 9.97v3.93Z",source:"https://github.com/lapce/lapce/blob/95c4cf2d87083e348c0b621d0be0ea17f79ed703/extra/images/logo.svg",hex:"3B82F6"},a8={title:"Markdown",slug:"markdown",get svg(){return Oe+"Markdown"+ke+this.path+He},path:"M22.27 19.385H1.73A1.73 1.73 0 010 17.655V6.345a1.73 1.73 0 011.73-1.73h20.54A1.73 1.73 0 0124 6.345v11.308a1.73 1.73 0 01-1.73 1.731zM5.769 15.923v-4.5l2.308 2.885 2.307-2.885v4.5h2.308V8.078h-2.308l-2.307 2.885-2.308-2.885H3.46v7.847zM21.232 12h-2.309V8.077h-2.307V12h-2.308l3.461 4.039z",source:"https://github.com/dcurtis/markdown-mark/tree/360a3657fef7f6ad0b303296a95ad52985caa0d3",hex:"000000",guidelines:"https://github.com/dcurtis/markdown-mark",license:{type:"CC0-1.0",url:"https://spdx.org/licenses/CC0-1.0"}},i8={title:"Neovim",slug:"neovim",get svg(){return Oe+"Neovim"+ke+this.path+He},path:"M2.214 4.954v13.615L7.655 24V10.314L3.312 3.845 2.214 4.954zm4.999 17.98l-4.557-4.548V5.136l.59-.596 3.967 5.908v12.485zm14.573-4.457l-.862.937-4.24-6.376V0l5.068 5.092.034 13.385zM7.431.001l12.998 19.835-3.637 3.637L3.787 3.683 7.43 0z",source:"https://neovim.io",hex:"57A143",license:{type:"CC-BY-SA-3.0",url:"https://spdx.org/licenses/CC-BY-SA-3.0"}},s8={title:"PhpStorm",slug:"phpstorm",get svg(){return Oe+"PhpStorm"+ke+this.path+He},path:"M7.833 6.611v-.055c0-1-.667-1.5-1.778-1.5H4.389v3.056h1.722c1.111-.001 1.722-.668 1.722-1.501zM0 0v24h24V0H0zm2.167 3.111h4.056c2.389 0 3.833 1.389 3.833 3.445v.055c0 2.333-1.778 3.5-4.056 3.5H4.333v3H2.167v-10zM11.278 21h-9v-1.5h9V21zM18.5 10.222c0 2-1.5 3.111-3.667 3.111-1.5-.056-3-.611-4.222-1.667l1.278-1.556c.89.722 1.833 1.222 3 1.222.889 0 1.444-.333 1.444-.944v-.056c0-.555-.333-.833-2-1.277C12.333 8.555 11 8 11 6v-.056c0-1.833 1.444-3 3.5-3 1.444 0 2.723.444 3.723 1.278l-1.167 1.667c-.889-.611-1.777-1-2.611-1-.833 0-1.278.389-1.278.889v.056c0 .667.445.889 2.167 1.333 2 .556 3.167 1.278 3.167 3v.055z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},c8={title:"PyCharm",slug:"pycharm",get svg(){return Oe+"PyCharm"+ke+this.path+He},path:"M7.833 6.666v-.055c0-1-.667-1.5-1.778-1.5H4.389v3.055h1.723c1.111 0 1.721-.666 1.721-1.5zM0 0v24h24V0H0zm2.223 3.167h4c2.389 0 3.833 1.389 3.833 3.445v.055c0 2.278-1.778 3.5-4.001 3.5H4.389v2.945H2.223V3.167zM11.277 21h-9v-1.5h9V21zm4.779-7.777c-2.944.055-5.111-2.223-5.111-5.057C10.944 5.333 13.056 3 16.111 3c1.889 0 3 .611 3.944 1.556l-1.389 1.61c-.778-.722-1.556-1.111-2.556-1.111-1.658 0-2.873 1.375-2.887 3.084.014 1.709 1.174 3.083 2.887 3.083 1.111 0 1.833-.445 2.61-1.167l1.39 1.389c-.999 1.112-2.166 1.779-4.054 1.779z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},u8={title:"Python",slug:"python",get svg(){return Oe+"Python"+ke+this.path+He},path:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z",source:"https://www.python.org/community/logos/",hex:"3776AB",guidelines:"https://www.python.org/community/logos/"},Md={title:"React",slug:"react",get svg(){return Oe+"React"+ke+this.path+He},path:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",source:"https://github.com/facebook/create-react-app/blob/282c03f9525fdf8061ffa1ec50dce89296d916bd/test/fixtures/relative-paths/src/logo.svg",hex:"61DAFB"},o8={title:"Ruby",slug:"ruby",get svg(){return Oe+"Ruby"+ke+this.path+He},path:"M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z",source:"https://www.ruby-lang.org/en/about/logo/",hex:"CC342D",license:{type:"CC-BY-SA-2.5",url:"https://spdx.org/licenses/CC-BY-SA-2.5"}},r8={title:"RubyMine",slug:"rubymine",get svg(){return Oe+"RubyMine"+ke+this.path+He},path:"M0 0v24h24V0Zm3.056 3H6.92q.945 0 1.665.347t1.106.977c.262.42.392.902.392 1.46q0 .835-.399 1.478a2.6 2.6 0 0 1-1.125.99 2 2 0 0 1-.297.103q-.066.02-.13.04L10.276 12H8.264l-1.94-3.4H4.811V12H3.056Zm8.51 0h2.444l1.851 5.907.154.773.136-.773L17.937 3h2.482v9h-1.736V5.578l.026-.47L16.613 12H15.34l-2.07-6.846.026.424V12h-1.73ZM4.812 4.459V7.14h1.993q.444-.001.771-.161.335-.167.515-.47c.12-.205.18-.439.18-.713q0-.411-.18-.707a1.17 1.17 0 0 0-.515-.462 1.7 1.7 0 0 0-.77-.168ZM2.996 19.2h9.6V21h-9.6z",source:"https://www.jetbrains.com/company/brand/logos",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand"},f8={title:"Rust",slug:"rust",get svg(){return Oe+"Rust"+ke+this.path+He},path:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z",source:"https://www.rust-lang.org",hex:"000000",guidelines:"https://www.rust-lang.org/policies/media-guide",license:{type:"CC-BY-SA-4.0",url:"https://spdx.org/licenses/CC-BY-SA-4.0"}},d8={title:"Sublime Text",slug:"sublimetext",get svg(){return Oe+"Sublime Text"+ke+this.path+He},path:"M20.953.004a.397.397 0 0 0-.18.017L3.225 5.585c-.175.055-.323.214-.402.398a.42.42 0 0 0-.06.22v5.726a.42.42 0 0 0 .06.22c.079.183.227.341.402.397l7.454 2.364-7.454 2.363c-.255.08-.463.374-.463.655v5.688c0 .282.208.444.463.363l17.55-5.565c.237-.075.426-.336.452-.6.003-.022.013-.04.013-.065V12.06c0-.281-.208-.575-.463-.656L13.4 9.065l7.375-2.339c.255-.08.462-.375.462-.656V.384c0-.211-.117-.355-.283-.38z",source:"https://www.sublimetext.com",hex:"FF9800"},h8={title:"Swift",slug:"swift",get svg(){return Oe+"Swift"+ke+this.path+He},path:"M7.508 0c-.287 0-.573 0-.86.002-.241.002-.483.003-.724.01-.132.003-.263.009-.395.015A9.154 9.154 0 0 0 4.348.15 5.492 5.492 0 0 0 2.85.645 5.04 5.04 0 0 0 .645 2.848c-.245.48-.4.972-.495 1.5-.093.52-.122 1.05-.136 1.576a35.2 35.2 0 0 0-.012.724C0 6.935 0 7.221 0 7.508v8.984c0 .287 0 .575.002.862.002.24.005.481.012.722.014.526.043 1.057.136 1.576.095.528.25 1.02.495 1.5a5.03 5.03 0 0 0 2.205 2.203c.48.244.97.4 1.498.495.52.093 1.05.124 1.576.138.241.007.483.009.724.01.287.002.573.002.86.002h8.984c.287 0 .573 0 .86-.002.241-.001.483-.003.724-.01a10.523 10.523 0 0 0 1.578-.138 5.322 5.322 0 0 0 1.498-.495 5.035 5.035 0 0 0 2.203-2.203c.245-.48.4-.972.495-1.5.093-.52.124-1.05.138-1.576.007-.241.009-.481.01-.722.002-.287.002-.575.002-.862V7.508c0-.287 0-.573-.002-.86a33.662 33.662 0 0 0-.01-.724 10.5 10.5 0 0 0-.138-1.576 5.328 5.328 0 0 0-.495-1.5A5.039 5.039 0 0 0 21.152.645 5.32 5.32 0 0 0 19.654.15a10.493 10.493 0 0 0-1.578-.138 34.98 34.98 0 0 0-.722-.01C17.067 0 16.779 0 16.492 0H7.508zm6.035 3.41c4.114 2.47 6.545 7.162 5.549 11.131-.024.093-.05.181-.076.272l.002.001c2.062 2.538 1.5 5.258 1.236 4.745-1.072-2.086-3.066-1.568-4.088-1.043a6.803 6.803 0 0 1-.281.158l-.02.012-.002.002c-2.115 1.123-4.957 1.205-7.812-.022a12.568 12.568 0 0 1-5.64-4.838c.649.48 1.35.902 2.097 1.252 3.019 1.414 6.051 1.311 8.197-.002C9.651 12.73 7.101 9.67 5.146 7.191a10.628 10.628 0 0 1-1.005-1.384c2.34 2.142 6.038 4.83 7.365 5.576C8.69 8.408 6.208 4.743 6.324 4.86c4.436 4.47 8.528 6.996 8.528 6.996.154.085.27.154.36.213.085-.215.16-.437.224-.668.708-2.588-.09-5.548-1.893-7.992z",source:"https://developer.apple.com/swift/resources/",hex:"F05138",guidelines:"https://developer.apple.com/swift/resources/"},m8={title:"TypeScript",slug:"typescript",get svg(){return Oe+"TypeScript"+ke+this.path+He},path:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z",source:"https://www.typescriptlang.org/branding",hex:"3178C6",guidelines:"https://www.typescriptlang.org/branding"},p8={title:"Vim",slug:"vim",get svg(){return Oe+"Vim"+ke+this.path+He},path:"M24 11.986h-.027l-4.318-4.318 4.303-4.414V1.461l-.649-.648h-8.198l-.66.605v1.045L12.015.027V0L12 .014 11.986 0v.027l-1.29 1.291-.538-.539H2.035l-.638.692v1.885l.616.616h.72v5.31L.027 11.987H0L.014 12 0 12.014h.027l2.706 2.706v6.467l.907.523h2.322l1.857-1.904 4.166 4.166V24l.015-.014.014.014v-.028l2.51-2.509h.485c.111 0 .211-.07.25-.179l.146-.426c.028-.084.012-.172-.037-.239l1.462-1.462-.612 1.962c-.043.141.036.289.177.332.025.008.052.012.078.012h1.824c.106-.001.201-.064.243-.163l.165-.394c.025-.065.024-.138-.004-.203-.027-.065-.08-.116-.146-.142-.029-.012-.062-.019-.097-.02h-.075l.84-2.644h1.232l-1.016 3.221c-.043.141.036.289.176.332.025.008.052.012.079.012h2.002c.11 0 .207-.066.248-.17l.164-.428c.051-.138-.021-.29-.158-.341-.029-.011-.06-.017-.091-.017h-.145l1.131-3.673c.027-.082.012-.173-.039-.24l-.375-.504-.003-.005c-.051-.064-.127-.102-.209-.102h-1.436c-.071 0-.141.03-.19.081l-.4.439h-.624l-.042-.046 4.445-4.445H24L23.986 12l.014-.014zM9.838 21.139l1.579-4.509h-.501l.297-.304h1.659l-1.563 4.555h.623l-.079.258H9.838zm3.695-7.516l.15.151-.269.922-.225.226h-.969l-.181-.181.311-.871.288-.247h.895zM5.59 20.829H3.877l-.262-.15V3.091H2.379l-.1-.1V1.815l.143-.154h7.371l.213.214v1.108l-.142.173H8.785v8.688l8.807-8.688h-2.086l-.175-.188V1.805l.121-.111h7.49l.132.133v1.07L12.979 13.25h-.373c-.015-.001-.028 0-.042.001l-.02.003c-.045.01-.086.03-.119.06l-.343.295-.004.003c-.033.031-.059.069-.073.111l-.296.83-6.119 6.276zm14.768-3.952l.474-.519h1.334l.309.415-1.265 4.107h.493l-.08.209H19.84l1.124-3.564h-2.015l-1.077 3.391h.424l-.073.174h-1.605l1.107-3.548h-2.096l-1.062 3.339h.436l-.072.209H13.27l1.514-4.46H14.198l.091-.271h1.65l.519.537h.906l.491-.554h1.061l.489.535h.953z",source:"https://commons.wikimedia.org/wiki/File:Vimlogo.svg",hex:"019733"},y8={title:"VSCodium",slug:"vscodium",get svg(){return Oe+"VSCodium"+ke+this.path+He},path:"M11.583.54a1.467 1.467 0 0 0-.441 2.032c2.426 3.758 2.999 6.592 2.75 9.075-1.004 4.756-3.187 5.721-5.094 5.721-1.863 0-1.364-3.065.036-3.962.836-.522 1.906-.861 2.728-.861.814 0 1.474-.658 1.474-1.47 0-.812-.66-1.47-1.474-1.47-.96 0-1.901.202-2.78.545.18-.847.246-1.762.014-2.735-.352-1.477-1.367-2.889-3.128-4.257a1.476 1.476 0 0 0-2.069.256c-.5.64-.384 1.564.259 2.063 1.435 1.114 1.908 1.939 2.07 2.618.162.679.032 1.407-.293 2.408-.416 1.349-.9 2.553-1.11 3.708-.105.568-.114 1.187-.14 1.68-1.034-1.006-1.438-2.336-1.438-4.279 0-.811-.66-1.47-1.474-1.47-.814.001-1.473.659-1.473 1.47 0 2.654.776 5.179 2.855 6.863 1.883 1.793 6.67 1.13 6.67 4.01 0 .812 1.19 1.208 2.004 1.208.834 0 1.885-.558 1.885-1.208 0-3.267 3.443-5.253 9.11-5.244A1.472 1.472 0 0 0 24 15.773 1.472 1.472 0 0 0 22.53 14.3c-.388 0-.765.013-1.138.035.634-1.49.915-3.13.857-4.903a1.473 1.473 0 0 0-1.522-1.42 1.472 1.472 0 0 0-1.425 1.517c.076 2.32-.01 4.393-1.74 5.485-.49.31-1.062.58-1.604.58.42-1.145.738-2.353.869-3.655.083-.83.091-1.818-.003-2.585-.148-1.188-.325-2.535.126-3.55.405-.874 1.313-1.24 2.645-1.24.814 0 1.473-.659 1.473-1.47 0-.811-.659-1.47-1.473-1.47-1.98 0-3.481 1.042-4.332 2.3-.445-.95-.987-1.929-1.642-2.943a1.474 1.474 0 0 0-2.037-.44z",source:"https://github.com/VSCodium/vscodium.github.io/blob/ed028c57f10e6432ec55dfc34d4db1a83fba941d/img/codium_cnl.svg",hex:"2F80ED"},g8={title:"WebStorm",slug:"webstorm",get svg(){return Oe+"WebStorm"+ke+this.path+He},path:"M0 0v24h24V0H0zm17.889 2.889c1.444 0 2.667.444 3.667 1.278l-1.111 1.667c-.889-.611-1.722-1-2.556-1s-1.278.389-1.278.889v.056c0 .667.444.889 2.111 1.333 2 .556 3.111 1.278 3.111 3v.056c0 2-1.5 3.111-3.611 3.111-1.5-.056-3-.611-4.167-1.667l1.278-1.556c.889.722 1.833 1.222 2.944 1.222.889 0 1.389-.333 1.389-.944v-.056c0-.556-.333-.833-2-1.278-2-.5-3.222-1.056-3.222-3.056v-.056c0-1.833 1.444-3 3.444-3zm-16.111.222h2.278l1.5 5.778 1.722-5.778h1.667l1.667 5.778 1.5-5.778h2.333l-2.833 9.944H9.723L8.112 7.277l-1.667 5.778H4.612L1.779 3.111zm.5 16.389h9V21h-9v-1.5z",source:"https://www.jetbrains.com/company/brand/logos",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand"},v8={title:"Windsurf",slug:"windsurf",get svg(){return Oe+"Windsurf"+ke+this.path+He},path:"M23.55 5.067c-1.2038-.002-2.1806.973-2.1806 2.1765v4.8676c0 .972-.8035 1.7594-1.7597 1.7594-.568 0-1.1352-.286-1.4718-.7659l-4.9713-7.1003c-.4125-.5896-1.0837-.941-1.8103-.941-1.1334 0-2.1533.9635-2.1533 2.153v4.8957c0 .972-.7969 1.7594-1.7596 1.7594-.57 0-1.1363-.286-1.4728-.7658L.4076 5.1598C.2822 4.9798 0 5.0688 0 5.2882v4.2452c0 .2147.0656.4228.1884.599l5.4748 7.8183c.3234.462.8006.8052 1.3509.9298 1.3771.313 2.6446-.747 2.6446-2.0977v-4.893c0-.972.7875-1.7593 1.7596-1.7593h.003a1.798 1.798 0 0 1 1.4718.7658l4.9723 7.0994c.4135.5905 1.05.941 1.8093.941 1.1587 0 2.1515-.9645 2.1515-2.153v-4.8948c0-.972.7875-1.7594 1.7596-1.7594h.194a.22.22 0 0 0 .2204-.2202v-4.622a.22.22 0 0 0-.2203-.2203Z",source:"https://windsurf.com/brand",hex:"0B100F",guidelines:"https://windsurf.com/brand"},b8={title:"Xcode",slug:"xcode",get svg(){return Oe+"Xcode"+ke+this.path+He},path:"M19.06 5.3327c.4517-.1936.7744-.2581 1.097-.1936.5163.1291.7744.5163.968.7098.1936.3872.9034.7744 1.2261.8389.2581.0645.7098-.6453 1.0325-1.2906.3227-.5808.5163-1.3552.4517-1.5488-.0645-.1936-.968-.5808-1.1616-.5808-.1291 0-.3872.1291-.8389.0645-.4517-.0645-.9034-.5808-1.1616-.968-.4517-.6453-1.097-1.0325-1.6778-1.3552-.6453-.3227-1.3552-.5163-2.065-.6453-1.0325-.2581-2.065-.4517-3.0975-.3227-.5808.0645-1.2906.1291-1.8069.3227-.0645 0-.1936.1936-.0645.1936s.5808.0645.5808.0645-.5807.1292-.5807.2583c0 .1291.0645.1291.1291.1291.0645 0 1.4842-.0645 2.065 0 .6453.1291 1.3552.4517 1.8069 1.2261.7744 1.4197.4517 2.7749.2581 3.2266-.968 2.1295-8.6472 15.2294-9.0344 16.1328-.3873.9034-.5163 1.4842.5807 2.065s1.6778.3227 2.0005-.0645c.3872-.5163 7.0339-17.1654 9.2925-18.2624zm-3.6138 8.7117h1.5488c1.0325 0 1.2261.5163 1.2261.7098.0645.5163-.1936 1.1616-1.2261 1.1616h-.968l.7744 1.2906c.4517.7744.2581 1.1616 0 1.4197-.3872.3872-1.2261.3872-1.6778-.4517l-.9034-1.5488c-.6453 1.4197-1.2906 2.9684-2.065 4.7753h4.0009c1.9359 0 3.5492-1.6133 3.5492-3.5492V6.5588c-.0645-.1291-.1936-.0645-.2581 0-.3872.4517-1.4842 2.0004-4.001 7.4856zm-9.8087 8.0019h-.3227c-2.3231 0-4.1945-1.8714-4.1945-4.1945V7.0105c0-2.3231 1.8714-4.1945 4.1945-4.1945h9.3571c-.1936-.1936-.968-.5163-1.7423-.4517-.3227 0-.968.1291-1.3552-.1291-.3872-.3227-.3227-.5163-.9034-.5163H4.9277c-2.6458 0-4.7753 2.1295-4.7753 4.7753v11.7447c0 2.6458 2.1295 4.7753 4.4527 4.7108.6452 0 .8388-.5162 1.0324-.9034zM20.4152 6.9459v10.9058c0 2.3231-1.8714 4.1945-4.1945 4.1945H11.897s-.3872 1.0325.8389 1.0325h3.8719c2.6458 0 4.7753-2.1295 4.7753-4.7753V8.8173c.0646-.9034-.7098-1.4842-.9679-1.8714zm-18.5851.0646v10.8413c0 1.9359 1.6133 3.5492 3.5492 3.5492h.5808c0-.0645.7744-1.4197 2.4522-4.2591.1936-.3872.4517-.7744.7098-1.2261H4.4114c-.5808 0-.9034-.3872-.968-.7098-.1291-.5163.1936-1.1616.9034-1.1616h2.3877l3.033-5.2916s-.7098-1.2906-.9034-1.6133c-.2582-.4517-.1291-.9034.129-1.1615.3872-.3872 1.0325-.5808 1.6778.4517l.2581.3872.2581-.3872c.5808-.8389.968-.7744 1.2906-.7098.5163.1291.8389.7098.3872 1.6133L8.864 14.0444h1.3552c.4517-.7744.9034-1.5488 1.3552-2.3877-.0645-.3227-.1291-.7098-.0645-1.0325.0645-.5163.3227-.968.6453-1.3552l.3872.6453c1.2261-2.1295 2.1295-3.9364 2.3877-4.6463.1291-.3872.3227-1.1616.1291-1.8069H5.3794c-2.0005.0001-3.5493 1.6134-3.5493 3.5494zM4.605 17.7872c0-.0645.7744-1.4197.7744-1.4197 1.2261-.3227 1.8069.4517 1.8714.5163 0 0-.8389 1.4842-1.097 1.7423s-.5808.3227-.9034.2581c-.5164-.129-.839-.6453-.6454-1.097z",source:"https://developer.apple.com/develop",hex:"147EFB"},x8={title:"YAML",slug:"yaml",get svg(){return Oe+"YAML"+ke+this.path+He},path:"m0 .97 4.111 6.453v4.09h2.638v-4.09L11.053.969H8.214L5.58 5.125 2.965.969Zm12.093.024-4.47 10.544h2.114l.97-2.345h4.775l.804 2.345h2.26L14.255.994Zm1.133 2.225 1.463 3.87h-3.096zm3.06 9.475v10.29H24v-2.199h-5.454v-8.091zm-12.175.002v10.335h2.217v-7.129l2.32 4.792h1.746l2.4-4.96v7.295h2.127V12.696h-2.904L9.44 17.37l-2.455-4.674Z",source:"https://commons.wikimedia.org/wiki/File:Official_YAML_Logo.svg",hex:"CB171E"},S8={title:"Zed Industries",slug:"zedindustries",get svg(){return Oe+"Zed Industries"+ke+this.path+He},path:"M2.25 1.5a.75.75 0 0 0-.75.75v16.5H0V2.25A2.25 2.25 0 0 1 2.25 0h20.095c1.002 0 1.504 1.212.795 1.92L10.764 14.298h3.486V12.75h1.5v1.922a1.125 1.125 0 0 1-1.125 1.125H9.264l-2.578 2.578h11.689V9h1.5v9.375a1.5 1.5 0 0 1-1.5 1.5H5.185L2.562 22.5H21.75a.75.75 0 0 0 .75-.75V5.25H24v16.5A2.25 2.25 0 0 1 21.75 24H1.655C.653 24 .151 22.788.86 22.08L13.19 9.75H9.75v1.5h-1.5V9.375A1.125 1.125 0 0 1 9.375 8.25h5.314l2.625-2.625H5.625V15h-1.5V5.625a1.5 1.5 0 0 1 1.5-1.5h13.19L21.438 1.5z",source:"https://github.com/zed-industries/zed/blob/ccc939124fa2f366b3029926447fd0a0c46a85c7/assets/icons/logo_96.svg",hex:"084CCF"},j8=[{label:"Default app",target:"default"},{label:"Open in folder",target:"folder"}],Cd=190,Ad=172,fc=8,E8={"android-studio":{icon:V6,kind:"simple"},bbedit:{Icon:Tl,kind:"lucide"},clion:{icon:Y6,kind:"simple"},coteditor:{Icon:Tl,kind:"lucide"},cursor:{icon:Q6,kind:"simple"},datagrip:{icon:Z6,kind:"simple"},default:{Icon:oh,kind:"lucide"},emacs:{icon:J6,kind:"simple"},fleet:{Icon:Tl,kind:"lucide"},folder:{Icon:Id,kind:"lucide"},ghostty:{icon:K6,kind:"simple"},goland:{icon:W6,kind:"simple"},intellij:{icon:P6,kind:"simple"},iterm2:{icon:e8,kind:"simple"},lapce:{icon:l8,kind:"simple"},macvim:{icon:p8,kind:"simple"},neovide:{icon:i8,kind:"simple"},nova:{Icon:Tl,kind:"lucide"},phpstorm:{icon:s8,kind:"simple"},pycharm:{icon:c8,kind:"simple"},rubymine:{icon:r8,kind:"simple"},sublime:{icon:d8,kind:"simple"},terminal:{Icon:xm,kind:"lucide"},textedit:{Icon:Wd,kind:"lucide"},textmate:{Icon:Tl,kind:"lucide"},vscodium:{icon:y8,kind:"simple"},vscode:{Icon:Tl,kind:"lucide"},"vscode-insiders":{Icon:Tl,kind:"lucide"},webstorm:{icon:g8,kind:"simple"},windsurf:{icon:v8,kind:"simple"},xcode:{icon:b8,kind:"simple"},zed:{icon:S8,kind:"simple"}};function z2({fileContent:a,filePath:u,openTargets:f,wordWrap:r,onActionMessage:h,onCopyFileContents:m,onOpenFile:S,onWordWrapChange:T}){const[E,y]=j.useState(!1),[N,L]=j.useState(!1),[U,B]=j.useState(null),[Q,re]=j.useState(null),pe=j.useRef(null),$=j.useRef(null),me=j.useRef(null),ue=j.useRef(null),F=j.useRef(null),ge=j.useMemo(()=>f.length>0?f:j8,[f]),je=a!==void 0||m!==void 0,te=j.useCallback(()=>{y(!1),L(!1)},[]),Se=j.useCallback(()=>{E&&B(dc(pe.current,Cd)),N&&re(dc(ue.current,Ad))},[E,N]);j.useEffect(()=>{if(!(!E&&!N))return Se(),window.addEventListener("resize",Se),window.addEventListener("scroll",Se,!0),()=>{window.removeEventListener("resize",Se),window.removeEventListener("scroll",Se,!0)}},[E,N,Se]),j.useEffect(()=>{if(!E&&!N)return;const W=b=>{var Z,ae,fe;const H=b.target;!((Z=me.current)!=null&&Z.contains(H))&&!((ae=$.current)!=null&&ae.contains(H))&&!((fe=F.current)!=null&&fe.contains(H))&&te()},ve=b=>{b.key==="Escape"&&te()};return window.addEventListener("pointerdown",W),window.addEventListener("keydown",ve),()=>{window.removeEventListener("pointerdown",W),window.removeEventListener("keydown",ve)}},[E,te,N]);const we=async(W,ve)=>{te();try{await navigator.clipboard.writeText(W),h==null||h(`${ve} copied`)}catch(b){h==null||h(`Could not copy ${ve.toLowerCase()}: ${Xo(b)}`)}},_e=async()=>{te();try{const W=a??await(m==null?void 0:m());if(W===void 0)return;await navigator.clipboard.writeText(W),h==null||h("File contents copied")}catch(W){h==null||h(`Could not copy file contents: ${Xo(W)}`)}},de=async(W,ve)=>{te(),h==null||h(`Opening in ${ve}`);try{await S(W),h==null||h(`Opened in ${ve}`)}catch(b){h==null||h(`Could not open in ${ve}: ${Xo(b)}`)}},V=E&&U?Gi.createPortal(c.jsxs("div",{className:"file-actions-popover actions",ref:$,role:"menu",style:U,children:[c.jsxs("button",{role:"menuitem",type:"button",onClick:()=>we(u,"Path"),children:[c.jsx(_h,{size:16}),c.jsx("span",{children:"Copy path"})]}),je?c.jsxs("button",{role:"menuitem",type:"button",onClick:_e,children:[c.jsx(Wd,{size:16}),c.jsx("span",{children:"Copy file contents"})]}):null,T?c.jsxs("button",{"aria-checked":!!r,role:"menuitemcheckbox",type:"button",onClick:()=>{T(!r),te()},children:[c.jsx(n2,{size:16}),c.jsxs("span",{children:[r?"Disable":"Enable"," word wrap"]})]}):null]}),document.body):null,ee=N&&Q?Gi.createPortal(c.jsx("div",{className:"file-actions-popover open",ref:F,role:"menu",style:Q,children:ge.map((W,ve)=>c.jsxs("button",{className:ve===ge.length-1?"separated":"",role:"menuitem",type:"button",onClick:()=>de(W.target,W.label),children:[c.jsx(w8,{option:W}),c.jsx("span",{children:W.label})]},W.target))}),document.body):null;return c.jsxs("div",{className:"file-actions-menu",ref:me,children:[c.jsxs("div",{className:"file-actions-menu-group",children:[c.jsx("button",{"aria-expanded":E,"aria-haspopup":"menu","aria-label":"File actions",className:"icon-button file-actions-menu-trigger",ref:pe,type:"button",onClick:()=>{B(dc(pe.current,Cd)),y(W=>!W),L(!1)},children:c.jsx(Dh,{size:17})}),V]}),c.jsxs("div",{className:"file-actions-menu-group",children:[c.jsxs("button",{"aria-expanded":N,"aria-haspopup":"menu",className:"file-actions-open-button",ref:ue,type:"button",onClick:()=>{re(dc(ue.current,Ad)),L(W=>!W),y(!1)},children:[c.jsx(Oh,{size:16}),c.jsx("span",{children:"Open"}),c.jsx(Al,{size:15})]}),ee]})]})}function dc(a,u){if(!a)return null;const f=a.getBoundingClientRect(),r=Math.max(fc,window.innerWidth-f.right),h=Math.max(fc,window.innerWidth-u-fc);return{right:Math.min(r,h),top:f.bottom+fc}}function w8({option:a}){const u=E8[a.target];return u.kind==="simple"?c.jsx("svg",{"aria-hidden":"true",className:"file-actions-brand-icon",focusable:"false",role:"img",style:{color:N8(u.icon)},viewBox:"0 0 24 24",children:c.jsx("path",{d:u.icon.path})}):c.jsx(u.Icon,{"aria-hidden":"true",className:"file-actions-target-icon",size:16})}function N8(a){return a.hex==="000000"?"var(--ide-fg-muted)":`#${a.hex}`}function Xo(a){return a instanceof Error?a.message:String(a)}const z8={bash:$6,css:X6,go:F6,html:I6,js:t8,json:n8,jsx:Md,markdown:a8,python:u8,ruby:o8,rust:f8,swift:h8,ts:m8,tsx:Md,yaml:x8};function T8(a,u=!1){if(!a||u)return null;const f=z8[a];return f?{icon:f,color:C8(f.hex)}:null}function M8({isBinary:a=!1,language:u}){const f=T8(u,a);return f?c.jsx("span",{"aria-hidden":"true",className:"file-language-icon",style:{color:f.color},title:`${f.icon.title} file`,children:c.jsx("svg",{"aria-hidden":"true",className:"file-language-icon-svg",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{d:f.icon.path})})}):c.jsx("span",{"aria-hidden":"true",className:"file-language-icon",title:"File",children:c.jsx(lr,{size:17})})}function C8(a){const u=a.trim().replace(/^#/,"");if(!/^[\dA-Fa-f]{6}$/.test(u))return"currentColor";const f=Number.parseInt(u.slice(0,2),16),r=Number.parseInt(u.slice(2,4),16),h=Number.parseInt(u.slice(4,6),16),m=(.2126*f+.7152*r+.0722*h)/255;return m<.15||m>.9?"currentColor":`#${u}`}function A8({file:a,collapsed:u,viewed:f,onToggle:r,onCopyFileContents:h,onViewedChange:m,onOpenFile:S,openTargets:T}){return c.jsxs("div",{className:"file-header",children:[c.jsxs("button",{className:"file-header-toggle",type:"button",onClick:r,children:[u?c.jsx(Fd,{size:18}):c.jsx(Al,{size:18}),c.jsx(M8,{isBinary:a.isBinary,language:a.language}),c.jsx("span",{className:"file-path",children:a.path}),a.oldPath&&a.oldPath!==a.path?c.jsxs("span",{className:"rename-path",children:["from ",a.oldPath]}):null]}),c.jsxs("span",{className:"stat add",children:["+",a.additions]}),c.jsxs("span",{className:"stat del",children:["-",a.deletions]}),c.jsxs("label",{className:"viewed-toggle",children:[c.jsx("input",{type:"checkbox",checked:f,onChange:E=>m(E.currentTarget.checked)}),c.jsx("span",{children:"Viewed"})]}),c.jsx(z2,{filePath:a.path,openTargets:T,onCopyFileContents:h,onOpenFile:async E=>S(E)})]})}const _8=[];function R8({activeFilePath:a=null,contextSource:u,emptyState:f=null,files:r,record:h,diff:m=h.diff,readOnly:S=!1,reviewId:T,turnId:E,viewMode:y="unified",wrapLines:N=!1,viewedFiles:L=new Set,onViewedChange:U=()=>{},openTargets:B=_8,selectedSourcePeek:Q=null,onCopyFileContents:re,onOpenFile:pe=()=>{},onSourcePeek:$=()=>{},hiddenFiles:me=new Map,onRevealHiddenFile:ue=()=>{}}){const[F,ge]=j.useState(new Set),[je,te]=j.useState(dr),Se=j.useRef(a),we=j.useRef(null),_e=wt(b=>b.draft),de=wt(b=>b.setDraft),V=r??m.files,ee=b=>{var ae;const H=Vi(b),Z=(ae=we.current)==null?void 0:ae.style;return Z==null||Z.setProperty("--diff-split-position",`${H}%`),Z==null||Z.setProperty("--diff-split-left-track",`${H}fr`),Z==null||Z.setProperty("--diff-split-right-track",`${100-H}fr`),H},W=b=>{te(ee(b))};if(a!==Se.current&&(Se.current=a,a&&F.has(a))){const b=new Set(F);b.delete(a),ge(b)}const ve=(b,H)=>{H&&((_e==null?void 0:_e.filePath)===b&&de(null),ge(Z=>{const ae=new Set(Z);return ae.add(b),ae})),U(b,H)};return c.jsx("section",{className:"diff-stack",ref:we,style:{"--diff-split-position":`${je}%`,"--diff-split-left-track":`${je}fr`,"--diff-split-right-track":`${100-je}fr`},children:V.length===0?f??c.jsx(O8,{record:h}):V.map(b=>{const H=F.has(b.path),Z=me.get(b.path)??null;return c.jsxs("article",{className:`file-card ${a===b.path?"active":""}`,id:pr(b.path),children:[c.jsx(A8,{file:b,openTargets:B,collapsed:H,viewed:L.has(b.path),onToggle:()=>{!H&&(_e==null?void 0:_e.filePath)===b.path&&de(null),ge(ae=>{const fe=new Set(ae);return fe.has(b.path)?fe.delete(b.path):fe.add(b.path),fe})},onCopyFileContents:re?()=>re(b.path):void 0,onViewedChange:ae=>ve(b.path,ae),onOpenFile:ae=>pe(b.path,ae)}),H?null:Z?c.jsx(D8,{info:Z,onReveal:()=>ue(b.path)}):c.jsx(k8,{contextSource:u,file:b,readOnly:S,reviewId:T,selectedSourcePeek:Q,splitPanePercentage:je,turnId:E,viewMode:y,wrapLines:N,onSplitPaneChange:W,onSplitPanePreview:ee,onSourcePeek:$},`${b.oldPath??""}:${b.path}:${Q8(T,E,u)}`)]},`${b.oldPath??b.path}:${b.path}`)})})}function D8({info:a,onReveal:u}){const f=L8(a.presetLabels);return c.jsxs("div",{className:"hidden-diff-placeholder",children:[c.jsxs("div",{className:"hidden-diff-skeleton","aria-hidden":"true",children:[c.jsx("span",{}),c.jsx("span",{}),c.jsx("span",{}),c.jsx("span",{}),c.jsx("span",{})]}),c.jsxs("div",{className:"hidden-diff-message",children:[c.jsx("button",{className:"hidden-diff-load",type:"button",onClick:u,children:"Load diff"}),c.jsxs("p",{children:[f," are not rendered by default."]})]})]})}function L8(a){return a.length===0?"Files matching selected presets":a.length===1?a[0]:a.length===2?`${a[0]} and ${Qo(a[1])}`:`${a.slice(0,-1).map((u,f)=>f===0?u:Qo(u)).join(", ")}, and ${Qo(a[a.length-1])}`}function Qo(a){return`${a.charAt(0).toLowerCase()}${a.slice(1)}`}function O8({record:a}){const u=a.diff.scope;return u.mode==="branch"?c.jsxs("div",{className:"empty-diff",children:[c.jsx("h2",{children:"No branch changes"}),c.jsxs("p",{children:["Working tree is clean, and ",u.comparison.ref," matches ",u.base.ref,"."]})]}):u.fallbackReason==="missing-branch-base"?c.jsxs("div",{className:"empty-diff",children:[c.jsx("h2",{children:"No changes to review"}),c.jsx("p",{children:"Working tree is clean and no upstream or default branch ref was found."})]}):u.mode==="explicit"?c.jsxs("div",{className:"empty-diff",children:[c.jsxs("h2",{children:["No changes against ",u.base.ref]}),c.jsx("p",{children:"The captured diff for this explicit base is empty."})]}):c.jsxs("div",{className:"empty-diff",children:[c.jsx("h2",{children:"No working changes"}),c.jsx("p",{children:"Working tree is clean."})]})}function k8({contextSource:a,file:u,readOnly:f,reviewId:r,selectedSourcePeek:h,splitPanePercentage:m,turnId:S,viewMode:T,wrapLines:E,onSplitPaneChange:y,onSplitPanePreview:N,onSourcePeek:L}){const U=wt(G=>G.comments),B=wt(G=>G.resolution),Q=wt(G=>G.draft),re=wt(G=>G.setDraft),pe=wt(G=>G.updateComment),$=wt(G=>G.removeComment),{resolvedTheme:me}=or(),[ue,F]=j.useState(null),[ge,je]=j.useState(null),[te,Se]=j.useState(""),[we,_e]=j.useState(null),[de,V]=j.useState(null),[ee,W]=j.useState({}),ve=j.useRef(null),b=j.useRef(null),H=j.useRef(null),Z=j.useMemo(()=>rr(u),[u]),ae=j.useMemo(()=>new Map(Z.map(G=>[G.beforeHunkIndex,G])),[Z]),fe=j.useMemo(()=>L6(u,ee),[ee,u]),g=(de==null?void 0:de.file)===fe&&de.theme===me?de.lines:null,_=j.useMemo(()=>D6(u,ee),[ee,u]),C=j.useMemo(()=>q6(_,T),[T,_]),X=j.useMemo(()=>new Map(((B==null?void 0:B.comments)??[]).map(G=>[G.commentId,G])),[B]),q=U.filter(G=>qi(G)&&G.filePath===u.path),Y=(we==null?void 0:we.id)??null,K=ue&&ge&&ue.filePath===u.path&&ue.side===ge.side?Dd(C,ue.side,ue.line,ge.line):null,Ne=Q&&Q.filePath===u.path?Dd(C,Q.side,Q.startLine,Q.endLine):null,Me=G=>{const{start:ne,end:se}=G,oe=Math.min(ne.line,se.line),be=Math.max(ne.line,se.line),it=B6(_,ne.side,oe,be,T)||ne.snippet;Se(""),re({filePath:u.path,side:ne.side,startLine:oe,endLine:be,originalSnippet:it})},at=()=>{!we||we.body.trim().length===0||(pe(we.id,we.body),_e(null))};j.useEffect(()=>()=>{var G;return(G=b.current)==null?void 0:G.call(b)},[]),j.useEffect(()=>{var G;Y&&((G=H.current)==null||G.focus({preventScroll:!0}))},[Y]);const ft=G=>{var oe;if(G.dataset.filePath!==u.path)return null;const ne=G.dataset.side,se=Number(G.dataset.line);return ne!=="L"&&ne!=="R"||!Number.isFinite(se)?null:{filePath:u.path,side:ne,line:se,snippet:((oe=G.querySelector("code"))==null?void 0:oe.textContent)??""}},nt=G=>{const ne=ft(G);ne&&Ot(ne)},At=(G,ne)=>{var it;if(ne.button!==0)return;ne.preventDefault(),(it=b.current)==null||it.call(b),ve.current={start:G,end:G},F(G),je(G);const se=Ie=>{var kt;const bt=(kt=document.elementFromPoint(Ie.clientX,Ie.clientY))==null?void 0:kt.closest(".diff-row");bt&&nt(bt)},oe=Ie=>{se(Ie);const bt=ve.current;bt&&Me(bt),ze()},be=()=>ze();window.addEventListener("mousemove",se),window.addEventListener("mouseup",oe),window.addEventListener("blur",be),b.current=()=>{window.removeEventListener("mousemove",se),window.removeEventListener("mouseup",oe),window.removeEventListener("blur",be),b.current=null}},ut=(G,ne)=>{var se;ne.key!=="Enter"&&ne.key!==" "||ne.repeat||ne.defaultPrevented||ne.nativeEvent.isComposing||(ne.preventDefault(),(se=b.current)==null||se.call(b),ve.current=null,F(null),je(null),Me({start:G,end:G}))},Ot=G=>{const ne=ve.current;(ne==null?void 0:ne.start.filePath)===u.path&&ne.start.side===G.side&&(ve.current={...ne,end:G},je(G))},ze=()=>{var G;(G=b.current)==null||G.call(b),ve.current=null,F(null),je(null)},vt=async(G,ne)=>{if(!r||!a)return;const se=_6(G,ee[G.id],ne);if(se){W(oe=>{var be;return{...oe,[G.id]:{lines:((be=oe[G.id])==null?void 0:be.lines)??[],loading:!0,error:null}}});try{const oe=await P5({reviewId:r,filePath:G.filePath,oldPath:G.oldPath,turnId:S,source:a,...se});W(be=>({...be,[G.id]:R6(G,be[G.id],oe.lines)}))}catch(oe){W(be=>{var it;return{...be,[G.id]:{lines:((it=be[G.id])==null?void 0:it.lines)??[],loading:!1,error:oe instanceof Error?oe.message:String(oe)}}})}}};j.useEffect(()=>{let G=!1;return p2(async()=>{const{highlightDiffFile:ne}=await import("./syntax-CMJyXKxU.js");return{highlightDiffFile:ne}},[]).then(({highlightDiffFile:ne})=>ne(fe,me)).then(ne=>{G||V({file:fe,lines:ne,theme:me})}).catch(()=>{G||V({file:fe,lines:null,theme:me})}),()=>{G=!0}},[fe,me]);const Pt=(G,ne,se)=>{const oe=se??a6(G),be=Ha(G,oe);if(be==null)return null;const it={filePath:u.path,side:oe,line:be,snippet:G.content},Ie=C.get($n(oe,be)),bt=(T==="unified"||(ue==null?void 0:ue.side)===oe)&&Ie!=null&&K&&Ld(Ie,K)?{index:Ie,range:K}:null,kt=Q&&(!se||Q.side===oe)?Ha(G,Q.side):null,dn=T==="unified"?Ie:Q&&kt!=null?C.get($n(Q.side,kt)):null,Ba=dn!=null&&Ne&&Ld(dn,Ne)?{index:dn,range:Ne}:null,Ht=bt??Ba,dt=Ht!=null?X8(Ht.index,Ht.range.start,Ht.range.end):"",Nt=Q&&Q.filePath===u.path&&kt===Q.endLine,lt=q.filter($e=>se&&$e.side!==oe?!1:Ha(G,$e.side)===Math.max($e.startLine,$e.endLine));return c.jsxs("div",{className:se?"split-diff-cell":void 0,children:[se?c.jsx("span",{className:"sr-only",children:oe==="L"?"Old version":"New version"}):null,c.jsxs("div",{className:`diff-row ${G.type} ${f?"read-only":""} ${dt} ${Nt?"range-continues":""}`,"data-file-path":u.path,"data-line":be,"data-side":oe,children:[dt?c.jsx("span",{className:"selection-rail","aria-hidden":"true"}):null,c.jsxs("div",{className:"diff-gutter",children:[se?c.jsx("span",{className:`line-number ${oe==="L"?"old":"new"}`,children:be}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"line-number old",children:G.oldLine??""}),c.jsx("span",{className:"line-number new",children:G.newLine??""})]}),c.jsx("span",{className:"marker",children:N2(G)}),f?null:c.jsx("button",{"aria-label":`Comment on ${u.path}${se?` ${oe==="L"?"old":"new"}`:""} line ${be}`,className:"comment-handle",type:"button",onMouseDown:$e=>At(it,$e),onKeyDown:$e=>ut(it,$e),children:c.jsx(e2,{size:16,strokeWidth:2.4})})]}),c.jsx(G8,{content:G.content,selectedSourcePeek:h&&h.filePath===u.path&&h.oldPath===u.oldPath&&h.side===oe&&h.line===be?h:null,tokens:(g==null?void 0:g.get($n(oe,be)))??null,onSourcePeek:($e,Ut)=>L({column:Ut,filePath:u.path,line:be,oldPath:u.oldPath,side:oe,symbol:$e})})]}),lt.map($e=>{const Ut=X.get($e.id),_l=(we==null?void 0:we.id)===$e.id;return c.jsxs("div",{className:`inline-comment ${Ut?"resolved":"open"} ${_l?"editing":""}`,"data-comment-id":$e.id,children:[Ut?c.jsx(nr,{size:14}):c.jsx(Ml,{size:14}),c.jsxs("div",{className:"inline-comment-content",children:[f?c.jsx("span",{className:"inline-comment-status",children:Ut?"Resolved":"Open · Needs fix"}):null,_l?c.jsxs("form",{className:"inline-comment-edit-form",onSubmit:_t=>{_t.preventDefault(),at()},children:[c.jsx("textarea",{"aria-label":"Edit comment",ref:H,value:we.body,onChange:_t=>_e({id:$e.id,body:_t.target.value}),onKeyDown:_t=>{_t.key==="Escape"?(_t.preventDefault(),_e(null)):pc(_t)&&(_t.preventDefault(),at())}}),c.jsxs("div",{className:"inline-comment-edit-actions",children:[c.jsx("button",{className:"secondary-button",type:"button",onClick:()=>_e(null),children:"Cancel"}),c.jsxs("button",{className:"primary-button",type:"submit",disabled:we.body.trim().length===0,children:[c.jsx(En,{size:14}),"Save"]})]})]}):c.jsx("span",{className:"inline-comment-body",children:$e.body}),Ut!=null&&Ut.summary?c.jsx("span",{className:"inline-comment-summary",children:Ut.summary}):null]}),!f&&!_l?c.jsxs("div",{className:"inline-comment-actions",children:[c.jsx("button",{"aria-label":"Edit comment",className:"inline-comment-action-button",title:"Edit comment",type:"button",onClick:()=>_e({id:$e.id,body:$e.body}),children:c.jsx(Pd,{size:13})}),c.jsx("button",{"aria-label":"Delete comment",className:"inline-comment-action-button",title:"Delete comment",type:"button",onClick:()=>$($e.id),children:c.jsx(Bi,{size:13})})]}):null]},$e.id)}),Nt&&!f?c.jsx(T6,{body:te,tone:G.type,onBodyChange:Se}):null]},`${ne}:${G.type}:${G.oldLine??"x"}:${G.newLine??"x"}:${G.content}`)},fn=(G,ne)=>{if(T==="unified")return G.map(be=>Pt(be,ne));const se=G6(G);if(se.length===0)return null;const oe={gridRow:`1 / span ${se.length}`};return c.jsxs("div",{className:"split-diff-block",children:[c.jsx("div",{className:"split-diff-pane split-diff-pane-left",style:oe,children:se.map((be,it)=>{var bt;const Ie=`${ne}:left:${it}:${((bt=be.left)==null?void 0:bt.oldLine)??"x"}`;return be.left?Pt(be.left,Ie,"L"):c.jsx("div",{className:"split-diff-cell split-diff-empty",children:c.jsx("span",{className:"sr-only",children:"Old version, no line"})},Ie)})}),c.jsx("div",{className:"split-diff-pane split-diff-pane-right",style:oe,children:se.map((be,it)=>{var bt;const Ie=`${ne}:right:${it}:${((bt=be.right)==null?void 0:bt.newLine)??"x"}`;return be.right?Pt(be.right,Ie,"R"):c.jsx("div",{className:"split-diff-cell split-diff-empty",children:c.jsx("span",{className:"sr-only",children:"New version, no line"})},Ie)})})]},`${ne}:split`)},jt=G=>A6(G,ee[G.id]).map((ne,se)=>{var oe,be;return ne.type==="lines"?fn(ne.lines,`context:${G.id}:${se}`):c.jsx(U8,{canExpand:!!(r&&a),directions:C6(G,ne),error:((oe=ee[G.id])==null?void 0:oe.error)??null,loading:((be=ee[G.id])==null?void 0:be.loading)??!1,segment:ne,onExpand:it=>{vt(G,it)}},`hidden:${G.id}:${ne.oldStart}:${ne.newStart}:${ne.lineCount}`)}),Fn=T==="split"&&H6(u.isBinary,u.hunks.length);return c.jsx("section",{"aria-label":`${u.path} diff`,className:`diff-scroller ${T==="split"?"split-mode":""} ${E?"wrap-lines":""}`,children:c.jsxs("div",{className:`diff-table ${Fn?"split-view":""} ${ue?"selecting":""}`,children:[Fn?c.jsx(H8,{percentage:m,onChange:y,onPreview:N}):null,u.isBinary?c.jsx("div",{className:"binary-note",children:"Binary file changed"}):null,u.hunks.map((G,ne)=>{var be;const se=ae.get(ne),oe=U6(G,((be=fe.hunks[ne])==null?void 0:be.lines)??G.lines);return c.jsxs("div",{className:"hunk",children:[se?jt(se):null,oe?c.jsx("div",{className:"hunk-header",children:oe}):null,fn(G.lines,`hunk:${ne}`)]},`${G.oldStart}:${G.newStart}`)})]})},E?"wrapped":"unwrapped")}function H8({percentage:a,onChange:u,onPreview:f}){const r=j.useRef(null);j.useEffect(()=>()=>{var m;return(m=r.current)==null?void 0:m.call(r)},[]);const h=m=>{var pe;if(m.button!==0)return;const S=m.currentTarget.closest(".diff-table");if(!S)return;m.preventDefault(),m.stopPropagation(),(pe=r.current)==null||pe.call(r);const T=m.currentTarget,E=S.getBoundingClientRect(),y=m.pointerId;let N=a,L=!1;const U=$=>{$.pointerId===y&&($.preventDefault(),L=!0,N=O6($.clientX,E.left,E.width,N),T.setAttribute("aria-valuenow",String(Math.round(N))),T.setAttribute("aria-valuetext",_d(N)),f(N))},B=()=>{window.removeEventListener("pointermove",U),window.removeEventListener("pointerup",Q),window.removeEventListener("pointercancel",re),window.removeEventListener("blur",re),document.body.classList.remove("split-diff-resizing"),delete T.dataset.resizing,r.current=null},Q=$=>{$.pointerId===y&&(L&&U($),B(),u(N))},re=()=>{B(),u(N)};T.dataset.resizing="true",document.body.classList.add("split-diff-resizing"),r.current=B,window.addEventListener("pointermove",U),window.addEventListener("pointerup",Q),window.addEventListener("pointercancel",re),window.addEventListener("blur",re,{once:!0})};return c.jsx("hr",{"aria-label":"Resize old and new diff panes","aria-orientation":"vertical","aria-valuemax":mr,"aria-valuemin":hr,"aria-valuenow":Math.round(a),"aria-valuetext":_d(a),className:"split-diff-resize-handle",tabIndex:0,title:"Resize old and new diff panes",onKeyDown:m=>{const S=k6(a,m.key);S!=null&&(m.preventDefault(),u(S))},onPointerDown:h})}function _d(a){const u=Math.round(a);return`${u}% old, ${100-u}% new`}function U8({canExpand:a,directions:u,error:f,loading:r,segment:h,onExpand:m}){const S=!a||!!r;return c.jsxs("div",{className:"hidden-lines",children:[c.jsxs("div",{className:"hidden-lines-main",children:[c.jsx("span",{className:"hidden-lines-count",children:r?c.jsxs(c.Fragment,{children:[c.jsx(ar,{className:"spin",size:14}),"Loading context"]}):`${h.lineCount} unmodified ${h.lineCount===1?"line":"lines"}`}),c.jsx("div",{className:"hidden-lines-actions",children:u.map(T=>{const E=B8(T);return c.jsx("button",{"aria-label":E,className:"hidden-lines-action",disabled:S,title:E,type:"button",onClick:()=>m(T),children:c.jsx(q8,{direction:T,directions:u})},T)})})]}),f?c.jsx("div",{className:"hidden-lines-error",children:f}):null]})}function B8(a){return a==="up"?"Expand hidden context upward":a==="down"?"Expand hidden context downward":"Expand more hidden context"}function q8({direction:a,directions:u}){return a==="up"?c.jsx(ph,{size:15}):a==="down"?c.jsx(Al,{size:15}):u.length===2&&u[0]==="up"?c.jsx(Sh,{size:15}):u.length===2&&u[0]==="down"?c.jsx(gh,{size:15}):c.jsx(bh,{size:15})}function G8({content:a,selectedSourcePeek:u,tokens:f,onSourcePeek:r}){return!f||f.length===0?c.jsx("code",{children:c.jsx(Rd,{offsetBase:0,selectedSourcePeek:u,text:a||" ",onSourcePeek:r})}):c.jsx("code",{children:f.map(h=>{const m=Y8(h);return c.jsx("span",{style:m,children:c.jsx(Rd,{offsetBase:h.offset,selectedSourcePeek:u,style:m,text:h.content,onSourcePeek:r})},`${h.offset}:${h.content}`)})})}const Zo=/[A-Za-z_$][\w$]*/g,V8=new Set(["as","async","await","break","case","catch","class","const","continue","default","delete","do","else","enum","export","extends","false","finally","for","from","function","if","implements","import","in","instanceof","interface","let","new","null","of","return","static","super","switch","this","throw","true","try","type","typeof","undefined","var","void","while","with","yield"]);function Rd({offsetBase:a,selectedSourcePeek:u,style:f,text:r,onSourcePeek:h}){const m=[];let S=0;Zo.lastIndex=0;let T=Zo.exec(r);for(;T!==null;){const E=T[0],y=T.index;if(y>S&&m.push(r.slice(S,y)),V8.has(E))m.push(E);else{const N=a+y,L=(u==null?void 0:u.column)===N&&u.symbol===E;m.push(c.jsx("button",{"aria-current":L?"location":void 0,className:`source-symbol ${L?"selected":""}`,"data-source-symbol":E,style:f,tabIndex:-1,title:"Command-click or Control-click to peek source",type:"button",onClick:U=>{!U.metaKey&&!U.ctrlKey||(U.preventDefault(),U.stopPropagation(),h(E,N))},onMouseDown:U=>{(U.metaKey||U.ctrlKey)&&U.preventDefault()},onContextMenu:U=>{!U.metaKey&&!U.ctrlKey||(U.preventDefault(),U.stopPropagation(),h(E,N))},onKeyDown:U=>{U.key!=="Enter"&&U.key!==" "||(U.preventDefault(),U.stopPropagation(),h(E,N))},children:E},`${a}:${y}:${E}`))}S=y+E.length,T=Zo.exec(r)}return S<r.length&&m.push(r.slice(S)),c.jsx(c.Fragment,{children:m.length>0?m:r})}function Y8(a){const u={};a.color&&(u.color=a.color),a.fontStyle&&(a.fontStyle&1)!==0&&(u.fontStyle="italic"),a.fontStyle&&(a.fontStyle&2)!==0&&(u.fontWeight=700);const f=[];return a.fontStyle&&(a.fontStyle&4)!==0&&f.push("underline"),a.fontStyle&&(a.fontStyle&8)!==0&&f.push("line-through"),f.length>0&&(u.textDecorationLine=f.join(" ")),u}function X8(a,u,f){return u===f?"range-selected range-single":a===u?"range-selected range-start":a===f?"range-selected range-end":"range-selected range-middle"}function Q8(a,u,f){return!a||!f?"":f.mode==="turn"?`${a}:${u??""}:turn`:f.mode==="commit"?`${a}:${u??""}:commit:${f.sha}`:`${a}:${u??""}:range:${f.fromSha}:${f.toSha}`}function Dd(a,u,f,r){const h=a.get($n(u,f)),m=a.get($n(u,r));return h==null||m==null?null:{start:Math.min(h,m),end:Math.max(h,m)}}function Ld(a,u){return!!(u&&a>=u.start&&a<=u.end)}const hc="__gloss_no_extension__";function Z8(a){const u=[a.name];let f=a;for(;f.children.length===1&&f.children[0].type==="directory";)f=f.children[0],u.push(f.name);return{name:u.join("/"),node:f}}function K8(a){const u=new Map;for(const f of a){const r=T2(f.path),h=u.get(r);h?h.count+=1:u.set(r,{id:r,label:r===hc?"No extension":r,count:1})}return Array.from(u.values()).sort((f,r)=>f.id===hc?1:r.id===hc?-1:f.label.localeCompare(r.label,void 0,{sensitivity:"base"}))}function $8(a,u,f){const r=u.trim().toLowerCase();return f.size===0?[]:a.filter(h=>{const m=f.has(T2(h.path)),S=r.length===0||h.path.toLowerCase().includes(r);return m&&S})}function J8(a){const u={type:"directory",id:"root",name:"",path:"",children:[]},f=new Map;for(const r of a){const h=r.path.split("/").filter(Boolean);let m=u;for(const[S,T]of h.entries()){const E=S===h.length-1,y=h.slice(0,S+1).join("/");E?m.children.push({type:"file",id:`file:${r.path}`,name:T,path:r.path,file:r}):m=F8(m,T,y,f)}}return M2(u),u}function F8(a,u,f,r){let h=r.get(a);h||(h=new Map,r.set(a,h));const m=h.get(u);if(m)return m;const S={type:"directory",id:`dir:${f}`,name:u,path:f,children:[]};return a.children.push(S),h.set(u,S),S}function T2(a){const u=a.split("/").pop()??a,f=u.lastIndexOf(".");return f<=0||f===u.length-1?hc:u.slice(f).toLowerCase()}function M2(a){a.children.sort((u,f)=>u.type!==f.type?u.type==="directory"?-1:1:i2(u.name,f.name));for(const u of a.children)u.type==="directory"&&M2(u)}function Od({activeFilePath:a,extensionBuckets:u,files:f,filteredFiles:r,hiddenBoringFileCount:h,hiddenBoringPresets:m,onCollapse:S,onClearExtensions:T,onFileSelect:E,onSearchChange:y,onSelectAllExtensions:N,onShowAllBoringFiles:L,onToggleBoringPreset:U,onToggleExtension:B,searchQuery:Q,selectedExtensionIds:re}){const[pe,$]=j.useState(!1),[me,ue]=j.useState(new Set),F=j.useRef(null),ge=j.useMemo(()=>J8(r),[r]),je=j.useMemo(()=>{const de=I8(ge);for(const V of me)de.delete(V);return de},[me,ge]),Se=re.size!==u.length,we=m.size>0;j.useEffect(()=>{if(!pe)return;const de=ee=>{var W;(W=F.current)!=null&&W.contains(ee.target)||$(!1)},V=ee=>{ee.key==="Escape"&&$(!1)};return window.addEventListener("pointerdown",de),window.addEventListener("keydown",V),()=>{window.removeEventListener("pointerdown",de),window.removeEventListener("keydown",V)}},[pe]);const _e=de=>{ue(V=>{const ee=new Set(V);return je.has(de)?ee.add(de):ee.delete(de),ee})};return c.jsxs("section",{className:"file-tree-panel","aria-label":"Changed files",children:[c.jsxs("div",{className:"file-tree-header",children:[c.jsx("span",{children:"Changed files"}),S?c.jsx("button",{"aria-label":"Collapse file tree",className:"file-tree-icon-button",title:"Collapse file tree",type:"button",onClick:S,children:c.jsx(cm,{size:15})}):null]}),c.jsxs("div",{className:"file-tree-controls",children:[c.jsxs("label",{className:"file-tree-search",children:[c.jsx(t2,{size:18}),c.jsx("span",{className:"sr-only",children:"Filter files"}),c.jsx("input",{type:"search",value:Q,placeholder:"Filter files...",onChange:de=>y(de.target.value)}),Q?c.jsx("button",{"aria-label":"Clear file search",className:"file-tree-clear",type:"button",onClick:()=>y(""),children:c.jsx(Yi,{size:14})}):null]}),c.jsxs("div",{className:"file-tree-filter-shell",ref:F,children:[c.jsx("button",{"aria-label":"Filter files","aria-expanded":pe,className:`file-tree-filter-button ${Se||we?"active":""}`,title:"Filter files",type:"button",onClick:()=>$(de=>!de),children:c.jsx(vm,{size:17})}),pe?c.jsx(W8,{buckets:u,hiddenBoringFileCount:h,hiddenBoringPresets:m,selectedExtensionIds:re,onClear:T,onSelectAll:N,onShowAllBoringFiles:L,onToggleBoringPreset:U,onToggle:B}):null]})]}),c.jsxs("div",{className:"file-tree-summary",children:[c.jsxs("span",{children:[r.length," of ",f.length," ",f.length===1?"file":"files"]}),h>0?c.jsxs("span",{children:[h," hidden ",h===1?"diff":"diffs"]}):null]}),r.length===0?c.jsx("div",{className:"file-tree-empty",children:f.length===0?"No files changed":"No files match"}):c.jsx("div",{className:"file-tree-list",children:ge.children.map(de=>c.jsx(C2,{activeFilePath:a,expandedDirectoryIds:je,node:de,depth:0,onFileSelect:E,onToggleDirectory:_e},de.id))})]})}function W8({buckets:a,hiddenBoringFileCount:u,hiddenBoringPresets:f,onClear:r,onSelectAll:h,onShowAllBoringFiles:m,onToggleBoringPreset:S,onToggle:T,selectedExtensionIds:E}){return c.jsxs("div",{className:"extension-popover",role:"menu","aria-label":"File extensions",children:[c.jsxs("div",{className:"extension-popover-header",children:[c.jsx("span",{children:"File extensions"}),c.jsxs("div",{className:"extension-popover-actions",children:[c.jsx("button",{type:"button",onClick:h,children:"All"}),c.jsx("button",{type:"button",onClick:r,children:"None"})]})]}),c.jsx("div",{className:"extension-options",children:a.map(y=>{const N=E.has(y.id);return c.jsxs("button",{"aria-checked":N,className:"extension-option",role:"menuitemcheckbox",type:"button",onClick:()=>T(y.id),children:[c.jsx("span",{className:"extension-check",children:N?c.jsx(En,{size:16}):null}),c.jsx("span",{className:"extension-label",children:y.label}),c.jsx("span",{className:"extension-count",children:y.count})]},y.id)})}),c.jsxs("div",{className:"extension-popover-section",children:[c.jsxs("div",{className:"extension-popover-header",children:[c.jsx("span",{children:"Hide boring files"}),c.jsx("div",{className:"extension-popover-actions",children:c.jsx("button",{type:"button",onClick:m,children:"Show all"})})]}),c.jsx("div",{className:"extension-options",children:l2.map(y=>{const N=f.has(y.id);return c.jsxs("button",{"aria-checked":N,className:"extension-option",role:"menuitemcheckbox",type:"button",onClick:()=>S(y.id),children:[c.jsx("span",{className:`extension-check ${N?"checked":""}`,children:N?c.jsx(En,{size:13}):null}),c.jsx("span",{children:y.label})]},y.id)})}),u>0?c.jsxs("div",{className:"extension-popover-note",children:[u," ",u===1?"diff":"diffs"," hidden by presets"]}):null]})]})}function C2({activeFilePath:a,depth:u,expandedDirectoryIds:f,node:r,onFileSelect:h,onToggleDirectory:m}){const S={paddingLeft:8+u*14};if(r.type==="directory"){const T=Z8(r),E=f.has(T.node.id);return c.jsxs("div",{children:[c.jsxs("button",{"aria-expanded":E,className:"file-tree-row directory",style:S,title:T.node.path,type:"button",onClick:()=>m(T.node.id),children:[E?c.jsx(Al,{size:16}):c.jsx(Fd,{size:16}),E?c.jsx(Id,{size:17}):c.jsx(Xh,{size:17}),c.jsx("span",{className:"file-tree-name",children:T.name})]}),E?c.jsx("div",{children:T.node.children.map(y=>c.jsx(C2,{activeFilePath:a,expandedDirectoryIds:f,node:y,depth:u+1,onFileSelect:h,onToggleDirectory:m},y.id))}):null]})}return c.jsx("div",{children:c.jsxs("button",{className:`file-tree-row file ${a===r.path?"active":""}`,style:S,title:r.path,type:"button",onClick:()=>h(r.path),children:[c.jsx("span",{className:"file-tree-spacer"}),c.jsx(lr,{size:16}),c.jsx("span",{className:"file-tree-name",children:r.name}),c.jsxs("span",{className:"file-tree-stats",children:[c.jsxs("span",{className:"stat add",children:["+",r.file.additions]}),c.jsxs("span",{className:"stat del",children:["-",r.file.deletions]})]})]})})}function I8(a){const u=new Set,f=r=>{for(const h of r.children)h.type==="directory"&&(u.add(h.id),f(h))};return f(a),u}function kd(a){return{response:a,content:a.content,startLine:a.startLine,totalLines:a.totalLines,truncated:a.truncated,hasMoreAbove:a.hasMoreAbove,hasMoreBelow:a.hasMoreBelow}}function P8(a,u,f=r5){if(u==="above"){if(!a.hasMoreAbove)return null;const m=Math.max(1,a.startLine-f),S=a.startLine-m;return S>0?{startLine:m,lineCount:S}:null}if(!a.hasMoreBelow)return null;const r=A2(a)+1,h=Math.min(f,a.totalLines-r+1);return h>0?{startLine:r,lineCount:h}:null}function e7(a,u){var N,L;const f=new Map;for(const[U,B]of vc(a.content).entries())f.set(a.startLine+U,B);for(const[U,B]of vc(u.content).entries())f.set(u.startLine+U,B);const r=Array.from(f.entries()).toSorted(([U],[B])=>U-B);if(r.length===0)return a;const h=((N=r[0])==null?void 0:N[0])??a.startLine,m=((L=r.at(-1))==null?void 0:L[0])??A2(a),S=Math.max(a.totalLines,u.totalLines),T=h>1&&(a.hasMoreAbove||u.hasMoreAbove),E=m<S&&(a.hasMoreBelow||u.hasMoreBelow),y=a.truncated&&!a.hasMoreAbove&&!a.hasMoreBelow||u.truncated&&!u.hasMoreAbove&&!u.hasMoreBelow;return{response:a.response,content:r.map(([,U])=>U).join(`
318
+ `),startLine:h,totalLines:S,truncated:y||T||E,hasMoreAbove:T,hasMoreBelow:E}}function A2(a){return a.startLine+vc(a.content).length-1}function vc(a){const u=a.replace(/\r\n/g,`
319
+ `).split(`
320
+ `);return u.at(-1)===""&&u.pop(),u.length>0?u:[""]}const t7=16,bc=360,er=280,Hd=360,_2={above:!1,below:!1};function Ud(){return{..._2}}function n7({openTargets:a,onCopyFileContents:u,onLoadRange:f,onOpenFile:r,state:h,onClose:m}){const{resolvedTheme:S}=or(),T=j.useRef(null),E=j.useRef(null),y=j.useRef(null),N=j.useRef(null),L=j.useRef(null),U=j.useRef(null),B=h.status==="ready"?h.response:null,Q=h.status==="error"?c7(h.message,h.symbol):null,re=j.useRef(_2),pe=j.useRef({above:0,below:0}),$=j.useRef(B),[me,ue]=j.useState(null),[F,ge]=j.useState(()=>B?kd(B):null),je=j.useRef(B),[te,Se]=j.useState(Ud),[we,_e]=j.useState(null),[de,V]=j.useState(!1),[ee,W]=j.useState(null);if(B!==je.current){const q=Ud();je.current=B,$.current=B,pe.current={above:pe.current.above+1,below:pe.current.below+1},re.current=q,ge(B?kd(B):null),_e(null),Se(q),W(null)}const ve=j.useMemo(()=>F?vc(F.content):[],[F]),b=F&&B&&(me==null?void 0:me.content)===F.content&&me.language===B.language&&me.theme===S?me.lines:null,H=F?s7(F,te,we):null,Z=j.useCallback(q=>{L.current=q,N.current===null&&(N.current=window.requestAnimationFrame(()=>{N.current=null;const Y=L.current,K=T.current;!Y||!K||(K.style.top=`${Math.round(Y.top)}px`,K.style.left=`${Math.round(Y.left)}px`,K.style.right="auto",K.style.bottom="auto",K.style.width=`${Math.round(Y.width)}px`,K.style.height=`${Math.round(Y.height)}px`,K.style.transform="")}))},[]),ae=j.useCallback(()=>{var q;(q=U.current)==null||q.call(U),U.current=null,document.body.classList.remove("source-peek-interacting"),document.body.style.cursor="",document.body.style.userSelect=""},[]),fe=j.useCallback((q,Y)=>{const K={...re.current,[q]:Y};re.current=K,Se(K)},[]);j.useEffect(()=>{const q=Y=>{Y.key==="Escape"&&m()};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[m]),j.useEffect(()=>{if(!ee)return;const q=window.setTimeout(()=>W(null),2200);return()=>window.clearTimeout(q)},[ee]),j.useEffect(()=>{const q=T.current;if(!q)return;const Y=K=>{if(K.defaultPrevented)return;const Ne=K.target;if(!(Ne instanceof Node)||!q.contains(Ne))return;K.preventDefault(),K.stopPropagation();const Me=E.current;if(!Me)return;const at=u7(K,Me);Me.scrollTop+=at.y,Me.scrollLeft+=at.x};return q.addEventListener("wheel",Y,{passive:!1}),()=>q.removeEventListener("wheel",Y)},[]),j.useEffect(()=>{if(!B||!F)return;let q=!1;return p2(async()=>{const{highlightSourceContent:Y}=await import("./syntax-CMJyXKxU.js");return{highlightSourceContent:Y}},[]).then(({highlightSourceContent:Y})=>Y(F.content,B.language,S)).then(Y=>{q||ue({lines:Y,content:F.content,language:B.language,theme:S})}).catch(()=>{q||ue({lines:null,content:F.content,language:B.language,theme:S})}),()=>{q=!0}},[F,B,S]),j.useEffect(()=>{B&&window.requestAnimationFrame(()=>{var q;(q=y.current)==null||q.scrollIntoView({block:"center"})})},[B]),j.useEffect(()=>{const q=()=>{const Y=T.current;Y&&Z(Il(Ko(Y)))};return window.requestAnimationFrame(()=>Z(l7())),window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q)}},[Z]),j.useEffect(()=>()=>{ae(),N.current!==null&&window.cancelAnimationFrame(N.current)},[ae]);const g=q=>{if(q.button!==0||q.target.closest("button"))return;q.preventDefault(),ae();const Y=T.current;if(!Y)return;const K=Il(Ko(Y)),Ne=q.clientX,Me=q.clientY;L.current=K,document.body.classList.add("source-peek-interacting"),document.body.style.cursor="grabbing",document.body.style.userSelect="none",Y.classList.add("dragging");const at=At=>{const ut=Il({...K,left:K.left+At.clientX-Ne,top:K.top+At.clientY-Me});Y.style.transform=`translate3d(${Math.round(ut.left-K.left)}px, ${Math.round(ut.top-K.top)}px, 0)`,L.current=ut},ft=()=>{const At=L.current??K;Y.classList.remove("dragging"),Z(At),ae()},nt=()=>{window.removeEventListener("pointermove",at),window.removeEventListener("pointerup",ft),Y.classList.remove("dragging")};U.current=nt,window.addEventListener("pointermove",at),window.addEventListener("pointerup",ft,{once:!0})},_=q=>Y=>{if(Y.button!==0)return;Y.preventDefault(),Y.stopPropagation(),ae();const K=T.current;if(!K)return;const Ne=Il(Ko(K)),Me=Y.clientX,at=Y.clientY,ft=i7(q);L.current=Ne,document.body.classList.add("source-peek-interacting"),document.body.style.cursor=ft,document.body.style.userSelect="none";const nt=Ot=>{const ze=Ot.clientX-Me,vt=Ot.clientY-at;Z(a7(Ne,q,ze,vt))},At=()=>ae(),ut=()=>{window.removeEventListener("pointermove",nt),window.removeEventListener("pointerup",At)};U.current=ut,window.addEventListener("pointermove",nt),window.addEventListener("pointerup",At,{once:!0})},C=j.useCallback(async q=>{var at;if(!B||!F||re.current[q])return;const Y=P8(F,q);if(!Y)return;const K=pe.current[q]+1;pe.current={...pe.current,[q]:K};const Ne=()=>$.current===B&&pe.current[q]===K,Me=q==="above"?((at=E.current)==null?void 0:at.scrollHeight)??null:null;if(Ne()){fe(q,!0),_e(null);try{const ft=await f(B.filePath,Y.startLine,Y.lineCount);Ne()&&(ge(nt=>(nt==null?void 0:nt.response)===B?e7(nt,ft):nt),q==="above"&&Me!==null&&window.requestAnimationFrame(()=>{const nt=E.current;nt&&(nt.scrollTop+=nt.scrollHeight-Me)}))}catch(ft){Ne()&&_e(ft instanceof Error?ft.message:String(ft))}finally{Ne()&&fe(q,!1)}}},[F,f,B,fe]),X=j.useCallback(q=>{const Y=q.currentTarget,K=Y.scrollHeight-Y.scrollTop-Y.clientHeight;Y.scrollTop<=Hd&&C("above"),K<=Hd&&C("below")},[C]);return c.jsxs("aside",{"aria-label":"Source peek",className:"source-peek-panel",ref:T,children:[c.jsx("button",{"aria-label":"Resize source peek horizontally",className:"source-peek-resize-handle left",type:"button",onPointerDown:_({left:!0})}),c.jsx("button",{"aria-label":"Resize source peek vertically",className:"source-peek-resize-handle bottom",type:"button",onPointerDown:_({bottom:!0})}),c.jsx("button",{"aria-label":"Resize source peek",className:"source-peek-resize-handle bottom-left",type:"button",onPointerDown:_({bottom:!0,left:!0})}),c.jsx("button",{"aria-label":"Resize source peek",className:"source-peek-resize-handle bottom-right",type:"button",onPointerDown:_({bottom:!0,right:!0})}),c.jsxs("header",{className:"source-peek-header",onPointerDown:g,children:[c.jsxs("div",{className:"source-peek-title",children:[c.jsx(qh,{size:17}),c.jsx("span",{children:"Source peek"})]}),c.jsx(Jh,{className:"source-peek-drag-indicator",size:16,"aria-hidden":"true"}),c.jsxs("div",{className:"source-peek-toolbar",children:[B?c.jsx(z2,{filePath:B.filePath,openTargets:a,wordWrap:de,onActionMessage:W,onCopyFileContents:()=>u(B.filePath),onOpenFile:q=>r(B.filePath,q),onWordWrapChange:V}):null,c.jsx("button",{"aria-label":"Close source peek",className:"icon-button source-peek-close",type:"button",onClick:m,children:c.jsx(Yi,{size:17})})]})]}),h.status==="loading"?c.jsxs("div",{className:"source-peek-status",children:[c.jsx(ar,{className:"spin",size:18}),c.jsxs("span",{children:["Resolving ",h.symbol]})]}):null,h.status==="error"?c.jsx("div",{className:"source-peek-status error",children:c.jsxs("div",{className:"source-peek-error-card",children:[c.jsx(Eh,{size:18}),c.jsxs("div",{className:"source-peek-error-copy",children:[c.jsx("strong",{children:Q==null?void 0:Q.title}),c.jsx("p",{children:Q==null?void 0:Q.message}),Q!=null&&Q.hint?c.jsx("span",{children:Q.hint}):null]})]})}):null,B?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"source-peek-meta",children:[c.jsx("span",{className:"source-peek-symbol",children:B.targetSymbol}),c.jsxs("span",{className:"source-peek-path",title:`${B.filePath}:${B.line}`,children:[B.filePath,":",B.line]}),ee?c.jsx("span",{className:"source-peek-action-message",children:ee}):null]}),H?c.jsx("div",{className:"source-peek-truncated",children:H}):null,c.jsx("section",{className:`source-peek-code ${de?"wrap-lines":""}`,"aria-label":B.filePath,ref:E,onScroll:X,children:ve.map((q,Y)=>{const K=((F==null?void 0:F.startLine)??B.startLine)+Y,Ne=K===B.line;return c.jsxs("div",{className:`source-peek-row ${Ne?"target":""}`,ref:Ne?y:null,children:[c.jsx("span",{className:"source-peek-line-number",children:K}),c.jsx("code",{children:f7(q||" ",(b==null?void 0:b[Y])??null)})]},K)})})]}):null]})}function Ko(a){const u=a.getBoundingClientRect();return{height:u.height,left:u.left,top:u.top,width:u.width}}function Il(a){const u=gr();if(window.innerWidth<=980)return{height:window.innerHeight-u*2,left:u,top:u,width:window.innerWidth-u*2};const f=Math.max(bc,window.innerWidth-u*2),r=Math.max(er,window.innerHeight-u*2),h=Pl(a.width,bc,f),m=Pl(a.height,er,r);return{height:m,left:Pl(a.left,u,window.innerWidth-h-u),top:Pl(a.top,u,window.innerHeight-m-u),width:h}}function l7(){const a=gr();if(window.innerWidth<=980)return Il({height:window.innerHeight-a*2,left:a,top:a,width:window.innerWidth-a*2});const u=Math.max(a,Math.round(window.innerWidth/3)),f=window.innerWidth-u-a,r=window.innerHeight-a*2;return Il({height:r,left:u,top:a,width:f})}function a7(a,u,f,r){const h=gr();let m=a.left,S=a.width,T=a.height;if(u.left){const E=a.left+a.width,y=h,N=E-bc;m=Pl(a.left+f,y,N),S=E-m}return u.right&&(S=Pl(a.width+f,bc,window.innerWidth-a.left-h)),u.bottom&&(T=Pl(a.height+r,er,window.innerHeight-a.top-h)),Il({height:T,left:m,top:a.top,width:S})}function i7(a){return a.bottom&&a.left?"nesw-resize":a.bottom&&a.right?"nwse-resize":a.bottom?"row-resize":"col-resize"}function s7(a,u,f){return f?`Could not load more source: ${yr(f)}`:u.above&&u.below?"Loading more source lines above and below.":u.above?"Loading more source lines above.":u.below?"Loading more source lines below.":a.hasMoreAbove||a.hasMoreBelow?"Large source file - more lines load as you scroll.":a.truncated?"Source preview was shortened for a very long line.":null}function c7(a,u){const f=yr(a);return/no definition found/i.test(f)?{hint:"This can happen for Node built-ins, package exports, or symbols outside the repo.",message:`Gloss could not find a project definition for ${u}.`,title:"No definition found"}:{hint:null,message:f,title:"Source peek unavailable"}}function yr(a){const u=a.replace(/^\d+:\s*/,"").trim();try{const f=JSON.parse(u);if(typeof f=="object"&&f!==null&&!Array.isArray(f)&&typeof f.error=="string")return yr(f.error)}catch{}return u.replace(/^source peek unavailable:\s*/i,"").trim()}function gr(){return window.innerWidth<=720?8:t7}function Pl(a,u,f){return Math.min(f,Math.max(u,a))}function u7(a,u){const f=o7(a,u);return{x:a.deltaX*f,y:a.deltaY*f}}function o7(a,u){return a.deltaMode===WheelEvent.DOM_DELTA_LINE?r7(u):a.deltaMode===WheelEvent.DOM_DELTA_PAGE?u.clientHeight||window.innerHeight:1}function r7(a){const u=Number.parseFloat(window.getComputedStyle(a).lineHeight);return Number.isFinite(u)?u:24}function f7(a,u){return!u||u.length===0?a:u.map(f=>c.jsx("span",{style:d7(f),children:f.content},`${f.offset}:${f.content}`))}function d7(a){const u={};a.color&&(u.color=a.color),a.fontStyle&&(a.fontStyle&1)!==0&&(u.fontStyle="italic"),a.fontStyle&&(a.fontStyle&2)!==0&&(u.fontWeight=700);const f=[];return a.fontStyle&&(a.fontStyle&4)!==0&&f.push("underline"),a.fontStyle&&(a.fontStyle&8)!==0&&f.push("line-through"),f.length>0&&(u.textDecorationLine=f.join(" ")),u}function Bd(a){return a instanceof Error?a.message:String(a)}function h7({reviewId:a,reviewScope:u,onLineCommentSelect:f,onSubmitted:r}){const h=wt(C=>C.comments),m=wt(C=>C.addGeneralComment),S=wt(C=>C.removeComment),T=wt(C=>C.updateComment),[E,y]=j.useState(""),[N,L]=j.useState(null),[U,B]=j.useState(null),[Q,re]=j.useState(!1),[pe,$]=j.useState(""),[me,ue]=j.useState("idle"),[F,ge]=j.useState(null),je=j.useRef(null),te=j.useRef(null),Se=j.useRef(!1),we=me!=="submitting"&&me!=="done",_e=E.trim(),de=h.filter(qi),V=h.filter(C=>!qi(C)),ee=h.length>5,W=ee?pe.trim().toLowerCase():"",ve=W?de.filter(C=>`${C.filePath} ${Ua(C)} ${C.body}`.toLowerCase().includes(W)):de,b=W?V.filter(C=>C.body.toLowerCase().includes(W)):V,H=N===null?null:V.find(C=>C.id===N)??null,Z=U!==null,ae=j.useCallback(()=>{L(null),B(null)},[]),fe=()=>{_e&&(m(_e),y(""))},g=()=>{!H||!(U!=null&&U.trim())||(T(H.id,U),B(null))},_=j.useCallback(async()=>{if(!(!we||Se.current)){Se.current=!0,ue("submitting"),ge(null);try{await F5(a,h,u),ue("done"),ge("Submitted");try{await(r==null?void 0:r())}catch(C){ge(`Submitted, but refresh failed: ${Bd(C)}`)}}catch(C){Se.current=!1,ue("error"),ge(Bd(C))}}},[we,h,r,a,u]);return j.useEffect(()=>{const C=X=>{i6(X)&&(X.preventDefault(),_())};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[_]),j.useEffect(()=>{N!==null&&H===null&&L(null)},[H,N]),j.useEffect(()=>{var X,q;if(H===null)return;const C=Y=>{Y.key==="Escape"&&(Y.preventDefault(),Z?B(null):ae())};return Z?(X=te.current)==null||X.focus():(q=je.current)==null||q.focus(),window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[ae,Z,H]),c.jsxs(c.Fragment,{children:[c.jsxs("aside",{className:"submit-bar",children:[c.jsxs("div",{className:"feedback-panel",children:[ee?c.jsxs("button",{"aria-controls":"feedback-list-panel","aria-expanded":Q,className:"feedback-summary-toggle",type:"button",onClick:()=>{re(C=>!C),$("")},children:[c.jsx(Ml,{size:15}),c.jsx("span",{children:"Feedback"}),c.jsx("span",{className:"feedback-row-count",children:h.length}),c.jsxs("span",{className:"feedback-summary-detail",children:[de.length," inline · ",V.length," general"]}),c.jsx(Al,{className:Q?"expanded":"",size:16})]}):null,c.jsxs("div",{className:`feedback-list-panel ${ee?"expanded":"compact"}`,hidden:ee&&!Q,id:"feedback-list-panel",children:[ee?c.jsxs("label",{className:"feedback-search",children:[c.jsx(t2,{size:15}),c.jsx("input",{"aria-label":"Search feedback",placeholder:"Search feedback by file or text",type:"search",value:pe,onChange:C=>$(C.target.value)})]}):null,ve.length>0?c.jsxs("div",{className:"inline-feedback-row",children:[c.jsxs("span",{className:"feedback-row-label inline-feedback-label",children:[c.jsx(Ml,{size:14}),"Inline feedback",c.jsx("span",{className:"feedback-row-count",children:ve.length})]}),c.jsx("div",{className:"comment-list",children:ve.map(C=>{const X=qd(C);return c.jsxs("div",{className:`comment-chip ${X.tone}`,title:X.title,children:[c.jsxs("button",{className:"comment-chip-target",type:"button",title:`Jump to ${X.title}`,onClick:()=>{f==null||f(C),re(!1),$("")},children:[c.jsx("span",{className:"comment-chip-kind",children:X.kind}),c.jsx("span",{className:"comment-chip-text",children:X.text}),ee?c.jsx("span",{className:"comment-chip-preview",children:C.body}):null]}),c.jsx("button",{className:"icon-button",type:"button",title:"Remove comment",onClick:()=>S(C.id),children:c.jsx(Bi,{size:14})})]},C.id)})})]}):null,b.length>0?c.jsxs("div",{className:"general-feedback-summary-row",children:[c.jsxs("span",{className:"feedback-row-label general-feedback-label",children:[c.jsx(Ml,{size:14}),"General feedback",c.jsx("span",{className:"feedback-row-count general-feedback-count",children:b.length})]}),c.jsx("div",{className:"general-feedback-list",children:b.map(C=>{const X=qd(C);return c.jsxs("div",{className:`comment-chip ${X.tone}`,title:X.title,children:[c.jsxs("button",{className:"comment-chip-target",type:"button",title:"View general feedback",onClick:()=>L(C.id),children:[c.jsx("span",{className:"comment-chip-kind",children:X.kind}),c.jsx("span",{className:"comment-chip-text",children:X.text})]}),c.jsx("button",{className:"icon-button",type:"button",title:"Remove comment",onClick:()=>S(C.id),children:c.jsx(Bi,{size:14})})]},C.id)})})]}):null,W&&ve.length===0&&b.length===0?c.jsxs("p",{className:"feedback-search-empty",children:["No feedback matches “",pe,"”."]}):null]}),c.jsx("div",{className:"general-feedback-row",children:c.jsx("form",{className:"general-comment-form",onSubmit:C=>{C.preventDefault(),fe()},children:c.jsxs("div",{className:"general-comment-compose",children:[c.jsx(Ml,{className:"general-comment-compose-icon",size:15}),c.jsx("textarea",{"aria-label":"General feedback",placeholder:"General feedback",rows:1,value:E,onChange:C=>y(C.target.value),onKeyDown:C=>{pc(C)&&(C.preventDefault(),fe())}}),c.jsxs("button",{"aria-keyshortcuts":"Meta+Enter",className:"general-comment-add",type:"submit",disabled:!_e,title:"Add general feedback (Command+Enter)",children:[c.jsx(e2,{size:14}),c.jsx("span",{children:"Add"})]})]})})})]}),c.jsxs("div",{className:"submit-actions",children:[F?c.jsx("span",{className:`submit-message ${me}`,children:F}):null,c.jsxs("button",{"aria-keyshortcuts":"Meta+Shift+Enter",className:"primary-button",type:"button",disabled:!we,title:"Submit review (Command+Shift+Enter)",onClick:_,children:[me==="done"?c.jsx(En,{size:16}):c.jsx(ym,{size:16}),"Submit ",h.length]})]})]}),H?Gi.createPortal(c.jsx("div",{className:"general-feedback-dialog-backdrop",children:c.jsxs("dialog",{"aria-labelledby":"general-feedback-dialog-title","aria-modal":"true",className:"general-feedback-dialog",ref:je,open:!0,tabIndex:-1,children:[c.jsxs("header",{className:"general-feedback-dialog-header",children:[c.jsx("h2",{id:"general-feedback-dialog-title",children:U===null?"General feedback":"Edit general feedback"}),c.jsx("button",{"aria-label":"Close general feedback",className:"icon-button general-feedback-dialog-close",type:"button",onClick:ae,children:c.jsx(Yi,{size:18})})]}),c.jsx("div",{className:"general-feedback-dialog-body",children:U===null?c.jsx("p",{className:"general-feedback-dialog-text",children:H.body}):c.jsx("textarea",{"aria-label":"Edit general feedback",className:"general-feedback-dialog-editor",ref:te,value:U,onChange:C=>B(C.target.value),onKeyDown:C=>{pc(C)&&(C.preventDefault(),g())}})}),c.jsx("footer",{className:"general-feedback-dialog-footer",children:U===null?c.jsxs(c.Fragment,{children:[c.jsxs("button",{className:"secondary-button",type:"button",onClick:()=>{S(H.id),ae()},children:[c.jsx(Bi,{size:14}),"Delete"]}),c.jsxs("button",{className:"secondary-button",type:"button",onClick:()=>B(H.body),children:[c.jsx(Pd,{size:14}),"Edit"]}),c.jsx("button",{className:"primary-button",type:"button",onClick:ae,children:"Close"})]}):c.jsxs(c.Fragment,{children:[c.jsx("button",{className:"secondary-button",type:"button",onClick:()=>B(null),children:"Cancel"}),c.jsxs("button",{className:"primary-button",type:"button",disabled:U.trim().length===0,onClick:g,children:[c.jsx(En,{size:14}),"Save"]})]})})]})}),document.body):null]})}function qd(a){if(!qi(a))return{kind:"General",text:a.body,title:a.body,tone:"general"};const u=`${a.filePath}:${Ua(a,{repeatSideOnEnd:!1})}`;return{kind:"Line",text:u,title:u,tone:"line"}}const R2="gloss:diff-view-mode";function m7(a=D2()){if(!a)return"unified";try{const u=a.getItem(R2);return y7(u)?u:"unified"}catch{return"unified"}}function p7(a,u=D2()){if(u)try{u.setItem(R2,a)}catch{}}function y7(a){return a==="unified"||a==="split"}function D2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}const g7="gloss:viewed-files:";function L2(a){return`${g7}${a}`}function $o(a,u=O2()){if(!u)return new Set;const f=u.getItem(L2(a));if(!f)return new Set;try{const r=JSON.parse(f);return new Set(Array.isArray(r)?r.filter(h=>typeof h=="string"):[])}catch{return new Set}}function v7(a,u,f=O2()){if(!f)return;const r=L2(a);if(u.size===0){f.removeItem(r);return}f.setItem(r,JSON.stringify(Array.from(u).toSorted()))}function O2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function b7(a){return a.type==="review.turn.created"||a.type==="review.submitted"||a.type==="review.updated"}function x7(a,u,f){return a.reviewId!==u||!a.selectedExtensionIds?new Set(f):new Set(f.filter(r=>{var h;return(h=a.selectedExtensionIds)==null?void 0:h.has(r)}))}function S7(a,u){const f=new Map(((u==null?void 0:u.comments)??[]).map(r=>[r.commentId,r]));return((a==null?void 0:a.comments)??[]).filter(r=>!qi(r)).map(r=>{const h=f.get(r.id)??null;return{comment:r,resolvedComment:h,status:h?"resolved":"open",summary:(h==null?void 0:h.summary)??null}})}function j7(a,u){return{icon:(a==null?void 0:a.trim())===u.trim()?"branch":null}}function E7(a,u){const f=(a==null?void 0:a.trim())??"",r=f||"detached";return r===u.trim()?null:{label:r,title:f||"Detached HEAD"}}function k2(a){return a.length>1}const w7=300,N7=560,z7=360,T7={files:[],stats:{files:0,additions:0,deletions:0}},M7=[],C7=[],A7={agentStatus:null,latestAgentMessage:null,latestAgentTimestamp:null,latestReviewEvent:null,progress:null},Jo=[{label:"Default app",target:"default"},{label:"Open in folder",target:"folder"}],Gd=["lockfiles"],H2="gloss:hidden-boring-file-presets:v2",_7=new Map(l2.map(a=>[a.id,a.label])),U2={diff:null,error:null,loading:!1},R7=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),D7=new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}),Fo=[["year",3600*24*365],["month",3600*24*30],["week",3600*24*7],["day",3600*24],["hour",3600],["minute",60],["second",1]],L7=[{icon:tm,label:"Match system theme",value:"system"},{icon:jm,label:"Use light theme",value:"light"},{icon:lm,label:"Use dark theme",value:"dark"}];function O7({reviewId:a}){return c.jsx(G7,{reviewId:a},a)}function k7(){const{preference:a,setPreference:u}=or();return c.jsxs("fieldset",{className:"theme-toggle",children:[c.jsx("legend",{className:"sr-only",children:"Theme"}),L7.map(f=>{const r=f.icon;return c.jsx("button",{"aria-label":f.label,"aria-pressed":a===f.value,className:"theme-toggle-option",title:f.label,type:"button",onClick:()=>u(f.value),children:c.jsx(r,{size:15})},f.value)})]})}function H7(){try{const a=window.localStorage.getItem(H2);return a===null?new Set(Gd):Xm(JSON.parse(a))}catch{return new Set(Gd)}}function Vd(a){try{window.localStorage.setItem(H2,JSON.stringify(Array.from(a)))}catch{}}function U7(a,u){const f=a2(a);return{presetLabels:Array.from(u).filter(h=>f.has(h)).map(h=>_7.get(h)??h)}}function Yd(a){const u=document.getElementById(pr(a));u&&u.scrollIntoView({behavior:"smooth",block:"start"})}function B7(a){const u=document.getElementById(pr(a.filePath));if(!u)return!1;const f=Math.max(a.startLine,a.endLine),r=Array.from(u.querySelectorAll(".inline-comment")).find(E=>E.dataset.commentId===a.id),h=Array.from(u.querySelectorAll(".diff-row")).find(E=>E.dataset.side===a.side&&Number(E.dataset.line)===f),m=r??h;if(!m)return!1;const S=m.getBoundingClientRect(),T=S.top+window.scrollY-window.innerHeight/2+S.height/2;return window.scrollTo({behavior:"auto",top:Math.max(T,0)}),q7(m),!0}function q7(a){a.classList.remove("jump-target"),a.getBoundingClientRect(),a.classList.add("jump-target"),window.setTimeout(()=>a.classList.remove("jump-target"),1400)}function G7({reviewId:a}){const[u,f]=j.useState(null),[r,h]=j.useState(null),[m,S]=j.useState(()=>m7()),[T,E]=j.useState(!1),[y,N]=j.useState(null),[L,U]=j.useState(!0),[B,Q]=j.useState(!1),[re,pe]=j.useState(z7),[$,me]=j.useState({reviewId:null,searchQuery:"",selectedExtensionIds:null}),[ue,F]=j.useState(()=>H7()),[ge,je]=j.useState(new Set),[te,Se]=j.useState(null),[we,_e]=j.useState({mode:"all"}),[de,V]=j.useReducer(e9,U2),[ee,W]=j.useState(null),[ve,b]=j.useState(null),[H,Z]=j.useState(Jo),[ae,fe]=j.useState(()=>({storageKey:a,files:$o(a)})),[g,_]=j.useState(null),[C,X]=j.useState([]),[q,Y]=j.useState("connecting"),K=j.useRef(0),Ne=j.useRef(0),Me=j.useRef(null),at=j.useRef(null),ft=wt(R=>R.reset),nt=wt(R=>R.hydrateReview),At=wt(R=>R.setDraft),ut=(u==null?void 0:u.turns[u.turns.length-1])??null,Ot=(ut==null?void 0:ut.id)??null,ze=u&&ut?u.turns.find(R=>R.id===te)??ut:null,vt=u&&ze?V7(u,ze):null,Pt=vt?gd(vt):null,fn=(ze==null?void 0:ze.diff.commitDiffs)??C7,jt=j.useMemo(()=>P7(we,fn),[fn,we]),Fn=ze&&jt.mode==="single"?fn.find(R=>R.commit.sha===jt.sha)??null:null,G=ze&&jt.mode==="range"?de.diff??T7:null,ne=ze?G??Fn??ze.diff:null,se=j.useMemo(()=>ne?{...ne,files:Pm(ne.files)}:null,[ne]),oe=(se==null?void 0:se.files)??M7,it=j.useMemo(()=>Ym(oe,ue),[ue,oe]).hidden,Ie=j.useMemo(()=>new Map(it.filter(R=>!ge.has(R.path)).map(R=>[R.path,U7(R,ue)])),[it,ue,ge]),bt=j.useMemo(()=>K8(oe),[oe]),kt=j.useMemo(()=>bt.map(R=>R.id),[bt]),dn=(u==null?void 0:u.meta.id)??null,Ba=!!(dn&&$.reviewId===dn),Ht=j.useMemo(()=>dn?x7($,dn,kt):new Set(kt),[kt,$,dn]),dt=Ba?$.searchQuery:"",Nt=j.useMemo(()=>$8(oe,dt,Ht),[oe,dt,Ht]),lt=ze?`${a}:${ze.id}`:a;let $e=ae.files;ae.storageKey!==lt&&($e=$o(lt),fe({storageKey:lt,files:$e}));const Ut=y&&Nt.some(R=>R.path===y)?y:null,_l=j.useMemo(()=>vt?X7(C,vt):A7,[C,vt]),_t=!!(!r&&u&&ze&&vt&&se&&Pt),zn=j.useCallback(R=>{f(R),R.events&&(X(R.events),Ne.current=Math.max(0,...R.events.map(J=>J.seq??0))),document.title=gd(R)},[]),Tn=j.useCallback(()=>{K.current+=1,b(null),W(null)},[]),Mn=()=>{const R=m==="unified"?"split":"unified";p7(R),S(R)},Wn=j.useCallback(()=>{_e({mode:"all"}),V({type:"idle"}),Tn(),At(null)},[Tn,At]),Cn=j.useCallback(async()=>{var le;const R=await bd(a),J=((le=R.turns[R.turns.length-1])==null?void 0:le.id)??null;te===null&&Ot&&J!==Ot&&Wn(),zn(R)},[a,te,Ot,Wn,zn]),Xi=j.useCallback(R=>{R.seq&&R.seq>Ne.current&&(Ne.current=R.seq),X(J=>Y7(J,R))},[]);if(j.useEffect(()=>{let R=!1;return ft(),Ne.current=0,X([]),Y("connecting"),bd(a).then(J=>{R||zn(J)}).catch(J=>{R||h(J instanceof Error?J.message:String(J))}),()=>{R=!0}},[a,ft,zn]),j.useEffect(()=>{let R=!1;return W5().then(({targets:J})=>{R||Z(J.length>0?J:Jo)}).catch(()=>{R||Z(Jo)}),()=>{R=!0}},[]),j.useEffect(()=>{var R;ze&&nt(((R=ze.feedback)==null?void 0:R.comments)??[],ze.resolution??null)},[nt,ze]),j.useEffect(()=>{if(!ze||jt.mode!=="range")return;let R=!1;return V({type:"loading"}),I5(a,jt.fromSha,jt.toSha,ze.id).then(J=>{R||V({type:"loaded",diff:J})}).catch(J=>{R||V({error:J instanceof Error?J.message:String(J),type:"failed"})}),()=>{R=!0}},[jt,ze,a]),j.useEffect(()=>{if(!_t)return;const R=Me.current,J=at.current;if(!R||!J)return;const le=()=>{R.style.setProperty("--review-sticky-top",`${J.offsetHeight}px`)};le();const Ue=new ResizeObserver(le);return Ue.observe(J),()=>Ue.disconnect()},[_t]),j.useEffect(()=>{const R=new EventSource(`/api/reviews/${a}/events?after=${Ne.current}`);return Y("connecting"),R.onopen=()=>{Y("connected")},R.onmessage=J=>{const le=v5(J.data,r2,"review event");Xi(le),b7(le)&&Cn().catch(Ue=>{h(Ue instanceof Error?Ue.message:String(Ue))})},R.onerror=()=>{Y("disconnected")},()=>{R.close()}},[a,Cn,Xi]),r)return c.jsx("main",{className:"empty-shell",children:c.jsxs("section",{className:"empty-panel",children:[c.jsx("h1",{children:"Review unavailable"}),c.jsx("p",{children:r})]})});if(!u||!ze||!vt||!se||!Pt)return c.jsx("main",{className:"empty-shell",children:c.jsxs("section",{className:"empty-panel",children:[c.jsx(ar,{className:"spin",size:24}),c.jsx("p",{children:"Loading review"})]})});const Qi=ze.diff.scope,qa=se.stats,Rl=j7(vt.meta.branch,Pt),Ga=E7(vt.meta.branch,Pt),Zi=i9(jt),ta=s9(jt),Dl=ze.id!==Ot||l5(ze.status),Va=k2(u.turns),na=jt.mode==="range"?de.error:null,Ki=jt.mode==="range"&&de.loading,Ya=S7(vt.feedback,vt.resolution),hn=oe.filter(R=>$e.has(R.path)).length,xt=oe.length===0?0:Math.round(hn/oe.length*100),Rt=R=>{me(J=>({reviewId:u.meta.id,searchQuery:R,selectedExtensionIds:J.reviewId===u.meta.id?J.selectedExtensionIds:null}))},In=R=>{me(J=>{const le=J.reviewId===u.meta.id&&J.selectedExtensionIds?new Set(J.selectedExtensionIds):new Set(kt);return le.has(R)?le.delete(R):le.add(R),{reviewId:u.meta.id,searchQuery:J.reviewId===u.meta.id?J.searchQuery:"",selectedExtensionIds:le}})},Xa=()=>{me(R=>({reviewId:u.meta.id,searchQuery:R.reviewId===u.meta.id?R.searchQuery:"",selectedExtensionIds:null}))},wc=()=>{me(R=>({reviewId:u.meta.id,searchQuery:R.reviewId===u.meta.id?R.searchQuery:"",selectedExtensionIds:new Set}))},Nc=R=>{F(J=>{const le=new Set(J);return le.has(R)?le.delete(R):le.add(R),Vd(le),le})},$i=()=>{const R=new Set;Vd(R),F(R)},Pn=R=>{je(J=>{const le=new Set(J);return le.add(R),le})},Qa=R=>{N(R.filePath),Q(!1),Nt.some(Ue=>Ue.path===R.filePath)||me({reviewId:u.meta.id,searchQuery:"",selectedExtensionIds:null}),Ie.has(R.filePath)&&Pn(R.filePath);let J=0;const le=()=>{if(!B7(R)){if(J<8){J+=1,window.requestAnimationFrame(le);return}Yd(R.filePath)}};window.requestAnimationFrame(le)},el=R=>{N(R),Q(!1),window.requestAnimationFrame(()=>{window.setTimeout(()=>Yd(R),0)})},tl=R=>{R.preventDefault();const J=R.clientX,le=re,Ue=Tc=>{const Za=le+Tc.clientX-J;pe(Math.min(N7,Math.max(w7,Za)))},vn=()=>{window.removeEventListener("pointermove",Ue),window.removeEventListener("pointerup",vn)};window.addEventListener("pointermove",Ue),window.addEventListener("pointerup",vn,{once:!0})},Ll=(R,J)=>{fe(le=>{const Ue=le.storageKey===lt?le.files:$o(lt),vn=new Set(Ue);return J?vn.add(R):vn.delete(R),v7(lt,vn),{storageKey:lt,files:vn}})},nl=async(R,J)=>{_(null);try{await xd(a,R,ze.id,{target:J})}catch(le){const Ue=le instanceof Error?le.message:String(le);throw _(Ue),new Error(Ue)}},ht=async(R,J)=>{_(null);try{await xd(a,R,ze.id,{scope:"repo",target:J})}catch(le){const Ue=le instanceof Error?le.message:String(le);throw _(Ue),new Error(Ue)}},Ji=async R=>{_(null);try{return(await Sd(a,R,ze.id)).content}catch(J){const le=J instanceof Error?J.message:String(J);throw _(le),new Error(le)}},Fi=async R=>{_(null);try{return(await Sd(a,R,ze.id,{scope:"repo"})).content}catch(J){const le=J instanceof Error?J.message:String(J);throw _(le),new Error(le)}},An=async R=>{const J=K.current+1;K.current=J,b(R),W({status:"loading",symbol:R.symbol});try{const le=await e6({reviewId:a,turnId:ze.id,source:ta,...R});K.current===J&&W({status:"ready",response:le})}catch(le){K.current===J&&W({message:le instanceof Error?le.message:String(le),status:"error",symbol:R.symbol})}},ll=async(R,J,le)=>{if(!ve)throw new Error("source peek selection is no longer available");return t6({reviewId:a,turnId:ze.id,source:ta,side:ve.side,filePath:R,startLine:J,lineCount:le})},Wi={activeFilePath:Ut,extensionBuckets:bt,files:oe,filteredFiles:Nt,hiddenBoringFileCount:Ie.size,hiddenBoringPresets:ue,searchQuery:dt,selectedExtensionIds:Ht,onClearExtensions:wc,onFileSelect:el,onSearchChange:Rt,onSelectAllExtensions:Xa,onShowAllBoringFiles:$i,onToggleBoringPreset:Nc,onToggleExtension:In},Ii=c.jsx(Od,{...Wi,onCollapse:()=>U(!0)}),Pi=c.jsx(Od,{...Wi}),zc=se.files.length===0?null:c.jsxs("div",{className:"empty-diff filtered-empty",children:[c.jsx("h2",{children:"No matching files"}),c.jsx("p",{children:"Adjust the file search or extension filters to show changed files."})]});return c.jsx("main",{className:"review-shell",ref:Me,children:c.jsxs("div",{className:"review-split",children:[c.jsxs("div",{className:"review-main-pane",children:[c.jsxs("header",{className:"topbar",ref:at,children:[c.jsxs("div",{className:"topbar-header",children:[c.jsxs("div",{className:"topbar-title",children:[c.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:""}),c.jsxs("div",{className:"review-heading",children:[c.jsx("p",{className:"product-name",children:"Gloss"}),c.jsxs("h1",{children:[Rl.icon==="branch"?c.jsx(mc,{className:"review-title-icon",size:18}):null,c.jsx("span",{className:"review-title-text",children:Pt})]})]})]}),c.jsxs("div",{className:"topbar-actions",children:[c.jsx(t9,{commitDiffs:fn,value:jt,onChange:R=>{_e(R),R.mode!=="range"&&V({type:"idle"}),Tn(),At(null)}}),c.jsxs("div",{className:"viewed-progress",title:"Viewed files",children:[c.jsx("span",{"aria-hidden":"true",className:"viewed-progress-ring",style:{"--viewed-progress":`${xt}%`}}),hn," / ",oe.length," viewed"]}),c.jsx("button",{"aria-label":"Open file tree",className:"icon-button file-tree-mobile-toggle",title:"Open file tree",type:"button",onClick:()=>Q(!0),children:c.jsx(lr,{size:16})}),c.jsx("button",{"aria-label":"Side-by-side diff view","aria-pressed":m==="split",className:"icon-button diff-view-toggle",title:"Side-by-side diff view",type:"button",onClick:Mn,children:c.jsx(Ch,{size:16})}),c.jsx("button",{"aria-label":T?"Unwrap lines":"Wrap lines","aria-pressed":T,className:"icon-button wrap-toggle",title:T?"Unwrap lines":"Wrap lines",type:"button",onClick:()=>E(R=>!R),children:T?c.jsx(im,{size:16}):c.jsx(n2,{size:16})}),c.jsx(k7,{}),Ga?c.jsxs("div",{className:"branch-pill",title:Ga.title,children:[c.jsx(mc,{size:16}),c.jsx("span",{children:Ga.label})]}):null]})]}),c.jsx(F7,{scope:Qi,selectedTurn:ze,stats:qa,turns:u.turns,onSelectTurn:R=>{R!==ze.id&&Wn(),Se(R===Ot?null:R)}}),q==="disconnected"?c.jsx("div",{className:"event-connection-banner",children:"Reconnecting to live review updates"}):null,c.jsx(Q7,{state:_l})]}),g?c.jsx("div",{className:"open-file-message error",children:g}):null,na?c.jsx("div",{className:"open-file-message error",children:na}):null,Ki?c.jsx("div",{className:"range-loading",children:"Loading range diff"}):null,c.jsxs("div",{className:`review-body ${L?"file-tree-collapsed":""}`,style:{"--file-tree-width":`${re}px`},children:[c.jsx("aside",{className:`review-sidebar ${L?"collapsed":""}`,children:L?c.jsxs("button",{"aria-label":"Expand file tree",className:"file-tree-rail",title:"Expand file tree",type:"button",onClick:()=>U(!1),children:[c.jsx(om,{size:17}),c.jsx("span",{children:"Files"}),c.jsx("span",{children:Nt.length})]}):c.jsxs(c.Fragment,{children:[Ii,c.jsx("button",{"aria-label":"Resize file tree",className:"file-tree-resize-handle",title:"Resize file tree",type:"button",onPointerDown:tl})]})}),c.jsxs("section",{className:"review-diff-column",children:[Dl&&!Va?c.jsx(r9,{record:vt}):null,Dl&&Ya.length>0?c.jsx(o9,{items:Ya}):null,c.jsx(R8,{activeFilePath:Ut,contextSource:ta,diff:se,emptyState:zc,files:Nt,hiddenFiles:Ie,record:vt,readOnly:Dl,reviewId:a,selectedSourcePeek:ve,turnId:ze.id,viewMode:m,viewedFiles:$e,wrapLines:T,openTargets:H,onCopyFileContents:Ji,onOpenFile:nl,onRevealHiddenFile:Pn,onSourcePeek:An,onViewedChange:Ll})]})]}),B?c.jsx("dialog",{className:"file-tree-drawer-backdrop","aria-label":"Files",open:!0,children:c.jsxs("aside",{className:"file-tree-drawer",children:[c.jsxs("div",{className:"file-tree-drawer-header",children:[c.jsx("span",{children:"Changed files"}),c.jsx("button",{"aria-label":"Close file tree",className:"icon-button",type:"button",onClick:()=>Q(!1),children:c.jsx(Yi,{size:16})})]}),Pi]})}):null,Dl?null:c.jsx(h7,{reviewId:a,reviewScope:Zi,onLineCommentSelect:Qa,onSubmitted:Cn})]}),ee?Gi.createPortal(c.jsx(n7,{openTargets:H,state:ee,onCopyFileContents:Fi,onLoadRange:ll,onOpenFile:ht,onClose:Tn}),document.body):null]})})}function V7(a,u){return{...a,meta:{...a.meta,activeTurnId:u.id,status:u.status,submittedAt:u.submittedAt,resolvedAt:u.resolvedAt,feedbackPath:u.feedbackPath,markdownPath:u.markdownPath},diff:u.diff,...u.feedback?{feedback:u.feedback}:{feedback:void 0},...u.resolution?{resolution:u.resolution}:{resolution:void 0}}}function Y7(a,u){const f=Xd(u),r=a.findIndex(m=>Xd(m)===f);return(r>=0?a.map((m,S)=>S===r?u:m):[...a,u]).toSorted(Z7)}function X7(a,u){const r=a.filter(S=>S.type==="agent.claimed"||S.type==="agent.note").at(-1)??null,h=[...a].reverse().find(S=>S.type.startsWith("review.")&&S.type!=="review.opened")??null,m=ir(u);return{agentStatus:K7(r),latestAgentMessage:$7(r),latestAgentTimestamp:(r==null?void 0:r.createdAt)??null,latestReviewEvent:h,progress:m.total>0?`${m.resolved} of ${m.total} comments resolved`:null}}function Q7({state:a}){return!a.agentStatus&&!a.latestReviewEvent&&!a.progress?null:c.jsxs("section",{className:"review-session-panel",children:[c.jsxs("div",{className:"review-session-item",children:[c.jsx("span",{className:"review-session-label",children:"Review"}),c.jsx("span",{className:"review-session-value",children:J7(a.latestReviewEvent)??"Open"})]}),a.progress?c.jsxs("div",{className:"review-session-item",children:[c.jsx("span",{className:"review-session-label",children:"Progress"}),c.jsx("span",{className:"review-session-value",children:a.progress})]}):null,a.agentStatus?c.jsxs("div",{className:"review-session-item agent",children:[c.jsx("span",{className:"review-session-label",children:"Agent"}),c.jsx("span",{className:"review-session-value",children:a.agentStatus}),a.latestAgentTimestamp?c.jsx("time",{dateTime:a.latestAgentTimestamp,children:vr(a.latestAgentTimestamp)}):null]}):null,a.latestAgentMessage?c.jsx("p",{className:"review-session-message",children:a.latestAgentMessage}):null]})}function Xd(a){return a.seq!==void 0?`seq:${a.seq}`:a.id?`id:${a.id}`:`${a.type}:${a.reviewId}:${a.createdAt??""}:${JSON.stringify(a)}`}function Z7(a,u){const f=a.seq??0,r=u.seq??0;return f!==r?f-r:(a.createdAt??"").localeCompare(u.createdAt??"")}function K7(a){return a?a.type==="agent.claimed"?"Claimed":a.type==="agent.note"&&a.status?a.status.charAt(0).toUpperCase()+a.status.slice(1):"Updated":null}function $7(a){return a?a.type==="agent.claimed"?a.message??null:a.type==="agent.note"?a.message:null:null}function J7(a){return a?a.type==="review.turn.created"?`Turn ${a.turnIndex} opened`:a.type==="review.submitted"?`Submitted · ${a.counts.comments} comments`:a.type==="review.updated"?a.status==="resolved"?"Resolved":"Submitted":a.type==="review.cancelled"?"Cancelled":null:null}function F7({scope:a,selectedTurn:u,stats:f,turns:r,onSelectTurn:h}){return c.jsxs("div",{className:"review-context-bar",children:[c.jsxs("div",{className:"review-context-range",title:`${Zd("Base",a.base.ref,a.base.sha)} to ${Zd("Compare",a.comparison.ref,a.comparison.sha)}`,children:[c.jsx("span",{className:"review-context-ref",children:Qd(a.base.ref,a.base.sha)}),c.jsx(Jd,{className:"review-context-arrow",size:14}),c.jsx("span",{className:"review-context-ref",children:Qd(a.comparison.ref,a.comparison.sha)})]}),c.jsx("span",{className:"review-context-divider","aria-hidden":"true"}),c.jsxs("div",{className:"review-context-stats",title:"Changed files",children:[c.jsxs("span",{children:[f.files," ",f.files===1?"file":"files"]}),c.jsxs("span",{className:"summary-add",children:["+",f.additions]}),c.jsxs("span",{className:"summary-del",children:["-",f.deletions]})]}),c.jsx(W7,{selectedTurn:u,turns:r,onSelect:h})]})}function W7({selectedTurn:a,turns:u,onSelect:f}){var E;const[r,h]=j.useState(!1),m=j.useRef(null);if(j.useEffect(()=>{if(!r)return;const y=L=>{var U;(U=m.current)!=null&&U.contains(L.target)||h(!1)},N=L=>{L.key==="Escape"&&h(!1)};return window.addEventListener("pointerdown",y),window.addEventListener("keydown",N),()=>{window.removeEventListener("pointerdown",y),window.removeEventListener("keydown",N)}},[r]),!k2(u))return null;const S=(E=u[u.length-1])==null?void 0:E.id,T=[...u].reverse();return c.jsxs("div",{className:"turn-selector",ref:m,children:[c.jsxs("button",{"aria-expanded":r,"aria-haspopup":"menu",className:"turn-selector-trigger",type:"button",onClick:()=>h(y=>!y),children:[c.jsxs("span",{children:["Turn ",a.index," of ",u.length]}),c.jsx("span",{className:`turn-selector-status ${a.status}`,children:a.status}),c.jsx(Al,{size:14})]}),r?c.jsx("div",{className:"turn-menu",role:"menu","aria-label":"Review turns",children:T.map(y=>{var re;const N=ir(y),L=y.id===a.id,U=y.id===S,B=(re=y.feedback)!=null&&re.reviewScope?t5(y.feedback.reviewScope,y.diff.commitDiffs??[]):null,Q=I7(y);return c.jsxs("button",{"aria-checked":L,className:`turn-menu-item ${L?"selected":""}`,role:"menuitemradio",type:"button",onClick:()=>{f(y.id),h(!1)},children:[c.jsxs("span",{className:"turn-menu-title",children:["Turn ",y.index,U?c.jsx("span",{className:"turn-menu-latest",children:"Latest"}):null]}),c.jsxs("span",{className:`turn-menu-meta ${y.status}`,children:[y.status,N.total>0?` · ${N.open} open / ${N.total}`:" · no comments"]}),Q?c.jsx("time",{className:"turn-menu-time",dateTime:Q,children:vr(Q)}):null,B?c.jsxs("span",{className:"turn-menu-scope",children:["Scope: ",B]}):null]},y.id)})}):null]})}function Qd(a,u){return u?`${a} ${u.slice(0,7)}`:a}function Zd(a,u,f){return`${a} ${u}${f?` (${f})`:""}`}function I7(a){var u;return a.status==="resolved"?a.resolvedAt??((u=a.resolution)==null?void 0:u.resolvedAt)??null:a.status==="submitted"?a.submittedAt??null:null}function P7(a,u){if(a.mode==="all")return a;if(a.mode==="single")return u.some(h=>h.commit.sha===a.sha)?a:{mode:"all"};const f=u.findIndex(h=>h.commit.sha===a.fromSha),r=u.findIndex(h=>h.commit.sha===a.toSha);return f>=0&&r>=f?a:{mode:"all"}}function e9(a,u){switch(u.type){case"idle":return U2;case"loading":return{diff:null,error:null,loading:!0};case"loaded":return{diff:u.diff,error:null,loading:!1};case"failed":return{diff:null,error:u.error,loading:!1}}}function t9({commitDiffs:a,value:u,onChange:f}){const[r,h]=j.useState(!1),[m,S]=j.useState("all"),[T,E]=j.useState(new Set),y=j.useRef(null),N=j.useRef(null),L=j.useMemo(()=>a.map($=>({sha:$.commit.sha,shortSha:$.commit.shortSha,subject:$.commit.subject,authorName:$.commit.authorName,committedAt:$.commit.committedAt,fileCount:$.files.length})),[a]);if(j.useEffect(()=>{if(!r)return;N.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const $=["button:not(:disabled)","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)","a[href]",'[tabindex]:not([tabindex="-1"])'].join(","),me=()=>{var F;return Array.from(((F=y.current)==null?void 0:F.querySelectorAll($))??[]).filter(ge=>ge.offsetParent!==null)};window.requestAnimationFrame(()=>{var F;(F=me()[0]??y.current)==null||F.focus()});const ue=F=>{var Se;if(F.key==="Escape"&&h(!1),F.key!=="Tab")return;const ge=me();if(ge.length===0){F.preventDefault(),(Se=y.current)==null||Se.focus();return}const je=ge[0],te=ge[ge.length-1];F.shiftKey&&document.activeElement===je?(F.preventDefault(),te.focus()):!F.shiftKey&&document.activeElement===te&&(F.preventDefault(),je.focus())};return window.addEventListener("keydown",ue),()=>{var F;window.removeEventListener("keydown",ue),(F=N.current)==null||F.focus(),N.current=null}},[r]),L.length===0)return null;const U=()=>{const $=n9(u,L);S(u.mode==="all"||$.size===0?"all":"selected"),E($),h(!0)},B=B2(T,L),Q=B.length>0?{from:L[B[0]],to:L[B[B.length-1]],count:B[B.length-1]-B[0]+1}:null,re=m==="all"?`${L.length} ${L.length===1?"commit":"commits"}`:Q?Q.from.sha===Q.to.sha?Q.from.shortSha:`${Q.count} commits · ${Q.from.shortSha} to ${Q.to.shortSha}`:"No commits selected",pe=m==="all"||B.length>0;return c.jsxs("div",{className:"commit-selector",children:[c.jsxs("button",{"aria-expanded":r,className:"commit-picker-trigger",type:"button",onClick:U,children:[c.jsx(Kh,{size:16}),c.jsx("span",{className:"commit-picker-trigger-text",children:c9(u,L)}),c.jsx(Al,{size:16})]}),r?Gi.createPortal(c.jsx("div",{className:"commit-picker-backdrop",children:c.jsxs("dialog",{"aria-labelledby":"commit-picker-title","aria-modal":"true",className:"commit-picker-dialog",ref:y,open:!0,tabIndex:-1,children:[c.jsxs("header",{className:"commit-picker-header",children:[c.jsx("h2",{id:"commit-picker-title",children:"Select commits to view"}),c.jsx("button",{"aria-label":"Close commit picker",className:"icon-button commit-picker-close",type:"button",onClick:()=>h(!1),children:c.jsx(Yi,{size:20})})]}),c.jsxs("div",{className:"commit-picker-body",children:[c.jsxs("label",{className:`commit-picker-all ${m==="all"?"selected":""}`,children:[c.jsx("input",{checked:m==="all",className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{S("all"),E(new Set)}}),c.jsxs("span",{className:"commit-picker-all-copy",children:[c.jsx("span",{children:"All commits"}),c.jsxs("span",{children:[L.length," ",L.length===1?"commit":"commits"]})]})]}),c.jsx("div",{className:"commit-picker-section-label",children:"Select a range of commits"}),c.jsx("div",{className:"commit-picker-list",children:L.map($=>{const me=m==="selected"&&T.has($.sha);return c.jsxs("label",{className:`commit-picker-row ${me?"selected":""}`,children:[c.jsx("input",{checked:me,className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{S("selected"),E(ue=>l9(ue,$.sha,L))}}),c.jsxs("span",{className:"commit-picker-row-copy",children:[c.jsx("span",{className:"commit-picker-subject",children:$.subject}),c.jsxs("span",{className:"commit-picker-meta",children:[$.authorName," committed ",u9($.committedAt)," ","· ",$.fileCount," ",$.fileCount===1?"file":"files"]})]}),c.jsx("span",{className:"commit-picker-sha",children:$.shortSha})]},$.sha)})})]}),c.jsxs("footer",{className:"commit-picker-footer",children:[c.jsx("span",{className:"commit-picker-summary",children:re}),c.jsx("button",{className:"secondary-button",type:"button",onClick:()=>h(!1),children:"Cancel"}),c.jsxs("button",{className:"primary-button",disabled:!pe,type:"button",onClick:()=>{if(m==="all"){f({mode:"all"}),h(!1);return}const $=a9(B,L);$&&(f($),h(!1))},children:[c.jsx(En,{size:16}),"Save"]})]})]})}),document.body):null]})}function n9(a,u){if(a.mode==="all")return new Set;if(a.mode==="single")return u.some(h=>h.sha===a.sha)?new Set([a.sha]):new Set;const f=u.findIndex(h=>h.sha===a.fromSha),r=u.findIndex(h=>h.sha===a.toSha);return f<0||r<f?new Set:ka(f,r,u)}function B2(a,u){const f=[];for(const[r,h]of u.entries())a.has(h.sha)&&f.push(r);return f}function l9(a,u,f){const r=f.findIndex(y=>y.sha===u);if(r<0)return a;const h=B2(a,f);if(!a.has(u)){const y=h.length>0?Math.min(h[0],r):r,N=h.length>0?Math.max(h[h.length-1],r):r;return ka(y,N,f)}if(h.length<=1)return new Set;const m=h[0],S=h[h.length-1];if(r<=m)return ka(m+1,S,f);if(r>=S)return ka(m,S-1,f);const T=r-m,E=S-r;return T>=E?ka(m,r-1,f):ka(r+1,S,f)}function ka(a,u,f){return a<0||u<a?new Set:new Set(f.slice(a,u+1).map(r=>r.sha))}function a9(a,u){if(a.length===0)return null;const f=a[0],r=a[a.length-1];return f===r?{mode:"single",sha:u[f].sha}:{mode:"range",fromSha:u[f].sha,toSha:u[r].sha}}function i9(a){return a.mode==="all"?{mode:"all"}:a.mode==="single"?{mode:"single",sha:a.sha}:{mode:"range",fromSha:a.fromSha,toSha:a.toSha}}function s9(a){return a.mode==="all"?{mode:"turn"}:a.mode==="single"?{mode:"commit",sha:a.sha}:{mode:"range",fromSha:a.fromSha,toSha:a.toSha}}function c9(a,u){if(a.mode==="all")return"All commits";if(a.mode==="single"){const m=u.find(S=>S.sha===a.sha);return m?`${m.shortSha} ${m.subject}`:"One commit"}const f=u.findIndex(m=>m.sha===a.fromSha),r=u.findIndex(m=>m.sha===a.toSha);return f<0||r<f?"Commit range":`${r-f+1} commits · ${u[f].shortSha} to ${u[r].shortSha}`}function u9(a){const u=new Date(a);if(Number.isNaN(u.getTime()))return"recently";const f=Math.round((u.getTime()-Date.now())/1e3),[r,h]=Fo.find(([,m])=>Math.abs(f)>=m)??Fo[Fo.length-1];return R7.format(Math.round(f/h),r)}function o9({items:a}){return c.jsxs("section",{className:"submitted-general-feedback","aria-labelledby":"submitted-general-title",children:[c.jsxs("header",{className:"submitted-general-feedback-header",children:[c.jsxs("div",{className:"submitted-general-feedback-title",children:[c.jsx(Ml,{size:16}),c.jsx("h2",{id:"submitted-general-title",children:"General feedback"})]}),c.jsx("span",{className:"submitted-general-feedback-count",children:a.length})]}),c.jsx("div",{className:"submitted-general-feedback-list",children:a.map(u=>c.jsxs("article",{className:`submitted-general-feedback-card ${u.status}`,children:[c.jsx("div",{className:"submitted-general-feedback-icon",children:u.status==="resolved"?c.jsx(nr,{size:15}):c.jsx(Ml,{size:15})}),c.jsxs("div",{className:"submitted-general-feedback-content",children:[c.jsx("div",{className:"submitted-general-feedback-meta",children:u.status==="resolved"?"Resolved":"Open · Needs fix"}),c.jsx("p",{className:"submitted-general-feedback-body",children:u.comment.body}),u.summary?c.jsx("p",{className:"submitted-general-feedback-summary",children:u.summary}):null]})]},u.comment.id))})]})}function r9({record:a}){var r;const u=f9(a);if(!u)return null;const f=a.meta.status==="resolved"?a.meta.resolvedAt??((r=a.resolution)==null?void 0:r.resolvedAt):a.meta.submittedAt;return c.jsxs("section",{className:`review-state-banner ${a.meta.status}`,children:[c.jsxs("div",{className:"review-state-title",children:[c.jsx(nr,{size:16}),c.jsx("span",{children:u.title})]}),c.jsx("p",{children:u.body}),f?c.jsx("time",{dateTime:f,children:vr(f)}):null]})}function f9(a){const u=a.meta.status,f=ir(a),r=f.total>0?`${f.resolved} of ${f.total} comments resolved`:null;return u==="submitted"?{title:f.resolved>0&&r?`Submitted · ${r}`:"Submitted",body:f.resolved>0?"Feedback is being handled.":"Feedback has been submitted."}:u==="resolved"?{title:r?`Resolved · ${r}`:"Resolved",body:"This feedback turn is resolved."}:null}function vr(a){return D7.format(new Date(a))}const d9="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",h9=`1. Run gloss open --json from the repo root unless the user names a base ref.
321
+ 2. Wait for the browser review to be submitted.
322
+ 3. Read feedbackPath from the JSON output.
323
+ 4. Address general comments first, then file comments in file and line order.
324
+ 5. Validate the fix with the narrowest relevant checks.
325
+ 6. Optionally mark individual comments handled:
326
+ gloss resolve <reviewId> --comment <commentId> --summary "<what changed>"
327
+ 7. Run gloss resolve <reviewId> --summary "<what changed>", then summarize what changed.`;function m9(){return c.jsxs("main",{className:"setup-page",children:[c.jsxs("nav",{className:"setup-nav","aria-label":"Gloss setup",children:[c.jsxs("a",{className:"marketing-wordmark",href:"/",children:[c.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:"","aria-hidden":"true"}),"Gloss"]}),c.jsx("a",{href:"/setup.md",children:"Raw setup.md"})]}),c.jsxs("header",{className:"setup-header",children:[c.jsx("h1",{children:"Set up Gloss for agent reviews."}),c.jsx("p",{children:"Install the CLI, then add the Gloss instruction block to the file your coding agent already reads."})]}),c.jsxs("section",{className:"setup-section",children:[c.jsx("h2",{children:"Install"}),c.jsx("pre",{children:"brew install iamrajjoshi/tap/gloss"}),c.jsx("pre",{children:"npm install -g getgloss"}),c.jsx("pre",{children:"gloss help"})]}),c.jsxs("section",{className:"setup-section",children:[c.jsx("h2",{children:"Agent Instruction"}),c.jsx("p",{children:"Give a new agent chat this instruction:"}),c.jsx("pre",{children:"Install Gloss with Homebrew or npm. Then read https://getgloss.dev/setup.md."})]}),c.jsxs("section",{className:"setup-section",children:[c.jsx("h2",{children:"Claude Code Skill"}),c.jsxs("p",{children:["Gloss ships a packaged skill at ",c.jsx("code",{children:"skill/SKILL.md"}),". Install it when you want Claude Code to know when and how to use Gloss."]}),c.jsx("pre",{children:d9}),c.jsx("p",{children:"The skill pairs the CLI with the browser app:"}),c.jsx("pre",{children:h9})]}),c.jsxs("section",{className:"setup-section",children:[c.jsx("h2",{children:"Persistent Instructions"}),c.jsx("p",{children:"Add the canonical Gloss block to the instruction file your agent actually loads."}),c.jsx("pre",{children:"curl -fsSL https://getgloss.dev/prompt.md >> /absolute/path/to/AGENTS.md"}),c.jsxs("ul",{children:[c.jsxs("li",{children:["Codex usually reads ",c.jsx("code",{children:"${CODEX_HOME:-$HOME/.codex}/AGENTS.md"}),"."]}),c.jsxs("li",{children:["Claude Code usually reads ",c.jsx("code",{children:"$HOME/.claude/CLAUDE.md"}),"."]}),c.jsxs("li",{children:["Project-local agents often read ",c.jsx("code",{children:"AGENTS.md"})," from the repo root."]})]})]}),c.jsxs("section",{className:"setup-section",children:[c.jsx("h2",{children:"Use"}),c.jsx("pre",{children:"gloss open --json"}),c.jsxs("p",{children:["Leave the command running. Gloss exits after the browser review is submitted and writes feedback under ",c.jsx("code",{children:"~/.gloss/reviews/<reviewId>/"}),"."]}),c.jsxs("p",{children:["In the browser review, ",c.jsx("code",{children:"Command+Enter"})," saves the active draft comment and"," ",c.jsx("code",{children:"Command+Shift+Enter"})," submits already-saved comments."]}),c.jsx("p",{children:"Gloss hides lockfiles by default in the browser review. Use browser-only filters to also hide snapshots, generated code, and vendored code while reviewing."}),c.jsx("p",{children:"Start a fresh session with the same command for follow-up diffs."})]}),c.jsx("section",{className:"setup-note",children:c.jsxs("p",{children:["Agents should read ",c.jsx("a",{href:"/setup.md",children:"/setup.md"}),". This page is the browser-friendly version."]})})]})}function p9(){if(window.location.pathname==="/setup"||window.location.pathname==="/setup/")return c.jsx(m9,{});const a=/^\/review\/([^/]+)/.exec(window.location.pathname);return a?c.jsx(O7,{reviewId:a[1]}):c.jsx(Um,{})}th.createRoot(document.getElementById("root")).render(c.jsx(Hi.StrictMode,{children:c.jsx(w6,{children:c.jsx(p9,{})})}));export{$n as d};