getgloss 0.12.0 → 0.12.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.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var kf;function p3(){if(kf)return fe;kf=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),w=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),B=Symbol.iterator;function F(p){return p===null||typeof p!="object"?null:(p=B&&p[B]||p["@@iterator"],typeof p=="function"?p:null)}var te={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},se=Object.assign,be={};function q(p,O,U){this.props=p,this.context=O,this.refs=be,this.updater=U||te}q.prototype.isReactComponent={},q.prototype.setState=function(p,O){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,O,"setState")},q.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function de(){}de.prototype=q.prototype;function oe(p,O,U){this.props=p,this.context=O,this.refs=be,this.updater=U||te}var ne=oe.prototype=new de;ne.constructor=oe,se(ne,q.prototype),ne.isPureReactComponent=!0;var he=Array.isArray;function $(){}var K={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function ze(p,O,U){var X=U.ref;return{$$typeof:i,type:p,key:O,ref:X!==void 0?X:null,props:U}}function Be(p,O){return ze(p.type,O,p.props)}function Te(p){return typeof p=="object"&&p!==null&&p.$$typeof===i}function H(p){var O={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(U){return O[U]})}var Z=/\/+/g;function Q(p,O){return typeof p=="object"&&p!==null&&p.key!=null?H(""+p.key):O.toString(36)}function Se(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then($,$):(p.status="pending",p.then(function(O){p.status==="pending"&&(p.status="fulfilled",p.value=O)},function(O){p.status==="pending"&&(p.status="rejected",p.reason=O)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function z(p,O,U,X,ce){var M=typeof p;(M==="undefined"||M==="boolean")&&(p=null);var V=!1;if(p===null)V=!0;else switch(M){case"bigint":case"string":case"number":V=!0;break;case"object":switch(p.$$typeof){case i:case o:V=!0;break;case T:return V=p._init,z(V(p._payload),O,U,X,ce)}}if(V)return ce=ce(p),V=X===""?"."+Q(p,0):X,he(ce)?(U="",V!=null&&(U=V.replace(Z,"$&/")+"/"),z(ce,O,U,"",function(ge){return ge})):ce!=null&&(Te(ce)&&(ce=Be(ce,U+(ce.key==null||p&&p.key===ce.key?"":(""+ce.key).replace(Z,"$&/")+"/")+V)),O.push(ce)),1;V=0;var ue=X===""?".":X+":";if(he(p))for(var ee=0;ee<p.length;ee++)X=p[ee],M=ue+Q(X,ee),V+=z(X,O,U,M,ce);else if(ee=F(p),typeof ee=="function")for(p=ee.call(p),ee=0;!(X=p.next()).done;)X=X.value,M=ue+Q(X,ee++),V+=z(X,O,U,M,ce);else if(M==="object"){if(typeof p.then=="function")return z(Se(p),O,U,X,ce);throw O=String(p),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return V}function k(p,O,U){if(p==null)return p;var X=[],ce=0;return z(p,X,"","",function(M){return O.call(U,M,ce++)}),X}function W(p){if(p._status===-1){var O=p._result;O=O(),O.then(function(U){(p._status===0||p._status===-1)&&(p._status=1,p._result=U)},function(U){(p._status===0||p._status===-1)&&(p._status=2,p._result=U)}),p._status===-1&&(p._status=0,p._result=O)}if(p._status===1)return p._result.default;throw p._result}var pe=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},re={map:k,forEach:function(p,O,U){k(p,function(){O.apply(this,arguments)},U)},count:function(p){var O=0;return k(p,function(){O++}),O},toArray:function(p){return k(p,function(O){return O})||[]},only:function(p){if(!Te(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return fe.Activity=L,fe.Children=re,fe.Component=q,fe.Fragment=f,fe.Profiler=h,fe.PureComponent=oe,fe.StrictMode=r,fe.Suspense=S,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,fe.__COMPILER_RUNTIME={__proto__:null,c:function(p){return K.H.useMemoCache(p)}},fe.cache=function(p){return function(){return p.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(p,O,U){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var X=se({},p.props),ce=p.key;if(O!=null)for(M in O.key!==void 0&&(ce=""+O.key),O)!Y.call(O,M)||M==="key"||M==="__self"||M==="__source"||M==="ref"&&O.ref===void 0||(X[M]=O[M]);var M=arguments.length-2;if(M===1)X.children=U;else if(1<M){for(var V=Array(M),ue=0;ue<M;ue++)V[ue]=arguments[ue+2];X.children=V}return ze(p.type,ce,X)},fe.createContext=function(p){return p={$$typeof:w,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:g,_context:p},p},fe.createElement=function(p,O,U){var X,ce={},M=null;if(O!=null)for(X in O.key!==void 0&&(M=""+O.key),O)Y.call(O,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ce[X]=O[X]);var V=arguments.length-2;if(V===1)ce.children=U;else if(1<V){for(var ue=Array(V),ee=0;ee<V;ee++)ue[ee]=arguments[ee+2];ce.children=ue}if(p&&p.defaultProps)for(X in V=p.defaultProps,V)ce[X]===void 0&&(ce[X]=V[X]);return ze(p,M,ce)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(p){return{$$typeof:_,render:p}},fe.isValidElement=Te,fe.lazy=function(p){return{$$typeof:T,_payload:{_status:-1,_result:p},_init:W}},fe.memo=function(p,O){return{$$typeof:y,type:p,compare:O===void 0?null:O}},fe.startTransition=function(p){var O=K.T,U={};K.T=U;try{var X=p(),ce=K.S;ce!==null&&ce(U,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then($,pe)}catch(M){pe(M)}finally{O!==null&&U.types!==null&&(O.types=U.types),K.T=O}},fe.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},fe.use=function(p){return K.H.use(p)},fe.useActionState=function(p,O,U){return K.H.useActionState(p,O,U)},fe.useCallback=function(p,O){return K.H.useCallback(p,O)},fe.useContext=function(p){return K.H.useContext(p)},fe.useDebugValue=function(){},fe.useDeferredValue=function(p,O){return K.H.useDeferredValue(p,O)},fe.useEffect=function(p,O){return K.H.useEffect(p,O)},fe.useEffectEvent=function(p){return K.H.useEffectEvent(p)},fe.useId=function(){return K.H.useId()},fe.useImperativeHandle=function(p,O,U){return K.H.useImperativeHandle(p,O,U)},fe.useInsertionEffect=function(p,O){return K.H.useInsertionEffect(p,O)},fe.useLayoutEffect=function(p,O){return K.H.useLayoutEffect(p,O)},fe.useMemo=function(p,O){return K.H.useMemo(p,O)},fe.useOptimistic=function(p,O){return K.H.useOptimistic(p,O)},fe.useReducer=function(p,O,U){return K.H.useReducer(p,O,U)},fe.useRef=function(p){return K.H.useRef(p)},fe.useState=function(p){return K.H.useState(p)},fe.useSyncExternalStore=function(p,O,U){return K.H.useSyncExternalStore(p,O,U)},fe.useTransition=function(){return K.H.useTransition()},fe.version="19.2.6",fe}var Vf;function L1(){return Vf||(Vf=1,p1.exports=p3()),p1.exports}var A=L1();const vi=h3(A);var v1={exports:{}},yi={},g1={exports:{}},b1={};/**
17
+ */var kf;function p3(){if(kf)return fe;kf=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),w=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),k=Symbol.iterator;function F(p){return p===null||typeof p!="object"?null:(p=k&&p[k]||p["@@iterator"],typeof p=="function"?p:null)}var te={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},se=Object.assign,be={};function B(p,O,U){this.props=p,this.context=O,this.refs=be,this.updater=U||te}B.prototype.isReactComponent={},B.prototype.setState=function(p,O){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,O,"setState")},B.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function de(){}de.prototype=B.prototype;function oe(p,O,U){this.props=p,this.context=O,this.refs=be,this.updater=U||te}var ne=oe.prototype=new de;ne.constructor=oe,se(ne,B.prototype),ne.isPureReactComponent=!0;var he=Array.isArray;function $(){}var K={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function ze(p,O,U){var X=U.ref;return{$$typeof:i,type:p,key:O,ref:X!==void 0?X:null,props:U}}function Be(p,O){return ze(p.type,O,p.props)}function Te(p){return typeof p=="object"&&p!==null&&p.$$typeof===i}function H(p){var O={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(U){return O[U]})}var Z=/\/+/g;function Q(p,O){return typeof p=="object"&&p!==null&&p.key!=null?H(""+p.key):O.toString(36)}function Se(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then($,$):(p.status="pending",p.then(function(O){p.status==="pending"&&(p.status="fulfilled",p.value=O)},function(O){p.status==="pending"&&(p.status="rejected",p.reason=O)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function z(p,O,U,X,ce){var M=typeof p;(M==="undefined"||M==="boolean")&&(p=null);var V=!1;if(p===null)V=!0;else switch(M){case"bigint":case"string":case"number":V=!0;break;case"object":switch(p.$$typeof){case i:case o:V=!0;break;case T:return V=p._init,z(V(p._payload),O,U,X,ce)}}if(V)return ce=ce(p),V=X===""?"."+Q(p,0):X,he(ce)?(U="",V!=null&&(U=V.replace(Z,"$&/")+"/"),z(ce,O,U,"",function(ge){return ge})):ce!=null&&(Te(ce)&&(ce=Be(ce,U+(ce.key==null||p&&p.key===ce.key?"":(""+ce.key).replace(Z,"$&/")+"/")+V)),O.push(ce)),1;V=0;var ue=X===""?".":X+":";if(he(p))for(var ee=0;ee<p.length;ee++)X=p[ee],M=ue+Q(X,ee),V+=z(X,O,U,M,ce);else if(ee=F(p),typeof ee=="function")for(p=ee.call(p),ee=0;!(X=p.next()).done;)X=X.value,M=ue+Q(X,ee++),V+=z(X,O,U,M,ce);else if(M==="object"){if(typeof p.then=="function")return z(Se(p),O,U,X,ce);throw O=String(p),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return V}function q(p,O,U){if(p==null)return p;var X=[],ce=0;return z(p,X,"","",function(M){return O.call(U,M,ce++)}),X}function W(p){if(p._status===-1){var O=p._result;O=O(),O.then(function(U){(p._status===0||p._status===-1)&&(p._status=1,p._result=U)},function(U){(p._status===0||p._status===-1)&&(p._status=2,p._result=U)}),p._status===-1&&(p._status=0,p._result=O)}if(p._status===1)return p._result.default;throw p._result}var pe=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},re={map:q,forEach:function(p,O,U){q(p,function(){O.apply(this,arguments)},U)},count:function(p){var O=0;return q(p,function(){O++}),O},toArray:function(p){return q(p,function(O){return O})||[]},only:function(p){if(!Te(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return fe.Activity=L,fe.Children=re,fe.Component=B,fe.Fragment=f,fe.Profiler=h,fe.PureComponent=oe,fe.StrictMode=r,fe.Suspense=x,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,fe.__COMPILER_RUNTIME={__proto__:null,c:function(p){return K.H.useMemoCache(p)}},fe.cache=function(p){return function(){return p.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(p,O,U){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var X=se({},p.props),ce=p.key;if(O!=null)for(M in O.key!==void 0&&(ce=""+O.key),O)!Y.call(O,M)||M==="key"||M==="__self"||M==="__source"||M==="ref"&&O.ref===void 0||(X[M]=O[M]);var M=arguments.length-2;if(M===1)X.children=U;else if(1<M){for(var V=Array(M),ue=0;ue<M;ue++)V[ue]=arguments[ue+2];X.children=V}return ze(p.type,ce,X)},fe.createContext=function(p){return p={$$typeof:w,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:g,_context:p},p},fe.createElement=function(p,O,U){var X,ce={},M=null;if(O!=null)for(X in O.key!==void 0&&(M=""+O.key),O)Y.call(O,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ce[X]=O[X]);var V=arguments.length-2;if(V===1)ce.children=U;else if(1<V){for(var ue=Array(V),ee=0;ee<V;ee++)ue[ee]=arguments[ee+2];ce.children=ue}if(p&&p.defaultProps)for(X in V=p.defaultProps,V)ce[X]===void 0&&(ce[X]=V[X]);return ze(p,M,ce)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(p){return{$$typeof:_,render:p}},fe.isValidElement=Te,fe.lazy=function(p){return{$$typeof:T,_payload:{_status:-1,_result:p},_init:W}},fe.memo=function(p,O){return{$$typeof:y,type:p,compare:O===void 0?null:O}},fe.startTransition=function(p){var O=K.T,U={};K.T=U;try{var X=p(),ce=K.S;ce!==null&&ce(U,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then($,pe)}catch(M){pe(M)}finally{O!==null&&U.types!==null&&(O.types=U.types),K.T=O}},fe.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},fe.use=function(p){return K.H.use(p)},fe.useActionState=function(p,O,U){return K.H.useActionState(p,O,U)},fe.useCallback=function(p,O){return K.H.useCallback(p,O)},fe.useContext=function(p){return K.H.useContext(p)},fe.useDebugValue=function(){},fe.useDeferredValue=function(p,O){return K.H.useDeferredValue(p,O)},fe.useEffect=function(p,O){return K.H.useEffect(p,O)},fe.useEffectEvent=function(p){return K.H.useEffectEvent(p)},fe.useId=function(){return K.H.useId()},fe.useImperativeHandle=function(p,O,U){return K.H.useImperativeHandle(p,O,U)},fe.useInsertionEffect=function(p,O){return K.H.useInsertionEffect(p,O)},fe.useLayoutEffect=function(p,O){return K.H.useLayoutEffect(p,O)},fe.useMemo=function(p,O){return K.H.useMemo(p,O)},fe.useOptimistic=function(p,O){return K.H.useOptimistic(p,O)},fe.useReducer=function(p,O,U){return K.H.useReducer(p,O,U)},fe.useRef=function(p){return K.H.useRef(p)},fe.useState=function(p){return K.H.useState(p)},fe.useSyncExternalStore=function(p,O,U){return K.H.useSyncExternalStore(p,O,U)},fe.useTransition=function(){return K.H.useTransition()},fe.version="19.2.6",fe}var Vf;function L1(){return Vf||(Vf=1,p1.exports=p3()),p1.exports}var A=L1();const vi=h3(A);var v1={exports:{}},yi={},g1={exports:{}},b1={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Gf;function v3(){return Gf||(Gf=1,(function(i){function o(z,k){var W=z.length;z.push(k);e:for(;0<W;){var pe=W-1>>>1,re=z[pe];if(0<h(re,k))z[pe]=k,z[W]=re,W=pe;else break e}}function f(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var k=z[0],W=z.pop();if(W!==k){z[0]=W;e:for(var pe=0,re=z.length,p=re>>>1;pe<p;){var O=2*(pe+1)-1,U=z[O],X=O+1,ce=z[X];if(0>h(U,W))X<re&&0>h(ce,U)?(z[pe]=ce,z[X]=W,pe=X):(z[pe]=U,z[O]=W,pe=O);else if(X<re&&0>h(ce,W))z[pe]=ce,z[X]=W,pe=X;else break e}}return k}function h(z,k){var W=z.sortIndex-k.sortIndex;return W!==0?W:z.id-k.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;i.unstable_now=function(){return g.now()}}else{var w=Date,_=w.now();i.unstable_now=function(){return w.now()-_}}var S=[],y=[],T=1,L=null,B=3,F=!1,te=!1,se=!1,be=!1,q=typeof setTimeout=="function"?setTimeout:null,de=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function ne(z){for(var k=f(y);k!==null;){if(k.callback===null)r(y);else if(k.startTime<=z)r(y),k.sortIndex=k.expirationTime,o(S,k);else break;k=f(y)}}function he(z){if(se=!1,ne(z),!te)if(f(S)!==null)te=!0,$||($=!0,H());else{var k=f(y);k!==null&&Se(he,k.startTime-z)}}var $=!1,K=-1,Y=5,ze=-1;function Be(){return be?!0:!(i.unstable_now()-ze<Y)}function Te(){if(be=!1,$){var z=i.unstable_now();ze=z;var k=!0;try{e:{te=!1,se&&(se=!1,de(K),K=-1),F=!0;var W=B;try{t:{for(ne(z),L=f(S);L!==null&&!(L.expirationTime>z&&Be());){var pe=L.callback;if(typeof pe=="function"){L.callback=null,B=L.priorityLevel;var re=pe(L.expirationTime<=z);if(z=i.unstable_now(),typeof re=="function"){L.callback=re,ne(z),k=!0;break t}L===f(S)&&r(S),ne(z)}else r(S);L=f(S)}if(L!==null)k=!0;else{var p=f(y);p!==null&&Se(he,p.startTime-z),k=!1}}break e}finally{L=null,B=W,F=!1}k=void 0}}finally{k?H():$=!1}}}var H;if(typeof oe=="function")H=function(){oe(Te)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,Q=Z.port2;Z.port1.onmessage=Te,H=function(){Q.postMessage(null)}}else H=function(){q(Te,0)};function Se(z,k){K=q(function(){z(i.unstable_now())},k)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(z){z.callback=null},i.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<z?Math.floor(1e3/z):5},i.unstable_getCurrentPriorityLevel=function(){return B},i.unstable_next=function(z){switch(B){case 1:case 2:case 3:var k=3;break;default:k=B}var W=B;B=k;try{return z()}finally{B=W}},i.unstable_requestPaint=function(){be=!0},i.unstable_runWithPriority=function(z,k){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=B;B=z;try{return k()}finally{B=W}},i.unstable_scheduleCallback=function(z,k,W){var pe=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?pe+W:pe):W=pe,z){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=W+re,z={id:T++,callback:k,priorityLevel:z,startTime:W,expirationTime:re,sortIndex:-1},W>pe?(z.sortIndex=W,o(y,z),f(S)===null&&z===f(y)&&(se?(de(K),K=-1):se=!0,Se(he,W-pe))):(z.sortIndex=re,o(S,z),te||F||(te=!0,$||($=!0,H()))),z},i.unstable_shouldYield=Be,i.unstable_wrapCallback=function(z){var k=B;return function(){var W=B;B=k;try{return z.apply(this,arguments)}finally{B=W}}}})(b1)),b1}var Yf;function g3(){return Yf||(Yf=1,g1.exports=v3()),g1.exports}var S1={exports:{}},vt={};/**
25
+ */var Gf;function v3(){return Gf||(Gf=1,(function(i){function o(z,q){var W=z.length;z.push(q);e:for(;0<W;){var pe=W-1>>>1,re=z[pe];if(0<h(re,q))z[pe]=q,z[W]=re,W=pe;else break e}}function f(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var q=z[0],W=z.pop();if(W!==q){z[0]=W;e:for(var pe=0,re=z.length,p=re>>>1;pe<p;){var O=2*(pe+1)-1,U=z[O],X=O+1,ce=z[X];if(0>h(U,W))X<re&&0>h(ce,U)?(z[pe]=ce,z[X]=W,pe=X):(z[pe]=U,z[O]=W,pe=O);else if(X<re&&0>h(ce,W))z[pe]=ce,z[X]=W,pe=X;else break e}}return q}function h(z,q){var W=z.sortIndex-q.sortIndex;return W!==0?W:z.id-q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;i.unstable_now=function(){return g.now()}}else{var w=Date,_=w.now();i.unstable_now=function(){return w.now()-_}}var x=[],y=[],T=1,L=null,k=3,F=!1,te=!1,se=!1,be=!1,B=typeof setTimeout=="function"?setTimeout:null,de=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function ne(z){for(var q=f(y);q!==null;){if(q.callback===null)r(y);else if(q.startTime<=z)r(y),q.sortIndex=q.expirationTime,o(x,q);else break;q=f(y)}}function he(z){if(se=!1,ne(z),!te)if(f(x)!==null)te=!0,$||($=!0,H());else{var q=f(y);q!==null&&Se(he,q.startTime-z)}}var $=!1,K=-1,Y=5,ze=-1;function Be(){return be?!0:!(i.unstable_now()-ze<Y)}function Te(){if(be=!1,$){var z=i.unstable_now();ze=z;var q=!0;try{e:{te=!1,se&&(se=!1,de(K),K=-1),F=!0;var W=k;try{t:{for(ne(z),L=f(x);L!==null&&!(L.expirationTime>z&&Be());){var pe=L.callback;if(typeof pe=="function"){L.callback=null,k=L.priorityLevel;var re=pe(L.expirationTime<=z);if(z=i.unstable_now(),typeof re=="function"){L.callback=re,ne(z),q=!0;break t}L===f(x)&&r(x),ne(z)}else r(x);L=f(x)}if(L!==null)q=!0;else{var p=f(y);p!==null&&Se(he,p.startTime-z),q=!1}}break e}finally{L=null,k=W,F=!1}q=void 0}}finally{q?H():$=!1}}}var H;if(typeof oe=="function")H=function(){oe(Te)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,Q=Z.port2;Z.port1.onmessage=Te,H=function(){Q.postMessage(null)}}else H=function(){B(Te,0)};function Se(z,q){K=B(function(){z(i.unstable_now())},q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(z){z.callback=null},i.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<z?Math.floor(1e3/z):5},i.unstable_getCurrentPriorityLevel=function(){return k},i.unstable_next=function(z){switch(k){case 1:case 2:case 3:var q=3;break;default:q=k}var W=k;k=q;try{return z()}finally{k=W}},i.unstable_requestPaint=function(){be=!0},i.unstable_runWithPriority=function(z,q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=k;k=z;try{return q()}finally{k=W}},i.unstable_scheduleCallback=function(z,q,W){var pe=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?pe+W:pe):W=pe,z){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=W+re,z={id:T++,callback:q,priorityLevel:z,startTime:W,expirationTime:re,sortIndex:-1},W>pe?(z.sortIndex=W,o(y,z),f(x)===null&&z===f(y)&&(se?(de(K),K=-1):se=!0,Se(he,W-pe))):(z.sortIndex=re,o(x,z),te||F||(te=!0,$||($=!0,H()))),z},i.unstable_shouldYield=Be,i.unstable_wrapCallback=function(z){var q=k;return function(){var W=k;k=q;try{return z.apply(this,arguments)}finally{k=W}}}})(b1)),b1}var Yf;function g3(){return Yf||(Yf=1,g1.exports=v3()),g1.exports}var S1={exports:{}},vt={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Xf;function b3(){if(Xf)return vt;Xf=1;var i=L1();function o(S){var y="https://react.dev/errors/"+S;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)y+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+S+"; 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(o(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 g(S,y,T){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:L==null?null:""+L,children:S,containerInfo:y,implementation:T}}var w=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(S,y){if(S==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,vt.createPortal=function(S,y){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(o(299));return g(S,y,null,T)},vt.flushSync=function(S){var y=w.T,T=r.p;try{if(w.T=null,r.p=2,S)return S()}finally{w.T=y,r.p=T,r.d.f()}},vt.preconnect=function(S,y){typeof S=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(S,y))},vt.prefetchDNS=function(S){typeof S=="string"&&r.d.D(S)},vt.preinit=function(S,y){if(typeof S=="string"&&y&&typeof y.as=="string"){var T=y.as,L=_(T,y.crossOrigin),B=typeof y.integrity=="string"?y.integrity:void 0,F=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;T==="style"?r.d.S(S,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:L,integrity:B,fetchPriority:F}):T==="script"&&r.d.X(S,{crossOrigin:L,integrity:B,fetchPriority:F,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},vt.preinitModule=function(S,y){if(typeof S=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var T=_(y.as,y.crossOrigin);r.d.M(S,{crossOrigin:T,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(S)},vt.preload=function(S,y){if(typeof S=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var T=y.as,L=_(T,y.crossOrigin);r.d.L(S,T,{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})}},vt.preloadModule=function(S,y){if(typeof S=="string")if(y){var T=_(y.as,y.crossOrigin);r.d.m(S,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:T,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(S)},vt.requestFormReset=function(S){r.d.r(S)},vt.unstable_batchedUpdates=function(S,y){return S(y)},vt.useFormState=function(S,y,T){return w.H.useFormState(S,y,T)},vt.useFormStatus=function(){return w.H.useHostTransitionStatus()},vt.version="19.2.6",vt}var Qf;function y2(){if(Qf)return S1.exports;Qf=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),S1.exports=b3(),S1.exports}/**
33
+ */var Xf;function b3(){if(Xf)return vt;Xf=1;var i=L1();function o(x){var y="https://react.dev/errors/"+x;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)y+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+x+"; 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(o(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 g(x,y,T){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:L==null?null:""+L,children:x,containerInfo:y,implementation:T}}var w=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(x,y){if(x==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,vt.createPortal=function(x,y){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(o(299));return g(x,y,null,T)},vt.flushSync=function(x){var y=w.T,T=r.p;try{if(w.T=null,r.p=2,x)return x()}finally{w.T=y,r.p=T,r.d.f()}},vt.preconnect=function(x,y){typeof x=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(x,y))},vt.prefetchDNS=function(x){typeof x=="string"&&r.d.D(x)},vt.preinit=function(x,y){if(typeof x=="string"&&y&&typeof y.as=="string"){var T=y.as,L=_(T,y.crossOrigin),k=typeof y.integrity=="string"?y.integrity:void 0,F=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;T==="style"?r.d.S(x,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:L,integrity:k,fetchPriority:F}):T==="script"&&r.d.X(x,{crossOrigin:L,integrity:k,fetchPriority:F,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},vt.preinitModule=function(x,y){if(typeof x=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var T=_(y.as,y.crossOrigin);r.d.M(x,{crossOrigin:T,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(x)},vt.preload=function(x,y){if(typeof x=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var T=y.as,L=_(T,y.crossOrigin);r.d.L(x,T,{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})}},vt.preloadModule=function(x,y){if(typeof x=="string")if(y){var T=_(y.as,y.crossOrigin);r.d.m(x,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:T,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(x)},vt.requestFormReset=function(x){r.d.r(x)},vt.unstable_batchedUpdates=function(x,y){return x(y)},vt.useFormState=function(x,y,T){return w.H.useFormState(x,y,T)},vt.useFormStatus=function(){return w.H.useHostTransitionStatus()},vt.version="19.2.6",vt}var Qf;function y2(){if(Qf)return S1.exports;Qf=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),S1.exports=b3(),S1.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Zf;function S3(){if(Zf)return yi;Zf=1;var i=g3(),o=L1(),f=y2();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function w(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 _(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 S(e){if(g(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var c=a.alternate;if(c===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===c.child){for(c=a.child;c;){if(c===l)return S(a),e;if(c===n)return S(a),t;c=c.sibling}throw Error(r(188))}if(l.return!==n.return)l=a,n=c;else{for(var s=!1,d=a.child;d;){if(d===l){s=!0,l=a,n=c;break}if(d===n){s=!0,n=a,l=c;break}d=d.sibling}if(!s){for(d=c.child;d;){if(d===l){s=!0,l=c,n=a;break}if(d===n){s=!0,n=c,l=a;break}d=d.sibling}if(!s)throw Error(r(189))}}if(l.alternate!==n)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var L=Object.assign,B=Symbol.for("react.element"),F=Symbol.for("react.transitional.element"),te=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),be=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ze=Symbol.for("react.activity"),Be=Symbol.for("react.memo_cache_sentinel"),Te=Symbol.iterator;function H(e){return e===null||typeof e!="object"?null:(e=Te&&e[Te]||e["@@iterator"],typeof e=="function"?e:null)}var Z=Symbol.for("react.client.reference");function Q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case se:return"Fragment";case q:return"Profiler";case be:return"StrictMode";case he:return"Suspense";case $:return"SuspenseList";case ze:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case te:return"Portal";case oe:return e.displayName||"Context";case de:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}var Se=Array.isArray,z=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},pe=[],re=-1;function p(e){return{current:e}}function O(e){0>re||(e.current=pe[re],pe[re]=null,re--)}function U(e,t){re++,pe[re]=e.current,e.current=t}var X=p(null),ce=p(null),M=p(null),V=p(null);function ue(e,t){switch(U(M,t),U(ce,e),U(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?uf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=uf(t),e=sf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}O(X),U(X,e)}function ee(){O(X),O(ce),O(M)}function ge(e){e.memoizedState!==null&&U(V,e);var t=X.current,l=sf(t,e.type);t!==l&&(U(ce,e),U(X,l))}function Qe(e){ce.current===e&&(O(X),O(ce)),V.current===e&&(O(V),ri._currentValue=W)}var yt,pt;function at(e){if(yt===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);yt=t&&t[1]||"",pt=-1<l.stack.indexOf(`
41
+ */var Zf;function S3(){if(Zf)return yi;Zf=1;var i=g3(),o=L1(),f=y2();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function w(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 _(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 x(e){if(g(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var c=a.alternate;if(c===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===c.child){for(c=a.child;c;){if(c===l)return x(a),e;if(c===n)return x(a),t;c=c.sibling}throw Error(r(188))}if(l.return!==n.return)l=a,n=c;else{for(var s=!1,d=a.child;d;){if(d===l){s=!0,l=a,n=c;break}if(d===n){s=!0,n=a,l=c;break}d=d.sibling}if(!s){for(d=c.child;d;){if(d===l){s=!0,l=c,n=a;break}if(d===n){s=!0,n=c,l=a;break}d=d.sibling}if(!s)throw Error(r(189))}}if(l.alternate!==n)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var L=Object.assign,k=Symbol.for("react.element"),F=Symbol.for("react.transitional.element"),te=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),be=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ze=Symbol.for("react.activity"),Be=Symbol.for("react.memo_cache_sentinel"),Te=Symbol.iterator;function H(e){return e===null||typeof e!="object"?null:(e=Te&&e[Te]||e["@@iterator"],typeof e=="function"?e:null)}var Z=Symbol.for("react.client.reference");function Q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case se:return"Fragment";case B:return"Profiler";case be:return"StrictMode";case he:return"Suspense";case $:return"SuspenseList";case ze:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case te:return"Portal";case oe:return e.displayName||"Context";case de:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}var Se=Array.isArray,z=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},pe=[],re=-1;function p(e){return{current:e}}function O(e){0>re||(e.current=pe[re],pe[re]=null,re--)}function U(e,t){re++,pe[re]=e.current,e.current=t}var X=p(null),ce=p(null),M=p(null),V=p(null);function ue(e,t){switch(U(M,t),U(ce,e),U(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?uf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=uf(t),e=sf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}O(X),U(X,e)}function ee(){O(X),O(ce),O(M)}function ge(e){e.memoizedState!==null&&U(V,e);var t=X.current,l=sf(t,e.type);t!==l&&(U(ce,e),U(X,l))}function Qe(e){ce.current===e&&(O(X),O(ce)),V.current===e&&(O(V),ri._currentValue=W)}var yt,pt;function at(e){if(yt===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);yt=t&&t[1]||"",pt=-1<l.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
43
  `+yt+e+pt}var tn=!1;function Fe(e,t){if(!e||tn)return"";tn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(N){var E=N}Reflect.construct(e,[],R)}else{try{R.call()}catch(N){E=N}e.call(R.prototype)}}else{try{throw Error()}catch(N){E=N}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(N){if(N&&E&&typeof N.stack=="string")return[N.stack,E.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=n.DetermineComponentFrameRoot(),s=c[0],d=c[1];if(s&&d){var m=s.split(`
44
44
  `),j=d.split(`
45
45
  `);for(a=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;a<j.length&&!j[a].includes("DetermineComponentFrameRoot");)a++;if(n===m.length||a===j.length)for(n=m.length-1,a=j.length-1;1<=n&&0<=a&&m[n]!==j[a];)a--;for(;1<=n&&0<=a;n--,a--)if(m[n]!==j[a]){if(n!==1||a!==1)do if(n--,a--,0>a||m[n]!==j[a]){var C=`
46
46
  `+m[n].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=n&&0<=a);break}}}finally{tn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?at(l):""}function gt(e,t){switch(e.tag){case 26:case 27:case 5:return at(e.type);case 16:return at("Lazy");case 13:return e.child!==t&&t!==null?at("Suspense Fallback"):at("Suspense");case 19:return at("SuspenseList");case 0:case 15:return Fe(e.type,!1);case 11:return Fe(e.type.render,!1);case 1:return Fe(e.type,!0);case 31:return at("Activity");default:return""}}function ln(e){try{var t="",l=null;do t+=gt(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
47
47
  Error generating stack: `+n.message+`
48
- `+n.stack}}var Jt=Object.prototype.hasOwnProperty,wl=i.unstable_scheduleCallback,Mn=i.unstable_cancelCallback,An=i.unstable_shouldYield,xa=i.unstable_requestPaint,ot=i.unstable_now,Ic=i.unstable_getCurrentPriorityLevel,xi=i.unstable_ImmediatePriority,ji=i.unstable_UserBlockingPriority,Tl=i.unstable_NormalPriority,Pc=i.unstable_LowPriority,ja=i.unstable_IdlePriority,Ea=i.log,eu=i.unstable_setDisableYieldValue,Ml=null,bt=null;function $t(e){if(typeof Ea=="function"&&eu(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(Ml,e)}catch{}}var St=Math.clz32?Math.clz32:nu,tu=Math.log,lu=Math.LN2;function nu(e){return e>>>=0,e===0?32:31-(tu(e)/lu|0)|0}var Cn=256,_n=262144,On=4194304;function ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072: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 Dn(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,c=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~c,n!==0?a=ul(n):(s&=d,s!==0?a=ul(s):l||(l=d&~e,l!==0&&(a=ul(l))))):(d=n&~c,d!==0?a=ul(d):s!==0?a=ul(s):l||(l=n&~e,l!==0&&(a=ul(l)))),a===0?0:t!==0&&t!==a&&(t&c)===0&&(c=a&-a,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:a}function nn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function au(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 Ei(){var e=On;return On<<=1,(On&62914560)===0&&(On=4194304),e}function za(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Al(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function iu(e,t,l,n,a,c){var s=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,m=e.expirationTimes,j=e.hiddenUpdates;for(l=s&~l;0<l;){var C=31-St(l),R=1<<C;d[C]=0,m[C]=-1;var E=j[C];if(E!==null)for(j[C]=null,C=0;C<E.length;C++){var N=E[C];N!==null&&(N.lane&=-536870913)}l&=~R}n!==0&&zi(e,n,0),c!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=c&~(s&~t))}function zi(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-St(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Ni(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-St(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function G(e,t){var l=t&-t;return l=(l&42)!==0?1:ae(l),(l&(e.suspendedLanes|t))!==0?0:l}function ae(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 xe(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rt(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:_f(e.type))}function Pt(e,t){var l=k.p;try{return k.p=e,t()}finally{k.p=l}}var el=Math.random().toString(36).slice(2),it="__reactFiber$"+el,jt="__reactProps$"+el,Rn="__reactContainer$"+el,cu="__reactEvents$"+el,ld="__reactListeners$"+el,nd="__reactHandles$"+el,Z1="__reactResources$"+el,Na="__reactMarker$"+el;function uu(e){delete e[it],delete e[jt],delete e[cu],delete e[ld],delete e[nd]}function Ln(e){var t=e[it];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Rn]||l[it]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=yf(e);e!==null;){if(l=e[it])return l;e=yf(e)}return t}e=l,l=e.parentNode}return null}function Hn(e){if(e=e[it]||e[Rn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Un(e){var t=e[Z1];return t||(t=e[Z1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Na]=!0}var K1=new Set,J1={};function an(e,t){Bn(e,t),Bn(e+"Capture",t)}function Bn(e,t){for(J1[e]=t,e=0;e<t.length;e++)K1.add(t[e])}var ad=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]*$"),$1={},F1={};function id(e){return Jt.call(F1,e)?!0:Jt.call($1,e)?!1:ad.test(e)?F1[e]=!0:($1[e]=!0,!1)}function wi(e,t,l){if(id(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ti(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function sl(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function W1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cd(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){l=""+s,c.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function su(e){if(!e._valueTracker){var t=W1(e)?"checked":"value";e._valueTracker=cd(e,t,""+e[t])}}function I1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=W1(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Mi(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 ud=/[\n"\\]/g;function Bt(e){return e.replace(ud,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ou(e,t,l,n,a,c,s,d){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?ru(e,s,Ut(t)):l!=null?ru(e,s,Ut(l)):n!=null&&e.removeAttribute("value"),a==null&&c!=null&&(e.defaultChecked=!!c),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ut(d):e.removeAttribute("name")}function P1(e,t,l,n,a,c,s,d){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){su(e);return}l=l!=null?""+Ut(l):"",t=t!=null?""+Ut(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=d?e.checked:!!n,e.defaultChecked=!!n,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),su(e)}function ru(e,t,l){t==="number"&&Mi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function qn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+Ut(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function e0(e,t,l){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ut(l):""}function t0(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(r(92));if(Se(n)){if(1<n.length)throw Error(r(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=Ut(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),su(e)}function kn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var sd=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 l0(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||sd.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function n0(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&l0(e,a,n)}else for(var c in t)t.hasOwnProperty(c)&&l0(e,c,t[c])}function fu(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 od=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"]]),rd=/^[\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 Ai(e){return rd.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ol(){}var du=null;function hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vn=null,Gn=null;function a0(e){var t=Hn(e);if(t&&(e=t.stateNode)){var l=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ou(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Bt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[jt]||null;if(!a)throw Error(r(90));ou(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&I1(n)}break e;case"textarea":e0(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&qn(e,!!l.multiple,t,!1)}}}var mu=!1;function i0(e,t,l){if(mu)return e(t,l);mu=!0;try{var n=e(t);return n}finally{if(mu=!1,(Vn!==null||Gn!==null)&&(pc(),Vn&&(t=Vn,e=Gn,Gn=Vn=null,a0(t),e)))for(t=0;t<e.length;t++)a0(e[t])}}function Ta(e,t){var l=e.stateNode;if(l===null)return null;var n=l[jt]||null;if(n===null)return null;l=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var rl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yu=!1;if(rl)try{var Ma={};Object.defineProperty(Ma,"passive",{get:function(){yu=!0}}),window.addEventListener("test",Ma,Ma),window.removeEventListener("test",Ma,Ma)}catch{yu=!1}var Cl=null,pu=null,Ci=null;function c0(){if(Ci)return Ci;var e,t=pu,l=t.length,n,a="value"in Cl?Cl.value:Cl.textContent,c=a.length;for(e=0;e<l&&t[e]===a[e];e++);var s=l-e;for(n=1;n<=s&&t[l-n]===a[c-n];n++);return Ci=a.slice(e,1<n?1-n:void 0)}function _i(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 Oi(){return!0}function u0(){return!1}function Et(e){function t(l,n,a,c,s){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=c,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(c):c[d]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Oi:u0,this.isPropagationStopped=u0,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Oi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=Et(cn),Aa=L({},cn,{view:0,detail:0}),fd=Et(Aa),vu,gu,Ca,Ri=L({},Aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Su,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!==Ca&&(Ca&&e.type==="mousemove"?(vu=e.screenX-Ca.screenX,gu=e.screenY-Ca.screenY):gu=vu=0,Ca=e),vu)},movementY:function(e){return"movementY"in e?e.movementY:gu}}),s0=Et(Ri),dd=L({},Ri,{dataTransfer:0}),hd=Et(dd),md=L({},Aa,{relatedTarget:0}),bu=Et(md),yd=L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0}),pd=Et(yd),vd=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gd=Et(vd),bd=L({},cn,{data:0}),o0=Et(bd),Sd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xd={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"},jd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ed(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jd[e])?!!t[e]:!1}function Su(){return Ed}var zd=L({},Aa,{key:function(e){if(e.key){var t=Sd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Su,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Nd=Et(zd),wd=L({},Ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),r0=Et(wd),Td=L({},Aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Su}),Md=Et(Td),Ad=L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cd=Et(Ad),_d=L({},Ri,{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}),Od=Et(_d),Dd=L({},cn,{newState:0,oldState:0}),Rd=Et(Dd),Ld=[9,13,27,32],xu=rl&&"CompositionEvent"in window,_a=null;rl&&"documentMode"in document&&(_a=document.documentMode);var Hd=rl&&"TextEvent"in window&&!_a,f0=rl&&(!xu||_a&&8<_a&&11>=_a),d0=" ",h0=!1;function m0(e,t){switch(e){case"keyup":return Ld.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yn=!1;function Ud(e,t){switch(e){case"compositionend":return y0(t);case"keypress":return t.which!==32?null:(h0=!0,d0);case"textInput":return e=t.data,e===d0&&h0?null:e;default:return null}}function Bd(e,t){if(Yn)return e==="compositionend"||!xu&&m0(e,t)?(e=c0(),Ci=pu=Cl=null,Yn=!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 f0&&t.locale!=="ko"?null:t.data;default:return null}}var qd={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 p0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qd[e.type]:t==="textarea"}function v0(e,t,l,n){Vn?Gn?Gn.push(n):Gn=[n]:Vn=n,t=Ec(t,"onChange"),0<t.length&&(l=new Di("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Oa=null,Da=null;function kd(e){ef(e,0)}function Li(e){var t=wa(e);if(I1(t))return e}function g0(e,t){if(e==="change")return t}var b0=!1;if(rl){var ju;if(rl){var Eu="oninput"in document;if(!Eu){var S0=document.createElement("div");S0.setAttribute("oninput","return;"),Eu=typeof S0.oninput=="function"}ju=Eu}else ju=!1;b0=ju&&(!document.documentMode||9<document.documentMode)}function x0(){Oa&&(Oa.detachEvent("onpropertychange",j0),Da=Oa=null)}function j0(e){if(e.propertyName==="value"&&Li(Da)){var t=[];v0(t,Da,e,hu(e)),i0(kd,t)}}function Vd(e,t,l){e==="focusin"?(x0(),Oa=t,Da=l,Oa.attachEvent("onpropertychange",j0)):e==="focusout"&&x0()}function Gd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Li(Da)}function Yd(e,t){if(e==="click")return Li(t)}function Xd(e,t){if(e==="input"||e==="change")return Li(t)}function Qd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Qd;function Ra(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Jt.call(t,a)||!Ct(e[a],t[a]))return!1}return!0}function E0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function z0(e,t){var l=E0(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=E0(l)}}function N0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?N0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function w0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Mi(e.document)}return t}function zu(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 Zd=rl&&"documentMode"in document&&11>=document.documentMode,Xn=null,Nu=null,La=null,wu=!1;function T0(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;wu||Xn==null||Xn!==Mi(n)||(n=Xn,"selectionStart"in n&&zu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),La&&Ra(La,n)||(La=n,n=Ec(Nu,"onSelect"),0<n.length&&(t=new Di("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=Xn)))}function un(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Qn={animationend:un("Animation","AnimationEnd"),animationiteration:un("Animation","AnimationIteration"),animationstart:un("Animation","AnimationStart"),transitionrun:un("Transition","TransitionRun"),transitionstart:un("Transition","TransitionStart"),transitioncancel:un("Transition","TransitionCancel"),transitionend:un("Transition","TransitionEnd")},Tu={},M0={};rl&&(M0=document.createElement("div").style,"AnimationEvent"in window||(delete Qn.animationend.animation,delete Qn.animationiteration.animation,delete Qn.animationstart.animation),"TransitionEvent"in window||delete Qn.transitionend.transition);function sn(e){if(Tu[e])return Tu[e];if(!Qn[e])return e;var t=Qn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in M0)return Tu[e]=t[l];return e}var A0=sn("animationend"),C0=sn("animationiteration"),_0=sn("animationstart"),Kd=sn("transitionrun"),Jd=sn("transitionstart"),$d=sn("transitioncancel"),O0=sn("transitionend"),D0=new Map,Mu="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(" ");Mu.push("scrollEnd");function Ft(e,t){D0.set(e,t),an(t,[e])}var Hi=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)},qt=[],Zn=0,Au=0;function Ui(){for(var e=Zn,t=Au=Zn=0;t<e;){var l=qt[t];qt[t++]=null;var n=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var c=qt[t];if(qt[t++]=null,n!==null&&a!==null){var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}c!==0&&R0(l,a,c)}}function Bi(e,t,l,n){qt[Zn++]=e,qt[Zn++]=t,qt[Zn++]=l,qt[Zn++]=n,Au|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Cu(e,t,l,n){return Bi(e,t,l,n),qi(e)}function on(e,t){return Bi(e,null,null,t),qi(e)}function R0(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,c=e.return;c!==null;)c.childLanes|=l,n=c.alternate,n!==null&&(n.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(a=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,a&&t!==null&&(a=31-St(l),e=c.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),c):null}function qi(e){if(50<ni)throw ni=0,qs=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Kn={};function Fd(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,l,n){return new Fd(e,t,l,n)}function _u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fl(e,t){var l=e.alternate;return l===null?(l=_t(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function L0(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ki(e,t,l,n,a,c){var s=0;if(n=e,typeof e=="function")_u(e)&&(s=1);else if(typeof e=="string")s=t3(e,l,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ze:return e=_t(31,l,t,a),e.elementType=ze,e.lanes=c,e;case se:return rn(l.children,a,c,t);case be:s=8,a|=24;break;case q:return e=_t(12,l,t,a|2),e.elementType=q,e.lanes=c,e;case he:return e=_t(13,l,t,a),e.elementType=he,e.lanes=c,e;case $:return e=_t(19,l,t,a),e.elementType=$,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:s=10;break e;case de:s=9;break e;case ne:s=11;break e;case K:s=14;break e;case Y:s=16,n=null;break e}s=29,l=Error(r(130,e===null?"null":typeof e,"")),n=null}return t=_t(s,l,t,a),t.elementType=e,t.type=n,t.lanes=c,t}function rn(e,t,l,n){return e=_t(7,e,n,t),e.lanes=l,e}function Ou(e,t,l){return e=_t(6,e,null,t),e.lanes=l,e}function H0(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Du(e,t,l){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var U0=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var l=U0.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ln(t)},U0.set(e,t),t)}return{value:e,source:t,stack:ln(t)}}var Jn=[],$n=0,Vi=null,Ha=0,Vt=[],Gt=0,_l=null,tl=1,ll="";function dl(e,t){Jn[$n++]=Ha,Jn[$n++]=Vi,Vi=e,Ha=t}function B0(e,t,l){Vt[Gt++]=tl,Vt[Gt++]=ll,Vt[Gt++]=_l,_l=e;var n=tl;e=ll;var a=32-St(n)-1;n&=~(1<<a),l+=1;var c=32-St(t)+a;if(30<c){var s=a-a%5;c=(n&(1<<s)-1).toString(32),n>>=s,a-=s,tl=1<<32-St(t)+a|l<<a|n,ll=c+e}else tl=1<<c|l<<a|n,ll=e}function Ru(e){e.return!==null&&(dl(e,1),B0(e,1,0))}function Lu(e){for(;e===Vi;)Vi=Jn[--$n],Jn[$n]=null,Ha=Jn[--$n],Jn[$n]=null;for(;e===_l;)_l=Vt[--Gt],Vt[Gt]=null,ll=Vt[--Gt],Vt[Gt]=null,tl=Vt[--Gt],Vt[Gt]=null}function q0(e,t){Vt[Gt++]=tl,Vt[Gt++]=ll,Vt[Gt++]=_l,tl=t.id,ll=t.overflow,_l=e}var ft=null,Ye=null,Me=!1,Ol=null,Yt=!1,Hu=Error(r(519));function Dl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ua(kt(t,e)),Hu}function k0(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[it]=e,t[jt]=n,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<ii.length;l++)Ee(ii[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),P1(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),t0(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||af(t.textContent,l)?(n.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),n.onScroll!=null&&Ee("scroll",t),n.onScrollEnd!=null&&Ee("scrollend",t),n.onClick!=null&&(t.onclick=ol),t=!0):t=!1,t||Dl(e,!0)}function V0(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ft=ft.return}}function Fn(e){if(e!==ft)return!1;if(!Me)return V0(e),Me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||e1(e.type,e.memoizedProps)),l=!l),l&&Ye&&Dl(e),V0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ye=mf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ye=mf(e)}else t===27?(t=Ye,Kl(e.type)?(e=i1,i1=null,Ye=e):Ye=t):Ye=ft?Qt(e.stateNode.nextSibling):null;return!0}function fn(){Ye=ft=null,Me=!1}function Uu(){var e=Ol;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),Ol=null),e}function Ua(e){Ol===null?Ol=[e]:Ol.push(e)}var Bu=p(null),dn=null,hl=null;function Rl(e,t,l){U(Bu,t._currentValue),t._currentValue=l}function ml(e){e._currentValue=Bu.current,O(Bu)}function qu(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function ku(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var c=a.dependencies;if(c!==null){var s=a.child;c=c.firstContext;e:for(;c!==null;){var d=c;c=a;for(var m=0;m<t.length;m++)if(d.context===t[m]){c.lanes|=l,d=c.alternate,d!==null&&(d.lanes|=l),qu(c.return,l,e),n||(s=null);break e}c=d.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(r(341));s.lanes|=l,c=s.alternate,c!==null&&(c.lanes|=l),qu(s,l,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Wn(e,t,l,n){e=null;for(var a=t,c=!1;a!==null;){if(!c){if((a.flags&524288)!==0)c=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var d=a.type;Ct(a.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(a===V.current){if(s=a.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(ri):e=[ri])}a=a.return}e!==null&&ku(t,e,l,n),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hn(e){dn=e,hl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return G0(dn,e)}function Yi(e,t){return dn===null&&hn(e),G0(e,t)}function G0(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},hl===null){if(e===null)throw Error(r(308));hl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hl=hl.next=t;return l}var Wd=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Id=i.unstable_scheduleCallback,Pd=i.unstable_NormalPriority,Pe={$$typeof:oe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vu(){return{controller:new Wd,data:new Map,refCount:0}}function Ba(e){e.refCount--,e.refCount===0&&Id(Pd,function(){e.controller.abort()})}var qa=null,Gu=0,In=0,Pn=null;function e4(e,t){if(qa===null){var l=qa=[];Gu=0,In=Qs(),Pn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Gu++,t.then(Y0,Y0),t}function Y0(){if(--Gu===0&&qa!==null){Pn!==null&&(Pn.status="fulfilled");var e=qa;qa=null,In=0,Pn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function t4(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var X0=z.S;z.S=function(e,t){Mr=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&e4(e,t),X0!==null&&X0(e,t)};var mn=p(null);function Yu(){var e=mn.current;return e!==null?e:Ge.pooledCache}function Xi(e,t){t===null?U(mn,mn.current):U(mn,t.pool)}function Q0(){var e=Yu();return e===null?null:{parent:Pe._currentValue,pool:e}}var ea=Error(r(460)),Xu=Error(r(474)),Qi=Error(r(542)),Zi={then:function(){}};function Z0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function K0(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ol,ol),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$0(e),e;default:if(typeof t.status=="string")t.then(ol,ol);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$0(e),e}throw pn=t,ea}}function yn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(pn=l,ea):l}}var pn=null;function J0(){if(pn===null)throw Error(r(459));var e=pn;return pn=null,e}function $0(e){if(e===ea||e===Qi)throw Error(r(483))}var ta=null,ka=0;function Ki(e){var t=ka;return ka+=1,ta===null&&(ta=[]),K0(ta,e,t)}function Va(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ji(e,t){throw t.$$typeof===B?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function F0(e){function t(b,v){if(e){var x=b.deletions;x===null?(b.deletions=[v],b.flags|=16):x.push(v)}}function l(b,v){if(!e)return null;for(;v!==null;)t(b,v),v=v.sibling;return null}function n(b){for(var v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function a(b,v){return b=fl(b,v),b.index=0,b.sibling=null,b}function c(b,v,x){return b.index=x,e?(x=b.alternate,x!==null?(x=x.index,x<v?(b.flags|=67108866,v):x):(b.flags|=67108866,v)):(b.flags|=1048576,v)}function s(b){return e&&b.alternate===null&&(b.flags|=67108866),b}function d(b,v,x,D){return v===null||v.tag!==6?(v=Ou(x,b.mode,D),v.return=b,v):(v=a(v,x),v.return=b,v)}function m(b,v,x,D){var le=x.type;return le===se?C(b,v,x.props.children,D,x.key):v!==null&&(v.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Y&&yn(le)===v.type)?(v=a(v,x.props),Va(v,x),v.return=b,v):(v=ki(x.type,x.key,x.props,null,b.mode,D),Va(v,x),v.return=b,v)}function j(b,v,x,D){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Du(x,b.mode,D),v.return=b,v):(v=a(v,x.children||[]),v.return=b,v)}function C(b,v,x,D,le){return v===null||v.tag!==7?(v=rn(x,b.mode,D,le),v.return=b,v):(v=a(v,x),v.return=b,v)}function R(b,v,x){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Ou(""+v,b.mode,x),v.return=b,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case F:return x=ki(v.type,v.key,v.props,null,b.mode,x),Va(x,v),x.return=b,x;case te:return v=Du(v,b.mode,x),v.return=b,v;case Y:return v=yn(v),R(b,v,x)}if(Se(v)||H(v))return v=rn(v,b.mode,x,null),v.return=b,v;if(typeof v.then=="function")return R(b,Ki(v),x);if(v.$$typeof===oe)return R(b,Yi(b,v),x);Ji(b,v)}return null}function E(b,v,x,D){var le=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return le!==null?null:d(b,v,""+x,D);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case F:return x.key===le?m(b,v,x,D):null;case te:return x.key===le?j(b,v,x,D):null;case Y:return x=yn(x),E(b,v,x,D)}if(Se(x)||H(x))return le!==null?null:C(b,v,x,D,null);if(typeof x.then=="function")return E(b,v,Ki(x),D);if(x.$$typeof===oe)return E(b,v,Yi(b,x),D);Ji(b,x)}return null}function N(b,v,x,D,le){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return b=b.get(x)||null,d(v,b,""+D,le);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case F:return b=b.get(D.key===null?x:D.key)||null,m(v,b,D,le);case te:return b=b.get(D.key===null?x:D.key)||null,j(v,b,D,le);case Y:return D=yn(D),N(b,v,x,D,le)}if(Se(D)||H(D))return b=b.get(x)||null,C(v,b,D,le,null);if(typeof D.then=="function")return N(b,v,x,Ki(D),le);if(D.$$typeof===oe)return N(b,v,x,Yi(v,D),le);Ji(v,D)}return null}function J(b,v,x,D){for(var le=null,Oe=null,I=v,ve=v=0,we=null;I!==null&&ve<x.length;ve++){I.index>ve?(we=I,I=null):we=I.sibling;var De=E(b,I,x[ve],D);if(De===null){I===null&&(I=we);break}e&&I&&De.alternate===null&&t(b,I),v=c(De,v,ve),Oe===null?le=De:Oe.sibling=De,Oe=De,I=we}if(ve===x.length)return l(b,I),Me&&dl(b,ve),le;if(I===null){for(;ve<x.length;ve++)I=R(b,x[ve],D),I!==null&&(v=c(I,v,ve),Oe===null?le=I:Oe.sibling=I,Oe=I);return Me&&dl(b,ve),le}for(I=n(I);ve<x.length;ve++)we=N(I,b,ve,x[ve],D),we!==null&&(e&&we.alternate!==null&&I.delete(we.key===null?ve:we.key),v=c(we,v,ve),Oe===null?le=we:Oe.sibling=we,Oe=we);return e&&I.forEach(function(Il){return t(b,Il)}),Me&&dl(b,ve),le}function ie(b,v,x,D){if(x==null)throw Error(r(151));for(var le=null,Oe=null,I=v,ve=v=0,we=null,De=x.next();I!==null&&!De.done;ve++,De=x.next()){I.index>ve?(we=I,I=null):we=I.sibling;var Il=E(b,I,De.value,D);if(Il===null){I===null&&(I=we);break}e&&I&&Il.alternate===null&&t(b,I),v=c(Il,v,ve),Oe===null?le=Il:Oe.sibling=Il,Oe=Il,I=we}if(De.done)return l(b,I),Me&&dl(b,ve),le;if(I===null){for(;!De.done;ve++,De=x.next())De=R(b,De.value,D),De!==null&&(v=c(De,v,ve),Oe===null?le=De:Oe.sibling=De,Oe=De);return Me&&dl(b,ve),le}for(I=n(I);!De.done;ve++,De=x.next())De=N(I,b,ve,De.value,D),De!==null&&(e&&De.alternate!==null&&I.delete(De.key===null?ve:De.key),v=c(De,v,ve),Oe===null?le=De:Oe.sibling=De,Oe=De);return e&&I.forEach(function(d3){return t(b,d3)}),Me&&dl(b,ve),le}function Ve(b,v,x,D){if(typeof x=="object"&&x!==null&&x.type===se&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case F:e:{for(var le=x.key;v!==null;){if(v.key===le){if(le=x.type,le===se){if(v.tag===7){l(b,v.sibling),D=a(v,x.props.children),D.return=b,b=D;break e}}else if(v.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Y&&yn(le)===v.type){l(b,v.sibling),D=a(v,x.props),Va(D,x),D.return=b,b=D;break e}l(b,v);break}else t(b,v);v=v.sibling}x.type===se?(D=rn(x.props.children,b.mode,D,x.key),D.return=b,b=D):(D=ki(x.type,x.key,x.props,null,b.mode,D),Va(D,x),D.return=b,b=D)}return s(b);case te:e:{for(le=x.key;v!==null;){if(v.key===le)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){l(b,v.sibling),D=a(v,x.children||[]),D.return=b,b=D;break e}else{l(b,v);break}else t(b,v);v=v.sibling}D=Du(x,b.mode,D),D.return=b,b=D}return s(b);case Y:return x=yn(x),Ve(b,v,x,D)}if(Se(x))return J(b,v,x,D);if(H(x)){if(le=H(x),typeof le!="function")throw Error(r(150));return x=le.call(x),ie(b,v,x,D)}if(typeof x.then=="function")return Ve(b,v,Ki(x),D);if(x.$$typeof===oe)return Ve(b,v,Yi(b,x),D);Ji(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,v!==null&&v.tag===6?(l(b,v.sibling),D=a(v,x),D.return=b,b=D):(l(b,v),D=Ou(x,b.mode,D),D.return=b,b=D),s(b)):l(b,v)}return function(b,v,x,D){try{ka=0;var le=Ve(b,v,x,D);return ta=null,le}catch(I){if(I===ea||I===Qi)throw I;var Oe=_t(29,I,null,b.mode);return Oe.lanes=D,Oe.return=b,Oe}finally{}}}var vn=F0(!0),W0=F0(!1),Ll=!1;function Qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zu(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 Hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ul(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Re&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=qi(e),R0(e,null,l),t}return Bi(e,n,t,l),qi(e)}function Ga(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ni(e,l)}}function Ku(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?a=c=s:c=c.next=s,l=l.next}while(l!==null);c===null?a=c=t:c=c.next=t}else a=c=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:c,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Ju=!1;function Ya(){if(Ju){var e=Pn;if(e!==null)throw e}}function Xa(e,t,l,n){Ju=!1;var a=e.updateQueue;Ll=!1;var c=a.firstBaseUpdate,s=a.lastBaseUpdate,d=a.shared.pending;if(d!==null){a.shared.pending=null;var m=d,j=m.next;m.next=null,s===null?c=j:s.next=j,s=m;var C=e.alternate;C!==null&&(C=C.updateQueue,d=C.lastBaseUpdate,d!==s&&(d===null?C.firstBaseUpdate=j:d.next=j,C.lastBaseUpdate=m))}if(c!==null){var R=a.baseState;s=0,C=j=m=null,d=c;do{var E=d.lane&-536870913,N=E!==d.lane;if(N?(Ne&E)===E:(n&E)===E){E!==0&&E===In&&(Ju=!0),C!==null&&(C=C.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var J=e,ie=d;E=t;var Ve=l;switch(ie.tag){case 1:if(J=ie.payload,typeof J=="function"){R=J.call(Ve,R,E);break e}R=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ie.payload,E=typeof J=="function"?J.call(Ve,R,E):J,E==null)break e;R=L({},R,E);break e;case 2:Ll=!0}}E=d.callback,E!==null&&(e.flags|=64,N&&(e.flags|=8192),N=a.callbacks,N===null?a.callbacks=[E]:N.push(E))}else N={lane:E,tag:d.tag,payload:d.payload,callback:d.callback,next:null},C===null?(j=C=N,m=R):C=C.next=N,s|=E;if(d=d.next,d===null){if(d=a.shared.pending,d===null)break;N=d,d=N.next,N.next=null,a.lastBaseUpdate=N,a.shared.pending=null}}while(!0);C===null&&(m=R),a.baseState=m,a.firstBaseUpdate=j,a.lastBaseUpdate=C,c===null&&(a.shared.lanes=0),Gl|=s,e.lanes=s,e.memoizedState=R}}function I0(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function P0(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)I0(l[e],t)}var la=p(null),$i=p(0);function eo(e,t){e=El,U($i,e),U(la,t),El=e|t.baseLanes}function $u(){U($i,El),U(la,la.current)}function Fu(){El=$i.current,O(la),O($i)}var Ot=p(null),Xt=null;function Bl(e){var t=e.alternate;U(We,We.current&1),U(Ot,e),Xt===null&&(t===null||la.current!==null||t.memoizedState!==null)&&(Xt=e)}function Wu(e){U(We,We.current),U(Ot,e),Xt===null&&(Xt=e)}function to(e){e.tag===22?(U(We,We.current),U(Ot,e),Xt===null&&(Xt=e)):ql()}function ql(){U(We,We.current),U(Ot,Ot.current)}function Dt(e){O(Ot),Xt===e&&(Xt=null),O(We)}var We=p(0);function Fi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||n1(l)||a1(l)))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 yl=0,me=null,qe=null,et=null,Wi=!1,na=!1,gn=!1,Ii=0,Qa=0,aa=null,l4=0;function Je(){throw Error(r(321))}function Iu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ct(e[l],t[l]))return!1;return!0}function Pu(e,t,l,n,a,c){return yl=c,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?qo:ms,gn=!1,c=l(n,a),gn=!1,na&&(c=no(t,l,n,a)),lo(e),c}function lo(e){z.H=Ja;var t=qe!==null&&qe.next!==null;if(yl=0,et=qe=me=null,Wi=!1,Qa=0,aa=null,t)throw Error(r(300));e===null||tt||(e=e.dependencies,e!==null&&Gi(e)&&(tt=!0))}function no(e,t,l,n){me=e;var a=0;do{if(na&&(aa=null),Qa=0,na=!1,25<=a)throw Error(r(301));if(a+=1,et=qe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=ko,c=t(l,n)}while(na);return c}function n4(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Za(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(me.flags|=1024),t}function es(){var e=Ii!==0;return Ii=0,e}function ts(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ls(e){if(Wi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wi=!1}yl=0,et=qe=me=null,na=!1,Qa=Ii=0,aa=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?me.memoizedState=et=e:et=et.next=e,et}function Ie(){if(qe===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=et===null?me.memoizedState:et.next;if(t!==null)et=t,qe=e;else{if(e===null)throw me.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},et===null?me.memoizedState=et=e:et=et.next=e}return et}function Pi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Za(e){var t=Qa;return Qa+=1,aa===null&&(aa=[]),e=K0(aa,e,t),t=me,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?qo:ms),e}function ec(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Za(e);if(e.$$typeof===oe)return dt(e)}throw Error(r(438,String(e)))}function ns(e){var t=null,l=me.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=me.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Pi(),me.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=Be;return t.index++,l}function pl(e,t){return typeof t=="function"?t(e):t}function tc(e){var t=Ie();return as(t,qe,e)}function as(e,t,l){var n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=l;var a=e.baseQueue,c=n.pending;if(c!==null){if(a!==null){var s=a.next;a.next=c.next,c.next=s}t.baseQueue=a=c,n.pending=null}if(c=e.baseState,a===null)e.memoizedState=c;else{t=a.next;var d=s=null,m=null,j=t,C=!1;do{var R=j.lane&-536870913;if(R!==j.lane?(Ne&R)===R:(yl&R)===R){var E=j.revertLane;if(E===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),R===In&&(C=!0);else if((yl&E)===E){j=j.next,E===In&&(C=!0);continue}else R={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(d=m=R,s=c):m=m.next=R,me.lanes|=E,Gl|=E;R=j.action,gn&&l(c,R),c=j.hasEagerState?j.eagerState:l(c,R)}else E={lane:R,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(d=m=E,s=c):m=m.next=E,me.lanes|=R,Gl|=R;j=j.next}while(j!==null&&j!==t);if(m===null?s=c:m.next=d,!Ct(c,e.memoizedState)&&(tt=!0,C&&(l=Pn,l!==null)))throw l;e.memoizedState=c,e.baseState=s,e.baseQueue=m,n.lastRenderedState=c}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function is(e){var t=Ie(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,c=t.memoizedState;if(a!==null){l.pending=null;var s=a=a.next;do c=e(c,s.action),s=s.next;while(s!==a);Ct(c,t.memoizedState)||(tt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,n]}function ao(e,t,l){var n=me,a=Ie(),c=Me;if(c){if(l===void 0)throw Error(r(407));l=l()}else l=t();var s=!Ct((qe||a).memoizedState,l);if(s&&(a.memoizedState=l,tt=!0),a=a.queue,ss(uo.bind(null,n,a,e),[e]),a.getSnapshot!==t||s||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,ia(9,{destroy:void 0},co.bind(null,n,a,l,t),null),Ge===null)throw Error(r(349));c||(yl&127)!==0||io(n,t,l)}return l}function io(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=me.updateQueue,t===null?(t=Pi(),me.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function co(e,t,l,n){t.value=l,t.getSnapshot=n,so(t)&&oo(e)}function uo(e,t,l){return l(function(){so(t)&&oo(e)})}function so(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ct(e,l)}catch{return!0}}function oo(e){var t=on(e,2);t!==null&&Mt(t,e,2)}function cs(e){var t=xt();if(typeof e=="function"){var l=e;if(e=l(),gn){$t(!0);try{l()}finally{$t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:e},t}function ro(e,t,l,n){return e.baseState=l,as(e,qe,typeof n=="function"?n:pl)}function a4(e,t,l,n,a){if(ac(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){c.listeners.push(s)}};z.T!==null?l(!0):c.isTransition=!1,n(c),l=t.pending,l===null?(c.next=t.pending=c,fo(t,c)):(c.next=l.next,t.pending=l.next=c)}}function fo(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var c=z.T,s={};z.T=s;try{var d=l(a,n),m=z.S;m!==null&&m(s,d),ho(e,t,d)}catch(j){us(e,t,j)}finally{c!==null&&s.types!==null&&(c.types=s.types),z.T=c}}else try{c=l(a,n),ho(e,t,c)}catch(j){us(e,t,j)}}function ho(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){mo(e,t,n)},function(n){return us(e,t,n)}):mo(e,t,l)}function mo(e,t,l){t.status="fulfilled",t.value=l,yo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,fo(e,l)))}function us(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,yo(t),t=t.next;while(t!==n)}e.action=null}function yo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function po(e,t){return t}function vo(e,t){if(Me){var l=Ge.formState;if(l!==null){e:{var n=me;if(Me){if(Ye){t:{for(var a=Ye,c=Yt;a.nodeType!==8;){if(!c){a=null;break t}if(a=Qt(a.nextSibling),a===null){a=null;break t}}c=a.data,a=c==="F!"||c==="F"?a:null}if(a){Ye=Qt(a.nextSibling),n=a.data==="F!";break e}}Dl(n)}n=!1}n&&(t=l[0])}}return l=xt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:po,lastRenderedState:t},l.queue=n,l=Ho.bind(null,me,n),n.dispatch=l,n=cs(!1),c=hs.bind(null,me,!1,n.queue),n=xt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=a4.bind(null,me,a,c,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function go(e){var t=Ie();return bo(t,qe,e)}function bo(e,t,l){if(t=as(e,t,po)[0],e=tc(pl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Za(t)}catch(s){throw s===ea?Qi:s}else n=t;t=Ie();var a=t.queue,c=a.dispatch;return l!==t.memoizedState&&(me.flags|=2048,ia(9,{destroy:void 0},i4.bind(null,a,l),null)),[n,c,e]}function i4(e,t){e.action=t}function So(e){var t=Ie(),l=qe;if(l!==null)return bo(t,l,e);Ie(),t=t.memoizedState,l=Ie();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function ia(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=me.updateQueue,t===null&&(t=Pi(),me.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function xo(){return Ie().memoizedState}function lc(e,t,l,n){var a=xt();me.flags|=e,a.memoizedState=ia(1|t,{destroy:void 0},l,n===void 0?null:n)}function nc(e,t,l,n){var a=Ie();n=n===void 0?null:n;var c=a.memoizedState.inst;qe!==null&&n!==null&&Iu(n,qe.memoizedState.deps)?a.memoizedState=ia(t,c,l,n):(me.flags|=e,a.memoizedState=ia(1|t,c,l,n))}function jo(e,t){lc(8390656,8,e,t)}function ss(e,t){nc(2048,8,e,t)}function c4(e){me.flags|=4;var t=me.updateQueue;if(t===null)t=Pi(),me.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Eo(e){var t=Ie().memoizedState;return c4({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function zo(e,t){return nc(4,2,e,t)}function No(e,t){return nc(4,4,e,t)}function wo(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function To(e,t,l){l=l!=null?l.concat([e]):null,nc(4,4,wo.bind(null,t,e),l)}function os(){}function Mo(e,t){var l=Ie();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Iu(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Ao(e,t){var l=Ie();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Iu(t,n[1]))return n[0];if(n=e(),gn){$t(!0);try{e()}finally{$t(!1)}}return l.memoizedState=[n,t],n}function rs(e,t,l){return l===void 0||(yl&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Cr(),me.lanes|=e,Gl|=e,l)}function Co(e,t,l,n){return Ct(l,t)?l:la.current!==null?(e=rs(e,l,n),Ct(e,t)||(tt=!0),e):(yl&42)===0||(yl&1073741824)!==0&&(Ne&261930)===0?(tt=!0,e.memoizedState=l):(e=Cr(),me.lanes|=e,Gl|=e,t)}function _o(e,t,l,n,a){var c=k.p;k.p=c!==0&&8>c?c:8;var s=z.T,d={};z.T=d,hs(e,!1,t,l);try{var m=a(),j=z.S;if(j!==null&&j(d,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var C=t4(m,n);Ka(e,t,C,Ht(e))}else Ka(e,t,n,Ht(e))}catch(R){Ka(e,t,{then:function(){},status:"rejected",reason:R},Ht())}finally{k.p=c,s!==null&&d.types!==null&&(s.types=d.types),z.T=s}}function u4(){}function fs(e,t,l,n){if(e.tag!==5)throw Error(r(476));var a=Oo(e).queue;_o(e,a,t,W,l===null?u4:function(){return Do(e),l(n)})}function Oo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:W},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Do(e){var t=Oo(e);t.next===null&&(t=e.alternate.memoizedState),Ka(e,t.next.queue,{},Ht())}function ds(){return dt(ri)}function Ro(){return Ie().memoizedState}function Lo(){return Ie().memoizedState}function s4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Hl(l);var n=Ul(t,e,l);n!==null&&(Mt(n,t,l),Ga(n,t,l)),t={cache:Vu()},e.payload=t;return}t=t.return}}function o4(e,t,l){var n=Ht();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ac(e)?Uo(t,l):(l=Cu(e,t,l,n),l!==null&&(Mt(l,e,n),Bo(l,t,n)))}function Ho(e,t,l){var n=Ht();Ka(e,t,l,n)}function Ka(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ac(e))Uo(t,a);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var s=t.lastRenderedState,d=c(s,l);if(a.hasEagerState=!0,a.eagerState=d,Ct(d,s))return Bi(e,t,a,0),Ge===null&&Ui(),!1}catch{}finally{}if(l=Cu(e,t,a,n),l!==null)return Mt(l,e,n),Bo(l,t,n),!0}return!1}function hs(e,t,l,n){if(n={lane:2,revertLane:Qs(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e)){if(t)throw Error(r(479))}else t=Cu(e,l,n,2),t!==null&&Mt(t,e,2)}function ac(e){var t=e.alternate;return e===me||t!==null&&t===me}function Uo(e,t){na=Wi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Bo(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ni(e,l)}}var Ja={readContext:dt,use:ec,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};Ja.useEffectEvent=Je;var qo={readContext:dt,use:ec,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:jo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,lc(4194308,4,wo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return lc(4194308,4,e,t)},useInsertionEffect:function(e,t){lc(4,2,e,t)},useMemo:function(e,t){var l=xt();t=t===void 0?null:t;var n=e();if(gn){$t(!0);try{e()}finally{$t(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=xt();if(l!==void 0){var a=l(t);if(gn){$t(!0);try{l(t)}finally{$t(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=o4.bind(null,me,e),[n.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=cs(e);var t=e.queue,l=Ho.bind(null,me,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:os,useDeferredValue:function(e,t){var l=xt();return rs(l,e,t)},useTransition:function(){var e=cs(!1);return e=_o.bind(null,me,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=me,a=xt();if(Me){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ge===null)throw Error(r(349));(Ne&127)!==0||io(n,t,l)}a.memoizedState=l;var c={value:l,getSnapshot:t};return a.queue=c,jo(uo.bind(null,n,c,e),[e]),n.flags|=2048,ia(9,{destroy:void 0},co.bind(null,n,c,l,t),null),l},useId:function(){var e=xt(),t=Ge.identifierPrefix;if(Me){var l=ll,n=tl;l=(n&~(1<<32-St(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ii++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=l4++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ds,useFormState:vo,useActionState:vo,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=hs.bind(null,me,!0,l),l.dispatch=t,[e,t]},useMemoCache:ns,useCacheRefresh:function(){return xt().memoizedState=s4.bind(null,me)},useEffectEvent:function(e){var t=xt(),l={impl:e};return t.memoizedState=l,function(){if((Re&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},ms={readContext:dt,use:ec,useCallback:Mo,useContext:dt,useEffect:ss,useImperativeHandle:To,useInsertionEffect:zo,useLayoutEffect:No,useMemo:Ao,useReducer:tc,useRef:xo,useState:function(){return tc(pl)},useDebugValue:os,useDeferredValue:function(e,t){var l=Ie();return Co(l,qe.memoizedState,e,t)},useTransition:function(){var e=tc(pl)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Za(e),t]},useSyncExternalStore:ao,useId:Ro,useHostTransitionStatus:ds,useFormState:go,useActionState:go,useOptimistic:function(e,t){var l=Ie();return ro(l,qe,e,t)},useMemoCache:ns,useCacheRefresh:Lo};ms.useEffectEvent=Eo;var ko={readContext:dt,use:ec,useCallback:Mo,useContext:dt,useEffect:ss,useImperativeHandle:To,useInsertionEffect:zo,useLayoutEffect:No,useMemo:Ao,useReducer:is,useRef:xo,useState:function(){return is(pl)},useDebugValue:os,useDeferredValue:function(e,t){var l=Ie();return qe===null?rs(l,e,t):Co(l,qe.memoizedState,e,t)},useTransition:function(){var e=is(pl)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Za(e),t]},useSyncExternalStore:ao,useId:Ro,useHostTransitionStatus:ds,useFormState:So,useActionState:So,useOptimistic:function(e,t){var l=Ie();return qe!==null?ro(l,qe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ns,useCacheRefresh:Lo};ko.useEffectEvent=Eo;function ys(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:L({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ps={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=Ht(),a=Hl(n);a.payload=t,l!=null&&(a.callback=l),t=Ul(e,a,n),t!==null&&(Mt(t,e,n),Ga(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=Ht(),a=Hl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=Ul(e,a,n),t!==null&&(Mt(t,e,n),Ga(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ht(),n=Hl(l);n.tag=2,t!=null&&(n.callback=t),t=Ul(e,n,l),t!==null&&(Mt(t,e,l),Ga(t,e,l))}};function Vo(e,t,l,n,a,c,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,c,s):t.prototype&&t.prototype.isPureReactComponent?!Ra(l,n)||!Ra(a,c):!0}function Go(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&ps.enqueueReplaceState(t,t.state,null)}function bn(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=L({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function Yo(e){Hi(e)}function Xo(e){console.error(e)}function Qo(e){Hi(e)}function ic(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Zo(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function vs(e,t,l){return l=Hl(l),l.tag=3,l.payload={element:null},l.callback=function(){ic(e,t)},l}function Ko(e){return e=Hl(e),e.tag=3,e}function Jo(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var c=n.value;e.payload=function(){return a(c)},e.callback=function(){Zo(t,l,n)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){Zo(t,l,n),typeof a!="function"&&(Yl===null?Yl=new Set([this]):Yl.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function r4(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&Wn(t,l,a,!0),l=Ot.current,l!==null){switch(l.tag){case 31:case 13:return Xt===null?vc():l.alternate===null&&$e===0&&($e=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Zi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Gs(e,n,a)),!1;case 22:return l.flags|=65536,n===Zi?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Gs(e,n,a)),!1}throw Error(r(435,l.tag))}return Gs(e,n,a),vc(),!1}if(Me)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Hu&&(e=Error(r(422),{cause:n}),Ua(kt(e,l)))):(n!==Hu&&(t=Error(r(423),{cause:n}),Ua(kt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=kt(n,l),a=vs(e.stateNode,n,a),Ku(e,a),$e!==4&&($e=2)),!1;var c=Error(r(520),{cause:n});if(c=kt(c,l),li===null?li=[c]:li.push(c),$e!==4&&($e=2),t===null)return!0;n=kt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=vs(l.stateNode,n,e),Ku(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Yl===null||!Yl.has(c))))return l.flags|=65536,a&=-a,l.lanes|=a,a=Ko(a),Jo(a,e,l,n),Ku(l,a),!1}l=l.return}while(l!==null);return!1}var gs=Error(r(461)),tt=!1;function ht(e,t,l,n){t.child=e===null?W0(t,null,l,n):vn(t,e.child,l,n)}function $o(e,t,l,n,a){l=l.render;var c=t.ref;if("ref"in n){var s={};for(var d in n)d!=="ref"&&(s[d]=n[d])}else s=n;return hn(t),n=Pu(e,t,l,s,c,a),d=es(),e!==null&&!tt?(ts(e,t,a),vl(e,t,a)):(Me&&d&&Ru(t),t.flags|=1,ht(e,t,n,a),t.child)}function Fo(e,t,l,n,a){if(e===null){var c=l.type;return typeof c=="function"&&!_u(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,Wo(e,t,c,n,a)):(e=ki(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ws(e,a)){var s=c.memoizedProps;if(l=l.compare,l=l!==null?l:Ra,l(s,n)&&e.ref===t.ref)return vl(e,t,a)}return t.flags|=1,e=fl(c,n),e.ref=t.ref,e.return=t,t.child=e}function Wo(e,t,l,n,a){if(e!==null){var c=e.memoizedProps;if(Ra(c,n)&&e.ref===t.ref)if(tt=!1,t.pendingProps=n=c,ws(e,a))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,vl(e,t,a)}return bs(e,t,l,n,a)}function Io(e,t,l,n){var a=n.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~c}else n=0,t.child=null;return Po(e,t,c,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xi(t,c!==null?c.cachePool:null),c!==null?eo(t,c):$u(),to(t);else return n=t.lanes=536870912,Po(e,t,c!==null?c.baseLanes|l:l,l,n)}else c!==null?(Xi(t,c.cachePool),eo(t,c),ql(),t.memoizedState=null):(e!==null&&Xi(t,null),$u(),ql());return ht(e,t,a,l),t.child}function $a(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Po(e,t,l,n,a){var c=Yu();return c=c===null?null:{parent:Pe._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&Xi(t,null),$u(),to(t),e!==null&&Wn(e,t,n,!0),t.childLanes=a,null}function cc(e,t){return t=sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function er(e,t,l){return vn(t,e.child,null,l),e=cc(t,t.pendingProps),e.flags|=2,Dt(t),t.memoizedState=null,e}function f4(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(n.mode==="hidden")return e=cc(t,n),t.lanes=536870912,$a(null,e);if(Wu(t),(e=Ye)?(e=hf(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_l!==null?{id:tl,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},l=H0(e),l.return=t,t.child=l,ft=t,Ye=null)):e=null,e===null)throw Dl(t);return t.lanes=536870912,null}return cc(t,n)}var c=e.memoizedState;if(c!==null){var s=c.dehydrated;if(Wu(t),a)if(t.flags&256)t.flags&=-257,t=er(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(tt||Wn(e,t,l,!1),a=(l&e.childLanes)!==0,tt||a){if(n=Ge,n!==null&&(s=G(n,l),s!==0&&s!==c.retryLane))throw c.retryLane=s,on(e,s),Mt(n,e,s),gs;vc(),t=er(e,t,l)}else e=c.treeContext,Ye=Qt(s.nextSibling),ft=t,Me=!0,Ol=null,Yt=!1,e!==null&&q0(t,e),t=cc(t,n),t.flags|=4096;return t}return e=fl(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function uc(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function bs(e,t,l,n,a){return hn(t),l=Pu(e,t,l,n,void 0,a),n=es(),e!==null&&!tt?(ts(e,t,a),vl(e,t,a)):(Me&&n&&Ru(t),t.flags|=1,ht(e,t,l,a),t.child)}function tr(e,t,l,n,a,c){return hn(t),t.updateQueue=null,l=no(t,n,l,a),lo(e),n=es(),e!==null&&!tt?(ts(e,t,c),vl(e,t,c)):(Me&&n&&Ru(t),t.flags|=1,ht(e,t,l,c),t.child)}function lr(e,t,l,n,a){if(hn(t),t.stateNode===null){var c=Kn,s=l.contextType;typeof s=="object"&&s!==null&&(c=dt(s)),c=new l(n,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ps,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=n,c.state=t.memoizedState,c.refs={},Qu(t),s=l.contextType,c.context=typeof s=="object"&&s!==null?dt(s):Kn,c.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(ys(t,l,s,n),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(s=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),s!==c.state&&ps.enqueueReplaceState(c,c.state,null),Xa(t,n,c,a),Ya(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){c=t.stateNode;var d=t.memoizedProps,m=bn(l,d);c.props=m;var j=c.context,C=l.contextType;s=Kn,typeof C=="object"&&C!==null&&(s=dt(C));var R=l.getDerivedStateFromProps;C=typeof R=="function"||typeof c.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,C||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d||j!==s)&&Go(t,c,n,s),Ll=!1;var E=t.memoizedState;c.state=E,Xa(t,n,c,a),Ya(),j=t.memoizedState,d||E!==j||Ll?(typeof R=="function"&&(ys(t,l,R,n),j=t.memoizedState),(m=Ll||Vo(t,l,m,n,E,j,s))?(C||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=j),c.props=n,c.state=j,c.context=s,n=m):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,Zu(e,t),s=t.memoizedProps,C=bn(l,s),c.props=C,R=t.pendingProps,E=c.context,j=l.contextType,m=Kn,typeof j=="object"&&j!==null&&(m=dt(j)),d=l.getDerivedStateFromProps,(j=typeof d=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(s!==R||E!==m)&&Go(t,c,n,m),Ll=!1,E=t.memoizedState,c.state=E,Xa(t,n,c,a),Ya();var N=t.memoizedState;s!==R||E!==N||Ll||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof d=="function"&&(ys(t,l,d,n),N=t.memoizedState),(C=Ll||Vo(t,l,C,n,E,N,m)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(j||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,N,m),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,N,m)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||s===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=N),c.props=n,c.state=N,c.context=m,n=C):(typeof c.componentDidUpdate!="function"||s===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),n=!1)}return c=n,uc(e,t),n=(t.flags&128)!==0,c||n?(c=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&n?(t.child=vn(t,e.child,null,a),t.child=vn(t,null,l,a)):ht(e,t,l,a),t.memoizedState=c.state,e=t.child):e=vl(e,t,a),e}function nr(e,t,l,n){return fn(),t.flags|=256,ht(e,t,l,n),t.child}var Ss={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xs(e){return{baseLanes:e,cachePool:Q0()}}function js(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Lt),e}function ar(e,t,l){var n=t.pendingProps,a=!1,c=(t.flags&128)!==0,s;if((s=c)||(s=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(a?Bl(t):ql(),(e=Ye)?(e=hf(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_l!==null?{id:tl,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},l=H0(e),l.return=t,t.child=l,ft=t,Ye=null)):e=null,e===null)throw Dl(t);return a1(e)?t.lanes=32:t.lanes=536870912,null}var d=n.children;return n=n.fallback,a?(ql(),a=t.mode,d=sc({mode:"hidden",children:d},a),n=rn(n,a,l,null),d.return=t,n.return=t,d.sibling=n,t.child=d,n=t.child,n.memoizedState=xs(l),n.childLanes=js(e,s,l),t.memoizedState=Ss,$a(null,n)):(Bl(t),Es(t,d))}var m=e.memoizedState;if(m!==null&&(d=m.dehydrated,d!==null)){if(c)t.flags&256?(Bl(t),t.flags&=-257,t=zs(e,t,l)):t.memoizedState!==null?(ql(),t.child=e.child,t.flags|=128,t=null):(ql(),d=n.fallback,a=t.mode,n=sc({mode:"visible",children:n.children},a),d=rn(d,a,l,null),d.flags|=2,n.return=t,d.return=t,n.sibling=d,t.child=n,vn(t,e.child,null,l),n=t.child,n.memoizedState=xs(l),n.childLanes=js(e,s,l),t.memoizedState=Ss,t=$a(null,n));else if(Bl(t),a1(d)){if(s=d.nextSibling&&d.nextSibling.dataset,s)var j=s.dgst;s=j,n=Error(r(419)),n.stack="",n.digest=s,Ua({value:n,source:null,stack:null}),t=zs(e,t,l)}else if(tt||Wn(e,t,l,!1),s=(l&e.childLanes)!==0,tt||s){if(s=Ge,s!==null&&(n=G(s,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,on(e,n),Mt(s,e,n),gs;n1(d)||vc(),t=zs(e,t,l)}else n1(d)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Ye=Qt(d.nextSibling),ft=t,Me=!0,Ol=null,Yt=!1,e!==null&&q0(t,e),t=Es(t,n.children),t.flags|=4096);return t}return a?(ql(),d=n.fallback,a=t.mode,m=e.child,j=m.sibling,n=fl(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,j!==null?d=fl(j,d):(d=rn(d,a,l,null),d.flags|=2),d.return=t,n.return=t,n.sibling=d,t.child=n,$a(null,n),n=t.child,d=e.child.memoizedState,d===null?d=xs(l):(a=d.cachePool,a!==null?(m=Pe._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Q0(),d={baseLanes:d.baseLanes|l,cachePool:a}),n.memoizedState=d,n.childLanes=js(e,s,l),t.memoizedState=Ss,$a(e.child,n)):(Bl(t),l=e.child,e=l.sibling,l=fl(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l)}function Es(e,t){return t=sc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function sc(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function zs(e,t,l){return vn(t,e.child,null,l),e=Es(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ir(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),qu(e.return,t,l)}function Ns(e,t,l,n,a,c){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:c}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=l,s.tailMode=a,s.treeForkCount=c)}function cr(e,t,l){var n=t.pendingProps,a=n.revealOrder,c=n.tail;n=n.children;var s=We.current,d=(s&2)!==0;if(d?(s=s&1|2,t.flags|=128):s&=1,U(We,s),ht(e,t,n,l),n=Me?Ha:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ir(e,l,t);else if(e.tag===19)ir(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&Fi(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Ns(t,!1,a,l,c,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Fi(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Ns(t,!0,l,null,c,n);break;case"together":Ns(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function vl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Gl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Wn(e,t,l,!1),(l&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,l=fl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=fl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ws(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gi(e)))}function d4(e,t,l){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Rl(t,Pe,e.memoizedState.cache),fn();break;case 27:case 5:ge(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Rl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Wu(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Bl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ar(e,t,l):(Bl(t),e=vl(e,t,l),e!==null?e.sibling:null);Bl(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(Wn(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return cr(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),U(We,We.current),n)break;return null;case 22:return t.lanes=0,Io(e,t,l,t.pendingProps);case 24:Rl(t,Pe,e.memoizedState.cache)}return vl(e,t,l)}function ur(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!ws(e,l)&&(t.flags&128)===0)return tt=!1,d4(e,t,l);tt=(e.flags&131072)!==0}else tt=!1,Me&&(t.flags&1048576)!==0&&B0(t,Ha,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=yn(t.elementType),t.type=e,typeof e=="function")_u(e)?(n=bn(e,n),t.tag=1,t=lr(null,t,e,n,l)):(t.tag=0,t=bs(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===ne){t.tag=11,t=$o(null,t,e,n,l);break e}else if(a===K){t.tag=14,t=Fo(null,t,e,n,l);break e}}throw t=Q(e)||e,Error(r(306,t,""))}}return t;case 0:return bs(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=bn(n,t.pendingProps),lr(e,t,n,a,l);case 3:e:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(r(387));n=t.pendingProps;var c=t.memoizedState;a=c.element,Zu(e,t),Xa(t,n,null,l);var s=t.memoizedState;if(n=s.cache,Rl(t,Pe,n),n!==c.cache&&ku(t,[Pe],l,!0),Ya(),n=s.element,c.isDehydrated)if(c={element:n,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=nr(e,t,n,l);break e}else if(n!==a){a=kt(Error(r(424)),t),Ua(a),t=nr(e,t,n,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ye=Qt(e.firstChild),ft=t,Me=!0,Ol=null,Yt=!0,l=W0(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(fn(),n===a){t=vl(e,t,l);break e}ht(e,t,n,l)}t=t.child}return t;case 26:return uc(e,t),e===null?(l=bf(t.type,null,t.pendingProps,null))?t.memoizedState=l:Me||(l=t.type,e=t.pendingProps,n=zc(M.current).createElement(l),n[it]=t,n[jt]=e,mt(n,l,e),ut(n),t.stateNode=n):t.memoizedState=bf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&Me&&(n=t.stateNode=pf(t.type,t.pendingProps,M.current),ft=t,Yt=!0,a=Ye,Kl(t.type)?(i1=a,Ye=Qt(n.firstChild)):Ye=a),ht(e,t,t.pendingProps.children,l),uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((a=n=Ye)&&(n=G4(n,t.type,t.pendingProps,Yt),n!==null?(t.stateNode=n,ft=t,Ye=Qt(n.firstChild),Yt=!1,a=!0):a=!1),a||Dl(t)),ge(t),a=t.type,c=t.pendingProps,s=e!==null?e.memoizedProps:null,n=c.children,e1(a,c)?n=null:s!==null&&e1(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Pu(e,t,n4,null,null,l),ri._currentValue=a),uc(e,t),ht(e,t,n,l),t.child;case 6:return e===null&&Me&&((e=l=Ye)&&(l=Y4(l,t.pendingProps,Yt),l!==null?(t.stateNode=l,ft=t,Ye=null,e=!0):e=!1),e||Dl(t)),null;case 13:return ar(e,t,l);case 4:return ue(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=vn(t,null,n,l):ht(e,t,n,l),t.child;case 11:return $o(e,t,t.type,t.pendingProps,l);case 7:return ht(e,t,t.pendingProps,l),t.child;case 8:return ht(e,t,t.pendingProps.children,l),t.child;case 12:return ht(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,Rl(t,t.type,n.value),ht(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,hn(t),a=dt(a),n=n(a),t.flags|=1,ht(e,t,n,l),t.child;case 14:return Fo(e,t,t.type,t.pendingProps,l);case 15:return Wo(e,t,t.type,t.pendingProps,l);case 19:return cr(e,t,l);case 31:return f4(e,t,l);case 22:return Io(e,t,l,t.pendingProps);case 24:return hn(t),n=dt(Pe),e===null?(a=Yu(),a===null&&(a=Ge,c=Vu(),a.pooledCache=c,c.refCount++,c!==null&&(a.pooledCacheLanes|=l),a=c),t.memoizedState={parent:n,cache:a},Qu(t),Rl(t,Pe,a)):((e.lanes&l)!==0&&(Zu(e,t),Xa(t,null,null,l),Ya()),a=e.memoizedState,c=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Rl(t,Pe,n)):(n=c.cache,Rl(t,Pe,n),n!==a.cache&&ku(t,[Pe],l,!0))),ht(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function gl(e){e.flags|=4}function Ts(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Rr())e.flags|=8192;else throw pn=Zi,Xu}else e.flags&=-16777217}function sr(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zf(t))if(Rr())e.flags|=8192;else throw pn=Zi,Xu}function oc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ei():536870912,e.lanes|=t,oa|=t)}function Fa(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function h4(e,t,l){var n=t.pendingProps;switch(Lu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ml(Pe),ee(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Fn(t)?gl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uu())),Xe(t),null;case 26:var a=t.type,c=t.memoizedState;return e===null?(gl(t),c!==null?(Xe(t),sr(t,c)):(Xe(t),Ts(t,a,null,n,l))):c?c!==e.memoizedState?(gl(t),Xe(t),sr(t,c)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&gl(t),Xe(t),Ts(t,a,e,n,l)),null;case 27:if(Qe(t),l=M.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&gl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Xe(t),null}e=X.current,Fn(t)?k0(t):(e=pf(a,n,l),t.stateNode=e,gl(t))}return Xe(t),null;case 5:if(Qe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&gl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Xe(t),null}if(c=X.current,Fn(t))k0(t);else{var s=zc(M.current);switch(c){case 1:c=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:c=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":c=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":c=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":c=s.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof n.is=="string"?s.createElement("select",{is:n.is}):s.createElement("select"),n.multiple?c.multiple=!0:n.size&&(c.size=n.size);break;default:c=typeof n.is=="string"?s.createElement(a,{is:n.is}):s.createElement(a)}}c[it]=t,c[jt]=n;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)c.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=c;e:switch(mt(c,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&gl(t)}}return Xe(t),Ts(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&gl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(r(166));if(e=M.current,Fn(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=ft,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[it]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||af(e.nodeValue,l)),e||Dl(t,!0)}else e=zc(e).createTextNode(n),e[it]=t,t.stateNode=e}return Xe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=Fn(t),l!==null){if(e===null){if(!n)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[it]=t}else fn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else l=Uu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Xe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Fn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(r(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));a[it]=t}else fn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),a=!1}else a=Uu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),oc(t,t.updateQueue),Xe(t),null);case 4:return ee(),e===null&&$s(t.stateNode.containerInfo),Xe(t),null;case 10:return ml(t.type),Xe(t),null;case 19:if(O(We),n=t.memoizedState,n===null)return Xe(t),null;if(a=(t.flags&128)!==0,c=n.rendering,c===null)if(a)Fa(n,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Fi(e),c!==null){for(t.flags|=128,Fa(n,!1),e=c.updateQueue,t.updateQueue=e,oc(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)L0(l,e),l=l.sibling;return U(We,We.current&1|2),Me&&dl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ot()>mc&&(t.flags|=128,a=!0,Fa(n,!1),t.lanes=4194304)}else{if(!a)if(e=Fi(c),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,oc(t,e),Fa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!c.alternate&&!Me)return Xe(t),null}else 2*ot()-n.renderingStartTime>mc&&l!==536870912&&(t.flags|=128,a=!0,Fa(n,!1),t.lanes=4194304);n.isBackwards?(c.sibling=t.child,t.child=c):(e=n.last,e!==null?e.sibling=c:t.child=c,n.last=c)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ot(),e.sibling=null,l=We.current,U(We,a?l&1|2:l&1),Me&&dl(t,n.treeForkCount),e):(Xe(t),null);case 22:case 23:return Dt(t),Fu(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),l=t.updateQueue,l!==null&&oc(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&O(mn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ml(Pe),Xe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function m4(e,t){switch(Lu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ml(Pe),ee(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(r(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(We),null;case 4:return ee(),null;case 10:return ml(t.type),null;case 22:case 23:return Dt(t),Fu(),e!==null&&O(mn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ml(Pe),null;case 25:return null;default:return null}}function or(e,t){switch(Lu(t),t.tag){case 3:ml(Pe),ee();break;case 26:case 27:case 5:Qe(t);break;case 4:ee();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:O(We);break;case 10:ml(t.type);break;case 22:case 23:Dt(t),Fu(),e!==null&&O(mn);break;case 24:ml(Pe)}}function Wa(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var c=l.create,s=l.inst;n=c(),s.destroy=n}l=l.next}while(l!==a)}}catch(d){Ue(t,t.return,d)}}function kl(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var c=a.next;n=c;do{if((n.tag&e)===e){var s=n.inst,d=s.destroy;if(d!==void 0){s.destroy=void 0,a=t;var m=l,j=d;try{j()}catch(C){Ue(a,m,C)}}}n=n.next}while(n!==c)}}catch(C){Ue(t,t.return,C)}}function rr(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{P0(t,l)}catch(n){Ue(e,e.return,n)}}}function fr(e,t,l){l.props=bn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Ue(e,t,n)}}function Ia(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){Ue(e,t,a)}}function nl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Ue(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Ue(e,t,a)}else l.current=null}function dr(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Ue(e,e.return,a)}}function Ms(e,t,l){try{var n=e.stateNode;H4(n,e.type,l,t),n[jt]=t}catch(a){Ue(e,e.return,a)}}function hr(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kl(e.type)||e.tag===4}function As(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hr(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&&Kl(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 Cs(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=ol));else if(n!==4&&(n===27&&Kl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Cs(e,t,l),e=e.sibling;e!==null;)Cs(e,t,l),e=e.sibling}function rc(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&Kl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(rc(e,t,l),e=e.sibling;e!==null;)rc(e,t,l),e=e.sibling}function mr(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);mt(t,n,l),t[it]=e,t[jt]=l}catch(c){Ue(e,e.return,c)}}var bl=!1,lt=!1,_s=!1,yr=typeof WeakSet=="function"?WeakSet:Set,st=null;function y4(e,t){if(e=e.containerInfo,Is=_c,e=w0(e),zu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,c=n.focusNode;n=n.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var s=0,d=-1,m=-1,j=0,C=0,R=e,E=null;t:for(;;){for(var N;R!==l||a!==0&&R.nodeType!==3||(d=s+a),R!==c||n!==0&&R.nodeType!==3||(m=s+n),R.nodeType===3&&(s+=R.nodeValue.length),(N=R.firstChild)!==null;)E=R,R=N;for(;;){if(R===e)break t;if(E===l&&++j===a&&(d=s),E===c&&++C===n&&(m=s),(N=R.nextSibling)!==null)break;R=E,E=R.parentNode}R=N}l=d===-1||m===-1?null:{start:d,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ps={focusedElem:e,selectionRange:l},_c=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=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(l=0;l<e.length;l++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,a=c.memoizedProps,c=c.memoizedState,n=l.stateNode;try{var J=bn(l.type,a);e=n.getSnapshotBeforeUpdate(J,c),n.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ue(l,l.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)l1(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":l1(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,st=e;break}st=t.return}}function pr(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:xl(e,l),n&4&&Wa(5,l);break;case 1:if(xl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){Ue(l,l.return,s)}else{var a=bn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Ue(l,l.return,s)}}n&64&&rr(l),n&512&&Ia(l,l.return);break;case 3:if(xl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{P0(e,t)}catch(s){Ue(l,l.return,s)}}break;case 27:t===null&&n&4&&mr(l);case 26:case 5:xl(e,l),t===null&&n&4&&dr(l),n&512&&Ia(l,l.return);break;case 12:xl(e,l);break;case 31:xl(e,l),n&4&&br(e,l);break;case 13:xl(e,l),n&4&&Sr(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=z4.bind(null,l),X4(e,l))));break;case 22:if(n=l.memoizedState!==null||bl,!n){t=t!==null&&t.memoizedState!==null||lt,a=bl;var c=lt;bl=n,(lt=t)&&!c?jl(e,l,(l.subtreeFlags&8772)!==0):xl(e,l),bl=a,lt=c}break;case 30:break;default:xl(e,l)}}function vr(e){var t=e.alternate;t!==null&&(e.alternate=null,vr(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&uu(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 Ze=null,zt=!1;function Sl(e,t,l){for(l=l.child;l!==null;)gr(e,t,l),l=l.sibling}function gr(e,t,l){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Ml,l)}catch{}switch(l.tag){case 26:lt||nl(l,t),Sl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||nl(l,t);var n=Ze,a=zt;Kl(l.type)&&(Ze=l.stateNode,zt=!1),Sl(e,t,l),ui(l.stateNode),Ze=n,zt=a;break;case 5:lt||nl(l,t);case 6:if(n=Ze,a=zt,Ze=null,Sl(e,t,l),Ze=n,zt=a,Ze!==null)if(zt)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(l.stateNode)}catch(c){Ue(l,t,c)}else try{Ze.removeChild(l.stateNode)}catch(c){Ue(l,t,c)}break;case 18:Ze!==null&&(zt?(e=Ze,ff(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),va(e)):ff(Ze,l.stateNode));break;case 4:n=Ze,a=zt,Ze=l.stateNode.containerInfo,zt=!0,Sl(e,t,l),Ze=n,zt=a;break;case 0:case 11:case 14:case 15:kl(2,l,t),lt||kl(4,l,t),Sl(e,t,l);break;case 1:lt||(nl(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&fr(l,t,n)),Sl(e,t,l);break;case 21:Sl(e,t,l);break;case 22:lt=(n=lt)||l.memoizedState!==null,Sl(e,t,l),lt=n;break;default:Sl(e,t,l)}}function br(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{va(e)}catch(l){Ue(t,t.return,l)}}}function Sr(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{va(e)}catch(l){Ue(t,t.return,l)}}function p4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yr),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yr),t;default:throw Error(r(435,e.tag))}}function fc(e,t){var l=p4(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=N4.bind(null,e,n);n.then(a,a)}})}function Nt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],c=e,s=t,d=s;e:for(;d!==null;){switch(d.tag){case 27:if(Kl(d.type)){Ze=d.stateNode,zt=!1;break e}break;case 5:Ze=d.stateNode,zt=!1;break e;case 3:case 4:Ze=d.stateNode.containerInfo,zt=!0;break e}d=d.return}if(Ze===null)throw Error(r(160));gr(c,s,a),Ze=null,zt=!1,c=a.alternate,c!==null&&(c.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xr(t,e),t=t.sibling}var Wt=null;function xr(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nt(t,e),wt(e),n&4&&(kl(3,e,e.return),Wa(3,e),kl(5,e,e.return));break;case 1:Nt(t,e),wt(e),n&512&&(lt||l===null||nl(l,l.return)),n&64&&bl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Wt;if(Nt(t,e),wt(e),n&512&&(lt||l===null||nl(l,l.return)),n&4){var c=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":c=a.getElementsByTagName("title")[0],(!c||c[Na]||c[it]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=a.createElement(n),a.head.insertBefore(c,a.querySelector("head > title"))),mt(c,n,l),c[it]=e,ut(c),n=c;break e;case"link":var s=jf("link","href",a).get(n+(l.href||""));if(s){for(var d=0;d<s.length;d++)if(c=s[d],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(d,1);break t}}c=a.createElement(n),mt(c,n,l),a.head.appendChild(c);break;case"meta":if(s=jf("meta","content",a).get(n+(l.content||""))){for(d=0;d<s.length;d++)if(c=s[d],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(d,1);break t}}c=a.createElement(n),mt(c,n,l),a.head.appendChild(c);break;default:throw Error(r(468,n))}c[it]=e,ut(c),n=c}e.stateNode=n}else Ef(a,e.type,e.stateNode);else e.stateNode=xf(a,n,e.memoizedProps);else c!==n?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,n===null?Ef(a,e.type,e.stateNode):xf(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Ms(e,e.memoizedProps,l.memoizedProps)}break;case 27:Nt(t,e),wt(e),n&512&&(lt||l===null||nl(l,l.return)),l!==null&&n&4&&Ms(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Nt(t,e),wt(e),n&512&&(lt||l===null||nl(l,l.return)),e.flags&32){a=e.stateNode;try{kn(a,"")}catch(J){Ue(e,e.return,J)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Ms(e,a,l!==null?l.memoizedProps:a)),n&1024&&(_s=!0);break;case 6:if(Nt(t,e),wt(e),n&4){if(e.stateNode===null)throw Error(r(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(J){Ue(e,e.return,J)}}break;case 3:if(Tc=null,a=Wt,Wt=Nc(t.containerInfo),Nt(t,e),Wt=a,wt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{va(t.containerInfo)}catch(J){Ue(e,e.return,J)}_s&&(_s=!1,jr(e));break;case 4:n=Wt,Wt=Nc(e.stateNode.containerInfo),Nt(t,e),wt(e),Wt=n;break;case 12:Nt(t,e),wt(e);break;case 31:Nt(t,e),wt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 13:Nt(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(hc=ot()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 22:a=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,j=bl,C=lt;if(bl=j||a,lt=C||m,Nt(t,e),lt=C,bl=j,wt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||m||bl||lt||Sn(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(c=m.stateNode,a)s=c.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{d=m.stateNode;var R=m.memoizedProps.style,E=R!=null&&R.hasOwnProperty("display")?R.display:null;d.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(J){Ue(m,m.return,J)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(J){Ue(m,m.return,J)}}}else if(t.tag===18){if(l===null){m=t;try{var N=m.stateNode;a?df(N,!0):df(m.stateNode,!1)}catch(J){Ue(m,m.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,fc(e,l))));break;case 19:Nt(t,e),wt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 30:break;case 21:break;default:Nt(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(hr(n)){l=n;break}n=n.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var a=l.stateNode,c=As(e);rc(e,c,a);break;case 5:var s=l.stateNode;l.flags&32&&(kn(s,""),l.flags&=-33);var d=As(e);rc(e,d,s);break;case 3:case 4:var m=l.stateNode.containerInfo,j=As(e);Cs(e,j,m);break;default:throw Error(r(161))}}catch(C){Ue(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jr(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jr(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pr(e,t.alternate,t),t=t.sibling}function Sn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:kl(4,t,t.return),Sn(t);break;case 1:nl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&fr(t,t.return,l),Sn(t);break;case 27:ui(t.stateNode);case 26:case 5:nl(t,t.return),Sn(t);break;case 22:t.memoizedState===null&&Sn(t);break;case 30:Sn(t);break;default:Sn(t)}e=e.sibling}}function jl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,c=t,s=c.flags;switch(c.tag){case 0:case 11:case 15:jl(a,c,l),Wa(4,c);break;case 1:if(jl(a,c,l),n=c,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(j){Ue(n,n.return,j)}if(n=c,a=n.updateQueue,a!==null){var d=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)I0(m[a],d)}catch(j){Ue(n,n.return,j)}}l&&s&64&&rr(c),Ia(c,c.return);break;case 27:mr(c);case 26:case 5:jl(a,c,l),l&&n===null&&s&4&&dr(c),Ia(c,c.return);break;case 12:jl(a,c,l);break;case 31:jl(a,c,l),l&&s&4&&br(a,c);break;case 13:jl(a,c,l),l&&s&4&&Sr(a,c);break;case 22:c.memoizedState===null&&jl(a,c,l),Ia(c,c.return);break;case 30:break;default:jl(a,c,l)}t=t.sibling}}function Os(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ba(l))}function Ds(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ba(e))}function It(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Er(e,t,l,n),t=t.sibling}function Er(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:It(e,t,l,n),a&2048&&Wa(9,t);break;case 1:It(e,t,l,n);break;case 3:It(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ba(e)));break;case 12:if(a&2048){It(e,t,l,n),e=t.stateNode;try{var c=t.memoizedProps,s=c.id,d=c.onPostCommit;typeof d=="function"&&d(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Ue(t,t.return,m)}}else It(e,t,l,n);break;case 31:It(e,t,l,n);break;case 13:It(e,t,l,n);break;case 23:break;case 22:c=t.stateNode,s=t.alternate,t.memoizedState!==null?c._visibility&2?It(e,t,l,n):Pa(e,t):c._visibility&2?It(e,t,l,n):(c._visibility|=2,ca(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Os(s,t);break;case 24:It(e,t,l,n),a&2048&&Ds(t.alternate,t);break;default:It(e,t,l,n)}}function ca(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,s=t,d=l,m=n,j=s.flags;switch(s.tag){case 0:case 11:case 15:ca(c,s,d,m,a),Wa(8,s);break;case 23:break;case 22:var C=s.stateNode;s.memoizedState!==null?C._visibility&2?ca(c,s,d,m,a):Pa(c,s):(C._visibility|=2,ca(c,s,d,m,a)),a&&j&2048&&Os(s.alternate,s);break;case 24:ca(c,s,d,m,a),a&&j&2048&&Ds(s.alternate,s);break;default:ca(c,s,d,m,a)}t=t.sibling}}function Pa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:Pa(l,n),a&2048&&Os(n.alternate,n);break;case 24:Pa(l,n),a&2048&&Ds(n.alternate,n);break;default:Pa(l,n)}t=t.sibling}}var ei=8192;function ua(e,t,l){if(e.subtreeFlags&ei)for(e=e.child;e!==null;)zr(e,t,l),e=e.sibling}function zr(e,t,l){switch(e.tag){case 26:ua(e,t,l),e.flags&ei&&e.memoizedState!==null&&l3(l,Wt,e.memoizedState,e.memoizedProps);break;case 5:ua(e,t,l);break;case 3:case 4:var n=Wt;Wt=Nc(e.stateNode.containerInfo),ua(e,t,l),Wt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ei,ei=16777216,ua(e,t,l),ei=n):ua(e,t,l));break;default:ua(e,t,l)}}function Nr(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 ti(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];st=n,Tr(n,e)}Nr(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wr(e),e=e.sibling}function wr(e){switch(e.tag){case 0:case 11:case 15:ti(e),e.flags&2048&&kl(9,e,e.return);break;case 3:ti(e);break;case 12:ti(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,dc(e)):ti(e);break;default:ti(e)}}function dc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];st=n,Tr(n,e)}Nr(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:kl(8,t,t.return),dc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function Tr(e,t){for(;st!==null;){var l=st;switch(l.tag){case 0:case 11:case 15:kl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Ba(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,st=n;else e:for(l=e;st!==null;){n=st;var a=n.sibling,c=n.return;if(vr(n),n===l){st=null;break e}if(a!==null){a.return=c,st=a;break e}st=c}}}var v4={getCacheForType:function(e){var t=dt(Pe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return dt(Pe).controller.signal}},g4=typeof WeakMap=="function"?WeakMap:Map,Re=0,Ge=null,je=null,Ne=0,He=0,Rt=null,Vl=!1,sa=!1,Rs=!1,El=0,$e=0,Gl=0,xn=0,Ls=0,Lt=0,oa=0,li=null,Tt=null,Hs=!1,hc=0,Mr=0,mc=1/0,yc=null,Yl=null,ct=0,Xl=null,ra=null,zl=0,Us=0,Bs=null,Ar=null,ni=0,qs=null;function Ht(){return(Re&2)!==0&&Ne!==0?Ne&-Ne:z.T!==null?Qs():rt()}function Cr(){if(Lt===0)if((Ne&536870912)===0||Me){var e=_n;_n<<=1,(_n&3932160)===0&&(_n=262144),Lt=e}else Lt=536870912;return e=Ot.current,e!==null&&(e.flags|=32),Lt}function Mt(e,t,l){(e===Ge&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(fa(e,0),Ql(e,Ne,Lt,!1)),Al(e,l),((Re&2)===0||e!==Ge)&&(e===Ge&&((Re&2)===0&&(xn|=l),$e===4&&Ql(e,Ne,Lt,!1)),al(e))}function _r(e,t,l){if((Re&6)!==0)throw Error(r(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||nn(e,t),a=n?x4(e,t):Vs(e,t,!0),c=n;do{if(a===0){sa&&!n&&Ql(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!b4(l)){a=Vs(e,t,!1),c=!1;continue}if(a===2){if(c=t,e.errorRecoveryDisabledLanes&c)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var d=e;a=li;var m=d.current.memoizedState.isDehydrated;if(m&&(fa(d,s).flags|=256),s=Vs(d,s,!1),s!==2){if(Rs&&!m){d.errorRecoveryDisabledLanes|=c,xn|=c,a=4;break e}c=Tt,Tt=a,c!==null&&(Tt===null?Tt=c:Tt.push.apply(Tt,c))}a=s}if(c=!1,a!==2)continue}}if(a===1){fa(e,0),Ql(e,t,0,!0);break}e:{switch(n=e,c=a,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ql(n,t,Lt,!Vl);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(a=hc+300-ot(),10<a)){if(Ql(n,t,Lt,!Vl),Dn(n,0,!0)!==0)break e;zl=t,n.timeoutHandle=of(Or.bind(null,n,l,Tt,yc,Hs,t,Lt,xn,oa,Vl,c,"Throttled",-0,0),a);break e}Or(n,l,Tt,yc,Hs,t,Lt,xn,oa,Vl,c,null,-0,0)}}break}while(!0);al(e)}function Or(e,t,l,n,a,c,s,d,m,j,C,R,E,N){if(e.timeoutHandle=-1,R=t.subtreeFlags,R&8192||(R&16785408)===16785408){R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ol},zr(t,c,R);var J=(c&62914560)===c?hc-ot():(c&4194048)===c?Mr-ot():0;if(J=n3(R,J),J!==null){zl=c,e.cancelPendingCommit=J(kr.bind(null,e,t,c,l,n,a,s,d,m,C,R,null,E,N)),Ql(e,c,s,!j);return}}kr(e,t,c,l,n,a,s,d,m)}function b4(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],c=a.getSnapshot;a=a.value;try{if(!Ct(c(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ql(e,t,l,n){t&=~Ls,t&=~xn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var c=31-St(a),s=1<<c;n[c]=-1,a&=~s}l!==0&&zi(e,l,t)}function pc(){return(Re&6)===0?(ai(0),!1):!0}function ks(){if(je!==null){if(He===0)var e=je.return;else e=je,hl=dn=null,ls(e),ta=null,ka=0,e=je;for(;e!==null;)or(e.alternate,e),e=e.return;je=null}}function fa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,q4(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),zl=0,ks(),Ge=e,je=l=fl(e.current,null),Ne=t,He=0,Rt=null,Vl=!1,sa=nn(e,t),Rs=!1,oa=Lt=Ls=xn=Gl=$e=0,Tt=li=null,Hs=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-St(n),c=1<<a;t|=e[a],n&=~c}return El=t,Ui(),l}function Dr(e,t){me=null,z.H=Ja,t===ea||t===Qi?(t=J0(),He=3):t===Xu?(t=J0(),He=4):He=t===gs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rt=t,je===null&&($e=1,ic(e,kt(t,e.current)))}function Rr(){var e=Ot.current;return e===null?!0:(Ne&4194048)===Ne?Xt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===Xt:!1}function Lr(){var e=z.H;return z.H=Ja,e===null?Ja:e}function Hr(){var e=z.A;return z.A=v4,e}function vc(){$e=4,Vl||(Ne&4194048)!==Ne&&Ot.current!==null||(sa=!0),(Gl&134217727)===0&&(xn&134217727)===0||Ge===null||Ql(Ge,Ne,Lt,!1)}function Vs(e,t,l){var n=Re;Re|=2;var a=Lr(),c=Hr();(Ge!==e||Ne!==t)&&(yc=null,fa(e,t)),t=!1;var s=$e;e:do try{if(He!==0&&je!==null){var d=je,m=Rt;switch(He){case 8:ks(),s=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var j=He;if(He=0,Rt=null,da(e,d,m,j),l&&sa){s=0;break e}break;default:j=He,He=0,Rt=null,da(e,d,m,j)}}S4(),s=$e;break}catch(C){Dr(e,C)}while(!0);return t&&e.shellSuspendCounter++,hl=dn=null,Re=n,z.H=a,z.A=c,je===null&&(Ge=null,Ne=0,Ui()),s}function S4(){for(;je!==null;)Ur(je)}function x4(e,t){var l=Re;Re|=2;var n=Lr(),a=Hr();Ge!==e||Ne!==t?(yc=null,mc=ot()+500,fa(e,t)):sa=nn(e,t);e:do try{if(He!==0&&je!==null){t=je;var c=Rt;t:switch(He){case 1:He=0,Rt=null,da(e,t,c,1);break;case 2:case 9:if(Z0(c)){He=0,Rt=null,Br(t);break}t=function(){He!==2&&He!==9||Ge!==e||(He=7),al(e)},c.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Z0(c)?(He=0,Rt=null,Br(t)):(He=0,Rt=null,da(e,t,c,7));break;case 5:var s=null;switch(je.tag){case 26:s=je.memoizedState;case 5:case 27:var d=je;if(s?zf(s):d.stateNode.complete){He=0,Rt=null;var m=d.sibling;if(m!==null)je=m;else{var j=d.return;j!==null?(je=j,gc(j)):je=null}break t}}He=0,Rt=null,da(e,t,c,5);break;case 6:He=0,Rt=null,da(e,t,c,6);break;case 8:ks(),$e=6;break e;default:throw Error(r(462))}}j4();break}catch(C){Dr(e,C)}while(!0);return hl=dn=null,z.H=n,z.A=a,Re=l,je!==null?0:(Ge=null,Ne=0,Ui(),$e)}function j4(){for(;je!==null&&!An();)Ur(je)}function Ur(e){var t=ur(e.alternate,e,El);e.memoizedProps=e.pendingProps,t===null?gc(e):je=t}function Br(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=tr(l,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=tr(l,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:ls(t);default:or(l,t),t=je=L0(t,El),t=ur(l,t,El)}e.memoizedProps=e.pendingProps,t===null?gc(e):je=t}function da(e,t,l,n){hl=dn=null,ls(t),ta=null,ka=0;var a=t.return;try{if(r4(e,a,t,l,Ne)){$e=1,ic(e,kt(l,e.current)),je=null;return}}catch(c){if(a!==null)throw je=a,c;$e=1,ic(e,kt(l,e.current)),je=null;return}t.flags&32768?(Me||n===1?e=!0:sa||(Ne&536870912)!==0?e=!1:(Vl=e=!0,(n===2||n===9||n===3||n===6)&&(n=Ot.current,n!==null&&n.tag===13&&(n.flags|=16384))),qr(t,e)):gc(t)}function gc(e){var t=e;do{if((t.flags&32768)!==0){qr(t,Vl);return}e=t.return;var l=h4(t.alternate,t,El);if(l!==null){je=l;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);$e===0&&($e=5)}function qr(e,t){do{var l=m4(e.alternate,e);if(l!==null){l.flags&=32767,je=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=l}while(e!==null);$e=6,je=null}function kr(e,t,l,n,a,c,s,d,m){e.cancelPendingCommit=null;do bc();while(ct!==0);if((Re&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Au,iu(e,l,c,s,d,m),e===Ge&&(je=Ge=null,Ne=0),ra=t,Xl=e,zl=l,Us=c,Bs=a,Ar=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,w4(Tl,function(){return Qr(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null,a=k.p,k.p=2,s=Re,Re|=4;try{y4(e,t,l)}finally{Re=s,k.p=a,z.T=n}}ct=1,Vr(),Gr(),Yr()}}function Vr(){if(ct===1){ct=0;var e=Xl,t=ra,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var n=k.p;k.p=2;var a=Re;Re|=4;try{xr(t,e);var c=Ps,s=w0(e.containerInfo),d=c.focusedElem,m=c.selectionRange;if(s!==d&&d&&d.ownerDocument&&N0(d.ownerDocument.documentElement,d)){if(m!==null&&zu(d)){var j=m.start,C=m.end;if(C===void 0&&(C=j),"selectionStart"in d)d.selectionStart=j,d.selectionEnd=Math.min(C,d.value.length);else{var R=d.ownerDocument||document,E=R&&R.defaultView||window;if(E.getSelection){var N=E.getSelection(),J=d.textContent.length,ie=Math.min(m.start,J),Ve=m.end===void 0?ie:Math.min(m.end,J);!N.extend&&ie>Ve&&(s=Ve,Ve=ie,ie=s);var b=z0(d,ie),v=z0(d,Ve);if(b&&v&&(N.rangeCount!==1||N.anchorNode!==b.node||N.anchorOffset!==b.offset||N.focusNode!==v.node||N.focusOffset!==v.offset)){var x=R.createRange();x.setStart(b.node,b.offset),N.removeAllRanges(),ie>Ve?(N.addRange(x),N.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),N.addRange(x))}}}}for(R=[],N=d;N=N.parentNode;)N.nodeType===1&&R.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<R.length;d++){var D=R[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}_c=!!Is,Ps=Is=null}finally{Re=a,k.p=n,z.T=l}}e.current=t,ct=2}}function Gr(){if(ct===2){ct=0;var e=Xl,t=ra,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var n=k.p;k.p=2;var a=Re;Re|=4;try{pr(e,t.alternate,t)}finally{Re=a,k.p=n,z.T=l}}ct=3}}function Yr(){if(ct===4||ct===3){ct=0,xa();var e=Xl,t=ra,l=zl,n=Ar;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,ra=Xl=null,Xr(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Yl=null),xe(l),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Ml,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=z.T,a=k.p,k.p=2,z.T=null;try{for(var c=e.onRecoverableError,s=0;s<n.length;s++){var d=n[s];c(d.value,{componentStack:d.stack})}}finally{z.T=t,k.p=a}}(zl&3)!==0&&bc(),al(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===qs?ni++:(ni=0,qs=e):ni=0,ai(0)}}function Xr(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ba(t)))}function bc(){return Vr(),Gr(),Yr(),Qr()}function Qr(){if(ct!==5)return!1;var e=Xl,t=Us;Us=0;var l=xe(zl),n=z.T,a=k.p;try{k.p=32>l?32:l,z.T=null,l=Bs,Bs=null;var c=Xl,s=zl;if(ct=0,ra=Xl=null,zl=0,(Re&6)!==0)throw Error(r(331));var d=Re;if(Re|=4,wr(c.current),Er(c,c.current,s,l),Re=d,ai(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Ml,c)}catch{}return!0}finally{k.p=a,z.T=n,Xr(e,t)}}function Zr(e,t,l){t=kt(l,t),t=vs(e.stateNode,t,2),e=Ul(e,t,2),e!==null&&(Al(e,2),al(e))}function Ue(e,t,l){if(e.tag===3)Zr(e,e,l);else for(;t!==null;){if(t.tag===3){Zr(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Yl===null||!Yl.has(n))){e=kt(l,e),l=Ko(2),n=Ul(t,l,2),n!==null&&(Jo(l,n,t,e),Al(n,2),al(n));break}}t=t.return}}function Gs(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new g4;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(Rs=!0,a.add(l),e=E4.bind(null,e,t,l),t.then(e,e))}function E4(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ge===e&&(Ne&l)===l&&($e===4||$e===3&&(Ne&62914560)===Ne&&300>ot()-hc?(Re&2)===0&&fa(e,0):Ls|=l,oa===Ne&&(oa=0)),al(e)}function Kr(e,t){t===0&&(t=Ei()),e=on(e,t),e!==null&&(Al(e,t),al(e))}function z4(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Kr(e,l)}function N4(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(t),Kr(e,l)}function w4(e,t){return wl(e,t)}var Sc=null,ha=null,Ys=!1,xc=!1,Xs=!1,Zl=0;function al(e){e!==ha&&e.next===null&&(ha===null?Sc=ha=e:ha=ha.next=e),xc=!0,Ys||(Ys=!0,M4())}function ai(e,t){if(!Xs&&xc){Xs=!0;do for(var l=!1,n=Sc;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var c=0;else{var s=n.suspendedLanes,d=n.pingedLanes;c=(1<<31-St(42|e)+1)-1,c&=a&~(s&~d),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Wr(n,c))}else c=Ne,c=Dn(n,n===Ge?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(c&3)===0||nn(n,c)||(l=!0,Wr(n,c));n=n.next}while(l);Xs=!1}}function T4(){Jr()}function Jr(){xc=Ys=!1;var e=0;Zl!==0&&B4()&&(e=Zl);for(var t=ot(),l=null,n=Sc;n!==null;){var a=n.next,c=$r(n,t);c===0?(n.next=null,l===null?Sc=a:l.next=a,a===null&&(ha=l)):(l=n,(e!==0||(c&3)!==0)&&(xc=!0)),n=a}ct!==0&&ct!==5||ai(e),Zl!==0&&(Zl=0)}function $r(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var s=31-St(c),d=1<<s,m=a[s];m===-1?((d&l)===0||(d&n)!==0)&&(a[s]=au(d,t)):m<=t&&(e.expiredLanes|=d),c&=~d}if(t=Ge,l=Ne,l=Dn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Mn(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||nn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&Mn(n),xe(l)){case 2:case 8:l=ji;break;case 32:l=Tl;break;case 268435456:l=ja;break;default:l=Tl}return n=Fr.bind(null,e),l=wl(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&Mn(n),e.callbackPriority=2,e.callbackNode=null,2}function Fr(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(bc()&&e.callbackNode!==l)return null;var n=Ne;return n=Dn(e,e===Ge?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(_r(e,n,t),$r(e,ot()),e.callbackNode!=null&&e.callbackNode===l?Fr.bind(null,e):null)}function Wr(e,t){if(bc())return null;_r(e,t,!0)}function M4(){k4(function(){(Re&6)!==0?wl(xi,T4):Jr()})}function Qs(){if(Zl===0){var e=In;e===0&&(e=Cn,Cn<<=1,(Cn&261888)===0&&(Cn=256)),Zl=e}return Zl}function Ir(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ai(""+e)}function Pr(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function A4(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var c=Ir((a[jt]||null).action),s=n.submitter;s&&(t=(t=s[jt]||null)?Ir(t.formAction):s.getAttribute("formAction"),t!==null&&(c=t,s=null));var d=new Di("action","action",null,n,a);e.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Zl!==0){var m=s?Pr(a,s):new FormData(a);fs(l,{pending:!0,data:m,method:a.method,action:c},null,m)}}else typeof c=="function"&&(d.preventDefault(),m=s?Pr(a,s):new FormData(a),fs(l,{pending:!0,data:m,method:a.method,action:c},c,m))},currentTarget:a}]})}}for(var Zs=0;Zs<Mu.length;Zs++){var Ks=Mu[Zs],C4=Ks.toLowerCase(),_4=Ks[0].toUpperCase()+Ks.slice(1);Ft(C4,"on"+_4)}Ft(A0,"onAnimationEnd"),Ft(C0,"onAnimationIteration"),Ft(_0,"onAnimationStart"),Ft("dblclick","onDoubleClick"),Ft("focusin","onFocus"),Ft("focusout","onBlur"),Ft(Kd,"onTransitionRun"),Ft(Jd,"onTransitionStart"),Ft($d,"onTransitionCancel"),Ft(O0,"onTransitionEnd"),Bn("onMouseEnter",["mouseout","mouseover"]),Bn("onMouseLeave",["mouseout","mouseover"]),Bn("onPointerEnter",["pointerout","pointerover"]),Bn("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 ii="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(" "),O4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ii));function ef(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var c=void 0;if(t)for(var s=n.length-1;0<=s;s--){var d=n[s],m=d.instance,j=d.currentTarget;if(d=d.listener,m!==c&&a.isPropagationStopped())break e;c=d,a.currentTarget=j;try{c(a)}catch(C){Hi(C)}a.currentTarget=null,c=m}else for(s=0;s<n.length;s++){if(d=n[s],m=d.instance,j=d.currentTarget,d=d.listener,m!==c&&a.isPropagationStopped())break e;c=d,a.currentTarget=j;try{c(a)}catch(C){Hi(C)}a.currentTarget=null,c=m}}}}function Ee(e,t){var l=t[cu];l===void 0&&(l=t[cu]=new Set);var n=e+"__bubble";l.has(n)||(tf(t,e,2,!1),l.add(n))}function Js(e,t,l){var n=0;t&&(n|=4),tf(l,e,n,t)}var jc="_reactListening"+Math.random().toString(36).slice(2);function $s(e){if(!e[jc]){e[jc]=!0,K1.forEach(function(l){l!=="selectionchange"&&(O4.has(l)||Js(l,!1,e),Js(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jc]||(t[jc]=!0,Js("selectionchange",!1,t))}}function tf(e,t,l,n){switch(_f(t)){case 2:var a=c3;break;case 8:a=u3;break;default:a=r1}l=a.bind(null,t,l,e),a=void 0,!yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function Fs(e,t,l,n,a){var c=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var d=n.stateNode.containerInfo;if(d===a)break;if(s===4)for(s=n.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;d!==null;){if(s=Ln(d),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){n=c=s;continue e}d=d.parentNode}}n=n.return}i0(function(){var j=c,C=hu(l),R=[];e:{var E=D0.get(e);if(E!==void 0){var N=Di,J=e;switch(e){case"keypress":if(_i(l)===0)break e;case"keydown":case"keyup":N=Nd;break;case"focusin":J="focus",N=bu;break;case"focusout":J="blur",N=bu;break;case"beforeblur":case"afterblur":N=bu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=s0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=hd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=Md;break;case A0:case C0:case _0:N=pd;break;case O0:N=Cd;break;case"scroll":case"scrollend":N=fd;break;case"wheel":N=Od;break;case"copy":case"cut":case"paste":N=gd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=r0;break;case"toggle":case"beforetoggle":N=Rd}var ie=(t&4)!==0,Ve=!ie&&(e==="scroll"||e==="scrollend"),b=ie?E!==null?E+"Capture":null:E;ie=[];for(var v=j,x;v!==null;){var D=v;if(x=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||x===null||b===null||(D=Ta(v,b),D!=null&&ie.push(ci(v,D,x))),Ve)break;v=v.return}0<ie.length&&(E=new N(E,J,null,l,C),R.push({event:E,listeners:ie}))}}if((t&7)===0){e:{if(E=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",E&&l!==du&&(J=l.relatedTarget||l.fromElement)&&(Ln(J)||J[Rn]))break e;if((N||E)&&(E=C.window===C?C:(E=C.ownerDocument)?E.defaultView||E.parentWindow:window,N?(J=l.relatedTarget||l.toElement,N=j,J=J?Ln(J):null,J!==null&&(Ve=g(J),ie=J.tag,J!==Ve||ie!==5&&ie!==27&&ie!==6)&&(J=null)):(N=null,J=j),N!==J)){if(ie=s0,D="onMouseLeave",b="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(ie=r0,D="onPointerLeave",b="onPointerEnter",v="pointer"),Ve=N==null?E:wa(N),x=J==null?E:wa(J),E=new ie(D,v+"leave",N,l,C),E.target=Ve,E.relatedTarget=x,D=null,Ln(C)===j&&(ie=new ie(b,v+"enter",J,l,C),ie.target=x,ie.relatedTarget=Ve,D=ie),Ve=D,N&&J)t:{for(ie=D4,b=N,v=J,x=0,D=b;D;D=ie(D))x++;D=0;for(var le=v;le;le=ie(le))D++;for(;0<x-D;)b=ie(b),x--;for(;0<D-x;)v=ie(v),D--;for(;x--;){if(b===v||v!==null&&b===v.alternate){ie=b;break t}b=ie(b),v=ie(v)}ie=null}else ie=null;N!==null&&lf(R,E,N,ie,!1),J!==null&&Ve!==null&&lf(R,Ve,J,ie,!0)}}e:{if(E=j?wa(j):window,N=E.nodeName&&E.nodeName.toLowerCase(),N==="select"||N==="input"&&E.type==="file")var Oe=g0;else if(p0(E))if(b0)Oe=Xd;else{Oe=Gd;var I=Vd}else N=E.nodeName,!N||N.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?j&&fu(j.elementType)&&(Oe=g0):Oe=Yd;if(Oe&&(Oe=Oe(e,j))){v0(R,Oe,l,C);break e}I&&I(e,E,j),e==="focusout"&&j&&E.type==="number"&&j.memoizedProps.value!=null&&ru(E,"number",E.value)}switch(I=j?wa(j):window,e){case"focusin":(p0(I)||I.contentEditable==="true")&&(Xn=I,Nu=j,La=null);break;case"focusout":La=Nu=Xn=null;break;case"mousedown":wu=!0;break;case"contextmenu":case"mouseup":case"dragend":wu=!1,T0(R,l,C);break;case"selectionchange":if(Zd)break;case"keydown":case"keyup":T0(R,l,C)}var ve;if(xu)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Yn?m0(e,l)&&(we="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(we="onCompositionStart");we&&(f0&&l.locale!=="ko"&&(Yn||we!=="onCompositionStart"?we==="onCompositionEnd"&&Yn&&(ve=c0()):(Cl=C,pu="value"in Cl?Cl.value:Cl.textContent,Yn=!0)),I=Ec(j,we),0<I.length&&(we=new o0(we,e,null,l,C),R.push({event:we,listeners:I}),ve?we.data=ve:(ve=y0(l),ve!==null&&(we.data=ve)))),(ve=Hd?Ud(e,l):Bd(e,l))&&(we=Ec(j,"onBeforeInput"),0<we.length&&(I=new o0("onBeforeInput","beforeinput",null,l,C),R.push({event:I,listeners:we}),I.data=ve)),A4(R,e,j,l,C)}ef(R,t)})}function ci(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ec(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,c=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||c===null||(a=Ta(e,l),a!=null&&n.unshift(ci(e,a,c)),a=Ta(e,t),a!=null&&n.push(ci(e,a,c))),e.tag===3)return n;e=e.return}return[]}function D4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lf(e,t,l,n,a){for(var c=t._reactName,s=[];l!==null&&l!==n;){var d=l,m=d.alternate,j=d.stateNode;if(d=d.tag,m!==null&&m===n)break;d!==5&&d!==26&&d!==27||j===null||(m=j,a?(j=Ta(l,c),j!=null&&s.unshift(ci(l,j,m))):a||(j=Ta(l,c),j!=null&&s.push(ci(l,j,m)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var R4=/\r\n?/g,L4=/\u0000|\uFFFD/g;function nf(e){return(typeof e=="string"?e:""+e).replace(R4,`
49
- `).replace(L4,"")}function af(e,t){return t=nf(t),nf(e)===t}function ke(e,t,l,n,a,c){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||kn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&kn(e,""+n);break;case"className":Ti(e,"class",n);break;case"tabIndex":Ti(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ti(e,l,n);break;case"style":n0(e,n,c);break;case"data":if(t!=="object"){Ti(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Ai(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="formAction"?(t!=="input"&&ke(e,t,"name",a.name,a,null),ke(e,t,"formEncType",a.formEncType,a,null),ke(e,t,"formMethod",a.formMethod,a,null),ke(e,t,"formTarget",a.formTarget,a,null)):(ke(e,t,"encType",a.encType,a,null),ke(e,t,"method",a.method,a,null),ke(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Ai(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=ol);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=Ai(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),wi(e,"popover",n);break;case"xlinkActuate":sl(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":sl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":sl(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":sl(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":sl(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":sl(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":sl(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":sl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":sl(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":wi(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=od.get(l)||l,wi(e,l,n))}}function Ws(e,t,l,n,a,c){switch(l){case"style":n0(e,n,c);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof n=="string"?kn(e,n):(typeof n=="number"||typeof n=="bigint")&&kn(e,""+n);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ol);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!J1.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),c=e[jt]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,a),typeof n=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):wi(e,l,n)}}}function mt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var n=!1,a=!1,c;for(c in l)if(l.hasOwnProperty(c)){var s=l[c];if(s!=null)switch(c){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ke(e,t,c,s,l,null)}}a&&ke(e,t,"srcSet",l.srcSet,l,null),n&&ke(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var d=c=s=a=null,m=null,j=null;for(n in l)if(l.hasOwnProperty(n)){var C=l[n];if(C!=null)switch(n){case"name":a=C;break;case"type":s=C;break;case"checked":m=C;break;case"defaultChecked":j=C;break;case"value":c=C;break;case"defaultValue":d=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,t));break;default:ke(e,t,n,C,l,null)}}P1(e,c,d,m,j,s,a,!1);return;case"select":Ee("invalid",e),n=s=c=null;for(a in l)if(l.hasOwnProperty(a)&&(d=l[a],d!=null))switch(a){case"value":c=d;break;case"defaultValue":s=d;break;case"multiple":n=d;default:ke(e,t,a,d,l,null)}t=c,l=s,e.multiple=!!n,t!=null?qn(e,!!n,t,!1):l!=null&&qn(e,!!n,l,!0);return;case"textarea":Ee("invalid",e),c=a=n=null;for(s in l)if(l.hasOwnProperty(s)&&(d=l[s],d!=null))switch(s){case"value":n=d;break;case"defaultValue":a=d;break;case"children":c=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:ke(e,t,s,d,l,null)}t0(e,n,a,c);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(n=l[m],n!=null))switch(m){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ke(e,t,m,n,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(n=0;n<ii.length;n++)Ee(ii[n],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in l)if(l.hasOwnProperty(j)&&(n=l[j],n!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ke(e,t,j,n,l,null)}return;default:if(fu(t)){for(C in l)l.hasOwnProperty(C)&&(n=l[C],n!==void 0&&Ws(e,t,C,n,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(n=l[d],n!=null&&ke(e,t,d,n,l,null))}function H4(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,c=null,s=null,d=null,m=null,j=null,C=null;for(N in l){var R=l[N];if(l.hasOwnProperty(N)&&R!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":m=R;default:n.hasOwnProperty(N)||ke(e,t,N,null,n,R)}}for(var E in n){var N=n[E];if(R=l[E],n.hasOwnProperty(E)&&(N!=null||R!=null))switch(E){case"type":c=N;break;case"name":a=N;break;case"checked":j=N;break;case"defaultChecked":C=N;break;case"value":s=N;break;case"defaultValue":d=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,t));break;default:N!==R&&ke(e,t,E,N,n,R)}}ou(e,s,d,m,j,C,c,a);return;case"select":N=s=d=E=null;for(c in l)if(m=l[c],l.hasOwnProperty(c)&&m!=null)switch(c){case"value":break;case"multiple":N=m;default:n.hasOwnProperty(c)||ke(e,t,c,null,n,m)}for(a in n)if(c=n[a],m=l[a],n.hasOwnProperty(a)&&(c!=null||m!=null))switch(a){case"value":E=c;break;case"defaultValue":d=c;break;case"multiple":s=c;default:c!==m&&ke(e,t,a,c,n,m)}t=d,l=s,n=N,E!=null?qn(e,!!l,E,!1):!!n!=!!l&&(t!=null?qn(e,!!l,t,!0):qn(e,!!l,l?[]:"",!1));return;case"textarea":N=E=null;for(d in l)if(a=l[d],l.hasOwnProperty(d)&&a!=null&&!n.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ke(e,t,d,null,n,a)}for(s in n)if(a=n[s],c=l[s],n.hasOwnProperty(s)&&(a!=null||c!=null))switch(s){case"value":E=a;break;case"defaultValue":N=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(r(91));break;default:a!==c&&ke(e,t,s,a,n,c)}e0(e,E,N);return;case"option":for(var J in l)if(E=l[J],l.hasOwnProperty(J)&&E!=null&&!n.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:ke(e,t,J,null,n,E)}for(m in n)if(E=n[m],N=l[m],n.hasOwnProperty(m)&&E!==N&&(E!=null||N!=null))switch(m){case"selected":e.selected=E&&typeof E!="function"&&typeof E!="symbol";break;default:ke(e,t,m,E,n,N)}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 ie in l)E=l[ie],l.hasOwnProperty(ie)&&E!=null&&!n.hasOwnProperty(ie)&&ke(e,t,ie,null,n,E);for(j in n)if(E=n[j],N=l[j],n.hasOwnProperty(j)&&E!==N&&(E!=null||N!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(137,t));break;default:ke(e,t,j,E,n,N)}return;default:if(fu(t)){for(var Ve in l)E=l[Ve],l.hasOwnProperty(Ve)&&E!==void 0&&!n.hasOwnProperty(Ve)&&Ws(e,t,Ve,void 0,n,E);for(C in n)E=n[C],N=l[C],!n.hasOwnProperty(C)||E===N||E===void 0&&N===void 0||Ws(e,t,C,E,n,N);return}}for(var b in l)E=l[b],l.hasOwnProperty(b)&&E!=null&&!n.hasOwnProperty(b)&&ke(e,t,b,null,n,E);for(R in n)E=n[R],N=l[R],!n.hasOwnProperty(R)||E===N||E==null&&N==null||ke(e,t,R,E,n,N)}function cf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function U4(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],c=a.transferSize,s=a.initiatorType,d=a.duration;if(c&&d&&cf(s)){for(s=0,d=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],j=m.startTime;if(j>d)break;var C=m.transferSize,R=m.initiatorType;C&&cf(R)&&(m=m.responseEnd,s+=C*(m<d?1:(d-j)/(m-j)))}if(--n,t+=8*(c+s)/(a.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 Is=null,Ps=null;function zc(e){return e.nodeType===9?e:e.ownerDocument}function uf(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 sf(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 e1(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 t1=null;function B4(){var e=window.event;return e&&e.type==="popstate"?e===t1?!1:(t1=e,!0):(t1=null,!1)}var of=typeof setTimeout=="function"?setTimeout:void 0,q4=typeof clearTimeout=="function"?clearTimeout:void 0,rf=typeof Promise=="function"?Promise:void 0,k4=typeof queueMicrotask=="function"?queueMicrotask:typeof rf<"u"?function(e){return rf.resolve(null).then(e).catch(V4)}:of;function V4(e){setTimeout(function(){throw e})}function Kl(e){return e==="head"}function ff(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),va(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")ui(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ui(l);for(var c=l.firstChild;c;){var s=c.nextSibling,d=c.nodeName;c[Na]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=s}}else l==="body"&&ui(e.ownerDocument.body);l=a}while(l);va(t)}function df(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function l1(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":l1(l),uu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function G4(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Na])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Qt(e.nextSibling),e===null)break}return null}function Y4(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Qt(e.nextSibling),e===null))return null;return e}function hf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function n1(e){return e.data==="$?"||e.data==="$~"}function a1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function X4(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Qt(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 i1=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Qt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function pf(e,t,l){switch(t=zc(l),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 ui(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);uu(e)}var Zt=new Map,vf=new Set;function Nc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Nl=k.d;k.d={f:Q4,r:Z4,D:K4,C:J4,L:$4,m:F4,X:I4,S:W4,M:P4};function Q4(){var e=Nl.f(),t=pc();return e||t}function Z4(e){var t=Hn(e);t!==null&&t.tag===5&&t.type==="form"?Do(t):Nl.r(e)}var ma=typeof document>"u"?null:document;function gf(e,t,l){var n=ma;if(n&&typeof t=="string"&&t){var a=Bt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),vf.has(a)||(vf.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),mt(t,"link",e),ut(t),n.head.appendChild(t)))}}function K4(e){Nl.D(e),gf("dns-prefetch",e,null)}function J4(e,t){Nl.C(e,t),gf("preconnect",e,t)}function $4(e,t,l){Nl.L(e,t,l);var n=ma;if(n&&e&&t){var a='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Bt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Bt(l.imageSizes)+'"]')):a+='[href="'+Bt(e)+'"]';var c=a;switch(t){case"style":c=ya(e);break;case"script":c=pa(e)}Zt.has(c)||(e=L({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Zt.set(c,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(si(c))||t==="script"&&n.querySelector(oi(c))||(t=n.createElement("link"),mt(t,"link",e),ut(t),n.head.appendChild(t)))}}function F4(e,t){Nl.m(e,t);var l=ma;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Bt(n)+'"][href="'+Bt(e)+'"]',c=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=pa(e)}if(!Zt.has(c)&&(e=L({rel:"modulepreload",href:e},t),Zt.set(c,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(oi(c)))return}n=l.createElement("link"),mt(n,"link",e),ut(n),l.head.appendChild(n)}}}function W4(e,t,l){Nl.S(e,t,l);var n=ma;if(n&&e){var a=Un(n).hoistableStyles,c=ya(e);t=t||"default";var s=a.get(c);if(!s){var d={loading:0,preload:null};if(s=n.querySelector(si(c)))d.loading=5;else{e=L({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Zt.get(c))&&c1(e,l);var m=s=n.createElement("link");ut(m),mt(m,"link",e),m._p=new Promise(function(j,C){m.onload=j,m.onerror=C}),m.addEventListener("load",function(){d.loading|=1}),m.addEventListener("error",function(){d.loading|=2}),d.loading|=4,wc(s,t,n)}s={type:"stylesheet",instance:s,count:1,state:d},a.set(c,s)}}}function I4(e,t){Nl.X(e,t);var l=ma;if(l&&e){var n=Un(l).hoistableScripts,a=pa(e),c=n.get(a);c||(c=l.querySelector(oi(a)),c||(e=L({src:e,async:!0},t),(t=Zt.get(a))&&u1(e,t),c=l.createElement("script"),ut(c),mt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(a,c))}}function P4(e,t){Nl.M(e,t);var l=ma;if(l&&e){var n=Un(l).hoistableScripts,a=pa(e),c=n.get(a);c||(c=l.querySelector(oi(a)),c||(e=L({src:e,async:!0,type:"module"},t),(t=Zt.get(a))&&u1(e,t),c=l.createElement("script"),ut(c),mt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(a,c))}}function bf(e,t,l,n){var a=(a=M.current)?Nc(a):null;if(!a)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ya(l.href),l=Un(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ya(l.href);var c=Un(a).hoistableStyles,s=c.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,s),(c=a.querySelector(si(e)))&&!c._p&&(s.instance=c,s.state.loading=5),Zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Zt.set(e,l),c||e3(a,e,l,s.state))),t&&n===null)throw Error(r(528,""));return s}if(t&&n!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pa(l),l=Un(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ya(e){return'href="'+Bt(e)+'"'}function si(e){return'link[rel="stylesheet"]['+e+"]"}function Sf(e){return L({},e,{"data-precedence":e.precedence,precedence:null})}function e3(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),mt(t,"link",l),ut(t),e.head.appendChild(t))}function pa(e){return'[src="'+Bt(e)+'"]'}function oi(e){return"script[async]"+e}function xf(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Bt(l.href)+'"]');if(n)return t.instance=n,ut(n),n;var a=L({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ut(n),mt(n,"style",a),wc(n,l.precedence,e),t.instance=n;case"stylesheet":a=ya(l.href);var c=e.querySelector(si(a));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;n=Sf(l),(a=Zt.get(a))&&c1(n,a),c=(e.ownerDocument||e).createElement("link"),ut(c);var s=c;return s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),mt(c,"link",n),t.state.loading|=4,wc(c,l.precedence,e),t.instance=c;case"script":return c=pa(l.src),(a=e.querySelector(oi(c)))?(t.instance=a,ut(a),a):(n=l,(a=Zt.get(c))&&(n=L({},l),u1(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),ut(a),mt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,wc(n,l.precedence,e));return t.instance}function wc(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,c=a,s=0;s<n.length;s++){var d=n[s];if(d.dataset.precedence===t)c=d;else if(c!==a)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function c1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function u1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Tc=null;function jf(e,t,l){if(Tc===null){var n=new Map,a=Tc=new Map;a.set(l,n)}else a=Tc,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var c=l[a];if(!(c[Na]||c[it]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var s=c.getAttribute(t)||"";s=e+s;var d=n.get(s);d?d.push(c):n.set(s,[c])}}return n}function Ef(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function t3(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function zf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function l3(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=ya(n.href),c=t.querySelector(si(a));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Mc.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,ut(c);return}c=t.ownerDocument||t,n=Sf(n),(a=Zt.get(a))&&c1(n,a),c=c.createElement("link"),ut(c);var s=c;s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),mt(c,"link",n),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Mc.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var s1=0;function n3(e,t){return e.stylesheets&&e.count===0&&Cc(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Cc(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&s1===0&&(s1=62500*U4());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Cc(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>s1?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Mc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ac=null;function Cc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ac=new Map,t.forEach(a3,e),Ac=null,Mc.call(e))}function a3(e,t){if(!(t.state.loading&4)){var l=Ac.get(e);if(l)var n=l.get(null);else{l=new Map,Ac.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<a.length;c++){var s=a[c];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),n=s)}n&&l.set(null,n)}a=t.instance,s=a.getAttribute("data-precedence"),c=l.get(s)||n,c===n&&l.set(null,a),l.set(s,a),this.count++,n=Mc.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),c?c.parentNode.insertBefore(a,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var ri={$$typeof:oe,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function i3(e,t,l,n,a,c,s,d,m){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=za(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=za(0),this.hiddenUpdates=za(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=c,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Nf(e,t,l,n,a,c,s,d,m,j,C,R){return e=new i3(e,t,l,s,m,j,C,R,d),t=1,c===!0&&(t|=24),c=_t(3,null,null,t),e.current=c,c.stateNode=e,t=Vu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:n,isDehydrated:l,cache:t},Qu(c),e}function wf(e){return e?(e=Kn,e):Kn}function Tf(e,t,l,n,a,c){a=wf(a),n.context===null?n.context=a:n.pendingContext=a,n=Hl(t),n.payload={element:l},c=c===void 0?null:c,c!==null&&(n.callback=c),l=Ul(e,n,t),l!==null&&(Mt(l,e,t),Ga(l,e,t))}function Mf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function o1(e,t){Mf(e,t),(e=e.alternate)&&Mf(e,t)}function Af(e){if(e.tag===13||e.tag===31){var t=on(e,67108864);t!==null&&Mt(t,e,67108864),o1(e,67108864)}}function Cf(e){if(e.tag===13||e.tag===31){var t=Ht();t=ae(t);var l=on(e,t);l!==null&&Mt(l,e,t),o1(e,t)}}var _c=!0;function c3(e,t,l,n){var a=z.T;z.T=null;var c=k.p;try{k.p=2,r1(e,t,l,n)}finally{k.p=c,z.T=a}}function u3(e,t,l,n){var a=z.T;z.T=null;var c=k.p;try{k.p=8,r1(e,t,l,n)}finally{k.p=c,z.T=a}}function r1(e,t,l,n){if(_c){var a=f1(n);if(a===null)Fs(e,t,n,Oc,l),Of(e,n);else if(o3(a,e,t,l,n))n.stopPropagation();else if(Of(e,n),t&4&&-1<s3.indexOf(e)){for(;a!==null;){var c=Hn(a);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var s=ul(c.pendingLanes);if(s!==0){var d=c;for(d.pendingLanes|=2,d.entangledLanes|=2;s;){var m=1<<31-St(s);d.entanglements[1]|=m,s&=~m}al(c),(Re&6)===0&&(mc=ot()+500,ai(0))}}break;case 31:case 13:d=on(c,2),d!==null&&Mt(d,c,2),pc(),o1(c,2)}if(c=f1(n),c===null&&Fs(e,t,n,Oc,l),c===a)break;a=c}a!==null&&n.stopPropagation()}else Fs(e,t,n,null,l)}}function f1(e){return e=hu(e),d1(e)}var Oc=null;function d1(e){if(Oc=null,e=Ln(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=w(t),e!==null)return e;e=null}else if(l===31){if(e=_(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Oc=e,null}function _f(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(Ic()){case xi:return 2;case ji:return 8;case Tl:case Pc:return 32;case ja:return 268435456;default:return 32}default:return 32}}var h1=!1,Jl=null,$l=null,Fl=null,fi=new Map,di=new Map,Wl=[],s3="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 Of(e,t){switch(e){case"focusin":case"focusout":Jl=null;break;case"dragenter":case"dragleave":$l=null;break;case"mouseover":case"mouseout":Fl=null;break;case"pointerover":case"pointerout":fi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(t.pointerId)}}function hi(e,t,l,n,a,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:c,targetContainers:[a]},t!==null&&(t=Hn(t),t!==null&&Af(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function o3(e,t,l,n,a){switch(t){case"focusin":return Jl=hi(Jl,e,t,l,n,a),!0;case"dragenter":return $l=hi($l,e,t,l,n,a),!0;case"mouseover":return Fl=hi(Fl,e,t,l,n,a),!0;case"pointerover":var c=a.pointerId;return fi.set(c,hi(fi.get(c)||null,e,t,l,n,a)),!0;case"gotpointercapture":return c=a.pointerId,di.set(c,hi(di.get(c)||null,e,t,l,n,a)),!0}return!1}function Df(e){var t=Ln(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=w(l),t!==null){e.blockedOn=t,Pt(e.priority,function(){Cf(l)});return}}else if(t===31){if(t=_(l),t!==null){e.blockedOn=t,Pt(e.priority,function(){Cf(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=f1(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);du=n,l.target.dispatchEvent(n),du=null}else return t=Hn(l),t!==null&&Af(t),e.blockedOn=l,!1;t.shift()}return!0}function Rf(e,t,l){Dc(e)&&l.delete(t)}function r3(){h1=!1,Jl!==null&&Dc(Jl)&&(Jl=null),$l!==null&&Dc($l)&&($l=null),Fl!==null&&Dc(Fl)&&(Fl=null),fi.forEach(Rf),di.forEach(Rf)}function Rc(e,t){e.blockedOn===t&&(e.blockedOn=null,h1||(h1=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,r3)))}var Lc=null;function Lf(e){Lc!==e&&(Lc=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Lc===e&&(Lc=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(d1(n||l)===null)continue;break}var c=Hn(l);c!==null&&(e.splice(t,3),t-=3,fs(c,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function va(e){function t(m){return Rc(m,e)}Jl!==null&&Rc(Jl,e),$l!==null&&Rc($l,e),Fl!==null&&Rc(Fl,e),fi.forEach(t),di.forEach(t);for(var l=0;l<Wl.length;l++){var n=Wl[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Wl.length&&(l=Wl[0],l.blockedOn===null);)Df(l),l.blockedOn===null&&Wl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],c=l[n+1],s=a[jt]||null;if(typeof c=="function")s||Lf(l);else if(s){var d=null;if(c&&c.hasAttribute("formAction")){if(a=c,s=c[jt]||null)d=s.formAction;else if(d1(a)!==null)continue}else d=s.action;typeof d=="function"?l[n+1]=d:(l.splice(n,3),n-=3),Lf(l)}}}function Hf(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(s){return a=s})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function m1(e){this._internalRoot=e}Hc.prototype.render=m1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,n=Ht();Tf(l,n,e,t,null,null)},Hc.prototype.unmount=m1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tf(e.current,2,null,e,null,null),pc(),t[Rn]=null}};function Hc(e){this._internalRoot=e}Hc.prototype.unstable_scheduleHydration=function(e){if(e){var t=rt();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Wl.length&&t!==0&&t<Wl[l].priority;l++);Wl.splice(l,0,e),l===0&&Df(e)}};var Uf=o.version;if(Uf!=="19.2.6")throw Error(r(527,Uf,"19.2.6"));k.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?T(e):null,e=e===null?null:e.stateNode,e};var f3={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uc.isDisabled&&Uc.supportsFiber)try{Ml=Uc.inject(f3),bt=Uc}catch{}}return yi.createRoot=function(e,t){if(!h(e))throw Error(r(299));var l=!1,n="",a=Yo,c=Xo,s=Qo;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Nf(e,1,!1,null,null,l,n,null,a,c,s,Hf),e[Rn]=t.current,$s(e),new m1(t)},yi.hydrateRoot=function(e,t,l){if(!h(e))throw Error(r(299));var n=!1,a="",c=Yo,s=Xo,d=Qo,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=Nf(e,1,!0,t,l??null,n,a,m,c,s,d,Hf),t.context=wf(null),l=t.current,n=Ht(),n=ae(n),a=Hl(n),a.callback=null,Ul(l,a,n),l=n,t.current.lanes=l,Al(t,l),al(t),e[Rn]=t.current,$s(e),new Hc(t)},yi.version="19.2.6",yi}var Kf;function x3(){if(Kf)return v1.exports;Kf=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),v1.exports=S3(),v1.exports}var j3=x3();/**
48
+ `+n.stack}}var Jt=Object.prototype.hasOwnProperty,wl=i.unstable_scheduleCallback,Mn=i.unstable_cancelCallback,An=i.unstable_shouldYield,xa=i.unstable_requestPaint,ot=i.unstable_now,Ic=i.unstable_getCurrentPriorityLevel,xi=i.unstable_ImmediatePriority,ji=i.unstable_UserBlockingPriority,Tl=i.unstable_NormalPriority,Pc=i.unstable_LowPriority,ja=i.unstable_IdlePriority,Ea=i.log,eu=i.unstable_setDisableYieldValue,Ml=null,bt=null;function $t(e){if(typeof Ea=="function"&&eu(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(Ml,e)}catch{}}var St=Math.clz32?Math.clz32:nu,tu=Math.log,lu=Math.LN2;function nu(e){return e>>>=0,e===0?32:31-(tu(e)/lu|0)|0}var Cn=256,_n=262144,On=4194304;function ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072: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 Dn(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,c=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~c,n!==0?a=ul(n):(s&=d,s!==0?a=ul(s):l||(l=d&~e,l!==0&&(a=ul(l))))):(d=n&~c,d!==0?a=ul(d):s!==0?a=ul(s):l||(l=n&~e,l!==0&&(a=ul(l)))),a===0?0:t!==0&&t!==a&&(t&c)===0&&(c=a&-a,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:a}function nn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function au(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 Ei(){var e=On;return On<<=1,(On&62914560)===0&&(On=4194304),e}function za(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Al(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function iu(e,t,l,n,a,c){var s=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,m=e.expirationTimes,j=e.hiddenUpdates;for(l=s&~l;0<l;){var C=31-St(l),R=1<<C;d[C]=0,m[C]=-1;var E=j[C];if(E!==null)for(j[C]=null,C=0;C<E.length;C++){var N=E[C];N!==null&&(N.lane&=-536870913)}l&=~R}n!==0&&zi(e,n,0),c!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=c&~(s&~t))}function zi(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-St(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Ni(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-St(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function G(e,t){var l=t&-t;return l=(l&42)!==0?1:ae(l),(l&(e.suspendedLanes|t))!==0?0:l}function ae(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 xe(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rt(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:_f(e.type))}function Pt(e,t){var l=q.p;try{return q.p=e,t()}finally{q.p=l}}var el=Math.random().toString(36).slice(2),it="__reactFiber$"+el,jt="__reactProps$"+el,Rn="__reactContainer$"+el,cu="__reactEvents$"+el,ld="__reactListeners$"+el,nd="__reactHandles$"+el,Z1="__reactResources$"+el,Na="__reactMarker$"+el;function uu(e){delete e[it],delete e[jt],delete e[cu],delete e[ld],delete e[nd]}function Ln(e){var t=e[it];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Rn]||l[it]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=yf(e);e!==null;){if(l=e[it])return l;e=yf(e)}return t}e=l,l=e.parentNode}return null}function Hn(e){if(e=e[it]||e[Rn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Un(e){var t=e[Z1];return t||(t=e[Z1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Na]=!0}var K1=new Set,J1={};function an(e,t){Bn(e,t),Bn(e+"Capture",t)}function Bn(e,t){for(J1[e]=t,e=0;e<t.length;e++)K1.add(t[e])}var ad=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]*$"),$1={},F1={};function id(e){return Jt.call(F1,e)?!0:Jt.call($1,e)?!1:ad.test(e)?F1[e]=!0:($1[e]=!0,!1)}function wi(e,t,l){if(id(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ti(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function sl(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function W1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cd(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){l=""+s,c.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function su(e){if(!e._valueTracker){var t=W1(e)?"checked":"value";e._valueTracker=cd(e,t,""+e[t])}}function I1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=W1(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Mi(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 ud=/[\n"\\]/g;function Bt(e){return e.replace(ud,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ou(e,t,l,n,a,c,s,d){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?ru(e,s,Ut(t)):l!=null?ru(e,s,Ut(l)):n!=null&&e.removeAttribute("value"),a==null&&c!=null&&(e.defaultChecked=!!c),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ut(d):e.removeAttribute("name")}function P1(e,t,l,n,a,c,s,d){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){su(e);return}l=l!=null?""+Ut(l):"",t=t!=null?""+Ut(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=d?e.checked:!!n,e.defaultChecked=!!n,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),su(e)}function ru(e,t,l){t==="number"&&Mi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function qn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+Ut(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function e0(e,t,l){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ut(l):""}function t0(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(r(92));if(Se(n)){if(1<n.length)throw Error(r(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=Ut(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),su(e)}function kn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var sd=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 l0(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||sd.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function n0(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&l0(e,a,n)}else for(var c in t)t.hasOwnProperty(c)&&l0(e,c,t[c])}function fu(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 od=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"]]),rd=/^[\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 Ai(e){return rd.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ol(){}var du=null;function hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vn=null,Gn=null;function a0(e){var t=Hn(e);if(t&&(e=t.stateNode)){var l=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ou(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Bt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[jt]||null;if(!a)throw Error(r(90));ou(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&I1(n)}break e;case"textarea":e0(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&qn(e,!!l.multiple,t,!1)}}}var mu=!1;function i0(e,t,l){if(mu)return e(t,l);mu=!0;try{var n=e(t);return n}finally{if(mu=!1,(Vn!==null||Gn!==null)&&(pc(),Vn&&(t=Vn,e=Gn,Gn=Vn=null,a0(t),e)))for(t=0;t<e.length;t++)a0(e[t])}}function Ta(e,t){var l=e.stateNode;if(l===null)return null;var n=l[jt]||null;if(n===null)return null;l=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var rl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yu=!1;if(rl)try{var Ma={};Object.defineProperty(Ma,"passive",{get:function(){yu=!0}}),window.addEventListener("test",Ma,Ma),window.removeEventListener("test",Ma,Ma)}catch{yu=!1}var Cl=null,pu=null,Ci=null;function c0(){if(Ci)return Ci;var e,t=pu,l=t.length,n,a="value"in Cl?Cl.value:Cl.textContent,c=a.length;for(e=0;e<l&&t[e]===a[e];e++);var s=l-e;for(n=1;n<=s&&t[l-n]===a[c-n];n++);return Ci=a.slice(e,1<n?1-n:void 0)}function _i(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 Oi(){return!0}function u0(){return!1}function Et(e){function t(l,n,a,c,s){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=c,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(c):c[d]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Oi:u0,this.isPropagationStopped=u0,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Oi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=Et(cn),Aa=L({},cn,{view:0,detail:0}),fd=Et(Aa),vu,gu,Ca,Ri=L({},Aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Su,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!==Ca&&(Ca&&e.type==="mousemove"?(vu=e.screenX-Ca.screenX,gu=e.screenY-Ca.screenY):gu=vu=0,Ca=e),vu)},movementY:function(e){return"movementY"in e?e.movementY:gu}}),s0=Et(Ri),dd=L({},Ri,{dataTransfer:0}),hd=Et(dd),md=L({},Aa,{relatedTarget:0}),bu=Et(md),yd=L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0}),pd=Et(yd),vd=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gd=Et(vd),bd=L({},cn,{data:0}),o0=Et(bd),Sd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xd={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"},jd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ed(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jd[e])?!!t[e]:!1}function Su(){return Ed}var zd=L({},Aa,{key:function(e){if(e.key){var t=Sd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Su,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Nd=Et(zd),wd=L({},Ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),r0=Et(wd),Td=L({},Aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Su}),Md=Et(Td),Ad=L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cd=Et(Ad),_d=L({},Ri,{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}),Od=Et(_d),Dd=L({},cn,{newState:0,oldState:0}),Rd=Et(Dd),Ld=[9,13,27,32],xu=rl&&"CompositionEvent"in window,_a=null;rl&&"documentMode"in document&&(_a=document.documentMode);var Hd=rl&&"TextEvent"in window&&!_a,f0=rl&&(!xu||_a&&8<_a&&11>=_a),d0=" ",h0=!1;function m0(e,t){switch(e){case"keyup":return Ld.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yn=!1;function Ud(e,t){switch(e){case"compositionend":return y0(t);case"keypress":return t.which!==32?null:(h0=!0,d0);case"textInput":return e=t.data,e===d0&&h0?null:e;default:return null}}function Bd(e,t){if(Yn)return e==="compositionend"||!xu&&m0(e,t)?(e=c0(),Ci=pu=Cl=null,Yn=!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 f0&&t.locale!=="ko"?null:t.data;default:return null}}var qd={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 p0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qd[e.type]:t==="textarea"}function v0(e,t,l,n){Vn?Gn?Gn.push(n):Gn=[n]:Vn=n,t=Ec(t,"onChange"),0<t.length&&(l=new Di("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Oa=null,Da=null;function kd(e){ef(e,0)}function Li(e){var t=wa(e);if(I1(t))return e}function g0(e,t){if(e==="change")return t}var b0=!1;if(rl){var ju;if(rl){var Eu="oninput"in document;if(!Eu){var S0=document.createElement("div");S0.setAttribute("oninput","return;"),Eu=typeof S0.oninput=="function"}ju=Eu}else ju=!1;b0=ju&&(!document.documentMode||9<document.documentMode)}function x0(){Oa&&(Oa.detachEvent("onpropertychange",j0),Da=Oa=null)}function j0(e){if(e.propertyName==="value"&&Li(Da)){var t=[];v0(t,Da,e,hu(e)),i0(kd,t)}}function Vd(e,t,l){e==="focusin"?(x0(),Oa=t,Da=l,Oa.attachEvent("onpropertychange",j0)):e==="focusout"&&x0()}function Gd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Li(Da)}function Yd(e,t){if(e==="click")return Li(t)}function Xd(e,t){if(e==="input"||e==="change")return Li(t)}function Qd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Qd;function Ra(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Jt.call(t,a)||!Ct(e[a],t[a]))return!1}return!0}function E0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function z0(e,t){var l=E0(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=E0(l)}}function N0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?N0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function w0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Mi(e.document)}return t}function zu(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 Zd=rl&&"documentMode"in document&&11>=document.documentMode,Xn=null,Nu=null,La=null,wu=!1;function T0(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;wu||Xn==null||Xn!==Mi(n)||(n=Xn,"selectionStart"in n&&zu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),La&&Ra(La,n)||(La=n,n=Ec(Nu,"onSelect"),0<n.length&&(t=new Di("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=Xn)))}function un(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Qn={animationend:un("Animation","AnimationEnd"),animationiteration:un("Animation","AnimationIteration"),animationstart:un("Animation","AnimationStart"),transitionrun:un("Transition","TransitionRun"),transitionstart:un("Transition","TransitionStart"),transitioncancel:un("Transition","TransitionCancel"),transitionend:un("Transition","TransitionEnd")},Tu={},M0={};rl&&(M0=document.createElement("div").style,"AnimationEvent"in window||(delete Qn.animationend.animation,delete Qn.animationiteration.animation,delete Qn.animationstart.animation),"TransitionEvent"in window||delete Qn.transitionend.transition);function sn(e){if(Tu[e])return Tu[e];if(!Qn[e])return e;var t=Qn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in M0)return Tu[e]=t[l];return e}var A0=sn("animationend"),C0=sn("animationiteration"),_0=sn("animationstart"),Kd=sn("transitionrun"),Jd=sn("transitionstart"),$d=sn("transitioncancel"),O0=sn("transitionend"),D0=new Map,Mu="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(" ");Mu.push("scrollEnd");function Ft(e,t){D0.set(e,t),an(t,[e])}var Hi=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)},qt=[],Zn=0,Au=0;function Ui(){for(var e=Zn,t=Au=Zn=0;t<e;){var l=qt[t];qt[t++]=null;var n=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var c=qt[t];if(qt[t++]=null,n!==null&&a!==null){var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}c!==0&&R0(l,a,c)}}function Bi(e,t,l,n){qt[Zn++]=e,qt[Zn++]=t,qt[Zn++]=l,qt[Zn++]=n,Au|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Cu(e,t,l,n){return Bi(e,t,l,n),qi(e)}function on(e,t){return Bi(e,null,null,t),qi(e)}function R0(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,c=e.return;c!==null;)c.childLanes|=l,n=c.alternate,n!==null&&(n.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(a=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,a&&t!==null&&(a=31-St(l),e=c.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),c):null}function qi(e){if(50<ni)throw ni=0,qs=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Kn={};function Fd(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,l,n){return new Fd(e,t,l,n)}function _u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fl(e,t){var l=e.alternate;return l===null?(l=_t(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function L0(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ki(e,t,l,n,a,c){var s=0;if(n=e,typeof e=="function")_u(e)&&(s=1);else if(typeof e=="string")s=t3(e,l,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ze:return e=_t(31,l,t,a),e.elementType=ze,e.lanes=c,e;case se:return rn(l.children,a,c,t);case be:s=8,a|=24;break;case B:return e=_t(12,l,t,a|2),e.elementType=B,e.lanes=c,e;case he:return e=_t(13,l,t,a),e.elementType=he,e.lanes=c,e;case $:return e=_t(19,l,t,a),e.elementType=$,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:s=10;break e;case de:s=9;break e;case ne:s=11;break e;case K:s=14;break e;case Y:s=16,n=null;break e}s=29,l=Error(r(130,e===null?"null":typeof e,"")),n=null}return t=_t(s,l,t,a),t.elementType=e,t.type=n,t.lanes=c,t}function rn(e,t,l,n){return e=_t(7,e,n,t),e.lanes=l,e}function Ou(e,t,l){return e=_t(6,e,null,t),e.lanes=l,e}function H0(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Du(e,t,l){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var U0=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var l=U0.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ln(t)},U0.set(e,t),t)}return{value:e,source:t,stack:ln(t)}}var Jn=[],$n=0,Vi=null,Ha=0,Vt=[],Gt=0,_l=null,tl=1,ll="";function dl(e,t){Jn[$n++]=Ha,Jn[$n++]=Vi,Vi=e,Ha=t}function B0(e,t,l){Vt[Gt++]=tl,Vt[Gt++]=ll,Vt[Gt++]=_l,_l=e;var n=tl;e=ll;var a=32-St(n)-1;n&=~(1<<a),l+=1;var c=32-St(t)+a;if(30<c){var s=a-a%5;c=(n&(1<<s)-1).toString(32),n>>=s,a-=s,tl=1<<32-St(t)+a|l<<a|n,ll=c+e}else tl=1<<c|l<<a|n,ll=e}function Ru(e){e.return!==null&&(dl(e,1),B0(e,1,0))}function Lu(e){for(;e===Vi;)Vi=Jn[--$n],Jn[$n]=null,Ha=Jn[--$n],Jn[$n]=null;for(;e===_l;)_l=Vt[--Gt],Vt[Gt]=null,ll=Vt[--Gt],Vt[Gt]=null,tl=Vt[--Gt],Vt[Gt]=null}function q0(e,t){Vt[Gt++]=tl,Vt[Gt++]=ll,Vt[Gt++]=_l,tl=t.id,ll=t.overflow,_l=e}var ft=null,Ye=null,Me=!1,Ol=null,Yt=!1,Hu=Error(r(519));function Dl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ua(kt(t,e)),Hu}function k0(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[it]=e,t[jt]=n,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<ii.length;l++)Ee(ii[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),P1(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),t0(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||af(t.textContent,l)?(n.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),n.onScroll!=null&&Ee("scroll",t),n.onScrollEnd!=null&&Ee("scrollend",t),n.onClick!=null&&(t.onclick=ol),t=!0):t=!1,t||Dl(e,!0)}function V0(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ft=ft.return}}function Fn(e){if(e!==ft)return!1;if(!Me)return V0(e),Me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||e1(e.type,e.memoizedProps)),l=!l),l&&Ye&&Dl(e),V0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ye=mf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ye=mf(e)}else t===27?(t=Ye,Kl(e.type)?(e=i1,i1=null,Ye=e):Ye=t):Ye=ft?Qt(e.stateNode.nextSibling):null;return!0}function fn(){Ye=ft=null,Me=!1}function Uu(){var e=Ol;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),Ol=null),e}function Ua(e){Ol===null?Ol=[e]:Ol.push(e)}var Bu=p(null),dn=null,hl=null;function Rl(e,t,l){U(Bu,t._currentValue),t._currentValue=l}function ml(e){e._currentValue=Bu.current,O(Bu)}function qu(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function ku(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var c=a.dependencies;if(c!==null){var s=a.child;c=c.firstContext;e:for(;c!==null;){var d=c;c=a;for(var m=0;m<t.length;m++)if(d.context===t[m]){c.lanes|=l,d=c.alternate,d!==null&&(d.lanes|=l),qu(c.return,l,e),n||(s=null);break e}c=d.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(r(341));s.lanes|=l,c=s.alternate,c!==null&&(c.lanes|=l),qu(s,l,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Wn(e,t,l,n){e=null;for(var a=t,c=!1;a!==null;){if(!c){if((a.flags&524288)!==0)c=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var d=a.type;Ct(a.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(a===V.current){if(s=a.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(ri):e=[ri])}a=a.return}e!==null&&ku(t,e,l,n),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hn(e){dn=e,hl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return G0(dn,e)}function Yi(e,t){return dn===null&&hn(e),G0(e,t)}function G0(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},hl===null){if(e===null)throw Error(r(308));hl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hl=hl.next=t;return l}var Wd=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Id=i.unstable_scheduleCallback,Pd=i.unstable_NormalPriority,Pe={$$typeof:oe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vu(){return{controller:new Wd,data:new Map,refCount:0}}function Ba(e){e.refCount--,e.refCount===0&&Id(Pd,function(){e.controller.abort()})}var qa=null,Gu=0,In=0,Pn=null;function e4(e,t){if(qa===null){var l=qa=[];Gu=0,In=Qs(),Pn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Gu++,t.then(Y0,Y0),t}function Y0(){if(--Gu===0&&qa!==null){Pn!==null&&(Pn.status="fulfilled");var e=qa;qa=null,In=0,Pn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function t4(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var X0=z.S;z.S=function(e,t){Mr=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&e4(e,t),X0!==null&&X0(e,t)};var mn=p(null);function Yu(){var e=mn.current;return e!==null?e:Ge.pooledCache}function Xi(e,t){t===null?U(mn,mn.current):U(mn,t.pool)}function Q0(){var e=Yu();return e===null?null:{parent:Pe._currentValue,pool:e}}var ea=Error(r(460)),Xu=Error(r(474)),Qi=Error(r(542)),Zi={then:function(){}};function Z0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function K0(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ol,ol),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$0(e),e;default:if(typeof t.status=="string")t.then(ol,ol);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$0(e),e}throw pn=t,ea}}function yn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(pn=l,ea):l}}var pn=null;function J0(){if(pn===null)throw Error(r(459));var e=pn;return pn=null,e}function $0(e){if(e===ea||e===Qi)throw Error(r(483))}var ta=null,ka=0;function Ki(e){var t=ka;return ka+=1,ta===null&&(ta=[]),K0(ta,e,t)}function Va(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ji(e,t){throw t.$$typeof===k?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function F0(e){function t(b,v){if(e){var S=b.deletions;S===null?(b.deletions=[v],b.flags|=16):S.push(v)}}function l(b,v){if(!e)return null;for(;v!==null;)t(b,v),v=v.sibling;return null}function n(b){for(var v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function a(b,v){return b=fl(b,v),b.index=0,b.sibling=null,b}function c(b,v,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<v?(b.flags|=67108866,v):S):(b.flags|=67108866,v)):(b.flags|=1048576,v)}function s(b){return e&&b.alternate===null&&(b.flags|=67108866),b}function d(b,v,S,D){return v===null||v.tag!==6?(v=Ou(S,b.mode,D),v.return=b,v):(v=a(v,S),v.return=b,v)}function m(b,v,S,D){var le=S.type;return le===se?C(b,v,S.props.children,D,S.key):v!==null&&(v.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Y&&yn(le)===v.type)?(v=a(v,S.props),Va(v,S),v.return=b,v):(v=ki(S.type,S.key,S.props,null,b.mode,D),Va(v,S),v.return=b,v)}function j(b,v,S,D){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Du(S,b.mode,D),v.return=b,v):(v=a(v,S.children||[]),v.return=b,v)}function C(b,v,S,D,le){return v===null||v.tag!==7?(v=rn(S,b.mode,D,le),v.return=b,v):(v=a(v,S),v.return=b,v)}function R(b,v,S){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Ou(""+v,b.mode,S),v.return=b,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case F:return S=ki(v.type,v.key,v.props,null,b.mode,S),Va(S,v),S.return=b,S;case te:return v=Du(v,b.mode,S),v.return=b,v;case Y:return v=yn(v),R(b,v,S)}if(Se(v)||H(v))return v=rn(v,b.mode,S,null),v.return=b,v;if(typeof v.then=="function")return R(b,Ki(v),S);if(v.$$typeof===oe)return R(b,Yi(b,v),S);Ji(b,v)}return null}function E(b,v,S,D){var le=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return le!==null?null:d(b,v,""+S,D);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case F:return S.key===le?m(b,v,S,D):null;case te:return S.key===le?j(b,v,S,D):null;case Y:return S=yn(S),E(b,v,S,D)}if(Se(S)||H(S))return le!==null?null:C(b,v,S,D,null);if(typeof S.then=="function")return E(b,v,Ki(S),D);if(S.$$typeof===oe)return E(b,v,Yi(b,S),D);Ji(b,S)}return null}function N(b,v,S,D,le){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return b=b.get(S)||null,d(v,b,""+D,le);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case F:return b=b.get(D.key===null?S:D.key)||null,m(v,b,D,le);case te:return b=b.get(D.key===null?S:D.key)||null,j(v,b,D,le);case Y:return D=yn(D),N(b,v,S,D,le)}if(Se(D)||H(D))return b=b.get(S)||null,C(v,b,D,le,null);if(typeof D.then=="function")return N(b,v,S,Ki(D),le);if(D.$$typeof===oe)return N(b,v,S,Yi(v,D),le);Ji(v,D)}return null}function J(b,v,S,D){for(var le=null,Oe=null,I=v,ve=v=0,we=null;I!==null&&ve<S.length;ve++){I.index>ve?(we=I,I=null):we=I.sibling;var De=E(b,I,S[ve],D);if(De===null){I===null&&(I=we);break}e&&I&&De.alternate===null&&t(b,I),v=c(De,v,ve),Oe===null?le=De:Oe.sibling=De,Oe=De,I=we}if(ve===S.length)return l(b,I),Me&&dl(b,ve),le;if(I===null){for(;ve<S.length;ve++)I=R(b,S[ve],D),I!==null&&(v=c(I,v,ve),Oe===null?le=I:Oe.sibling=I,Oe=I);return Me&&dl(b,ve),le}for(I=n(I);ve<S.length;ve++)we=N(I,b,ve,S[ve],D),we!==null&&(e&&we.alternate!==null&&I.delete(we.key===null?ve:we.key),v=c(we,v,ve),Oe===null?le=we:Oe.sibling=we,Oe=we);return e&&I.forEach(function(Il){return t(b,Il)}),Me&&dl(b,ve),le}function ie(b,v,S,D){if(S==null)throw Error(r(151));for(var le=null,Oe=null,I=v,ve=v=0,we=null,De=S.next();I!==null&&!De.done;ve++,De=S.next()){I.index>ve?(we=I,I=null):we=I.sibling;var Il=E(b,I,De.value,D);if(Il===null){I===null&&(I=we);break}e&&I&&Il.alternate===null&&t(b,I),v=c(Il,v,ve),Oe===null?le=Il:Oe.sibling=Il,Oe=Il,I=we}if(De.done)return l(b,I),Me&&dl(b,ve),le;if(I===null){for(;!De.done;ve++,De=S.next())De=R(b,De.value,D),De!==null&&(v=c(De,v,ve),Oe===null?le=De:Oe.sibling=De,Oe=De);return Me&&dl(b,ve),le}for(I=n(I);!De.done;ve++,De=S.next())De=N(I,b,ve,De.value,D),De!==null&&(e&&De.alternate!==null&&I.delete(De.key===null?ve:De.key),v=c(De,v,ve),Oe===null?le=De:Oe.sibling=De,Oe=De);return e&&I.forEach(function(d3){return t(b,d3)}),Me&&dl(b,ve),le}function Ve(b,v,S,D){if(typeof S=="object"&&S!==null&&S.type===se&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case F:e:{for(var le=S.key;v!==null;){if(v.key===le){if(le=S.type,le===se){if(v.tag===7){l(b,v.sibling),D=a(v,S.props.children),D.return=b,b=D;break e}}else if(v.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Y&&yn(le)===v.type){l(b,v.sibling),D=a(v,S.props),Va(D,S),D.return=b,b=D;break e}l(b,v);break}else t(b,v);v=v.sibling}S.type===se?(D=rn(S.props.children,b.mode,D,S.key),D.return=b,b=D):(D=ki(S.type,S.key,S.props,null,b.mode,D),Va(D,S),D.return=b,b=D)}return s(b);case te:e:{for(le=S.key;v!==null;){if(v.key===le)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){l(b,v.sibling),D=a(v,S.children||[]),D.return=b,b=D;break e}else{l(b,v);break}else t(b,v);v=v.sibling}D=Du(S,b.mode,D),D.return=b,b=D}return s(b);case Y:return S=yn(S),Ve(b,v,S,D)}if(Se(S))return J(b,v,S,D);if(H(S)){if(le=H(S),typeof le!="function")throw Error(r(150));return S=le.call(S),ie(b,v,S,D)}if(typeof S.then=="function")return Ve(b,v,Ki(S),D);if(S.$$typeof===oe)return Ve(b,v,Yi(b,S),D);Ji(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,v!==null&&v.tag===6?(l(b,v.sibling),D=a(v,S),D.return=b,b=D):(l(b,v),D=Ou(S,b.mode,D),D.return=b,b=D),s(b)):l(b,v)}return function(b,v,S,D){try{ka=0;var le=Ve(b,v,S,D);return ta=null,le}catch(I){if(I===ea||I===Qi)throw I;var Oe=_t(29,I,null,b.mode);return Oe.lanes=D,Oe.return=b,Oe}finally{}}}var vn=F0(!0),W0=F0(!1),Ll=!1;function Qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zu(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 Hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ul(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Re&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=qi(e),R0(e,null,l),t}return Bi(e,n,t,l),qi(e)}function Ga(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ni(e,l)}}function Ku(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?a=c=s:c=c.next=s,l=l.next}while(l!==null);c===null?a=c=t:c=c.next=t}else a=c=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:c,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Ju=!1;function Ya(){if(Ju){var e=Pn;if(e!==null)throw e}}function Xa(e,t,l,n){Ju=!1;var a=e.updateQueue;Ll=!1;var c=a.firstBaseUpdate,s=a.lastBaseUpdate,d=a.shared.pending;if(d!==null){a.shared.pending=null;var m=d,j=m.next;m.next=null,s===null?c=j:s.next=j,s=m;var C=e.alternate;C!==null&&(C=C.updateQueue,d=C.lastBaseUpdate,d!==s&&(d===null?C.firstBaseUpdate=j:d.next=j,C.lastBaseUpdate=m))}if(c!==null){var R=a.baseState;s=0,C=j=m=null,d=c;do{var E=d.lane&-536870913,N=E!==d.lane;if(N?(Ne&E)===E:(n&E)===E){E!==0&&E===In&&(Ju=!0),C!==null&&(C=C.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var J=e,ie=d;E=t;var Ve=l;switch(ie.tag){case 1:if(J=ie.payload,typeof J=="function"){R=J.call(Ve,R,E);break e}R=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ie.payload,E=typeof J=="function"?J.call(Ve,R,E):J,E==null)break e;R=L({},R,E);break e;case 2:Ll=!0}}E=d.callback,E!==null&&(e.flags|=64,N&&(e.flags|=8192),N=a.callbacks,N===null?a.callbacks=[E]:N.push(E))}else N={lane:E,tag:d.tag,payload:d.payload,callback:d.callback,next:null},C===null?(j=C=N,m=R):C=C.next=N,s|=E;if(d=d.next,d===null){if(d=a.shared.pending,d===null)break;N=d,d=N.next,N.next=null,a.lastBaseUpdate=N,a.shared.pending=null}}while(!0);C===null&&(m=R),a.baseState=m,a.firstBaseUpdate=j,a.lastBaseUpdate=C,c===null&&(a.shared.lanes=0),Gl|=s,e.lanes=s,e.memoizedState=R}}function I0(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function P0(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)I0(l[e],t)}var la=p(null),$i=p(0);function eo(e,t){e=El,U($i,e),U(la,t),El=e|t.baseLanes}function $u(){U($i,El),U(la,la.current)}function Fu(){El=$i.current,O(la),O($i)}var Ot=p(null),Xt=null;function Bl(e){var t=e.alternate;U(We,We.current&1),U(Ot,e),Xt===null&&(t===null||la.current!==null||t.memoizedState!==null)&&(Xt=e)}function Wu(e){U(We,We.current),U(Ot,e),Xt===null&&(Xt=e)}function to(e){e.tag===22?(U(We,We.current),U(Ot,e),Xt===null&&(Xt=e)):ql()}function ql(){U(We,We.current),U(Ot,Ot.current)}function Dt(e){O(Ot),Xt===e&&(Xt=null),O(We)}var We=p(0);function Fi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||n1(l)||a1(l)))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 yl=0,me=null,qe=null,et=null,Wi=!1,na=!1,gn=!1,Ii=0,Qa=0,aa=null,l4=0;function Je(){throw Error(r(321))}function Iu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ct(e[l],t[l]))return!1;return!0}function Pu(e,t,l,n,a,c){return yl=c,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?qo:ms,gn=!1,c=l(n,a),gn=!1,na&&(c=no(t,l,n,a)),lo(e),c}function lo(e){z.H=Ja;var t=qe!==null&&qe.next!==null;if(yl=0,et=qe=me=null,Wi=!1,Qa=0,aa=null,t)throw Error(r(300));e===null||tt||(e=e.dependencies,e!==null&&Gi(e)&&(tt=!0))}function no(e,t,l,n){me=e;var a=0;do{if(na&&(aa=null),Qa=0,na=!1,25<=a)throw Error(r(301));if(a+=1,et=qe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=ko,c=t(l,n)}while(na);return c}function n4(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Za(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(me.flags|=1024),t}function es(){var e=Ii!==0;return Ii=0,e}function ts(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ls(e){if(Wi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wi=!1}yl=0,et=qe=me=null,na=!1,Qa=Ii=0,aa=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?me.memoizedState=et=e:et=et.next=e,et}function Ie(){if(qe===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=et===null?me.memoizedState:et.next;if(t!==null)et=t,qe=e;else{if(e===null)throw me.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},et===null?me.memoizedState=et=e:et=et.next=e}return et}function Pi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Za(e){var t=Qa;return Qa+=1,aa===null&&(aa=[]),e=K0(aa,e,t),t=me,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?qo:ms),e}function ec(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Za(e);if(e.$$typeof===oe)return dt(e)}throw Error(r(438,String(e)))}function ns(e){var t=null,l=me.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=me.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Pi(),me.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=Be;return t.index++,l}function pl(e,t){return typeof t=="function"?t(e):t}function tc(e){var t=Ie();return as(t,qe,e)}function as(e,t,l){var n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=l;var a=e.baseQueue,c=n.pending;if(c!==null){if(a!==null){var s=a.next;a.next=c.next,c.next=s}t.baseQueue=a=c,n.pending=null}if(c=e.baseState,a===null)e.memoizedState=c;else{t=a.next;var d=s=null,m=null,j=t,C=!1;do{var R=j.lane&-536870913;if(R!==j.lane?(Ne&R)===R:(yl&R)===R){var E=j.revertLane;if(E===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),R===In&&(C=!0);else if((yl&E)===E){j=j.next,E===In&&(C=!0);continue}else R={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(d=m=R,s=c):m=m.next=R,me.lanes|=E,Gl|=E;R=j.action,gn&&l(c,R),c=j.hasEagerState?j.eagerState:l(c,R)}else E={lane:R,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(d=m=E,s=c):m=m.next=E,me.lanes|=R,Gl|=R;j=j.next}while(j!==null&&j!==t);if(m===null?s=c:m.next=d,!Ct(c,e.memoizedState)&&(tt=!0,C&&(l=Pn,l!==null)))throw l;e.memoizedState=c,e.baseState=s,e.baseQueue=m,n.lastRenderedState=c}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function is(e){var t=Ie(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,c=t.memoizedState;if(a!==null){l.pending=null;var s=a=a.next;do c=e(c,s.action),s=s.next;while(s!==a);Ct(c,t.memoizedState)||(tt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,n]}function ao(e,t,l){var n=me,a=Ie(),c=Me;if(c){if(l===void 0)throw Error(r(407));l=l()}else l=t();var s=!Ct((qe||a).memoizedState,l);if(s&&(a.memoizedState=l,tt=!0),a=a.queue,ss(uo.bind(null,n,a,e),[e]),a.getSnapshot!==t||s||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,ia(9,{destroy:void 0},co.bind(null,n,a,l,t),null),Ge===null)throw Error(r(349));c||(yl&127)!==0||io(n,t,l)}return l}function io(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=me.updateQueue,t===null?(t=Pi(),me.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function co(e,t,l,n){t.value=l,t.getSnapshot=n,so(t)&&oo(e)}function uo(e,t,l){return l(function(){so(t)&&oo(e)})}function so(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ct(e,l)}catch{return!0}}function oo(e){var t=on(e,2);t!==null&&Mt(t,e,2)}function cs(e){var t=xt();if(typeof e=="function"){var l=e;if(e=l(),gn){$t(!0);try{l()}finally{$t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:e},t}function ro(e,t,l,n){return e.baseState=l,as(e,qe,typeof n=="function"?n:pl)}function a4(e,t,l,n,a){if(ac(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){c.listeners.push(s)}};z.T!==null?l(!0):c.isTransition=!1,n(c),l=t.pending,l===null?(c.next=t.pending=c,fo(t,c)):(c.next=l.next,t.pending=l.next=c)}}function fo(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var c=z.T,s={};z.T=s;try{var d=l(a,n),m=z.S;m!==null&&m(s,d),ho(e,t,d)}catch(j){us(e,t,j)}finally{c!==null&&s.types!==null&&(c.types=s.types),z.T=c}}else try{c=l(a,n),ho(e,t,c)}catch(j){us(e,t,j)}}function ho(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){mo(e,t,n)},function(n){return us(e,t,n)}):mo(e,t,l)}function mo(e,t,l){t.status="fulfilled",t.value=l,yo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,fo(e,l)))}function us(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,yo(t),t=t.next;while(t!==n)}e.action=null}function yo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function po(e,t){return t}function vo(e,t){if(Me){var l=Ge.formState;if(l!==null){e:{var n=me;if(Me){if(Ye){t:{for(var a=Ye,c=Yt;a.nodeType!==8;){if(!c){a=null;break t}if(a=Qt(a.nextSibling),a===null){a=null;break t}}c=a.data,a=c==="F!"||c==="F"?a:null}if(a){Ye=Qt(a.nextSibling),n=a.data==="F!";break e}}Dl(n)}n=!1}n&&(t=l[0])}}return l=xt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:po,lastRenderedState:t},l.queue=n,l=Ho.bind(null,me,n),n.dispatch=l,n=cs(!1),c=hs.bind(null,me,!1,n.queue),n=xt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=a4.bind(null,me,a,c,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function go(e){var t=Ie();return bo(t,qe,e)}function bo(e,t,l){if(t=as(e,t,po)[0],e=tc(pl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Za(t)}catch(s){throw s===ea?Qi:s}else n=t;t=Ie();var a=t.queue,c=a.dispatch;return l!==t.memoizedState&&(me.flags|=2048,ia(9,{destroy:void 0},i4.bind(null,a,l),null)),[n,c,e]}function i4(e,t){e.action=t}function So(e){var t=Ie(),l=qe;if(l!==null)return bo(t,l,e);Ie(),t=t.memoizedState,l=Ie();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function ia(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=me.updateQueue,t===null&&(t=Pi(),me.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function xo(){return Ie().memoizedState}function lc(e,t,l,n){var a=xt();me.flags|=e,a.memoizedState=ia(1|t,{destroy:void 0},l,n===void 0?null:n)}function nc(e,t,l,n){var a=Ie();n=n===void 0?null:n;var c=a.memoizedState.inst;qe!==null&&n!==null&&Iu(n,qe.memoizedState.deps)?a.memoizedState=ia(t,c,l,n):(me.flags|=e,a.memoizedState=ia(1|t,c,l,n))}function jo(e,t){lc(8390656,8,e,t)}function ss(e,t){nc(2048,8,e,t)}function c4(e){me.flags|=4;var t=me.updateQueue;if(t===null)t=Pi(),me.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Eo(e){var t=Ie().memoizedState;return c4({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function zo(e,t){return nc(4,2,e,t)}function No(e,t){return nc(4,4,e,t)}function wo(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function To(e,t,l){l=l!=null?l.concat([e]):null,nc(4,4,wo.bind(null,t,e),l)}function os(){}function Mo(e,t){var l=Ie();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Iu(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Ao(e,t){var l=Ie();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Iu(t,n[1]))return n[0];if(n=e(),gn){$t(!0);try{e()}finally{$t(!1)}}return l.memoizedState=[n,t],n}function rs(e,t,l){return l===void 0||(yl&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Cr(),me.lanes|=e,Gl|=e,l)}function Co(e,t,l,n){return Ct(l,t)?l:la.current!==null?(e=rs(e,l,n),Ct(e,t)||(tt=!0),e):(yl&42)===0||(yl&1073741824)!==0&&(Ne&261930)===0?(tt=!0,e.memoizedState=l):(e=Cr(),me.lanes|=e,Gl|=e,t)}function _o(e,t,l,n,a){var c=q.p;q.p=c!==0&&8>c?c:8;var s=z.T,d={};z.T=d,hs(e,!1,t,l);try{var m=a(),j=z.S;if(j!==null&&j(d,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var C=t4(m,n);Ka(e,t,C,Ht(e))}else Ka(e,t,n,Ht(e))}catch(R){Ka(e,t,{then:function(){},status:"rejected",reason:R},Ht())}finally{q.p=c,s!==null&&d.types!==null&&(s.types=d.types),z.T=s}}function u4(){}function fs(e,t,l,n){if(e.tag!==5)throw Error(r(476));var a=Oo(e).queue;_o(e,a,t,W,l===null?u4:function(){return Do(e),l(n)})}function Oo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:W},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Do(e){var t=Oo(e);t.next===null&&(t=e.alternate.memoizedState),Ka(e,t.next.queue,{},Ht())}function ds(){return dt(ri)}function Ro(){return Ie().memoizedState}function Lo(){return Ie().memoizedState}function s4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Hl(l);var n=Ul(t,e,l);n!==null&&(Mt(n,t,l),Ga(n,t,l)),t={cache:Vu()},e.payload=t;return}t=t.return}}function o4(e,t,l){var n=Ht();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ac(e)?Uo(t,l):(l=Cu(e,t,l,n),l!==null&&(Mt(l,e,n),Bo(l,t,n)))}function Ho(e,t,l){var n=Ht();Ka(e,t,l,n)}function Ka(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ac(e))Uo(t,a);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var s=t.lastRenderedState,d=c(s,l);if(a.hasEagerState=!0,a.eagerState=d,Ct(d,s))return Bi(e,t,a,0),Ge===null&&Ui(),!1}catch{}finally{}if(l=Cu(e,t,a,n),l!==null)return Mt(l,e,n),Bo(l,t,n),!0}return!1}function hs(e,t,l,n){if(n={lane:2,revertLane:Qs(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e)){if(t)throw Error(r(479))}else t=Cu(e,l,n,2),t!==null&&Mt(t,e,2)}function ac(e){var t=e.alternate;return e===me||t!==null&&t===me}function Uo(e,t){na=Wi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Bo(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ni(e,l)}}var Ja={readContext:dt,use:ec,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};Ja.useEffectEvent=Je;var qo={readContext:dt,use:ec,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:jo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,lc(4194308,4,wo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return lc(4194308,4,e,t)},useInsertionEffect:function(e,t){lc(4,2,e,t)},useMemo:function(e,t){var l=xt();t=t===void 0?null:t;var n=e();if(gn){$t(!0);try{e()}finally{$t(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=xt();if(l!==void 0){var a=l(t);if(gn){$t(!0);try{l(t)}finally{$t(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=o4.bind(null,me,e),[n.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=cs(e);var t=e.queue,l=Ho.bind(null,me,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:os,useDeferredValue:function(e,t){var l=xt();return rs(l,e,t)},useTransition:function(){var e=cs(!1);return e=_o.bind(null,me,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=me,a=xt();if(Me){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ge===null)throw Error(r(349));(Ne&127)!==0||io(n,t,l)}a.memoizedState=l;var c={value:l,getSnapshot:t};return a.queue=c,jo(uo.bind(null,n,c,e),[e]),n.flags|=2048,ia(9,{destroy:void 0},co.bind(null,n,c,l,t),null),l},useId:function(){var e=xt(),t=Ge.identifierPrefix;if(Me){var l=ll,n=tl;l=(n&~(1<<32-St(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ii++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=l4++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ds,useFormState:vo,useActionState:vo,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=hs.bind(null,me,!0,l),l.dispatch=t,[e,t]},useMemoCache:ns,useCacheRefresh:function(){return xt().memoizedState=s4.bind(null,me)},useEffectEvent:function(e){var t=xt(),l={impl:e};return t.memoizedState=l,function(){if((Re&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},ms={readContext:dt,use:ec,useCallback:Mo,useContext:dt,useEffect:ss,useImperativeHandle:To,useInsertionEffect:zo,useLayoutEffect:No,useMemo:Ao,useReducer:tc,useRef:xo,useState:function(){return tc(pl)},useDebugValue:os,useDeferredValue:function(e,t){var l=Ie();return Co(l,qe.memoizedState,e,t)},useTransition:function(){var e=tc(pl)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Za(e),t]},useSyncExternalStore:ao,useId:Ro,useHostTransitionStatus:ds,useFormState:go,useActionState:go,useOptimistic:function(e,t){var l=Ie();return ro(l,qe,e,t)},useMemoCache:ns,useCacheRefresh:Lo};ms.useEffectEvent=Eo;var ko={readContext:dt,use:ec,useCallback:Mo,useContext:dt,useEffect:ss,useImperativeHandle:To,useInsertionEffect:zo,useLayoutEffect:No,useMemo:Ao,useReducer:is,useRef:xo,useState:function(){return is(pl)},useDebugValue:os,useDeferredValue:function(e,t){var l=Ie();return qe===null?rs(l,e,t):Co(l,qe.memoizedState,e,t)},useTransition:function(){var e=is(pl)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Za(e),t]},useSyncExternalStore:ao,useId:Ro,useHostTransitionStatus:ds,useFormState:So,useActionState:So,useOptimistic:function(e,t){var l=Ie();return qe!==null?ro(l,qe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ns,useCacheRefresh:Lo};ko.useEffectEvent=Eo;function ys(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:L({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ps={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=Ht(),a=Hl(n);a.payload=t,l!=null&&(a.callback=l),t=Ul(e,a,n),t!==null&&(Mt(t,e,n),Ga(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=Ht(),a=Hl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=Ul(e,a,n),t!==null&&(Mt(t,e,n),Ga(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ht(),n=Hl(l);n.tag=2,t!=null&&(n.callback=t),t=Ul(e,n,l),t!==null&&(Mt(t,e,l),Ga(t,e,l))}};function Vo(e,t,l,n,a,c,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,c,s):t.prototype&&t.prototype.isPureReactComponent?!Ra(l,n)||!Ra(a,c):!0}function Go(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&ps.enqueueReplaceState(t,t.state,null)}function bn(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=L({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function Yo(e){Hi(e)}function Xo(e){console.error(e)}function Qo(e){Hi(e)}function ic(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Zo(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function vs(e,t,l){return l=Hl(l),l.tag=3,l.payload={element:null},l.callback=function(){ic(e,t)},l}function Ko(e){return e=Hl(e),e.tag=3,e}function Jo(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var c=n.value;e.payload=function(){return a(c)},e.callback=function(){Zo(t,l,n)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){Zo(t,l,n),typeof a!="function"&&(Yl===null?Yl=new Set([this]):Yl.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function r4(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&Wn(t,l,a,!0),l=Ot.current,l!==null){switch(l.tag){case 31:case 13:return Xt===null?vc():l.alternate===null&&$e===0&&($e=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Zi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Gs(e,n,a)),!1;case 22:return l.flags|=65536,n===Zi?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Gs(e,n,a)),!1}throw Error(r(435,l.tag))}return Gs(e,n,a),vc(),!1}if(Me)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Hu&&(e=Error(r(422),{cause:n}),Ua(kt(e,l)))):(n!==Hu&&(t=Error(r(423),{cause:n}),Ua(kt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=kt(n,l),a=vs(e.stateNode,n,a),Ku(e,a),$e!==4&&($e=2)),!1;var c=Error(r(520),{cause:n});if(c=kt(c,l),li===null?li=[c]:li.push(c),$e!==4&&($e=2),t===null)return!0;n=kt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=vs(l.stateNode,n,e),Ku(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Yl===null||!Yl.has(c))))return l.flags|=65536,a&=-a,l.lanes|=a,a=Ko(a),Jo(a,e,l,n),Ku(l,a),!1}l=l.return}while(l!==null);return!1}var gs=Error(r(461)),tt=!1;function ht(e,t,l,n){t.child=e===null?W0(t,null,l,n):vn(t,e.child,l,n)}function $o(e,t,l,n,a){l=l.render;var c=t.ref;if("ref"in n){var s={};for(var d in n)d!=="ref"&&(s[d]=n[d])}else s=n;return hn(t),n=Pu(e,t,l,s,c,a),d=es(),e!==null&&!tt?(ts(e,t,a),vl(e,t,a)):(Me&&d&&Ru(t),t.flags|=1,ht(e,t,n,a),t.child)}function Fo(e,t,l,n,a){if(e===null){var c=l.type;return typeof c=="function"&&!_u(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,Wo(e,t,c,n,a)):(e=ki(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ws(e,a)){var s=c.memoizedProps;if(l=l.compare,l=l!==null?l:Ra,l(s,n)&&e.ref===t.ref)return vl(e,t,a)}return t.flags|=1,e=fl(c,n),e.ref=t.ref,e.return=t,t.child=e}function Wo(e,t,l,n,a){if(e!==null){var c=e.memoizedProps;if(Ra(c,n)&&e.ref===t.ref)if(tt=!1,t.pendingProps=n=c,ws(e,a))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,vl(e,t,a)}return bs(e,t,l,n,a)}function Io(e,t,l,n){var a=n.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~c}else n=0,t.child=null;return Po(e,t,c,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xi(t,c!==null?c.cachePool:null),c!==null?eo(t,c):$u(),to(t);else return n=t.lanes=536870912,Po(e,t,c!==null?c.baseLanes|l:l,l,n)}else c!==null?(Xi(t,c.cachePool),eo(t,c),ql(),t.memoizedState=null):(e!==null&&Xi(t,null),$u(),ql());return ht(e,t,a,l),t.child}function $a(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Po(e,t,l,n,a){var c=Yu();return c=c===null?null:{parent:Pe._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&Xi(t,null),$u(),to(t),e!==null&&Wn(e,t,n,!0),t.childLanes=a,null}function cc(e,t){return t=sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function er(e,t,l){return vn(t,e.child,null,l),e=cc(t,t.pendingProps),e.flags|=2,Dt(t),t.memoizedState=null,e}function f4(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(n.mode==="hidden")return e=cc(t,n),t.lanes=536870912,$a(null,e);if(Wu(t),(e=Ye)?(e=hf(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_l!==null?{id:tl,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},l=H0(e),l.return=t,t.child=l,ft=t,Ye=null)):e=null,e===null)throw Dl(t);return t.lanes=536870912,null}return cc(t,n)}var c=e.memoizedState;if(c!==null){var s=c.dehydrated;if(Wu(t),a)if(t.flags&256)t.flags&=-257,t=er(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(tt||Wn(e,t,l,!1),a=(l&e.childLanes)!==0,tt||a){if(n=Ge,n!==null&&(s=G(n,l),s!==0&&s!==c.retryLane))throw c.retryLane=s,on(e,s),Mt(n,e,s),gs;vc(),t=er(e,t,l)}else e=c.treeContext,Ye=Qt(s.nextSibling),ft=t,Me=!0,Ol=null,Yt=!1,e!==null&&q0(t,e),t=cc(t,n),t.flags|=4096;return t}return e=fl(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function uc(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function bs(e,t,l,n,a){return hn(t),l=Pu(e,t,l,n,void 0,a),n=es(),e!==null&&!tt?(ts(e,t,a),vl(e,t,a)):(Me&&n&&Ru(t),t.flags|=1,ht(e,t,l,a),t.child)}function tr(e,t,l,n,a,c){return hn(t),t.updateQueue=null,l=no(t,n,l,a),lo(e),n=es(),e!==null&&!tt?(ts(e,t,c),vl(e,t,c)):(Me&&n&&Ru(t),t.flags|=1,ht(e,t,l,c),t.child)}function lr(e,t,l,n,a){if(hn(t),t.stateNode===null){var c=Kn,s=l.contextType;typeof s=="object"&&s!==null&&(c=dt(s)),c=new l(n,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ps,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=n,c.state=t.memoizedState,c.refs={},Qu(t),s=l.contextType,c.context=typeof s=="object"&&s!==null?dt(s):Kn,c.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(ys(t,l,s,n),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(s=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),s!==c.state&&ps.enqueueReplaceState(c,c.state,null),Xa(t,n,c,a),Ya(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){c=t.stateNode;var d=t.memoizedProps,m=bn(l,d);c.props=m;var j=c.context,C=l.contextType;s=Kn,typeof C=="object"&&C!==null&&(s=dt(C));var R=l.getDerivedStateFromProps;C=typeof R=="function"||typeof c.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,C||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d||j!==s)&&Go(t,c,n,s),Ll=!1;var E=t.memoizedState;c.state=E,Xa(t,n,c,a),Ya(),j=t.memoizedState,d||E!==j||Ll?(typeof R=="function"&&(ys(t,l,R,n),j=t.memoizedState),(m=Ll||Vo(t,l,m,n,E,j,s))?(C||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=j),c.props=n,c.state=j,c.context=s,n=m):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,Zu(e,t),s=t.memoizedProps,C=bn(l,s),c.props=C,R=t.pendingProps,E=c.context,j=l.contextType,m=Kn,typeof j=="object"&&j!==null&&(m=dt(j)),d=l.getDerivedStateFromProps,(j=typeof d=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(s!==R||E!==m)&&Go(t,c,n,m),Ll=!1,E=t.memoizedState,c.state=E,Xa(t,n,c,a),Ya();var N=t.memoizedState;s!==R||E!==N||Ll||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof d=="function"&&(ys(t,l,d,n),N=t.memoizedState),(C=Ll||Vo(t,l,C,n,E,N,m)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(j||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,N,m),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,N,m)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||s===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=N),c.props=n,c.state=N,c.context=m,n=C):(typeof c.componentDidUpdate!="function"||s===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),n=!1)}return c=n,uc(e,t),n=(t.flags&128)!==0,c||n?(c=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&n?(t.child=vn(t,e.child,null,a),t.child=vn(t,null,l,a)):ht(e,t,l,a),t.memoizedState=c.state,e=t.child):e=vl(e,t,a),e}function nr(e,t,l,n){return fn(),t.flags|=256,ht(e,t,l,n),t.child}var Ss={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xs(e){return{baseLanes:e,cachePool:Q0()}}function js(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Lt),e}function ar(e,t,l){var n=t.pendingProps,a=!1,c=(t.flags&128)!==0,s;if((s=c)||(s=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(a?Bl(t):ql(),(e=Ye)?(e=hf(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_l!==null?{id:tl,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},l=H0(e),l.return=t,t.child=l,ft=t,Ye=null)):e=null,e===null)throw Dl(t);return a1(e)?t.lanes=32:t.lanes=536870912,null}var d=n.children;return n=n.fallback,a?(ql(),a=t.mode,d=sc({mode:"hidden",children:d},a),n=rn(n,a,l,null),d.return=t,n.return=t,d.sibling=n,t.child=d,n=t.child,n.memoizedState=xs(l),n.childLanes=js(e,s,l),t.memoizedState=Ss,$a(null,n)):(Bl(t),Es(t,d))}var m=e.memoizedState;if(m!==null&&(d=m.dehydrated,d!==null)){if(c)t.flags&256?(Bl(t),t.flags&=-257,t=zs(e,t,l)):t.memoizedState!==null?(ql(),t.child=e.child,t.flags|=128,t=null):(ql(),d=n.fallback,a=t.mode,n=sc({mode:"visible",children:n.children},a),d=rn(d,a,l,null),d.flags|=2,n.return=t,d.return=t,n.sibling=d,t.child=n,vn(t,e.child,null,l),n=t.child,n.memoizedState=xs(l),n.childLanes=js(e,s,l),t.memoizedState=Ss,t=$a(null,n));else if(Bl(t),a1(d)){if(s=d.nextSibling&&d.nextSibling.dataset,s)var j=s.dgst;s=j,n=Error(r(419)),n.stack="",n.digest=s,Ua({value:n,source:null,stack:null}),t=zs(e,t,l)}else if(tt||Wn(e,t,l,!1),s=(l&e.childLanes)!==0,tt||s){if(s=Ge,s!==null&&(n=G(s,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,on(e,n),Mt(s,e,n),gs;n1(d)||vc(),t=zs(e,t,l)}else n1(d)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Ye=Qt(d.nextSibling),ft=t,Me=!0,Ol=null,Yt=!1,e!==null&&q0(t,e),t=Es(t,n.children),t.flags|=4096);return t}return a?(ql(),d=n.fallback,a=t.mode,m=e.child,j=m.sibling,n=fl(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,j!==null?d=fl(j,d):(d=rn(d,a,l,null),d.flags|=2),d.return=t,n.return=t,n.sibling=d,t.child=n,$a(null,n),n=t.child,d=e.child.memoizedState,d===null?d=xs(l):(a=d.cachePool,a!==null?(m=Pe._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Q0(),d={baseLanes:d.baseLanes|l,cachePool:a}),n.memoizedState=d,n.childLanes=js(e,s,l),t.memoizedState=Ss,$a(e.child,n)):(Bl(t),l=e.child,e=l.sibling,l=fl(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l)}function Es(e,t){return t=sc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function sc(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function zs(e,t,l){return vn(t,e.child,null,l),e=Es(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ir(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),qu(e.return,t,l)}function Ns(e,t,l,n,a,c){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:c}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=l,s.tailMode=a,s.treeForkCount=c)}function cr(e,t,l){var n=t.pendingProps,a=n.revealOrder,c=n.tail;n=n.children;var s=We.current,d=(s&2)!==0;if(d?(s=s&1|2,t.flags|=128):s&=1,U(We,s),ht(e,t,n,l),n=Me?Ha:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ir(e,l,t);else if(e.tag===19)ir(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&Fi(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Ns(t,!1,a,l,c,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Fi(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Ns(t,!0,l,null,c,n);break;case"together":Ns(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function vl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Gl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Wn(e,t,l,!1),(l&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,l=fl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=fl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ws(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gi(e)))}function d4(e,t,l){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Rl(t,Pe,e.memoizedState.cache),fn();break;case 27:case 5:ge(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Rl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Wu(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Bl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ar(e,t,l):(Bl(t),e=vl(e,t,l),e!==null?e.sibling:null);Bl(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(Wn(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return cr(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),U(We,We.current),n)break;return null;case 22:return t.lanes=0,Io(e,t,l,t.pendingProps);case 24:Rl(t,Pe,e.memoizedState.cache)}return vl(e,t,l)}function ur(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!ws(e,l)&&(t.flags&128)===0)return tt=!1,d4(e,t,l);tt=(e.flags&131072)!==0}else tt=!1,Me&&(t.flags&1048576)!==0&&B0(t,Ha,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=yn(t.elementType),t.type=e,typeof e=="function")_u(e)?(n=bn(e,n),t.tag=1,t=lr(null,t,e,n,l)):(t.tag=0,t=bs(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===ne){t.tag=11,t=$o(null,t,e,n,l);break e}else if(a===K){t.tag=14,t=Fo(null,t,e,n,l);break e}}throw t=Q(e)||e,Error(r(306,t,""))}}return t;case 0:return bs(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=bn(n,t.pendingProps),lr(e,t,n,a,l);case 3:e:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(r(387));n=t.pendingProps;var c=t.memoizedState;a=c.element,Zu(e,t),Xa(t,n,null,l);var s=t.memoizedState;if(n=s.cache,Rl(t,Pe,n),n!==c.cache&&ku(t,[Pe],l,!0),Ya(),n=s.element,c.isDehydrated)if(c={element:n,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=nr(e,t,n,l);break e}else if(n!==a){a=kt(Error(r(424)),t),Ua(a),t=nr(e,t,n,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ye=Qt(e.firstChild),ft=t,Me=!0,Ol=null,Yt=!0,l=W0(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(fn(),n===a){t=vl(e,t,l);break e}ht(e,t,n,l)}t=t.child}return t;case 26:return uc(e,t),e===null?(l=bf(t.type,null,t.pendingProps,null))?t.memoizedState=l:Me||(l=t.type,e=t.pendingProps,n=zc(M.current).createElement(l),n[it]=t,n[jt]=e,mt(n,l,e),ut(n),t.stateNode=n):t.memoizedState=bf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&Me&&(n=t.stateNode=pf(t.type,t.pendingProps,M.current),ft=t,Yt=!0,a=Ye,Kl(t.type)?(i1=a,Ye=Qt(n.firstChild)):Ye=a),ht(e,t,t.pendingProps.children,l),uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((a=n=Ye)&&(n=G4(n,t.type,t.pendingProps,Yt),n!==null?(t.stateNode=n,ft=t,Ye=Qt(n.firstChild),Yt=!1,a=!0):a=!1),a||Dl(t)),ge(t),a=t.type,c=t.pendingProps,s=e!==null?e.memoizedProps:null,n=c.children,e1(a,c)?n=null:s!==null&&e1(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Pu(e,t,n4,null,null,l),ri._currentValue=a),uc(e,t),ht(e,t,n,l),t.child;case 6:return e===null&&Me&&((e=l=Ye)&&(l=Y4(l,t.pendingProps,Yt),l!==null?(t.stateNode=l,ft=t,Ye=null,e=!0):e=!1),e||Dl(t)),null;case 13:return ar(e,t,l);case 4:return ue(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=vn(t,null,n,l):ht(e,t,n,l),t.child;case 11:return $o(e,t,t.type,t.pendingProps,l);case 7:return ht(e,t,t.pendingProps,l),t.child;case 8:return ht(e,t,t.pendingProps.children,l),t.child;case 12:return ht(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,Rl(t,t.type,n.value),ht(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,hn(t),a=dt(a),n=n(a),t.flags|=1,ht(e,t,n,l),t.child;case 14:return Fo(e,t,t.type,t.pendingProps,l);case 15:return Wo(e,t,t.type,t.pendingProps,l);case 19:return cr(e,t,l);case 31:return f4(e,t,l);case 22:return Io(e,t,l,t.pendingProps);case 24:return hn(t),n=dt(Pe),e===null?(a=Yu(),a===null&&(a=Ge,c=Vu(),a.pooledCache=c,c.refCount++,c!==null&&(a.pooledCacheLanes|=l),a=c),t.memoizedState={parent:n,cache:a},Qu(t),Rl(t,Pe,a)):((e.lanes&l)!==0&&(Zu(e,t),Xa(t,null,null,l),Ya()),a=e.memoizedState,c=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Rl(t,Pe,n)):(n=c.cache,Rl(t,Pe,n),n!==a.cache&&ku(t,[Pe],l,!0))),ht(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function gl(e){e.flags|=4}function Ts(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Rr())e.flags|=8192;else throw pn=Zi,Xu}else e.flags&=-16777217}function sr(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zf(t))if(Rr())e.flags|=8192;else throw pn=Zi,Xu}function oc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ei():536870912,e.lanes|=t,oa|=t)}function Fa(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function h4(e,t,l){var n=t.pendingProps;switch(Lu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ml(Pe),ee(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Fn(t)?gl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uu())),Xe(t),null;case 26:var a=t.type,c=t.memoizedState;return e===null?(gl(t),c!==null?(Xe(t),sr(t,c)):(Xe(t),Ts(t,a,null,n,l))):c?c!==e.memoizedState?(gl(t),Xe(t),sr(t,c)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&gl(t),Xe(t),Ts(t,a,e,n,l)),null;case 27:if(Qe(t),l=M.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&gl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Xe(t),null}e=X.current,Fn(t)?k0(t):(e=pf(a,n,l),t.stateNode=e,gl(t))}return Xe(t),null;case 5:if(Qe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&gl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Xe(t),null}if(c=X.current,Fn(t))k0(t);else{var s=zc(M.current);switch(c){case 1:c=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:c=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":c=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":c=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":c=s.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof n.is=="string"?s.createElement("select",{is:n.is}):s.createElement("select"),n.multiple?c.multiple=!0:n.size&&(c.size=n.size);break;default:c=typeof n.is=="string"?s.createElement(a,{is:n.is}):s.createElement(a)}}c[it]=t,c[jt]=n;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)c.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=c;e:switch(mt(c,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&gl(t)}}return Xe(t),Ts(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&gl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(r(166));if(e=M.current,Fn(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=ft,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[it]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||af(e.nodeValue,l)),e||Dl(t,!0)}else e=zc(e).createTextNode(n),e[it]=t,t.stateNode=e}return Xe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=Fn(t),l!==null){if(e===null){if(!n)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[it]=t}else fn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else l=Uu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Xe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Fn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(r(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));a[it]=t}else fn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),a=!1}else a=Uu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),oc(t,t.updateQueue),Xe(t),null);case 4:return ee(),e===null&&$s(t.stateNode.containerInfo),Xe(t),null;case 10:return ml(t.type),Xe(t),null;case 19:if(O(We),n=t.memoizedState,n===null)return Xe(t),null;if(a=(t.flags&128)!==0,c=n.rendering,c===null)if(a)Fa(n,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Fi(e),c!==null){for(t.flags|=128,Fa(n,!1),e=c.updateQueue,t.updateQueue=e,oc(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)L0(l,e),l=l.sibling;return U(We,We.current&1|2),Me&&dl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ot()>mc&&(t.flags|=128,a=!0,Fa(n,!1),t.lanes=4194304)}else{if(!a)if(e=Fi(c),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,oc(t,e),Fa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!c.alternate&&!Me)return Xe(t),null}else 2*ot()-n.renderingStartTime>mc&&l!==536870912&&(t.flags|=128,a=!0,Fa(n,!1),t.lanes=4194304);n.isBackwards?(c.sibling=t.child,t.child=c):(e=n.last,e!==null?e.sibling=c:t.child=c,n.last=c)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ot(),e.sibling=null,l=We.current,U(We,a?l&1|2:l&1),Me&&dl(t,n.treeForkCount),e):(Xe(t),null);case 22:case 23:return Dt(t),Fu(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),l=t.updateQueue,l!==null&&oc(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&O(mn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ml(Pe),Xe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function m4(e,t){switch(Lu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ml(Pe),ee(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qe(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(r(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(We),null;case 4:return ee(),null;case 10:return ml(t.type),null;case 22:case 23:return Dt(t),Fu(),e!==null&&O(mn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ml(Pe),null;case 25:return null;default:return null}}function or(e,t){switch(Lu(t),t.tag){case 3:ml(Pe),ee();break;case 26:case 27:case 5:Qe(t);break;case 4:ee();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:O(We);break;case 10:ml(t.type);break;case 22:case 23:Dt(t),Fu(),e!==null&&O(mn);break;case 24:ml(Pe)}}function Wa(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var c=l.create,s=l.inst;n=c(),s.destroy=n}l=l.next}while(l!==a)}}catch(d){Ue(t,t.return,d)}}function kl(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var c=a.next;n=c;do{if((n.tag&e)===e){var s=n.inst,d=s.destroy;if(d!==void 0){s.destroy=void 0,a=t;var m=l,j=d;try{j()}catch(C){Ue(a,m,C)}}}n=n.next}while(n!==c)}}catch(C){Ue(t,t.return,C)}}function rr(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{P0(t,l)}catch(n){Ue(e,e.return,n)}}}function fr(e,t,l){l.props=bn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Ue(e,t,n)}}function Ia(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){Ue(e,t,a)}}function nl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Ue(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Ue(e,t,a)}else l.current=null}function dr(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Ue(e,e.return,a)}}function Ms(e,t,l){try{var n=e.stateNode;H4(n,e.type,l,t),n[jt]=t}catch(a){Ue(e,e.return,a)}}function hr(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kl(e.type)||e.tag===4}function As(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hr(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&&Kl(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 Cs(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=ol));else if(n!==4&&(n===27&&Kl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Cs(e,t,l),e=e.sibling;e!==null;)Cs(e,t,l),e=e.sibling}function rc(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&Kl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(rc(e,t,l),e=e.sibling;e!==null;)rc(e,t,l),e=e.sibling}function mr(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);mt(t,n,l),t[it]=e,t[jt]=l}catch(c){Ue(e,e.return,c)}}var bl=!1,lt=!1,_s=!1,yr=typeof WeakSet=="function"?WeakSet:Set,st=null;function y4(e,t){if(e=e.containerInfo,Is=_c,e=w0(e),zu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,c=n.focusNode;n=n.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var s=0,d=-1,m=-1,j=0,C=0,R=e,E=null;t:for(;;){for(var N;R!==l||a!==0&&R.nodeType!==3||(d=s+a),R!==c||n!==0&&R.nodeType!==3||(m=s+n),R.nodeType===3&&(s+=R.nodeValue.length),(N=R.firstChild)!==null;)E=R,R=N;for(;;){if(R===e)break t;if(E===l&&++j===a&&(d=s),E===c&&++C===n&&(m=s),(N=R.nextSibling)!==null)break;R=E,E=R.parentNode}R=N}l=d===-1||m===-1?null:{start:d,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ps={focusedElem:e,selectionRange:l},_c=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=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(l=0;l<e.length;l++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,a=c.memoizedProps,c=c.memoizedState,n=l.stateNode;try{var J=bn(l.type,a);e=n.getSnapshotBeforeUpdate(J,c),n.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ue(l,l.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)l1(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":l1(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,st=e;break}st=t.return}}function pr(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:xl(e,l),n&4&&Wa(5,l);break;case 1:if(xl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){Ue(l,l.return,s)}else{var a=bn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Ue(l,l.return,s)}}n&64&&rr(l),n&512&&Ia(l,l.return);break;case 3:if(xl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{P0(e,t)}catch(s){Ue(l,l.return,s)}}break;case 27:t===null&&n&4&&mr(l);case 26:case 5:xl(e,l),t===null&&n&4&&dr(l),n&512&&Ia(l,l.return);break;case 12:xl(e,l);break;case 31:xl(e,l),n&4&&br(e,l);break;case 13:xl(e,l),n&4&&Sr(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=z4.bind(null,l),X4(e,l))));break;case 22:if(n=l.memoizedState!==null||bl,!n){t=t!==null&&t.memoizedState!==null||lt,a=bl;var c=lt;bl=n,(lt=t)&&!c?jl(e,l,(l.subtreeFlags&8772)!==0):xl(e,l),bl=a,lt=c}break;case 30:break;default:xl(e,l)}}function vr(e){var t=e.alternate;t!==null&&(e.alternate=null,vr(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&uu(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 Ze=null,zt=!1;function Sl(e,t,l){for(l=l.child;l!==null;)gr(e,t,l),l=l.sibling}function gr(e,t,l){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Ml,l)}catch{}switch(l.tag){case 26:lt||nl(l,t),Sl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||nl(l,t);var n=Ze,a=zt;Kl(l.type)&&(Ze=l.stateNode,zt=!1),Sl(e,t,l),ui(l.stateNode),Ze=n,zt=a;break;case 5:lt||nl(l,t);case 6:if(n=Ze,a=zt,Ze=null,Sl(e,t,l),Ze=n,zt=a,Ze!==null)if(zt)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(l.stateNode)}catch(c){Ue(l,t,c)}else try{Ze.removeChild(l.stateNode)}catch(c){Ue(l,t,c)}break;case 18:Ze!==null&&(zt?(e=Ze,ff(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),va(e)):ff(Ze,l.stateNode));break;case 4:n=Ze,a=zt,Ze=l.stateNode.containerInfo,zt=!0,Sl(e,t,l),Ze=n,zt=a;break;case 0:case 11:case 14:case 15:kl(2,l,t),lt||kl(4,l,t),Sl(e,t,l);break;case 1:lt||(nl(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&fr(l,t,n)),Sl(e,t,l);break;case 21:Sl(e,t,l);break;case 22:lt=(n=lt)||l.memoizedState!==null,Sl(e,t,l),lt=n;break;default:Sl(e,t,l)}}function br(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{va(e)}catch(l){Ue(t,t.return,l)}}}function Sr(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{va(e)}catch(l){Ue(t,t.return,l)}}function p4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yr),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yr),t;default:throw Error(r(435,e.tag))}}function fc(e,t){var l=p4(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=N4.bind(null,e,n);n.then(a,a)}})}function Nt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],c=e,s=t,d=s;e:for(;d!==null;){switch(d.tag){case 27:if(Kl(d.type)){Ze=d.stateNode,zt=!1;break e}break;case 5:Ze=d.stateNode,zt=!1;break e;case 3:case 4:Ze=d.stateNode.containerInfo,zt=!0;break e}d=d.return}if(Ze===null)throw Error(r(160));gr(c,s,a),Ze=null,zt=!1,c=a.alternate,c!==null&&(c.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xr(t,e),t=t.sibling}var Wt=null;function xr(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nt(t,e),wt(e),n&4&&(kl(3,e,e.return),Wa(3,e),kl(5,e,e.return));break;case 1:Nt(t,e),wt(e),n&512&&(lt||l===null||nl(l,l.return)),n&64&&bl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Wt;if(Nt(t,e),wt(e),n&512&&(lt||l===null||nl(l,l.return)),n&4){var c=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":c=a.getElementsByTagName("title")[0],(!c||c[Na]||c[it]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=a.createElement(n),a.head.insertBefore(c,a.querySelector("head > title"))),mt(c,n,l),c[it]=e,ut(c),n=c;break e;case"link":var s=jf("link","href",a).get(n+(l.href||""));if(s){for(var d=0;d<s.length;d++)if(c=s[d],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(d,1);break t}}c=a.createElement(n),mt(c,n,l),a.head.appendChild(c);break;case"meta":if(s=jf("meta","content",a).get(n+(l.content||""))){for(d=0;d<s.length;d++)if(c=s[d],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(d,1);break t}}c=a.createElement(n),mt(c,n,l),a.head.appendChild(c);break;default:throw Error(r(468,n))}c[it]=e,ut(c),n=c}e.stateNode=n}else Ef(a,e.type,e.stateNode);else e.stateNode=xf(a,n,e.memoizedProps);else c!==n?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,n===null?Ef(a,e.type,e.stateNode):xf(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Ms(e,e.memoizedProps,l.memoizedProps)}break;case 27:Nt(t,e),wt(e),n&512&&(lt||l===null||nl(l,l.return)),l!==null&&n&4&&Ms(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Nt(t,e),wt(e),n&512&&(lt||l===null||nl(l,l.return)),e.flags&32){a=e.stateNode;try{kn(a,"")}catch(J){Ue(e,e.return,J)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Ms(e,a,l!==null?l.memoizedProps:a)),n&1024&&(_s=!0);break;case 6:if(Nt(t,e),wt(e),n&4){if(e.stateNode===null)throw Error(r(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(J){Ue(e,e.return,J)}}break;case 3:if(Tc=null,a=Wt,Wt=Nc(t.containerInfo),Nt(t,e),Wt=a,wt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{va(t.containerInfo)}catch(J){Ue(e,e.return,J)}_s&&(_s=!1,jr(e));break;case 4:n=Wt,Wt=Nc(e.stateNode.containerInfo),Nt(t,e),wt(e),Wt=n;break;case 12:Nt(t,e),wt(e);break;case 31:Nt(t,e),wt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 13:Nt(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(hc=ot()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 22:a=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,j=bl,C=lt;if(bl=j||a,lt=C||m,Nt(t,e),lt=C,bl=j,wt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||m||bl||lt||Sn(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(c=m.stateNode,a)s=c.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{d=m.stateNode;var R=m.memoizedProps.style,E=R!=null&&R.hasOwnProperty("display")?R.display:null;d.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(J){Ue(m,m.return,J)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(J){Ue(m,m.return,J)}}}else if(t.tag===18){if(l===null){m=t;try{var N=m.stateNode;a?df(N,!0):df(m.stateNode,!1)}catch(J){Ue(m,m.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,fc(e,l))));break;case 19:Nt(t,e),wt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 30:break;case 21:break;default:Nt(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(hr(n)){l=n;break}n=n.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var a=l.stateNode,c=As(e);rc(e,c,a);break;case 5:var s=l.stateNode;l.flags&32&&(kn(s,""),l.flags&=-33);var d=As(e);rc(e,d,s);break;case 3:case 4:var m=l.stateNode.containerInfo,j=As(e);Cs(e,j,m);break;default:throw Error(r(161))}}catch(C){Ue(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jr(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jr(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pr(e,t.alternate,t),t=t.sibling}function Sn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:kl(4,t,t.return),Sn(t);break;case 1:nl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&fr(t,t.return,l),Sn(t);break;case 27:ui(t.stateNode);case 26:case 5:nl(t,t.return),Sn(t);break;case 22:t.memoizedState===null&&Sn(t);break;case 30:Sn(t);break;default:Sn(t)}e=e.sibling}}function jl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,c=t,s=c.flags;switch(c.tag){case 0:case 11:case 15:jl(a,c,l),Wa(4,c);break;case 1:if(jl(a,c,l),n=c,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(j){Ue(n,n.return,j)}if(n=c,a=n.updateQueue,a!==null){var d=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)I0(m[a],d)}catch(j){Ue(n,n.return,j)}}l&&s&64&&rr(c),Ia(c,c.return);break;case 27:mr(c);case 26:case 5:jl(a,c,l),l&&n===null&&s&4&&dr(c),Ia(c,c.return);break;case 12:jl(a,c,l);break;case 31:jl(a,c,l),l&&s&4&&br(a,c);break;case 13:jl(a,c,l),l&&s&4&&Sr(a,c);break;case 22:c.memoizedState===null&&jl(a,c,l),Ia(c,c.return);break;case 30:break;default:jl(a,c,l)}t=t.sibling}}function Os(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ba(l))}function Ds(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ba(e))}function It(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Er(e,t,l,n),t=t.sibling}function Er(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:It(e,t,l,n),a&2048&&Wa(9,t);break;case 1:It(e,t,l,n);break;case 3:It(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ba(e)));break;case 12:if(a&2048){It(e,t,l,n),e=t.stateNode;try{var c=t.memoizedProps,s=c.id,d=c.onPostCommit;typeof d=="function"&&d(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Ue(t,t.return,m)}}else It(e,t,l,n);break;case 31:It(e,t,l,n);break;case 13:It(e,t,l,n);break;case 23:break;case 22:c=t.stateNode,s=t.alternate,t.memoizedState!==null?c._visibility&2?It(e,t,l,n):Pa(e,t):c._visibility&2?It(e,t,l,n):(c._visibility|=2,ca(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Os(s,t);break;case 24:It(e,t,l,n),a&2048&&Ds(t.alternate,t);break;default:It(e,t,l,n)}}function ca(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,s=t,d=l,m=n,j=s.flags;switch(s.tag){case 0:case 11:case 15:ca(c,s,d,m,a),Wa(8,s);break;case 23:break;case 22:var C=s.stateNode;s.memoizedState!==null?C._visibility&2?ca(c,s,d,m,a):Pa(c,s):(C._visibility|=2,ca(c,s,d,m,a)),a&&j&2048&&Os(s.alternate,s);break;case 24:ca(c,s,d,m,a),a&&j&2048&&Ds(s.alternate,s);break;default:ca(c,s,d,m,a)}t=t.sibling}}function Pa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:Pa(l,n),a&2048&&Os(n.alternate,n);break;case 24:Pa(l,n),a&2048&&Ds(n.alternate,n);break;default:Pa(l,n)}t=t.sibling}}var ei=8192;function ua(e,t,l){if(e.subtreeFlags&ei)for(e=e.child;e!==null;)zr(e,t,l),e=e.sibling}function zr(e,t,l){switch(e.tag){case 26:ua(e,t,l),e.flags&ei&&e.memoizedState!==null&&l3(l,Wt,e.memoizedState,e.memoizedProps);break;case 5:ua(e,t,l);break;case 3:case 4:var n=Wt;Wt=Nc(e.stateNode.containerInfo),ua(e,t,l),Wt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ei,ei=16777216,ua(e,t,l),ei=n):ua(e,t,l));break;default:ua(e,t,l)}}function Nr(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 ti(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];st=n,Tr(n,e)}Nr(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wr(e),e=e.sibling}function wr(e){switch(e.tag){case 0:case 11:case 15:ti(e),e.flags&2048&&kl(9,e,e.return);break;case 3:ti(e);break;case 12:ti(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,dc(e)):ti(e);break;default:ti(e)}}function dc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];st=n,Tr(n,e)}Nr(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:kl(8,t,t.return),dc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function Tr(e,t){for(;st!==null;){var l=st;switch(l.tag){case 0:case 11:case 15:kl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Ba(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,st=n;else e:for(l=e;st!==null;){n=st;var a=n.sibling,c=n.return;if(vr(n),n===l){st=null;break e}if(a!==null){a.return=c,st=a;break e}st=c}}}var v4={getCacheForType:function(e){var t=dt(Pe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return dt(Pe).controller.signal}},g4=typeof WeakMap=="function"?WeakMap:Map,Re=0,Ge=null,je=null,Ne=0,He=0,Rt=null,Vl=!1,sa=!1,Rs=!1,El=0,$e=0,Gl=0,xn=0,Ls=0,Lt=0,oa=0,li=null,Tt=null,Hs=!1,hc=0,Mr=0,mc=1/0,yc=null,Yl=null,ct=0,Xl=null,ra=null,zl=0,Us=0,Bs=null,Ar=null,ni=0,qs=null;function Ht(){return(Re&2)!==0&&Ne!==0?Ne&-Ne:z.T!==null?Qs():rt()}function Cr(){if(Lt===0)if((Ne&536870912)===0||Me){var e=_n;_n<<=1,(_n&3932160)===0&&(_n=262144),Lt=e}else Lt=536870912;return e=Ot.current,e!==null&&(e.flags|=32),Lt}function Mt(e,t,l){(e===Ge&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(fa(e,0),Ql(e,Ne,Lt,!1)),Al(e,l),((Re&2)===0||e!==Ge)&&(e===Ge&&((Re&2)===0&&(xn|=l),$e===4&&Ql(e,Ne,Lt,!1)),al(e))}function _r(e,t,l){if((Re&6)!==0)throw Error(r(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||nn(e,t),a=n?x4(e,t):Vs(e,t,!0),c=n;do{if(a===0){sa&&!n&&Ql(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!b4(l)){a=Vs(e,t,!1),c=!1;continue}if(a===2){if(c=t,e.errorRecoveryDisabledLanes&c)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var d=e;a=li;var m=d.current.memoizedState.isDehydrated;if(m&&(fa(d,s).flags|=256),s=Vs(d,s,!1),s!==2){if(Rs&&!m){d.errorRecoveryDisabledLanes|=c,xn|=c,a=4;break e}c=Tt,Tt=a,c!==null&&(Tt===null?Tt=c:Tt.push.apply(Tt,c))}a=s}if(c=!1,a!==2)continue}}if(a===1){fa(e,0),Ql(e,t,0,!0);break}e:{switch(n=e,c=a,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ql(n,t,Lt,!Vl);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(a=hc+300-ot(),10<a)){if(Ql(n,t,Lt,!Vl),Dn(n,0,!0)!==0)break e;zl=t,n.timeoutHandle=of(Or.bind(null,n,l,Tt,yc,Hs,t,Lt,xn,oa,Vl,c,"Throttled",-0,0),a);break e}Or(n,l,Tt,yc,Hs,t,Lt,xn,oa,Vl,c,null,-0,0)}}break}while(!0);al(e)}function Or(e,t,l,n,a,c,s,d,m,j,C,R,E,N){if(e.timeoutHandle=-1,R=t.subtreeFlags,R&8192||(R&16785408)===16785408){R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ol},zr(t,c,R);var J=(c&62914560)===c?hc-ot():(c&4194048)===c?Mr-ot():0;if(J=n3(R,J),J!==null){zl=c,e.cancelPendingCommit=J(kr.bind(null,e,t,c,l,n,a,s,d,m,C,R,null,E,N)),Ql(e,c,s,!j);return}}kr(e,t,c,l,n,a,s,d,m)}function b4(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],c=a.getSnapshot;a=a.value;try{if(!Ct(c(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ql(e,t,l,n){t&=~Ls,t&=~xn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var c=31-St(a),s=1<<c;n[c]=-1,a&=~s}l!==0&&zi(e,l,t)}function pc(){return(Re&6)===0?(ai(0),!1):!0}function ks(){if(je!==null){if(He===0)var e=je.return;else e=je,hl=dn=null,ls(e),ta=null,ka=0,e=je;for(;e!==null;)or(e.alternate,e),e=e.return;je=null}}function fa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,q4(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),zl=0,ks(),Ge=e,je=l=fl(e.current,null),Ne=t,He=0,Rt=null,Vl=!1,sa=nn(e,t),Rs=!1,oa=Lt=Ls=xn=Gl=$e=0,Tt=li=null,Hs=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-St(n),c=1<<a;t|=e[a],n&=~c}return El=t,Ui(),l}function Dr(e,t){me=null,z.H=Ja,t===ea||t===Qi?(t=J0(),He=3):t===Xu?(t=J0(),He=4):He=t===gs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rt=t,je===null&&($e=1,ic(e,kt(t,e.current)))}function Rr(){var e=Ot.current;return e===null?!0:(Ne&4194048)===Ne?Xt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===Xt:!1}function Lr(){var e=z.H;return z.H=Ja,e===null?Ja:e}function Hr(){var e=z.A;return z.A=v4,e}function vc(){$e=4,Vl||(Ne&4194048)!==Ne&&Ot.current!==null||(sa=!0),(Gl&134217727)===0&&(xn&134217727)===0||Ge===null||Ql(Ge,Ne,Lt,!1)}function Vs(e,t,l){var n=Re;Re|=2;var a=Lr(),c=Hr();(Ge!==e||Ne!==t)&&(yc=null,fa(e,t)),t=!1;var s=$e;e:do try{if(He!==0&&je!==null){var d=je,m=Rt;switch(He){case 8:ks(),s=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var j=He;if(He=0,Rt=null,da(e,d,m,j),l&&sa){s=0;break e}break;default:j=He,He=0,Rt=null,da(e,d,m,j)}}S4(),s=$e;break}catch(C){Dr(e,C)}while(!0);return t&&e.shellSuspendCounter++,hl=dn=null,Re=n,z.H=a,z.A=c,je===null&&(Ge=null,Ne=0,Ui()),s}function S4(){for(;je!==null;)Ur(je)}function x4(e,t){var l=Re;Re|=2;var n=Lr(),a=Hr();Ge!==e||Ne!==t?(yc=null,mc=ot()+500,fa(e,t)):sa=nn(e,t);e:do try{if(He!==0&&je!==null){t=je;var c=Rt;t:switch(He){case 1:He=0,Rt=null,da(e,t,c,1);break;case 2:case 9:if(Z0(c)){He=0,Rt=null,Br(t);break}t=function(){He!==2&&He!==9||Ge!==e||(He=7),al(e)},c.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Z0(c)?(He=0,Rt=null,Br(t)):(He=0,Rt=null,da(e,t,c,7));break;case 5:var s=null;switch(je.tag){case 26:s=je.memoizedState;case 5:case 27:var d=je;if(s?zf(s):d.stateNode.complete){He=0,Rt=null;var m=d.sibling;if(m!==null)je=m;else{var j=d.return;j!==null?(je=j,gc(j)):je=null}break t}}He=0,Rt=null,da(e,t,c,5);break;case 6:He=0,Rt=null,da(e,t,c,6);break;case 8:ks(),$e=6;break e;default:throw Error(r(462))}}j4();break}catch(C){Dr(e,C)}while(!0);return hl=dn=null,z.H=n,z.A=a,Re=l,je!==null?0:(Ge=null,Ne=0,Ui(),$e)}function j4(){for(;je!==null&&!An();)Ur(je)}function Ur(e){var t=ur(e.alternate,e,El);e.memoizedProps=e.pendingProps,t===null?gc(e):je=t}function Br(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=tr(l,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=tr(l,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:ls(t);default:or(l,t),t=je=L0(t,El),t=ur(l,t,El)}e.memoizedProps=e.pendingProps,t===null?gc(e):je=t}function da(e,t,l,n){hl=dn=null,ls(t),ta=null,ka=0;var a=t.return;try{if(r4(e,a,t,l,Ne)){$e=1,ic(e,kt(l,e.current)),je=null;return}}catch(c){if(a!==null)throw je=a,c;$e=1,ic(e,kt(l,e.current)),je=null;return}t.flags&32768?(Me||n===1?e=!0:sa||(Ne&536870912)!==0?e=!1:(Vl=e=!0,(n===2||n===9||n===3||n===6)&&(n=Ot.current,n!==null&&n.tag===13&&(n.flags|=16384))),qr(t,e)):gc(t)}function gc(e){var t=e;do{if((t.flags&32768)!==0){qr(t,Vl);return}e=t.return;var l=h4(t.alternate,t,El);if(l!==null){je=l;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);$e===0&&($e=5)}function qr(e,t){do{var l=m4(e.alternate,e);if(l!==null){l.flags&=32767,je=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=l}while(e!==null);$e=6,je=null}function kr(e,t,l,n,a,c,s,d,m){e.cancelPendingCommit=null;do bc();while(ct!==0);if((Re&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Au,iu(e,l,c,s,d,m),e===Ge&&(je=Ge=null,Ne=0),ra=t,Xl=e,zl=l,Us=c,Bs=a,Ar=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,w4(Tl,function(){return Qr(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null,a=q.p,q.p=2,s=Re,Re|=4;try{y4(e,t,l)}finally{Re=s,q.p=a,z.T=n}}ct=1,Vr(),Gr(),Yr()}}function Vr(){if(ct===1){ct=0;var e=Xl,t=ra,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var n=q.p;q.p=2;var a=Re;Re|=4;try{xr(t,e);var c=Ps,s=w0(e.containerInfo),d=c.focusedElem,m=c.selectionRange;if(s!==d&&d&&d.ownerDocument&&N0(d.ownerDocument.documentElement,d)){if(m!==null&&zu(d)){var j=m.start,C=m.end;if(C===void 0&&(C=j),"selectionStart"in d)d.selectionStart=j,d.selectionEnd=Math.min(C,d.value.length);else{var R=d.ownerDocument||document,E=R&&R.defaultView||window;if(E.getSelection){var N=E.getSelection(),J=d.textContent.length,ie=Math.min(m.start,J),Ve=m.end===void 0?ie:Math.min(m.end,J);!N.extend&&ie>Ve&&(s=Ve,Ve=ie,ie=s);var b=z0(d,ie),v=z0(d,Ve);if(b&&v&&(N.rangeCount!==1||N.anchorNode!==b.node||N.anchorOffset!==b.offset||N.focusNode!==v.node||N.focusOffset!==v.offset)){var S=R.createRange();S.setStart(b.node,b.offset),N.removeAllRanges(),ie>Ve?(N.addRange(S),N.extend(v.node,v.offset)):(S.setEnd(v.node,v.offset),N.addRange(S))}}}}for(R=[],N=d;N=N.parentNode;)N.nodeType===1&&R.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<R.length;d++){var D=R[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}_c=!!Is,Ps=Is=null}finally{Re=a,q.p=n,z.T=l}}e.current=t,ct=2}}function Gr(){if(ct===2){ct=0;var e=Xl,t=ra,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var n=q.p;q.p=2;var a=Re;Re|=4;try{pr(e,t.alternate,t)}finally{Re=a,q.p=n,z.T=l}}ct=3}}function Yr(){if(ct===4||ct===3){ct=0,xa();var e=Xl,t=ra,l=zl,n=Ar;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,ra=Xl=null,Xr(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Yl=null),xe(l),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Ml,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=z.T,a=q.p,q.p=2,z.T=null;try{for(var c=e.onRecoverableError,s=0;s<n.length;s++){var d=n[s];c(d.value,{componentStack:d.stack})}}finally{z.T=t,q.p=a}}(zl&3)!==0&&bc(),al(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===qs?ni++:(ni=0,qs=e):ni=0,ai(0)}}function Xr(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ba(t)))}function bc(){return Vr(),Gr(),Yr(),Qr()}function Qr(){if(ct!==5)return!1;var e=Xl,t=Us;Us=0;var l=xe(zl),n=z.T,a=q.p;try{q.p=32>l?32:l,z.T=null,l=Bs,Bs=null;var c=Xl,s=zl;if(ct=0,ra=Xl=null,zl=0,(Re&6)!==0)throw Error(r(331));var d=Re;if(Re|=4,wr(c.current),Er(c,c.current,s,l),Re=d,ai(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Ml,c)}catch{}return!0}finally{q.p=a,z.T=n,Xr(e,t)}}function Zr(e,t,l){t=kt(l,t),t=vs(e.stateNode,t,2),e=Ul(e,t,2),e!==null&&(Al(e,2),al(e))}function Ue(e,t,l){if(e.tag===3)Zr(e,e,l);else for(;t!==null;){if(t.tag===3){Zr(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Yl===null||!Yl.has(n))){e=kt(l,e),l=Ko(2),n=Ul(t,l,2),n!==null&&(Jo(l,n,t,e),Al(n,2),al(n));break}}t=t.return}}function Gs(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new g4;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(Rs=!0,a.add(l),e=E4.bind(null,e,t,l),t.then(e,e))}function E4(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ge===e&&(Ne&l)===l&&($e===4||$e===3&&(Ne&62914560)===Ne&&300>ot()-hc?(Re&2)===0&&fa(e,0):Ls|=l,oa===Ne&&(oa=0)),al(e)}function Kr(e,t){t===0&&(t=Ei()),e=on(e,t),e!==null&&(Al(e,t),al(e))}function z4(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Kr(e,l)}function N4(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(t),Kr(e,l)}function w4(e,t){return wl(e,t)}var Sc=null,ha=null,Ys=!1,xc=!1,Xs=!1,Zl=0;function al(e){e!==ha&&e.next===null&&(ha===null?Sc=ha=e:ha=ha.next=e),xc=!0,Ys||(Ys=!0,M4())}function ai(e,t){if(!Xs&&xc){Xs=!0;do for(var l=!1,n=Sc;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var c=0;else{var s=n.suspendedLanes,d=n.pingedLanes;c=(1<<31-St(42|e)+1)-1,c&=a&~(s&~d),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Wr(n,c))}else c=Ne,c=Dn(n,n===Ge?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(c&3)===0||nn(n,c)||(l=!0,Wr(n,c));n=n.next}while(l);Xs=!1}}function T4(){Jr()}function Jr(){xc=Ys=!1;var e=0;Zl!==0&&B4()&&(e=Zl);for(var t=ot(),l=null,n=Sc;n!==null;){var a=n.next,c=$r(n,t);c===0?(n.next=null,l===null?Sc=a:l.next=a,a===null&&(ha=l)):(l=n,(e!==0||(c&3)!==0)&&(xc=!0)),n=a}ct!==0&&ct!==5||ai(e),Zl!==0&&(Zl=0)}function $r(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var s=31-St(c),d=1<<s,m=a[s];m===-1?((d&l)===0||(d&n)!==0)&&(a[s]=au(d,t)):m<=t&&(e.expiredLanes|=d),c&=~d}if(t=Ge,l=Ne,l=Dn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Mn(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||nn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&Mn(n),xe(l)){case 2:case 8:l=ji;break;case 32:l=Tl;break;case 268435456:l=ja;break;default:l=Tl}return n=Fr.bind(null,e),l=wl(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&Mn(n),e.callbackPriority=2,e.callbackNode=null,2}function Fr(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(bc()&&e.callbackNode!==l)return null;var n=Ne;return n=Dn(e,e===Ge?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(_r(e,n,t),$r(e,ot()),e.callbackNode!=null&&e.callbackNode===l?Fr.bind(null,e):null)}function Wr(e,t){if(bc())return null;_r(e,t,!0)}function M4(){k4(function(){(Re&6)!==0?wl(xi,T4):Jr()})}function Qs(){if(Zl===0){var e=In;e===0&&(e=Cn,Cn<<=1,(Cn&261888)===0&&(Cn=256)),Zl=e}return Zl}function Ir(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ai(""+e)}function Pr(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function A4(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var c=Ir((a[jt]||null).action),s=n.submitter;s&&(t=(t=s[jt]||null)?Ir(t.formAction):s.getAttribute("formAction"),t!==null&&(c=t,s=null));var d=new Di("action","action",null,n,a);e.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Zl!==0){var m=s?Pr(a,s):new FormData(a);fs(l,{pending:!0,data:m,method:a.method,action:c},null,m)}}else typeof c=="function"&&(d.preventDefault(),m=s?Pr(a,s):new FormData(a),fs(l,{pending:!0,data:m,method:a.method,action:c},c,m))},currentTarget:a}]})}}for(var Zs=0;Zs<Mu.length;Zs++){var Ks=Mu[Zs],C4=Ks.toLowerCase(),_4=Ks[0].toUpperCase()+Ks.slice(1);Ft(C4,"on"+_4)}Ft(A0,"onAnimationEnd"),Ft(C0,"onAnimationIteration"),Ft(_0,"onAnimationStart"),Ft("dblclick","onDoubleClick"),Ft("focusin","onFocus"),Ft("focusout","onBlur"),Ft(Kd,"onTransitionRun"),Ft(Jd,"onTransitionStart"),Ft($d,"onTransitionCancel"),Ft(O0,"onTransitionEnd"),Bn("onMouseEnter",["mouseout","mouseover"]),Bn("onMouseLeave",["mouseout","mouseover"]),Bn("onPointerEnter",["pointerout","pointerover"]),Bn("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 ii="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(" "),O4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ii));function ef(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var c=void 0;if(t)for(var s=n.length-1;0<=s;s--){var d=n[s],m=d.instance,j=d.currentTarget;if(d=d.listener,m!==c&&a.isPropagationStopped())break e;c=d,a.currentTarget=j;try{c(a)}catch(C){Hi(C)}a.currentTarget=null,c=m}else for(s=0;s<n.length;s++){if(d=n[s],m=d.instance,j=d.currentTarget,d=d.listener,m!==c&&a.isPropagationStopped())break e;c=d,a.currentTarget=j;try{c(a)}catch(C){Hi(C)}a.currentTarget=null,c=m}}}}function Ee(e,t){var l=t[cu];l===void 0&&(l=t[cu]=new Set);var n=e+"__bubble";l.has(n)||(tf(t,e,2,!1),l.add(n))}function Js(e,t,l){var n=0;t&&(n|=4),tf(l,e,n,t)}var jc="_reactListening"+Math.random().toString(36).slice(2);function $s(e){if(!e[jc]){e[jc]=!0,K1.forEach(function(l){l!=="selectionchange"&&(O4.has(l)||Js(l,!1,e),Js(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jc]||(t[jc]=!0,Js("selectionchange",!1,t))}}function tf(e,t,l,n){switch(_f(t)){case 2:var a=c3;break;case 8:a=u3;break;default:a=r1}l=a.bind(null,t,l,e),a=void 0,!yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function Fs(e,t,l,n,a){var c=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var d=n.stateNode.containerInfo;if(d===a)break;if(s===4)for(s=n.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;d!==null;){if(s=Ln(d),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){n=c=s;continue e}d=d.parentNode}}n=n.return}i0(function(){var j=c,C=hu(l),R=[];e:{var E=D0.get(e);if(E!==void 0){var N=Di,J=e;switch(e){case"keypress":if(_i(l)===0)break e;case"keydown":case"keyup":N=Nd;break;case"focusin":J="focus",N=bu;break;case"focusout":J="blur",N=bu;break;case"beforeblur":case"afterblur":N=bu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=s0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=hd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=Md;break;case A0:case C0:case _0:N=pd;break;case O0:N=Cd;break;case"scroll":case"scrollend":N=fd;break;case"wheel":N=Od;break;case"copy":case"cut":case"paste":N=gd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=r0;break;case"toggle":case"beforetoggle":N=Rd}var ie=(t&4)!==0,Ve=!ie&&(e==="scroll"||e==="scrollend"),b=ie?E!==null?E+"Capture":null:E;ie=[];for(var v=j,S;v!==null;){var D=v;if(S=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||S===null||b===null||(D=Ta(v,b),D!=null&&ie.push(ci(v,D,S))),Ve)break;v=v.return}0<ie.length&&(E=new N(E,J,null,l,C),R.push({event:E,listeners:ie}))}}if((t&7)===0){e:{if(E=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",E&&l!==du&&(J=l.relatedTarget||l.fromElement)&&(Ln(J)||J[Rn]))break e;if((N||E)&&(E=C.window===C?C:(E=C.ownerDocument)?E.defaultView||E.parentWindow:window,N?(J=l.relatedTarget||l.toElement,N=j,J=J?Ln(J):null,J!==null&&(Ve=g(J),ie=J.tag,J!==Ve||ie!==5&&ie!==27&&ie!==6)&&(J=null)):(N=null,J=j),N!==J)){if(ie=s0,D="onMouseLeave",b="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(ie=r0,D="onPointerLeave",b="onPointerEnter",v="pointer"),Ve=N==null?E:wa(N),S=J==null?E:wa(J),E=new ie(D,v+"leave",N,l,C),E.target=Ve,E.relatedTarget=S,D=null,Ln(C)===j&&(ie=new ie(b,v+"enter",J,l,C),ie.target=S,ie.relatedTarget=Ve,D=ie),Ve=D,N&&J)t:{for(ie=D4,b=N,v=J,S=0,D=b;D;D=ie(D))S++;D=0;for(var le=v;le;le=ie(le))D++;for(;0<S-D;)b=ie(b),S--;for(;0<D-S;)v=ie(v),D--;for(;S--;){if(b===v||v!==null&&b===v.alternate){ie=b;break t}b=ie(b),v=ie(v)}ie=null}else ie=null;N!==null&&lf(R,E,N,ie,!1),J!==null&&Ve!==null&&lf(R,Ve,J,ie,!0)}}e:{if(E=j?wa(j):window,N=E.nodeName&&E.nodeName.toLowerCase(),N==="select"||N==="input"&&E.type==="file")var Oe=g0;else if(p0(E))if(b0)Oe=Xd;else{Oe=Gd;var I=Vd}else N=E.nodeName,!N||N.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?j&&fu(j.elementType)&&(Oe=g0):Oe=Yd;if(Oe&&(Oe=Oe(e,j))){v0(R,Oe,l,C);break e}I&&I(e,E,j),e==="focusout"&&j&&E.type==="number"&&j.memoizedProps.value!=null&&ru(E,"number",E.value)}switch(I=j?wa(j):window,e){case"focusin":(p0(I)||I.contentEditable==="true")&&(Xn=I,Nu=j,La=null);break;case"focusout":La=Nu=Xn=null;break;case"mousedown":wu=!0;break;case"contextmenu":case"mouseup":case"dragend":wu=!1,T0(R,l,C);break;case"selectionchange":if(Zd)break;case"keydown":case"keyup":T0(R,l,C)}var ve;if(xu)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Yn?m0(e,l)&&(we="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(we="onCompositionStart");we&&(f0&&l.locale!=="ko"&&(Yn||we!=="onCompositionStart"?we==="onCompositionEnd"&&Yn&&(ve=c0()):(Cl=C,pu="value"in Cl?Cl.value:Cl.textContent,Yn=!0)),I=Ec(j,we),0<I.length&&(we=new o0(we,e,null,l,C),R.push({event:we,listeners:I}),ve?we.data=ve:(ve=y0(l),ve!==null&&(we.data=ve)))),(ve=Hd?Ud(e,l):Bd(e,l))&&(we=Ec(j,"onBeforeInput"),0<we.length&&(I=new o0("onBeforeInput","beforeinput",null,l,C),R.push({event:I,listeners:we}),I.data=ve)),A4(R,e,j,l,C)}ef(R,t)})}function ci(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ec(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,c=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||c===null||(a=Ta(e,l),a!=null&&n.unshift(ci(e,a,c)),a=Ta(e,t),a!=null&&n.push(ci(e,a,c))),e.tag===3)return n;e=e.return}return[]}function D4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lf(e,t,l,n,a){for(var c=t._reactName,s=[];l!==null&&l!==n;){var d=l,m=d.alternate,j=d.stateNode;if(d=d.tag,m!==null&&m===n)break;d!==5&&d!==26&&d!==27||j===null||(m=j,a?(j=Ta(l,c),j!=null&&s.unshift(ci(l,j,m))):a||(j=Ta(l,c),j!=null&&s.push(ci(l,j,m)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var R4=/\r\n?/g,L4=/\u0000|\uFFFD/g;function nf(e){return(typeof e=="string"?e:""+e).replace(R4,`
49
+ `).replace(L4,"")}function af(e,t){return t=nf(t),nf(e)===t}function ke(e,t,l,n,a,c){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||kn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&kn(e,""+n);break;case"className":Ti(e,"class",n);break;case"tabIndex":Ti(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ti(e,l,n);break;case"style":n0(e,n,c);break;case"data":if(t!=="object"){Ti(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Ai(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="formAction"?(t!=="input"&&ke(e,t,"name",a.name,a,null),ke(e,t,"formEncType",a.formEncType,a,null),ke(e,t,"formMethod",a.formMethod,a,null),ke(e,t,"formTarget",a.formTarget,a,null)):(ke(e,t,"encType",a.encType,a,null),ke(e,t,"method",a.method,a,null),ke(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Ai(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=ol);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=Ai(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),wi(e,"popover",n);break;case"xlinkActuate":sl(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":sl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":sl(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":sl(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":sl(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":sl(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":sl(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":sl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":sl(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":wi(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=od.get(l)||l,wi(e,l,n))}}function Ws(e,t,l,n,a,c){switch(l){case"style":n0(e,n,c);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof n=="string"?kn(e,n):(typeof n=="number"||typeof n=="bigint")&&kn(e,""+n);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ol);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!J1.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),c=e[jt]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,a),typeof n=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):wi(e,l,n)}}}function mt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var n=!1,a=!1,c;for(c in l)if(l.hasOwnProperty(c)){var s=l[c];if(s!=null)switch(c){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ke(e,t,c,s,l,null)}}a&&ke(e,t,"srcSet",l.srcSet,l,null),n&&ke(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var d=c=s=a=null,m=null,j=null;for(n in l)if(l.hasOwnProperty(n)){var C=l[n];if(C!=null)switch(n){case"name":a=C;break;case"type":s=C;break;case"checked":m=C;break;case"defaultChecked":j=C;break;case"value":c=C;break;case"defaultValue":d=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,t));break;default:ke(e,t,n,C,l,null)}}P1(e,c,d,m,j,s,a,!1);return;case"select":Ee("invalid",e),n=s=c=null;for(a in l)if(l.hasOwnProperty(a)&&(d=l[a],d!=null))switch(a){case"value":c=d;break;case"defaultValue":s=d;break;case"multiple":n=d;default:ke(e,t,a,d,l,null)}t=c,l=s,e.multiple=!!n,t!=null?qn(e,!!n,t,!1):l!=null&&qn(e,!!n,l,!0);return;case"textarea":Ee("invalid",e),c=a=n=null;for(s in l)if(l.hasOwnProperty(s)&&(d=l[s],d!=null))switch(s){case"value":n=d;break;case"defaultValue":a=d;break;case"children":c=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:ke(e,t,s,d,l,null)}t0(e,n,a,c);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(n=l[m],n!=null))switch(m){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ke(e,t,m,n,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(n=0;n<ii.length;n++)Ee(ii[n],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in l)if(l.hasOwnProperty(j)&&(n=l[j],n!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ke(e,t,j,n,l,null)}return;default:if(fu(t)){for(C in l)l.hasOwnProperty(C)&&(n=l[C],n!==void 0&&Ws(e,t,C,n,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(n=l[d],n!=null&&ke(e,t,d,n,l,null))}function H4(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,c=null,s=null,d=null,m=null,j=null,C=null;for(N in l){var R=l[N];if(l.hasOwnProperty(N)&&R!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":m=R;default:n.hasOwnProperty(N)||ke(e,t,N,null,n,R)}}for(var E in n){var N=n[E];if(R=l[E],n.hasOwnProperty(E)&&(N!=null||R!=null))switch(E){case"type":c=N;break;case"name":a=N;break;case"checked":j=N;break;case"defaultChecked":C=N;break;case"value":s=N;break;case"defaultValue":d=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,t));break;default:N!==R&&ke(e,t,E,N,n,R)}}ou(e,s,d,m,j,C,c,a);return;case"select":N=s=d=E=null;for(c in l)if(m=l[c],l.hasOwnProperty(c)&&m!=null)switch(c){case"value":break;case"multiple":N=m;default:n.hasOwnProperty(c)||ke(e,t,c,null,n,m)}for(a in n)if(c=n[a],m=l[a],n.hasOwnProperty(a)&&(c!=null||m!=null))switch(a){case"value":E=c;break;case"defaultValue":d=c;break;case"multiple":s=c;default:c!==m&&ke(e,t,a,c,n,m)}t=d,l=s,n=N,E!=null?qn(e,!!l,E,!1):!!n!=!!l&&(t!=null?qn(e,!!l,t,!0):qn(e,!!l,l?[]:"",!1));return;case"textarea":N=E=null;for(d in l)if(a=l[d],l.hasOwnProperty(d)&&a!=null&&!n.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ke(e,t,d,null,n,a)}for(s in n)if(a=n[s],c=l[s],n.hasOwnProperty(s)&&(a!=null||c!=null))switch(s){case"value":E=a;break;case"defaultValue":N=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(r(91));break;default:a!==c&&ke(e,t,s,a,n,c)}e0(e,E,N);return;case"option":for(var J in l)if(E=l[J],l.hasOwnProperty(J)&&E!=null&&!n.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:ke(e,t,J,null,n,E)}for(m in n)if(E=n[m],N=l[m],n.hasOwnProperty(m)&&E!==N&&(E!=null||N!=null))switch(m){case"selected":e.selected=E&&typeof E!="function"&&typeof E!="symbol";break;default:ke(e,t,m,E,n,N)}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 ie in l)E=l[ie],l.hasOwnProperty(ie)&&E!=null&&!n.hasOwnProperty(ie)&&ke(e,t,ie,null,n,E);for(j in n)if(E=n[j],N=l[j],n.hasOwnProperty(j)&&E!==N&&(E!=null||N!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(137,t));break;default:ke(e,t,j,E,n,N)}return;default:if(fu(t)){for(var Ve in l)E=l[Ve],l.hasOwnProperty(Ve)&&E!==void 0&&!n.hasOwnProperty(Ve)&&Ws(e,t,Ve,void 0,n,E);for(C in n)E=n[C],N=l[C],!n.hasOwnProperty(C)||E===N||E===void 0&&N===void 0||Ws(e,t,C,E,n,N);return}}for(var b in l)E=l[b],l.hasOwnProperty(b)&&E!=null&&!n.hasOwnProperty(b)&&ke(e,t,b,null,n,E);for(R in n)E=n[R],N=l[R],!n.hasOwnProperty(R)||E===N||E==null&&N==null||ke(e,t,R,E,n,N)}function cf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function U4(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],c=a.transferSize,s=a.initiatorType,d=a.duration;if(c&&d&&cf(s)){for(s=0,d=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],j=m.startTime;if(j>d)break;var C=m.transferSize,R=m.initiatorType;C&&cf(R)&&(m=m.responseEnd,s+=C*(m<d?1:(d-j)/(m-j)))}if(--n,t+=8*(c+s)/(a.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 Is=null,Ps=null;function zc(e){return e.nodeType===9?e:e.ownerDocument}function uf(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 sf(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 e1(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 t1=null;function B4(){var e=window.event;return e&&e.type==="popstate"?e===t1?!1:(t1=e,!0):(t1=null,!1)}var of=typeof setTimeout=="function"?setTimeout:void 0,q4=typeof clearTimeout=="function"?clearTimeout:void 0,rf=typeof Promise=="function"?Promise:void 0,k4=typeof queueMicrotask=="function"?queueMicrotask:typeof rf<"u"?function(e){return rf.resolve(null).then(e).catch(V4)}:of;function V4(e){setTimeout(function(){throw e})}function Kl(e){return e==="head"}function ff(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),va(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")ui(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ui(l);for(var c=l.firstChild;c;){var s=c.nextSibling,d=c.nodeName;c[Na]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=s}}else l==="body"&&ui(e.ownerDocument.body);l=a}while(l);va(t)}function df(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function l1(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":l1(l),uu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function G4(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Na])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Qt(e.nextSibling),e===null)break}return null}function Y4(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Qt(e.nextSibling),e===null))return null;return e}function hf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function n1(e){return e.data==="$?"||e.data==="$~"}function a1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function X4(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Qt(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 i1=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Qt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function pf(e,t,l){switch(t=zc(l),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 ui(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);uu(e)}var Zt=new Map,vf=new Set;function Nc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Nl=q.d;q.d={f:Q4,r:Z4,D:K4,C:J4,L:$4,m:F4,X:I4,S:W4,M:P4};function Q4(){var e=Nl.f(),t=pc();return e||t}function Z4(e){var t=Hn(e);t!==null&&t.tag===5&&t.type==="form"?Do(t):Nl.r(e)}var ma=typeof document>"u"?null:document;function gf(e,t,l){var n=ma;if(n&&typeof t=="string"&&t){var a=Bt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),vf.has(a)||(vf.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),mt(t,"link",e),ut(t),n.head.appendChild(t)))}}function K4(e){Nl.D(e),gf("dns-prefetch",e,null)}function J4(e,t){Nl.C(e,t),gf("preconnect",e,t)}function $4(e,t,l){Nl.L(e,t,l);var n=ma;if(n&&e&&t){var a='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Bt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Bt(l.imageSizes)+'"]')):a+='[href="'+Bt(e)+'"]';var c=a;switch(t){case"style":c=ya(e);break;case"script":c=pa(e)}Zt.has(c)||(e=L({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Zt.set(c,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(si(c))||t==="script"&&n.querySelector(oi(c))||(t=n.createElement("link"),mt(t,"link",e),ut(t),n.head.appendChild(t)))}}function F4(e,t){Nl.m(e,t);var l=ma;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Bt(n)+'"][href="'+Bt(e)+'"]',c=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=pa(e)}if(!Zt.has(c)&&(e=L({rel:"modulepreload",href:e},t),Zt.set(c,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(oi(c)))return}n=l.createElement("link"),mt(n,"link",e),ut(n),l.head.appendChild(n)}}}function W4(e,t,l){Nl.S(e,t,l);var n=ma;if(n&&e){var a=Un(n).hoistableStyles,c=ya(e);t=t||"default";var s=a.get(c);if(!s){var d={loading:0,preload:null};if(s=n.querySelector(si(c)))d.loading=5;else{e=L({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Zt.get(c))&&c1(e,l);var m=s=n.createElement("link");ut(m),mt(m,"link",e),m._p=new Promise(function(j,C){m.onload=j,m.onerror=C}),m.addEventListener("load",function(){d.loading|=1}),m.addEventListener("error",function(){d.loading|=2}),d.loading|=4,wc(s,t,n)}s={type:"stylesheet",instance:s,count:1,state:d},a.set(c,s)}}}function I4(e,t){Nl.X(e,t);var l=ma;if(l&&e){var n=Un(l).hoistableScripts,a=pa(e),c=n.get(a);c||(c=l.querySelector(oi(a)),c||(e=L({src:e,async:!0},t),(t=Zt.get(a))&&u1(e,t),c=l.createElement("script"),ut(c),mt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(a,c))}}function P4(e,t){Nl.M(e,t);var l=ma;if(l&&e){var n=Un(l).hoistableScripts,a=pa(e),c=n.get(a);c||(c=l.querySelector(oi(a)),c||(e=L({src:e,async:!0,type:"module"},t),(t=Zt.get(a))&&u1(e,t),c=l.createElement("script"),ut(c),mt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(a,c))}}function bf(e,t,l,n){var a=(a=M.current)?Nc(a):null;if(!a)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ya(l.href),l=Un(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ya(l.href);var c=Un(a).hoistableStyles,s=c.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,s),(c=a.querySelector(si(e)))&&!c._p&&(s.instance=c,s.state.loading=5),Zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Zt.set(e,l),c||e3(a,e,l,s.state))),t&&n===null)throw Error(r(528,""));return s}if(t&&n!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pa(l),l=Un(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ya(e){return'href="'+Bt(e)+'"'}function si(e){return'link[rel="stylesheet"]['+e+"]"}function Sf(e){return L({},e,{"data-precedence":e.precedence,precedence:null})}function e3(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),mt(t,"link",l),ut(t),e.head.appendChild(t))}function pa(e){return'[src="'+Bt(e)+'"]'}function oi(e){return"script[async]"+e}function xf(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Bt(l.href)+'"]');if(n)return t.instance=n,ut(n),n;var a=L({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ut(n),mt(n,"style",a),wc(n,l.precedence,e),t.instance=n;case"stylesheet":a=ya(l.href);var c=e.querySelector(si(a));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;n=Sf(l),(a=Zt.get(a))&&c1(n,a),c=(e.ownerDocument||e).createElement("link"),ut(c);var s=c;return s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),mt(c,"link",n),t.state.loading|=4,wc(c,l.precedence,e),t.instance=c;case"script":return c=pa(l.src),(a=e.querySelector(oi(c)))?(t.instance=a,ut(a),a):(n=l,(a=Zt.get(c))&&(n=L({},l),u1(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),ut(a),mt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,wc(n,l.precedence,e));return t.instance}function wc(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,c=a,s=0;s<n.length;s++){var d=n[s];if(d.dataset.precedence===t)c=d;else if(c!==a)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function c1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function u1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Tc=null;function jf(e,t,l){if(Tc===null){var n=new Map,a=Tc=new Map;a.set(l,n)}else a=Tc,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var c=l[a];if(!(c[Na]||c[it]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var s=c.getAttribute(t)||"";s=e+s;var d=n.get(s);d?d.push(c):n.set(s,[c])}}return n}function Ef(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function t3(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function zf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function l3(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=ya(n.href),c=t.querySelector(si(a));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Mc.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,ut(c);return}c=t.ownerDocument||t,n=Sf(n),(a=Zt.get(a))&&c1(n,a),c=c.createElement("link"),ut(c);var s=c;s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),mt(c,"link",n),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Mc.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var s1=0;function n3(e,t){return e.stylesheets&&e.count===0&&Cc(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Cc(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&s1===0&&(s1=62500*U4());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Cc(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>s1?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Mc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ac=null;function Cc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ac=new Map,t.forEach(a3,e),Ac=null,Mc.call(e))}function a3(e,t){if(!(t.state.loading&4)){var l=Ac.get(e);if(l)var n=l.get(null);else{l=new Map,Ac.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<a.length;c++){var s=a[c];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),n=s)}n&&l.set(null,n)}a=t.instance,s=a.getAttribute("data-precedence"),c=l.get(s)||n,c===n&&l.set(null,a),l.set(s,a),this.count++,n=Mc.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),c?c.parentNode.insertBefore(a,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var ri={$$typeof:oe,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function i3(e,t,l,n,a,c,s,d,m){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=za(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=za(0),this.hiddenUpdates=za(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=c,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Nf(e,t,l,n,a,c,s,d,m,j,C,R){return e=new i3(e,t,l,s,m,j,C,R,d),t=1,c===!0&&(t|=24),c=_t(3,null,null,t),e.current=c,c.stateNode=e,t=Vu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:n,isDehydrated:l,cache:t},Qu(c),e}function wf(e){return e?(e=Kn,e):Kn}function Tf(e,t,l,n,a,c){a=wf(a),n.context===null?n.context=a:n.pendingContext=a,n=Hl(t),n.payload={element:l},c=c===void 0?null:c,c!==null&&(n.callback=c),l=Ul(e,n,t),l!==null&&(Mt(l,e,t),Ga(l,e,t))}function Mf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function o1(e,t){Mf(e,t),(e=e.alternate)&&Mf(e,t)}function Af(e){if(e.tag===13||e.tag===31){var t=on(e,67108864);t!==null&&Mt(t,e,67108864),o1(e,67108864)}}function Cf(e){if(e.tag===13||e.tag===31){var t=Ht();t=ae(t);var l=on(e,t);l!==null&&Mt(l,e,t),o1(e,t)}}var _c=!0;function c3(e,t,l,n){var a=z.T;z.T=null;var c=q.p;try{q.p=2,r1(e,t,l,n)}finally{q.p=c,z.T=a}}function u3(e,t,l,n){var a=z.T;z.T=null;var c=q.p;try{q.p=8,r1(e,t,l,n)}finally{q.p=c,z.T=a}}function r1(e,t,l,n){if(_c){var a=f1(n);if(a===null)Fs(e,t,n,Oc,l),Of(e,n);else if(o3(a,e,t,l,n))n.stopPropagation();else if(Of(e,n),t&4&&-1<s3.indexOf(e)){for(;a!==null;){var c=Hn(a);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var s=ul(c.pendingLanes);if(s!==0){var d=c;for(d.pendingLanes|=2,d.entangledLanes|=2;s;){var m=1<<31-St(s);d.entanglements[1]|=m,s&=~m}al(c),(Re&6)===0&&(mc=ot()+500,ai(0))}}break;case 31:case 13:d=on(c,2),d!==null&&Mt(d,c,2),pc(),o1(c,2)}if(c=f1(n),c===null&&Fs(e,t,n,Oc,l),c===a)break;a=c}a!==null&&n.stopPropagation()}else Fs(e,t,n,null,l)}}function f1(e){return e=hu(e),d1(e)}var Oc=null;function d1(e){if(Oc=null,e=Ln(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=w(t),e!==null)return e;e=null}else if(l===31){if(e=_(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Oc=e,null}function _f(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(Ic()){case xi:return 2;case ji:return 8;case Tl:case Pc:return 32;case ja:return 268435456;default:return 32}default:return 32}}var h1=!1,Jl=null,$l=null,Fl=null,fi=new Map,di=new Map,Wl=[],s3="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 Of(e,t){switch(e){case"focusin":case"focusout":Jl=null;break;case"dragenter":case"dragleave":$l=null;break;case"mouseover":case"mouseout":Fl=null;break;case"pointerover":case"pointerout":fi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(t.pointerId)}}function hi(e,t,l,n,a,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:c,targetContainers:[a]},t!==null&&(t=Hn(t),t!==null&&Af(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function o3(e,t,l,n,a){switch(t){case"focusin":return Jl=hi(Jl,e,t,l,n,a),!0;case"dragenter":return $l=hi($l,e,t,l,n,a),!0;case"mouseover":return Fl=hi(Fl,e,t,l,n,a),!0;case"pointerover":var c=a.pointerId;return fi.set(c,hi(fi.get(c)||null,e,t,l,n,a)),!0;case"gotpointercapture":return c=a.pointerId,di.set(c,hi(di.get(c)||null,e,t,l,n,a)),!0}return!1}function Df(e){var t=Ln(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=w(l),t!==null){e.blockedOn=t,Pt(e.priority,function(){Cf(l)});return}}else if(t===31){if(t=_(l),t!==null){e.blockedOn=t,Pt(e.priority,function(){Cf(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=f1(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);du=n,l.target.dispatchEvent(n),du=null}else return t=Hn(l),t!==null&&Af(t),e.blockedOn=l,!1;t.shift()}return!0}function Rf(e,t,l){Dc(e)&&l.delete(t)}function r3(){h1=!1,Jl!==null&&Dc(Jl)&&(Jl=null),$l!==null&&Dc($l)&&($l=null),Fl!==null&&Dc(Fl)&&(Fl=null),fi.forEach(Rf),di.forEach(Rf)}function Rc(e,t){e.blockedOn===t&&(e.blockedOn=null,h1||(h1=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,r3)))}var Lc=null;function Lf(e){Lc!==e&&(Lc=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Lc===e&&(Lc=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(d1(n||l)===null)continue;break}var c=Hn(l);c!==null&&(e.splice(t,3),t-=3,fs(c,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function va(e){function t(m){return Rc(m,e)}Jl!==null&&Rc(Jl,e),$l!==null&&Rc($l,e),Fl!==null&&Rc(Fl,e),fi.forEach(t),di.forEach(t);for(var l=0;l<Wl.length;l++){var n=Wl[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Wl.length&&(l=Wl[0],l.blockedOn===null);)Df(l),l.blockedOn===null&&Wl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],c=l[n+1],s=a[jt]||null;if(typeof c=="function")s||Lf(l);else if(s){var d=null;if(c&&c.hasAttribute("formAction")){if(a=c,s=c[jt]||null)d=s.formAction;else if(d1(a)!==null)continue}else d=s.action;typeof d=="function"?l[n+1]=d:(l.splice(n,3),n-=3),Lf(l)}}}function Hf(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(s){return a=s})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function m1(e){this._internalRoot=e}Hc.prototype.render=m1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,n=Ht();Tf(l,n,e,t,null,null)},Hc.prototype.unmount=m1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tf(e.current,2,null,e,null,null),pc(),t[Rn]=null}};function Hc(e){this._internalRoot=e}Hc.prototype.unstable_scheduleHydration=function(e){if(e){var t=rt();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Wl.length&&t!==0&&t<Wl[l].priority;l++);Wl.splice(l,0,e),l===0&&Df(e)}};var Uf=o.version;if(Uf!=="19.2.6")throw Error(r(527,Uf,"19.2.6"));q.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?T(e):null,e=e===null?null:e.stateNode,e};var f3={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uc.isDisabled&&Uc.supportsFiber)try{Ml=Uc.inject(f3),bt=Uc}catch{}}return yi.createRoot=function(e,t){if(!h(e))throw Error(r(299));var l=!1,n="",a=Yo,c=Xo,s=Qo;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Nf(e,1,!1,null,null,l,n,null,a,c,s,Hf),e[Rn]=t.current,$s(e),new m1(t)},yi.hydrateRoot=function(e,t,l){if(!h(e))throw Error(r(299));var n=!1,a="",c=Yo,s=Xo,d=Qo,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=Nf(e,1,!0,t,l??null,n,a,m,c,s,d,Hf),t.context=wf(null),l=t.current,n=Ht(),n=ae(n),a=Hl(n),a.callback=null,Ul(l,a,n),l=n,t.current.lanes=l,Al(t,l),al(t),e[Rn]=t.current,$s(e),new Hc(t)},yi.version="19.2.6",yi}var Kf;function x3(){if(Kf)return v1.exports;Kf=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),v1.exports=S3(),v1.exports}var j3=x3();/**
50
50
  * @license lucide-react v1.16.0 - ISC
51
51
  *
52
52
  * This source code is licensed under the ISC license.
@@ -76,7 +76,7 @@ Error generating stack: `+n.message+`
76
76
  *
77
77
  * This source code is licensed under the ISC license.
78
78
  * See the LICENSE file in the root directory of this source tree.
79
- */const N3=i=>{for(const o in i)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1},w3=A.createContext({}),T3=()=>A.useContext(w3),M3=A.forwardRef(({color:i,size:o,strokeWidth:f,absoluteStrokeWidth:r,className:h="",children:g,iconNode:w,..._},S)=>{const{size:y=24,strokeWidth:T=2,absoluteStrokeWidth:L=!1,color:B="currentColor",className:F=""}=T3()??{},te=r??L?Number(f??T)*24/Number(o??y):f??T;return A.createElement("svg",{ref:S,...x1,width:o??y??x1.width,height:o??y??x1.height,stroke:i??B,strokeWidth:te,className:p2("lucide",F,h),...!g&&!N3(_)&&{"aria-hidden":"true"},..._},[...w.map(([se,be])=>A.createElement(se,be)),...Array.isArray(g)?g:[g]])});/**
79
+ */const N3=i=>{for(const o in i)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1},w3=A.createContext({}),T3=()=>A.useContext(w3),M3=A.forwardRef(({color:i,size:o,strokeWidth:f,absoluteStrokeWidth:r,className:h="",children:g,iconNode:w,..._},x)=>{const{size:y=24,strokeWidth:T=2,absoluteStrokeWidth:L=!1,color:k="currentColor",className:F=""}=T3()??{},te=r??L?Number(f??T)*24/Number(o??y):f??T;return A.createElement("svg",{ref:x,...x1,width:o??y??x1.width,height:o??y??x1.height,stroke:i??k,strokeWidth:te,className:p2("lucide",F,h),...!g&&!N3(_)&&{"aria-hidden":"true"},..._},[...w.map(([se,be])=>A.createElement(se,be)),...Array.isArray(g)?g:[g]])});/**
80
80
  * @license lucide-react v1.16.0 - ISC
81
81
  *
82
82
  * This source code is licensed under the ISC license.
@@ -291,12 +291,12 @@ Error generating stack: `+n.message+`
291
291
  *
292
292
  * This source code is licensed under the ISC license.
293
293
  * See the LICENSE file in the root directory of this source tree.
294
- */const Gh=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jc=ye("x",Gh);function bi(i,o={}){const f=Math.min(i.startLine,i.endLine),r=Math.max(i.startLine,i.endLine);if(f===r)return`${i.side}${f}`;const h=o.repeatSideOnEnd===!1?"":i.side;return`${i.side}${f}-${h}${r}`}function Yh(i,o=[]){const f=(i==null?void 0:i.comments)??[],r=new Set(o.map(g=>g.commentId)),h=f.filter(g=>r.has(g.id)).length;return{total:f.length,resolved:h,open:f.length-h}}function N2(i){var o;return Yh(i.feedback,((o=i.resolution)==null?void 0:o.comments)??[])}const Xh="brew install iamrajjoshi/tap/gloss",Qh="npm install -g getgloss",Zh="gloss open --json",j1="npx getgloss open --json",$f="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",Kh={side:"R",startLine:45,endLine:45},Jh=[{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"}],Ff=[{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 $h(i){return i.startLine===i.endLine?`Comment on line ${bi(i)}`:`Comment on range ${bi(i)}`}function Fh(i,o){const f=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`;return{...o,id:f,body:i,createdAt:new Date().toISOString()}}function _1({value:i,label:o}){const[f,r]=A.useState(!1);return u.jsxs("button",{className:"marketing-copy",type:"button",onClick:async()=>{await navigator.clipboard.writeText(i),r(!0),window.setTimeout(()=>r(!1),1400)},children:[f?u.jsx(Nn,{size:15}):u.jsx(Y3,{size:15}),u.jsx("span",{children:f?"Copied":o})]})}function Bc({command:i}){return u.jsxs("div",{className:"command-line",children:[u.jsx("span",{children:"$"}),u.jsx("code",{children:i}),u.jsx(_1,{value:i,label:"Copy"})]})}function Wh(){const[i,o]=A.useState(!0),[f,r]=A.useState(Kh),[h,g]=A.useState(!1),[w,_]=A.useState(null),[S,y]=A.useState(""),[T,L]=A.useState(Jh),[B,F]=A.useState("idle"),te=B==="submitted",se=T.find(H=>H.id===w),be=$h(f),q=S.trim(),de=`${T.length} review comment${T.length===1?"":"s"}`,oe=te?[{marker:"✓",text:"review.submitted received"},{marker:"→",text:"reading ~/.gloss/reviews/01KS5/feedback.json"},{marker:"→",text:`applying ${de}`},{marker:"→",text:"running pnpm check"}]:[{marker:"$",text:"gloss open --json"},{marker:"→",text:"captured 4 files, +128 -31"},{marker:"→",text:"waiting for review.submitted"}],ne=i?Ff:Ff.filter(H=>!H.hiddenUntilExpanded),he=A.useMemo(()=>JSON.stringify({reviewId:"01KS5...",comments:T.map(H=>({filePath:"src/web/routes/Home.tsx",side:H.side,startLine:H.startLine,endLine:H.endLine,body:H.body}))},null,2),[T]),$=(H,Z)=>f.side===H&&f.startLine===Z&&f.endLine===Z,K=H=>{r(H),_(null),y(""),g(!0),F("idle")},Y=H=>{r({side:H.side,startLine:H.startLine,endLine:H.endLine}),_(H.id),y(H.body),g(!0),F("idle")},ze=()=>{q&&(L(H=>w?H.map(Z=>Z.id===w?{...Z,body:q}:Z):[...H,Fh(q,f)]),y(""),_(null),g(!1),F("idle"))},Be=H=>{L(Z=>Z.filter(Q=>Q.id!==H)),w===H&&(_(null),y(""),g(!1)),F("idle")},Te=(H,Z)=>T.filter(Q=>Q.side===H&&Math.max(Q.startLine,Q.endLine)===Z&&Math.min(Q.startLine,Q.endLine)===Z);return u.jsxs("section",{className:"hero-scene","aria-label":"Simulated Gloss code review",children:[u.jsxs("div",{className:"scene-topbar",children:[u.jsxs("div",{className:"scene-brand",children:[u.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:"","aria-hidden":"true"}),u.jsx("span",{children:"Gloss review"})]}),u.jsxs("div",{className:"scene-meta",children:[u.jsx(Gc,{size:14}),u.jsx("span",{children:"raj--gloss--static-site"})]})]}),u.jsxs("div",{className:"scene-shell",children:[u.jsxs("div",{className:"scene-terminal",children:[u.jsxs("div",{className:"terminal-header",children:[u.jsx(C1,{size:14}),u.jsx("span",{children:"agent terminal"})]}),u.jsx("div",{className:"terminal-lines",children:oe.map(H=>u.jsxs("p",{children:[u.jsx("span",{children:H.marker})," ",H.text]},H.text))})]}),u.jsxs("div",{className:"scene-review",children:[u.jsxs("button",{className:"scene-file-header",type:"button",children:[u.jsx(Tn,{size:16}),u.jsx(Pl,{size:15}),u.jsx("span",{children:"src/web/routes/Home.tsx"}),u.jsx("b",{className:"scene-add",children:"+74"}),u.jsx("b",{className:"scene-del",children:"-6"})]}),u.jsx("button",{className:"scene-hidden",type:"button",onClick:()=>o(H=>!H),children:i?"Hide unchanged context":"194 unmodified lines"}),u.jsx("div",{className:"scene-hunk",children:"@@ -38,11 +38,20 @@ export function Home()"}),ne.map(H=>{const Z=H.side==="L"?H.oldLine:H.newLine;if(Z==null)return null;const Q=$(H.side,Z),Se=te&&(H.key==="skip-review"||H.key==="skip-status"),z=te&&["apply-feedback","resolve-threads","run-checks"].includes(H.key);return u.jsxs("div",{children:[u.jsxs("button",{className:`scene-row ${H.tone} ${H.hiddenUntilExpanded?"dimmed":""} ${Q?"selected":""} ${Se?"agent-dimmed":""} ${z?"agent-applied":""}`,type:"button","aria-pressed":Q,onClick:()=>K({side:H.side,startLine:Z,endLine:Z}),children:[u.jsx("span",{children:H.oldLine??""}),u.jsx("span",{children:H.newLine??""}),u.jsx("code",{children:H.code||" "})]}),te&&H.key==="apply-feedback"?u.jsxs("div",{className:"scene-applied-status",children:[u.jsx(Nn,{size:13}),u.jsx("span",{children:"applied by agent"})]}):null,u.jsx(Ih,{comments:Te(H.side,Z),onOpen:Y,onRemove:Be}),h&&f.side===H.side&&f.endLine===Z?u.jsxs("div",{className:"scene-composer",children:[u.jsxs("div",{className:"scene-composer-title",children:[u.jsx("strong",{children:se?"Review comment":"New local comment"}),u.jsx("span",{children:be})]}),u.jsx("textarea",{"aria-label":be,placeholder:"Request change",value:S,onChange:k=>y(k.target.value)}),u.jsxs("div",{className:"scene-composer-actions",children:[u.jsx("button",{className:"scene-secondary-action",type:"button",onClick:()=>{y(""),_(null),g(!1)},children:"Cancel"}),u.jsx("button",{type:"button",disabled:!q,onClick:ze,children:se?"Update":"Comment"})]})]}):null]},H.key)})]}),u.jsx("div",{className:"scene-feedback",children:te?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"feedback-title",children:[u.jsx(C1,{size:15}),u.jsx("span",{children:"agent is updating"})]}),u.jsxs("div",{className:"agent-update-card",children:[u.jsx("code",{children:"~/.gloss/reviews/01KS5/feedback.json"}),u.jsx("ul",{children:["Read feedback","Resolved comment","Validated"].map(H=>u.jsxs("li",{children:[u.jsx(Nn,{size:13}),u.jsx("span",{children:H})]},H))})]})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"feedback-title",children:[u.jsx(I3,{size:15}),u.jsx("span",{children:"~/.gloss/reviews/01KS5/feedback.json"})]}),u.jsx("pre",{children:he})]})})]}),u.jsxs("div",{className:"scene-submit",children:[u.jsx("span",{children:T.length===0?"No local comments yet":te?"Sent to agent":`${T.length} local comment${T.length===1?"":"s"} ready`}),u.jsxs("button",{type:"button",disabled:T.length===0,onClick:()=>F("submitted"),children:[te?u.jsx(Nn,{size:14}):u.jsx(wh,{size:14}),te?"Sent to agent":"Submit review"]})]})]})}function Ih({comments:i,onOpen:o,onRemove:f}){return i.map(r=>u.jsxs("div",{className:"scene-inline-comment",children:[u.jsxs("button",{className:"scene-inline-comment-body",type:"button",onClick:()=>o(r),children:[u.jsx(j2,{size:14}),u.jsx("span",{children:r.body})]}),u.jsx("button",{className:"scene-inline-comment-remove",type:"button",title:`Remove comment on ${r.side}${r.startLine}`,onClick:()=>f(r.id),children:u.jsx(z2,{size:13})})]},r.id))}function pi({step:i,title:o,body:f}){return u.jsxs("div",{className:"workflow-step",children:[u.jsx("span",{children:i}),u.jsxs("div",{children:[u.jsx("h3",{children:o}),u.jsx("p",{children:f})]})]})}function Ph(){return u.jsxs("section",{className:"marketing-band demo-video-band",id:"demo",children:[u.jsxs("div",{className:"demo-video-header",children:[u.jsxs("div",{className:"section-heading",children:[u.jsx("p",{children:"Demo"}),u.jsx("h2",{children:"Watch the local review loop run for real."})]}),u.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."})]}),u.jsx("div",{className:"demo-video-frame",children:u.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:[u.jsx("source",{src:"/gloss-demo.mp4",type:"video/mp4"}),u.jsx("track",{default:!0,kind:"captions",label:"English",src:"/gloss-demo-captions.vtt",srcLang:"en"}),"Your browser does not support the video tag."]})})]})}function e5(){return u.jsxs("main",{className:"marketing-page",children:[u.jsxs("section",{className:"marketing-hero",children:[u.jsxs("div",{className:"hero-copy",children:[u.jsxs("div",{className:"hero-copy-main",children:[u.jsx("div",{className:"hero-logo",children:u.jsx("img",{className:"brand-mark",src:"/logo-mark.svg",alt:"Gloss logo"})}),u.jsx("h1",{children:"Gloss"}),u.jsx("p",{className:"hero-subtitle",children:"Review agent-written diffs in your browser."}),u.jsxs("p",{className:"hero-body",children:["Gloss opens your working-tree diff in a local browser, then writes"," ",u.jsx("code",{children:"feedback.json"})," for your agent and ",u.jsx("code",{children:"feedback.md"})," for humans."]}),u.jsxs("div",{className:"hero-actions",children:[u.jsxs("a",{className:"hero-primary",href:"#install",children:["Install with Homebrew",u.jsx(v2,{size:17})]}),u.jsx("a",{className:"hero-secondary",href:"/setup/",children:"Agent setup"})]})]}),u.jsxs("aside",{className:"hero-quickstart","aria-label":"Quick start command",children:[u.jsx("span",{children:"Run without setup"}),u.jsx("code",{children:j1}),u.jsx(_1,{value:j1,label:"Copy command"})]})]}),u.jsx(Wh,{})]}),u.jsx(Ph,{}),u.jsxs("section",{className:"marketing-band install-band",id:"install",children:[u.jsxs("div",{className:"section-heading",children:[u.jsx("p",{children:"Install"}),u.jsx("h2",{children:"Start the review loop in one command."})]}),u.jsxs("div",{className:"install-grid",children:[u.jsx(Bc,{command:Xh}),u.jsx(Bc,{command:Qh}),u.jsx(Bc,{command:Zh}),u.jsx(Bc,{command:j1})]}),u.jsxs("div",{className:"agent-prompt",children:[u.jsxs("div",{className:"agent-prompt-label",children:[u.jsx(C1,{size:18}),u.jsx("span",{children:"Packaged skill"})]}),u.jsx("p",{children:"Install the bundled agent skill so Claude Code knows when to open Gloss and how to use the feedback."}),u.jsx("div",{className:"agent-prompt-links",children:u.jsx("a",{href:"/setup/",children:"Agent setup"})}),u.jsxs("div",{className:"agent-skill-command",children:[u.jsx("code",{children:$f}),u.jsx(_1,{value:$f,label:"Copy install"})]})]})]}),u.jsxs("section",{className:"marketing-band workflow-band",id:"workflow",children:[u.jsx("div",{className:"section-heading",children:u.jsx("p",{children:"How it works"})}),u.jsxs("div",{className:"workflow-story",children:[u.jsx(pi,{step:"01",title:"Open a review",body:"The agent runs `gloss open --json`."}),u.jsx(pi,{step:"02",title:"Wait",body:"Gloss blocks while you review the diff."}),u.jsx(pi,{step:"03",title:"Receive feedback",body:"The agent reads `feedbackPath`."}),u.jsx(pi,{step:"04",title:"Fix and validate",body:"The agent applies comments and runs checks."}),u.jsx(pi,{step:"05",title:"Resolve",body:"The agent runs `gloss resolve`."})]})]}),u.jsxs("section",{className:"marketing-band contract-band",id:"contract",children:[u.jsxs("div",{className:"section-heading",children:[u.jsx("p",{children:"Output"}),u.jsx("h2",{children:"What the agent reads."})]}),u.jsxs("div",{className:"contract-layout",children:[u.jsx("pre",{children:`~/.gloss/reviews/<reviewId>/feedback.json
294
+ */const Gh=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jc=ye("x",Gh);function bi(i,o={}){const f=Math.min(i.startLine,i.endLine),r=Math.max(i.startLine,i.endLine);if(f===r)return`${i.side}${f}`;const h=o.repeatSideOnEnd===!1?"":i.side;return`${i.side}${f}-${h}${r}`}function Yh(i,o=[]){const f=(i==null?void 0:i.comments)??[],r=new Set(o.map(g=>g.commentId)),h=f.filter(g=>r.has(g.id)).length;return{total:f.length,resolved:h,open:f.length-h}}function N2(i){var o;return Yh(i.feedback,((o=i.resolution)==null?void 0:o.comments)??[])}const Xh="brew install iamrajjoshi/tap/gloss",Qh="npm install -g getgloss",Zh="gloss open --json",j1="npx getgloss open --json",$f="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",Kh={side:"R",startLine:45,endLine:45},Jh=[{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"}],Ff=[{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 $h(i){return i.startLine===i.endLine?`Comment on line ${bi(i)}`:`Comment on range ${bi(i)}`}function Fh(i,o){const f=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`;return{...o,id:f,body:i,createdAt:new Date().toISOString()}}function _1({value:i,label:o}){const[f,r]=A.useState(!1);return u.jsxs("button",{className:"marketing-copy",type:"button",onClick:async()=>{await navigator.clipboard.writeText(i),r(!0),window.setTimeout(()=>r(!1),1400)},children:[f?u.jsx(Nn,{size:15}):u.jsx(Y3,{size:15}),u.jsx("span",{children:f?"Copied":o})]})}function Bc({command:i}){return u.jsxs("div",{className:"command-line",children:[u.jsx("span",{children:"$"}),u.jsx("code",{children:i}),u.jsx(_1,{value:i,label:"Copy"})]})}function Wh(){const[i,o]=A.useState(!0),[f,r]=A.useState(Kh),[h,g]=A.useState(!1),[w,_]=A.useState(null),[x,y]=A.useState(""),[T,L]=A.useState(Jh),[k,F]=A.useState("idle"),te=k==="submitted",se=T.find(H=>H.id===w),be=$h(f),B=x.trim(),de=`${T.length} review comment${T.length===1?"":"s"}`,oe=te?[{marker:"✓",text:"review.submitted received"},{marker:"→",text:"reading ~/.gloss/reviews/01KS5/feedback.json"},{marker:"→",text:`applying ${de}`},{marker:"→",text:"running pnpm check"}]:[{marker:"$",text:"gloss open --json"},{marker:"→",text:"captured 4 files, +128 -31"},{marker:"→",text:"waiting for review.submitted"}],ne=i?Ff:Ff.filter(H=>!H.hiddenUntilExpanded),he=A.useMemo(()=>JSON.stringify({reviewId:"01KS5...",comments:T.map(H=>({filePath:"src/web/routes/Home.tsx",side:H.side,startLine:H.startLine,endLine:H.endLine,body:H.body}))},null,2),[T]),$=(H,Z)=>f.side===H&&f.startLine===Z&&f.endLine===Z,K=H=>{r(H),_(null),y(""),g(!0),F("idle")},Y=H=>{r({side:H.side,startLine:H.startLine,endLine:H.endLine}),_(H.id),y(H.body),g(!0),F("idle")},ze=()=>{B&&(L(H=>w?H.map(Z=>Z.id===w?{...Z,body:B}:Z):[...H,Fh(B,f)]),y(""),_(null),g(!1),F("idle"))},Be=H=>{L(Z=>Z.filter(Q=>Q.id!==H)),w===H&&(_(null),y(""),g(!1)),F("idle")},Te=(H,Z)=>T.filter(Q=>Q.side===H&&Math.max(Q.startLine,Q.endLine)===Z&&Math.min(Q.startLine,Q.endLine)===Z);return u.jsxs("section",{className:"hero-scene","aria-label":"Simulated Gloss code review",children:[u.jsxs("div",{className:"scene-topbar",children:[u.jsxs("div",{className:"scene-brand",children:[u.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:"","aria-hidden":"true"}),u.jsx("span",{children:"Gloss review"})]}),u.jsxs("div",{className:"scene-meta",children:[u.jsx(Gc,{size:14}),u.jsx("span",{children:"raj--gloss--static-site"})]})]}),u.jsxs("div",{className:"scene-shell",children:[u.jsxs("div",{className:"scene-terminal",children:[u.jsxs("div",{className:"terminal-header",children:[u.jsx(C1,{size:14}),u.jsx("span",{children:"agent terminal"})]}),u.jsx("div",{className:"terminal-lines",children:oe.map(H=>u.jsxs("p",{children:[u.jsx("span",{children:H.marker})," ",H.text]},H.text))})]}),u.jsxs("div",{className:"scene-review",children:[u.jsxs("button",{className:"scene-file-header",type:"button",children:[u.jsx(Tn,{size:16}),u.jsx(Pl,{size:15}),u.jsx("span",{children:"src/web/routes/Home.tsx"}),u.jsx("b",{className:"scene-add",children:"+74"}),u.jsx("b",{className:"scene-del",children:"-6"})]}),u.jsx("button",{className:"scene-hidden",type:"button",onClick:()=>o(H=>!H),children:i?"Hide unchanged context":"194 unmodified lines"}),u.jsx("div",{className:"scene-hunk",children:"@@ -38,11 +38,20 @@ export function Home()"}),ne.map(H=>{const Z=H.side==="L"?H.oldLine:H.newLine;if(Z==null)return null;const Q=$(H.side,Z),Se=te&&(H.key==="skip-review"||H.key==="skip-status"),z=te&&["apply-feedback","resolve-threads","run-checks"].includes(H.key);return u.jsxs("div",{children:[u.jsxs("button",{className:`scene-row ${H.tone} ${H.hiddenUntilExpanded?"dimmed":""} ${Q?"selected":""} ${Se?"agent-dimmed":""} ${z?"agent-applied":""}`,type:"button","aria-pressed":Q,onClick:()=>K({side:H.side,startLine:Z,endLine:Z}),children:[u.jsx("span",{children:H.oldLine??""}),u.jsx("span",{children:H.newLine??""}),u.jsx("code",{children:H.code||" "})]}),te&&H.key==="apply-feedback"?u.jsxs("div",{className:"scene-applied-status",children:[u.jsx(Nn,{size:13}),u.jsx("span",{children:"applied by agent"})]}):null,u.jsx(Ih,{comments:Te(H.side,Z),onOpen:Y,onRemove:Be}),h&&f.side===H.side&&f.endLine===Z?u.jsxs("div",{className:"scene-composer",children:[u.jsxs("div",{className:"scene-composer-title",children:[u.jsx("strong",{children:se?"Review comment":"New local comment"}),u.jsx("span",{children:be})]}),u.jsx("textarea",{"aria-label":be,placeholder:"Request change",value:x,onChange:q=>y(q.target.value)}),u.jsxs("div",{className:"scene-composer-actions",children:[u.jsx("button",{className:"scene-secondary-action",type:"button",onClick:()=>{y(""),_(null),g(!1)},children:"Cancel"}),u.jsx("button",{type:"button",disabled:!B,onClick:ze,children:se?"Update":"Comment"})]})]}):null]},H.key)})]}),u.jsx("div",{className:"scene-feedback",children:te?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"feedback-title",children:[u.jsx(C1,{size:15}),u.jsx("span",{children:"agent is updating"})]}),u.jsxs("div",{className:"agent-update-card",children:[u.jsx("code",{children:"~/.gloss/reviews/01KS5/feedback.json"}),u.jsx("ul",{children:["Read feedback","Resolved comment","Validated"].map(H=>u.jsxs("li",{children:[u.jsx(Nn,{size:13}),u.jsx("span",{children:H})]},H))})]})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"feedback-title",children:[u.jsx(I3,{size:15}),u.jsx("span",{children:"~/.gloss/reviews/01KS5/feedback.json"})]}),u.jsx("pre",{children:he})]})})]}),u.jsxs("div",{className:"scene-submit",children:[u.jsx("span",{children:T.length===0?"No local comments yet":te?"Sent to agent":`${T.length} local comment${T.length===1?"":"s"} ready`}),u.jsxs("button",{type:"button",disabled:T.length===0,onClick:()=>F("submitted"),children:[te?u.jsx(Nn,{size:14}):u.jsx(wh,{size:14}),te?"Sent to agent":"Submit review"]})]})]})}function Ih({comments:i,onOpen:o,onRemove:f}){return i.map(r=>u.jsxs("div",{className:"scene-inline-comment",children:[u.jsxs("button",{className:"scene-inline-comment-body",type:"button",onClick:()=>o(r),children:[u.jsx(j2,{size:14}),u.jsx("span",{children:r.body})]}),u.jsx("button",{className:"scene-inline-comment-remove",type:"button",title:`Remove comment on ${r.side}${r.startLine}`,onClick:()=>f(r.id),children:u.jsx(z2,{size:13})})]},r.id))}function pi({step:i,title:o,body:f}){return u.jsxs("div",{className:"workflow-step",children:[u.jsx("span",{children:i}),u.jsxs("div",{children:[u.jsx("h3",{children:o}),u.jsx("p",{children:f})]})]})}function Ph(){return u.jsxs("section",{className:"marketing-band demo-video-band",id:"demo",children:[u.jsxs("div",{className:"demo-video-header",children:[u.jsxs("div",{className:"section-heading",children:[u.jsx("p",{children:"Demo"}),u.jsx("h2",{children:"Watch the local review loop run for real."})]}),u.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."})]}),u.jsx("div",{className:"demo-video-frame",children:u.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:[u.jsx("source",{src:"/gloss-demo.mp4",type:"video/mp4"}),u.jsx("track",{default:!0,kind:"captions",label:"English",src:"/gloss-demo-captions.vtt",srcLang:"en"}),"Your browser does not support the video tag."]})})]})}function e5(){return u.jsxs("main",{className:"marketing-page",children:[u.jsxs("section",{className:"marketing-hero",children:[u.jsxs("div",{className:"hero-copy",children:[u.jsxs("div",{className:"hero-copy-main",children:[u.jsx("div",{className:"hero-logo",children:u.jsx("img",{className:"brand-mark",src:"/logo-mark.svg",alt:"Gloss logo"})}),u.jsx("h1",{children:"Gloss"}),u.jsx("p",{className:"hero-subtitle",children:"Review agent-written diffs in your browser."}),u.jsxs("p",{className:"hero-body",children:["Gloss opens your working-tree diff in a local browser, then writes"," ",u.jsx("code",{children:"feedback.json"})," for your agent and ",u.jsx("code",{children:"feedback.md"})," for humans."]}),u.jsxs("div",{className:"hero-actions",children:[u.jsxs("a",{className:"hero-primary",href:"#install",children:["Install with Homebrew",u.jsx(v2,{size:17})]}),u.jsx("a",{className:"hero-secondary",href:"/setup/",children:"Agent setup"})]})]}),u.jsxs("aside",{className:"hero-quickstart","aria-label":"Quick start command",children:[u.jsx("span",{children:"Run without setup"}),u.jsx("code",{children:j1}),u.jsx(_1,{value:j1,label:"Copy command"})]})]}),u.jsx(Wh,{})]}),u.jsx(Ph,{}),u.jsxs("section",{className:"marketing-band install-band",id:"install",children:[u.jsxs("div",{className:"section-heading",children:[u.jsx("p",{children:"Install"}),u.jsx("h2",{children:"Start the review loop in one command."})]}),u.jsxs("div",{className:"install-grid",children:[u.jsx(Bc,{command:Xh}),u.jsx(Bc,{command:Qh}),u.jsx(Bc,{command:Zh}),u.jsx(Bc,{command:j1})]}),u.jsxs("div",{className:"agent-prompt",children:[u.jsxs("div",{className:"agent-prompt-label",children:[u.jsx(C1,{size:18}),u.jsx("span",{children:"Packaged skill"})]}),u.jsx("p",{children:"Install the bundled agent skill so Claude Code knows when to open Gloss and how to use the feedback."}),u.jsx("div",{className:"agent-prompt-links",children:u.jsx("a",{href:"/setup/",children:"Agent setup"})}),u.jsxs("div",{className:"agent-skill-command",children:[u.jsx("code",{children:$f}),u.jsx(_1,{value:$f,label:"Copy install"})]})]})]}),u.jsxs("section",{className:"marketing-band workflow-band",id:"workflow",children:[u.jsx("div",{className:"section-heading",children:u.jsx("p",{children:"How it works"})}),u.jsxs("div",{className:"workflow-story",children:[u.jsx(pi,{step:"01",title:"Open a review",body:"The agent runs `gloss open --json`."}),u.jsx(pi,{step:"02",title:"Wait",body:"Gloss blocks while you review the diff."}),u.jsx(pi,{step:"03",title:"Receive feedback",body:"The agent reads `feedbackPath`."}),u.jsx(pi,{step:"04",title:"Fix and validate",body:"The agent applies comments and runs checks."}),u.jsx(pi,{step:"05",title:"Resolve",body:"The agent runs `gloss resolve`."})]})]}),u.jsxs("section",{className:"marketing-band contract-band",id:"contract",children:[u.jsxs("div",{className:"section-heading",children:[u.jsx("p",{children:"Output"}),u.jsx("h2",{children:"What the agent reads."})]}),u.jsxs("div",{className:"contract-layout",children:[u.jsx("pre",{children:`~/.gloss/reviews/<reviewId>/feedback.json
295
295
  ~/.gloss/reviews/<reviewId>/feedback.md
296
- ~/.gloss/reviews/<reviewId>/resolved.json`}),u.jsx("div",{className:"contract-copy",children:u.jsxs("p",{children:[u.jsx("code",{children:"feedback.json"})," is the machine-readable handoff; ",u.jsx("code",{children:"feedback.md"})," ","is the human-readable copy; ",u.jsx("code",{children:"resolved.json"})," tracks comment and review resolution progress."]})})]})]}),u.jsx("footer",{className:"marketing-footer",children:u.jsxs("a",{href:"https://github.com/iamrajjoshi/gloss",target:"_blank",rel:"noreferrer",children:[u.jsx(Gc,{size:16}),u.jsx("span",{children:"GitHub"})]})})]})}var Yc=y2();const t5={mode:"all"};function l5(i=t5,o=[]){if(i.mode==="all")return"All commits";if(i.mode==="single"){const h=o.find(g=>g.commit.sha===i.sha);return h?`${h.commit.shortSha} ${h.commit.subject}`:`Commit ${E1(i.sha)}`}const f=o.findIndex(h=>h.commit.sha===i.fromSha),r=o.findIndex(h=>h.commit.sha===i.toSha);return f>=0&&r>=f?`${r-f+1} commits · ${o[f].commit.shortSha} to ${o[r].commit.shortSha}`:`Commit range ${E1(i.fromSha)} to ${E1(i.toSha)}`}function E1(i){return i.slice(0,7)}function Wf(i){var f;const o=(f=i.meta.branch??i.diff.branch)==null?void 0:f.trim();return o||n5(i.diff)}function n5(i){switch(i.scope.mode){case"branch":return"Branch diff";case"explicit":return`Diff against ${i.scope.requestedBase??i.base.ref}`;case"working":return"Working changes"}}function a5(i){return i==="submitted"||i==="resolved"}const i5=["L","R"],c5=["pending","submitted","cancelled","resolved"],u5=["context","add","delete"],s5=["working","branch","explicit"],o5=["working-tree-clean","missing-branch-base"],r5=500,f5=["import","same-file","repo-search","module"],d5=["all","single","range"],h5=["partial","resolved"],m5=["review-resolved","comment-resolved","comment-reopened","turn-created"],y5=["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 p5(i,o,f){const r=JSON.parse(i);return w2(r,o,f)}function w2(i,o,f){if(!o(i))throw new Error(`Invalid ${f}`);return i}function v5(i){return Le(i)&&P(i.reviewId)&&nt(i.turnId)&&Sa(i.turnIndex)&&P(i.url)&&Ke(i.files)&&Sa(i.comments)&&nt(i.feedbackPath)&&nt(i.markdownPath)&&nt(i.artifactDir)}function g5(i){return Le(i)&&i.ok===!0&&P(i.path)}function b5(i){return Le(i)&&Kt(i.targets,k5)}function S5(i){return Le(i)&&P(i.filePath)&&P(i.content)}function x5(i){return Le(i)&&P(i.fromSha)&&P(i.toSha)&&Fc(i.stats)&&P(i.rawDiff)&&Kt(i.files,B1)}function j5(i){return Le(i)&&P(i.filePath)&&Xc(i.oldStart)&&Xc(i.newStart)&&Kt(i.lines,_2)}function E5(i){return Le(i)&&P(i.symbol)&&P(i.targetSymbol)&&P(i.filePath)&&Xc(i.startLine)&&Xc(i.line)&&G5(i.column)&&il(i.language)&&P(i.content)&&ba(i.truncated)&&B5(i.matchReason)}function z5(i){return Le(i)&&w5(i.meta)&&Kt(i.turns,A5)&&T2(i.diff)&&wn(i.feedback,M2)&&wn(i.resolution,A2)}function N5(i){return Le(i)&&P(i.id)&&P(i.cwd)&&$c(i.base)&&il(i.branch)&&q1(i.status)&&P(i.createdAt)&&nt(i.submittedAt)&&nt(i.resolvedAt)&&nt(i.artifactDir)&&nt(i.activeTurnId)&&wn(i.turns,o=>Kt(o,M5))&&nt(i.feedbackPath)&&nt(i.markdownPath)}function w5(i){return N5(i)&&P(i.artifactDir)}function T2(i){return Le(i)&&$c(i.base)&&il(i.branch)&&P(i.cwd)&&C5(i.scope)&&Fc(i.stats)&&P(i.rawDiff)&&Kt(i.files,B1)&&wn(i.commitDiffs,o=>Kt(o,D5))&&P(i.capturedAt)}function M2(i){return Le(i)&&i.version===1&&P(i.reviewId)&&nt(i.turnId)&&Sa(i.turnIndex)&&P(i.timestamp)&&$c(i.base)&&il(i.branch)&&wn(i.reviewScope,R5)&&Kt(i.comments,H5)}function A2(i){return Le(i)&&P(i.reviewId)&&nt(i.turnId)&&Sa(i.turnIndex)&&D2(i.status)&&il(i.summary)&&il(i.resolvedAt)&&Kt(i.comments,U5)}function T5(i){if(!Le(i)||!P(i.reviewId)||!P(i.type))return!1;switch(i.type){case"review.opened":case"review.cancelled":return!0;case"review.turn.created":return P(i.turnId)&&Ke(i.turnIndex)&&ba(i.reused);case"review.submitted":return nt(i.turnId)&&Sa(i.turnIndex)&&Le(i.counts)&&Ke(i.counts.files)&&Ke(i.counts.comments);case"review.updated":return nt(i.turnId)&&Sa(i.turnIndex)&&V5(i.reason)&&q1(i.status)&&D2(i.resolutionStatus)&&O2(i.counts);default:return!1}}function C2(i){return Le(i)&&P(i.id)&&Ke(i.index)&&q1(i.status)&&P(i.createdAt)&&nt(i.submittedAt)&&nt(i.resolvedAt)&&P(i.artifactDir)&&P(i.diffPath)&&nt(i.feedbackPath)&&nt(i.markdownPath)&&nt(i.resolvedPath)}function M5(i){return!Le(i)||!C2(i)?!1:P(i.capturedAt)&&Fc(i.stats)&&O2(i.comments)}function A5(i){return!Le(i)||!C2(i)?!1:T2(i.diff)&&wn(i.feedback,M2)&&wn(i.resolution,A2)}function C5(i){return Le(i)&&cl(i.mode,s5)&&il(i.requestedBase)&&$c(i.base)&&_5(i.comparison)&&(i.fallbackReason===null||cl(i.fallbackReason,o5))}function _5(i){return Le(i)&&P(i.ref)&&il(i.sha)}function $c(i){return Le(i)&&P(i.ref)&&P(i.sha)}function Fc(i){return Le(i)&&Ke(i.files)&&Ke(i.additions)&&Ke(i.deletions)}function O5(i){return Le(i)&&P(i.sha)&&P(i.shortSha)&&P(i.subject)&&P(i.authorName)&&P(i.authorEmail)&&P(i.authoredAt)&&P(i.committedAt)}function D5(i){return Le(i)&&O5(i.commit)&&Fc(i.stats)&&P(i.rawDiff)&&Kt(i.files,B1)}function R5(i){if(!Le(i)||!cl(i.mode,d5))return!1;switch(i.mode){case"all":return!0;case"single":return P(i.sha);case"range":return P(i.fromSha)&&P(i.toSha)}}function B1(i){return Le(i)&&P(i.path)&&il(i.oldPath)&&Ke(i.additions)&&Ke(i.deletions)&&ba(i.isBinary)&&ba(i.isDeleted)&&ba(i.isNew)&&ba(i.isRenamed)&&il(i.language)&&Kt(i.hunks,L5)}function L5(i){return Le(i)&&Ke(i.oldStart)&&Ke(i.oldLines)&&Ke(i.newStart)&&Ke(i.newLines)&&P(i.header)&&Kt(i.lines,_2)}function _2(i){return Le(i)&&cl(i.type,u5)&&If(i.oldLine)&&If(i.newLine)&&P(i.content)}function H5(i){return Le(i)&&P(i.id)&&P(i.filePath)&&Ke(i.startLine)&&Ke(i.endLine)&&cl(i.side,i5)&&P(i.body)&&P(i.originalSnippet)&&P(i.createdAt)}function U5(i){return Le(i)&&P(i.commentId)&&i.status==="resolved"&&nt(i.summary)&&P(i.resolvedAt)}function O2(i){return Le(i)&&Ke(i.total)&&Ke(i.resolved)&&Ke(i.open)}function q1(i){return cl(i,c5)}function D2(i){return cl(i,h5)}function B5(i){return cl(i,f5)}function q5(i){return cl(i,y5)}function k5(i){return Le(i)&&q5(i.target)&&P(i.label)}function V5(i){return cl(i,m5)}function Le(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function Kt(i,o){return Array.isArray(i)&&i.every(o)}function wn(i,o){return i===void 0||o(i)}function P(i){return typeof i=="string"}function nt(i){return i===void 0||P(i)}function il(i){return i===null||P(i)}function Ke(i){return typeof i=="number"&&Number.isFinite(i)}function Xc(i){return Ke(i)&&Number.isInteger(i)&&i>0}function G5(i){return Ke(i)&&Number.isInteger(i)&&i>=0}function Sa(i){return i===void 0||Ke(i)}function If(i){return i===null||Ke(i)}function ba(i){return typeof i=="boolean"}function cl(i,o){return typeof i=="string"&&o.includes(i)}async function en(i,o,f){if(!i.ok)throw new Error(await Y5(i));const r=await i.json();return w2(r,o,f)}async function Y5(i){const o=await i.text();return X5(o)??`${i.status}: ${o||i.statusText}`}function X5(i){try{const o=JSON.parse(i);if(typeof o=="object"&&o!==null&&!Array.isArray(o)&&typeof o.error=="string")return o.error}catch{}return null}async function Pf(i){return en(await fetch(`/api/reviews/${i}`),z5,"review response")}async function Q5(i,o,f){const r={comments:o,reviewScope:f};return en(await fetch(`/api/reviews/${i}/submit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r)}),v5,"submit review response")}async function e2(i,o,f,r={}){const h={filePath:o,turnId:f,...r};return en(await fetch(`/api/reviews/${i}/files/open`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),g5,"open file response")}async function Z5(){return en(await fetch("/api/open-targets"),b5,"open targets response")}async function t2(i,o,f,r={}){const h={filePath:o,turnId:f,...r};return en(await fetch(`/api/reviews/${i}/files/content`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),S5,"file content response")}async function K5(i,o,f,r){const h={fromSha:o,toSha:f,turnId:r};return en(await fetch(`/api/reviews/${i}/commits/range`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),x5,"commit range diff response")}async function J5({filePath:i,lineCount:o,newStart:f,oldPath:r,oldStart:h,reviewId:g,source:w,turnId:_}){const S={filePath:i,oldPath:r,turnId:_,source:w,oldStart:h,newStart:f,lineCount:o};return en(await fetch(`/api/reviews/${g}/files/context`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(S)}),j5,"diff context response")}async function $5({column:i,filePath:o,line:f,oldPath:r,reviewId:h,side:g,source:w,symbol:_,turnId:S}){const y={filePath:o,oldPath:r,turnId:S,source:w,side:g,line:f,column:i,symbol:_};return en(await fetch(`/api/reviews/${h}/source-peek`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(y)}),E5,"source peek response")}const F5="modulepreload",W5=function(i){return"/"+i},l2={},R2=function(o,f,r){let h=Promise.resolve();if(f&&f.length>0){let w=function(y){return Promise.all(y.map(T=>Promise.resolve(T).then(L=>({status:"fulfilled",value:L}),L=>({status:"rejected",reason:L}))))};document.getElementsByTagName("link");const _=document.querySelector("meta[property=csp-nonce]"),S=(_==null?void 0:_.nonce)||(_==null?void 0:_.getAttribute("nonce"));h=w(f.map(y=>{if(y=W5(y),y in l2)return;l2[y]=!0;const T=y.endsWith(".css"),L=T?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${L}`))return;const B=document.createElement("link");if(B.rel=T?"stylesheet":F5,T||(B.as="script"),B.crossOrigin="",B.href=y,S&&B.setAttribute("nonce",S),document.head.appendChild(B),T)return new Promise((F,te)=>{B.addEventListener("load",F),B.addEventListener("error",()=>te(new Error(`Unable to preload CSS for ${y}`)))})}))}function g(w){const _=new Event("vite:preloadError",{cancelable:!0});if(_.payload=w,window.dispatchEvent(_),!_.defaultPrevented)throw w}return h.then(w=>{for(const _ of w||[])_.status==="rejected"&&g(_.reason);return o().catch(g)})};function k1(i){return i.type==="delete"?"L":"R"}function V1(i){return k1(i)==="L"?i.oldLine:i.newLine}function Si(i,o){return`${i}:${o}`}const L2="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Qc=32,I5=16,H2=10,n2=0xffffffffffff;var jn;(function(i){i.Base32IncorrectEncoding="B32_ENC_INVALID",i.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",i.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",i.EncodeTimeNegative="ENC_TIME_NEG",i.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",i.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",i.PRNGDetectFailure="PRNG_DETECT",i.ULIDInvalid="ULID_INVALID",i.Unexpected="UNEXPECTED",i.UUIDInvalid="UUID_INVALID"})(jn||(jn={}));class gi extends Error{constructor(o,f){super(`${f} (${o})`),this.name="ULIDError",this.code=o}}function P5(i){const o=Math.floor(i()*Qc)%Qc;return L2.charAt(o)}function em(i){const o=tm(),f=o&&(o.crypto||o.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 gi(jn.PRNGDetectFailure,"Failed to find a reliable PRNG")}function tm(){return am()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function lm(i,o){let f="";for(;i>0;i--)f=P5(o)+f;return f}function nm(i,o=H2){if(isNaN(i))throw new gi(jn.EncodeTimeValueMalformed,`Time must be a number: ${i}`);if(i>n2)throw new gi(jn.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${n2}: ${i}`);if(i<0)throw new gi(jn.EncodeTimeNegative,`Time must be positive: ${i}`);if(Number.isInteger(i)===!1)throw new gi(jn.EncodeTimeValueMalformed,`Time must be an integer: ${i}`);let f,r="";for(let h=o;h>0;h--)f=i%Qc,r=L2.charAt(f)+r,i=(i-f)/Qc;return r}function am(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function im(i,o){const f=em(),r=Date.now();return nm(r,H2)+lm(I5,f)}const a2=i=>{let o;const f=new Set,r=(y,T)=>{const L=typeof y=="function"?y(o):y;if(!Object.is(L,o)){const B=o;o=T??(typeof L!="object"||L===null)?L:Object.assign({},o,L),f.forEach(F=>F(o,B))}},h=()=>o,_={setState:r,getState:h,getInitialState:()=>S,subscribe:y=>(f.add(y),()=>f.delete(y))},S=o=i(r,h,_);return _},cm=(i=>i?a2(i):a2),um=i=>i;function sm(i,o=um){const f=vi.useSyncExternalStore(i.subscribe,vi.useCallback(()=>o(i.getState()),[i,o]),vi.useCallback(()=>o(i.getInitialState()),[i,o]));return vi.useDebugValue(f),f}const i2=i=>{const o=cm(i),f=r=>sm(o,r);return Object.assign(f,o),f},om=(i=>i?i2(i):i2),At=om((i,o)=>({comments:[],resolution:null,draft:null,setDraft:f=>i({draft:f}),hydrateComments:f=>i({comments:f,resolution:null,draft:null}),hydrateReview:(f,r=null)=>i({comments:f,resolution:r,draft:null}),addComment:f=>{const r=o().draft;!r||f.trim().length===0||i(h=>({comments:[...h.comments,{id:im(),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}))},removeComment:f=>i(r=>({comments:r.comments.filter(h=>h.id!==f)})),reset:()=>i({comments:[],resolution:null,draft:null})})),U2="gloss:theme-preference",rm="(prefers-color-scheme: dark)",fm=new Set(["system","light","dark"]),B2=A.createContext(null);function dm(i){return!!(i&&fm.has(i))}function hm(i=q2()){if(!i)return"system";try{const o=i.getItem(U2);return dm(o)?o:"system"}catch{return"system"}}function mm(i,o=q2()){if(o)try{o.setItem(U2,i)}catch{}}function O1(i){return i?"dark":"light"}function ym(i,o){return i==="system"?o:i}function pm(i,o=bm()){o&&(o.dataset.theme=i)}function vm({children:i}){const[o,f]=A.useState(()=>hm()),[r,h]=A.useState(()=>gm()),g=ym(o,r);A.useEffect(()=>{const S=k2();if(!S)return;const y=T=>{h(O1(T.matches))};return h(O1(S.matches)),typeof S.addEventListener=="function"?(S.addEventListener("change",y),()=>S.removeEventListener("change",y)):(S.addListener(y),()=>S.removeListener(y))},[]),A.useEffect(()=>{pm(g)},[g]);const w=A.useCallback(S=>{mm(S),f(S)},[]),_=A.useMemo(()=>({preference:o,resolvedTheme:g,setPreference:w}),[o,g,w]);return u.jsx(B2.Provider,{value:_,children:i})}function G1(){const i=A.useContext(B2);if(!i)throw new Error("useTheme must be used within ThemeProvider");return i}function gm(i=k2()){return O1(!!(i!=null&&i.matches))}function q2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function k2(){try{return typeof window>"u"||typeof window.matchMedia!="function"?null:window.matchMedia(rm)}catch{return null}}function bm(){return typeof document>"u"?null:document.documentElement}function Sm(i){return V2(i)&&!i.shiftKey}function xm(i){return V2(i)&&i.shiftKey===!0}function V2(i){var o;return i.key==="Enter"&&i.metaKey===!0&&i.ctrlKey!==!0&&i.altKey!==!0&&i.repeat!==!0&&i.defaultPrevented!==!0&&i.isComposing!==!0&&((o=i.nativeEvent)==null?void 0:o.isComposing)!==!0}function jm({tone:i}){const o=At(T=>T.draft),f=At(T=>T.setDraft),r=At(T=>T.addComment),[h,g]=A.useState(""),w=A.useRef(null);if(A.useEffect(()=>{var T;o&&((T=w.current)==null||T.focus({preventScroll:!0}))},[o]),!o)return null;const _=o.startLine===o.endLine?`Comment on line ${bi(o)}`:`Comment on range ${bi(o)}`,S=()=>{g(""),f(null)},y=()=>{r(h),g("")};return u.jsx("div",{className:`draft-comment-shell tone-${i}`,children:u.jsxs("div",{className:"draft-comment-card",children:[u.jsxs("div",{className:"draft-comment-title",children:[u.jsxs("span",{className:"draft-comment-heading",children:[u.jsx("span",{className:"draft-comment-icon","aria-hidden":"true",children:u.jsx(hh,{size:15})}),u.jsx("span",{children:"Local comment"})]}),u.jsx("span",{className:"draft-comment-label",children:_})]}),u.jsx("textarea",{"aria-label":_,placeholder:"Request change",ref:w,value:h,onChange:T=>g(T.target.value),onKeyDown:T=>{Sm(T)&&(T.preventDefault(),y())}}),u.jsxs("div",{className:"draft-comment-actions",children:[u.jsx("button",{className:"secondary-button",type:"button",onClick:S,children:"Cancel"}),u.jsx("button",{"aria-keyshortcuts":"Meta+Enter",className:"primary-button",title:"Comment (Command+Enter)",type:"button",onClick:y,children:"Comment"})]})]})})}const Em=20;function zm(i,o){const f=o.oldStart-i.oldStart,r=f+o.lineCount-1,h=f>0,g=r<i.lineCount-1;return h&&g?"all":h?"down":g||i.beforeHunkIndex===0?"up":"all"}function Y1(i){const o=[];let f=0,r=0;return i.hunks.forEach((h,g)=>{const w=h.oldStart>f+1?h.oldStart-f-1:0,_=h.newStart>r+1?h.newStart-r-1:0,S=Math.min(w,_);if(S>0){const y=f+1,T=r+1;o.push({id:`${i.path}:${y}:${T}:${S}`,beforeHunkIndex:g,filePath:i.path,oldPath:i.oldPath,oldStart:y,newStart:T,lineCount:S})}f=h.oldStart+h.oldLines-1,r=h.newStart+h.newLines-1}),o}function Nm(i,o){const f=Wc(i,o),r=G2(i,f),h=X1(i,o);if(r.length===0)return h.length>0?[{type:"lines",lines:h}]:[];const g=r[0]??0,w=r.at(-1)??i.lineCount-1,_=h.filter(y=>{const T=Zc(i,y);return T!=null&&T<g}),S=h.filter(y=>{const T=Zc(i,y);return T!=null&&T>w});return[..._.length>0?[{type:"lines",lines:_}]:[],{type:"hidden",oldStart:i.oldStart+g,newStart:i.newStart+g,lineCount:w-g+1},...S.length>0?[{type:"lines",lines:S}]:[]]}function wm(i,o,f,r=Em){const h=Wc(i,o),g=G2(i,h);if(g.length===0)return null;let w,_;if(f==="all")w=g[0]??0,_=g.at(-1)??i.lineCount-1,_=Math.min(_,w+r5-1);else if(f==="down"){for(w=g[0]??0,_=w;_+1<i.lineCount&&!h.has(_+1);)_+=1;_=Math.min(_,w+r-1)}else{for(_=g.at(-1)??i.lineCount-1,w=_;w-1>=0&&!h.has(w-1);)w-=1;w=Math.max(w,_-r+1)}return{oldStart:i.oldStart+w,newStart:i.newStart+w,lineCount:_-w+1}}function Tm(i,o,f){const r=Wc(i,o);for(const h of f){const g=Zc(i,h);g!=null&&r.set(g,h)}return{lines:Array.from(r.entries()).toSorted(([h],[g])=>h-g).map(([,h])=>h),loading:!1,error:null}}function X1(i,o){return Array.from(Wc(i,o).entries()).toSorted(([f],[r])=>f-r).map(([,f])=>f)}function Mm(i,o){const f=new Map(Y1(i).map(r=>[r.beforeHunkIndex,r]));return i.hunks.flatMap((r,h)=>{const g=f.get(h);return[...g?X1(g,o[g.id]):[],...r.lines]})}function Am(i,o){const f=new Map(Y1(i).map(h=>[h.beforeHunkIndex,h])),r=i.hunks.map((h,g)=>{const w=f.get(g),_=w?X1(w,o[w.id]):[];return _.length>0?{...h,lines:[..._,...h.lines]}:h});return{...i,hunks:r}}function G2(i,o){const f=[];for(let r=0;r<i.lineCount;r+=1)o.has(r)||f.push(r);return f}function Wc(i,o){const f=new Map;if(!i||!o)return f;for(const r of o.lines){const h=Zc(i,r);h!=null&&f.set(h,r)}return f}function Zc(i,o){const f=o.oldLine==null?null:o.oldLine-i.oldStart;if(f!=null&&f>=0&&f<i.lineCount)return f;const r=o.newLine==null?null:o.newLine-i.newStart;return r!=null&&r>=0&&r<i.lineCount?r:null}function Y2(i){return`gloss-file-${encodeURIComponent(i)}`}const Ae='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Ce='</title><path d="',_e='"/></svg>',Cm={title:"Android Studio",slug:"androidstudio",get svg(){return Ae+"Android Studio"+Ce+this.path+_e},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"},_m={title:"CLion",slug:"clion",get svg(){return Ae+"CLion"+Ce+this.path+_e},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/"},Om={title:"CSS",slug:"css",get svg(){return Ae+"CSS"+Ce+this.path+_e},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"},Dm={title:"Cursor",slug:"cursor",get svg(){return Ae+"Cursor"+Ce+this.path+_e},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"},Rm={title:"DataGrip",slug:"datagrip",get svg(){return Ae+"DataGrip"+Ce+this.path+_e},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/"},Lm={title:"Ghostty",slug:"ghostty",get svg(){return Ae+"Ghostty"+Ce+this.path+_e},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"},Hm={title:"GNU Bash",slug:"gnubash",get svg(){return Ae+"GNU Bash"+Ce+this.path+_e},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"}},Um={title:"GNU Emacs",slug:"gnuemacs",get svg(){return Ae+"GNU Emacs"+Ce+this.path+_e},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"}},Bm={title:"Go",slug:"go",get svg(){return Ae+"Go"+Ce+this.path+_e},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"},qm={title:"GoLand",slug:"goland",get svg(){return Ae+"GoLand"+Ce+this.path+_e},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"},km={title:"HTML5",slug:"html5",get svg(){return Ae+"HTML5"+Ce+this.path+_e},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"},Vm={title:"IntelliJ IDEA",slug:"intellijidea",get svg(){return Ae+"IntelliJ IDEA"+Ce+this.path+_e},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/"},Gm={title:"iTerm2",slug:"iterm2",get svg(){return Ae+"iTerm2"+Ce+this.path+_e},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"},Ym={title:"JavaScript",slug:"javascript",get svg(){return Ae+"JavaScript"+Ce+this.path+_e},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"}},Xm={title:"JSON",slug:"json",get svg(){return Ae+"JSON"+Ce+this.path+_e},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"},Qm={title:"Lapce",slug:"lapce",get svg(){return Ae+"Lapce"+Ce+this.path+_e},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"},Zm={title:"Markdown",slug:"markdown",get svg(){return Ae+"Markdown"+Ce+this.path+_e},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"}},Km={title:"Neovim",slug:"neovim",get svg(){return Ae+"Neovim"+Ce+this.path+_e},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"}},Jm={title:"PhpStorm",slug:"phpstorm",get svg(){return Ae+"PhpStorm"+Ce+this.path+_e},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/"},$m={title:"PyCharm",slug:"pycharm",get svg(){return Ae+"PyCharm"+Ce+this.path+_e},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/"},Fm={title:"Python",slug:"python",get svg(){return Ae+"Python"+Ce+this.path+_e},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/"},c2={title:"React",slug:"react",get svg(){return Ae+"React"+Ce+this.path+_e},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"},Wm={title:"Ruby",slug:"ruby",get svg(){return Ae+"Ruby"+Ce+this.path+_e},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"}},Im={title:"RubyMine",slug:"rubymine",get svg(){return Ae+"RubyMine"+Ce+this.path+_e},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"},Pm={title:"Rust",slug:"rust",get svg(){return Ae+"Rust"+Ce+this.path+_e},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"}},e6={title:"Sublime Text",slug:"sublimetext",get svg(){return Ae+"Sublime Text"+Ce+this.path+_e},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"},t6={title:"Swift",slug:"swift",get svg(){return Ae+"Swift"+Ce+this.path+_e},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/"},l6={title:"TypeScript",slug:"typescript",get svg(){return Ae+"TypeScript"+Ce+this.path+_e},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"},n6={title:"Vim",slug:"vim",get svg(){return Ae+"Vim"+Ce+this.path+_e},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"},a6={title:"VSCodium",slug:"vscodium",get svg(){return Ae+"VSCodium"+Ce+this.path+_e},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"},i6={title:"WebStorm",slug:"webstorm",get svg(){return Ae+"WebStorm"+Ce+this.path+_e},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"},c6={title:"Windsurf",slug:"windsurf",get svg(){return Ae+"Windsurf"+Ce+this.path+_e},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"},u6={title:"Xcode",slug:"xcode",get svg(){return Ae+"Xcode"+Ce+this.path+_e},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"},s6={title:"YAML",slug:"yaml",get svg(){return Ae+"YAML"+Ce+this.path+_e},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"},o6={title:"Zed Industries",slug:"zedindustries",get svg(){return Ae+"Zed Industries"+Ce+this.path+_e},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"},r6=[{label:"Default app",target:"default"},{label:"Open in folder",target:"folder"}],u2=190,s2=172,qc=8,f6={"android-studio":{icon:Cm,kind:"simple"},bbedit:{Icon:Pl,kind:"lucide"},clion:{icon:_m,kind:"simple"},coteditor:{Icon:Pl,kind:"lucide"},cursor:{icon:Dm,kind:"simple"},datagrip:{icon:Rm,kind:"simple"},default:{Icon:C3,kind:"lucide"},emacs:{icon:Um,kind:"simple"},fleet:{Icon:Pl,kind:"lucide"},folder:{Icon:x2,kind:"lucide"},ghostty:{icon:Lm,kind:"simple"},goland:{icon:qm,kind:"simple"},intellij:{icon:Vm,kind:"simple"},iterm2:{icon:Gm,kind:"simple"},lapce:{icon:Qm,kind:"simple"},macvim:{icon:n6,kind:"simple"},neovide:{icon:Km,kind:"simple"},nova:{Icon:Pl,kind:"lucide"},phpstorm:{icon:Jm,kind:"simple"},pycharm:{icon:$m,kind:"simple"},rubymine:{icon:Im,kind:"simple"},sublime:{icon:e6,kind:"simple"},terminal:{Icon:Hh,kind:"lucide"},textedit:{Icon:S2,kind:"lucide"},textmate:{Icon:Pl,kind:"lucide"},vscodium:{icon:a6,kind:"simple"},vscode:{Icon:Pl,kind:"lucide"},"vscode-insiders":{Icon:Pl,kind:"lucide"},webstorm:{icon:i6,kind:"simple"},windsurf:{icon:c6,kind:"simple"},xcode:{icon:u6,kind:"simple"},zed:{icon:o6,kind:"simple"}};function X2({fileContent:i,filePath:o,openTargets:f,wordWrap:r,onActionMessage:h,onCopyFileContents:g,onOpenFile:w,onWordWrapChange:_}){const[S,y]=A.useState(!1),[T,L]=A.useState(!1),[B,F]=A.useState(null),[te,se]=A.useState(null),be=A.useRef(null),q=A.useRef(null),de=A.useRef(null),oe=A.useRef(null),ne=A.useRef(null),he=A.useMemo(()=>f.length>0?f:r6,[f]),$=i!==void 0||g!==void 0,K=A.useCallback(()=>{y(!1),L(!1)},[]),Y=A.useCallback(()=>{S&&F(kc(be.current,u2)),T&&se(kc(oe.current,s2))},[S,T]);A.useEffect(()=>{if(!(!S&&!T))return Y(),window.addEventListener("resize",Y),window.addEventListener("scroll",Y,!0),()=>{window.removeEventListener("resize",Y),window.removeEventListener("scroll",Y,!0)}},[S,T,Y]),A.useEffect(()=>{if(!S&&!T)return;const Q=z=>{var W,pe,re;const k=z.target;!((W=de.current)!=null&&W.contains(k))&&!((pe=q.current)!=null&&pe.contains(k))&&!((re=ne.current)!=null&&re.contains(k))&&K()},Se=z=>{z.key==="Escape"&&K()};return window.addEventListener("pointerdown",Q),window.addEventListener("keydown",Se),()=>{window.removeEventListener("pointerdown",Q),window.removeEventListener("keydown",Se)}},[S,K,T]);const ze=async(Q,Se)=>{K();try{await navigator.clipboard.writeText(Q),h==null||h(`${Se} copied`)}catch(z){h==null||h(`Could not copy ${Se.toLowerCase()}: ${z1(z)}`)}},Be=async()=>{K();try{const Q=i??await(g==null?void 0:g());if(Q===void 0)return;await navigator.clipboard.writeText(Q),h==null||h("File contents copied")}catch(Q){h==null||h(`Could not copy file contents: ${z1(Q)}`)}},Te=async(Q,Se)=>{K(),h==null||h(`Opening in ${Se}`);try{await w(Q),h==null||h(`Opened in ${Se}`)}catch(z){h==null||h(`Could not open in ${Se}: ${z1(z)}`)}},H=S&&B?Yc.createPortal(u.jsxs("div",{className:"file-actions-popover actions",ref:q,role:"menu",style:B,children:[u.jsxs("button",{role:"menuitem",type:"button",onClick:()=>ze(o,"Path"),children:[u.jsx(Z3,{size:16}),u.jsx("span",{children:"Copy path"})]}),$?u.jsxs("button",{role:"menuitem",type:"button",onClick:Be,children:[u.jsx(S2,{size:16}),u.jsx("span",{children:"Copy file contents"})]}):null,_?u.jsxs("button",{"aria-checked":!!r,role:"menuitemcheckbox",type:"button",onClick:()=>{_(!r),K()},children:[u.jsx(E2,{size:16}),u.jsxs("span",{children:[r?"Disable":"Enable"," word wrap"]})]}):null]}),document.body):null,Z=T&&te?Yc.createPortal(u.jsx("div",{className:"file-actions-popover open",ref:ne,role:"menu",style:te,children:he.map((Q,Se)=>u.jsxs("button",{className:Se===he.length-1?"separated":"",role:"menuitem",type:"button",onClick:()=>Te(Q.target,Q.label),children:[u.jsx(d6,{option:Q}),u.jsx("span",{children:Q.label})]},Q.target))}),document.body):null;return u.jsxs("div",{className:"file-actions-menu",ref:de,children:[u.jsxs("div",{className:"file-actions-menu-group",children:[u.jsx("button",{"aria-expanded":S,"aria-haspopup":"menu","aria-label":"File actions",className:"icon-button file-actions-menu-trigger",ref:be,type:"button",onClick:()=>{F(kc(be.current,u2)),y(Q=>!Q),L(!1)},children:u.jsx(J3,{size:17})}),H]}),u.jsxs("div",{className:"file-actions-menu-group",children:[u.jsxs("button",{"aria-expanded":T,"aria-haspopup":"menu",className:"file-actions-open-button",ref:oe,type:"button",onClick:()=>{se(kc(oe.current,s2)),L(Q=>!Q),y(!1)},children:[u.jsx(F3,{size:16}),u.jsx("span",{children:"Open"}),u.jsx(Tn,{size:15})]}),Z]})]})}function kc(i,o){if(!i)return null;const f=i.getBoundingClientRect(),r=Math.max(qc,window.innerWidth-f.right),h=Math.max(qc,window.innerWidth-o-qc);return{right:Math.min(r,h),top:f.bottom+qc}}function d6({option:i}){const o=f6[i.target];return o.kind==="simple"?u.jsx("svg",{"aria-hidden":"true",className:"file-actions-brand-icon",focusable:"false",role:"img",style:{color:h6(o.icon)},viewBox:"0 0 24 24",children:u.jsx("path",{d:o.icon.path})}):u.jsx(o.Icon,{"aria-hidden":"true",className:"file-actions-target-icon",size:16})}function h6(i){return i.hex==="000000"?"var(--ide-fg-muted)":`#${i.hex}`}function z1(i){return i instanceof Error?i.message:String(i)}const m6={bash:Hm,css:Om,go:Bm,html:km,js:Ym,json:Xm,jsx:c2,markdown:Zm,python:Fm,ruby:Wm,rust:Pm,swift:t6,ts:l6,tsx:c2,yaml:s6};function y6(i,o=!1){if(!i||o)return null;const f=m6[i];return f?{icon:f,color:v6(f.hex)}:null}function p6({isBinary:i=!1,language:o}){const f=y6(o,i);return f?u.jsx("span",{"aria-hidden":"true",className:"file-language-icon",style:{color:f.color},title:`${f.icon.title} file`,children:u.jsx("svg",{"aria-hidden":"true",className:"file-language-icon-svg",fill:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{d:f.icon.path})})}):u.jsx("span",{"aria-hidden":"true",className:"file-language-icon",title:"File",children:u.jsx(H1,{size:17})})}function v6(i){const o=i.trim().replace(/^#/,"");if(!/^[\dA-Fa-f]{6}$/.test(o))return"currentColor";const f=Number.parseInt(o.slice(0,2),16),r=Number.parseInt(o.slice(2,4),16),h=Number.parseInt(o.slice(4,6),16),g=(.2126*f+.7152*r+.0722*h)/255;return g<.15||g>.9?"currentColor":`#${o}`}function g6({file:i,collapsed:o,viewed:f,onToggle:r,onCopyFileContents:h,onViewedChange:g,onOpenFile:w,openTargets:_}){return u.jsxs("div",{className:"file-header",children:[u.jsxs("button",{className:"file-header-toggle",type:"button",onClick:r,children:[o?u.jsx(g2,{size:18}):u.jsx(Tn,{size:18}),u.jsx(p6,{isBinary:i.isBinary,language:i.language}),u.jsx("span",{className:"file-path",children:i.path}),i.oldPath&&i.oldPath!==i.path?u.jsxs("span",{className:"rename-path",children:["from ",i.oldPath]}):null]}),u.jsxs("span",{className:"stat add",children:["+",i.additions]}),u.jsxs("span",{className:"stat del",children:["-",i.deletions]}),u.jsxs("label",{className:"viewed-toggle",children:[u.jsx("input",{type:"checkbox",checked:f,onChange:S=>g(S.currentTarget.checked)}),u.jsx("span",{children:"Viewed"})]}),u.jsx(X2,{filePath:i.path,openTargets:_,onCopyFileContents:h,onOpenFile:async S=>w(S)})]})}const b6=[];function S6({activeFilePath:i=null,contextSource:o,emptyState:f=null,files:r,record:h,diff:g=h.diff,readOnly:w=!1,reviewId:_,turnId:S,wrapLines:y=!1,viewedFiles:T=new Set,onViewedChange:L=()=>{},openTargets:B=b6,selectedSourcePeek:F=null,onCopyFileContents:te,onOpenFile:se=()=>{},onSourcePeek:be=()=>{}}){const[q,de]=A.useState(new Set),oe=A.useRef(i),ne=At(Y=>Y.draft),he=At(Y=>Y.setDraft),$=r??g.files;if(i!==oe.current&&(oe.current=i,i&&q.has(i))){const Y=new Set(q);Y.delete(i),de(Y)}const K=(Y,ze)=>{ze&&((ne==null?void 0:ne.filePath)===Y&&he(null),de(Be=>{const Te=new Set(Be);return Te.add(Y),Te})),L(Y,ze)};return u.jsx("section",{className:"diff-stack",children:$.length===0?f??u.jsx(x6,{record:h}):$.map(Y=>{const ze=q.has(Y.path);return u.jsxs("article",{className:`file-card ${i===Y.path?"active":""}`,id:Y2(Y.path),children:[u.jsx(g6,{file:Y,openTargets:B,collapsed:ze,viewed:T.has(Y.path),onToggle:()=>{!ze&&(ne==null?void 0:ne.filePath)===Y.path&&he(null),de(Be=>{const Te=new Set(Be);return Te.has(Y.path)?Te.delete(Y.path):Te.add(Y.path),Te})},onCopyFileContents:te?()=>te(Y.path):void 0,onViewedChange:Be=>K(Y.path,Be),onOpenFile:Be=>se(Y.path,Be)}),ze?null:u.jsx(j6,{contextSource:o,file:Y,readOnly:w,reviewId:_,selectedSourcePeek:F,turnId:S,wrapLines:y,onSourcePeek:be},`${Y.oldPath??""}:${Y.path}:${C6(_,S,o)}`)]},`${Y.oldPath??Y.path}:${Y.path}`)})})}function x6({record:i}){const o=i.diff.scope;return o.mode==="branch"?u.jsxs("div",{className:"empty-diff",children:[u.jsx("h2",{children:"No branch changes"}),u.jsxs("p",{children:["Working tree is clean, and ",o.comparison.ref," matches ",o.base.ref,"."]})]}):o.fallbackReason==="missing-branch-base"?u.jsxs("div",{className:"empty-diff",children:[u.jsx("h2",{children:"No changes to review"}),u.jsx("p",{children:"Working tree is clean and no upstream or default branch ref was found."})]}):o.mode==="explicit"?u.jsxs("div",{className:"empty-diff",children:[u.jsxs("h2",{children:["No changes against ",o.base.ref]}),u.jsx("p",{children:"The captured diff for this explicit base is empty."})]}):u.jsxs("div",{className:"empty-diff",children:[u.jsx("h2",{children:"No working changes"}),u.jsx("p",{children:"Working tree is clean."})]})}function j6({contextSource:i,file:o,readOnly:f,reviewId:r,selectedSourcePeek:h,turnId:g,wrapLines:w,onSourcePeek:_}){const S=At(M=>M.comments),y=At(M=>M.resolution),T=At(M=>M.draft),L=At(M=>M.setDraft),{resolvedTheme:B}=G1(),[F,te]=A.useState(null),[se,be]=A.useState(null),[q,de]=A.useState(null),[oe,ne]=A.useState({}),he=A.useRef(null),$=A.useRef(null),K=A.useMemo(()=>Y1(o),[o]),Y=A.useMemo(()=>new Map(K.map(M=>[M.beforeHunkIndex,M])),[K]),ze=A.useMemo(()=>Am(o,oe),[oe,o]),Be=A.useMemo(()=>Mm(o,oe),[oe,o]),Te=A.useMemo(()=>_6(Be),[Be]),H=A.useMemo(()=>new Map(((y==null?void 0:y.comments)??[]).map(M=>[M.commentId,M])),[y]),Z=S.filter(M=>M.filePath===o.path),Q=F&&se&&F.filePath===o.path&&F.side===se.side?D1(Te,F.side,F.line,se.line):null,Se=T&&T.filePath===o.path?D1(Te,T.side,T.startLine,T.endLine):null,z=M=>{const{start:V,end:ue}=M,ee=Math.min(V.line,ue.line),ge=Math.max(V.line,ue.line),Qe=O6(Be,Te,V.side,ee,ge)||V.snippet;L({filePath:o.path,side:V.side,startLine:ee,endLine:ge,originalSnippet:Qe})};A.useEffect(()=>()=>{var M;return(M=$.current)==null?void 0:M.call($)},[]);const k=M=>{var ee;if(M.dataset.filePath!==o.path)return null;const V=M.dataset.side,ue=Number(M.dataset.line);return V!=="L"&&V!=="R"||!Number.isFinite(ue)?null:{filePath:o.path,side:V,line:ue,snippet:((ee=M.querySelector("code"))==null?void 0:ee.textContent)??""}},W=M=>{const V=k(M);V&&p(V)},pe=(M,V)=>{var Qe;if(V.button!==0)return;V.preventDefault(),(Qe=$.current)==null||Qe.call($),he.current={start:M,end:M},te(M),be(M);const ue=yt=>{var at;const pt=(at=document.elementFromPoint(yt.clientX,yt.clientY))==null?void 0:at.closest(".diff-row");pt&&W(pt)},ee=yt=>{ue(yt);const pt=he.current;pt&&z(pt),O()},ge=()=>O();window.addEventListener("mousemove",ue),window.addEventListener("mouseup",ee),window.addEventListener("blur",ge),$.current=()=>{window.removeEventListener("mousemove",ue),window.removeEventListener("mouseup",ee),window.removeEventListener("blur",ge),$.current=null}},re=(M,V)=>{var ue;V.key!=="Enter"&&V.key!==" "||V.repeat||V.defaultPrevented||V.nativeEvent.isComposing||(V.preventDefault(),(ue=$.current)==null||ue.call($),he.current=null,te(null),be(null),z({start:M,end:M}))},p=M=>{const V=he.current;(V==null?void 0:V.start.filePath)===o.path&&V.start.side===M.side&&(he.current={...V,end:M},be(M))},O=()=>{var M;(M=$.current)==null||M.call($),he.current=null,te(null),be(null)},U=async(M,V)=>{if(!r||!i)return;const ue=wm(M,oe[M.id],V);if(ue){ne(ee=>{var ge;return{...ee,[M.id]:{lines:((ge=ee[M.id])==null?void 0:ge.lines)??[],loading:!0,error:null}}});try{const ee=await J5({reviewId:r,filePath:M.filePath,oldPath:M.oldPath,turnId:g,source:i,...ue});ne(ge=>({...ge,[M.id]:Tm(M,ge[M.id],ee.lines)}))}catch(ee){ne(ge=>{var Qe;return{...ge,[M.id]:{lines:((Qe=ge[M.id])==null?void 0:Qe.lines)??[],loading:!1,error:ee instanceof Error?ee.message:String(ee)}}})}}};A.useEffect(()=>{let M=!1;return R2(async()=>{const{highlightDiffFile:V}=await import("./syntax-CEpwlb09.js");return{highlightDiffFile:V}},[]).then(({highlightDiffFile:V})=>V(ze,B)).then(V=>{M||de(V)}).catch(()=>{M||de(null)}),()=>{M=!0}},[ze,B]);const X=(M,V)=>{const ue=k1(M),ee=V1(M);if(ee==null)return null;const ge={filePath:o.path,side:ue,line:ee,snippet:M.content},Qe=Te.get(Si(ue,ee)),yt=Qe!=null&&r2(Qe,Q)?Q:Qe!=null&&r2(Qe,Se)?Se:null,pt=Qe!=null&&yt?A6(Qe,yt.start,yt.end):"",at=T&&T.filePath===o.path&&T.side===ue&&ee===T.endLine,tn=Z.filter(Fe=>Fe.side===ue&&ee===Math.max(Fe.startLine,Fe.endLine));return u.jsxs("div",{children:[u.jsxs("div",{className:`diff-row ${M.type} ${f?"read-only":""} ${pt} ${at?"range-continues":""}`,"data-file-path":o.path,"data-line":ee,"data-side":ue,children:[pt?u.jsx("span",{className:"selection-rail","aria-hidden":"true"}):null,u.jsxs("div",{className:"diff-gutter",children:[u.jsx("span",{className:"line-number old",children:M.oldLine??""}),u.jsx("span",{className:"line-number new",children:M.newLine??""}),u.jsx("span",{className:"marker",children:Q2(M)}),f?null:u.jsx("button",{"aria-label":`Comment on ${o.path} line ${ee}`,className:"comment-handle",type:"button",onMouseDown:Fe=>pe(ge,Fe),onKeyDown:Fe=>re(ge,Fe),children:u.jsx(Mh,{size:16,strokeWidth:2.4})})]}),u.jsx(w6,{content:M.content,selectedSourcePeek:h&&h.filePath===o.path&&h.oldPath===o.oldPath&&h.side===ue&&h.line===ee?h:null,tokens:(q==null?void 0:q.get(Si(ue,ee)))??null,onSourcePeek:(Fe,gt)=>_({column:gt,filePath:o.path,line:ee,oldPath:o.oldPath,side:ue,symbol:Fe})})]}),tn.map(Fe=>{const gt=H.get(Fe.id);return u.jsxs("div",{className:`inline-comment ${gt?"resolved":"open"}`,children:[gt?u.jsx(b2,{size:14}):u.jsx(j2,{size:14}),u.jsxs("span",{className:"inline-comment-content",children:[f?u.jsx("span",{className:"inline-comment-status",children:gt?"Resolved":"Open · Needs fix"}):null,u.jsx("span",{className:"inline-comment-body",children:Fe.body}),gt!=null&&gt.summary?u.jsx("span",{className:"inline-comment-summary",children:gt.summary}):null]})]},Fe.id)}),at&&!f?u.jsx(jm,{tone:M.type}):null]},`${V}:${M.type}:${M.oldLine??"x"}:${M.newLine??"x"}:${M.content}`)},ce=M=>Nm(M,oe[M.id]).map(V=>{var ue,ee;return V.type==="lines"?V.lines.map(ge=>X(ge,`context:${M.id}`)):u.jsx(E6,{canExpand:!!(r&&i),direction:zm(M,V),error:((ue=oe[M.id])==null?void 0:ue.error)??null,loading:((ee=oe[M.id])==null?void 0:ee.loading)??!1,segment:V,onExpand:ge=>{U(M,ge)}},`hidden:${M.id}:${V.oldStart}:${V.newStart}:${V.lineCount}`)});return u.jsx("section",{"aria-label":`${o.path} diff`,className:`diff-scroller ${w?"wrap-lines":""}`,children:u.jsxs("div",{className:`diff-table ${F?"selecting":""}`,children:[o.isBinary?u.jsx("div",{className:"binary-note",children:"Binary file changed"}):null,o.hunks.map((M,V)=>{const ue=Y.get(V);return u.jsxs("div",{className:"hunk",children:[ue?ce(ue):null,u.jsx("div",{className:"hunk-header",children:M.header||`@@ -${M.oldStart},${M.oldLines} +${M.newStart},${M.newLines} @@`}),M.lines.map(ee=>X(ee,"hunk"))]},`${M.oldStart}:${M.newStart}`)})]})},w?"wrapped":"unwrapped")}function E6({canExpand:i,direction:o,error:f,loading:r,segment:h,onExpand:g}){const w=!i||!!r,_=z6(o);return u.jsxs("div",{className:"hidden-lines",children:[u.jsxs("div",{className:"hidden-lines-main",children:[u.jsx("span",{className:"hidden-lines-count",children:r?u.jsxs(u.Fragment,{children:[u.jsx(U1,{className:"spin",size:14}),"Loading context"]}):`${h.lineCount} unmodified ${h.lineCount===1?"line":"lines"}`}),u.jsx("div",{className:"hidden-lines-actions",children:u.jsx("button",{"aria-label":_,className:"hidden-lines-action",disabled:w,title:_,type:"button",onClick:()=>g(o),children:u.jsx(N6,{direction:o})})})]}),f?u.jsx("div",{className:"hidden-lines-error",children:f}):null]})}function z6(i){return i==="up"?"Expand hidden context upward":i==="down"?"Expand hidden context downward":"Expand hidden context"}function N6({direction:i}){return i==="up"?u.jsx(H3,{size:15}):i==="down"?u.jsx(Tn,{size:15}):u.jsx(B3,{size:15})}function w6({content:i,selectedSourcePeek:o,tokens:f,onSourcePeek:r}){return!f||f.length===0?u.jsx("code",{children:u.jsx(o2,{offsetBase:0,selectedSourcePeek:o,text:i||" ",onSourcePeek:r})}):u.jsx("code",{children:f.map(h=>{const g=M6(h);return u.jsx("span",{style:g,children:u.jsx(o2,{offsetBase:h.offset,selectedSourcePeek:o,style:g,text:h.content,onSourcePeek:r})},`${h.offset}:${h.content}`)})})}const N1=/[A-Za-z_$][\w$]*/g,T6=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 o2({offsetBase:i,selectedSourcePeek:o,style:f,text:r,onSourcePeek:h}){const g=[];let w=0;N1.lastIndex=0;let _=N1.exec(r);for(;_!==null;){const S=_[0],y=_.index;if(y>w&&g.push(r.slice(w,y)),T6.has(S))g.push(S);else{const T=i+y,L=(o==null?void 0:o.column)===T&&o.symbol===S;g.push(u.jsx("button",{"aria-current":L?"location":void 0,className:`source-symbol ${L?"selected":""}`,"data-source-symbol":S,style:f,tabIndex:-1,type:"button",onClick:B=>{!B.metaKey&&!B.ctrlKey||(B.preventDefault(),B.stopPropagation(),h(S,T))},onContextMenu:B=>{B.ctrlKey&&(B.preventDefault(),B.stopPropagation(),h(S,T))},onMouseDown:B=>{(B.metaKey||B.ctrlKey)&&B.preventDefault()},onKeyDown:B=>{B.key!=="Enter"&&B.key!==" "||!B.metaKey&&!B.ctrlKey||(B.preventDefault(),B.stopPropagation(),h(S,T))},children:S},`${i}:${y}:${S}`))}w=y+S.length,_=N1.exec(r)}return w<r.length&&g.push(r.slice(w)),u.jsx(u.Fragment,{children:g.length>0?g:r})}function M6(i){const o={};i.color&&(o.color=i.color),i.fontStyle&&(i.fontStyle&1)!==0&&(o.fontStyle="italic"),i.fontStyle&&(i.fontStyle&2)!==0&&(o.fontWeight=700);const f=[];return i.fontStyle&&(i.fontStyle&4)!==0&&f.push("underline"),i.fontStyle&&(i.fontStyle&8)!==0&&f.push("line-through"),f.length>0&&(o.textDecorationLine=f.join(" ")),o}function Q2(i){return i.type==="add"?"+":i.type==="delete"?"-":" "}function A6(i,o,f){return o===f?"range-selected range-single":i===o?"range-selected range-start":i===f?"range-selected range-end":"range-selected range-middle"}function C6(i,o,f){return!i||!f?"":f.mode==="turn"?`${i}:${o??""}:turn`:f.mode==="commit"?`${i}:${o??""}:commit:${f.sha}`:`${i}:${o??""}:range:${f.fromSha}:${f.toSha}`}function _6(i){const o=new Map;let f=0;for(const r of i){const h=k1(r),g=V1(r);g!=null&&(o.set(Si(h,g),f),f+=1)}return o}function D1(i,o,f,r){const h=i.get(Si(o,f)),g=i.get(Si(o,r));return h==null||g==null?null:{start:Math.min(h,g),end:Math.max(h,g)}}function r2(i,o){return!!(o&&i>=o.start&&i<=o.end)}function O6(i,o,f,r,h){const g=[],w=D1(o,f,r,h);if(!w)return"";i.forEach((S,y)=>{V1(S)!=null&&y>=w.start&&y<=w.end&&g.push(S)});const _=new Set(g.map(S=>S.type)).size>1;return g.map(S=>_?`${Q2(S)}${S.content}`:S.content).join(`
297
- `)}const Vc="__gloss_no_extension__";function D6(i){const o=[i.name];let f=i;for(;f.children.length===1&&f.children[0].type==="directory";)f=f.children[0],o.push(f.name);return{name:o.join("/"),node:f}}function R6(i){const o=new Map;for(const f of i){const r=Z2(f.path),h=o.get(r);h?h.count+=1:o.set(r,{id:r,label:r===Vc?"No extension":r,count:1})}return Array.from(o.values()).sort((f,r)=>f.id===Vc?1:r.id===Vc?-1:f.label.localeCompare(r.label,void 0,{sensitivity:"base"}))}function L6(i,o,f){const r=o.trim().toLowerCase();return f.size===0?[]:i.filter(h=>{const g=f.has(Z2(h.path)),w=r.length===0||h.path.toLowerCase().includes(r);return g&&w})}function H6(i){const o={type:"directory",id:"root",name:"",path:"",children:[]},f=new Map;for(const r of i){const h=r.path.split("/").filter(Boolean);let g=o;for(const[w,_]of h.entries()){const S=w===h.length-1,y=h.slice(0,w+1).join("/");S?g.children.push({type:"file",id:`file:${r.path}`,name:_,path:r.path,file:r}):g=U6(g,_,y,f)}}return K2(o),o}function U6(i,o,f,r){let h=r.get(i);h||(h=new Map,r.set(i,h));const g=h.get(o);if(g)return g;const w={type:"directory",id:`dir:${f}`,name:o,path:f,children:[]};return i.children.push(w),h.set(o,w),w}function Z2(i){const o=i.split("/").pop()??i,f=o.lastIndexOf(".");return f<=0||f===o.length-1?Vc:o.slice(f).toLowerCase()}function K2(i){i.children.sort((o,f)=>o.type!==f.type?o.type==="directory"?-1:1:o.name.localeCompare(f.name,void 0,{sensitivity:"base"}));for(const o of i.children)o.type==="directory"&&K2(o)}function f2({activeFilePath:i,extensionBuckets:o,files:f,filteredFiles:r,onCollapse:h,onClearExtensions:g,onFileSelect:w,onSearchChange:_,onSelectAllExtensions:S,onToggleExtension:y,searchQuery:T,selectedExtensionIds:L}){const[B,F]=A.useState(!1),[te,se]=A.useState(new Set),be=A.useRef(null),q=A.useMemo(()=>H6(r),[r]),de=A.useMemo(()=>{const $=q6(q);for(const K of te)$.delete(K);return $},[te,q]),ne=L.size!==o.length;A.useEffect(()=>{if(!B)return;const $=Y=>{var ze;(ze=be.current)!=null&&ze.contains(Y.target)||F(!1)},K=Y=>{Y.key==="Escape"&&F(!1)};return window.addEventListener("pointerdown",$),window.addEventListener("keydown",K),()=>{window.removeEventListener("pointerdown",$),window.removeEventListener("keydown",K)}},[B]);const he=$=>{se(K=>{const Y=new Set(K);return de.has($)?Y.add($):Y.delete($),Y})};return u.jsxs("section",{className:"file-tree-panel","aria-label":"Changed files",children:[u.jsxs("div",{className:"file-tree-header",children:[u.jsx("span",{children:"Changed files"}),h?u.jsx("button",{"aria-label":"Collapse file tree",className:"file-tree-icon-button",title:"Collapse file tree",type:"button",onClick:h,children:u.jsx(jh,{size:15})}):null]}),u.jsxs("div",{className:"file-tree-controls",children:[u.jsxs("label",{className:"file-tree-search",children:[u.jsx(Ch,{size:18}),u.jsx("span",{className:"sr-only",children:"Filter files"}),u.jsx("input",{type:"search",value:T,placeholder:"Filter files...",onChange:$=>_($.target.value)}),T?u.jsx("button",{"aria-label":"Clear file search",className:"file-tree-clear",type:"button",onClick:()=>_(""),children:u.jsx(Jc,{size:14})}):null]}),u.jsxs("div",{className:"file-tree-filter-shell",ref:be,children:[u.jsx("button",{"aria-label":"Filter by file extension","aria-expanded":B,className:`file-tree-filter-button ${ne?"active":""}`,title:"Filter by file extension",type:"button",onClick:()=>F($=>!$),children:u.jsx(Rh,{size:17})}),B?u.jsx(B6,{buckets:o,selectedExtensionIds:L,onClear:g,onSelectAll:S,onToggle:y}):null]})]}),u.jsx("div",{className:"file-tree-summary",children:u.jsxs("span",{children:[r.length," of ",f.length," ",f.length===1?"file":"files"]})}),r.length===0?u.jsx("div",{className:"file-tree-empty",children:f.length===0?"No files changed":"No files match"}):u.jsx("div",{className:"file-tree-list",children:q.children.map($=>u.jsx(J2,{activeFilePath:i,expandedDirectoryIds:de,node:$,depth:0,onFileSelect:w,onToggleDirectory:he},$.id))})]})}function B6({buckets:i,onClear:o,onSelectAll:f,onToggle:r,selectedExtensionIds:h}){return u.jsxs("div",{className:"extension-popover",role:"menu","aria-label":"File extensions",children:[u.jsxs("div",{className:"extension-popover-header",children:[u.jsx("span",{children:"File extensions"}),u.jsxs("div",{className:"extension-popover-actions",children:[u.jsx("button",{type:"button",onClick:f,children:"All"}),u.jsx("button",{type:"button",onClick:o,children:"None"})]})]}),u.jsx("div",{className:"extension-options",children:i.map(g=>{const w=h.has(g.id);return u.jsxs("button",{"aria-checked":w,className:"extension-option",role:"menuitemcheckbox",type:"button",onClick:()=>r(g.id),children:[u.jsx("span",{className:"extension-check",children:w?u.jsx(Nn,{size:16}):null}),u.jsx("span",{className:"extension-label",children:g.label}),u.jsx("span",{className:"extension-count",children:g.count})]},g.id)})})]})}function J2({activeFilePath:i,depth:o,expandedDirectoryIds:f,node:r,onFileSelect:h,onToggleDirectory:g}){const w={paddingLeft:8+o*14};if(r.type==="directory"){const _=D6(r),S=f.has(_.node.id);return u.jsxs("div",{children:[u.jsxs("button",{"aria-expanded":S,className:"file-tree-row directory",style:w,title:_.node.path,type:"button",onClick:()=>g(_.node.id),children:[S?u.jsx(Tn,{size:16}):u.jsx(g2,{size:16}),S?u.jsx(x2,{size:17}):u.jsx(ih,{size:17}),u.jsx("span",{className:"file-tree-name",children:_.name})]}),S?u.jsx("div",{children:_.node.children.map(y=>u.jsx(J2,{activeFilePath:i,expandedDirectoryIds:f,node:y,depth:o+1,onFileSelect:h,onToggleDirectory:g},y.id))}):null]})}return u.jsx("div",{children:u.jsxs("button",{className:`file-tree-row file ${i===r.path?"active":""}`,style:w,title:r.path,type:"button",onClick:()=>h(r.path),children:[u.jsx("span",{className:"file-tree-spacer"}),u.jsx(H1,{size:16}),u.jsx("span",{className:"file-tree-name",children:r.name}),u.jsxs("span",{className:"file-tree-stats",children:[u.jsxs("span",{className:"stat add",children:["+",r.file.additions]}),u.jsxs("span",{className:"stat del",children:["-",r.file.deletions]})]})]})})}function q6(i){const o=new Set,f=r=>{for(const h of r.children)h.type==="directory"&&(o.add(h.id),f(h))};return f(i),o}const k6=16,Kc=360,R1=280;function V6({openTargets:i,onCopyFileContents:o,onOpenFile:f,state:r,onClose:h}){const{resolvedTheme:g}=G1(),w=A.useRef(null),_=A.useRef(null),S=A.useRef(null),y=A.useRef(null),T=A.useRef(null),[L,B]=A.useState(null),[F,te]=A.useState(!1),[se,be]=A.useState(null),q=r.status==="ready"?r.response:null,de=r.status==="error"?Q6(r.message,r.symbol):null,oe=A.useMemo(()=>q?Z6(q.content):[],[q]),ne=q&&(L==null?void 0:L.response)===q&&L.theme===g?L.lines:null,he=q?`${q.filePath}:${q.line}:${q.targetSymbol}`:r.status,[$,K]=A.useState(he);$!==he&&(K(he),se&&be(null));const Y=A.useCallback(H=>{y.current=H,S.current===null&&(S.current=window.requestAnimationFrame(()=>{S.current=null;const Z=y.current,Q=w.current;!Z||!Q||(Q.style.top=`${Math.round(Z.top)}px`,Q.style.left=`${Math.round(Z.left)}px`,Q.style.right="auto",Q.style.bottom="auto",Q.style.width=`${Math.round(Z.width)}px`,Q.style.height=`${Math.round(Z.height)}px`,Q.style.transform="")}))},[]),ze=A.useCallback(()=>{var H;(H=T.current)==null||H.call(T),T.current=null,document.body.classList.remove("source-peek-interacting"),document.body.style.cursor="",document.body.style.userSelect=""},[]);A.useEffect(()=>{const H=Z=>{Z.key==="Escape"&&h()};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[h]),A.useEffect(()=>{if(!se)return;const H=window.setTimeout(()=>be(null),2200);return()=>window.clearTimeout(H)},[se]),A.useEffect(()=>{if(!q)return;let H=!1;return R2(async()=>{const{highlightSourceContent:Z}=await import("./syntax-CEpwlb09.js");return{highlightSourceContent:Z}},[]).then(({highlightSourceContent:Z})=>Z(q.content,q.language,g)).then(Z=>{H||B({lines:Z,response:q,theme:g})}).catch(()=>{H||B({lines:null,response:q,theme:g})}),()=>{H=!0}},[q,g]),A.useEffect(()=>{q&&window.requestAnimationFrame(()=>{var H;(H=_.current)==null||H.scrollIntoView({block:"center"})})},[q]),A.useEffect(()=>{const H=()=>{const Z=w.current;Z&&Y(En(w1(Z)))};return window.requestAnimationFrame(()=>Y(G6())),window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},[Y]),A.useEffect(()=>()=>{ze(),S.current!==null&&window.cancelAnimationFrame(S.current)},[ze]);const Be=H=>{if(H.button!==0||H.target.closest("button"))return;H.preventDefault(),ze();const Z=w.current;if(!Z)return;const Q=En(w1(Z)),Se=H.clientX,z=H.clientY;y.current=Q,document.body.classList.add("source-peek-interacting"),document.body.style.cursor="grabbing",document.body.style.userSelect="none",Z.classList.add("dragging");const k=re=>{const p=En({...Q,left:Q.left+re.clientX-Se,top:Q.top+re.clientY-z});Z.style.transform=`translate3d(${Math.round(p.left-Q.left)}px, ${Math.round(p.top-Q.top)}px, 0)`,y.current=p},W=()=>{const re=y.current??Q;Z.classList.remove("dragging"),Y(re),ze()},pe=()=>{window.removeEventListener("pointermove",k),window.removeEventListener("pointerup",W),Z.classList.remove("dragging")};T.current=pe,window.addEventListener("pointermove",k),window.addEventListener("pointerup",W,{once:!0})},Te=H=>Z=>{if(Z.button!==0)return;Z.preventDefault(),Z.stopPropagation(),ze();const Q=w.current;if(!Q)return;const Se=En(w1(Q)),z=Z.clientX,k=Z.clientY,W=X6(H);y.current=Se,document.body.classList.add("source-peek-interacting"),document.body.style.cursor=W,document.body.style.userSelect="none";const pe=O=>{const U=O.clientX-z,X=O.clientY-k;Y(Y6(Se,H,U,X))},re=()=>ze(),p=()=>{window.removeEventListener("pointermove",pe),window.removeEventListener("pointerup",re)};T.current=p,window.addEventListener("pointermove",pe),window.addEventListener("pointerup",re,{once:!0})};return u.jsxs("aside",{"aria-label":"Source peek",className:"source-peek-panel",ref:w,children:[u.jsx("button",{"aria-label":"Resize source peek horizontally",className:"source-peek-resize-handle left",type:"button",onPointerDown:Te({left:!0})}),u.jsx("button",{"aria-label":"Resize source peek vertically",className:"source-peek-resize-handle bottom",type:"button",onPointerDown:Te({bottom:!0})}),u.jsx("button",{"aria-label":"Resize source peek",className:"source-peek-resize-handle bottom-left",type:"button",onPointerDown:Te({bottom:!0,left:!0})}),u.jsx("button",{"aria-label":"Resize source peek",className:"source-peek-resize-handle bottom-right",type:"button",onPointerDown:Te({bottom:!0,right:!0})}),u.jsxs("header",{className:"source-peek-header",onPointerDown:Be,children:[u.jsxs("div",{className:"source-peek-title",children:[u.jsx(th,{size:17}),u.jsx("span",{children:"Source peek"})]}),u.jsx(rh,{className:"source-peek-drag-indicator",size:16,"aria-hidden":"true"}),u.jsxs("div",{className:"source-peek-toolbar",children:[q?u.jsx(X2,{filePath:q.filePath,openTargets:i,wordWrap:F,onActionMessage:be,onCopyFileContents:()=>o(q.filePath),onOpenFile:H=>f(q.filePath,H),onWordWrapChange:te}):null,u.jsx("button",{"aria-label":"Close source peek",className:"icon-button source-peek-close",type:"button",onClick:h,children:u.jsx(Jc,{size:17})})]})]}),r.status==="loading"?u.jsxs("div",{className:"source-peek-status",children:[u.jsx(U1,{className:"spin",size:18}),u.jsxs("span",{children:["Resolving ",r.symbol]})]}):null,r.status==="error"?u.jsx("div",{className:"source-peek-status error",children:u.jsxs("div",{className:"source-peek-error-card",children:[u.jsx(k3,{size:18}),u.jsxs("div",{className:"source-peek-error-copy",children:[u.jsx("strong",{children:de==null?void 0:de.title}),u.jsx("p",{children:de==null?void 0:de.message}),de!=null&&de.hint?u.jsx("span",{children:de.hint}):null]})]})}):null,q?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"source-peek-meta",children:[u.jsx("span",{className:"source-peek-symbol",children:q.targetSymbol}),u.jsxs("span",{className:"source-peek-path",title:`${q.filePath}:${q.line}`,children:[q.filePath,":",q.line]}),se?u.jsx("span",{className:"source-peek-action-message",children:se}):null]}),q.truncated?u.jsx("div",{className:"source-peek-truncated",children:"Showing nearby lines from a large source file."}):null,u.jsx("section",{className:`source-peek-code ${F?"wrap-lines":""}`,"aria-label":q.filePath,children:oe.map((H,Z)=>{const Q=q.startLine+Z,Se=Q===q.line;return u.jsxs("div",{className:`source-peek-row ${Se?"target":""}`,ref:Se?_:null,children:[u.jsx("span",{className:"source-peek-line-number",children:Q}),u.jsx("code",{children:K6(H||" ",(ne==null?void 0:ne[Z])??null)})]},Q)})})]}):null]})}function w1(i){const o=i.getBoundingClientRect();return{height:o.height,left:o.left,top:o.top,width:o.width}}function En(i){const o=Q1();if(window.innerWidth<=980)return{height:window.innerHeight-o*2,left:o,top:o,width:window.innerWidth-o*2};const f=Math.max(Kc,window.innerWidth-o*2),r=Math.max(R1,window.innerHeight-o*2),h=zn(i.width,Kc,f),g=zn(i.height,R1,r);return{height:g,left:zn(i.left,o,window.innerWidth-h-o),top:zn(i.top,o,window.innerHeight-g-o),width:h}}function G6(){const i=Q1();if(window.innerWidth<=980)return En({height:window.innerHeight-i*2,left:i,top:i,width:window.innerWidth-i*2});const o=Math.max(i,Math.round(window.innerWidth/3)),f=window.innerWidth-o-i,r=window.innerHeight-i*2;return En({height:r,left:o,top:i,width:f})}function Y6(i,o,f,r){const h=Q1();let g=i.left,w=i.width,_=i.height;if(o.left){const S=i.left+i.width,y=h,T=S-Kc;g=zn(i.left+f,y,T),w=S-g}return o.right&&(w=zn(i.width+f,Kc,window.innerWidth-i.left-h)),o.bottom&&(_=zn(i.height+r,R1,window.innerHeight-i.top-h)),En({height:_,left:g,top:i.top,width:w})}function X6(i){return i.bottom&&i.left?"nesw-resize":i.bottom&&i.right?"nwse-resize":i.bottom?"row-resize":"col-resize"}function Q6(i,o){const f=$2(i);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 ${o}.`,title:"No definition found"}:{hint:null,message:f,title:"Source peek unavailable"}}function $2(i){const o=i.replace(/^\d+:\s*/,"").trim();try{const f=JSON.parse(o);if(typeof f=="object"&&f!==null&&!Array.isArray(f)&&typeof f.error=="string")return $2(f.error)}catch{}return o.replace(/^source peek unavailable:\s*/i,"").trim()}function Q1(){return window.innerWidth<=720?8:k6}function zn(i,o,f){return Math.min(f,Math.max(o,i))}function Z6(i){const o=i.replace(/\r\n/g,`
296
+ ~/.gloss/reviews/<reviewId>/resolved.json`}),u.jsx("div",{className:"contract-copy",children:u.jsxs("p",{children:[u.jsx("code",{children:"feedback.json"})," is the machine-readable handoff; ",u.jsx("code",{children:"feedback.md"})," ","is the human-readable copy; ",u.jsx("code",{children:"resolved.json"})," tracks comment and review resolution progress."]})})]})]}),u.jsx("footer",{className:"marketing-footer",children:u.jsxs("a",{href:"https://github.com/iamrajjoshi/gloss",target:"_blank",rel:"noreferrer",children:[u.jsx(Gc,{size:16}),u.jsx("span",{children:"GitHub"})]})})]})}var Yc=y2();const t5={mode:"all"};function l5(i=t5,o=[]){if(i.mode==="all")return"All commits";if(i.mode==="single"){const h=o.find(g=>g.commit.sha===i.sha);return h?`${h.commit.shortSha} ${h.commit.subject}`:`Commit ${E1(i.sha)}`}const f=o.findIndex(h=>h.commit.sha===i.fromSha),r=o.findIndex(h=>h.commit.sha===i.toSha);return f>=0&&r>=f?`${r-f+1} commits · ${o[f].commit.shortSha} to ${o[r].commit.shortSha}`:`Commit range ${E1(i.fromSha)} to ${E1(i.toSha)}`}function E1(i){return i.slice(0,7)}function Wf(i){var f;const o=(f=i.meta.branch??i.diff.branch)==null?void 0:f.trim();return o||n5(i.diff)}function n5(i){switch(i.scope.mode){case"branch":return"Branch diff";case"explicit":return`Diff against ${i.scope.requestedBase??i.base.ref}`;case"working":return"Working changes"}}function a5(i){return i==="submitted"||i==="resolved"}const i5=["L","R"],c5=["pending","submitted","cancelled","resolved"],u5=["context","add","delete"],s5=["working","branch","explicit"],o5=["working-tree-clean","missing-branch-base"],r5=500,f5=["import","same-file","repo-search","module"],d5=["all","single","range"],h5=["partial","resolved"],m5=["review-resolved","comment-resolved","comment-reopened","turn-created"],y5=["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 p5(i,o,f){const r=JSON.parse(i);return w2(r,o,f)}function w2(i,o,f){if(!o(i))throw new Error(`Invalid ${f}`);return i}function v5(i){return Le(i)&&P(i.reviewId)&&nt(i.turnId)&&Sa(i.turnIndex)&&P(i.url)&&Ke(i.files)&&Sa(i.comments)&&nt(i.feedbackPath)&&nt(i.markdownPath)&&nt(i.artifactDir)}function g5(i){return Le(i)&&i.ok===!0&&P(i.path)}function b5(i){return Le(i)&&Kt(i.targets,k5)}function S5(i){return Le(i)&&P(i.filePath)&&P(i.content)}function x5(i){return Le(i)&&P(i.fromSha)&&P(i.toSha)&&Fc(i.stats)&&P(i.rawDiff)&&Kt(i.files,B1)}function j5(i){return Le(i)&&P(i.filePath)&&Xc(i.oldStart)&&Xc(i.newStart)&&Kt(i.lines,_2)}function E5(i){return Le(i)&&P(i.symbol)&&P(i.targetSymbol)&&P(i.filePath)&&Xc(i.startLine)&&Xc(i.line)&&G5(i.column)&&il(i.language)&&P(i.content)&&ba(i.truncated)&&B5(i.matchReason)}function z5(i){return Le(i)&&w5(i.meta)&&Kt(i.turns,A5)&&T2(i.diff)&&wn(i.feedback,M2)&&wn(i.resolution,A2)}function N5(i){return Le(i)&&P(i.id)&&P(i.cwd)&&$c(i.base)&&il(i.branch)&&q1(i.status)&&P(i.createdAt)&&nt(i.submittedAt)&&nt(i.resolvedAt)&&nt(i.artifactDir)&&nt(i.activeTurnId)&&wn(i.turns,o=>Kt(o,M5))&&nt(i.feedbackPath)&&nt(i.markdownPath)}function w5(i){return N5(i)&&P(i.artifactDir)}function T2(i){return Le(i)&&$c(i.base)&&il(i.branch)&&P(i.cwd)&&C5(i.scope)&&Fc(i.stats)&&P(i.rawDiff)&&Kt(i.files,B1)&&wn(i.commitDiffs,o=>Kt(o,D5))&&P(i.capturedAt)}function M2(i){return Le(i)&&i.version===1&&P(i.reviewId)&&nt(i.turnId)&&Sa(i.turnIndex)&&P(i.timestamp)&&$c(i.base)&&il(i.branch)&&wn(i.reviewScope,R5)&&Kt(i.comments,H5)}function A2(i){return Le(i)&&P(i.reviewId)&&nt(i.turnId)&&Sa(i.turnIndex)&&D2(i.status)&&il(i.summary)&&il(i.resolvedAt)&&Kt(i.comments,U5)}function T5(i){if(!Le(i)||!P(i.reviewId)||!P(i.type))return!1;switch(i.type){case"review.opened":case"review.cancelled":return!0;case"review.turn.created":return P(i.turnId)&&Ke(i.turnIndex)&&ba(i.reused);case"review.submitted":return nt(i.turnId)&&Sa(i.turnIndex)&&Le(i.counts)&&Ke(i.counts.files)&&Ke(i.counts.comments);case"review.updated":return nt(i.turnId)&&Sa(i.turnIndex)&&V5(i.reason)&&q1(i.status)&&D2(i.resolutionStatus)&&O2(i.counts);default:return!1}}function C2(i){return Le(i)&&P(i.id)&&Ke(i.index)&&q1(i.status)&&P(i.createdAt)&&nt(i.submittedAt)&&nt(i.resolvedAt)&&P(i.artifactDir)&&P(i.diffPath)&&nt(i.feedbackPath)&&nt(i.markdownPath)&&nt(i.resolvedPath)}function M5(i){return!Le(i)||!C2(i)?!1:P(i.capturedAt)&&Fc(i.stats)&&O2(i.comments)}function A5(i){return!Le(i)||!C2(i)?!1:T2(i.diff)&&wn(i.feedback,M2)&&wn(i.resolution,A2)}function C5(i){return Le(i)&&cl(i.mode,s5)&&il(i.requestedBase)&&$c(i.base)&&_5(i.comparison)&&(i.fallbackReason===null||cl(i.fallbackReason,o5))}function _5(i){return Le(i)&&P(i.ref)&&il(i.sha)}function $c(i){return Le(i)&&P(i.ref)&&P(i.sha)}function Fc(i){return Le(i)&&Ke(i.files)&&Ke(i.additions)&&Ke(i.deletions)}function O5(i){return Le(i)&&P(i.sha)&&P(i.shortSha)&&P(i.subject)&&P(i.authorName)&&P(i.authorEmail)&&P(i.authoredAt)&&P(i.committedAt)}function D5(i){return Le(i)&&O5(i.commit)&&Fc(i.stats)&&P(i.rawDiff)&&Kt(i.files,B1)}function R5(i){if(!Le(i)||!cl(i.mode,d5))return!1;switch(i.mode){case"all":return!0;case"single":return P(i.sha);case"range":return P(i.fromSha)&&P(i.toSha)}}function B1(i){return Le(i)&&P(i.path)&&il(i.oldPath)&&Ke(i.additions)&&Ke(i.deletions)&&ba(i.isBinary)&&ba(i.isDeleted)&&ba(i.isNew)&&ba(i.isRenamed)&&il(i.language)&&Kt(i.hunks,L5)}function L5(i){return Le(i)&&Ke(i.oldStart)&&Ke(i.oldLines)&&Ke(i.newStart)&&Ke(i.newLines)&&P(i.header)&&Kt(i.lines,_2)}function _2(i){return Le(i)&&cl(i.type,u5)&&If(i.oldLine)&&If(i.newLine)&&P(i.content)}function H5(i){return Le(i)&&P(i.id)&&P(i.filePath)&&Ke(i.startLine)&&Ke(i.endLine)&&cl(i.side,i5)&&P(i.body)&&P(i.originalSnippet)&&P(i.createdAt)}function U5(i){return Le(i)&&P(i.commentId)&&i.status==="resolved"&&nt(i.summary)&&P(i.resolvedAt)}function O2(i){return Le(i)&&Ke(i.total)&&Ke(i.resolved)&&Ke(i.open)}function q1(i){return cl(i,c5)}function D2(i){return cl(i,h5)}function B5(i){return cl(i,f5)}function q5(i){return cl(i,y5)}function k5(i){return Le(i)&&q5(i.target)&&P(i.label)}function V5(i){return cl(i,m5)}function Le(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function Kt(i,o){return Array.isArray(i)&&i.every(o)}function wn(i,o){return i===void 0||o(i)}function P(i){return typeof i=="string"}function nt(i){return i===void 0||P(i)}function il(i){return i===null||P(i)}function Ke(i){return typeof i=="number"&&Number.isFinite(i)}function Xc(i){return Ke(i)&&Number.isInteger(i)&&i>0}function G5(i){return Ke(i)&&Number.isInteger(i)&&i>=0}function Sa(i){return i===void 0||Ke(i)}function If(i){return i===null||Ke(i)}function ba(i){return typeof i=="boolean"}function cl(i,o){return typeof i=="string"&&o.includes(i)}async function en(i,o,f){if(!i.ok)throw new Error(await Y5(i));const r=await i.json();return w2(r,o,f)}async function Y5(i){const o=await i.text();return X5(o)??`${i.status}: ${o||i.statusText}`}function X5(i){try{const o=JSON.parse(i);if(typeof o=="object"&&o!==null&&!Array.isArray(o)&&typeof o.error=="string")return o.error}catch{}return null}async function Pf(i){return en(await fetch(`/api/reviews/${i}`),z5,"review response")}async function Q5(i,o,f){const r={comments:o,reviewScope:f};return en(await fetch(`/api/reviews/${i}/submit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r)}),v5,"submit review response")}async function e2(i,o,f,r={}){const h={filePath:o,turnId:f,...r};return en(await fetch(`/api/reviews/${i}/files/open`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),g5,"open file response")}async function Z5(){return en(await fetch("/api/open-targets"),b5,"open targets response")}async function t2(i,o,f,r={}){const h={filePath:o,turnId:f,...r};return en(await fetch(`/api/reviews/${i}/files/content`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),S5,"file content response")}async function K5(i,o,f,r){const h={fromSha:o,toSha:f,turnId:r};return en(await fetch(`/api/reviews/${i}/commits/range`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),x5,"commit range diff response")}async function J5({filePath:i,lineCount:o,newStart:f,oldPath:r,oldStart:h,reviewId:g,source:w,turnId:_}){const x={filePath:i,oldPath:r,turnId:_,source:w,oldStart:h,newStart:f,lineCount:o};return en(await fetch(`/api/reviews/${g}/files/context`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(x)}),j5,"diff context response")}async function $5({column:i,filePath:o,line:f,oldPath:r,reviewId:h,side:g,source:w,symbol:_,turnId:x}){const y={filePath:o,oldPath:r,turnId:x,source:w,side:g,line:f,column:i,symbol:_};return en(await fetch(`/api/reviews/${h}/source-peek`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(y)}),E5,"source peek response")}const F5="modulepreload",W5=function(i){return"/"+i},l2={},R2=function(o,f,r){let h=Promise.resolve();if(f&&f.length>0){let w=function(y){return Promise.all(y.map(T=>Promise.resolve(T).then(L=>({status:"fulfilled",value:L}),L=>({status:"rejected",reason:L}))))};document.getElementsByTagName("link");const _=document.querySelector("meta[property=csp-nonce]"),x=(_==null?void 0:_.nonce)||(_==null?void 0:_.getAttribute("nonce"));h=w(f.map(y=>{if(y=W5(y),y in l2)return;l2[y]=!0;const T=y.endsWith(".css"),L=T?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${L}`))return;const k=document.createElement("link");if(k.rel=T?"stylesheet":F5,T||(k.as="script"),k.crossOrigin="",k.href=y,x&&k.setAttribute("nonce",x),document.head.appendChild(k),T)return new Promise((F,te)=>{k.addEventListener("load",F),k.addEventListener("error",()=>te(new Error(`Unable to preload CSS for ${y}`)))})}))}function g(w){const _=new Event("vite:preloadError",{cancelable:!0});if(_.payload=w,window.dispatchEvent(_),!_.defaultPrevented)throw w}return h.then(w=>{for(const _ of w||[])_.status==="rejected"&&g(_.reason);return o().catch(g)})};function k1(i){return i.type==="delete"?"L":"R"}function V1(i){return k1(i)==="L"?i.oldLine:i.newLine}function Si(i,o){return`${i}:${o}`}const L2="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Qc=32,I5=16,H2=10,n2=0xffffffffffff;var jn;(function(i){i.Base32IncorrectEncoding="B32_ENC_INVALID",i.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",i.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",i.EncodeTimeNegative="ENC_TIME_NEG",i.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",i.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",i.PRNGDetectFailure="PRNG_DETECT",i.ULIDInvalid="ULID_INVALID",i.Unexpected="UNEXPECTED",i.UUIDInvalid="UUID_INVALID"})(jn||(jn={}));class gi extends Error{constructor(o,f){super(`${f} (${o})`),this.name="ULIDError",this.code=o}}function P5(i){const o=Math.floor(i()*Qc)%Qc;return L2.charAt(o)}function em(i){const o=tm(),f=o&&(o.crypto||o.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 gi(jn.PRNGDetectFailure,"Failed to find a reliable PRNG")}function tm(){return am()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function lm(i,o){let f="";for(;i>0;i--)f=P5(o)+f;return f}function nm(i,o=H2){if(isNaN(i))throw new gi(jn.EncodeTimeValueMalformed,`Time must be a number: ${i}`);if(i>n2)throw new gi(jn.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${n2}: ${i}`);if(i<0)throw new gi(jn.EncodeTimeNegative,`Time must be positive: ${i}`);if(Number.isInteger(i)===!1)throw new gi(jn.EncodeTimeValueMalformed,`Time must be an integer: ${i}`);let f,r="";for(let h=o;h>0;h--)f=i%Qc,r=L2.charAt(f)+r,i=(i-f)/Qc;return r}function am(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function im(i,o){const f=em(),r=Date.now();return nm(r,H2)+lm(I5,f)}const a2=i=>{let o;const f=new Set,r=(y,T)=>{const L=typeof y=="function"?y(o):y;if(!Object.is(L,o)){const k=o;o=T??(typeof L!="object"||L===null)?L:Object.assign({},o,L),f.forEach(F=>F(o,k))}},h=()=>o,_={setState:r,getState:h,getInitialState:()=>x,subscribe:y=>(f.add(y),()=>f.delete(y))},x=o=i(r,h,_);return _},cm=(i=>i?a2(i):a2),um=i=>i;function sm(i,o=um){const f=vi.useSyncExternalStore(i.subscribe,vi.useCallback(()=>o(i.getState()),[i,o]),vi.useCallback(()=>o(i.getInitialState()),[i,o]));return vi.useDebugValue(f),f}const i2=i=>{const o=cm(i),f=r=>sm(o,r);return Object.assign(f,o),f},om=(i=>i?i2(i):i2),At=om((i,o)=>({comments:[],resolution:null,draft:null,setDraft:f=>i({draft:f}),hydrateComments:f=>i({comments:f,resolution:null,draft:null}),hydrateReview:(f,r=null)=>i({comments:f,resolution:r,draft:null}),addComment:f=>{const r=o().draft;!r||f.trim().length===0||i(h=>({comments:[...h.comments,{id:im(),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}))},removeComment:f=>i(r=>({comments:r.comments.filter(h=>h.id!==f)})),reset:()=>i({comments:[],resolution:null,draft:null})})),U2="gloss:theme-preference",rm="(prefers-color-scheme: dark)",fm=new Set(["system","light","dark"]),B2=A.createContext(null);function dm(i){return!!(i&&fm.has(i))}function hm(i=q2()){if(!i)return"system";try{const o=i.getItem(U2);return dm(o)?o:"system"}catch{return"system"}}function mm(i,o=q2()){if(o)try{o.setItem(U2,i)}catch{}}function O1(i){return i?"dark":"light"}function ym(i,o){return i==="system"?o:i}function pm(i,o=bm()){o&&(o.dataset.theme=i)}function vm({children:i}){const[o,f]=A.useState(()=>hm()),[r,h]=A.useState(()=>gm()),g=ym(o,r);A.useEffect(()=>{const x=k2();if(!x)return;const y=T=>{h(O1(T.matches))};return h(O1(x.matches)),typeof x.addEventListener=="function"?(x.addEventListener("change",y),()=>x.removeEventListener("change",y)):(x.addListener(y),()=>x.removeListener(y))},[]),A.useEffect(()=>{pm(g)},[g]);const w=A.useCallback(x=>{mm(x),f(x)},[]),_=A.useMemo(()=>({preference:o,resolvedTheme:g,setPreference:w}),[o,g,w]);return u.jsx(B2.Provider,{value:_,children:i})}function G1(){const i=A.useContext(B2);if(!i)throw new Error("useTheme must be used within ThemeProvider");return i}function gm(i=k2()){return O1(!!(i!=null&&i.matches))}function q2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function k2(){try{return typeof window>"u"||typeof window.matchMedia!="function"?null:window.matchMedia(rm)}catch{return null}}function bm(){return typeof document>"u"?null:document.documentElement}function Sm(i){return V2(i)&&!i.shiftKey}function xm(i){return V2(i)&&i.shiftKey===!0}function V2(i){var o;return i.key==="Enter"&&i.metaKey===!0&&i.ctrlKey!==!0&&i.altKey!==!0&&i.repeat!==!0&&i.defaultPrevented!==!0&&i.isComposing!==!0&&((o=i.nativeEvent)==null?void 0:o.isComposing)!==!0}function jm({tone:i}){const o=At(T=>T.draft),f=At(T=>T.setDraft),r=At(T=>T.addComment),[h,g]=A.useState(""),w=A.useRef(null);if(A.useEffect(()=>{var T;o&&((T=w.current)==null||T.focus({preventScroll:!0}))},[o]),!o)return null;const _=o.startLine===o.endLine?`Comment on line ${bi(o)}`:`Comment on range ${bi(o)}`,x=()=>{g(""),f(null)},y=()=>{r(h),g("")};return u.jsx("div",{className:`draft-comment-shell tone-${i}`,children:u.jsxs("div",{className:"draft-comment-card",children:[u.jsxs("div",{className:"draft-comment-title",children:[u.jsxs("span",{className:"draft-comment-heading",children:[u.jsx("span",{className:"draft-comment-icon","aria-hidden":"true",children:u.jsx(hh,{size:15})}),u.jsx("span",{children:"Local comment"})]}),u.jsx("span",{className:"draft-comment-label",children:_})]}),u.jsx("textarea",{"aria-label":_,placeholder:"Request change",ref:w,value:h,onChange:T=>g(T.target.value),onKeyDown:T=>{Sm(T)&&(T.preventDefault(),y())}}),u.jsxs("div",{className:"draft-comment-actions",children:[u.jsx("button",{className:"secondary-button",type:"button",onClick:x,children:"Cancel"}),u.jsx("button",{"aria-keyshortcuts":"Meta+Enter",className:"primary-button",title:"Comment (Command+Enter)",type:"button",onClick:y,children:"Comment"})]})]})})}const Em=20;function zm(i,o){const f=o.oldStart-i.oldStart,r=f+o.lineCount-1,h=f>0,g=r<i.lineCount-1;return h&&g?"all":h?"down":g||i.beforeHunkIndex===0?"up":"all"}function Y1(i){const o=[];let f=0,r=0;return i.hunks.forEach((h,g)=>{const w=h.oldStart>f+1?h.oldStart-f-1:0,_=h.newStart>r+1?h.newStart-r-1:0,x=Math.min(w,_);if(x>0){const y=f+1,T=r+1;o.push({id:`${i.path}:${y}:${T}:${x}`,beforeHunkIndex:g,filePath:i.path,oldPath:i.oldPath,oldStart:y,newStart:T,lineCount:x})}f=h.oldStart+h.oldLines-1,r=h.newStart+h.newLines-1}),o}function Nm(i,o){const f=Wc(i,o),r=G2(i,f),h=X1(i,o);if(r.length===0)return h.length>0?[{type:"lines",lines:h}]:[];const g=r[0]??0,w=r.at(-1)??i.lineCount-1,_=h.filter(y=>{const T=Zc(i,y);return T!=null&&T<g}),x=h.filter(y=>{const T=Zc(i,y);return T!=null&&T>w});return[..._.length>0?[{type:"lines",lines:_}]:[],{type:"hidden",oldStart:i.oldStart+g,newStart:i.newStart+g,lineCount:w-g+1},...x.length>0?[{type:"lines",lines:x}]:[]]}function wm(i,o,f,r=Em){const h=Wc(i,o),g=G2(i,h);if(g.length===0)return null;let w,_;if(f==="all")w=g[0]??0,_=g.at(-1)??i.lineCount-1,_=Math.min(_,w+r5-1);else if(f==="down"){for(w=g[0]??0,_=w;_+1<i.lineCount&&!h.has(_+1);)_+=1;_=Math.min(_,w+r-1)}else{for(_=g.at(-1)??i.lineCount-1,w=_;w-1>=0&&!h.has(w-1);)w-=1;w=Math.max(w,_-r+1)}return{oldStart:i.oldStart+w,newStart:i.newStart+w,lineCount:_-w+1}}function Tm(i,o,f){const r=Wc(i,o);for(const h of f){const g=Zc(i,h);g!=null&&r.set(g,h)}return{lines:Array.from(r.entries()).toSorted(([h],[g])=>h-g).map(([,h])=>h),loading:!1,error:null}}function X1(i,o){return Array.from(Wc(i,o).entries()).toSorted(([f],[r])=>f-r).map(([,f])=>f)}function Mm(i,o){const f=new Map(Y1(i).map(r=>[r.beforeHunkIndex,r]));return i.hunks.flatMap((r,h)=>{const g=f.get(h);return[...g?X1(g,o[g.id]):[],...r.lines]})}function Am(i,o){const f=new Map(Y1(i).map(h=>[h.beforeHunkIndex,h])),r=i.hunks.map((h,g)=>{const w=f.get(g),_=w?X1(w,o[w.id]):[];return _.length>0?{...h,lines:[..._,...h.lines]}:h});return{...i,hunks:r}}function G2(i,o){const f=[];for(let r=0;r<i.lineCount;r+=1)o.has(r)||f.push(r);return f}function Wc(i,o){const f=new Map;if(!i||!o)return f;for(const r of o.lines){const h=Zc(i,r);h!=null&&f.set(h,r)}return f}function Zc(i,o){const f=o.oldLine==null?null:o.oldLine-i.oldStart;if(f!=null&&f>=0&&f<i.lineCount)return f;const r=o.newLine==null?null:o.newLine-i.newStart;return r!=null&&r>=0&&r<i.lineCount?r:null}function Y2(i){return`gloss-file-${encodeURIComponent(i)}`}const Ae='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Ce='</title><path d="',_e='"/></svg>',Cm={title:"Android Studio",slug:"androidstudio",get svg(){return Ae+"Android Studio"+Ce+this.path+_e},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"},_m={title:"CLion",slug:"clion",get svg(){return Ae+"CLion"+Ce+this.path+_e},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/"},Om={title:"CSS",slug:"css",get svg(){return Ae+"CSS"+Ce+this.path+_e},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"},Dm={title:"Cursor",slug:"cursor",get svg(){return Ae+"Cursor"+Ce+this.path+_e},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"},Rm={title:"DataGrip",slug:"datagrip",get svg(){return Ae+"DataGrip"+Ce+this.path+_e},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/"},Lm={title:"Ghostty",slug:"ghostty",get svg(){return Ae+"Ghostty"+Ce+this.path+_e},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"},Hm={title:"GNU Bash",slug:"gnubash",get svg(){return Ae+"GNU Bash"+Ce+this.path+_e},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"}},Um={title:"GNU Emacs",slug:"gnuemacs",get svg(){return Ae+"GNU Emacs"+Ce+this.path+_e},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"}},Bm={title:"Go",slug:"go",get svg(){return Ae+"Go"+Ce+this.path+_e},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"},qm={title:"GoLand",slug:"goland",get svg(){return Ae+"GoLand"+Ce+this.path+_e},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"},km={title:"HTML5",slug:"html5",get svg(){return Ae+"HTML5"+Ce+this.path+_e},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"},Vm={title:"IntelliJ IDEA",slug:"intellijidea",get svg(){return Ae+"IntelliJ IDEA"+Ce+this.path+_e},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/"},Gm={title:"iTerm2",slug:"iterm2",get svg(){return Ae+"iTerm2"+Ce+this.path+_e},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"},Ym={title:"JavaScript",slug:"javascript",get svg(){return Ae+"JavaScript"+Ce+this.path+_e},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"}},Xm={title:"JSON",slug:"json",get svg(){return Ae+"JSON"+Ce+this.path+_e},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"},Qm={title:"Lapce",slug:"lapce",get svg(){return Ae+"Lapce"+Ce+this.path+_e},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"},Zm={title:"Markdown",slug:"markdown",get svg(){return Ae+"Markdown"+Ce+this.path+_e},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"}},Km={title:"Neovim",slug:"neovim",get svg(){return Ae+"Neovim"+Ce+this.path+_e},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"}},Jm={title:"PhpStorm",slug:"phpstorm",get svg(){return Ae+"PhpStorm"+Ce+this.path+_e},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/"},$m={title:"PyCharm",slug:"pycharm",get svg(){return Ae+"PyCharm"+Ce+this.path+_e},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/"},Fm={title:"Python",slug:"python",get svg(){return Ae+"Python"+Ce+this.path+_e},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/"},c2={title:"React",slug:"react",get svg(){return Ae+"React"+Ce+this.path+_e},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"},Wm={title:"Ruby",slug:"ruby",get svg(){return Ae+"Ruby"+Ce+this.path+_e},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"}},Im={title:"RubyMine",slug:"rubymine",get svg(){return Ae+"RubyMine"+Ce+this.path+_e},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"},Pm={title:"Rust",slug:"rust",get svg(){return Ae+"Rust"+Ce+this.path+_e},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"}},e6={title:"Sublime Text",slug:"sublimetext",get svg(){return Ae+"Sublime Text"+Ce+this.path+_e},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"},t6={title:"Swift",slug:"swift",get svg(){return Ae+"Swift"+Ce+this.path+_e},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/"},l6={title:"TypeScript",slug:"typescript",get svg(){return Ae+"TypeScript"+Ce+this.path+_e},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"},n6={title:"Vim",slug:"vim",get svg(){return Ae+"Vim"+Ce+this.path+_e},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"},a6={title:"VSCodium",slug:"vscodium",get svg(){return Ae+"VSCodium"+Ce+this.path+_e},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"},i6={title:"WebStorm",slug:"webstorm",get svg(){return Ae+"WebStorm"+Ce+this.path+_e},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"},c6={title:"Windsurf",slug:"windsurf",get svg(){return Ae+"Windsurf"+Ce+this.path+_e},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"},u6={title:"Xcode",slug:"xcode",get svg(){return Ae+"Xcode"+Ce+this.path+_e},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"},s6={title:"YAML",slug:"yaml",get svg(){return Ae+"YAML"+Ce+this.path+_e},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"},o6={title:"Zed Industries",slug:"zedindustries",get svg(){return Ae+"Zed Industries"+Ce+this.path+_e},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"},r6=[{label:"Default app",target:"default"},{label:"Open in folder",target:"folder"}],u2=190,s2=172,qc=8,f6={"android-studio":{icon:Cm,kind:"simple"},bbedit:{Icon:Pl,kind:"lucide"},clion:{icon:_m,kind:"simple"},coteditor:{Icon:Pl,kind:"lucide"},cursor:{icon:Dm,kind:"simple"},datagrip:{icon:Rm,kind:"simple"},default:{Icon:C3,kind:"lucide"},emacs:{icon:Um,kind:"simple"},fleet:{Icon:Pl,kind:"lucide"},folder:{Icon:x2,kind:"lucide"},ghostty:{icon:Lm,kind:"simple"},goland:{icon:qm,kind:"simple"},intellij:{icon:Vm,kind:"simple"},iterm2:{icon:Gm,kind:"simple"},lapce:{icon:Qm,kind:"simple"},macvim:{icon:n6,kind:"simple"},neovide:{icon:Km,kind:"simple"},nova:{Icon:Pl,kind:"lucide"},phpstorm:{icon:Jm,kind:"simple"},pycharm:{icon:$m,kind:"simple"},rubymine:{icon:Im,kind:"simple"},sublime:{icon:e6,kind:"simple"},terminal:{Icon:Hh,kind:"lucide"},textedit:{Icon:S2,kind:"lucide"},textmate:{Icon:Pl,kind:"lucide"},vscodium:{icon:a6,kind:"simple"},vscode:{Icon:Pl,kind:"lucide"},"vscode-insiders":{Icon:Pl,kind:"lucide"},webstorm:{icon:i6,kind:"simple"},windsurf:{icon:c6,kind:"simple"},xcode:{icon:u6,kind:"simple"},zed:{icon:o6,kind:"simple"}};function X2({fileContent:i,filePath:o,openTargets:f,wordWrap:r,onActionMessage:h,onCopyFileContents:g,onOpenFile:w,onWordWrapChange:_}){const[x,y]=A.useState(!1),[T,L]=A.useState(!1),[k,F]=A.useState(null),[te,se]=A.useState(null),be=A.useRef(null),B=A.useRef(null),de=A.useRef(null),oe=A.useRef(null),ne=A.useRef(null),he=A.useMemo(()=>f.length>0?f:r6,[f]),$=i!==void 0||g!==void 0,K=A.useCallback(()=>{y(!1),L(!1)},[]),Y=A.useCallback(()=>{x&&F(kc(be.current,u2)),T&&se(kc(oe.current,s2))},[x,T]);A.useEffect(()=>{if(!(!x&&!T))return Y(),window.addEventListener("resize",Y),window.addEventListener("scroll",Y,!0),()=>{window.removeEventListener("resize",Y),window.removeEventListener("scroll",Y,!0)}},[x,T,Y]),A.useEffect(()=>{if(!x&&!T)return;const Q=z=>{var W,pe,re;const q=z.target;!((W=de.current)!=null&&W.contains(q))&&!((pe=B.current)!=null&&pe.contains(q))&&!((re=ne.current)!=null&&re.contains(q))&&K()},Se=z=>{z.key==="Escape"&&K()};return window.addEventListener("pointerdown",Q),window.addEventListener("keydown",Se),()=>{window.removeEventListener("pointerdown",Q),window.removeEventListener("keydown",Se)}},[x,K,T]);const ze=async(Q,Se)=>{K();try{await navigator.clipboard.writeText(Q),h==null||h(`${Se} copied`)}catch(z){h==null||h(`Could not copy ${Se.toLowerCase()}: ${z1(z)}`)}},Be=async()=>{K();try{const Q=i??await(g==null?void 0:g());if(Q===void 0)return;await navigator.clipboard.writeText(Q),h==null||h("File contents copied")}catch(Q){h==null||h(`Could not copy file contents: ${z1(Q)}`)}},Te=async(Q,Se)=>{K(),h==null||h(`Opening in ${Se}`);try{await w(Q),h==null||h(`Opened in ${Se}`)}catch(z){h==null||h(`Could not open in ${Se}: ${z1(z)}`)}},H=x&&k?Yc.createPortal(u.jsxs("div",{className:"file-actions-popover actions",ref:B,role:"menu",style:k,children:[u.jsxs("button",{role:"menuitem",type:"button",onClick:()=>ze(o,"Path"),children:[u.jsx(Z3,{size:16}),u.jsx("span",{children:"Copy path"})]}),$?u.jsxs("button",{role:"menuitem",type:"button",onClick:Be,children:[u.jsx(S2,{size:16}),u.jsx("span",{children:"Copy file contents"})]}):null,_?u.jsxs("button",{"aria-checked":!!r,role:"menuitemcheckbox",type:"button",onClick:()=>{_(!r),K()},children:[u.jsx(E2,{size:16}),u.jsxs("span",{children:[r?"Disable":"Enable"," word wrap"]})]}):null]}),document.body):null,Z=T&&te?Yc.createPortal(u.jsx("div",{className:"file-actions-popover open",ref:ne,role:"menu",style:te,children:he.map((Q,Se)=>u.jsxs("button",{className:Se===he.length-1?"separated":"",role:"menuitem",type:"button",onClick:()=>Te(Q.target,Q.label),children:[u.jsx(d6,{option:Q}),u.jsx("span",{children:Q.label})]},Q.target))}),document.body):null;return u.jsxs("div",{className:"file-actions-menu",ref:de,children:[u.jsxs("div",{className:"file-actions-menu-group",children:[u.jsx("button",{"aria-expanded":x,"aria-haspopup":"menu","aria-label":"File actions",className:"icon-button file-actions-menu-trigger",ref:be,type:"button",onClick:()=>{F(kc(be.current,u2)),y(Q=>!Q),L(!1)},children:u.jsx(J3,{size:17})}),H]}),u.jsxs("div",{className:"file-actions-menu-group",children:[u.jsxs("button",{"aria-expanded":T,"aria-haspopup":"menu",className:"file-actions-open-button",ref:oe,type:"button",onClick:()=>{se(kc(oe.current,s2)),L(Q=>!Q),y(!1)},children:[u.jsx(F3,{size:16}),u.jsx("span",{children:"Open"}),u.jsx(Tn,{size:15})]}),Z]})]})}function kc(i,o){if(!i)return null;const f=i.getBoundingClientRect(),r=Math.max(qc,window.innerWidth-f.right),h=Math.max(qc,window.innerWidth-o-qc);return{right:Math.min(r,h),top:f.bottom+qc}}function d6({option:i}){const o=f6[i.target];return o.kind==="simple"?u.jsx("svg",{"aria-hidden":"true",className:"file-actions-brand-icon",focusable:"false",role:"img",style:{color:h6(o.icon)},viewBox:"0 0 24 24",children:u.jsx("path",{d:o.icon.path})}):u.jsx(o.Icon,{"aria-hidden":"true",className:"file-actions-target-icon",size:16})}function h6(i){return i.hex==="000000"?"var(--ide-fg-muted)":`#${i.hex}`}function z1(i){return i instanceof Error?i.message:String(i)}const m6={bash:Hm,css:Om,go:Bm,html:km,js:Ym,json:Xm,jsx:c2,markdown:Zm,python:Fm,ruby:Wm,rust:Pm,swift:t6,ts:l6,tsx:c2,yaml:s6};function y6(i,o=!1){if(!i||o)return null;const f=m6[i];return f?{icon:f,color:v6(f.hex)}:null}function p6({isBinary:i=!1,language:o}){const f=y6(o,i);return f?u.jsx("span",{"aria-hidden":"true",className:"file-language-icon",style:{color:f.color},title:`${f.icon.title} file`,children:u.jsx("svg",{"aria-hidden":"true",className:"file-language-icon-svg",fill:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{d:f.icon.path})})}):u.jsx("span",{"aria-hidden":"true",className:"file-language-icon",title:"File",children:u.jsx(H1,{size:17})})}function v6(i){const o=i.trim().replace(/^#/,"");if(!/^[\dA-Fa-f]{6}$/.test(o))return"currentColor";const f=Number.parseInt(o.slice(0,2),16),r=Number.parseInt(o.slice(2,4),16),h=Number.parseInt(o.slice(4,6),16),g=(.2126*f+.7152*r+.0722*h)/255;return g<.15||g>.9?"currentColor":`#${o}`}function g6({file:i,collapsed:o,viewed:f,onToggle:r,onCopyFileContents:h,onViewedChange:g,onOpenFile:w,openTargets:_}){return u.jsxs("div",{className:"file-header",children:[u.jsxs("button",{className:"file-header-toggle",type:"button",onClick:r,children:[o?u.jsx(g2,{size:18}):u.jsx(Tn,{size:18}),u.jsx(p6,{isBinary:i.isBinary,language:i.language}),u.jsx("span",{className:"file-path",children:i.path}),i.oldPath&&i.oldPath!==i.path?u.jsxs("span",{className:"rename-path",children:["from ",i.oldPath]}):null]}),u.jsxs("span",{className:"stat add",children:["+",i.additions]}),u.jsxs("span",{className:"stat del",children:["-",i.deletions]}),u.jsxs("label",{className:"viewed-toggle",children:[u.jsx("input",{type:"checkbox",checked:f,onChange:x=>g(x.currentTarget.checked)}),u.jsx("span",{children:"Viewed"})]}),u.jsx(X2,{filePath:i.path,openTargets:_,onCopyFileContents:h,onOpenFile:async x=>w(x)})]})}const b6=[];function S6({activeFilePath:i=null,contextSource:o,emptyState:f=null,files:r,record:h,diff:g=h.diff,readOnly:w=!1,reviewId:_,turnId:x,wrapLines:y=!1,viewedFiles:T=new Set,onViewedChange:L=()=>{},openTargets:k=b6,selectedSourcePeek:F=null,onCopyFileContents:te,onOpenFile:se=()=>{},onSourcePeek:be=()=>{}}){const[B,de]=A.useState(new Set),oe=A.useRef(i),ne=At(Y=>Y.draft),he=At(Y=>Y.setDraft),$=r??g.files;if(i!==oe.current&&(oe.current=i,i&&B.has(i))){const Y=new Set(B);Y.delete(i),de(Y)}const K=(Y,ze)=>{ze&&((ne==null?void 0:ne.filePath)===Y&&he(null),de(Be=>{const Te=new Set(Be);return Te.add(Y),Te})),L(Y,ze)};return u.jsx("section",{className:"diff-stack",children:$.length===0?f??u.jsx(x6,{record:h}):$.map(Y=>{const ze=B.has(Y.path);return u.jsxs("article",{className:`file-card ${i===Y.path?"active":""}`,id:Y2(Y.path),children:[u.jsx(g6,{file:Y,openTargets:k,collapsed:ze,viewed:T.has(Y.path),onToggle:()=>{!ze&&(ne==null?void 0:ne.filePath)===Y.path&&he(null),de(Be=>{const Te=new Set(Be);return Te.has(Y.path)?Te.delete(Y.path):Te.add(Y.path),Te})},onCopyFileContents:te?()=>te(Y.path):void 0,onViewedChange:Be=>K(Y.path,Be),onOpenFile:Be=>se(Y.path,Be)}),ze?null:u.jsx(j6,{contextSource:o,file:Y,readOnly:w,reviewId:_,selectedSourcePeek:F,turnId:x,wrapLines:y,onSourcePeek:be},`${Y.oldPath??""}:${Y.path}:${C6(_,x,o)}`)]},`${Y.oldPath??Y.path}:${Y.path}`)})})}function x6({record:i}){const o=i.diff.scope;return o.mode==="branch"?u.jsxs("div",{className:"empty-diff",children:[u.jsx("h2",{children:"No branch changes"}),u.jsxs("p",{children:["Working tree is clean, and ",o.comparison.ref," matches ",o.base.ref,"."]})]}):o.fallbackReason==="missing-branch-base"?u.jsxs("div",{className:"empty-diff",children:[u.jsx("h2",{children:"No changes to review"}),u.jsx("p",{children:"Working tree is clean and no upstream or default branch ref was found."})]}):o.mode==="explicit"?u.jsxs("div",{className:"empty-diff",children:[u.jsxs("h2",{children:["No changes against ",o.base.ref]}),u.jsx("p",{children:"The captured diff for this explicit base is empty."})]}):u.jsxs("div",{className:"empty-diff",children:[u.jsx("h2",{children:"No working changes"}),u.jsx("p",{children:"Working tree is clean."})]})}function j6({contextSource:i,file:o,readOnly:f,reviewId:r,selectedSourcePeek:h,turnId:g,wrapLines:w,onSourcePeek:_}){const x=At(M=>M.comments),y=At(M=>M.resolution),T=At(M=>M.draft),L=At(M=>M.setDraft),{resolvedTheme:k}=G1(),[F,te]=A.useState(null),[se,be]=A.useState(null),[B,de]=A.useState(null),[oe,ne]=A.useState({}),he=A.useRef(null),$=A.useRef(null),K=A.useMemo(()=>Y1(o),[o]),Y=A.useMemo(()=>new Map(K.map(M=>[M.beforeHunkIndex,M])),[K]),ze=A.useMemo(()=>Am(o,oe),[oe,o]),Be=A.useMemo(()=>Mm(o,oe),[oe,o]),Te=A.useMemo(()=>_6(Be),[Be]),H=A.useMemo(()=>new Map(((y==null?void 0:y.comments)??[]).map(M=>[M.commentId,M])),[y]),Z=x.filter(M=>M.filePath===o.path),Q=F&&se&&F.filePath===o.path&&F.side===se.side?D1(Te,F.side,F.line,se.line):null,Se=T&&T.filePath===o.path?D1(Te,T.side,T.startLine,T.endLine):null,z=M=>{const{start:V,end:ue}=M,ee=Math.min(V.line,ue.line),ge=Math.max(V.line,ue.line),Qe=O6(Be,Te,V.side,ee,ge)||V.snippet;L({filePath:o.path,side:V.side,startLine:ee,endLine:ge,originalSnippet:Qe})};A.useEffect(()=>()=>{var M;return(M=$.current)==null?void 0:M.call($)},[]);const q=M=>{var ee;if(M.dataset.filePath!==o.path)return null;const V=M.dataset.side,ue=Number(M.dataset.line);return V!=="L"&&V!=="R"||!Number.isFinite(ue)?null:{filePath:o.path,side:V,line:ue,snippet:((ee=M.querySelector("code"))==null?void 0:ee.textContent)??""}},W=M=>{const V=q(M);V&&p(V)},pe=(M,V)=>{var Qe;if(V.button!==0)return;V.preventDefault(),(Qe=$.current)==null||Qe.call($),he.current={start:M,end:M},te(M),be(M);const ue=yt=>{var at;const pt=(at=document.elementFromPoint(yt.clientX,yt.clientY))==null?void 0:at.closest(".diff-row");pt&&W(pt)},ee=yt=>{ue(yt);const pt=he.current;pt&&z(pt),O()},ge=()=>O();window.addEventListener("mousemove",ue),window.addEventListener("mouseup",ee),window.addEventListener("blur",ge),$.current=()=>{window.removeEventListener("mousemove",ue),window.removeEventListener("mouseup",ee),window.removeEventListener("blur",ge),$.current=null}},re=(M,V)=>{var ue;V.key!=="Enter"&&V.key!==" "||V.repeat||V.defaultPrevented||V.nativeEvent.isComposing||(V.preventDefault(),(ue=$.current)==null||ue.call($),he.current=null,te(null),be(null),z({start:M,end:M}))},p=M=>{const V=he.current;(V==null?void 0:V.start.filePath)===o.path&&V.start.side===M.side&&(he.current={...V,end:M},be(M))},O=()=>{var M;(M=$.current)==null||M.call($),he.current=null,te(null),be(null)},U=async(M,V)=>{if(!r||!i)return;const ue=wm(M,oe[M.id],V);if(ue){ne(ee=>{var ge;return{...ee,[M.id]:{lines:((ge=ee[M.id])==null?void 0:ge.lines)??[],loading:!0,error:null}}});try{const ee=await J5({reviewId:r,filePath:M.filePath,oldPath:M.oldPath,turnId:g,source:i,...ue});ne(ge=>({...ge,[M.id]:Tm(M,ge[M.id],ee.lines)}))}catch(ee){ne(ge=>{var Qe;return{...ge,[M.id]:{lines:((Qe=ge[M.id])==null?void 0:Qe.lines)??[],loading:!1,error:ee instanceof Error?ee.message:String(ee)}}})}}};A.useEffect(()=>{let M=!1;return R2(async()=>{const{highlightDiffFile:V}=await import("./syntax-UR_bDbhr.js");return{highlightDiffFile:V}},[]).then(({highlightDiffFile:V})=>V(ze,k)).then(V=>{M||de(V)}).catch(()=>{M||de(null)}),()=>{M=!0}},[ze,k]);const X=(M,V)=>{const ue=k1(M),ee=V1(M);if(ee==null)return null;const ge={filePath:o.path,side:ue,line:ee,snippet:M.content},Qe=Te.get(Si(ue,ee)),yt=Qe!=null&&r2(Qe,Q)?Q:Qe!=null&&r2(Qe,Se)?Se:null,pt=Qe!=null&&yt?A6(Qe,yt.start,yt.end):"",at=T&&T.filePath===o.path&&T.side===ue&&ee===T.endLine,tn=Z.filter(Fe=>Fe.side===ue&&ee===Math.max(Fe.startLine,Fe.endLine));return u.jsxs("div",{children:[u.jsxs("div",{className:`diff-row ${M.type} ${f?"read-only":""} ${pt} ${at?"range-continues":""}`,"data-file-path":o.path,"data-line":ee,"data-side":ue,children:[pt?u.jsx("span",{className:"selection-rail","aria-hidden":"true"}):null,u.jsxs("div",{className:"diff-gutter",children:[u.jsx("span",{className:"line-number old",children:M.oldLine??""}),u.jsx("span",{className:"line-number new",children:M.newLine??""}),u.jsx("span",{className:"marker",children:Q2(M)}),f?null:u.jsx("button",{"aria-label":`Comment on ${o.path} line ${ee}`,className:"comment-handle",type:"button",onMouseDown:Fe=>pe(ge,Fe),onKeyDown:Fe=>re(ge,Fe),children:u.jsx(Mh,{size:16,strokeWidth:2.4})})]}),u.jsx(w6,{content:M.content,selectedSourcePeek:h&&h.filePath===o.path&&h.oldPath===o.oldPath&&h.side===ue&&h.line===ee?h:null,tokens:(B==null?void 0:B.get(Si(ue,ee)))??null,onSourcePeek:(Fe,gt)=>_({column:gt,filePath:o.path,line:ee,oldPath:o.oldPath,side:ue,symbol:Fe})})]}),tn.map(Fe=>{const gt=H.get(Fe.id);return u.jsxs("div",{className:`inline-comment ${gt?"resolved":"open"}`,children:[gt?u.jsx(b2,{size:14}):u.jsx(j2,{size:14}),u.jsxs("span",{className:"inline-comment-content",children:[f?u.jsx("span",{className:"inline-comment-status",children:gt?"Resolved":"Open · Needs fix"}):null,u.jsx("span",{className:"inline-comment-body",children:Fe.body}),gt!=null&&gt.summary?u.jsx("span",{className:"inline-comment-summary",children:gt.summary}):null]})]},Fe.id)}),at&&!f?u.jsx(jm,{tone:M.type}):null]},`${V}:${M.type}:${M.oldLine??"x"}:${M.newLine??"x"}:${M.content}`)},ce=M=>Nm(M,oe[M.id]).map(V=>{var ue,ee;return V.type==="lines"?V.lines.map(ge=>X(ge,`context:${M.id}`)):u.jsx(E6,{canExpand:!!(r&&i),direction:zm(M,V),error:((ue=oe[M.id])==null?void 0:ue.error)??null,loading:((ee=oe[M.id])==null?void 0:ee.loading)??!1,segment:V,onExpand:ge=>{U(M,ge)}},`hidden:${M.id}:${V.oldStart}:${V.newStart}:${V.lineCount}`)});return u.jsx("section",{"aria-label":`${o.path} diff`,className:`diff-scroller ${w?"wrap-lines":""}`,children:u.jsxs("div",{className:`diff-table ${F?"selecting":""}`,children:[o.isBinary?u.jsx("div",{className:"binary-note",children:"Binary file changed"}):null,o.hunks.map((M,V)=>{const ue=Y.get(V);return u.jsxs("div",{className:"hunk",children:[ue?ce(ue):null,u.jsx("div",{className:"hunk-header",children:M.header||`@@ -${M.oldStart},${M.oldLines} +${M.newStart},${M.newLines} @@`}),M.lines.map(ee=>X(ee,"hunk"))]},`${M.oldStart}:${M.newStart}`)})]})},w?"wrapped":"unwrapped")}function E6({canExpand:i,direction:o,error:f,loading:r,segment:h,onExpand:g}){const w=!i||!!r,_=z6(o);return u.jsxs("div",{className:"hidden-lines",children:[u.jsxs("div",{className:"hidden-lines-main",children:[u.jsx("span",{className:"hidden-lines-count",children:r?u.jsxs(u.Fragment,{children:[u.jsx(U1,{className:"spin",size:14}),"Loading context"]}):`${h.lineCount} unmodified ${h.lineCount===1?"line":"lines"}`}),u.jsx("div",{className:"hidden-lines-actions",children:u.jsx("button",{"aria-label":_,className:"hidden-lines-action",disabled:w,title:_,type:"button",onClick:()=>g(o),children:u.jsx(N6,{direction:o})})})]}),f?u.jsx("div",{className:"hidden-lines-error",children:f}):null]})}function z6(i){return i==="up"?"Expand hidden context upward":i==="down"?"Expand hidden context downward":"Expand hidden context"}function N6({direction:i}){return i==="up"?u.jsx(H3,{size:15}):i==="down"?u.jsx(Tn,{size:15}):u.jsx(B3,{size:15})}function w6({content:i,selectedSourcePeek:o,tokens:f,onSourcePeek:r}){return!f||f.length===0?u.jsx("code",{children:u.jsx(o2,{offsetBase:0,selectedSourcePeek:o,text:i||" ",onSourcePeek:r})}):u.jsx("code",{children:f.map(h=>{const g=M6(h);return u.jsx("span",{style:g,children:u.jsx(o2,{offsetBase:h.offset,selectedSourcePeek:o,style:g,text:h.content,onSourcePeek:r})},`${h.offset}:${h.content}`)})})}const N1=/[A-Za-z_$][\w$]*/g,T6=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 o2({offsetBase:i,selectedSourcePeek:o,style:f,text:r,onSourcePeek:h}){const g=[];let w=0;N1.lastIndex=0;let _=N1.exec(r);for(;_!==null;){const x=_[0],y=_.index;if(y>w&&g.push(r.slice(w,y)),T6.has(x))g.push(x);else{const T=i+y,L=(o==null?void 0:o.column)===T&&o.symbol===x;g.push(u.jsx("button",{"aria-current":L?"location":void 0,className:`source-symbol ${L?"selected":""}`,"data-source-symbol":x,style:f,tabIndex:-1,type:"button",onClick:k=>{k.preventDefault(),k.stopPropagation(),h(x,T)},onMouseDown:k=>{k.preventDefault()},onKeyDown:k=>{k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),k.stopPropagation(),h(x,T))},children:x},`${i}:${y}:${x}`))}w=y+x.length,_=N1.exec(r)}return w<r.length&&g.push(r.slice(w)),u.jsx(u.Fragment,{children:g.length>0?g:r})}function M6(i){const o={};i.color&&(o.color=i.color),i.fontStyle&&(i.fontStyle&1)!==0&&(o.fontStyle="italic"),i.fontStyle&&(i.fontStyle&2)!==0&&(o.fontWeight=700);const f=[];return i.fontStyle&&(i.fontStyle&4)!==0&&f.push("underline"),i.fontStyle&&(i.fontStyle&8)!==0&&f.push("line-through"),f.length>0&&(o.textDecorationLine=f.join(" ")),o}function Q2(i){return i.type==="add"?"+":i.type==="delete"?"-":" "}function A6(i,o,f){return o===f?"range-selected range-single":i===o?"range-selected range-start":i===f?"range-selected range-end":"range-selected range-middle"}function C6(i,o,f){return!i||!f?"":f.mode==="turn"?`${i}:${o??""}:turn`:f.mode==="commit"?`${i}:${o??""}:commit:${f.sha}`:`${i}:${o??""}:range:${f.fromSha}:${f.toSha}`}function _6(i){const o=new Map;let f=0;for(const r of i){const h=k1(r),g=V1(r);g!=null&&(o.set(Si(h,g),f),f+=1)}return o}function D1(i,o,f,r){const h=i.get(Si(o,f)),g=i.get(Si(o,r));return h==null||g==null?null:{start:Math.min(h,g),end:Math.max(h,g)}}function r2(i,o){return!!(o&&i>=o.start&&i<=o.end)}function O6(i,o,f,r,h){const g=[],w=D1(o,f,r,h);if(!w)return"";i.forEach((x,y)=>{V1(x)!=null&&y>=w.start&&y<=w.end&&g.push(x)});const _=new Set(g.map(x=>x.type)).size>1;return g.map(x=>_?`${Q2(x)}${x.content}`:x.content).join(`
297
+ `)}const Vc="__gloss_no_extension__";function D6(i){const o=[i.name];let f=i;for(;f.children.length===1&&f.children[0].type==="directory";)f=f.children[0],o.push(f.name);return{name:o.join("/"),node:f}}function R6(i){const o=new Map;for(const f of i){const r=Z2(f.path),h=o.get(r);h?h.count+=1:o.set(r,{id:r,label:r===Vc?"No extension":r,count:1})}return Array.from(o.values()).sort((f,r)=>f.id===Vc?1:r.id===Vc?-1:f.label.localeCompare(r.label,void 0,{sensitivity:"base"}))}function L6(i,o,f){const r=o.trim().toLowerCase();return f.size===0?[]:i.filter(h=>{const g=f.has(Z2(h.path)),w=r.length===0||h.path.toLowerCase().includes(r);return g&&w})}function H6(i){const o={type:"directory",id:"root",name:"",path:"",children:[]},f=new Map;for(const r of i){const h=r.path.split("/").filter(Boolean);let g=o;for(const[w,_]of h.entries()){const x=w===h.length-1,y=h.slice(0,w+1).join("/");x?g.children.push({type:"file",id:`file:${r.path}`,name:_,path:r.path,file:r}):g=U6(g,_,y,f)}}return K2(o),o}function U6(i,o,f,r){let h=r.get(i);h||(h=new Map,r.set(i,h));const g=h.get(o);if(g)return g;const w={type:"directory",id:`dir:${f}`,name:o,path:f,children:[]};return i.children.push(w),h.set(o,w),w}function Z2(i){const o=i.split("/").pop()??i,f=o.lastIndexOf(".");return f<=0||f===o.length-1?Vc:o.slice(f).toLowerCase()}function K2(i){i.children.sort((o,f)=>o.type!==f.type?o.type==="directory"?-1:1:o.name.localeCompare(f.name,void 0,{sensitivity:"base"}));for(const o of i.children)o.type==="directory"&&K2(o)}function f2({activeFilePath:i,extensionBuckets:o,files:f,filteredFiles:r,onCollapse:h,onClearExtensions:g,onFileSelect:w,onSearchChange:_,onSelectAllExtensions:x,onToggleExtension:y,searchQuery:T,selectedExtensionIds:L}){const[k,F]=A.useState(!1),[te,se]=A.useState(new Set),be=A.useRef(null),B=A.useMemo(()=>H6(r),[r]),de=A.useMemo(()=>{const $=q6(B);for(const K of te)$.delete(K);return $},[te,B]),ne=L.size!==o.length;A.useEffect(()=>{if(!k)return;const $=Y=>{var ze;(ze=be.current)!=null&&ze.contains(Y.target)||F(!1)},K=Y=>{Y.key==="Escape"&&F(!1)};return window.addEventListener("pointerdown",$),window.addEventListener("keydown",K),()=>{window.removeEventListener("pointerdown",$),window.removeEventListener("keydown",K)}},[k]);const he=$=>{se(K=>{const Y=new Set(K);return de.has($)?Y.add($):Y.delete($),Y})};return u.jsxs("section",{className:"file-tree-panel","aria-label":"Changed files",children:[u.jsxs("div",{className:"file-tree-header",children:[u.jsx("span",{children:"Changed files"}),h?u.jsx("button",{"aria-label":"Collapse file tree",className:"file-tree-icon-button",title:"Collapse file tree",type:"button",onClick:h,children:u.jsx(jh,{size:15})}):null]}),u.jsxs("div",{className:"file-tree-controls",children:[u.jsxs("label",{className:"file-tree-search",children:[u.jsx(Ch,{size:18}),u.jsx("span",{className:"sr-only",children:"Filter files"}),u.jsx("input",{type:"search",value:T,placeholder:"Filter files...",onChange:$=>_($.target.value)}),T?u.jsx("button",{"aria-label":"Clear file search",className:"file-tree-clear",type:"button",onClick:()=>_(""),children:u.jsx(Jc,{size:14})}):null]}),u.jsxs("div",{className:"file-tree-filter-shell",ref:be,children:[u.jsx("button",{"aria-label":"Filter by file extension","aria-expanded":k,className:`file-tree-filter-button ${ne?"active":""}`,title:"Filter by file extension",type:"button",onClick:()=>F($=>!$),children:u.jsx(Rh,{size:17})}),k?u.jsx(B6,{buckets:o,selectedExtensionIds:L,onClear:g,onSelectAll:x,onToggle:y}):null]})]}),u.jsx("div",{className:"file-tree-summary",children:u.jsxs("span",{children:[r.length," of ",f.length," ",f.length===1?"file":"files"]})}),r.length===0?u.jsx("div",{className:"file-tree-empty",children:f.length===0?"No files changed":"No files match"}):u.jsx("div",{className:"file-tree-list",children:B.children.map($=>u.jsx(J2,{activeFilePath:i,expandedDirectoryIds:de,node:$,depth:0,onFileSelect:w,onToggleDirectory:he},$.id))})]})}function B6({buckets:i,onClear:o,onSelectAll:f,onToggle:r,selectedExtensionIds:h}){return u.jsxs("div",{className:"extension-popover",role:"menu","aria-label":"File extensions",children:[u.jsxs("div",{className:"extension-popover-header",children:[u.jsx("span",{children:"File extensions"}),u.jsxs("div",{className:"extension-popover-actions",children:[u.jsx("button",{type:"button",onClick:f,children:"All"}),u.jsx("button",{type:"button",onClick:o,children:"None"})]})]}),u.jsx("div",{className:"extension-options",children:i.map(g=>{const w=h.has(g.id);return u.jsxs("button",{"aria-checked":w,className:"extension-option",role:"menuitemcheckbox",type:"button",onClick:()=>r(g.id),children:[u.jsx("span",{className:"extension-check",children:w?u.jsx(Nn,{size:16}):null}),u.jsx("span",{className:"extension-label",children:g.label}),u.jsx("span",{className:"extension-count",children:g.count})]},g.id)})})]})}function J2({activeFilePath:i,depth:o,expandedDirectoryIds:f,node:r,onFileSelect:h,onToggleDirectory:g}){const w={paddingLeft:8+o*14};if(r.type==="directory"){const _=D6(r),x=f.has(_.node.id);return u.jsxs("div",{children:[u.jsxs("button",{"aria-expanded":x,className:"file-tree-row directory",style:w,title:_.node.path,type:"button",onClick:()=>g(_.node.id),children:[x?u.jsx(Tn,{size:16}):u.jsx(g2,{size:16}),x?u.jsx(x2,{size:17}):u.jsx(ih,{size:17}),u.jsx("span",{className:"file-tree-name",children:_.name})]}),x?u.jsx("div",{children:_.node.children.map(y=>u.jsx(J2,{activeFilePath:i,expandedDirectoryIds:f,node:y,depth:o+1,onFileSelect:h,onToggleDirectory:g},y.id))}):null]})}return u.jsx("div",{children:u.jsxs("button",{className:`file-tree-row file ${i===r.path?"active":""}`,style:w,title:r.path,type:"button",onClick:()=>h(r.path),children:[u.jsx("span",{className:"file-tree-spacer"}),u.jsx(H1,{size:16}),u.jsx("span",{className:"file-tree-name",children:r.name}),u.jsxs("span",{className:"file-tree-stats",children:[u.jsxs("span",{className:"stat add",children:["+",r.file.additions]}),u.jsxs("span",{className:"stat del",children:["-",r.file.deletions]})]})]})})}function q6(i){const o=new Set,f=r=>{for(const h of r.children)h.type==="directory"&&(o.add(h.id),f(h))};return f(i),o}const k6=16,Kc=360,R1=280;function V6({openTargets:i,onCopyFileContents:o,onOpenFile:f,state:r,onClose:h}){const{resolvedTheme:g}=G1(),w=A.useRef(null),_=A.useRef(null),x=A.useRef(null),y=A.useRef(null),T=A.useRef(null),[L,k]=A.useState(null),[F,te]=A.useState(!1),[se,be]=A.useState(null),B=r.status==="ready"?r.response:null,de=r.status==="error"?Q6(r.message,r.symbol):null,oe=A.useMemo(()=>B?Z6(B.content):[],[B]),ne=B&&(L==null?void 0:L.response)===B&&L.theme===g?L.lines:null,he=B?`${B.filePath}:${B.line}:${B.targetSymbol}`:r.status,[$,K]=A.useState(he);$!==he&&(K(he),se&&be(null));const Y=A.useCallback(H=>{y.current=H,x.current===null&&(x.current=window.requestAnimationFrame(()=>{x.current=null;const Z=y.current,Q=w.current;!Z||!Q||(Q.style.top=`${Math.round(Z.top)}px`,Q.style.left=`${Math.round(Z.left)}px`,Q.style.right="auto",Q.style.bottom="auto",Q.style.width=`${Math.round(Z.width)}px`,Q.style.height=`${Math.round(Z.height)}px`,Q.style.transform="")}))},[]),ze=A.useCallback(()=>{var H;(H=T.current)==null||H.call(T),T.current=null,document.body.classList.remove("source-peek-interacting"),document.body.style.cursor="",document.body.style.userSelect=""},[]);A.useEffect(()=>{const H=Z=>{Z.key==="Escape"&&h()};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[h]),A.useEffect(()=>{if(!se)return;const H=window.setTimeout(()=>be(null),2200);return()=>window.clearTimeout(H)},[se]),A.useEffect(()=>{if(!B)return;let H=!1;return R2(async()=>{const{highlightSourceContent:Z}=await import("./syntax-UR_bDbhr.js");return{highlightSourceContent:Z}},[]).then(({highlightSourceContent:Z})=>Z(B.content,B.language,g)).then(Z=>{H||k({lines:Z,response:B,theme:g})}).catch(()=>{H||k({lines:null,response:B,theme:g})}),()=>{H=!0}},[B,g]),A.useEffect(()=>{B&&window.requestAnimationFrame(()=>{var H;(H=_.current)==null||H.scrollIntoView({block:"center"})})},[B]),A.useEffect(()=>{const H=()=>{const Z=w.current;Z&&Y(En(w1(Z)))};return window.requestAnimationFrame(()=>Y(G6())),window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},[Y]),A.useEffect(()=>()=>{ze(),x.current!==null&&window.cancelAnimationFrame(x.current)},[ze]);const Be=H=>{if(H.button!==0||H.target.closest("button"))return;H.preventDefault(),ze();const Z=w.current;if(!Z)return;const Q=En(w1(Z)),Se=H.clientX,z=H.clientY;y.current=Q,document.body.classList.add("source-peek-interacting"),document.body.style.cursor="grabbing",document.body.style.userSelect="none",Z.classList.add("dragging");const q=re=>{const p=En({...Q,left:Q.left+re.clientX-Se,top:Q.top+re.clientY-z});Z.style.transform=`translate3d(${Math.round(p.left-Q.left)}px, ${Math.round(p.top-Q.top)}px, 0)`,y.current=p},W=()=>{const re=y.current??Q;Z.classList.remove("dragging"),Y(re),ze()},pe=()=>{window.removeEventListener("pointermove",q),window.removeEventListener("pointerup",W),Z.classList.remove("dragging")};T.current=pe,window.addEventListener("pointermove",q),window.addEventListener("pointerup",W,{once:!0})},Te=H=>Z=>{if(Z.button!==0)return;Z.preventDefault(),Z.stopPropagation(),ze();const Q=w.current;if(!Q)return;const Se=En(w1(Q)),z=Z.clientX,q=Z.clientY,W=X6(H);y.current=Se,document.body.classList.add("source-peek-interacting"),document.body.style.cursor=W,document.body.style.userSelect="none";const pe=O=>{const U=O.clientX-z,X=O.clientY-q;Y(Y6(Se,H,U,X))},re=()=>ze(),p=()=>{window.removeEventListener("pointermove",pe),window.removeEventListener("pointerup",re)};T.current=p,window.addEventListener("pointermove",pe),window.addEventListener("pointerup",re,{once:!0})};return u.jsxs("aside",{"aria-label":"Source peek",className:"source-peek-panel",ref:w,children:[u.jsx("button",{"aria-label":"Resize source peek horizontally",className:"source-peek-resize-handle left",type:"button",onPointerDown:Te({left:!0})}),u.jsx("button",{"aria-label":"Resize source peek vertically",className:"source-peek-resize-handle bottom",type:"button",onPointerDown:Te({bottom:!0})}),u.jsx("button",{"aria-label":"Resize source peek",className:"source-peek-resize-handle bottom-left",type:"button",onPointerDown:Te({bottom:!0,left:!0})}),u.jsx("button",{"aria-label":"Resize source peek",className:"source-peek-resize-handle bottom-right",type:"button",onPointerDown:Te({bottom:!0,right:!0})}),u.jsxs("header",{className:"source-peek-header",onPointerDown:Be,children:[u.jsxs("div",{className:"source-peek-title",children:[u.jsx(th,{size:17}),u.jsx("span",{children:"Source peek"})]}),u.jsx(rh,{className:"source-peek-drag-indicator",size:16,"aria-hidden":"true"}),u.jsxs("div",{className:"source-peek-toolbar",children:[B?u.jsx(X2,{filePath:B.filePath,openTargets:i,wordWrap:F,onActionMessage:be,onCopyFileContents:()=>o(B.filePath),onOpenFile:H=>f(B.filePath,H),onWordWrapChange:te}):null,u.jsx("button",{"aria-label":"Close source peek",className:"icon-button source-peek-close",type:"button",onClick:h,children:u.jsx(Jc,{size:17})})]})]}),r.status==="loading"?u.jsxs("div",{className:"source-peek-status",children:[u.jsx(U1,{className:"spin",size:18}),u.jsxs("span",{children:["Resolving ",r.symbol]})]}):null,r.status==="error"?u.jsx("div",{className:"source-peek-status error",children:u.jsxs("div",{className:"source-peek-error-card",children:[u.jsx(k3,{size:18}),u.jsxs("div",{className:"source-peek-error-copy",children:[u.jsx("strong",{children:de==null?void 0:de.title}),u.jsx("p",{children:de==null?void 0:de.message}),de!=null&&de.hint?u.jsx("span",{children:de.hint}):null]})]})}):null,B?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"source-peek-meta",children:[u.jsx("span",{className:"source-peek-symbol",children:B.targetSymbol}),u.jsxs("span",{className:"source-peek-path",title:`${B.filePath}:${B.line}`,children:[B.filePath,":",B.line]}),se?u.jsx("span",{className:"source-peek-action-message",children:se}):null]}),B.truncated?u.jsx("div",{className:"source-peek-truncated",children:"Showing nearby lines from a large source file."}):null,u.jsx("section",{className:`source-peek-code ${F?"wrap-lines":""}`,"aria-label":B.filePath,children:oe.map((H,Z)=>{const Q=B.startLine+Z,Se=Q===B.line;return u.jsxs("div",{className:`source-peek-row ${Se?"target":""}`,ref:Se?_:null,children:[u.jsx("span",{className:"source-peek-line-number",children:Q}),u.jsx("code",{children:K6(H||" ",(ne==null?void 0:ne[Z])??null)})]},Q)})})]}):null]})}function w1(i){const o=i.getBoundingClientRect();return{height:o.height,left:o.left,top:o.top,width:o.width}}function En(i){const o=Q1();if(window.innerWidth<=980)return{height:window.innerHeight-o*2,left:o,top:o,width:window.innerWidth-o*2};const f=Math.max(Kc,window.innerWidth-o*2),r=Math.max(R1,window.innerHeight-o*2),h=zn(i.width,Kc,f),g=zn(i.height,R1,r);return{height:g,left:zn(i.left,o,window.innerWidth-h-o),top:zn(i.top,o,window.innerHeight-g-o),width:h}}function G6(){const i=Q1();if(window.innerWidth<=980)return En({height:window.innerHeight-i*2,left:i,top:i,width:window.innerWidth-i*2});const o=Math.max(i,Math.round(window.innerWidth/3)),f=window.innerWidth-o-i,r=window.innerHeight-i*2;return En({height:r,left:o,top:i,width:f})}function Y6(i,o,f,r){const h=Q1();let g=i.left,w=i.width,_=i.height;if(o.left){const x=i.left+i.width,y=h,T=x-Kc;g=zn(i.left+f,y,T),w=x-g}return o.right&&(w=zn(i.width+f,Kc,window.innerWidth-i.left-h)),o.bottom&&(_=zn(i.height+r,R1,window.innerHeight-i.top-h)),En({height:_,left:g,top:i.top,width:w})}function X6(i){return i.bottom&&i.left?"nesw-resize":i.bottom&&i.right?"nwse-resize":i.bottom?"row-resize":"col-resize"}function Q6(i,o){const f=$2(i);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 ${o}.`,title:"No definition found"}:{hint:null,message:f,title:"Source peek unavailable"}}function $2(i){const o=i.replace(/^\d+:\s*/,"").trim();try{const f=JSON.parse(o);if(typeof f=="object"&&f!==null&&!Array.isArray(f)&&typeof f.error=="string")return $2(f.error)}catch{}return o.replace(/^source peek unavailable:\s*/i,"").trim()}function Q1(){return window.innerWidth<=720?8:k6}function zn(i,o,f){return Math.min(f,Math.max(o,i))}function Z6(i){const o=i.replace(/\r\n/g,`
298
298
  `).split(`
299
- `);return o.at(-1)===""&&o.pop(),o.length>0?o:[""]}function K6(i,o){return!o||o.length===0?i:o.map(f=>u.jsx("span",{style:J6(f),children:f.content},`${f.offset}:${f.content}`))}function J6(i){const o={};i.color&&(o.color=i.color),i.fontStyle&&(i.fontStyle&1)!==0&&(o.fontStyle="italic"),i.fontStyle&&(i.fontStyle&2)!==0&&(o.fontWeight=700);const f=[];return i.fontStyle&&(i.fontStyle&4)!==0&&f.push("underline"),i.fontStyle&&(i.fontStyle&8)!==0&&f.push("line-through"),f.length>0&&(o.textDecorationLine=f.join(" ")),o}function d2(i){return i instanceof Error?i.message:String(i)}function $6({reviewId:i,reviewScope:o,onSubmitted:f}){const r=At(B=>B.comments),h=At(B=>B.removeComment),[g,w]=A.useState("idle"),[_,S]=A.useState(null),y=A.useRef(!1),T=g!=="submitting"&&g!=="done",L=A.useCallback(async()=>{if(!(!T||y.current)){y.current=!0,w("submitting"),S(null);try{await Q5(i,r,o),w("done"),S("Submitted");try{await(f==null?void 0:f())}catch(B){S(`Submitted, but refresh failed: ${d2(B)}`)}}catch(B){y.current=!1,w("error"),S(d2(B))}}},[T,r,f,i,o]);return A.useEffect(()=>{const B=F=>{xm(F)&&(F.preventDefault(),L())};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[L]),u.jsxs("aside",{className:"submit-bar",children:[u.jsx("div",{className:"comment-list",children:r.length===0?u.jsx("span",{className:"muted",children:"No comments yet"}):r.map(B=>u.jsxs("div",{className:"comment-chip",children:[u.jsxs("span",{children:[B.filePath,":",bi(B,{repeatSideOnEnd:!1})]}),u.jsx("button",{className:"icon-button",type:"button",title:"Remove comment",onClick:()=>h(B.id),children:u.jsx(z2,{size:14})})]},B.id))}),u.jsxs("div",{className:"submit-actions",children:[_?u.jsx("span",{className:`submit-message ${g}`,children:_}):null,u.jsxs("button",{"aria-keyshortcuts":"Meta+Shift+Enter",className:"primary-button",type:"button",disabled:!T,title:"Submit review (Command+Shift+Enter)",onClick:L,children:[g==="done"?u.jsx(Nn,{size:16}):u.jsx(Oh,{size:16}),"Submit ",r.length]})]})]})}const F6="gloss:viewed-files:";function F2(i){return`${F6}${i}`}function T1(i,o=W2()){if(!o)return new Set;const f=o.getItem(F2(i));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 W6(i,o,f=W2()){if(!f)return;const r=F2(i);if(o.size===0){f.removeItem(r);return}f.setItem(r,JSON.stringify(Array.from(o).toSorted()))}function W2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function I6(i){return i.type==="review.turn.created"||i.type==="review.submitted"||i.type==="review.updated"}function P6(i,o,f){return i.reviewId!==o||!i.selectedExtensionIds?new Set(f):new Set(f.filter(r=>{var h;return(h=i.selectedExtensionIds)==null?void 0:h.has(r)}))}function e8(i,o){return{icon:(i==null?void 0:i.trim())===o.trim()?"branch":null}}function t8(i,o){const f=(i==null?void 0:i.trim())??"",r=f||"detached";return r===o.trim()?null:{label:r,title:f||"Detached HEAD"}}function I2(i){return i.length>1}const l8=300,n8=560,a8=360,i8={files:[],stats:{files:0,additions:0,deletions:0}},c8=[],u8=[],M1=[{label:"Default app",target:"default"},{label:"Open in folder",target:"folder"}],P2={diff:null,error:null,loading:!1},s8=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),o8=new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}),A1=[["year",3600*24*365],["month",3600*24*30],["week",3600*24*7],["day",3600*24],["hour",3600],["minute",60],["second",1]],r8=[{icon:ph,label:"Match system theme",value:"system"},{icon:Bh,label:"Use light theme",value:"light"},{icon:gh,label:"Use dark theme",value:"dark"}];function f8({reviewId:i}){return u.jsx(m8,{reviewId:i},i)}function d8(){const{preference:i,setPreference:o}=G1();return u.jsxs("fieldset",{className:"theme-toggle",children:[u.jsx("legend",{className:"sr-only",children:"Theme"}),r8.map(f=>{const r=f.icon;return u.jsx("button",{"aria-label":f.label,"aria-pressed":i===f.value,className:"theme-toggle-option",title:f.label,type:"button",onClick:()=>o(f.value),children:u.jsx(r,{size:15})},f.value)})]})}function h8(i){const o=document.getElementById(Y2(i));if(!o)return;const r=o.getBoundingClientRect().top+window.scrollY-156;window.scrollTo({behavior:"smooth",top:Math.max(r,0)})}function m8({reviewId:i}){const[o,f]=A.useState(null),[r,h]=A.useState(null),[g,w]=A.useState(!1),[_,S]=A.useState(null),[y,T]=A.useState(!0),[L,B]=A.useState(!1),[F,te]=A.useState(a8),[se,be]=A.useState({reviewId:null,searchQuery:"",selectedExtensionIds:null}),[q,de]=A.useState(null),[oe,ne]=A.useState({mode:"all"}),[he,$]=A.useReducer(S8,P2),[K,Y]=A.useState(null),[ze,Be]=A.useState(null),[Te,H]=A.useState(M1),[Z,Q]=A.useState(()=>({storageKey:i,files:T1(i)})),[Se,z]=A.useState(null),k=A.useRef(0),W=At(G=>G.reset),pe=At(G=>G.hydrateReview),re=At(G=>G.setDraft),p=(o==null?void 0:o.turns[o.turns.length-1])??null,O=(p==null?void 0:p.id)??null,U=o&&p?o.turns.find(G=>G.id===q)??p:null,X=o&&U?y8(o,U):null,ce=X?Wf(X):null,M=(U==null?void 0:U.diff.commitDiffs)??u8,V=A.useMemo(()=>b8(oe,M),[M,oe]),ue=U&&V.mode==="single"?M.find(G=>G.commit.sha===V.sha)??null:null,ee=U&&V.mode==="range"?he.diff??i8:null,ge=U?ee??ue??U.diff:null,Qe=(ge==null?void 0:ge.files)??c8,yt=A.useMemo(()=>R6(Qe),[Qe]),pt=A.useMemo(()=>yt.map(G=>G.id),[yt]),at=(o==null?void 0:o.meta.id)??null,tn=!!(at&&se.reviewId===at),Fe=A.useMemo(()=>at?P6(se,at,pt):new Set(pt),[pt,se,at]),gt=tn?se.searchQuery:"",ln=A.useMemo(()=>L6(Qe,gt,Fe),[Qe,gt,Fe]),Jt=U?`${i}:${U.id}`:i;let wl=Z.files;Z.storageKey!==Jt&&(wl=T1(Jt),Q({storageKey:Jt,files:wl}));const Mn=_&&ln.some(G=>G.path===_)?_:null,An=A.useCallback(G=>{f(G),document.title=Wf(G)},[]),xa=A.useCallback(()=>{ne({mode:"all"}),$({type:"idle"}),Be(null),Y(null),re(null)},[re]),ot=A.useCallback(async()=>{var xe;const G=await Pf(i),ae=((xe=G.turns[G.turns.length-1])==null?void 0:xe.id)??null;q===null&&O&&ae!==O&&xa(),An(G)},[i,q,O,xa,An]);if(A.useEffect(()=>{let G=!1;return W(),Pf(i).then(ae=>{G||An(ae)}).catch(ae=>{G||h(ae instanceof Error?ae.message:String(ae))}),()=>{G=!0}},[i,W,An]),A.useEffect(()=>{let G=!1;return Z5().then(({targets:ae})=>{G||H(ae.length>0?ae:M1)}).catch(()=>{G||H(M1)}),()=>{G=!0}},[]),A.useEffect(()=>{var G;U&&pe(((G=U.feedback)==null?void 0:G.comments)??[],U.resolution??null)},[pe,U]),A.useEffect(()=>{if(!U||V.mode!=="range")return;let G=!1;return $({type:"loading"}),K5(i,V.fromSha,V.toSha,U.id).then(ae=>{G||$({type:"loaded",diff:ae})}).catch(ae=>{G||$({error:ae instanceof Error?ae.message:String(ae),type:"failed"})}),()=>{G=!0}},[V,U,i]),A.useEffect(()=>{const G=new EventSource(`/api/reviews/${i}/events`);return G.onmessage=ae=>{const xe=p5(ae.data,T5,"review event");I6(xe)&&ot().catch(rt=>{h(rt instanceof Error?rt.message:String(rt))})},()=>{G.close()}},[i,ot]),r)return u.jsx("main",{className:"empty-shell",children:u.jsxs("section",{className:"empty-panel",children:[u.jsx("h1",{children:"Review unavailable"}),u.jsx("p",{children:r})]})});if(!o||!U||!X||!ge||!ce)return u.jsx("main",{className:"empty-shell",children:u.jsxs("section",{className:"empty-panel",children:[u.jsx(U1,{className:"spin",size:24}),u.jsx("p",{children:"Loading review"})]})});const Ic=U.diff.scope,xi=ge.stats,ji=e8(X.meta.branch,ce),Tl=t8(X.meta.branch,ce),Pc=N8(V),ja=w8(V),Ea=U.id!==O||a5(U.status),eu=I2(o.turns),Ml=V.mode==="range"?he.error:null,bt=V.mode==="range"&&he.loading,$t=ge.files.filter(G=>wl.has(G.path)).length,St=ge.files.length===0?0:Math.round($t/ge.files.length*100),tu=G=>{be(ae=>({reviewId:o.meta.id,searchQuery:G,selectedExtensionIds:ae.reviewId===o.meta.id?ae.selectedExtensionIds:null}))},lu=G=>{be(ae=>{const xe=ae.reviewId===o.meta.id&&ae.selectedExtensionIds?new Set(ae.selectedExtensionIds):new Set(pt);return xe.has(G)?xe.delete(G):xe.add(G),{reviewId:o.meta.id,searchQuery:ae.reviewId===o.meta.id?ae.searchQuery:"",selectedExtensionIds:xe}})},nu=()=>{be(G=>({reviewId:o.meta.id,searchQuery:G.reviewId===o.meta.id?G.searchQuery:"",selectedExtensionIds:null}))},Cn=()=>{be(G=>({reviewId:o.meta.id,searchQuery:G.reviewId===o.meta.id?G.searchQuery:"",selectedExtensionIds:new Set}))},_n=G=>{S(G),B(!1),window.requestAnimationFrame(()=>{window.setTimeout(()=>h8(G),0)})},On=G=>{G.preventDefault();const ae=G.clientX,xe=F,rt=el=>{const it=xe+el.clientX-ae;te(Math.min(n8,Math.max(l8,it)))},Pt=()=>{window.removeEventListener("pointermove",rt),window.removeEventListener("pointerup",Pt)};window.addEventListener("pointermove",rt),window.addEventListener("pointerup",Pt,{once:!0})},ul=(G,ae)=>{Q(xe=>{const rt=xe.storageKey===Jt?xe.files:T1(Jt),Pt=new Set(rt);return ae?Pt.add(G):Pt.delete(G),W6(Jt,Pt),{storageKey:Jt,files:Pt}})},Dn=async(G,ae)=>{z(null);try{await e2(i,G,U.id,{target:ae})}catch(xe){const rt=xe instanceof Error?xe.message:String(xe);throw z(rt),new Error(rt)}},nn=async(G,ae)=>{z(null);try{await e2(i,G,U.id,{scope:"repo",target:ae})}catch(xe){const rt=xe instanceof Error?xe.message:String(xe);throw z(rt),new Error(rt)}},au=async G=>{z(null);try{return(await t2(i,G,U.id)).content}catch(ae){const xe=ae instanceof Error?ae.message:String(ae);throw z(xe),new Error(xe)}},Ei=async G=>{z(null);try{return(await t2(i,G,U.id,{scope:"repo"})).content}catch(ae){const xe=ae instanceof Error?ae.message:String(ae);throw z(xe),new Error(xe)}},za=async G=>{const ae=k.current+1;k.current=ae,Be(G),Y({status:"loading",symbol:G.symbol});try{const xe=await $5({reviewId:i,turnId:U.id,source:ja,...G});k.current===ae&&Y({status:"ready",response:xe})}catch(xe){k.current===ae&&Y({message:xe instanceof Error?xe.message:String(xe),status:"error",symbol:G.symbol})}},Al={activeFilePath:Mn,extensionBuckets:yt,files:ge.files,filteredFiles:ln,searchQuery:gt,selectedExtensionIds:Fe,onClearExtensions:Cn,onFileSelect:_n,onSearchChange:tu,onSelectAllExtensions:nu,onToggleExtension:lu},iu=u.jsx(f2,{...Al,onCollapse:()=>T(!0)}),zi=u.jsx(f2,{...Al}),Ni=ge.files.length===0?null:u.jsxs("div",{className:"empty-diff filtered-empty",children:[u.jsx("h2",{children:"No matching files"}),u.jsx("p",{children:"Adjust the file search or extension filters to show changed files."})]});return u.jsx("main",{className:"review-shell",children:u.jsxs("div",{className:"review-split",children:[u.jsxs("div",{className:"review-main-pane",children:[u.jsxs("header",{className:"topbar",children:[u.jsxs("div",{className:"topbar-header",children:[u.jsxs("div",{className:"topbar-title",children:[u.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:""}),u.jsxs("div",{className:"review-heading",children:[u.jsx("p",{className:"product-name",children:"Gloss"}),u.jsxs("h1",{children:[ji.icon==="branch"?u.jsx(Gc,{className:"review-title-icon",size:18}):null,u.jsx("span",{className:"review-title-text",children:ce})]})]})]}),u.jsxs("div",{className:"topbar-actions",children:[u.jsx(x8,{commitDiffs:M,value:V,onChange:G=>{ne(G),G.mode!=="range"&&$({type:"idle"}),re(null)}}),u.jsxs("div",{className:"viewed-progress",title:"Viewed files",children:[u.jsx("span",{"aria-hidden":"true",className:"viewed-progress-ring",style:{"--viewed-progress":`${St}%`}}),$t," / ",ge.files.length," viewed"]}),u.jsx("button",{"aria-label":"Open file tree",className:"icon-button file-tree-mobile-toggle",title:"Open file tree",type:"button",onClick:()=>B(!0),children:u.jsx(H1,{size:16})}),u.jsx("button",{"aria-label":g?"Unwrap lines":"Wrap lines","aria-pressed":g,className:"icon-button wrap-toggle",title:g?"Unwrap lines":"Wrap lines",type:"button",onClick:()=>w(G=>!G),children:g?u.jsx(Sh,{size:16}):u.jsx(E2,{size:16})}),u.jsx(d8,{}),Tl?u.jsxs("div",{className:"branch-pill",title:Tl.title,children:[u.jsx(Gc,{size:16}),u.jsx("span",{children:Tl.label})]}):null]})]}),u.jsx(p8,{scope:Ic,selectedTurn:U,stats:xi,turns:o.turns,onSelectTurn:G=>{G!==U.id&&xa(),de(G===O?null:G)}})]}),Se?u.jsx("div",{className:"open-file-message error",children:Se}):null,Ml?u.jsx("div",{className:"open-file-message error",children:Ml}):null,bt?u.jsx("div",{className:"range-loading",children:"Loading range diff"}):null,u.jsxs("div",{className:`review-body ${y?"file-tree-collapsed":""}`,style:{"--file-tree-width":`${F}px`},children:[u.jsx("aside",{className:`review-sidebar ${y?"collapsed":""}`,children:y?u.jsxs("button",{"aria-label":"Expand file tree",className:"file-tree-rail",title:"Expand file tree",type:"button",onClick:()=>T(!1),children:[u.jsx(zh,{size:17}),u.jsx("span",{children:"Files"}),u.jsx("span",{children:ln.length})]}):u.jsxs(u.Fragment,{children:[iu,u.jsx("button",{"aria-label":"Resize file tree",className:"file-tree-resize-handle",title:"Resize file tree",type:"button",onPointerDown:On})]})}),u.jsxs("section",{className:"review-diff-column",children:[Ea&&!eu?u.jsx(A8,{record:X}):null,u.jsx(S6,{activeFilePath:Mn,contextSource:ja,diff:ge,emptyState:Ni,files:ln,record:X,readOnly:Ea,reviewId:i,selectedSourcePeek:ze,turnId:U.id,viewedFiles:wl,wrapLines:g,openTargets:Te,onCopyFileContents:au,onOpenFile:Dn,onSourcePeek:za,onViewedChange:ul})]})]}),L?u.jsx("dialog",{className:"file-tree-drawer-backdrop","aria-label":"Files",open:!0,children:u.jsxs("aside",{className:"file-tree-drawer",children:[u.jsxs("div",{className:"file-tree-drawer-header",children:[u.jsx("span",{children:"Changed files"}),u.jsx("button",{"aria-label":"Close file tree",className:"icon-button",type:"button",onClick:()=>B(!1),children:u.jsx(Jc,{size:16})})]}),zi]})}):null,Ea?null:u.jsx($6,{reviewId:i,reviewScope:Pc,onSubmitted:ot})]}),K?Yc.createPortal(u.jsx(V6,{openTargets:Te,state:K,onCopyFileContents:Ei,onOpenFile:nn,onClose:()=>{k.current+=1,Be(null),Y(null)}}),document.body):null]})})}function y8(i,o){return{...i,meta:{...i.meta,activeTurnId:o.id,status:o.status,submittedAt:o.submittedAt,resolvedAt:o.resolvedAt,feedbackPath:o.feedbackPath,markdownPath:o.markdownPath},diff:o.diff,...o.feedback?{feedback:o.feedback}:{feedback:void 0},...o.resolution?{resolution:o.resolution}:{resolution:void 0}}}function p8({scope:i,selectedTurn:o,stats:f,turns:r,onSelectTurn:h}){return u.jsxs("div",{className:"review-context-bar",children:[u.jsxs("div",{className:"review-context-range",title:`${m2("Base",i.base.ref,i.base.sha)} to ${m2("Compare",i.comparison.ref,i.comparison.sha)}`,children:[u.jsx("span",{className:"review-context-ref",children:h2(i.base.ref,i.base.sha)}),u.jsx(v2,{className:"review-context-arrow",size:14}),u.jsx("span",{className:"review-context-ref",children:h2(i.comparison.ref,i.comparison.sha)})]}),u.jsx("span",{className:"review-context-divider","aria-hidden":"true"}),u.jsxs("div",{className:"review-context-stats",title:"Changed files",children:[u.jsxs("span",{children:[f.files," ",f.files===1?"file":"files"]}),u.jsxs("span",{className:"summary-add",children:["+",f.additions]}),u.jsxs("span",{className:"summary-del",children:["-",f.deletions]})]}),u.jsx(v8,{selectedTurn:o,turns:r,onSelect:h})]})}function v8({selectedTurn:i,turns:o,onSelect:f}){var S;const[r,h]=A.useState(!1),g=A.useRef(null);if(A.useEffect(()=>{if(!r)return;const y=L=>{var B;(B=g.current)!=null&&B.contains(L.target)||h(!1)},T=L=>{L.key==="Escape"&&h(!1)};return window.addEventListener("pointerdown",y),window.addEventListener("keydown",T),()=>{window.removeEventListener("pointerdown",y),window.removeEventListener("keydown",T)}},[r]),!I2(o))return null;const w=(S=o[o.length-1])==null?void 0:S.id,_=[...o].reverse();return u.jsxs("div",{className:"turn-selector",ref:g,children:[u.jsxs("button",{"aria-expanded":r,"aria-haspopup":"menu",className:"turn-selector-trigger",type:"button",onClick:()=>h(y=>!y),children:[u.jsxs("span",{children:["Turn ",i.index," of ",o.length]}),u.jsx("span",{className:`turn-selector-status ${i.status}`,children:i.status}),u.jsx(Tn,{size:14})]}),r?u.jsx("div",{className:"turn-menu",role:"menu","aria-label":"Review turns",children:_.map(y=>{var se;const T=N2(y),L=y.id===i.id,B=y.id===w,F=(se=y.feedback)!=null&&se.reviewScope?l5(y.feedback.reviewScope,y.diff.commitDiffs??[]):null,te=g8(y);return u.jsxs("button",{"aria-checked":L,className:`turn-menu-item ${L?"selected":""}`,role:"menuitemradio",type:"button",onClick:()=>{f(y.id),h(!1)},children:[u.jsxs("span",{className:"turn-menu-title",children:["Turn ",y.index,B?u.jsx("span",{className:"turn-menu-latest",children:"Latest"}):null]}),u.jsxs("span",{className:`turn-menu-meta ${y.status}`,children:[y.status,T.total>0?` · ${T.open} open / ${T.total}`:" · no comments"]}),te?u.jsx("time",{className:"turn-menu-time",dateTime:te,children:td(te)}):null,F?u.jsxs("span",{className:"turn-menu-scope",children:["Scope: ",F]}):null]},y.id)})}):null]})}function h2(i,o){return o?`${i} ${o.slice(0,7)}`:i}function m2(i,o,f){return`${i} ${o}${f?` (${f})`:""}`}function g8(i){var o;return i.status==="resolved"?i.resolvedAt??((o=i.resolution)==null?void 0:o.resolvedAt)??null:i.status==="submitted"?i.submittedAt??null:null}function b8(i,o){if(i.mode==="all")return i;if(i.mode==="single")return o.some(h=>h.commit.sha===i.sha)?i:{mode:"all"};const f=o.findIndex(h=>h.commit.sha===i.fromSha),r=o.findIndex(h=>h.commit.sha===i.toSha);return f>=0&&r>=f?i:{mode:"all"}}function S8(i,o){switch(o.type){case"idle":return P2;case"loading":return{diff:null,error:null,loading:!0};case"loaded":return{diff:o.diff,error:null,loading:!1};case"failed":return{diff:null,error:o.error,loading:!1}}}function x8({commitDiffs:i,value:o,onChange:f}){const[r,h]=A.useState(!1),[g,w]=A.useState("all"),[_,S]=A.useState(new Set),y=A.useRef(null),T=A.useRef(null),L=A.useMemo(()=>i.map(q=>({sha:q.commit.sha,shortSha:q.commit.shortSha,subject:q.commit.subject,authorName:q.commit.authorName,committedAt:q.commit.committedAt,fileCount:q.files.length})),[i]);if(A.useEffect(()=>{if(!r)return;T.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const q=["button:not(:disabled)","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)","a[href]",'[tabindex]:not([tabindex="-1"])'].join(","),de=()=>{var ne;return Array.from(((ne=y.current)==null?void 0:ne.querySelectorAll(q))??[]).filter(he=>he.offsetParent!==null)};window.requestAnimationFrame(()=>{var ne;(ne=de()[0]??y.current)==null||ne.focus()});const oe=ne=>{var Y;if(ne.key==="Escape"&&h(!1),ne.key!=="Tab")return;const he=de();if(he.length===0){ne.preventDefault(),(Y=y.current)==null||Y.focus();return}const $=he[0],K=he[he.length-1];ne.shiftKey&&document.activeElement===$?(ne.preventDefault(),K.focus()):!ne.shiftKey&&document.activeElement===K&&(ne.preventDefault(),$.focus())};return window.addEventListener("keydown",oe),()=>{var ne;window.removeEventListener("keydown",oe),(ne=T.current)==null||ne.focus(),T.current=null}},[r]),L.length===0)return null;const B=()=>{const q=j8(o,L);w(o.mode==="all"||q.size===0?"all":"selected"),S(q),h(!0)},F=ed(_,L),te=F.length>0?{from:L[F[0]],to:L[F[F.length-1]],count:F[F.length-1]-F[0]+1}:null,se=g==="all"?`${L.length} ${L.length===1?"commit":"commits"}`:te?te.from.sha===te.to.sha?te.from.shortSha:`${te.count} commits · ${te.from.shortSha} to ${te.to.shortSha}`:"No commits selected",be=g==="all"||F.length>0;return u.jsxs("div",{className:"commit-selector",children:[u.jsxs("button",{"aria-expanded":r,className:"commit-picker-trigger",type:"button",onClick:B,children:[u.jsx(sh,{size:16}),u.jsx("span",{className:"commit-picker-trigger-text",children:T8(o,L)}),u.jsx(Tn,{size:16})]}),r?Yc.createPortal(u.jsx("div",{className:"commit-picker-backdrop",children:u.jsxs("dialog",{"aria-labelledby":"commit-picker-title","aria-modal":"true",className:"commit-picker-dialog",ref:y,open:!0,tabIndex:-1,children:[u.jsxs("header",{className:"commit-picker-header",children:[u.jsx("h2",{id:"commit-picker-title",children:"Select commits to view"}),u.jsx("button",{"aria-label":"Close commit picker",className:"icon-button commit-picker-close",type:"button",onClick:()=>h(!1),children:u.jsx(Jc,{size:20})})]}),u.jsxs("div",{className:"commit-picker-body",children:[u.jsxs("label",{className:`commit-picker-all ${g==="all"?"selected":""}`,children:[u.jsx("input",{checked:g==="all",className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{w("all"),S(new Set)}}),u.jsxs("span",{className:"commit-picker-all-copy",children:[u.jsx("span",{children:"All commits"}),u.jsxs("span",{children:[L.length," ",L.length===1?"commit":"commits"]})]})]}),u.jsx("div",{className:"commit-picker-section-label",children:"Select a range of commits"}),u.jsx("div",{className:"commit-picker-list",children:L.map(q=>{const de=g==="selected"&&_.has(q.sha);return u.jsxs("label",{className:`commit-picker-row ${de?"selected":""}`,children:[u.jsx("input",{checked:de,className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{w("selected"),S(oe=>E8(oe,q.sha,L))}}),u.jsxs("span",{className:"commit-picker-row-copy",children:[u.jsx("span",{className:"commit-picker-subject",children:q.subject}),u.jsxs("span",{className:"commit-picker-meta",children:[q.authorName," committed ",M8(q.committedAt)," ","· ",q.fileCount," ",q.fileCount===1?"file":"files"]})]}),u.jsx("span",{className:"commit-picker-sha",children:q.shortSha})]},q.sha)})})]}),u.jsxs("footer",{className:"commit-picker-footer",children:[u.jsx("span",{className:"commit-picker-summary",children:se}),u.jsx("button",{className:"secondary-button",type:"button",onClick:()=>h(!1),children:"Cancel"}),u.jsxs("button",{className:"primary-button",disabled:!be,type:"button",onClick:()=>{if(g==="all"){f({mode:"all"}),h(!1);return}const q=z8(F,L);q&&(f(q),h(!1))},children:[u.jsx(Nn,{size:16}),"Save"]})]})]})}),document.body):null]})}function j8(i,o){if(i.mode==="all")return new Set;if(i.mode==="single")return o.some(h=>h.sha===i.sha)?new Set([i.sha]):new Set;const f=o.findIndex(h=>h.sha===i.fromSha),r=o.findIndex(h=>h.sha===i.toSha);return f<0||r<f?new Set:ga(f,r,o)}function ed(i,o){const f=[];for(const[r,h]of o.entries())i.has(h.sha)&&f.push(r);return f}function E8(i,o,f){const r=f.findIndex(y=>y.sha===o);if(r<0)return i;const h=ed(i,f);if(!i.has(o)){const y=h.length>0?Math.min(h[0],r):r,T=h.length>0?Math.max(h[h.length-1],r):r;return ga(y,T,f)}if(h.length<=1)return new Set;const g=h[0],w=h[h.length-1];if(r<=g)return ga(g+1,w,f);if(r>=w)return ga(g,w-1,f);const _=r-g,S=w-r;return _>=S?ga(g,r-1,f):ga(r+1,w,f)}function ga(i,o,f){return i<0||o<i?new Set:new Set(f.slice(i,o+1).map(r=>r.sha))}function z8(i,o){if(i.length===0)return null;const f=i[0],r=i[i.length-1];return f===r?{mode:"single",sha:o[f].sha}:{mode:"range",fromSha:o[f].sha,toSha:o[r].sha}}function N8(i){return i.mode==="all"?{mode:"all"}:i.mode==="single"?{mode:"single",sha:i.sha}:{mode:"range",fromSha:i.fromSha,toSha:i.toSha}}function w8(i){return i.mode==="all"?{mode:"turn"}:i.mode==="single"?{mode:"commit",sha:i.sha}:{mode:"range",fromSha:i.fromSha,toSha:i.toSha}}function T8(i,o){if(i.mode==="all")return"All commits";if(i.mode==="single"){const g=o.find(w=>w.sha===i.sha);return g?`${g.shortSha} ${g.subject}`:"One commit"}const f=o.findIndex(g=>g.sha===i.fromSha),r=o.findIndex(g=>g.sha===i.toSha);return f<0||r<f?"Commit range":`${r-f+1} commits · ${o[f].shortSha} to ${o[r].shortSha}`}function M8(i){const o=new Date(i);if(Number.isNaN(o.getTime()))return"recently";const f=Math.round((o.getTime()-Date.now())/1e3),[r,h]=A1.find(([,g])=>Math.abs(f)>=g)??A1[A1.length-1];return s8.format(Math.round(f/h),r)}function A8({record:i}){var r;const o=C8(i);if(!o)return null;const f=i.meta.status==="resolved"?i.meta.resolvedAt??((r=i.resolution)==null?void 0:r.resolvedAt):i.meta.submittedAt;return u.jsxs("section",{className:`review-state-banner ${i.meta.status}`,children:[u.jsxs("div",{className:"review-state-title",children:[u.jsx(b2,{size:16}),u.jsx("span",{children:o.title})]}),u.jsx("p",{children:o.body}),f?u.jsx("time",{dateTime:f,children:td(f)}):null]})}function C8(i){const o=i.meta.status,f=N2(i),r=f.total>0?`${f.resolved} of ${f.total} comments resolved`:null;return o==="submitted"?{title:f.resolved>0&&r?`Submitted · ${r}`:"Submitted",body:f.resolved>0?"Feedback is being handled.":"Feedback has been submitted."}:o==="resolved"?{title:r?`Resolved · ${r}`:"Resolved",body:"This feedback turn is resolved."}:null}function td(i){return o8.format(new Date(i))}const _8="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",O8=`1. Run gloss open --json from the repo root unless the user names a base ref.
299
+ `);return o.at(-1)===""&&o.pop(),o.length>0?o:[""]}function K6(i,o){return!o||o.length===0?i:o.map(f=>u.jsx("span",{style:J6(f),children:f.content},`${f.offset}:${f.content}`))}function J6(i){const o={};i.color&&(o.color=i.color),i.fontStyle&&(i.fontStyle&1)!==0&&(o.fontStyle="italic"),i.fontStyle&&(i.fontStyle&2)!==0&&(o.fontWeight=700);const f=[];return i.fontStyle&&(i.fontStyle&4)!==0&&f.push("underline"),i.fontStyle&&(i.fontStyle&8)!==0&&f.push("line-through"),f.length>0&&(o.textDecorationLine=f.join(" ")),o}function d2(i){return i instanceof Error?i.message:String(i)}function $6({reviewId:i,reviewScope:o,onSubmitted:f}){const r=At(k=>k.comments),h=At(k=>k.removeComment),[g,w]=A.useState("idle"),[_,x]=A.useState(null),y=A.useRef(!1),T=g!=="submitting"&&g!=="done",L=A.useCallback(async()=>{if(!(!T||y.current)){y.current=!0,w("submitting"),x(null);try{await Q5(i,r,o),w("done"),x("Submitted");try{await(f==null?void 0:f())}catch(k){x(`Submitted, but refresh failed: ${d2(k)}`)}}catch(k){y.current=!1,w("error"),x(d2(k))}}},[T,r,f,i,o]);return A.useEffect(()=>{const k=F=>{xm(F)&&(F.preventDefault(),L())};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[L]),u.jsxs("aside",{className:"submit-bar",children:[u.jsx("div",{className:"comment-list",children:r.length===0?u.jsx("span",{className:"muted",children:"No comments yet"}):r.map(k=>u.jsxs("div",{className:"comment-chip",children:[u.jsxs("span",{children:[k.filePath,":",bi(k,{repeatSideOnEnd:!1})]}),u.jsx("button",{className:"icon-button",type:"button",title:"Remove comment",onClick:()=>h(k.id),children:u.jsx(z2,{size:14})})]},k.id))}),u.jsxs("div",{className:"submit-actions",children:[_?u.jsx("span",{className:`submit-message ${g}`,children:_}):null,u.jsxs("button",{"aria-keyshortcuts":"Meta+Shift+Enter",className:"primary-button",type:"button",disabled:!T,title:"Submit review (Command+Shift+Enter)",onClick:L,children:[g==="done"?u.jsx(Nn,{size:16}):u.jsx(Oh,{size:16}),"Submit ",r.length]})]})]})}const F6="gloss:viewed-files:";function F2(i){return`${F6}${i}`}function T1(i,o=W2()){if(!o)return new Set;const f=o.getItem(F2(i));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 W6(i,o,f=W2()){if(!f)return;const r=F2(i);if(o.size===0){f.removeItem(r);return}f.setItem(r,JSON.stringify(Array.from(o).toSorted()))}function W2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function I6(i){return i.type==="review.turn.created"||i.type==="review.submitted"||i.type==="review.updated"}function P6(i,o,f){return i.reviewId!==o||!i.selectedExtensionIds?new Set(f):new Set(f.filter(r=>{var h;return(h=i.selectedExtensionIds)==null?void 0:h.has(r)}))}function e8(i,o){return{icon:(i==null?void 0:i.trim())===o.trim()?"branch":null}}function t8(i,o){const f=(i==null?void 0:i.trim())??"",r=f||"detached";return r===o.trim()?null:{label:r,title:f||"Detached HEAD"}}function I2(i){return i.length>1}const l8=300,n8=560,a8=360,i8={files:[],stats:{files:0,additions:0,deletions:0}},c8=[],u8=[],M1=[{label:"Default app",target:"default"},{label:"Open in folder",target:"folder"}],P2={diff:null,error:null,loading:!1},s8=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),o8=new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}),A1=[["year",3600*24*365],["month",3600*24*30],["week",3600*24*7],["day",3600*24],["hour",3600],["minute",60],["second",1]],r8=[{icon:ph,label:"Match system theme",value:"system"},{icon:Bh,label:"Use light theme",value:"light"},{icon:gh,label:"Use dark theme",value:"dark"}];function f8({reviewId:i}){return u.jsx(m8,{reviewId:i},i)}function d8(){const{preference:i,setPreference:o}=G1();return u.jsxs("fieldset",{className:"theme-toggle",children:[u.jsx("legend",{className:"sr-only",children:"Theme"}),r8.map(f=>{const r=f.icon;return u.jsx("button",{"aria-label":f.label,"aria-pressed":i===f.value,className:"theme-toggle-option",title:f.label,type:"button",onClick:()=>o(f.value),children:u.jsx(r,{size:15})},f.value)})]})}function h8(i){const o=document.getElementById(Y2(i));if(!o)return;const r=o.getBoundingClientRect().top+window.scrollY-156;window.scrollTo({behavior:"smooth",top:Math.max(r,0)})}function m8({reviewId:i}){const[o,f]=A.useState(null),[r,h]=A.useState(null),[g,w]=A.useState(!1),[_,x]=A.useState(null),[y,T]=A.useState(!0),[L,k]=A.useState(!1),[F,te]=A.useState(a8),[se,be]=A.useState({reviewId:null,searchQuery:"",selectedExtensionIds:null}),[B,de]=A.useState(null),[oe,ne]=A.useState({mode:"all"}),[he,$]=A.useReducer(S8,P2),[K,Y]=A.useState(null),[ze,Be]=A.useState(null),[Te,H]=A.useState(M1),[Z,Q]=A.useState(()=>({storageKey:i,files:T1(i)})),[Se,z]=A.useState(null),q=A.useRef(0),W=At(G=>G.reset),pe=At(G=>G.hydrateReview),re=At(G=>G.setDraft),p=(o==null?void 0:o.turns[o.turns.length-1])??null,O=(p==null?void 0:p.id)??null,U=o&&p?o.turns.find(G=>G.id===B)??p:null,X=o&&U?y8(o,U):null,ce=X?Wf(X):null,M=(U==null?void 0:U.diff.commitDiffs)??u8,V=A.useMemo(()=>b8(oe,M),[M,oe]),ue=U&&V.mode==="single"?M.find(G=>G.commit.sha===V.sha)??null:null,ee=U&&V.mode==="range"?he.diff??i8:null,ge=U?ee??ue??U.diff:null,Qe=(ge==null?void 0:ge.files)??c8,yt=A.useMemo(()=>R6(Qe),[Qe]),pt=A.useMemo(()=>yt.map(G=>G.id),[yt]),at=(o==null?void 0:o.meta.id)??null,tn=!!(at&&se.reviewId===at),Fe=A.useMemo(()=>at?P6(se,at,pt):new Set(pt),[pt,se,at]),gt=tn?se.searchQuery:"",ln=A.useMemo(()=>L6(Qe,gt,Fe),[Qe,gt,Fe]),Jt=U?`${i}:${U.id}`:i;let wl=Z.files;Z.storageKey!==Jt&&(wl=T1(Jt),Q({storageKey:Jt,files:wl}));const Mn=_&&ln.some(G=>G.path===_)?_:null,An=A.useCallback(G=>{f(G),document.title=Wf(G)},[]),xa=A.useCallback(()=>{ne({mode:"all"}),$({type:"idle"}),Be(null),Y(null),re(null)},[re]),ot=A.useCallback(async()=>{var xe;const G=await Pf(i),ae=((xe=G.turns[G.turns.length-1])==null?void 0:xe.id)??null;B===null&&O&&ae!==O&&xa(),An(G)},[i,B,O,xa,An]);if(A.useEffect(()=>{let G=!1;return W(),Pf(i).then(ae=>{G||An(ae)}).catch(ae=>{G||h(ae instanceof Error?ae.message:String(ae))}),()=>{G=!0}},[i,W,An]),A.useEffect(()=>{let G=!1;return Z5().then(({targets:ae})=>{G||H(ae.length>0?ae:M1)}).catch(()=>{G||H(M1)}),()=>{G=!0}},[]),A.useEffect(()=>{var G;U&&pe(((G=U.feedback)==null?void 0:G.comments)??[],U.resolution??null)},[pe,U]),A.useEffect(()=>{if(!U||V.mode!=="range")return;let G=!1;return $({type:"loading"}),K5(i,V.fromSha,V.toSha,U.id).then(ae=>{G||$({type:"loaded",diff:ae})}).catch(ae=>{G||$({error:ae instanceof Error?ae.message:String(ae),type:"failed"})}),()=>{G=!0}},[V,U,i]),A.useEffect(()=>{const G=new EventSource(`/api/reviews/${i}/events`);return G.onmessage=ae=>{const xe=p5(ae.data,T5,"review event");I6(xe)&&ot().catch(rt=>{h(rt instanceof Error?rt.message:String(rt))})},()=>{G.close()}},[i,ot]),r)return u.jsx("main",{className:"empty-shell",children:u.jsxs("section",{className:"empty-panel",children:[u.jsx("h1",{children:"Review unavailable"}),u.jsx("p",{children:r})]})});if(!o||!U||!X||!ge||!ce)return u.jsx("main",{className:"empty-shell",children:u.jsxs("section",{className:"empty-panel",children:[u.jsx(U1,{className:"spin",size:24}),u.jsx("p",{children:"Loading review"})]})});const Ic=U.diff.scope,xi=ge.stats,ji=e8(X.meta.branch,ce),Tl=t8(X.meta.branch,ce),Pc=N8(V),ja=w8(V),Ea=U.id!==O||a5(U.status),eu=I2(o.turns),Ml=V.mode==="range"?he.error:null,bt=V.mode==="range"&&he.loading,$t=ge.files.filter(G=>wl.has(G.path)).length,St=ge.files.length===0?0:Math.round($t/ge.files.length*100),tu=G=>{be(ae=>({reviewId:o.meta.id,searchQuery:G,selectedExtensionIds:ae.reviewId===o.meta.id?ae.selectedExtensionIds:null}))},lu=G=>{be(ae=>{const xe=ae.reviewId===o.meta.id&&ae.selectedExtensionIds?new Set(ae.selectedExtensionIds):new Set(pt);return xe.has(G)?xe.delete(G):xe.add(G),{reviewId:o.meta.id,searchQuery:ae.reviewId===o.meta.id?ae.searchQuery:"",selectedExtensionIds:xe}})},nu=()=>{be(G=>({reviewId:o.meta.id,searchQuery:G.reviewId===o.meta.id?G.searchQuery:"",selectedExtensionIds:null}))},Cn=()=>{be(G=>({reviewId:o.meta.id,searchQuery:G.reviewId===o.meta.id?G.searchQuery:"",selectedExtensionIds:new Set}))},_n=G=>{x(G),k(!1),window.requestAnimationFrame(()=>{window.setTimeout(()=>h8(G),0)})},On=G=>{G.preventDefault();const ae=G.clientX,xe=F,rt=el=>{const it=xe+el.clientX-ae;te(Math.min(n8,Math.max(l8,it)))},Pt=()=>{window.removeEventListener("pointermove",rt),window.removeEventListener("pointerup",Pt)};window.addEventListener("pointermove",rt),window.addEventListener("pointerup",Pt,{once:!0})},ul=(G,ae)=>{Q(xe=>{const rt=xe.storageKey===Jt?xe.files:T1(Jt),Pt=new Set(rt);return ae?Pt.add(G):Pt.delete(G),W6(Jt,Pt),{storageKey:Jt,files:Pt}})},Dn=async(G,ae)=>{z(null);try{await e2(i,G,U.id,{target:ae})}catch(xe){const rt=xe instanceof Error?xe.message:String(xe);throw z(rt),new Error(rt)}},nn=async(G,ae)=>{z(null);try{await e2(i,G,U.id,{scope:"repo",target:ae})}catch(xe){const rt=xe instanceof Error?xe.message:String(xe);throw z(rt),new Error(rt)}},au=async G=>{z(null);try{return(await t2(i,G,U.id)).content}catch(ae){const xe=ae instanceof Error?ae.message:String(ae);throw z(xe),new Error(xe)}},Ei=async G=>{z(null);try{return(await t2(i,G,U.id,{scope:"repo"})).content}catch(ae){const xe=ae instanceof Error?ae.message:String(ae);throw z(xe),new Error(xe)}},za=async G=>{const ae=q.current+1;q.current=ae,Be(G),Y({status:"loading",symbol:G.symbol});try{const xe=await $5({reviewId:i,turnId:U.id,source:ja,...G});q.current===ae&&Y({status:"ready",response:xe})}catch(xe){q.current===ae&&Y({message:xe instanceof Error?xe.message:String(xe),status:"error",symbol:G.symbol})}},Al={activeFilePath:Mn,extensionBuckets:yt,files:ge.files,filteredFiles:ln,searchQuery:gt,selectedExtensionIds:Fe,onClearExtensions:Cn,onFileSelect:_n,onSearchChange:tu,onSelectAllExtensions:nu,onToggleExtension:lu},iu=u.jsx(f2,{...Al,onCollapse:()=>T(!0)}),zi=u.jsx(f2,{...Al}),Ni=ge.files.length===0?null:u.jsxs("div",{className:"empty-diff filtered-empty",children:[u.jsx("h2",{children:"No matching files"}),u.jsx("p",{children:"Adjust the file search or extension filters to show changed files."})]});return u.jsx("main",{className:"review-shell",children:u.jsxs("div",{className:"review-split",children:[u.jsxs("div",{className:"review-main-pane",children:[u.jsxs("header",{className:"topbar",children:[u.jsxs("div",{className:"topbar-header",children:[u.jsxs("div",{className:"topbar-title",children:[u.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:""}),u.jsxs("div",{className:"review-heading",children:[u.jsx("p",{className:"product-name",children:"Gloss"}),u.jsxs("h1",{children:[ji.icon==="branch"?u.jsx(Gc,{className:"review-title-icon",size:18}):null,u.jsx("span",{className:"review-title-text",children:ce})]})]})]}),u.jsxs("div",{className:"topbar-actions",children:[u.jsx(x8,{commitDiffs:M,value:V,onChange:G=>{ne(G),G.mode!=="range"&&$({type:"idle"}),re(null)}}),u.jsxs("div",{className:"viewed-progress",title:"Viewed files",children:[u.jsx("span",{"aria-hidden":"true",className:"viewed-progress-ring",style:{"--viewed-progress":`${St}%`}}),$t," / ",ge.files.length," viewed"]}),u.jsx("button",{"aria-label":"Open file tree",className:"icon-button file-tree-mobile-toggle",title:"Open file tree",type:"button",onClick:()=>k(!0),children:u.jsx(H1,{size:16})}),u.jsx("button",{"aria-label":g?"Unwrap lines":"Wrap lines","aria-pressed":g,className:"icon-button wrap-toggle",title:g?"Unwrap lines":"Wrap lines",type:"button",onClick:()=>w(G=>!G),children:g?u.jsx(Sh,{size:16}):u.jsx(E2,{size:16})}),u.jsx(d8,{}),Tl?u.jsxs("div",{className:"branch-pill",title:Tl.title,children:[u.jsx(Gc,{size:16}),u.jsx("span",{children:Tl.label})]}):null]})]}),u.jsx(p8,{scope:Ic,selectedTurn:U,stats:xi,turns:o.turns,onSelectTurn:G=>{G!==U.id&&xa(),de(G===O?null:G)}})]}),Se?u.jsx("div",{className:"open-file-message error",children:Se}):null,Ml?u.jsx("div",{className:"open-file-message error",children:Ml}):null,bt?u.jsx("div",{className:"range-loading",children:"Loading range diff"}):null,u.jsxs("div",{className:`review-body ${y?"file-tree-collapsed":""}`,style:{"--file-tree-width":`${F}px`},children:[u.jsx("aside",{className:`review-sidebar ${y?"collapsed":""}`,children:y?u.jsxs("button",{"aria-label":"Expand file tree",className:"file-tree-rail",title:"Expand file tree",type:"button",onClick:()=>T(!1),children:[u.jsx(zh,{size:17}),u.jsx("span",{children:"Files"}),u.jsx("span",{children:ln.length})]}):u.jsxs(u.Fragment,{children:[iu,u.jsx("button",{"aria-label":"Resize file tree",className:"file-tree-resize-handle",title:"Resize file tree",type:"button",onPointerDown:On})]})}),u.jsxs("section",{className:"review-diff-column",children:[Ea&&!eu?u.jsx(A8,{record:X}):null,u.jsx(S6,{activeFilePath:Mn,contextSource:ja,diff:ge,emptyState:Ni,files:ln,record:X,readOnly:Ea,reviewId:i,selectedSourcePeek:ze,turnId:U.id,viewedFiles:wl,wrapLines:g,openTargets:Te,onCopyFileContents:au,onOpenFile:Dn,onSourcePeek:za,onViewedChange:ul})]})]}),L?u.jsx("dialog",{className:"file-tree-drawer-backdrop","aria-label":"Files",open:!0,children:u.jsxs("aside",{className:"file-tree-drawer",children:[u.jsxs("div",{className:"file-tree-drawer-header",children:[u.jsx("span",{children:"Changed files"}),u.jsx("button",{"aria-label":"Close file tree",className:"icon-button",type:"button",onClick:()=>k(!1),children:u.jsx(Jc,{size:16})})]}),zi]})}):null,Ea?null:u.jsx($6,{reviewId:i,reviewScope:Pc,onSubmitted:ot})]}),K?Yc.createPortal(u.jsx(V6,{openTargets:Te,state:K,onCopyFileContents:Ei,onOpenFile:nn,onClose:()=>{q.current+=1,Be(null),Y(null)}}),document.body):null]})})}function y8(i,o){return{...i,meta:{...i.meta,activeTurnId:o.id,status:o.status,submittedAt:o.submittedAt,resolvedAt:o.resolvedAt,feedbackPath:o.feedbackPath,markdownPath:o.markdownPath},diff:o.diff,...o.feedback?{feedback:o.feedback}:{feedback:void 0},...o.resolution?{resolution:o.resolution}:{resolution:void 0}}}function p8({scope:i,selectedTurn:o,stats:f,turns:r,onSelectTurn:h}){return u.jsxs("div",{className:"review-context-bar",children:[u.jsxs("div",{className:"review-context-range",title:`${m2("Base",i.base.ref,i.base.sha)} to ${m2("Compare",i.comparison.ref,i.comparison.sha)}`,children:[u.jsx("span",{className:"review-context-ref",children:h2(i.base.ref,i.base.sha)}),u.jsx(v2,{className:"review-context-arrow",size:14}),u.jsx("span",{className:"review-context-ref",children:h2(i.comparison.ref,i.comparison.sha)})]}),u.jsx("span",{className:"review-context-divider","aria-hidden":"true"}),u.jsxs("div",{className:"review-context-stats",title:"Changed files",children:[u.jsxs("span",{children:[f.files," ",f.files===1?"file":"files"]}),u.jsxs("span",{className:"summary-add",children:["+",f.additions]}),u.jsxs("span",{className:"summary-del",children:["-",f.deletions]})]}),u.jsx(v8,{selectedTurn:o,turns:r,onSelect:h})]})}function v8({selectedTurn:i,turns:o,onSelect:f}){var x;const[r,h]=A.useState(!1),g=A.useRef(null);if(A.useEffect(()=>{if(!r)return;const y=L=>{var k;(k=g.current)!=null&&k.contains(L.target)||h(!1)},T=L=>{L.key==="Escape"&&h(!1)};return window.addEventListener("pointerdown",y),window.addEventListener("keydown",T),()=>{window.removeEventListener("pointerdown",y),window.removeEventListener("keydown",T)}},[r]),!I2(o))return null;const w=(x=o[o.length-1])==null?void 0:x.id,_=[...o].reverse();return u.jsxs("div",{className:"turn-selector",ref:g,children:[u.jsxs("button",{"aria-expanded":r,"aria-haspopup":"menu",className:"turn-selector-trigger",type:"button",onClick:()=>h(y=>!y),children:[u.jsxs("span",{children:["Turn ",i.index," of ",o.length]}),u.jsx("span",{className:`turn-selector-status ${i.status}`,children:i.status}),u.jsx(Tn,{size:14})]}),r?u.jsx("div",{className:"turn-menu",role:"menu","aria-label":"Review turns",children:_.map(y=>{var se;const T=N2(y),L=y.id===i.id,k=y.id===w,F=(se=y.feedback)!=null&&se.reviewScope?l5(y.feedback.reviewScope,y.diff.commitDiffs??[]):null,te=g8(y);return u.jsxs("button",{"aria-checked":L,className:`turn-menu-item ${L?"selected":""}`,role:"menuitemradio",type:"button",onClick:()=>{f(y.id),h(!1)},children:[u.jsxs("span",{className:"turn-menu-title",children:["Turn ",y.index,k?u.jsx("span",{className:"turn-menu-latest",children:"Latest"}):null]}),u.jsxs("span",{className:`turn-menu-meta ${y.status}`,children:[y.status,T.total>0?` · ${T.open} open / ${T.total}`:" · no comments"]}),te?u.jsx("time",{className:"turn-menu-time",dateTime:te,children:td(te)}):null,F?u.jsxs("span",{className:"turn-menu-scope",children:["Scope: ",F]}):null]},y.id)})}):null]})}function h2(i,o){return o?`${i} ${o.slice(0,7)}`:i}function m2(i,o,f){return`${i} ${o}${f?` (${f})`:""}`}function g8(i){var o;return i.status==="resolved"?i.resolvedAt??((o=i.resolution)==null?void 0:o.resolvedAt)??null:i.status==="submitted"?i.submittedAt??null:null}function b8(i,o){if(i.mode==="all")return i;if(i.mode==="single")return o.some(h=>h.commit.sha===i.sha)?i:{mode:"all"};const f=o.findIndex(h=>h.commit.sha===i.fromSha),r=o.findIndex(h=>h.commit.sha===i.toSha);return f>=0&&r>=f?i:{mode:"all"}}function S8(i,o){switch(o.type){case"idle":return P2;case"loading":return{diff:null,error:null,loading:!0};case"loaded":return{diff:o.diff,error:null,loading:!1};case"failed":return{diff:null,error:o.error,loading:!1}}}function x8({commitDiffs:i,value:o,onChange:f}){const[r,h]=A.useState(!1),[g,w]=A.useState("all"),[_,x]=A.useState(new Set),y=A.useRef(null),T=A.useRef(null),L=A.useMemo(()=>i.map(B=>({sha:B.commit.sha,shortSha:B.commit.shortSha,subject:B.commit.subject,authorName:B.commit.authorName,committedAt:B.commit.committedAt,fileCount:B.files.length})),[i]);if(A.useEffect(()=>{if(!r)return;T.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const B=["button:not(:disabled)","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)","a[href]",'[tabindex]:not([tabindex="-1"])'].join(","),de=()=>{var ne;return Array.from(((ne=y.current)==null?void 0:ne.querySelectorAll(B))??[]).filter(he=>he.offsetParent!==null)};window.requestAnimationFrame(()=>{var ne;(ne=de()[0]??y.current)==null||ne.focus()});const oe=ne=>{var Y;if(ne.key==="Escape"&&h(!1),ne.key!=="Tab")return;const he=de();if(he.length===0){ne.preventDefault(),(Y=y.current)==null||Y.focus();return}const $=he[0],K=he[he.length-1];ne.shiftKey&&document.activeElement===$?(ne.preventDefault(),K.focus()):!ne.shiftKey&&document.activeElement===K&&(ne.preventDefault(),$.focus())};return window.addEventListener("keydown",oe),()=>{var ne;window.removeEventListener("keydown",oe),(ne=T.current)==null||ne.focus(),T.current=null}},[r]),L.length===0)return null;const k=()=>{const B=j8(o,L);w(o.mode==="all"||B.size===0?"all":"selected"),x(B),h(!0)},F=ed(_,L),te=F.length>0?{from:L[F[0]],to:L[F[F.length-1]],count:F[F.length-1]-F[0]+1}:null,se=g==="all"?`${L.length} ${L.length===1?"commit":"commits"}`:te?te.from.sha===te.to.sha?te.from.shortSha:`${te.count} commits · ${te.from.shortSha} to ${te.to.shortSha}`:"No commits selected",be=g==="all"||F.length>0;return u.jsxs("div",{className:"commit-selector",children:[u.jsxs("button",{"aria-expanded":r,className:"commit-picker-trigger",type:"button",onClick:k,children:[u.jsx(sh,{size:16}),u.jsx("span",{className:"commit-picker-trigger-text",children:T8(o,L)}),u.jsx(Tn,{size:16})]}),r?Yc.createPortal(u.jsx("div",{className:"commit-picker-backdrop",children:u.jsxs("dialog",{"aria-labelledby":"commit-picker-title","aria-modal":"true",className:"commit-picker-dialog",ref:y,open:!0,tabIndex:-1,children:[u.jsxs("header",{className:"commit-picker-header",children:[u.jsx("h2",{id:"commit-picker-title",children:"Select commits to view"}),u.jsx("button",{"aria-label":"Close commit picker",className:"icon-button commit-picker-close",type:"button",onClick:()=>h(!1),children:u.jsx(Jc,{size:20})})]}),u.jsxs("div",{className:"commit-picker-body",children:[u.jsxs("label",{className:`commit-picker-all ${g==="all"?"selected":""}`,children:[u.jsx("input",{checked:g==="all",className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{w("all"),x(new Set)}}),u.jsxs("span",{className:"commit-picker-all-copy",children:[u.jsx("span",{children:"All commits"}),u.jsxs("span",{children:[L.length," ",L.length===1?"commit":"commits"]})]})]}),u.jsx("div",{className:"commit-picker-section-label",children:"Select a range of commits"}),u.jsx("div",{className:"commit-picker-list",children:L.map(B=>{const de=g==="selected"&&_.has(B.sha);return u.jsxs("label",{className:`commit-picker-row ${de?"selected":""}`,children:[u.jsx("input",{checked:de,className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{w("selected"),x(oe=>E8(oe,B.sha,L))}}),u.jsxs("span",{className:"commit-picker-row-copy",children:[u.jsx("span",{className:"commit-picker-subject",children:B.subject}),u.jsxs("span",{className:"commit-picker-meta",children:[B.authorName," committed ",M8(B.committedAt)," ","· ",B.fileCount," ",B.fileCount===1?"file":"files"]})]}),u.jsx("span",{className:"commit-picker-sha",children:B.shortSha})]},B.sha)})})]}),u.jsxs("footer",{className:"commit-picker-footer",children:[u.jsx("span",{className:"commit-picker-summary",children:se}),u.jsx("button",{className:"secondary-button",type:"button",onClick:()=>h(!1),children:"Cancel"}),u.jsxs("button",{className:"primary-button",disabled:!be,type:"button",onClick:()=>{if(g==="all"){f({mode:"all"}),h(!1);return}const B=z8(F,L);B&&(f(B),h(!1))},children:[u.jsx(Nn,{size:16}),"Save"]})]})]})}),document.body):null]})}function j8(i,o){if(i.mode==="all")return new Set;if(i.mode==="single")return o.some(h=>h.sha===i.sha)?new Set([i.sha]):new Set;const f=o.findIndex(h=>h.sha===i.fromSha),r=o.findIndex(h=>h.sha===i.toSha);return f<0||r<f?new Set:ga(f,r,o)}function ed(i,o){const f=[];for(const[r,h]of o.entries())i.has(h.sha)&&f.push(r);return f}function E8(i,o,f){const r=f.findIndex(y=>y.sha===o);if(r<0)return i;const h=ed(i,f);if(!i.has(o)){const y=h.length>0?Math.min(h[0],r):r,T=h.length>0?Math.max(h[h.length-1],r):r;return ga(y,T,f)}if(h.length<=1)return new Set;const g=h[0],w=h[h.length-1];if(r<=g)return ga(g+1,w,f);if(r>=w)return ga(g,w-1,f);const _=r-g,x=w-r;return _>=x?ga(g,r-1,f):ga(r+1,w,f)}function ga(i,o,f){return i<0||o<i?new Set:new Set(f.slice(i,o+1).map(r=>r.sha))}function z8(i,o){if(i.length===0)return null;const f=i[0],r=i[i.length-1];return f===r?{mode:"single",sha:o[f].sha}:{mode:"range",fromSha:o[f].sha,toSha:o[r].sha}}function N8(i){return i.mode==="all"?{mode:"all"}:i.mode==="single"?{mode:"single",sha:i.sha}:{mode:"range",fromSha:i.fromSha,toSha:i.toSha}}function w8(i){return i.mode==="all"?{mode:"turn"}:i.mode==="single"?{mode:"commit",sha:i.sha}:{mode:"range",fromSha:i.fromSha,toSha:i.toSha}}function T8(i,o){if(i.mode==="all")return"All commits";if(i.mode==="single"){const g=o.find(w=>w.sha===i.sha);return g?`${g.shortSha} ${g.subject}`:"One commit"}const f=o.findIndex(g=>g.sha===i.fromSha),r=o.findIndex(g=>g.sha===i.toSha);return f<0||r<f?"Commit range":`${r-f+1} commits · ${o[f].shortSha} to ${o[r].shortSha}`}function M8(i){const o=new Date(i);if(Number.isNaN(o.getTime()))return"recently";const f=Math.round((o.getTime()-Date.now())/1e3),[r,h]=A1.find(([,g])=>Math.abs(f)>=g)??A1[A1.length-1];return s8.format(Math.round(f/h),r)}function A8({record:i}){var r;const o=C8(i);if(!o)return null;const f=i.meta.status==="resolved"?i.meta.resolvedAt??((r=i.resolution)==null?void 0:r.resolvedAt):i.meta.submittedAt;return u.jsxs("section",{className:`review-state-banner ${i.meta.status}`,children:[u.jsxs("div",{className:"review-state-title",children:[u.jsx(b2,{size:16}),u.jsx("span",{children:o.title})]}),u.jsx("p",{children:o.body}),f?u.jsx("time",{dateTime:f,children:td(f)}):null]})}function C8(i){const o=i.meta.status,f=N2(i),r=f.total>0?`${f.resolved} of ${f.total} comments resolved`:null;return o==="submitted"?{title:f.resolved>0&&r?`Submitted · ${r}`:"Submitted",body:f.resolved>0?"Feedback is being handled.":"Feedback has been submitted."}:o==="resolved"?{title:r?`Resolved · ${r}`:"Resolved",body:"This feedback turn is resolved."}:null}function td(i){return o8.format(new Date(i))}const _8="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",O8=`1. Run gloss open --json from the repo root unless the user names a base ref.
300
300
  2. Wait for the browser review to be submitted.
301
301
  3. Read feedbackPath from the JSON output.
302
302
  4. Address each comment in file and line order.