chat2diff 0.0.0-stage → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,301 @@
1
+ (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))r(p);new MutationObserver(p=>{for(const m of p)if(m.type==="childList")for(const _ of m.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&r(_)}).observe(document,{childList:!0,subtree:!0});function f(p){const m={};return p.integrity&&(m.integrity=p.integrity),p.referrerPolicy&&(m.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?m.credentials="include":p.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(p){if(p.ep)return;p.ep=!0;const m=f(p);fetch(p.href,m)}})();function vy(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Dr={exports:{}},du={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Eh;function yy(){if(Eh)return du;Eh=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function f(r,p,m){var _=null;if(m!==void 0&&(_=""+m),p.key!==void 0&&(_=""+p.key),"key"in p){m={};for(var H in p)H!=="key"&&(m[H]=p[H])}else m=p;return p=m.ref,{$$typeof:s,type:r,key:_,ref:p!==void 0?p:null,props:m}}return du.Fragment=o,du.jsx=f,du.jsxs=f,du}var _h;function xy(){return _h||(_h=1,Dr.exports=yy()),Dr.exports}var c=xy(),Rr={exports:{}},ie={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ch;function gy(){if(Ch)return ie;Ch=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),_=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),D=Symbol.for("react.view_transition"),X=Symbol.iterator;function V(y){return y===null||typeof y!="object"?null:(y=X&&y[X]||y["@@iterator"],typeof y=="function"?y:null)}var ee={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,pe={};function G(y,U,Z){this.props=y,this.context=U,this.refs=pe,this.updater=Z||ee}G.prototype.isReactComponent={},G.prototype.setState=function(y,U){if(typeof y!="object"&&typeof y!="function"&&y!=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,y,U,"setState")},G.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function F(){}F.prototype=G.prototype;function z(y,U,Z){this.props=y,this.context=U,this.refs=pe,this.updater=Z||ee}var te=z.prototype=new F;te.constructor=z,I(te,G.prototype),te.isPureReactComponent=!0;var ye=Array.isArray;function J(){}var re={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function ce(y,U,Z){var K=Z.ref;return{$$typeof:s,type:y,key:U,ref:K!==void 0?K:null,props:Z}}function le(y,U){return ce(y.type,U,y.props)}function ne(y){return typeof y=="object"&&y!==null&&y.$$typeof===s}function Ee(y){var U={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(Z){return U[Z]})}var Fe=/\/+/g;function Ne(y,U){return typeof y=="object"&&y!==null&&y.key!=null?Ee(""+y.key):U.toString(36)}function M(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(J,J):(y.status="pending",y.then(function(U){y.status==="pending"&&(y.status="fulfilled",y.value=U)},function(U){y.status==="pending"&&(y.status="rejected",y.reason=U)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function $(y,U,Z,K,xe){var fe=typeof y;(fe==="undefined"||fe==="boolean")&&(y=null);var q=!1;if(y===null)q=!0;else switch(fe){case"bigint":case"string":case"number":q=!0;break;case"object":switch(y.$$typeof){case s:case o:q=!0;break;case C:return q=y._init,$(q(y._payload),U,Z,K,xe)}}if(q)return xe=xe(y),q=K===""?"."+Ne(y,0):K,ye(xe)?(Z="",q!=null&&(Z=q.replace(Fe,"$&/")+"/"),$(xe,U,Z,"",function(ge){return ge})):xe!=null&&(ne(xe)&&(xe=le(xe,Z+(xe.key==null||y&&y.key===xe.key?"":(""+xe.key).replace(Fe,"$&/")+"/")+q)),U.push(xe)),1;q=0;var Y=K===""?".":K+":";if(ye(y))for(var O=0;O<y.length;O++)K=y[O],fe=Y+Ne(K,O),q+=$(K,U,Z,fe,xe);else if(O=V(y),typeof O=="function")for(y=O.call(y),O=0;!(K=y.next()).done;)K=K.value,fe=Y+Ne(K,O++),q+=$(K,U,Z,fe,xe);else if(fe==="object"){if(typeof y.then=="function")return $(M(y),U,Z,K,xe);throw U=String(y),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return q}function P(y,U,Z){if(y==null)return y;var K=[],xe=0;return $(y,K,"","",function(fe){return U.call(Z,fe,xe++)}),K}function oe(y){if(y._status===-1){var U=y._result,Z=U();Z.then(function(K){(y._status===0||y._status===-1)&&(y._status=1,y._result=K,Z.status===void 0&&(Z.status="fulfilled",Z.value=K))},function(K){(y._status===0||y._status===-1)&&(y._status=2,y._result=K,Z.status===void 0&&(Z.status="rejected",Z.reason=K))}),y._status===-1&&(y._status=0,y._result=Z)}if(y._status===1)return y._result.default;throw y._result}var ue=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)};function Ve(y){var U=re.T,Z={};Z.types=U!==null?U.types:null,re.T=Z;try{var K=y(),xe=re.S;xe!==null&&xe(Z,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(J,ue)}catch(fe){ue(fe)}finally{U!==null&&Z.types!==null&&(U.types=Z.types),re.T=U}}function We(y){var U=re.T;if(U!==null){var Z=U.types;Z===null?U.types=[y]:Z.indexOf(y)===-1&&Z.push(y)}else Ve(We.bind(null,y))}var Qt={map:P,forEach:function(y,U,Z){P(y,function(){U.apply(this,arguments)},Z)},count:function(y){var U=0;return P(y,function(){U++}),U},toArray:function(y){return P(y,function(U){return U})||[]},only:function(y){if(!ne(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};return ie.Activity=x,ie.Children=Qt,ie.Component=G,ie.Fragment=f,ie.Profiler=p,ie.PureComponent=z,ie.StrictMode=r,ie.Suspense=R,ie.ViewTransition=D,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=re,ie.__COMPILER_RUNTIME={__proto__:null,c:function(y){return re.H.useMemoCache(y)}},ie.addTransitionType=We,ie.cache=function(y){return function(){return y.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(y,U,Z){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var K=I({},y.props),xe=y.key;if(U!=null)for(fe in U.key!==void 0&&(xe=""+U.key),U)!L.call(U,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&U.ref===void 0||(K[fe]=U[fe]);var fe=arguments.length-2;if(fe===1)K.children=Z;else if(1<fe){for(var q=Array(fe),Y=0;Y<fe;Y++)q[Y]=arguments[Y+2];K.children=q}return ce(y.type,xe,K)},ie.createContext=function(y){return y={$$typeof:_,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:m,_context:y},y},ie.createElement=function(y,U,Z){var K,xe={},fe=null;if(U!=null)for(K in U.key!==void 0&&(fe=""+U.key),U)L.call(U,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(xe[K]=U[K]);var q=arguments.length-2;if(q===1)xe.children=Z;else if(1<q){for(var Y=Array(q),O=0;O<q;O++)Y[O]=arguments[O+2];xe.children=Y}if(y&&y.defaultProps)for(K in q=y.defaultProps,q)xe[K]===void 0&&(xe[K]=q[K]);return ce(y,fe,xe)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(y){return{$$typeof:H,render:y}},ie.isValidElement=ne,ie.lazy=function(y){return{$$typeof:C,_payload:{_status:-1,_result:y},_init:oe}},ie.memo=function(y,U){return{$$typeof:E,type:y,compare:U===void 0?null:U}},ie.startTransition=Ve,ie.unstable_useCacheRefresh=function(){return re.H.useCacheRefresh()},ie.use=function(y){return re.H.use(y)},ie.useActionState=function(y,U,Z){return re.H.useActionState(y,U,Z)},ie.useCallback=function(y,U){return re.H.useCallback(y,U)},ie.useContext=function(y){return re.H.useContext(y)},ie.useDebugValue=function(){},ie.useDeferredValue=function(y,U){return re.H.useDeferredValue(y,U)},ie.useEffect=function(y,U){return re.H.useEffect(y,U)},ie.useEffectEvent=function(y){return re.H.useEffectEvent(y)},ie.useId=function(){return re.H.useId()},ie.useImperativeHandle=function(y,U,Z){return re.H.useImperativeHandle(y,U,Z)},ie.useInsertionEffect=function(y,U){return re.H.useInsertionEffect(y,U)},ie.useLayoutEffect=function(y,U){return re.H.useLayoutEffect(y,U)},ie.useMemo=function(y,U){return re.H.useMemo(y,U)},ie.useOptimistic=function(y,U){return re.H.useOptimistic(y,U)},ie.useReducer=function(y,U,Z){return re.H.useReducer(y,U,Z)},ie.useRef=function(y){return re.H.useRef(y)},ie.useState=function(y){return re.H.useState(y)},ie.useSyncExternalStore=function(y,U,Z){return re.H.useSyncExternalStore(y,U,Z)},ie.useTransition=function(){return re.H.useTransition()},ie.version="19.3.1",ie}var jh;function $r(){return jh||(jh=1,Rr.exports=gy()),Rr.exports}var me=$r();const Ur=vy(me);var Hr={exports:{}},hu={},qr={exports:{}},Br={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Ah;function by(){return Ah||(Ah=1,(function(s){function o(M,$){var P=M.length;M.push($);e:for(;0<P;){var oe=P-1>>>1,ue=M[oe];if(0<p(ue,$))M[oe]=$,M[P]=ue,P=oe;else break e}}function f(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var $=M[0],P=M.pop();if(P!==$){M[0]=P;e:for(var oe=0,ue=M.length,Ve=ue>>>1;oe<Ve;){var We=2*(oe+1)-1,Qt=M[We],y=We+1,U=M[y];if(0>p(Qt,P))y<ue&&0>p(U,Qt)?(M[oe]=U,M[y]=P,oe=y):(M[oe]=Qt,M[We]=P,oe=We);else if(y<ue&&0>p(U,P))M[oe]=U,M[y]=P,oe=y;else break e}}return $}function p(M,$){var P=M.sortIndex-$.sortIndex;return P!==0?P:M.id-$.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;s.unstable_now=function(){return m.now()}}else{var _=Date,H=_.now();s.unstable_now=function(){return _.now()-H}}var R=[],E=[],C=1,x=null,D=3,X=!1,V=!1,ee=!1,I=!1,pe=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function z(M){for(var $=f(E);$!==null;){if($.callback===null)r(E);else if($.startTime<=M)r(E),$.sortIndex=$.expirationTime,o(R,$);else break;$=f(E)}}function te(M){if(ee=!1,z(M),!V)if(f(R)!==null)V=!0,ye||(ye=!0,ne());else{var $=f(E);$!==null&&Ne(te,$.startTime-M)}}var ye=!1,J=-1,re=5,L=-1;function ce(){return I?!0:!(s.unstable_now()-L<re)}function le(){if(I=!1,ye){var M=s.unstable_now();L=M;var $=!0;try{e:{V=!1,ee&&(ee=!1,G(J),J=-1),X=!0;var P=D;try{t:{for(z(M),x=f(R);x!==null&&!(x.expirationTime>M&&ce());){var oe=x.callback;if(typeof oe=="function"){x.callback=null,D=x.priorityLevel;var ue=oe(x.expirationTime<=M);if(M=s.unstable_now(),typeof ue=="function"){x.callback=ue,z(M),$=!0;break t}x===f(R)&&r(R),z(M)}else r(R);x=f(R)}if(x!==null)$=!0;else{var Ve=f(E);Ve!==null&&Ne(te,Ve.startTime-M),$=!1}}break e}finally{x=null,D=P,X=!1}$=void 0}}finally{$?ne():ye=!1}}}var ne;if(typeof F=="function")ne=function(){F(le)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,Fe=Ee.port2;Ee.port1.onmessage=le,ne=function(){Fe.postMessage(null)}}else ne=function(){pe(le,0)};function Ne(M,$){J=pe(function(){M(s.unstable_now())},$)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<M?Math.floor(1e3/M):5},s.unstable_getCurrentPriorityLevel=function(){return D},s.unstable_next=function(M){switch(D){case 1:case 2:case 3:var $=3;break;default:$=D}var P=D;D=$;try{return M()}finally{D=P}},s.unstable_requestPaint=function(){I=!0},s.unstable_runWithPriority=function(M,$){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var P=D;D=M;try{return $()}finally{D=P}},s.unstable_scheduleCallback=function(M,$,P){var oe=s.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?oe+P:oe):P=oe,M){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=P+ue,M={id:C++,callback:$,priorityLevel:M,startTime:P,expirationTime:ue,sortIndex:-1},P>oe?(M.sortIndex=P,o(E,M),f(R)===null&&M===f(E)&&(ee?(G(J),J=-1):ee=!0,Ne(te,P-oe))):(M.sortIndex=ue,o(R,M),V||X||(V=!0,ye||(ye=!0,ne()))),M},s.unstable_shouldYield=ce,s.unstable_wrapCallback=function(M){var $=D;return function(){var P=D;D=$;try{return M.apply(this,arguments)}finally{D=P}}}})(Br)),Br}var zh;function Sy(){return zh||(zh=1,qr.exports=by()),qr.exports}var Yr={exports:{}},ot={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Oh;function Ny(){if(Oh)return ot;Oh=1;var s=$r();function o(C){var x="https://react.dev/errors/"+C;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)x+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+C+"; visit "+x+" 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},p=Symbol.for("react.portal"),m=Symbol.for("react.recoverable"),_=Symbol.for("react.optimistic_key");function H(C,x,D){var X=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:X==null?null:X===_?_:""+X,children:C,containerInfo:x,implementation:D}}var R=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(C,x){if(C==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ot.browser=function(C){return{$$typeof:m,_reason:C}},ot.createPortal=function(C,x){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(o(299));return H(C,x,null,D)},ot.flushSync=function(C){var x=R.T,D=r.p;try{if(R.T=null,r.p=2,C)return C()}finally{R.T=x,r.p=D,r.d.f()}},ot.preconnect=function(C,x){typeof C=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(C,x))},ot.prefetchDNS=function(C){typeof C=="string"&&r.d.D(C)},ot.preinit=function(C,x){if(typeof C=="string"&&x&&typeof x.as=="string"){var D=x.as,X=E(D,x.crossOrigin),V=typeof x.integrity=="string"?x.integrity:void 0,ee=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;D==="style"?r.d.S(C,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:X,integrity:V,fetchPriority:ee}):D==="script"&&r.d.X(C,{crossOrigin:X,integrity:V,fetchPriority:ee,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},ot.preinitModule=function(C,x){if(typeof C=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var D=E(x.as,x.crossOrigin);r.d.M(C,{crossOrigin:D,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}}else x==null&&r.d.M(C)},ot.preload=function(C,x){if(typeof C=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var D=x.as,X=E(D,x.crossOrigin);r.d.L(C,D,{crossOrigin:X,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},ot.preloadModule=function(C,x){if(typeof C=="string")if(x){var D=E(x.as,x.crossOrigin);r.d.m(C,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:D,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}else r.d.m(C)},ot.requestFormReset=function(C){r.d.r(C)},ot.unstable_batchedUpdates=function(C,x){return C(x)},ot.useFormState=function(C,x,D){return R.H.useFormState(C,x,D)},ot.useFormStatus=function(){return R.H.useHostTransitionStatus()},ot.version="19.3.1",ot}var Mh;function Ty(){if(Mh)return Yr.exports;Mh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),Yr.exports=Ny(),Yr.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Dh;function wy(){if(Dh)return hu;Dh=1;var s=Sy(),o=$r(),f=Ty();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 p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){for(var t=e,l=t;l&&!l.alternate;)t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function _(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 H(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 R(e){if(m(e)!==e)throw Error(r(188))}function E(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return R(n),e;if(u===a)return R(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,d=n.child;d;){if(d===l){i=!0,l=n,a=u;break}if(d===a){i=!0,a=n,l=u;break}d=d.sibling}if(!i){for(d=u.child;d;){if(d===l){i=!0,l=u,a=n;break}if(d===a){i=!0,a=u,l=n;break}d=d.sibling}if(!i)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}function x(e,t,l,a,n,u){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&l(e,a,n,u)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&x(e.child,t,l,a,n,u))return!0;e=e.sibling}return!1}function D(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function X(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function V(e){var t=[null,null],l=D(e);return l===null||ee(t,e,l.child,{foundSelf:!1}),t}function ee(e,t,l,a){for(;l!==null;){if(l===t)a.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(a.foundSelf)return e[1]=l,!0;e[0]=l}else if((l.tag!==22||l.memoizedState===null)&&ee(e,t,l.child,a))return!0;l=l.sibling}return!1}function I(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(r(559))}}var pe=null,G=null;function F(e,t,l){return e===l?!0:e===t?(pe=e,!0):!1}function z(e,t,l){return e===l?(G=e,!1):e===t?(G!==null&&(pe=e),!0):!1}function te(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ye(e,t,l){for(var a=0,n=e;n;n=l(n))a++;n=0;for(var u=t;u;u=l(u))n++;for(;0<a-n;)e=l(e),a--;for(;0<n-a;)t=l(t),n--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=l(e),t=l(t)}return null}var J=Object.assign,re=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),ce=Symbol.for("react.portal"),le=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),Ee=Symbol.for("react.profiler"),Fe=Symbol.for("react.consumer"),Ne=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),Ve=Symbol.for("react.activity"),We=Symbol.for("react.legacy_hidden"),Qt=Symbol.for("react.memo_cache_sentinel"),y=Symbol.for("react.view_transition"),U=Symbol.for("react.recoverable"),Z=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=Z&&e[Z]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case le:return"Fragment";case Ee:return"Profiler";case ne:return"StrictMode";case $:return"Suspense";case P:return"SuspenseList";case Ve:return"Activity";case y:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case ce:return"Portal";case Ne:return e.displayName||"Context";case Fe:return(e._context.displayName||"Context")+".Consumer";case M:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oe:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var q=Array.isArray,Y=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge={pending:!1,data:null,method:null,action:null},ft=[],ke=-1;function ht(e){return{current:e}}function $e(e){0>ke||(e.current=ft[ke],ft[ke]=null,ke--)}function ze(e,t){ke++,ft[ke]=e.current,e.current=t}var Ie=ht(null),xn=ht(null),Cl=ht(null),xu=ht(null);function gu(e,t){switch(ze(Cl,t),ze(xn,e),ze(Ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?R0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=R0(t),e=U0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$e(Ie),ze(Ie,e)}function _a(){$e(Ie),$e(xn),$e(Cl)}function Ii(e){var t=e.memoizedState;t!==null&&(mn._currentValue=t.memoizedState,ze(xu,e)),t=Ie.current;var l=U0(t,e.type);t!==l&&(ze(xn,e),ze(Ie,l))}function bu(e){xn.current===e&&($e(Ie),$e(xn)),xu.current===e&&($e(xu),mn._currentValue=ge)}var ec,Ir;function jl(e){if(ec===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ec=t&&t[1]||"",Ir=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+ec+e+Ir}var tc=!1;function lc(e,t){if(!e||tc)return"";tc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(B){var g=B}Reflect.construct(e,[],A)}else{try{A.call()}catch(B){g=B}A=!1;try{var T=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),A=!0,new e}finally{A&&(T!==void 0?Object.defineProperty(e.prototype,"props",T):delete e.prototype.props)}}}else{try{throw Error()}catch(B){g=B}(A=e())&&typeof A.catch=="function"&&A.catch(function(){})}}catch(B){if(B&&g&&typeof B.stack=="string")return[B.stack,g.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],d=u[1];if(i&&d){var h=i.split(`
44
+ `),S=d.split(`
45
+ `);for(n=a=0;a<h.length&&!h[a].includes("DetermineComponentFrameRoot");)a++;for(;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;if(a===h.length||n===S.length)for(a=h.length-1,n=S.length-1;1<=a&&0<=n&&h[a]!==S[n];)n--;for(;1<=a&&0<=n;a--,n--)if(h[a]!==S[n]){if(a!==1||n!==1)do if(a--,n--,0>n||h[a]!==S[n]){var w=`
46
+ `+h[a].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=a&&0<=n);break}}}finally{tc=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?jl(l):""}function bm(e,t){switch(e.tag){case 26:case 27:case 5:return jl(e.type);case 16:return jl("Lazy");case 13:return e.child!==t&&t!==null?jl("Suspense Fallback"):jl("Suspense");case 19:return jl("SuspenseList");case 0:case 15:return lc(e.type,!1);case 11:return lc(e.type.render,!1);case 1:return lc(e.type,!0);case 31:return jl("Activity");case 30:return jl("ViewTransition");default:return""}}function eo(e){try{var t="",l=null;do t+=bm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var ac=Object.prototype.hasOwnProperty,nc=s.unstable_scheduleCallback,uc=s.unstable_cancelCallback,Sm=s.unstable_shouldYield,Nm=s.unstable_requestPaint,wt=s.unstable_now,Tm=s.unstable_getCurrentPriorityLevel,to=s.unstable_ImmediatePriority,lo=s.unstable_UserBlockingPriority,Su=s.unstable_NormalPriority,wm=s.unstable_LowPriority,ao=s.unstable_IdlePriority,Em=s.log,_m=s.unstable_setDisableYieldValue,gn=null,Et=null;function Al(e){if(typeof Em=="function"&&_m(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(gn,e)}catch{}}var _t=Math.clz32?Math.clz32:Am,Cm=Math.log,jm=Math.LN2;function Am(e){return e>>>=0,e===0?32:31-(Cm(e)/jm|0)|0}var Nu=256,Tu=262144,wu=4194304;function aa(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&-e;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 Eu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=aa(a):(i&=d,i!==0?n=aa(i):l||(l=d&~e,l!==0&&(n=aa(l))))):(d=a&~u,d!==0?n=aa(d):i!==0?n=aa(i):l||(l=a&~e,l!==0&&(n=aa(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function bn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function no(e,t){(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var a=31-_t(l),n=1<<a;t|=e[a],l&=~n}return t}function zm(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 uo(){var e=wu;return wu<<=1,(wu&62914560)===0&&(wu=4194304),e}function ic(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Sn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Om(e,t,l,a,n,u){var i=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,h=e.expirationTimes,S=e.hiddenUpdates;for(l=i&~l;0<l;){var w=31-_t(l),A=1<<w;d[w]=0,h[w]=-1;var g=S[w];if(g!==null)for(S[w]=null,w=0;w<g.length;w++){var T=g[w];T!==null&&(T.lane&=-536870913)}l&=~A}a!==0&&io(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function io(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-_t(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function co(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-_t(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function so(e,t){var l=t&-t;return l=(l&42)!==0?1:cc(l),(l&(e.suspendedLanes|t))!==0?0:l}function cc(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 sc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ro(){var e=O.p;return e!==0?e:(e=window.event,e===void 0?32:xh(e.type))}function oo(e,t){var l=O.p;try{return O.p=e,t()}finally{O.p=l}}var dl=Math.random().toString(36).slice(2),nt="__reactFiber$"+dl,xt="__reactProps$"+dl,Ca="__reactContainer$"+dl,fo="__reactEvents$"+dl,Mm="__reactListeners$"+dl,Dm="__reactHandles$"+dl,ho="__reactResources$"+dl,Nn="__reactMarker$"+dl,_u="__reactLoad$"+dl;function Cu(e){delete e[nt],delete e[xt],delete e[Mm],delete e[Dm]}function na(e){var t;if(t=e[nt])return t;for(var l=e.parentNode;l;){if(t=l[Ca]||l[nt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=W0(e);e!==null;){if(l=e[nt])return l;e=W0(e)}return t}e=l,l=e.parentNode}return null}function ja(e){if(e=e[nt]||e[Ca]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Aa(e){var t=e[ho];return t||(t=e[ho]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Nn]=!0}function mo(e){e[_u]=void 0}var po=new Set,vo={};function ua(e,t){za(e,t),za(e+"Capture",t)}function za(e,t){for(vo[e]=t,e=0;e<t.length;e++)po.add(t[e])}var Rm=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]*$"),yo={},xo={};function Um(e){return ac.call(xo,e)?!0:ac.call(yo,e)?!1:Rm.test(e)?xo[e]=!0:(yo[e]=!0,!1)}var Ce=!1;function go(){var e=Ce;return Ce=!1,e}function ju(e,t,l){if(Um(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,l)}}function Au(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 hl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,a)}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rc(e){if(!e._valueTracker){var t=bo(e)?"checked":"value";e._valueTracker=Hm(e,t,""+e[t])}}function So(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=bo(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}var qm=/[\n"\\]/g;function Ut(e){return e.replace(qm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function oc(e,t,l,a,n,u,i,d){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?i==="number"&&e.value==t?fc(e,Ct(e.value)):fc(e,Ct(t)):l!=null?fc(e,Ct(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ct(d):e.removeAttribute("name")}function No(e,t,l,a,n,u,i,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){rc(e);return}l=l!=null?""+Ct(l):"",t=t!=null?""+Ct(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),rc(e)}function fc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Oa(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ct(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function To(e,t,l){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ct(l):""}function wo(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(q(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ct(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),rc(e)}function Ma(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Bm=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 Eo(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Bm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function _o(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",Ce=!0);for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&(Eo(e,n,a),Ce=!0)}else for(var u in t)t.hasOwnProperty(u)&&Eo(e,u,t[u])}function dc(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 Ym=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"],["maskType","mask-type"],["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"]]),Lm=/^[\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 zu(e){return Lm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function It(){}var hc=null;function mc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Da=null,Ra=null;function Co(e){var t=ja(e);if(t&&(e=t.stateNode)){var l=e[xt]||null;e:switch(e=t.stateNode,t.type){case"input":if(oc(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="'+Ut(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[xt]||null;if(!n)throw Error(r(90));oc(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&So(a)}break e;case"textarea":To(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Oa(e,!!l.multiple,t,!1)}}}var pc=!1;function jo(e,t,l){if(pc)return e(t,l);pc=!0;try{var a=e(t);return a}finally{if(pc=!1,(Da!==null||Ra!==null)&&(zi(),Da&&(t=Da,e=Ra,Ra=Da=null,Co(t),e)))for(t=0;t<e.length;t++)Co(e[t])}}function wn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[xt]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var ml=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vc=!1;if(ml)try{var En={};Object.defineProperty(En,"passive",{get:function(){vc=!0}}),window.addEventListener("test",En,En),window.removeEventListener("test",En,En)}catch{vc=!1}var zl=null,yc=null,Ou=null;function Ao(){if(Ou)return Ou;var e,t=yc,l=t.length,a,n="value"in zl?zl.value:zl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===n[u-a];a++);return Ou=n.slice(e,1<a?1-a:void 0)}function Mu(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 Du(){return!0}function zo(){return!1}function mt(e){function t(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Du:zo,this.isPropagationStopped=zo,this}return J(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=Du)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Du)},persist:function(){},isPersistent:Du}),t}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=mt(Ol),_n=J({},Ol,{view:0,detail:0}),Gm=mt(_n),xc,gc,Cn,Uu=J({},_n,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sc,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!==Cn&&(Cn&&e.type==="mousemove"?(xc=e.screenX-Cn.screenX,gc=e.screenY-Cn.screenY):gc=xc=0,Cn=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:gc}}),Oo=mt(Uu),Vm=J({},Uu,{dataTransfer:0}),km=mt(Vm),Xm=J({},_n,{relatedTarget:0}),bc=mt(Xm),Qm=J({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),Zm=mt(Qm),Jm=J({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Km=mt(Jm),Fm=J({},Ol,{data:0}),Mo=mt(Fm),$m={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pm={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"},Wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Im(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wm[e])?!!t[e]:!1}function Sc(){return Im}var ep=J({},_n,{key:function(e){if(e.key){var t=$m[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sc,charCode:function(e){return e.type==="keypress"?Mu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tp=mt(ep),lp=J({},Uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Do=mt(lp),ap=J({},Ol,{submitter:0}),np=mt(ap),up=J({},_n,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sc}),ip=mt(up),cp=J({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),sp=mt(cp),rp=J({},Uu,{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}),op=mt(rp),fp=J({},Ol,{newState:0,oldState:0,source:0}),dp=mt(fp),hp=[9,13,27,32],Nc=ml&&"CompositionEvent"in window,jn=null;ml&&"documentMode"in document&&(jn=document.documentMode);var mp=ml&&"TextEvent"in window&&!jn,Ro=ml&&(!Nc||jn&&8<jn&&11>=jn),Uo=" ",Ho=!1;function qo(e,t){switch(e){case"keyup":return hp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ua=!1;function pp(e,t){switch(e){case"compositionend":return Bo(t);case"keypress":return t.which!==32?null:(Ho=!0,Uo);case"textInput":return e=t.data,e===Uo&&Ho?null:e;default:return null}}function vp(e,t){if(Ua)return e==="compositionend"||!Nc&&qo(e,t)?(e=Ao(),Ou=yc=zl=null,Ua=!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 Ro&&t.locale!=="ko"?null:t.data;default:return null}}var yp={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 Yo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yp[e.type]:t==="textarea"}function Lo(e,t,l,a){Da?Ra?Ra.push(a):Ra=[a]:Da=a,t=Hi(t,"onChange"),0<t.length&&(l=new Ru("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var An=null,zn=null;function xp(e){j0(e,0)}function Hu(e){var t=Tn(e);if(So(t))return e}function Go(e,t){if(e==="change")return t}var Vo=!1;if(ml){var Tc;if(ml){var wc="oninput"in document;if(!wc){var ko=document.createElement("div");ko.setAttribute("oninput","return;"),wc=typeof ko.oninput=="function"}Tc=wc}else Tc=!1;Vo=Tc&&(!document.documentMode||9<document.documentMode)}function Xo(){An&&(An.detachEvent("onpropertychange",Qo),zn=An=null)}function Qo(e){if(e.propertyName==="value"&&Hu(zn)){var t=[];Lo(t,zn,e,mc(e)),jo(xp,t)}}function gp(e,t,l){e==="focusin"?(Xo(),An=t,zn=l,An.attachEvent("onpropertychange",Qo)):e==="focusout"&&Xo()}function bp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hu(zn)}function Sp(e,t){if(e==="click")return Hu(t)}function Np(e,t){if(e==="input"||e==="change")return Hu(t)}function Tp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:Tp;function On(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!ac.call(t,n)||!jt(e[n],t[n]))return!1}return!0}function Ec(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}}function Zo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jo(e,t){var l=Zo(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Zo(l)}}function Ko(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ko(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ec(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=Ec(e.document)}return t}function _c(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 wp=ml&&"documentMode"in document&&11>=document.documentMode,Ha=null,Cc=null,Mn=null,jc=!1;function $o(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;jc||Ha==null||Ha!==Ec(a)||(a=Ha,"selectionStart"in a&&_c(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Mn&&On(Mn,a)||(Mn=a,a=Hi(Cc,"onSelect"),0<a.length&&(t=new Ru("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Ha)))}function ia(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var qa={animationend:ia("Animation","AnimationEnd"),animationiteration:ia("Animation","AnimationIteration"),animationstart:ia("Animation","AnimationStart"),transitionrun:ia("Transition","TransitionRun"),transitionstart:ia("Transition","TransitionStart"),transitioncancel:ia("Transition","TransitionCancel"),transitionend:ia("Transition","TransitionEnd")},Ac={},Po={};ml&&(Po=document.createElement("div").style,"AnimationEvent"in window||(delete qa.animationend.animation,delete qa.animationiteration.animation,delete qa.animationstart.animation),"TransitionEvent"in window||delete qa.transitionend.transition);function ca(e){if(Ac[e])return Ac[e];if(!qa[e])return e;var t=qa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Po)return Ac[e]=t[l];return e}var Wo=ca("animationend"),Io=ca("animationiteration"),ef=ca("animationstart"),Ep=ca("transitionrun"),_p=ca("transitionstart"),Cp=ca("transitioncancel"),tf=ca("transitionend"),lf=new Map,zc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");zc.push("scrollEnd");function Zt(e,t){lf.set(e,t),ua(t,[e])}var jp=0;function pl(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=$t.identifierPrefix;var l=jp++;return e="_"+e+"t_"+l.toString(32)+"_",t.autoName=e}function af(e){if(e==null||typeof e=="string")return e;var t=null,l=an;if(l!==null)for(var a=0;a<l.length;a++){var n=e[l[a]];if(n!=null){if(n==="none")return"none";t=t==null?n:t+(" "+n)}}return t??e.default}function vl(e,t){return e=af(e),t=af(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var qu=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)},Ht=[],Ba=0,Oc=0;function Bu(){for(var e=Ba,t=Oc=Ba=0;t<e;){var l=Ht[t];Ht[t++]=null;var a=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var u=Ht[t];if(Ht[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&nf(l,n,u)}}function Yu(e,t,l,a){Ht[Ba++]=e,Ht[Ba++]=t,Ht[Ba++]=l,Ht[Ba++]=a,Oc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Mc(e,t,l,a){return Yu(e,t,l,a),Lu(e)}function sa(e,t){return Yu(e,null,null,t),Lu(e)}function nf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-_t(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Lu(e){if(50<eu)throw eu=0,Ai=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ya={};function Ap(e,t,l,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,l,a){return new Ap(e,t,l,a)}function Dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yl(e,t){var l=e.alternate;return l===null?(l=gt(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&1206910976,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 uf(e,t){e.flags&=1206910978;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 Gu(e,t,l,a,n,u){var i=0;if(a=e,typeof a=="function")Dc(a)&&(i=1);else if(typeof a=="string")i=ay(e,l,Ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Ve:return e=gt(31,l,t,n),e.elementType=Ve,e.lanes=u,e;case le:return ra(l.children,n,u,t);case ne:i=8,n|=24;break;case Ee:return e=gt(12,l,t,n|2),e.elementType=Ee,e.lanes=u,e;case $:return e=gt(13,l,t,n),e.elementType=$,e.lanes=u,e;case P:return e=gt(19,l,t,n),e.elementType=P,e.lanes=u,e;case We:case y:return e=n|32,e=gt(30,l,t,e),e.elementType=y,e.lanes=u,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ne:i=10;break e;case Fe:i=9;break e;case M:i=11;break e;case oe:i=14;break e;case ue:i=16,a=null;break e}i=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=gt(i,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function ra(e,t,l,a){return e=gt(7,e,a,t),e.lanes=l,e}function Rc(e,t,l){return e=gt(6,e,null,t),e.lanes=l,e}function cf(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function Uc(e,t,l){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sf=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var l=sf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:eo(t)},sf.set(e,t),t)}return{value:e,source:t,stack:eo(t)}}var La=[],Ga=0,Vu=null,Dn=0,Bt=[],Yt=0,Ml=null,el=1,tl="";function xl(e,t){La[Ga++]=Dn,La[Ga++]=Vu,Vu=e,Dn=t}function rf(e,t,l){Bt[Yt++]=el,Bt[Yt++]=tl,Bt[Yt++]=Ml,Ml=e;var a=el;e=tl;var n=32-_t(a)-1;a&=~(1<<n),l+=1;var u=32-_t(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,el=1<<32-_t(t)+n|l<<n|a,tl=u+e}else el=1<<u|l<<n|a,tl=e}function ku(e){e.return!==null&&(xl(e,1),rf(e,1,0))}function Hc(e){for(;e===Vu;)Vu=La[--Ga],La[Ga]=null,Dn=La[--Ga],La[Ga]=null;for(;e===Ml;)Ml=Bt[--Yt],Bt[Yt]=null,tl=Bt[--Yt],Bt[Yt]=null,el=Bt[--Yt],Bt[Yt]=null}function of(e,t){Bt[Yt++]=el,Bt[Yt++]=tl,Bt[Yt++]=Ml,el=t.id,tl=t.overflow,Ml=e}var tt=null,He=null,ve=!1,Dl=null,Lt=!1,qc=Error(r(519));function Rl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rn(qt(t,e)),qc}function ff(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[nt]=e,t[xt]=a,l){case"dialog":Se("cancel",t),Se("close",t);break;case"iframe":case"object":case"embed":Se("load",t);break;case"video":case"audio":for(l=0;l<lu.length;l++)Se(lu[l],t);break;case"source":Se("error",t);break;case"img":case"image":case"link":Se("error",t),Se("load",t);break;case"details":Se("toggle",t);break;case"input":Se("invalid",t),No(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Se("invalid",t);break;case"textarea":Se("invalid",t),wo(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||M0(t.textContent,l)?(a.popover!=null&&(Se("beforetoggle",t),Se("toggle",t)),a.onScroll!=null&&Se("scroll",t),a.onScrollEnd!=null&&Se("scrollend",t),a.onClick!=null&&(t.onclick=It),t=!0):t=!1,t||Rl(e,!0)}function Xu(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Lt=!1;return;case 27:case 3:Lt=!0;return;default:tt=tt.return}}function Va(e){if(e!==tt)return!1;if(!ve)return Xu(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||hr(e.type,e.memoizedProps)),l=!l),l&&He&&Rl(e),Xu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=P0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=P0(e)}else t===27?(t=He,$l(e.type)?(e=Nr,Nr=null,He=e):He=t):He=tt?Vt(e.stateNode.nextSibling):null;return!0}function oa(){He=tt=null,ve=!1}function Bc(){var e=Dl;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),Dl=null),e}function Rn(e){Dl===null?Dl=[e]:Dl.push(e)}var Yc=ht(null),fa=null,gl=null;function Ul(e,t,l){ze(Yc,t._currentValue),t._currentValue=l}function bl(e){e._currentValue=Yc.current,$e(Yc)}function Qu(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Lc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var h=0;h<t.length;h++)if(d.context===t[h]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),Qu(u.return,l,e),a||(i=null);break e}u=d.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(r(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Qu(i,l,e),i=null}else n.tag===13&&n.memoizedState!==null&&n.memoizedState.dehydrated===null?(n.lanes|=l,i=n.alternate,i!==null&&(i.lanes|=l),Qu(n.return,l,e),i=n.child,i=i!==null?i.sibling:null):i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function da(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(r(387));if(i=i.memoizedProps,i!==null){var d=n.type;jt(n.pendingProps.value,i.value)||(e!==null?e.push(d):e=[d])}}else if(n===xu.current){if(i=n.alternate,i===null)throw Error(r(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(mn):e=[mn])}n=n.return}return e!==null&&Lc(t,e,l,a),t.flags|=262144,e!==null}function Zu(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){fa=e,gl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return df(fa,e)}function Ju(e,t){return fa===null&&ha(e),df(e,t)}function df(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},gl===null){if(e===null)throw Error(r(308));gl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gl=gl.next=t;return l}var zp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Op=s.unstable_scheduleCallback,Mp=s.unstable_NormalPriority,Qe={$$typeof:Ne,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gc(){return{controller:new zp,data:new Map,refCount:0}}function Un(e){e.refCount--,e.refCount===0&&Op(Mp,function(){e.controller.abort()})}function hf(e,t){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];l.indexOf(a)===-1&&l.push(a)}}}var Hn=null;function Dp(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var qn=null,Vc=0,ma=0,ka=null;function Rp(e,t){if(qn===null){var l=qn=[];Vc=0,ma=nr(),ka={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Vc++,t.then(mf,mf),t}function mf(){if(--Vc===0&&(Hn=null,qn!==null)){ka!==null&&(ka.status="fulfilled");var e=qn;qn=null,ma=0,ka=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Up(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var pf=Y.S;Y.S=function(e,t){if(c0=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rp(e,t),Hn!==null)for(var l=sn;l!==null;)hf(l,Hn),l=l.next;if(l=e.types,l!==null){for(var a=sn;a!==null;)hf(a,l),a=a.next;if(ma!==0){a=Hn,a===null&&(a=Hn=[]);for(var n=0;n<l.length;n++){var u=l[n];a.indexOf(u)===-1&&a.push(u)}}}pf!==null&&pf(e,t)};var pa=ht(null);function kc(){var e=pa.current;return e!==null?e:Ue.pooledCache}function Ku(e,t){t===null?ze(pa,pa.current):ze(pa,t.pool)}function vf(){var e=kc();return e===null?null:{parent:Qe._currentValue,pool:e}}var Xa=Error(r(460)),Xc=Error(r(474)),Fu=Error(r(542)),$u={then:function(){}};function yf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function xf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(It,It),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bf(e),e===void 0&&!("reason"in t)?Error(r(600)):e;default:if(typeof t.status=="string")t.then(It,It);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bf(e),e}throw ya=t,Xa}}function va(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ya=l,Xa):l}}var ya=null;function gf(){if(ya===null)throw Error(r(459));var e=ya;return ya=null,e}function bf(e){if(e===Xa||e===Fu)throw Error(r(483))}var Qa=null,Bn=0;function Pu(e){var t=Bn;return Bn+=1,Qa===null&&(Qa=[]),xf(Qa,e,t)}function Hl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Wu(e,t){throw t.$$typeof===re?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Sf(e){function t(b,v){if(e){var N=b.deletions;N===null?(b.deletions=[v],b.flags|=16):N.push(v)}}function l(b,v){if(!e)return null;for(;v!==null;)t(b,v),v=v.sibling;return null}function a(b){for(var v=new Map;b!==null;)b.key===null?v.set(b.index,b):v.set(b.key,b),b=b.sibling;return v}function n(b,v){return b=yl(b,v),b.index=0,b.sibling=null,b}function u(b,v,N){return b.index=N,e?(N=b.alternate,N!==null?(N=N.index,N<v?(b.flags|=2,v):N):(b.flags|=134217730,v)):(b.flags|=1048576,v)}function i(b){return e&&b.alternate===null&&(b.flags|=134217730),b}function d(b,v,N,j){return v===null||v.tag!==6?(v=Rc(N,b.mode,j),v.return=b,v):(v=n(v,N),v.return=b,v)}function h(b,v,N,j){var k=N.type;return k===le?(b=w(b,v,N.props.children,j,N.key),Hl(b,N),b):v!==null&&(v.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ue&&va(k)===v.type)?(v=n(v,N.props),Hl(v,N),v.return=b,v):(v=Gu(N.type,N.key,N.props,null,b.mode,j),Hl(v,N),v.return=b,v)}function S(b,v,N,j){return v===null||v.tag!==4||v.stateNode.containerInfo!==N.containerInfo||v.stateNode.implementation!==N.implementation?(v=Uc(N,b.mode,j),v.return=b,v):(v=n(v,N.children||[]),v.return=b,v)}function w(b,v,N,j,k){return v===null||v.tag!==7?(v=ra(N,b.mode,j,k),v.return=b,v):(v=n(v,N),v.return=b,v)}function A(b,v,N){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Rc(""+v,b.mode,N),v.return=b,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case L:return N=Gu(v.type,v.key,v.props,null,b.mode,N),Hl(N,v),N.return=b,N;case ce:return v=Uc(v,b.mode,N),v.return=b,v;case ue:return v=va(v),A(b,v,N)}if(q(v)||K(v))return v=ra(v,b.mode,N,null),v.return=b,v;if(typeof v.then=="function")return A(b,Pu(v),N);if(v.$$typeof===Ne)return A(b,Ju(b,v),N);Wu(b,v)}return null}function g(b,v,N,j){var k=v!==null?v.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return k!==null?null:d(b,v,""+N,j);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case L:return N.key===k?h(b,v,N,j):null;case ce:return N.key===k?S(b,v,N,j):null;case ue:return N=va(N),g(b,v,N,j)}if(q(N)||K(N))return k!==null?null:w(b,v,N,j,null);if(typeof N.then=="function")return g(b,v,Pu(N),j);if(N.$$typeof===Ne)return g(b,v,Ju(b,N),j);Wu(b,N)}return null}function T(b,v,N,j,k){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return b=b.get(N)||null,d(v,b,""+j,k);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case L:return b=b.get(j.key===null?N:j.key)||null,h(v,b,j,k);case ce:return b=b.get(j.key===null?N:j.key)||null,S(v,b,j,k);case ue:return j=va(j),T(b,v,N,j,k)}if(q(j)||K(j))return b=b.get(N)||null,w(v,b,j,k,null);if(typeof j.then=="function")return T(b,v,N,Pu(j),k);if(j.$$typeof===Ne)return T(b,v,N,Ju(v,j),k);Wu(v,j)}return null}function B(b,v,N,j){for(var k=null,we=null,W=v,ae=v=0,Ke=null;W!==null&&ae<N.length;ae++){W.index>ae?(Ke=W,W=null):Ke=W.sibling;var _e=g(b,W,N[ae],j);if(_e===null){W===null&&(W=Ke);break}e&&W&&_e.alternate===null&&t(b,W),v=u(_e,v,ae),we===null?k=_e:we.sibling=_e,we=_e,W=Ke}if(ae===N.length)return l(b,W),ve&&xl(b,ae),k;if(W===null){for(;ae<N.length;ae++)W=A(b,N[ae],j),W!==null&&(v=u(W,v,ae),we===null?k=W:we.sibling=W,we=W);return ve&&xl(b,ae),k}for(W=a(W);ae<N.length;ae++)Ke=T(W,b,ae,N[ae],j),Ke!==null&&(e&&(_e=Ke.alternate,_e!==null&&W.delete(_e.key===null?ae:_e.key)),v=u(Ke,v,ae),we===null?k=Ke:we.sibling=Ke,we=Ke);return e&&W.forEach(function(ta){return t(b,ta)}),ve&&xl(b,ae),k}function Q(b,v,N,j){if(N==null)throw Error(r(151));for(var k=null,we=null,W=v,ae=v=0,Ke=null,_e=N.next();W!==null&&!_e.done;ae++,_e=N.next()){W.index>ae?(Ke=W,W=null):Ke=W.sibling;var ta=g(b,W,_e.value,j);if(ta===null){W===null&&(W=Ke);break}e&&W&&ta.alternate===null&&t(b,W),v=u(ta,v,ae),we===null?k=ta:we.sibling=ta,we=ta,W=Ke}if(_e.done)return l(b,W),ve&&xl(b,ae),k;if(W===null){for(;!_e.done;ae++,_e=N.next())_e=A(b,_e.value,j),_e!==null&&(v=u(_e,v,ae),we===null?k=_e:we.sibling=_e,we=_e);return ve&&xl(b,ae),k}for(W=a(W);!_e.done;ae++,_e=N.next())_e=T(W,b,ae,_e.value,j),_e!==null&&(e&&(Ke=_e.alternate,Ke!==null&&W.delete(Ke.key===null?ae:Ke.key)),v=u(_e,v,ae),we===null?k=_e:we.sibling=_e,we=_e);return e&&W.forEach(function(py){return t(b,py)}),ve&&xl(b,ae),k}function he(b,v,N,j){if(typeof N=="object"&&N!==null&&N.type===le&&N.key===null&&N.props.ref===void 0&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case L:e:{for(var k=N.key;v!==null;){if(v.key===k){if(k=N.type,k===le){if(v.tag===7){l(b,v.sibling),j=n(v,N.props.children),Hl(j,N),j.return=b,b=j;break e}}else if(v.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ue&&va(k)===v.type){l(b,v.sibling),j=n(v,N.props),Hl(j,N),j.return=b,b=j;break e}l(b,v);break}else t(b,v);v=v.sibling}N.type===le?(j=ra(N.props.children,b.mode,j,N.key),Hl(j,N),j.return=b,b=j):(j=Gu(N.type,N.key,N.props,null,b.mode,j),Hl(j,N),j.return=b,b=j)}return i(b);case ce:e:{for(k=N.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===N.containerInfo&&v.stateNode.implementation===N.implementation){l(b,v.sibling),j=n(v,N.children||[]),j.return=b,b=j;break e}else{l(b,v);break}else t(b,v);v=v.sibling}j=Uc(N,b.mode,j),j.return=b,b=j}return i(b);case ue:return N=va(N),he(b,v,N,j)}if(q(N))return B(b,v,N,j);if(K(N)){if(k=K(N),typeof k!="function")throw Error(r(150));return N=k.call(N),Q(b,v,N,j)}if(typeof N.then=="function")return he(b,v,Pu(N),j);if(N.$$typeof===Ne)return he(b,v,Ju(b,N),j);Wu(b,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,v!==null&&v.tag===6?(l(b,v.sibling),j=n(v,N),j.return=b,b=j):(l(b,v),j=Rc(N,b.mode,j),j.return=b,b=j),i(b)):l(b,v)}return function(b,v,N,j){try{Bn=0;var k=he(b,v,N,j);return Qa=null,k}catch(W){if(W===Xa||W===Fu)throw W;var we=gt(29,W,null,b.mode);return we.lanes=j,we.return=b,we}finally{}}}var xa=Sf(!0),Nf=Sf(!1),ql=!1;function Qc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zc(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 Bl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Lu(e),nf(e,null,l),t}return Yu(e,a,t,l),Lu(e)}function Yn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,co(e,l)}}function Jc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Kc=!1;function Ln(){if(Kc){var e=ka;if(e!==null)throw e}}function Gn(e,t,l,a){Kc=!1;var n=e.updateQueue;ql=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var h=d,S=h.next;h.next=null,i===null?u=S:i.next=S,i=h;var w=e.alternate;w!==null&&(w=w.updateQueue,d=w.lastBaseUpdate,d!==i&&(d===null?w.firstBaseUpdate=S:d.next=S,w.lastBaseUpdate=h))}if(u!==null){var A=n.baseState;i=0,w=S=h=null,d=u;do{var g=d.lane&-536870913,T=g!==d.lane;if(T?(Te&g)===g:(a&g)===g){g!==0&&g===ma&&(Kc=!0),w!==null&&(w=w.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var B=e,Q=d;g=t;var he=l;switch(Q.tag){case 1:if(B=Q.payload,typeof B=="function"){A=B.call(he,A,g);break e}A=B;break e;case 3:B.flags=B.flags&-65537|128;case 0:if(B=Q.payload,g=typeof B=="function"?B.call(he,A,g):B,g==null)break e;A=J({},A,g);break e;case 2:ql=!0}}g=d.callback,g!==null&&(e.flags|=64,T&&(e.flags|=8192),T=n.callbacks,T===null?n.callbacks=[g]:T.push(g))}else T={lane:g,tag:d.tag,payload:d.payload,callback:d.callback,next:null},w===null?(S=w=T,h=A):w=w.next=T,i|=g;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;T=d,d=T.next,T.next=null,n.lastBaseUpdate=T,n.shared.pending=null}}while(!0);w===null&&(h=A),n.baseState=h,n.firstBaseUpdate=S,n.lastBaseUpdate=w,u===null&&(n.shared.lanes=0),Zl|=i,e.lanes=i,e.memoizedState=A}}function Tf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function wf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Tf(l[e],t)}var Ll=ht(null),Iu=ht(0);function Ef(e,t){e=El,ze(Iu,e),ze(Ll,t),El=e|t.baseLanes}function Fc(){ze(Iu,El),ze(Ll,Ll.current)}function $c(){El=Iu.current,$e(Ll),$e(Iu)}var it=ht(null),dt=null;function Gl(e){var t=e.alternate;ze(ct,ct.current&1),ze(it,e),dt===null&&(t===null||Ll.current!==null||t.memoizedState!==null)&&(dt=e)}function Pc(e){ze(ct,ct.current),ze(it,e),dt===null&&(dt=e)}function _f(e){e.tag===22?(ze(ct,ct.current),ze(it,e),dt===null&&(dt=e)):Vl()}function Vl(){ze(ct,ct.current),ze(it,it.current)}function At(e){$e(it),dt===e&&(dt=null),$e(ct)}var ct=ht(0);function Vn(e,t){ze(it,it.current),ze(ct,t)}function Wc(e){$e(ct),$e(it),dt===e&&(dt=null)}function ei(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||br(l)||Sr(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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 Sl=0,de=null,Re=null,Ze=null,ti=!1,Za=!1,ga=!1,li=0,kn=0,Ja=null,Hp=0;function Le(){throw Error(r(321))}function Ic(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!jt(e[l],t[l]))return!1;return!0}function es(e,t,l,a,n,u){return Sl=u,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Y.H=e===null||e.memoizedState===null?rd:od,ga=!1,u=l(a,n),ga=!1,Za&&(u=jf(t,l,a,n)),Cf(e),u}function Cf(e){Y.H=ri;var t=Re!==null&&Re.next!==null;if(Sl=0,Ze=Re=de=null,ti=!1,kn=0,Ja=null,t)throw Error(r(300));e===null||Je||(e=e.dependencies,e!==null&&Zu(e)&&(Je=!0))}function jf(e,t,l,a){de=e;var n=0;do{if(Za&&(Ja=null),kn=0,Za=!1,25<=n)throw Error(r(301));if(n+=1,Ze=Re=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}Y.H=Xp,u=t(l,a)}while(Za);return u}function qp(){var e=Y.H,t=e.useState()[0];return t=typeof t.then=="function"?Xn(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(de.flags|=1024),t}function ts(){var e=li!==0;return li=0,e}function ls(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function as(e){if(ti){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ti=!1}Sl=0,Ze=Re=de=null,Za=!1,kn=li=0,Ja=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?de.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(Re===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ze===null?de.memoizedState:Ze.next;if(t!==null)Ze=t,Re=e;else{if(e===null)throw de.alternate===null?Error(r(467)):Error(r(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ze===null?de.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function ai(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xn(e){var t=kn;return kn+=1,Ja===null&&(Ja=[]),e=xf(Ja,e,t),t=de,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,Y.H=t===null||t.memoizedState===null?rd:od),e}function ni(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xn(e);if(e.$$typeof===U)return;if(e.$$typeof===Ne)return ut(e)}throw Error(r(438,String(e)))}function ns(e){var t=null,l=de.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=de.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ai(),de.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Qt;return t.index++,l}function Nl(e,t){return typeof t=="function"?t(e):t}function ui(e){var t=Xe();return us(t,Re,e)}function us(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=i=null,h=null,S=t,w=!1;do{var A=S.lane&-536870913;if(A!==S.lane?(Te&A)===A:(Sl&A)===A){var g=S.revertLane;if(g===0)h!==null&&(h=h.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),A===ma&&(w=!0);else if((Sl&g)===g){S=S.next,g===ma&&(w=!0);continue}else A={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(d=h=A,i=u):h=h.next=A,de.lanes|=g,Zl|=g;A=S.action,ga&&l(u,A),u=S.hasEagerState?S.eagerState:l(u,A)}else g={lane:A,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(d=h=g,i=u):h=h.next=g,de.lanes|=A,Zl|=A;S=S.next}while(S!==null&&S!==t);if(h===null?i=u:h.next=d,!jt(u,e.memoizedState)&&(Je=!0,w&&(l=ka,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=h,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function is(e){var t=Xe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);jt(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Af(e,t,l){var a=de,n=Xe(),u=ve;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var i=!jt((Re||n).memoizedState,l);if(i&&(n.memoizedState=l,Je=!0),n=n.queue,rs(Mf.bind(null,a,n,e),[e]),e=n.getSnapshot!==t||i||Ze!==null&&(Ze.memoizedState.tag&1)!==0,Ka(e?9:8,{destroy:void 0},Of.bind(null,a,n,l,t),null),e){if(a.flags|=2048,Ue===null)throw Error(r(349));u||(Sl&127)!==0||zf(a,t,l)}return l}function zf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=de.updateQueue,t===null?(t=ai(),de.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Of(e,t,l,a){t.value=l,t.getSnapshot=a,Df(t)&&Rf(e)}function Mf(e,t,l){return l(function(){Df(t)&&Rf(e)})}function Df(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!jt(e,l)}catch{return!0}}function Rf(e){var t=sa(e,2);t!==null&&Tt(t,e,2)}function cs(e){var t=pt();if(typeof e=="function"){var l=e;if(e=l(),ga){Al(!0);try{l()}finally{Al(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:e},t}function Uf(e,t,l,a){return e.baseState=l,us(e,Re,typeof a=="function"?a:Nl)}function Bp(e,t,l,a,n){if(si(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};Y.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Hf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Hf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=Y.T,i={};i.types=u!==null?u.types:null,Y.T=i;try{var d=l(n,a),h=Y.S;h!==null&&h(i,d),qf(e,t,d)}catch(S){ss(e,t,S)}finally{u!==null&&i.types!==null&&(u.types=i.types),Y.T=u}}else try{u=l(n,a),qf(e,t,u)}catch(S){ss(e,t,S)}}function qf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Bf(e,t,a)},function(a){return ss(e,t,a)}):Bf(e,t,l)}function Bf(e,t,l){t.status="fulfilled",t.value=l,Yf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Hf(e,l)))}function ss(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Yf(t),t=t.next;while(t!==a)}e.action=null}function Yf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lf(e,t){return t}function Gf(e,t){if(ve){var l=Ue.formState;if(l!==null){e:{var a=de;if(ve){if(He){t:{for(var n=He,u=Lt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Vt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){He=Vt(n.nextSibling),a=n.data==="F!";break e}}Rl(a)}a=!1}a&&(t=l[0])}}return l=pt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lf,lastRenderedState:t},l.queue=a,l=id.bind(null,de,a),a.dispatch=l,a=cs(!1),u=ms.bind(null,de,!1,a.queue),a=pt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Bp.bind(null,de,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Vf(e){var t=Xe();return kf(t,Re,e)}function kf(e,t,l){if(t=us(e,t,Lf)[0],e=ui(Nl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Xn(t)}catch(i){throw i===Xa?Fu:i}else a=t;t=Xe();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(de.flags|=2048,Ka(9,{destroy:void 0},Yp.bind(null,n,l),null)),[a,u,e]}function Yp(e,t){e.action=t}function Xf(e){var t=Xe(),l=Re;if(l!==null)return kf(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ka(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=de.updateQueue,t===null&&(t=ai(),de.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Qf(){return Xe().memoizedState}function ii(e,t,l,a){var n=pt();de.flags|=e,n.memoizedState=Ka(1|t,{destroy:void 0},l,a===void 0?null:a)}function ci(e,t,l,a){var n=Xe();a=a===void 0?null:a;var u=n.memoizedState.inst;Re!==null&&a!==null&&Ic(a,Re.memoizedState.deps)?n.memoizedState=Ka(t,u,l,a):(de.flags|=e,n.memoizedState=Ka(1|t,u,l,a))}function Zf(e,t){ii(8390656,8,e,t)}function rs(e,t){ci(2048,8,e,t)}function Lp(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=ai(),de.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Jf(e){var t=Xe().memoizedState;return Lp({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Kf(e,t){return ci(4,2,e,t)}function Ff(e,t){return ci(4,4,e,t)}function $f(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 Pf(e,t,l){l=l!=null?l.concat([e]):null,ci(4,4,$f.bind(null,t,e),l)}function os(){}function Wf(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ic(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function If(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ic(t,a[1]))return a[0];if(a=e(),ga){Al(!0);try{e()}finally{Al(!1)}}return l.memoizedState=[a,t],a}function fs(e,t,l){return l===void 0||(Sl&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=r0(),de.lanes|=e,Zl|=e,l)}function ed(e,t,l,a){return jt(l,t)?l:Ll.current!==null?(e=fs(e,l,a),jt(e,t)||(Je=!0),e):(Sl&106)===0||(Sl&1073741824)!==0&&(Te&261930)===0?(Je=!0,e.memoizedState=l):(e=r0(),de.lanes|=e,Zl|=e,t)}function td(e,t,l,a,n){var u=O.p;O.p=u!==0&&8>u?u:8;var i=Y.T,d={};d.types=i!==null?i.types:null,Y.T=d,ms(e,!1,t,l);try{var h=n(),S=Y.S;if(S!==null&&S(d,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var w=Up(h,a);Qn(e,t,w,Dt(e))}else Qn(e,t,a,Dt(e))}catch(A){Qn(e,t,{then:function(){},status:"rejected",reason:A},Dt())}finally{O.p=u,i!==null&&d.types!==null&&(i.types=d.types),Y.T=i}}function Gp(){}function ds(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=ld(e).queue;td(e,n,t,ge,l===null?Gp:function(){return ad(e),l(a)})}function ld(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ge,baseState:ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:ge},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ad(e){var t=ld(e);t.next===null&&(t=e.alternate.memoizedState),Qn(e,t.next.queue,{},Dt())}function hs(){return ut(mn)}function nd(){return Xe().memoizedState}function ud(){return Xe().memoizedState}function Vp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Dt();e=Bl(l);var a=Yl(t,e,l);a!==null&&(Tt(a,t,l),Yn(a,t,l)),t={cache:Gc()},e.payload=t;return}t=t.return}}function kp(e,t,l){var a=Dt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},si(e)?cd(t,l):(l=Mc(e,t,l,a),l!==null&&(Tt(l,e,a),sd(l,t,a)))}function id(e,t,l){var a=Dt();Qn(e,t,l,a)}function Qn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(si(e))cd(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,d=u(i,l);if(n.hasEagerState=!0,n.eagerState=d,jt(d,i))return Yu(e,t,n,0),Ue===null&&Bu(),!1}catch{}finally{}if(l=Mc(e,t,n,a),l!==null)return Tt(l,e,a),sd(l,t,a),!0}return!1}function ms(e,t,l,a){if(a={lane:2,revertLane:nr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},si(e)){if(t)throw Error(r(479))}else t=Mc(e,l,a,2),t!==null&&Tt(t,e,2)}function si(e){var t=e.alternate;return e===de||t!==null&&t===de}function cd(e,t){Za=ti=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function sd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,co(e,l)}}var ri={readContext:ut,use:ni,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le,useEffectEvent:Le},rd={readContext:ut,use:ni,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Zf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ii(4194308,4,$f.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ii(4194308,4,e,t)},useInsertionEffect:function(e,t){ii(4,2,e,t)},useMemo:function(e,t){var l=pt();t=t===void 0?null:t;var a=e();if(ga){Al(!0);try{e()}finally{Al(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=pt();if(l!==void 0){var n=l(t);if(ga){Al(!0);try{l(t)}finally{Al(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=kp.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=cs(e);var t=e.queue,l=id.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:os,useDeferredValue:function(e,t){var l=pt();return fs(l,e,t)},useTransition:function(){var e=cs(!1);return e=td.bind(null,de,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,n=pt();if(ve){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ue===null)throw Error(r(349));(Te&127)!==0||zf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,Zf(Mf.bind(null,a,u,e),[e]),a.flags|=2048,Ka(9,{destroy:void 0},Of.bind(null,a,u,l,t),null),l},useId:function(){var e=pt(),t=Ue.identifierPrefix;if(ve){var l=tl,a=el;l=(a&~(1<<32-_t(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=li++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Hp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hs,useFormState:Gf,useActionState:Gf,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ms.bind(null,de,!0,l),l.dispatch=t,[e,t]},useMemoCache:ns,useCacheRefresh:function(){return pt().memoizedState=Vp.bind(null,de)},useEffectEvent:function(e){var t=pt(),l={impl:e};return t.memoizedState=l,function(){if((je&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},od={readContext:ut,use:ni,useCallback:Wf,useContext:ut,useEffect:rs,useImperativeHandle:Pf,useInsertionEffect:Kf,useLayoutEffect:Ff,useMemo:If,useReducer:ui,useRef:Qf,useState:function(){return ui(Nl)},useDebugValue:os,useDeferredValue:function(e,t){var l=Xe();return ed(l,Re.memoizedState,e,t)},useTransition:function(){var e=ui(Nl)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Xn(e),t]},useSyncExternalStore:Af,useId:nd,useHostTransitionStatus:hs,useFormState:Vf,useActionState:Vf,useOptimistic:function(e,t){var l=Xe();return Uf(l,Re,e,t)},useMemoCache:ns,useCacheRefresh:ud,useEffectEvent:Jf},Xp={readContext:ut,use:ni,useCallback:Wf,useContext:ut,useEffect:rs,useImperativeHandle:Pf,useInsertionEffect:Kf,useLayoutEffect:Ff,useMemo:If,useReducer:is,useRef:Qf,useState:function(){return is(Nl)},useDebugValue:os,useDeferredValue:function(e,t){var l=Xe();return Re===null?fs(l,e,t):ed(l,Re.memoizedState,e,t)},useTransition:function(){var e=is(Nl)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Xn(e),t]},useSyncExternalStore:Af,useId:nd,useHostTransitionStatus:hs,useFormState:Xf,useActionState:Xf,useOptimistic:function(e,t){var l=Xe();return Re!==null?Uf(l,Re,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ns,useCacheRefresh:ud,useEffectEvent:Jf};function ps(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:J({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var vs={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=Bl(a);n.payload=t,l!=null&&(n.callback=l),t=Yl(e,n,a),t!==null&&(Tt(t,e,a),Yn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=Bl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Yl(e,n,a),t!==null&&(Tt(t,e,a),Yn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Dt(),a=Bl(l);a.tag=2,t!=null&&(a.callback=t),t=Yl(e,a,l),t!==null&&(Tt(t,e,l),Yn(t,e,l))}};function fd(e,t,l,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!On(l,a)||!On(n,u):!0}function dd(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&vs.enqueueReplaceState(t,t.state,null)}function ba(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=J({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function hd(e){qu(e)}function md(e){console.error(e)}function pd(e){qu(e)}function oi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function vd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ys(e,t,l){return l=Bl(l),l.tag=3,l.payload={element:null},l.callback=function(){oi(e,t)},l}function yd(e){return e=Bl(e),e.tag=3,e}function xd(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){vd(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){vd(t,l,a),typeof n!="function"&&(Jl===null?Jl=new Set([this]):Jl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Qp(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&da(t,l,n,!0),l=it.current,l!==null){switch(l.tag){case 31:case 13:case 19:return dt===null?Oi():l.alternate===null&&Ge===0&&(Ge=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===$u?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),tr(e,a,n)),!1;case 22:return l.flags|=65536,a===$u?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),tr(e,a,n)),!1}throw Error(r(435,l.tag))}return tr(e,a,n),Oi(),!1}if(ve)return t=it.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==qc&&(e=Error(r(422),{cause:a}),Rn(qt(e,l)))):(a!==qc&&(t=Error(r(423),{cause:a}),Rn(qt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=qt(a,l),n=ys(e.stateNode,a,n),Jc(e,n),Ge!==4&&(Ge=2)),!1;var u=Error(r(520),{cause:a});if(u=qt(u,l),In===null?In=[u]:In.push(u),Ge!==4&&(Ge=2),t===null)return!0;a=qt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=ys(l.stateNode,a,e),Jc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Jl===null||!Jl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=yd(n),xd(n,e,l,a),Jc(l,n),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var xs=Error(r(461)),Je=!1;function Pe(e,t,l,a){t.child=e===null?Nf(t,null,l,a):xa(t,e.child,l,a)}function gd(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var i={};for(var d in a)d!=="ref"&&(i[d]=a[d])}else i=a;return ha(t),a=es(e,t,l,i,u,n),d=ts(),e!==null&&!Je?(ls(e,t,n),Tl(e,t,n)):(ve&&d&&ku(t),t.flags|=1,Pe(e,t,a,n),t.child)}function bd(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Dc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Sd(e,t,u,a,n)):(e=Gu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!_s(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:On,l(i,a)&&e.ref===t.ref)return Tl(e,t,n)}return t.flags|=1,e=yl(u,a),e.ref=t.ref,e.return=t,t.child=e}function Sd(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(On(u,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=u,_s(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,Tl(e,t,n)}return gs(e,t,l,a,n)}function Nd(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Td(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ku(t,u!==null?u.cachePool:null),u!==null?Ef(t,u):Fc(),_f(t);else return a=t.lanes=536870912,Td(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Ku(t,u.cachePool),Ef(t,u),Vl(),t.memoizedState=null):(e!==null&&Ku(t,null),Fc(),Vl());return Pe(e,t,n,l),t.child}function Zn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Td(e,t,l,a,n){var u=kc();return u=u===null?null:{parent:Qe._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Ku(t,null),Fc(),_f(t),e!==null&&da(e,t,a,!0),t.childLanes=n,null}function fi(e,t){return t=di({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wd(e,t,l){return xa(t,e.child,null,l),e=fi(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function Zp(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=fi(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Zn(null,e);if(Pc(t),(e=He)?(e=$0(e,Lt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ml!==null?{id:el,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=cf(e),l.return=t,t.child=l,tt=t,He=null)):e=null,e===null)throw Rl(t);return t.lanes=536870912,null}return fi(t,a)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(Pc(t),n)if(t.flags&256)t.flags&=-257,t=wd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Je||da(e,t,l,!1),n=(l&e.childLanes)!==0,Je||n){if(Ll.current===null){if(a=Ue,a!==null&&(i=so(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,sa(e,i),Tt(a,e,i),xs;Oi()}t=wd(e,t,l)}else e=u.treeContext,He=Vt(i.nextSibling),tt=t,ve=!0,Dl=null,Lt=!1,e!==null&&of(t,e),t=fi(t,a),t.flags|=134221824;return t}return e=yl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fa(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 gs(e,t,l,a,n){return ha(t),l=es(e,t,l,a,void 0,n),a=ts(),e!==null&&!Je?(ls(e,t,n),Tl(e,t,n)):(ve&&a&&ku(t),t.flags|=1,Pe(e,t,l,n),t.child)}function Ed(e,t,l,a,n,u){return ha(t),t.updateQueue=null,l=jf(t,a,l,n),Cf(e),a=ts(),e!==null&&!Je?(ls(e,t,u),Tl(e,t,u)):(ve&&a&&ku(t),t.flags|=1,Pe(e,t,l,u),t.child)}function _d(e,t,l,a,n){if(ha(t),t.stateNode===null){var u=Ya,i=l.contextType;typeof i=="object"&&i!==null&&(u=ut(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=vs,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Qc(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?ut(i):Ya,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(ps(t,l,i,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&vs.enqueueReplaceState(u,u.state,null),Gn(t,a,u,n),Ln(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,h=ba(l,d);u.props=h;var S=u.context,w=l.contextType;i=Ya,typeof w=="object"&&w!==null&&(i=ut(w));var A=l.getDerivedStateFromProps;w=typeof A=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,w||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||S!==i)&&dd(t,u,a,i),ql=!1;var g=t.memoizedState;u.state=g,Gn(t,a,u,n),Ln(),S=t.memoizedState,d||g!==S||ql?(typeof A=="function"&&(ps(t,l,A,a),S=t.memoizedState),(h=ql||fd(t,l,h,a,g,S,i))?(w||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=S),u.props=a,u.state=S,u.context=i,a=h):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Zc(e,t),i=t.memoizedProps,w=ba(l,i),u.props=w,A=t.pendingProps,g=u.context,S=l.contextType,h=Ya,typeof S=="object"&&S!==null&&(h=ut(S)),d=l.getDerivedStateFromProps,(S=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==A||g!==h)&&dd(t,u,a,h),ql=!1,g=t.memoizedState,u.state=g,Gn(t,a,u,n),Ln();var T=t.memoizedState;i!==A||g!==T||ql||e!==null&&e.dependencies!==null&&Zu(e.dependencies)?(typeof d=="function"&&(ps(t,l,d,a),T=t.memoizedState),(w=ql||fd(t,l,w,a,g,T,h)||e!==null&&e.dependencies!==null&&Zu(e.dependencies))?(S||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,T,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,T,h)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=T),u.props=a,u.state=T,u.context=h,a=w):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Fa(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=xa(t,e.child,null,n),t.child=xa(t,null,l,n)):Pe(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Tl(e,t,n),e}function Cd(e,t,l,a){return oa(),t.flags|=256,Pe(e,t,l,a),t.child}var bs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ss(e){return{baseLanes:e,cachePool:vf()}}function Ns(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Mt),e}function jd(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(ct.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?Gl(t):Vl(),(e=He)?(e=$0(e,Lt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ml!==null?{id:el,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=cf(e),l.return=t,t.child=l,tt=t,He=null)):e=null,e===null)throw Rl(t);return Sr(e)?t.lanes=32:t.lanes=536870912,null}return u=a.children,a=a.fallback,n?(Vl(),n=t.mode,u=di({mode:"hidden",children:u},n),a=ra(a,n,l,null),u.return=t,a.return=t,u.sibling=a,t.child=u,a=t.child,a.memoizedState=Ss(l),a.childLanes=Ns(e,i,l),t.memoizedState=bs,Zn(null,a)):(Gl(t),Ts(t,u))}var d=e.memoizedState;if(d!==null){var h=d.dehydrated;if(h!==null)return Jp(e,t,u,i,a,h,d,l)}return n?(Vl(),n=a.fallback,u=t.mode,d=e.child,h=d.sibling,a=yl(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&1206910976,h!==null?n=yl(h,n):(n=ra(n,u,l,null),n.flags|=2),n.return=t,a.return=t,a.sibling=n,t.child=a,Zn(null,a),a=t.child,n=e.child.memoizedState,n===null?n=Ss(l):(u=n.cachePool,u!==null?(d=Qe._currentValue,u=u.parent!==d?{parent:d,pool:d}:u):u=vf(),n={baseLanes:n.baseLanes|l,cachePool:u}),a.memoizedState=n,a.childLanes=Ns(e,i,l),t.memoizedState=bs,Zn(e.child,a)):(Gl(t),l=e.child,e=l.sibling,l=yl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function Ts(e,t){return t=di({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function di(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function hi(e,t,l){return xa(t,e.child,null,l),e=Ts(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jp(e,t,l,a,n,u,i,d){if(l)return t.flags&256?(Gl(t),t.flags&=-257,hi(e,t,d)):t.memoizedState!==null?(Vl(),t.child=e.child,t.flags|=128,null):(Vl(),u=n.fallback,i=t.mode,n=di({mode:"visible",children:n.children},i),u=ra(u,i,d,null),u.flags|=2,n.return=t,u.return=t,n.sibling=u,t.child=n,xa(t,e.child,null,d),n=t.child,n.memoizedState=Ss(d),n.childLanes=Ns(e,a,d),t.memoizedState=bs,Zn(null,n));if(Gl(t),Sr(u)){if(a=u.nextSibling&&u.nextSibling.dataset,a)var h=a.dgst;return a=h,a!==""&&(n=Error(r(419)),n.stack="",n.digest=a,Rn({value:n,source:null,stack:null})),hi(e,t,d)}if(Je||da(e,t,d,!1),a=(d&e.childLanes)!==0,Je||a){if(Ll.current!==null)return hi(e,t,d);if(a=Ue,a!==null&&(n=so(a,d),n!==0&&n!==i.retryLane))throw i.retryLane=n,sa(e,n),Tt(a,e,n),xs;return br(u)||Oi(),hi(e,t,d)}return br(u)?(t.flags|=192,t.child=e.child,null):(e=i.treeContext,He=Vt(u.nextSibling),tt=t,ve=!0,Dl=null,Lt=!1,e!==null&&of(t,e),t=Ts(t,n.children),t.flags|=134221824,t)}function Ad(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Qu(e.return,t,l)}function zd(e){for(var t=null;e!==null;){var l=e.alternate;l!==null&&ei(l)===null&&(t=e),e=e.sibling}return t}function mi(e,t,l,a,n,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function ws(e){var t=e.child;for(e.child=null;t!==null;){var l=t.sibling;t.sibling=e.child,e.child=t,t=l}}function Es(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=ct.current;if(t.flags&128)return Vn(t,i),null;var d=(i&2)!==0;if(d?(i=i&1|2,t.flags|=128):i&=1,Vn(t,i),n==="backwards"&&e!==null?(ws(e),Pe(e,t,a,l),ws(e)):Pe(e,t,a,l),a=ve?Dn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ad(e,l,t);else if(e.tag===19)Ad(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(n){case"backwards":l=zd(t.child),l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null,ws(t)),mi(t,!0,n,null,u,a);break;case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&ei(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}mi(t,!0,l,null,u,a);break;case"together":mi(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:l=zd(t.child),l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),mi(t,!1,n,l,u,a)}return t.child}function Od(e,t,l){var a=t.pendingProps;return Ul(t,t.type,a.value),Pe(e,t,a.children,l),t.child}function Tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Zl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(da(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=yl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=yl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function _s(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Zu(e)))}function Kp(e,t,l){switch(t.tag){case 3:gu(t,t.stateNode.containerInfo),Ul(t,Qe,e.memoizedState.cache),oa();break;case 27:case 5:Ii(t);break;case 4:gu(t,t.stateNode.containerInfo);break;case 10:Ul(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Pc(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return Gl(t),t.flags|=128,null;a=da(e,t,l,!1);var n=t.child.childLanes;return a||(l&n)!==0?jd(e,t,l):(Gl(t),e=Tl(e,t,l),e!==null?e.sibling:null)}Gl(t);break;case 19:if(t.flags&128)return Es(e,t,l);if(n=(e.flags&128)!==0,a=(l&t.childLanes)!==0,a||(da(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Es(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Vn(t,ct.current),a)break;return null;case 22:return t.lanes=0,Nd(e,t,l,t.pendingProps);case 24:Ul(t,Qe,e.memoizedState.cache)}return Tl(e,t,l)}function Md(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!_s(e,l)&&(t.flags&128)===0)return Je=!1,Kp(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,ve&&(t.flags&1048576)!==0&&rf(t,Dn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=va(t.elementType),t.type=e,typeof e=="function")Dc(e)?(a=ba(e,a),t.tag=1,t=_d(null,t,e,a,l)):(t.tag=0,t=gs(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===M){t.tag=11,t=gd(null,t,e,a,l);break e}else if(n===oe){t.tag=14,t=bd(null,t,e,a,l);break e}else if(n===Ne){t.tag=10,t.type=e,t=Od(null,t,l);break e}}throw t=fe(e)||e,Error(r(306,t,""))}}return t;case 0:return gs(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ba(a,t.pendingProps),_d(e,t,a,n,l);case 3:e:{if(gu(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Zc(e,t),Gn(t,a,null,l);var i=t.memoizedState;if(a=i.cache,Ul(t,Qe,a),a!==u.cache&&Lc(t,[Qe],l,!0),Ln(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Cd(e,t,a,l);break e}else if(a!==n){n=qt(Error(r(424)),t),Rn(n),t=Cd(e,t,a,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(He=Vt(e.firstChild),tt=t,ve=!0,Dl=null,Lt=!0,l=Nf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(oa(),a===n){t=Tl(e,t,l);break e}Pe(e,t,a,l)}t=t.child}return t;case 26:return Fa(e,t),e===null?(l=ah(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(t.stateNode=H0(t.type,t.pendingProps,Cl.current,t)):t.memoizedState=ah(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ii(t),e===null&&ve&&(a=t.stateNode=I0(t.type,t.pendingProps,Cl.current),tt=t,Lt=!0,n=He,$l(t.type)?(Nr=n,He=Vt(a.firstChild)):He=n),Pe(e,t,t.pendingProps.children,l),Fa(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=He)&&(a=Vv(a,t.type,t.pendingProps,Lt),a!==null?(t.stateNode=a,tt=t,He=Vt(a.firstChild),Lt=!1,n=!0):n=!1),n||Rl(t)),Ii(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,hr(n,u)?a=null:i!==null&&hr(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=es(e,t,qp,null,null,l),mn._currentValue=n),Fa(e,t),Pe(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=He)&&(l=kv(l,t.pendingProps,Lt),l!==null?(t.stateNode=l,tt=t,He=null,e=!0):e=!1),e||Rl(t)),null;case 13:return jd(e,t,l);case 4:return gu(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=xa(t,null,a,l):Pe(e,t,a,l),t.child;case 11:return gd(e,t,t.type,t.pendingProps,l);case 7:return a=t.pendingProps,Fa(e,t),Pe(e,t,a,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return Od(e,t,l);case 9:return n=t.type._context,a=t.pendingProps.children,ha(t),n=ut(n),a=a(n),t.flags|=1,Pe(e,t,a,l),t.child;case 14:return bd(e,t,t.type,t.pendingProps,l);case 15:return Sd(e,t,t.type,t.pendingProps,l);case 19:return Es(e,t,l);case 31:return Zp(e,t,l);case 22:return Nd(e,t,l,t.pendingProps);case 24:return ha(t),a=ut(Qe),e===null?(n=kc(),n===null&&(n=Ue,u=Gc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Qc(t),Ul(t,Qe,n)):((e.lanes&l)!==0&&(Zc(e,t),Gn(t,null,null,l),Ln()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Ul(t,Qe,a)):(a=u.cache,Ul(t,Qe,a),a!==n.cache&&Lc(t,[Qe],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:ve&&ku(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:Fa(e,t),Pe(e,t,a.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function wl(e){e.flags|=4}function Cs(e,t,l,a,n){var u;if((u=(e.mode&32)!==0)&&(u=l===null?ch(t,a):ch(t,a)&&(a.src!==l.src||a.srcSet!==l.srcSet)),u){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(h0())e.flags|=8192;else throw ya=$u,Xc}else e.flags&=-16777217}function Dd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sh(t))if(h0())e.flags|=8192;else throw ya=$u,Xc}function pi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?uo():536870912,e.lanes|=t,en|=t)}function Jn(e,t){if(!ve)switch(e.tailMode){case"visible":break;case"collapsed":for(var l=e.tail,a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&1206910976,a|=n.flags&1206910976,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Fp(e,t,l){var a=t.pendingProps;switch(Hc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),bl(Qe),_a(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Va(t)?wl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Bc())),qe(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(wl(t),u!==null?(qe(t),Dd(t,u)):(qe(t),Cs(t,n,null,a,l))):u?u!==e.memoizedState?(wl(t),qe(t),Dd(t,u)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&wl(t),qe(t),Cs(t,n,e,a,l)),null;case 27:if(bu(t),l=Cl.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&wl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return qe(t),t.subtreeFlags&=-33554433,null}e=Ie.current,Va(t)?ff(t):(e=I0(n,a,l),t.stateNode=e,wl(t))}return qe(t),t.subtreeFlags&=-33554433,null;case 5:if(bu(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&wl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return qe(t),t.subtreeFlags&=-33554433,null}if(u=Ie.current,Va(t))ff(t);else{var i=nu(Cl.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[nt]=t,u[xt]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(rt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&wl(t)}}return qe(t),t.subtreeFlags&=-33554433,Cs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&wl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=Cl.current,Va(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=tt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[nt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||M0(e.nodeValue,l)),e||Rl(t,!0)}else e=nu(e).createTextNode(a),e[nt]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Va(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[nt]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=Bc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(r(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Va(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[nt]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),n=!1}else n=Bc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),pi(t,t.updateQueue),qe(t),null);case 4:return _a(),e===null&&sr(t.stateNode.containerInfo),t.flags|=67108864,qe(t),null;case 10:return bl(t.type),qe(t),null;case 19:if(Wc(t),a=t.memoizedState,a===null)return qe(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Jn(a,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ei(e),u!==null){for(t.flags|=128,Jn(a,!1),e=u.updateQueue,t.updateQueue=e,pi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)uf(l,e),l=l.sibling;return Vn(t,ct.current&1|2),ve&&xl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&wt()>Ci&&(t.flags|=128,n=!0,Jn(a,!1),t.lanes=4194304)}else{if(!n)if(e=ei(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,pi(t,e),Jn(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!u.alternate&&!ve)return qe(t),null}else 2*wt()-a.renderingStartTime>Ci&&l!==536870912&&(t.flags|=128,n=!0,Jn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}if(a.tail!==null){e=a.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=wt(),e.sibling=null,u=ct.current,u=n?u&1|2:u&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!l||ve?Vn(t,u):(l=u,ze(it,t),ze(ct,l),dt===null&&(dt=t)),ve&&xl(t,a.treeForkCount),e}return qe(t),null;case 22:case 23:return At(t),$c(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&pi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&$e(pa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),bl(Qe),qe(t),null;case 25:return null;case 30:return t.flags|=33554432,qe(t),null}throw Error(r(156,t.tag))}function $p(e,t){switch(Hc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bl(Qe),_a(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bu(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(r(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wc(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return _a(),null;case 10:return bl(t.type),null;case 22:case 23:return At(t),$c(),e!==null&&$e(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return bl(Qe),null;case 25:return null;default:return null}}function Rd(e,t){switch(Hc(t),t.tag){case 3:bl(Qe),_a();break;case 26:case 27:case 5:bu(t);break;case 4:_a();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:Wc(t);break;case 10:bl(t.type);break;case 22:case 23:At(t),$c(),e!==null&&$e(pa);break;case 24:bl(Qe)}}function Kn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(d){Me(t,t.return,d)}}function kl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var i=a.inst,d=i.destroy;if(d!==void 0){i.destroy=void 0,n=t;var h=l,S=d;try{S()}catch(w){Me(n,h,w)}}}a=a.next}while(a!==u)}}catch(w){Me(t,t.return,w)}}function Ud(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{wf(t,l)}catch(a){Me(e,e.return,a)}}}function Hd(e,t,l){l.props=ba(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function ll(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var n=e.stateNode,u=pl(e.memoizedProps,n);(n.ref===null||n.ref.name!==u)&&(n.ref=k0(u)),a=n.ref;break;case 7:if(e.stateNode===null){var i=new Rt(e);x(e.child,!1,Lv,i,void 0,void 0),e.stateNode=i}a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(d){Me(e,t,d)}}function st(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Me(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Me(e,t,n)}else l.current=null}function vi(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var l=0;l<t.length;l++)F0(e.stateNode,t[l])}function qd(e){for(var t=e.return;t!==null&&(As(t)&&F0(e.stateNode,t.stateNode),!js(t));)t=t.return}function Fn(e){for(var t=e.return;t!==null&&(As(t)&&Gv(e.stateNode,t.stateNode),!js(t));)t=t.return}function js(e){return e.tag===5||e.tag===3||e.tag===27}function As(e){return e&&e.tag===7&&e.stateNode!==null}function zs(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Me(e,e.return,n)}}function Os(e,t,l){try{var a=e.stateNode;Nv(a,e.type,l,t),a[xt]=t}catch(n){Me(e,e.return,n)}}function Bd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$l(e.type)||e.tag===4}function Ms(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bd(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&&$l(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 Ds(e,t,l,a){var n=e.tag;if(n===5||n===6)n=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(n),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=It)),vi(e,a),Ce=!0;else if(n!==4&&(n===27&&(vi(e,a),a=null,$l(e.type)&&(l=e.stateNode,t=null)),e=e.child,e!==null))for(Ds(e,t,l,a),e=e.sibling;e!==null;)Ds(e,t,l,a),e=e.sibling}function yi(e,t,l,a){var n=e.tag;if(n===5||n===6)n=e.stateNode,t?l.insertBefore(n,t):l.appendChild(n),vi(e,a),Ce=!0;else if(n!==4&&(n===27&&(vi(e,a),a=null,$l(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(yi(e,t,l,a),e=e.sibling;e!==null;)yi(e,t,l,a),e=e.sibling}function Yd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);rt(t,a,l),t[nt]=e,t[xt]=l}catch(u){Me(e,e.return,u)}}var xi=!1,zt=null;function Ld(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(xi=!0)}var al=null;function Gd(){var e=al;return al=null,e}var bt=0;function $a(e,t,l,a,n){return bt=0,Vd(e.child,t,l,a,n)}function Vd(e,t,l,a,n){for(var u=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(a!==null){var d=vr(i);a.push(d),d.view&&(u=!0)}else u||vr(i).view&&(u=!0);xi=!0,G0(i,bt===0?t:t+"_"+bt,l),bt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&n||Vd(e.child,t,l,a,n)&&(u=!0));e=e.sibling}return u}function nl(e,t){for(;e!==null;)e.tag===5?V0(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||nl(e.child,t)),e=e.sibling}function gi(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(gi(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(r(544));var l=t.name;t=vl(t.default,t.share),t!=="none"&&($a(e,l,t,null,!1)||nl(e.child,!1))}e=e.sibling}}function Rs(e,t){if(e.tag===30){var l=e.stateNode,a=e.memoizedProps,n=pl(a,l),u=vl(a.default,l.paired?a.share:a.enter);u!=="none"?$a(e,n,u,null,!1)?(gi(e),l.paired||t||nn(e,a.onEnter)):nl(e.child,!1):gi(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Rs(e,t),e=e.sibling;else gi(e)}function Us(e){if(zt!==null&&zt.size!==0){var t=zt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,a=l.name;if(a!=null&&a!=="auto"){var n=t.get(a);if(n!==void 0){var u=vl(l.default,l.share);if(u!=="none"&&($a(e,a,u,null,!1)?(u=e.stateNode,n.paired=u,u.paired=n,nn(e,l.onShare)):nl(e.child,!1)),t.delete(a),t.size===0)break}}}Us(e)}e=e.sibling}}}function Hs(e){if(e.tag===30){var t=e.memoizedProps,l=pl(t,e.stateNode),a=zt!==null?zt.get(l):void 0,n=vl(t.default,a!==void 0?t.share:t.exit);n!=="none"&&($a(e,l,n,null,!1)?a!==void 0?(n=e.stateNode,a.paired=n,n.paired=a,zt.delete(l),nn(e,t.onShare)):nn(e,t.onExit):nl(e.child,!1)),zt!==null&&Us(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Hs(e),e=e.sibling;else zt!==null&&Us(e)}function kd(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,l=pl(t,e.stateNode);t=vl(t.default,t.update),e.flags&=-5,t!=="none"&&$a(e,l,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&kd(e);e=e.sibling}}function qs(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,nl(e.child,!1))}qs(e)}e=e.sibling}}function bi(e){if(e.tag===30)e.stateNode.paired=null,nl(e.child,!1),qs(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)bi(e),e=e.sibling;else qs(e)}function Xd(e){for(e=e.child;e!==null;)e.tag===30?nl(e.child,!1):(e.subtreeFlags&33554432)!==0&&Xd(e),e=e.sibling}function Bs(e,t,l,a,n,u,i){for(var d=!1;t!==null;){if(t.tag===5){var h=t.stateNode;if(u!==null&&bt<u.length){var S=u[bt],w=vr(h);(S.view||w.view)&&(d=!0);var A;if(A=(e.flags&4)===0)if(w.clip)A=!0;else{A=S.rect;var g=w.rect;A=A.y!==g.y||A.x!==g.x||A.height!==g.height||A.width!==g.width}A&&(e.flags|=4),w.abs?w=!S.abs:(S=S.rect,w=w.rect,w=S.height!==w.height||S.width!==w.width),w&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&G0(h,bt===0?l:l+"_"+bt,n),d&&(e.flags&4)!==0||(al===null&&(al=[]),al.push(h,bt===0?a:a+"_"+bt,t.memoizedProps)),bt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i?e.flags|=t.flags&32:Bs(e,t.child,l,a,n,u,i)&&(d=!0));t=t.sibling}return d}function Qd(e,t){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,a=e.stateNode,n=pl(l,a),u=vl(l.default,l.update),i;i=e.memoizedState,e.memoizedState=null,a=e;var d=e.child;bt=0,n=Bs(a,d,n,n,u,i,!1),(e.flags&4)!==0&&n&&nn(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Qd(e);e=e.sibling}}var lt=!1,Ae=!1,ul=!1,Ys=!1,Zd=typeof WeakSet=="function"?WeakSet:Set,at=null,il=!1,$n=!1,Si=!1,Ls=!1;function Pp(e,t,l){if(e=e.containerInfo,fr=pn,e=Fo(e),_c(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var u=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var d=0,h=-1,S=-1,w=0,A=0,g=e,T=null;t:for(;;){for(var B;g!==a||u!==0&&g.nodeType!==3||(h=d+u),g!==i||n!==0&&g.nodeType!==3||(S=d+n),g.nodeType===3&&(d+=g.nodeValue.length),(B=g.firstChild)!==null;)T=g,g=B;for(;;){if(g===e)break t;if(T===a&&++w===u&&(h=d),T===i&&++A===n&&(S=d),(B=g.nextSibling)!==null)break;g=T,T=g.parentNode}g=B}a=h===-1||S===-1?null:{start:h,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(dr={focusedElem:e,selectionRange:a},pn=!1,l=(l&335544064)===l,at=t,t=l?9270:1024;at!==null;){if(e=at,l&&(a=e.deletions,a!==null))for(u=0;u<a.length;u++)l&&Hs(a[u]);if(e.alternate===null&&(e.flags&2)!==0)l&&Ld(e),Ni(l);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&l&&Hs(a),Ni(l);continue}else if(a!==null&&a.memoizedState!==null){l&&Ld(e),Ni(l);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,at=a):(l&&kd(e),Ni(l))}}zt=null}function Ni(e){for(;at!==null;){var t=at,l=e,a=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((n&1024)!==0&&a!==null){l=void 0,n=a.memoizedProps,a=a.memoizedState;var u=t.stateNode;try{var i=ba(t.type,n);l=u.getSnapshotBeforeUpdate(i,a),u.__reactInternalSnapshotBeforeUpdate=l}catch(d){Me(t,t.return,d)}}break;case 3:if((n&1024)!==0){if(a=t.stateNode.containerInfo,l=a.nodeType,l===9)gr(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":gr(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&a!==null&&(l=pl(a.memoizedProps,a.stateNode),n=t.memoizedProps,n=vl(n.default,n.update),n!=="none"&&$a(a,l,n,a.memoizedState=[],!0));break;default:if((n&1024)!==0)throw Error(r(163))}if(a=t.sibling,a!==null){a.return=t.return,at=a;break}at=t.return}}function Jd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:cl(e,l),a&4&&Kn(5,l);break;case 1:if(cl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){Me(l,l.return,i)}else{var n=ba(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Me(l,l.return,i)}}a&64&&Ud(l),a&512&&ll(l,l.return);break;case 3:if(cl(e,l),a&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{wf(e,t)}catch(i){Me(l,l.return,i)}}break;case 27:t===null&&a&4&&Yd(l);case 26:case 5:cl(e,l),t===null&&a&4&&zs(l),a&512&&ll(l,l.return);break;case 12:cl(e,l);break;case 31:cl(e,l),a&4&&Pd(e,l);break;case 13:cl(e,l),a&4&&Wd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=rv.bind(null,l),Xv(e,l))));break;case 22:if(a=l.memoizedState!==null||lt,!a){var u=t!==null&&t.memoizedState!==null||Ae;t=lt,n=Ae,lt=a,(Ae=u)&&!n?(a=2,(l.subtreeFlags&8772)!==0&&(a|=1),Ft(e,l,a)):cl(e,l),lt=t,Ae=n}break;case 30:cl(e,l),a&512&&ll(l,l.return);break;case 7:a&512&&ll(l,l.return);default:cl(e,l)}}function Gs(e,t){for(e=e.child;e!==null;)Kd(e,t),e=e.sibling}function Kd(e,t){switch(e.tag){case 5:case 26:try{var l=e.stateNode;if(t){var a=l.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var n=e.stateNode,u=e.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null;n.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(h){Me(e,e.return,h)}Vs(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,Ce=!0}catch(h){Me(e,e.return,h)}break;case 18:try{var d=e.stateNode;t?L0(d,!0):L0(e.stateNode,!1)}catch(h){Me(e,e.return,h)}break;case 22:case 23:e.memoizedState===null&&Gs(e,t);break;default:Gs(e,t)}}function Vs(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,a=t;switch(l.tag){case 4:Kd(l,a);break e;case 22:l.memoizedState===null&&Vs(l,a);break e;default:Vs(l,a)}}e=e.sibling}}function Fd(e){var t=e.alternate;t!==null&&(e.alternate=null,Fd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Be=null,St=!1;function Jt(e,t,l){for(l=l.child;l!==null;)$d(e,t,l),l=l.sibling}function $d(e,t,l){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(gn,l)}catch{}switch(l.tag){case 26:Ae||st(l,t),Jt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Ae&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ae||st(l,t),Fn(l);var a=Be,n=St;$l(l.type)&&(Be=l.stateNode,St=!1),Jt(e,t,l),eh(l.stateNode,l.type,l.memoizedProps),Be=a,St=n;break;case 5:Ae||st(l,t),Fn(l);case 6:if(l.tag===6&&Fn(l),a=Be,n=St,Be=null,Jt(e,t,l),Be=a,St=n,Be!==null)if(St)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(l.stateNode),Ce=!0}catch(u){Me(l,t,u)}else try{Be.removeChild(l.stateNode),Ce=!0}catch(u){Me(l,t,u)}break;case 18:Be!==null&&(St?(e=Be,Y0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),vn(e)):Y0(Be,l.stateNode));break;case 4:a=Be,n=St,Be=l.stateNode.containerInfo,St=!0,Jt(e,t,l),Be=a,St=n;break;case 0:case 11:case 14:case 15:kl(2,l,t),Ae||kl(4,l,t),Jt(e,t,l);break;case 1:Ae||(st(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Hd(l,t,a)),Jt(e,t,l);break;case 21:Jt(e,t,l);break;case 22:Ae=(a=Ae)||l.memoizedState!==null,Jt(e,t,l),Ae=a;break;case 30:st(l,t),Jt(e,t,l);break;case 7:Ae||st(l,t),Jt(e,t,l);break;default:Jt(e,t,l)}}function Pd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vn(e)}catch(l){Me(t,t.return,l)}}}function Wd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vn(e)}catch(l){Me(t,t.return,l)}}function Wp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zd),t;default:throw Error(r(435,e.tag))}}function Ti(e,t){var l=Wp(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=ov.bind(null,e,a);a.then(n,n)}})}function vt(e,t,l){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var u=a[n],i=e,d=t,h=d;e:for(;h!==null;){switch(h.tag){case 27:if($l(h.type)){Be=h.stateNode,St=!1;break e}break;case 5:Be=h.stateNode,St=!1;break e;case 3:case 4:Be=h.stateNode.containerInfo,St=!0;break e}h=h.return}if(Be===null)throw Error(r(160));$d(i,d,u),Be=null,St=!1,i=u.alternate,i!==null&&(i.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Id(t,e,l),t=t.sibling}var Kt=null;function Id(e,t,l){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(n&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var u=0;u<a.length;u++){var i=a[u];i.ref.impl=i.nextImpl}vt(t,e,l),yt(e),n&4&&(kl(3,e,e.return),Kn(3,e),kl(5,e,e.return));break;case 1:vt(t,e,l),yt(e),n&512&&(Ae||a===null||st(a,a.return)),n&64&&lt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?t:l.concat(t))));break;case 26:if(u=Kt,vt(t,e,l),yt(e),n&512&&(Ae||a===null||st(a,a.return)),n&4)if(n=a!==null?a.memoizedState:null,l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null)if(lt)e.stateNode=H0(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,l=e.memoizedProps,n=u.ownerDocument||u;t:switch(t){case"title":a=n.getElementsByTagName("title")[0],(!a||a[Nn]||a[nt]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=n.createElement(t),n.head.insertBefore(a,n.querySelector("head > title"))),rt(a,t,l),a[nt]=e,et(a),t=a;break e;case"link":if(u=ih("link","href",n).get(t+(l.href||""))){for(i=0;i<u.length;i++)if(a=u[i],a.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&a.getAttribute("rel")===(l.rel==null?null:l.rel)&&a.getAttribute("title")===(l.title==null?null:l.title)&&a.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(i,1);break t}}a=n.createElement(t),rt(a,t,l),n.head.appendChild(a);break;case"meta":if(u=ih("meta","content",n).get(t+(l.content||""))){for(i=0;i<u.length;i++)if(a=u[i],a.getAttribute("content")===(l.content==null?null:""+l.content)&&a.getAttribute("name")===(l.name==null?null:l.name)&&a.getAttribute("property")===(l.property==null?null:l.property)&&a.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&a.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(i,1);break t}}a=n.createElement(t),rt(a,t,l),n.head.appendChild(a);break;default:throw Error(r(468,t))}a[nt]=e,et(a),t=a}e.stateNode=t}else lt||_r(u,e.type,e.stateNode);else e.stateNode=uh(u,l,e.memoizedProps);else n!==l?(n===null?(t=a.stateNode,t===null||Ae||t.parentNode.removeChild(t)):n.count--,l===null?lt||_r(u,e.type,e.stateNode):uh(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Os(e,e.memoizedProps,a.memoizedProps);break;case 27:vt(t,e,l),yt(e),n&512&&(Ae||a===null||st(a,a.return)),a!==null&&n&4&&Os(e,e.memoizedProps,a.memoizedProps);break;case 5:if(u=ul,ul=!1,vt(t,e,l),ul=u,yt(e),n&512&&(Ae||a===null||st(a,a.return)),e.flags&32){t=e.stateNode;try{Ma(t,""),Ce=!0}catch(w){Me(e,e.return,w)}}n&4&&e.stateNode!=null&&(t=e.memoizedProps,Os(e,t,a!==null?a.memoizedProps:t)),n&1024&&(Ys=!0);break;case 6:if(vt(t,e,l),yt(e),n&4){if(e.stateNode===null)throw Error(r(162));t=e.memoizedProps,l=e.stateNode;try{l.nodeValue=t,Ce=!0}catch(w){Me(e,e.return,w)}}break;case 3:if(Ce=!1,Bi=null,u=Kt,Kt=uu(t.containerInfo),vt(t,e,l),Kt=u,yt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{vn(t.containerInfo)}catch(w){Me(e,e.return,w)}Ys&&(Ys=!1,e0(e)),Ce=!1;break;case 4:n=ul,ul=lt,a=go(),u=Kt,Kt=uu(e.stateNode.containerInfo),vt(t,e,l),yt(e),Kt=u,Ce&&$n&&(Si=!0),Ce=a,ul=n;break;case 12:vt(t,e,l),yt(e);break;case 31:vt(t,e,l),yt(e),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ti(e,t)));break;case 13:vt(t,e,l),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(_i=wt()),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ti(e,t)));break;case 22:u=e.memoizedState!==null,i=a!==null&&a.memoizedState!==null;var d=lt,h=Ae,S=ul;lt=d||u,ul=S||u,Ae=h||i,vt(t,e,l),Ae=h,ul=S,lt=d,yt(e),n&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||a===null||i||lt||Ae||(t=i||Ae,l=lt,a=Ae,lt=u||lt,Ae=t,Xl(e,2),lt=l,Ae=a),!u&&ul||Gs(e,u)),n&4&&(t=e.updateQueue,t!==null&&(l=t.retryQueue,l!==null&&(t.retryQueue=null,Ti(e,l))));break;case 19:vt(t,e,l),yt(e),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ti(e,t)));break;case 30:n&512&&(Ae||a===null||st(a,a.return)),n=go(),u=$n,i=(l&335544064)===l,d=e.memoizedProps,$n=i&&vl(d.default,d.update)!=="none",vt(t,e,l),yt(e),i&&a!==null&&Ce&&(e.flags|=4),$n=u,Ce=n;break;case 21:break;case 7:n&512&&(Ae||a===null||st(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:vt(t,e,l),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Bd(a)){l=a;break}a=a.return}a=null;for(var n=e.return;n!==null;){if(As(n)){var u=n.stateNode;a===null?a=[u]:a.push(u)}if(js(n))break;n=n.return}var i=a;if(l==null)throw Error(r(160));switch(l.tag){case 27:var d=l.stateNode,h=Ms(e);yi(e,h,d,i);break;case 5:var S=l.stateNode;l.flags&32&&(Ma(S,""),l.flags&=-33);var w=Ms(e);yi(e,w,S,i);break;case 3:case 4:var A=l.stateNode.containerInfo,g=Ms(e);Ds(e,g,A,i);break;default:throw Error(r(161))}}catch(T){Me(e,e.return,T)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function e0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;e0(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,pn=!0,t.reset(),pn=!1),e=e.sibling}}function Pa(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)t0(t,e),t=t.sibling;else Qd(t)}function t0(e,t){var l=e.alternate;if(l===null)Rs(e,!1);else switch(e.tag){case 3:if(Ls=il=!1,Gd(),Pa(t,e),!il&&!Si){if(e=al,e!==null)for(var a=0;a<e.length;a+=3){l=e[a];var n=e[a+1];V0(l,e[a+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+n+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Ls=!0}al=null;break;case 5:Pa(t,e);break;case 4:a=il,il=!1,Pa(t,e),il&&(Si=!0),il=a;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?Rs(e,!1):Pa(t,e));break;case 30:a=il,n=Gd(),il=!1,Pa(t,e),il&&(e.flags|=4);var u=e.memoizedProps,i=e.stateNode;t=pl(u,i),i=pl(l.memoizedProps,i);var d=vl(u.default,u.update);d==="none"?t=!1:(u=l.memoizedState,l.memoizedState=null,l=e.child,bt=0,t=Bs(e,l,t,i,d,u,!0),bt!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(nn(e,e.memoizedProps.onUpdate),al=n):n!==null&&(n.push.apply(n,al),al=n),il=(e.flags&32)!==0?!0:a;break;default:Pa(t,e)}}function cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Jd(e,t.alternate,t),t=t.sibling}function Xl(e,t){for(e=e.child;e!==null;){var l=e,a=t;switch(l.tag){case 0:case 11:case 14:case 15:kl(4,l,l.return),Xl(l,a);break;case 1:st(l,l.return);var n=l.stateNode;typeof n.componentWillUnmount=="function"&&Hd(l,l.return,n),Xl(l,a);break;case 27:(a&2)!==0&&eh(l.stateNode,l.type,l.memoizedProps);case 5:st(l,l.return),l.tag!==5&&l.tag!==27||Fn(l),Xl(l,a);break;case 6:Fn(l);break;case 26:st(l,l.return),n=l.stateNode,l.memoizedState!==null||n===null||Ae||n.parentNode.removeChild(n),Xl(l,a);break;case 22:l.memoizedState===null&&Xl(l,a);break;case 30:st(l,l.return),Xl(l,a);break;case 7:st(l,l.return);default:Xl(l,a)}e=e.sibling}}function Ft(e,t,l){for(l=(t.subtreeFlags&8772)!==0?l:l&-2,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,i=u.flags,d=(l&1)!==0;switch(u.tag){case 0:case 11:case 15:Ft(n,u,l),Kn(4,u);break;case 1:if(Ft(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(w){Me(a,a.return,w)}if(a=u,n=a.updateQueue,n!==null){var h=a.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)Tf(S[n],h)}catch(w){Me(a,a.return,w)}}d&&i&64&&Ud(u),ll(u,u.return);break;case 27:(l&2)!==0&&Yd(u);case 5:u.tag!==5&&u.tag!==27||qd(u),Ft(n,u,l),d&&a===null&&i&4&&zs(u),ll(u,u.return);break;case 6:qd(u);break;case 26:h=u.stateNode,u.memoizedState!==null||h===null||lt||_r(uu(h.ownerDocument),u.type,h),Ft(n,u,l),d&&a===null&&i&4&&zs(u),ll(u,u.return);break;case 12:Ft(n,u,l);break;case 31:Ft(n,u,l),d&&i&4&&Pd(n,u);break;case 13:Ft(n,u,l),d&&i&4&&Wd(n,u);break;case 22:u.memoizedState===null&&Ft(n,u,l),ll(u,u.return);break;case 30:Ft(n,u,l),ll(u,u.return);break;case 7:ll(u,u.return);default:Ft(n,u,l)}t=t.sibling}}function ks(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&&Un(l))}function Xs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Un(e))}function Gt(e,t,l,a){var n=(l&335544064)===l;if(t.subtreeFlags&(n?10262:10256))for(t=t.child;t!==null;)l0(e,t,l,a),t=t.sibling;else n&&Xd(t)}function l0(e,t,l,a){var n=(l&335544064)===l;n&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&bi(t);var u=t.flags;switch(t.tag){case 0:case 11:case 15:Gt(e,t,l,a),u&2048&&Kn(9,t);break;case 1:Gt(e,t,l,a);break;case 3:Gt(e,t,l,a),n&&Ls&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),u&2048&&(u=null,t.alternate!==null&&(u=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==u&&(t.refCount++,u!=null&&Un(u)));break;case 12:if(u&2048){Gt(e,t,l,a),u=t.stateNode;try{var i=t.memoizedProps,d=i.id,h=i.onPostCommit;typeof h=="function"&&h(d,t.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(S){Me(t,t.return,S)}}else Gt(e,t,l,a);break;case 31:Gt(e,t,l,a);break;case 13:Gt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,d=t.alternate,t.memoizedState!==null?(n&&d!==null&&d.memoizedState===null&&bi(d),i._visibility&2?Gt(e,t,l,a):Pn(e,t)):(n&&d!==null&&d.memoizedState!==null&&bi(t),i._visibility&2?Gt(e,t,l,a):(i._visibility|=2,Wa(e,t,l,a,(t.subtreeFlags&10256)!==0||!1))),u&2048&&ks(d,t);break;case 24:Gt(e,t,l,a),u&2048&&Xs(t.alternate,t);break;case 30:n&&(u=t.alternate,u!==null&&(nl(u.child,!0),nl(t.child,!0))),Gt(e,t,l,a);break;default:Gt(e,t,l,a)}}function Wa(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,d=l,h=a,S=i.flags;switch(i.tag){case 0:case 11:case 15:Wa(u,i,d,h,n),Kn(8,i);break;case 23:break;case 22:var w=i.stateNode;i.memoizedState!==null?w._visibility&2?Wa(u,i,d,h,n):Pn(u,i):(w._visibility|=2,Wa(u,i,d,h,n)),n&&S&2048&&ks(i.alternate,i);break;case 24:Wa(u,i,d,h,n),n&&S&2048&&Xs(i.alternate,i);break;default:Wa(u,i,d,h,n)}t=t.sibling}}function Pn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Pn(l,a),n&2048&&ks(a.alternate,a);break;case 24:Pn(l,a),n&2048&&Xs(a.alternate,a);break;default:Pn(l,a)}t=t.sibling}}var Sa=8192;function Na(e,t,l){if(e.subtreeFlags&Sa)for(e=e.child;e!==null;)a0(e,t,l),e=e.sibling}function a0(e,t,l){switch(e.tag){case 26:Na(e,t,l),e.flags&Sa&&(e.memoizedState!==null?ny(l,Kt,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&oh(l,e)));break;case 5:Na(e,t,l),e.flags&Sa&&(e=e.stateNode,(t&335544128)===t&&oh(l,e));break;case 3:case 4:var a=Kt;Kt=uu(e.stateNode.containerInfo),Na(e,t,l),Kt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Sa,Sa=16777216,Na(e,t,l),Sa=a):Na(e,t,l));break;case 30:if((e.flags&Sa)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var n=e.stateNode;n.paired=null,zt===null&&(zt=new Map),zt.set(a,n)}Na(e,t,l);break;default:Na(e,t,l)}}function n0(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 Wn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];at=a,i0(a,e)}n0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)u0(e),e=e.sibling}function u0(e){switch(e.tag){case 0:case 11:case 15:Wn(e),e.flags&2048&&kl(9,e,e.return);break;case 3:Wn(e);break;case 12:Wn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wi(e)):Wn(e);break;default:Wn(e)}}function wi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];at=a,i0(a,e)}n0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:kl(8,t,t.return),wi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,wi(t));break;default:wi(t)}e=e.sibling}}function i0(e,t){for(;at!==null;){var l=at;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 a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Un(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,at=a;else e:for(l=e;at!==null;){a=at;var n=a.sibling,u=a.return;if(Fd(a),a===l){at=null;break e}if(n!==null){n.return=u,at=n;break e}at=u}}}var Ip={getCacheForType:function(e){var t=ut(Qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ut(Qe).controller.signal}},ev=typeof WeakMap=="function"?WeakMap:Map,je=0,Ue=null,be=null,Te=0,Oe=0,Ot=null,Ql=!1,Ia=!1,Qs=!1,El=0,Ge=0,Zl=0,Ta=0,Ei=0,Mt=0,en=0,In=null,Nt=null,Zs=!1,_i=0,c0=0,Ci=1/0,ji=null,Jl=null,Ye=0,$t=null,wa=null,sl=0,Js=0,Ks=null,s0=null,tn=null,ln=null,an=null,eu=0,Ai=null;function Dt(){return(je&2)!==0&&Te!==0?Te&-Te:Y.T!==null?nr():ro()}function r0(){if(Mt===0)if((Te&536870912)===0||ve){var e=Tu;Tu<<=1,(Tu&3932160)===0&&(Tu=262144),Mt=e}else Mt=536870912;return e=it.current,e!==null&&(e.flags|=32),Mt}function nn(e,t){if(t!=null){var l=e.stateNode,a=l.ref;a===null&&(a=l.ref=k0(pl(e.memoizedProps,l))),ln===null&&(ln=[]),ln.push(t.bind(null,a))}}function Tt(e,t,l){(e===Ue&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(un(e,0),Kl(e,Te,Mt,!1)),Sn(e,l),((je&2)===0||e!==Ue)&&(e===Ue&&((je&2)===0&&(Ta|=l),Ge===4&&Kl(e,Te,Mt,!1)),rl(e))}function o0(e,t,l){if((je&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||bn(e,t),n=a?av(e,t):$s(e,t,!0),u=a;do{if(n===0){Ia&&!a&&Kl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!tv(l)){n=$s(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var d=e;n=In;var h=d.current.memoizedState.isDehydrated;if(h&&(un(d,i).flags|=256),i=$s(d,i,!1),i!==2&&i!==6){if(Qs&&!h){d.errorRecoveryDisabledLanes|=u,Ta|=u,n=4;break e}u=Nt,Nt=n,u!==null&&(Nt===null?Nt=u:Nt.push.apply(Nt,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){un(e,0),Kl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Kl(a,t,Mt,!Ql);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=_i+300-wt(),10<n)){if(Kl(a,t,Mt,!Ql),Eu(a,0,!0)!==0)break e;sl=t,a.timeoutHandle=pr(f0.bind(null,a,l,Nt,ji,Zs,t,Mt,Ta,en,Ql,u,"Throttled",-0,0),n);break e}f0(a,l,Nt,ji,Zs,t,Mt,Ta,en,Ql,u,null,-0,0)}}break}while(!0);rl(e)}function f0(e,t,l,a,n,u,i,d,h,S,w,A,g,T){e.timeoutHandle=-1;var B=t.subtreeFlags,Q=(u&335544064)===u;if(A=null,(Q||B&8192||(B&16785408)===16785408)&&(A={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:It},zt=null,a0(t,u,A),Q&&(B=A,Q=e.containerInfo,Q=(Q.nodeType===9?Q:Q.ownerDocument).__reactViewTransition,Q!=null&&(B.count++,B.waitingForViewTransition=!0,B=su.bind(B),Q.finished.then(B,B))),B=(u&62914560)===u?_i-wt():(u&4194048)===u?c0-wt():0,B=uy(A,B),B!==null)){sl=u,e.cancelPendingCommit=B(g0.bind(null,e,t,u,l,a,n,i,d,h,S,w,A,null,g,T)),Kl(e,u,i,!S);return}g0(e,t,u,l,a,n,i,d,h,S,w,A)}function tv(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 a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!jt(u(),n))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 Kl(e,t,l,a){t=no(e,t),t&=~Ei,t&=~Ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-_t(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&io(e,l,t)}function zi(){return(je&6)===0?(tu(0),!1):!0}function Fs(){if(be!==null){if(Oe===0)var e=be.return;else e=be,gl=fa=null,as(e),Qa=null,Bn=0,e=be;for(;e!==null;)Rd(e.alternate,e),e=e.return;be=null}}function un(e,t){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,Ev(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),sl=0,Fs(),Ue=e,be=l=yl(e.current,null),Te=t,Oe=0,Ot=null,Ql=!1,Ia=bn(e,t),Qs=!1,en=Mt=Ei=Ta=Zl=Ge=0,Nt=In=null,Zs=!1,El=no(e,t),Bu(),l}function d0(e,t){de=null,Y.H=ri,t===Xa||t===Fu?(t=gf(),Oe=3):t===Xc?(t=gf(),Oe=4):Oe=t===xs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,be===null&&(Ge=1,oi(e,qt(t,e.current)))}function h0(){var e=it.current;return e===null?!0:(Te&4194048)===Te?dt===null:(Te&62914560)===Te||(Te&536870912)!==0?e===dt:!1}function m0(){var e=Y.H;return Y.H=ri,e===null?ri:e}function p0(){var e=Y.A;return Y.A=Ip,e}function Oi(){Ge=4,Ql||(Te&4194048)!==Te&&it.current!==null||(Ia=!0),(Zl&134217727)===0&&(Ta&134217727)===0||Ue===null||Kl(Ue,Te,Mt,!1)}function $s(e,t,l){var a=je;je|=2;var n=m0(),u=p0();(Ue!==e||Te!==t)&&(ji=null,un(e,t)),t=!1;var i=Ge;e:do try{if(Oe!==0&&be!==null){var d=be,h=Ot;switch(Oe){case 8:Fs(),i=6;break e;case 3:case 2:case 9:case 6:it.current===null&&(t=!0);var S=Oe;if(Oe=0,Ot=null,cn(e,d,h,S),l&&Ia){i=0;break e}break;default:S=Oe,Oe=0,Ot=null,cn(e,d,h,S)}}lv(),i=Ge;break}catch(w){d0(e,w)}while(!0);return t&&e.shellSuspendCounter++,gl=fa=null,je=a,Y.H=n,Y.A=u,be===null&&(Ue=null,Te=0,Bu()),i}function lv(){for(;be!==null;)v0(be)}function av(e,t){var l=je;je|=2;var a=m0(),n=p0();Ue!==e||Te!==t?(ji=null,Ci=wt()+500,un(e,t)):Ia=bn(e,t);e:do try{if(Oe!==0&&be!==null){t=be;var u=Ot;t:switch(Oe){case 1:Oe=0,Ot=null,cn(e,t,u,1);break;case 2:case 9:if(yf(u)){Oe=0,Ot=null,y0(t);break}t=function(){Oe!==2&&Oe!==9||Ue!==e||(Oe=7),rl(e)},u.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:yf(u)?(Oe=0,Ot=null,y0(t)):(Oe=0,Ot=null,cn(e,t,u,7));break;case 5:var i=null;switch(be.tag){case 26:i=be.memoizedState;case 5:case 27:var d=be;if(i?sh(i):d.stateNode.complete){Oe=0,Ot=null;var h=d.sibling;if(h!==null)be=h;else{var S=d.return;S!==null?(be=S,Mi(S)):be=null}break t}}Oe=0,Ot=null,cn(e,t,u,5);break;case 6:Oe=0,Ot=null,cn(e,t,u,6);break;case 8:Fs(),Ge=6;break e;default:throw Error(r(462))}}nv();break}catch(w){d0(e,w)}while(!0);return gl=fa=null,Y.H=a,Y.A=n,je=l,be!==null?0:(Ue=null,Te=0,Bu(),Ge)}function nv(){for(;be!==null&&!Sm();)v0(be)}function v0(e){var t=Md(e.alternate,e,El);e.memoizedProps=e.pendingProps,t===null?Mi(e):be=t}function y0(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ed(l,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Ed(l,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:as(t);var a=t;a===tt&&(ve?(Xu(a),a.tag===5&&a.stateNode!=null&&(He=a.stateNode)):(Xu(a),ve=!0));default:Rd(l,t),t=be=uf(t,El),t=Md(l,t,El)}e.memoizedProps=e.pendingProps,t===null?Mi(e):be=t}function cn(e,t,l,a){gl=fa=null,as(t),Qa=null,Bn=0;var n=t.return;try{if(Qp(e,n,t,l,Te)){Ge=1,oi(e,qt(l,e.current)),be=null;return}}catch(u){if(n!==null)throw be=n,u;Ge=1,oi(e,qt(l,e.current)),be=null;return}t.flags&32768?(ve||a===1?e=!0:Ia||(Te&536870912)!==0?e=!1:(Ql=e=!0,(a===2||a===9||a===3||a===6)&&(a=it.current,a!==null&&a.tag===13&&(a.flags|=16384))),x0(t,e)):Mi(t)}function Mi(e){var t=e;do{if((t.flags&32768)!==0){x0(t,Ql);return}e=t.return;var l=Fp(t.alternate,t,El);if(l!==null){be=l;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ge===0&&(Ge=5)}function x0(e,t){do{var l=$p(e.alternate,e);if(l!==null){l.flags&=32767,be=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=l}while(e!==null);Ge=6,be=null}function g0(e,t,l,a,n,u,i,d,h,S,w,A){e.cancelPendingCommit=null;do Di();while(Ye!==0);if((je&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));e===Ue&&(be=Ue=null,Te=0),wa=t,$t=e,sl=l,Ks=n,s0=a,uv(e,t,l,i,d,h,A)}}function uv(e,t,l,a,n,u,i){var d=t.lanes|t.childLanes;if(Js=d,d|=Oc,Om(e,l,d,a,n,u),ln=null,(l&335544064)===l?(an=Dp(e),a=10262):(an=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,fv(Su,function(){return er(),null})):(e.callbackNode=null,e.callbackPriority=0),xi=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=Y.T,Y.T=null,n=O.p,O.p=2,u=je,je|=4;try{Pp(e,t,l)}finally{je=u,O.p=n,Y.T=a}}Ye=1,xi?tn=Ov(i,e.containerInfo,an,Ps,Ws,cv,Is,er,iv):(Ps(),Ws(),Is())}function iv(e){if(Ye!==0){var t=$t.onRecoverableError;t(e,{componentStack:null})}}function cv(){Ye===3&&(Ye=0,t0(wa,$t),Ye=4)}function Ps(){if(Ye===1){Ye=0;var e=$t,t=wa,l=sl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=Y.T,Y.T=null;var n=O.p;O.p=2;var u=je;je|=4;try{$n=Si=!1,Id(t,e,l),l=dr;var i=Fo(e.containerInfo),d=l.focusedElem,h=l.selectionRange;if(i!==d&&d&&d.ownerDocument&&Ko(d.ownerDocument.documentElement,d)){if(h!==null&&_c(d)){var S=h.start,w=h.end;if(w===void 0&&(w=S),"selectionStart"in d)d.selectionStart=S,d.selectionEnd=Math.min(w,d.value.length);else{var A=d.ownerDocument||document,g=A&&A.defaultView||window;if(g.getSelection){var T=g.getSelection(),B=d.textContent.length,Q=Math.min(h.start,B),he=h.end===void 0?Q:Math.min(h.end,B);!T.extend&&Q>he&&(i=he,he=Q,Q=i);var b=Jo(d,Q),v=Jo(d,he);if(b&&v&&(T.rangeCount!==1||T.anchorNode!==b.node||T.anchorOffset!==b.offset||T.focusNode!==v.node||T.focusOffset!==v.offset)){var N=A.createRange();N.setStart(b.node,b.offset),T.removeAllRanges(),Q>he?(T.addRange(N),T.extend(v.node,v.offset)):(N.setEnd(v.node,v.offset),T.addRange(N))}}}}for(A=[],T=d;T=T.parentNode;)T.nodeType===1&&A.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<A.length;d++){var j=A[d];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}pn=!!fr,dr=fr=null}finally{je=u,O.p=n,Y.T=a}}e.current=t,Ye=2}}function Ws(){if(Ye===2){Ye=0;var e=$t,t=wa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=Y.T,Y.T=null;var a=O.p;O.p=2;var n=je;je|=4;try{Jd(e,t.alternate,t)}finally{je=n,O.p=a,Y.T=l}}Ye=3}}function Is(){if(Ye===4||Ye===3){Ye=0;var e=tn;tn=null,Nm();var t=$t,l=wa,a=sl,n=s0,u=(a&335544064)===a?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?Ye=5:(Ye=0,wa=$t=null,b0(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(Jl=null),sc(a),l=l.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(gn,l,void 0,(l.current.flags&128)===128)}catch{}if(n!==null){l=Y.T,u=O.p,O.p=2,Y.T=null;try{for(var i=t.onRecoverableError,d=0;d<n.length;d++){var h=n[d];i(h.value,{componentStack:h.stack})}}finally{Y.T=l,O.p=u}}if(n=ln,i=an,an=null,n!==null&&(ln=null,i===null&&(i=[]),e!==null))for(h=0;h<n.length;h++)l=(0,n[h])(i),l!==void 0&&e.finished.finally(l);(sl&3)!==0&&Di(),rl(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===Ai?eu++:(eu=0,Ai=t):(eu=0,Ai=null),tu(0)}}function b0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Un(t)))}function Di(){return tn!==null&&(tn.skipTransition(),tn=null),Ps(),Ws(),Is(),er()}function er(){if(Ye!==5)return!1;var e=$t,t=Js;Js=0;var l=sc(sl),a=Y.T,n=O.p;try{O.p=32>l?32:l,Y.T=null,l=Ks,Ks=null;var u=$t,i=sl;if(Ye=0,wa=$t=null,sl=0,(je&6)!==0)throw Error(r(331));var d=je;if(je|=4,u0(u.current),l0(u,u.current,i,l),je=d,tu(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(gn,u)}catch{}return!0}finally{O.p=n,Y.T=a,b0(e,t)}}function S0(e,t,l){t=qt(l,t),t=ys(e.stateNode,t,2),e=Yl(e,t,2),e!==null&&(Sn(e,2),rl(e))}function Me(e,t,l){if(e.tag===3)S0(e,e,l);else for(;t!==null;){if(t.tag===3){S0(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Jl===null||!Jl.has(a))){e=qt(l,e),l=yd(2),a=Yl(t,l,2),a!==null&&(xd(l,a,t,e),Sn(a,2),rl(a));break}}t=t.return}}function tr(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new ev;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Qs=!0,n.add(l),e=sv.bind(null,e,t,l),t.then(e,e))}function sv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ue===e&&(Te&l)===l&&((Ge===4||Ge===3&&(Te&62914560)===Te&&300>wt()-_i)&&(je&2)===0?un(e,0):Ei|=l,en===Te&&(en=0)),rl(e)}function N0(e,t){t===0&&(t=uo()),e=sa(e,t),e!==null&&(Sn(e,t),rl(e))}function rv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),N0(e,l)}function ov(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),N0(e,l)}function fv(e,t){return nc(e,t)}var sn=null,rn=null,lr=!1,Ri=!1,ar=!1,Fl=0;function rl(e){e!==rn&&e.next===null&&(rn===null?sn=rn=e:rn=rn.next=e),Ri=!0,lr||(lr=!0,hv())}function tu(e,t){if(!ar&&Ri){ar=!0;do for(var l=!1,a=sn;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-_t(42|e)+1)-1,u&=n&~(i&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,_0(a,u))}else u=Te,u=Eu(a,a===Ue?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||bn(a,u)||(l=!0,_0(a,u));a=a.next}while(l);ar=!1}}function dv(){T0()}function T0(){Ri=lr=!1;var e=0;Fl!==0&&wv()&&(e=Fl);for(var t=wt(),l=null,a=sn;a!==null;){var n=a.next,u=w0(a,t);u===0?(a.next=null,l===null?sn=n:l.next=n,n===null&&(rn=l)):(l=a,(e!==0||(u&3)!==0)&&(Ri=!0)),a=n}Ye!==0&&Ye!==5||tu(e),Fl!==0&&(Fl=0)}function w0(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-_t(u),d=1<<i,h=n[i];h===-1?((d&l)===0||(d&a)!==0)&&(n[i]=zm(d,t)):h<=t&&(e.expiredLanes|=d),u&=~d}if(t=Ue,l=Te,l=Eu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&uc(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||bn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&uc(a),sc(l)){case 2:case 8:l=lo;break;case 32:l=Su;break;case 268435456:l=ao;break;default:l=Su}return a=E0.bind(null,e),l=nc(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&uc(a),e.callbackPriority=2,e.callbackNode=null,2}function E0(e,t){if(Ye!==0&&Ye!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Di()&&e.callbackNode!==l)return null;var a=Te;return a=Eu(e,e===Ue?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(o0(e,a,t),w0(e,wt()),e.callbackNode!=null&&e.callbackNode===l?E0.bind(null,e):null)}function _0(e,t){if(Di())return null;o0(e,t,!0)}function hv(){_v(function(){(je&6)!==0?nc(to,dv):T0()})}function nr(){if(Fl===0){var e=ma;e===0&&(e=Nu,Nu<<=1,(Nu&261888)===0&&(Nu=256)),Fl=e}return Fl}function C0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:zu(e)}function mv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=C0((n[xt]||null).action),i=a.submitter;i&&(t=(t=i[xt]||null)?C0(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var d=new Ru("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Fl!==0){var h=new FormData(n,i);ds(l,{pending:!0,data:h,method:n.method,action:u},null,h)}}else typeof u=="function"&&(d.preventDefault(),h=new FormData(n,i),ds(l,{pending:!0,data:h,method:n.method,action:u},u,h))},currentTarget:n}]})}}for(var ur=0;ur<zc.length;ur++){var ir=zc[ur],pv=ir.toLowerCase(),vv=ir[0].toUpperCase()+ir.slice(1);Zt(pv,"on"+vv)}Zt(Wo,"onAnimationEnd"),Zt(Io,"onAnimationIteration"),Zt(ef,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(Ep,"onTransitionRun"),Zt(_p,"onTransitionStart"),Zt(Cp,"onTransitionCancel"),Zt(tf,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lu="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(" "),yv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lu));function j0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var d=a[i],h=d.instance,S=d.currentTarget;if(d=d.listener,h!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=S;try{u(n)}catch(w){qu(w)}n.currentTarget=null,u=h}else for(i=0;i<a.length;i++){if(d=a[i],h=d.instance,S=d.currentTarget,d=d.listener,h!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=S;try{u(n)}catch(w){qu(w)}n.currentTarget=null,u=h}}}}function Se(e,t){var l=t[fo];l===void 0&&(l=t[fo]=new Set);var a=e+"__bubble";l.has(a)||(A0(t,e,2,!1),l.add(a))}function cr(e,t,l){var a=0;t&&(a|=4),A0(l,e,a,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function sr(e){if(!e[Ui]){e[Ui]=!0,po.forEach(function(l){l!=="selectionchange"&&(yv.has(l)||cr(l,!1,e),cr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,cr("selectionchange",!1,t))}}function A0(e,t,l,a){switch(xh(t)){case 2:var n=ry;break;case 8:n=oy;break;default:n=jr}l=n.bind(null,t,l,e),n=void 0,!vc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function rr(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var d=a.stateNode.containerInfo;if(d===n)break;if(i===4)for(i=a.return;i!==null;){var h=i.tag;if((h===3||h===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;d!==null;){if(i=na(d),i===null)return;if(h=i.tag,h===5||h===6||h===26||h===27){a=u=i;continue e}d=d.parentNode}}a=a.return}jo(function(){var S=u,w=mc(l),A=[];e:{var g=lf.get(e);if(g!==void 0){var T=Ru,B=e;switch(e){case"keypress":if(Mu(l)===0)break e;case"keydown":case"keyup":T=tp;break;case"focusin":B="focus",T=bc;break;case"focusout":B="blur",T=bc;break;case"beforeblur":case"afterblur":T=bc;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":T=Oo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=ip;break;case Wo:case Io:case ef:T=Zm;break;case tf:T=sp;break;case"scroll":case"scrollend":T=Gm;break;case"wheel":T=op;break;case"copy":case"cut":case"paste":T=Km;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=Do;break;case"submit":T=np;break;case"toggle":case"beforetoggle":T=dp}var Q=(t&4)!==0,he=!Q&&(e==="scroll"||e==="scrollend"),b=Q?g!==null?g+"Capture":null:g;Q=[];for(var v=S,N;v!==null;){var j=v;if(N=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||N===null||b===null||(j=wn(v,b),j!=null&&Q.push(au(v,j,N))),he)break;v=v.return}0<Q.length&&(g=new T(g,B,null,l,w),A.push({event:g,listeners:Q}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",T&&l!==hc&&(B=l.relatedTarget||l.fromElement)&&(na(B)||B[Ca]))break e;(g||T)&&(B=w.window===w?w:(T=w.ownerDocument)?T.defaultView||T.parentWindow:window,g?(T=l.relatedTarget||l.toElement,g=S,T=T?na(T):null,T!==null&&(he=m(T),Q=T.tag,T!==he||Q!==5&&Q!==27&&Q!==6)&&(T=null)):(g=null,T=S),g!==T&&(Q=Oo,j="onMouseLeave",b="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(Q=Do,j="onPointerLeave",b="onPointerEnter",v="pointer"),he=g==null?B:Tn(g),N=T==null?B:Tn(T),B=new Q(j,v+"leave",g,l,w),B.target=he,B.relatedTarget=N,j=null,na(w)===S&&(Q=new Q(b,v+"enter",T,l,w),Q.target=N,Q.relatedTarget=he,j=Q),he=j,Q=g&&T?ye(g,T,xv):null,g!==null&&z0(A,B,g,Q,!1),T!==null&&he!==null&&z0(A,he,T,Q,!0)))}e:{if(g=S?Tn(S):window,T=g.nodeName&&g.nodeName.toLowerCase(),T==="select"||T==="input"&&g.type==="file")var k=Go;else if(Yo(g))if(Vo)k=Np;else{k=bp;var we=gp}else T=g.nodeName,!T||T.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?S&&dc(S.elementType)&&(k=Go):k=Sp;if(k&&(k=k(e,S))){Lo(A,k,l,w);break e}we&&we(e,g,S)}switch(we=S?Tn(S):window,e){case"focusin":(Yo(we)||we.contentEditable==="true")&&(Ha=we,Cc=S,Mn=null);break;case"focusout":Mn=Cc=Ha=null;break;case"mousedown":jc=!0;break;case"contextmenu":case"mouseup":case"dragend":jc=!1,$o(A,l,w);break;case"selectionchange":if(wp)break;case"keydown":case"keyup":$o(A,l,w)}var W;if(Nc)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Ua?qo(e,l)&&(ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ae="onCompositionStart");ae&&(Ro&&l.locale!=="ko"&&(Ua||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Ua&&(W=Ao()):(zl=w,yc="value"in zl?zl.value:zl.textContent,Ua=!0)),we=Hi(S,ae),0<we.length&&(ae=new Mo(ae,e,null,l,w),A.push({event:ae,listeners:we}),W?ae.data=W:(W=Bo(l),W!==null&&(ae.data=W)))),(W=mp?pp(e,l):vp(e,l))&&(ae=Hi(S,"onBeforeInput"),0<ae.length&&(we=new Mo("onBeforeInput","beforeinput",null,l,w),A.push({event:we,listeners:ae}),we.data=W)),mv(A,e,S,l,w)}j0(A,t)})}function au(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Hi(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=wn(e,l),n!=null&&a.unshift(au(e,n,u)),n=wn(e,t),n!=null&&a.push(au(e,n,u))),e.tag===3)return a;e=e.return}return[]}function xv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function z0(e,t,l,a,n){for(var u=t._reactName,i=[];l!==null&&l!==a;){var d=l,h=d.alternate,S=d.stateNode;if(d=d.tag,h!==null&&h===a)break;d!==5&&d!==26&&d!==27||S===null||(h=S,n?(S=wn(l,u),S!=null&&i.unshift(au(l,S,h))):n||(S=wn(l,u),S!=null&&i.push(au(l,S,h)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var gv=/\r\n?/g,bv=/\u0000|\uFFFD/g;function O0(e){return(typeof e=="string"?e:""+e).replace(gv,`
49
+ `).replace(bv,"")}function M0(e,t){return t=O0(t),O0(e)===t}function De(e,t,l,a,n,u){switch(l){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Ma(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Ma(e,""+a);else return;break;case"className":Au(e,"class",a);break;case"tabIndex":Au(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Au(e,l,a);break;case"style":_o(e,a,u);return;case"data":if(t!=="object"){Au(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=zu(a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="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 u=="function"&&(l==="formAction"?(t!=="input"&&De(e,t,"name",n.name,n,null),De(e,t,"formEncType",n.formEncType,n,null),De(e,t,"formMethod",n.formMethod,n,null),De(e,t,"formTarget",n.formTarget,n,null)):(De(e,t,"encType",n.encType,n,null),De(e,t,"method",n.method,n,null),De(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=zu(a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=It);return;case"onScroll":a!=null&&Se("scroll",e);return;case"onScrollEnd":a!=null&&Se("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=zu(a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Se("beforetoggle",e),Se("toggle",e),ju(e,"popover",a);break;case"xlinkActuate":hl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":hl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":hl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":hl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":hl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":hl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":hl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":hl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":hl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ju(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=Ym.get(l)||l,ju(e,l,a);else return}Ce=!0}function or(e,t,l,a,n,u){switch(l){case"style":_o(e,a,u);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"children":if(typeof a=="string")Ma(e,a);else if(typeof a=="number"||typeof a=="bigint")Ma(e,""+a);else return;break;case"onScroll":a!=null&&Se("scroll",e);return;case"onScrollEnd":a!=null&&Se("scrollend",e);return;case"onClick":a!=null&&(e.onclick=It);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!vo.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),u=l.slice(2,n?l.length-7:void 0),t=e[xt]||null,t=t!=null?t[l]:null,typeof t=="function"&&e.removeEventListener(u,t,n),typeof a=="function")){typeof t!="function"&&t!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(u,a,n);break e}Ce=!0,l in e?e[l]=a:a===!0?e.setAttribute(l,""):ju(e,l,a)}return}Ce=!0}function rt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,u,i,l,null)}}n&&De(e,t,"srcSet",l.srcSet,l,null),a&&De(e,t,"src",l.src,l,null);return;case"input":Se("invalid",e);var d=u=i=n=null,h=null,S=null;for(a in l)if(l.hasOwnProperty(a)){var w=l[a];if(w!=null)switch(a){case"name":n=w;break;case"type":i=w;break;case"checked":h=w;break;case"defaultChecked":S=w;break;case"value":u=w;break;case"defaultValue":d=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(137,t));break;default:De(e,t,a,w,l,null)}}No(e,u,d,h,S,i,n,!1);return;case"select":Se("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":i=d;break;case"multiple":a=d;default:De(e,t,n,d,l,null)}t=u,l=i,e.multiple=!!a,t!=null?Oa(e,!!a,t,!1):l!=null&&Oa(e,!!a,l,!0);return;case"textarea":Se("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(d=l[i],d!=null))switch(i){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:De(e,t,i,d,l,null)}wo(e,a,n,u);return;case"option":for(h in l)if(l.hasOwnProperty(h)&&(a=l[h],a!=null))switch(h){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:De(e,t,h,a,l,null)}return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(a=0;a<lu.length;a++)Se(lu[a],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("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(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,S,a,l,null)}return;default:if(dc(t)){for(w in l)l.hasOwnProperty(w)&&(a=l[w],a!==void 0&&or(e,t,w,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&De(e,t,d,a,l,null))}var Sv={};function Nv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,d=null,h=null,S=null,w=null;for(T in l){var A=l[T];if(l.hasOwnProperty(T)&&A!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":h=A;default:a.hasOwnProperty(T)||De(e,t,T,null,a,A)}}for(var g in a){var T=a[g];if(A=l[g],a.hasOwnProperty(g)&&(T!=null||A!=null))switch(g){case"type":T!==A&&(Ce=!0),u=T;break;case"name":T!==A&&(Ce=!0),n=T;break;case"checked":T!==A&&(Ce=!0),S=T;break;case"defaultChecked":T!==A&&(Ce=!0),w=T;break;case"value":T!==A&&(Ce=!0),i=T;break;case"defaultValue":T!==A&&(Ce=!0),d=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(137,t));break;default:T!==A&&De(e,t,g,T,a,A)}}oc(e,i,d,h,S,w,u,n);return;case"select":T=i=d=g=null;for(u in l)if(h=l[u],l.hasOwnProperty(u)&&h!=null)switch(u){case"value":break;case"multiple":T=h;default:a.hasOwnProperty(u)||De(e,t,u,null,a,h)}for(n in a)if(u=a[n],h=l[n],a.hasOwnProperty(n)&&(u!=null||h!=null))switch(n){case"value":u!==h&&(Ce=!0),g=u;break;case"defaultValue":u!==h&&(Ce=!0),d=u;break;case"multiple":u!==h&&(Ce=!0),i=u;default:u!==h&&De(e,t,n,u,a,h)}t=d,l=i,a=T,g!=null?Oa(e,!!l,g,!1):!!a!=!!l&&(t!=null?Oa(e,!!l,t,!0):Oa(e,!!l,l?[]:"",!1));return;case"textarea":T=g=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:De(e,t,d,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":n!==u&&(Ce=!0),g=n;break;case"defaultValue":n!==u&&(Ce=!0),T=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&De(e,t,i,n,a,u)}To(e,g,T);return;case"option":for(var B in l)if(g=l[B],l.hasOwnProperty(B)&&g!=null&&!a.hasOwnProperty(B))switch(B){case"selected":e.selected=!1;break;default:De(e,t,B,null,a,g)}for(h in a)if(g=a[h],T=l[h],a.hasOwnProperty(h)&&g!==T&&(g!=null||T!=null))switch(h){case"selected":g!==T&&(Ce=!0),e.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:De(e,t,h,g,a,T)}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 Q in l)g=l[Q],l.hasOwnProperty(Q)&&g!=null&&!a.hasOwnProperty(Q)&&De(e,t,Q,null,a,g);for(S in a)if(g=a[S],T=l[S],a.hasOwnProperty(S)&&g!==T&&(g!=null||T!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(137,t));break;default:De(e,t,S,g,a,T)}return;default:if(dc(t)){for(var he in l)g=l[he],l.hasOwnProperty(he)&&g!==void 0&&!a.hasOwnProperty(he)&&or(e,t,he,void 0,a,g);for(w in a)g=a[w],T=l[w],!a.hasOwnProperty(w)||g===T||g===void 0&&T===void 0||or(e,t,w,g,a,T);return}}for(var b in l)g=l[b],l.hasOwnProperty(b)&&g!=null&&!a.hasOwnProperty(b)&&De(e,t,b,null,a,g);for(A in a)g=a[A],T=l[A],!a.hasOwnProperty(A)||g===T||g==null&&T==null||De(e,t,A,g,a,T)}function D0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,d=n.duration;if(u&&d&&D0(i)){for(i=0,d=n.responseEnd,a+=1;a<l.length;a++){var h=l[a],S=h.startTime;if(S>d)break;var w=h.transferSize,A=h.initiatorType;w&&D0(A)&&(h=h.responseEnd,i+=w*(h<d?1:(d-S)/(h-S)))}if(--a,t+=8*(u+i)/(n.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 fr=null,dr=null;function nu(e){return e.nodeType===9?e:e.ownerDocument}function R0(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 U0(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 H0(e,t,l,a){return l=nu(l).createElement(e),l[nt]=a,l[xt]=t,rt(l,e,t),et(l),l}function hr(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 mr=null;function wv(){var e=window.event;return e&&e.type==="popstate"?e===mr?!1:(mr=e,!0):(mr=null,!1)}var pr=typeof setTimeout=="function"?setTimeout:void 0,Ev=typeof clearTimeout=="function"?clearTimeout:void 0,q0=typeof Promise=="function"?Promise:void 0,B0=typeof requestAnimationFrame=="function"?requestAnimationFrame:pr,_v=typeof queueMicrotask=="function"?queueMicrotask:typeof q0<"u"?function(e){return q0.resolve(null).then(e).catch(Cv)}:pr;function Cv(e){setTimeout(function(){throw e})}function $l(e){return e==="head"}function Y0(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),vn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Tr(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Tr(l);for(var u=l.firstChild;u;){var i=u.nextSibling,d=u.nodeName;u[Nn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Tr(e.ownerDocument.body);l=n}while(l);vn(t)}function L0(e,t){var l=e;e=0;do{var a=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||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function G0(e,t,l){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,l!=null&&(e.style.viewTransitionClass=l),l=getComputedStyle(e),l.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var n=a=0;n<t.length;n++){var u=t[n];0<u.width&&0<u.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+l.paddingTop,e.marginBottom="-"+l.paddingBottom)}}function V0(e,t){e=e.style,t=t.style;var l=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(l=t.display,e.display=l==null||typeof l=="boolean"?"":l,l=t.margin,l!=null?e.margin=l:(l=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=l==null||typeof l=="boolean"?"":l,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function jv(e,t,l){return l=l.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=l.innerHeight&&e.left<=l.innerWidth}}function vr(e){var t=e.getBoundingClientRect(),l=getComputedStyle(e);return jv(t,l,e)}function Av(e){return e.documentElement.clientHeight}function zv(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Ov(e,t,l,a,n,u,i,d,h){var S=t.nodeType===9?t:t.ownerDocument;try{var w=S.startViewTransition({update:function(){var g=S.defaultView,T=g.navigation&&g.navigation.transition,B=S.fonts.status;a();var Q=[];if(B==="loaded"&&(Av(S),S.fonts.status==="loading"&&Q.push(S.fonts.ready)),B=Q.length,e!==null)for(var he=e.suspenseyImages,b=0,v=0;v<he.length;v++){var N=he[v];if(!N.complete){var j=N.getBoundingClientRect();if(0<j.bottom&&0<j.right&&j.top<g.innerHeight&&j.left<g.innerWidth){if(b+=rh(N),b>Yi){Q.length=B;break}N=new Promise(zv.bind(N)),Q.push(N)}}}if(0<Q.length)return g=Promise.race([Promise.all(Q),new Promise(function(k){return setTimeout(k,500)})]).then(n,n),(T?Promise.allSettled([T.finished,g]):g).then(u,u);if(n(),T)return T.finished.then(u,u);u()},types:l});S.__reactViewTransition=w;var A=[];return w.ready.then(function(){for(var g=S.documentElement.getAnimations({subtree:!0}),T=0;T<g.length;T++){var B=g[T],Q=B.effect,he=Q.pseudoElement;if(he!=null&&he.startsWith("::view-transition")){A.push(B),B=Q.getKeyframes();for(var b=he=void 0,v=!0,N=0;N<B.length;N++){var j=B[N],k=j.width;if(he===void 0)he=k;else if(he!==k){v=!1;break}if(k=j.height,b===void 0)b=k;else if(b!==k){v=!1;break}delete j.width,delete j.height,j.transform==="none"&&delete j.transform}v&&he!==void 0&&b!==void 0&&(Q.setKeyframes(B),v=getComputedStyle(Q.target,Q.pseudoElement),v.width!==he||v.height!==b)&&(v=B[0],v.width=he,v.height=b,v=B[B.length-1],v.width=he,v.height=b,Q.setKeyframes(B))}}i()},function(g){S.__reactViewTransition===w&&(S.__reactViewTransition=null);try{if(typeof g=="object"&&g!==null)switch(g.name){case"InvalidStateError":(g.message==="View transition was skipped because document visibility state is hidden."||g.message==="Skipping view transition because document visibility state has become hidden."||g.message==="Skipping view transition because viewport size changed."||g.message==="Transition was aborted because of invalid state")&&(g=null)}g!==null&&h(g)}finally{a(),n(),i()}}),w.finished.finally(function(){for(var g=0;g<A.length;g++)A[g].cancel();S.__reactViewTransition===w&&(S.__reactViewTransition=null),d()}),w}catch{return a(),n(),i(),null}}function Ea(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Ea.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:J({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Ea.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,l=e.getAnimations({subtree:!0}),a=[],n=0;n<l.length;n++){var u=l[n].effect;u!==null&&u.target===e&&u.pseudoElement===t&&a.push(l[n])}return a},Ea.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function k0(e){return{name:e,group:new Ea("group",e),imagePair:new Ea("image-pair",e),old:new Ea("old",e),new:new Ea("new",e)}}function Rt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Rt.prototype.addEventListener=function(e,t,l){var a=null,n=null;if(!(l!=null&&typeof l!="boolean"&&(a=l.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(Q0(u,e,t,l)===-1){var i=this,d=t;l!=null&&typeof l!="boolean"&&l.once===!0&&(d=function(h){i.removeEventListener(e,t,l),typeof t=="function"?t.call(this,h):t.handleEvent(h)}),a!==null&&(n=i.removeEventListener.bind(i,e,t,l),a.addEventListener("abort",n,{once:!0}),n=a.removeEventListener.bind(a,"abort",n)),a=on(l),u.push({type:e,listener:t,optionsOrUseCapture:l,attachedListener:d,cleanup:n}),x(this._fragmentFiber.child,!1,Mv,e,d,a)}this._eventListeners=u}};function Mv(e,t,l,a){return I(e).addEventListener(t,l,a),!1}Rt.prototype.removeEventListener=function(e,t,l){var a=this._eventListeners;if(a!==null&&(t=Q0(a,e,t,l),t!==-1)){var n=a[t];l=n.attachedListener;var u=n.cleanup;n=on(n.optionsOrUseCapture),x(this._fragmentFiber.child,!1,Dv,e,l,n),a.splice(t,1),u!==null&&u()}};function Dv(e,t,l,a){return I(e).removeEventListener(t,l,a),!1}function on(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function X0(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Q0(e,t,l,a){if(e.length===0)return-1;a=X0(a);for(var n=0;n<e.length;n++){var u=e[n];if(u.type===t&&u.listener===l&&X0(u.optionsOrUseCapture)===a)return n}return-1}Rt.prototype.dispatchEvent=function(e){var t=D(this._fragmentFiber);if(t===null)return!0;t=I(t);var l=this._eventListeners;if(l!==null&&0<l.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(l)for(var n=0;n<l.length;n++){var u=l[n];a.addEventListener(u.type,u.attachedListener,on(u.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),l)for(n=0;n<l.length;n++)u=l[n],a.removeEventListener(u.type,u.attachedListener,on(u.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},Rt.prototype.focus=function(e){x(this._fragmentFiber.child,!0,Z0,e,void 0,void 0)};function Z0(e,t){return e.tag===6?!1:(e=I(e),Qv(e,t))}Rt.prototype.focusLast=function(e){var t=[];x(this._fragmentFiber.child,!0,yr,t,void 0,void 0);for(var l=t.length-1;0<=l&&!Z0(t[l],e);l--);};function yr(e,t){return t.push(e),!1}Rt.prototype.blur=function(){var e=D(this._fragmentFiber);e!==null&&(e=I(e),e=nu(e).activeElement,e!==null&&x(this._fragmentFiber.child,!1,Rv,e,void 0,void 0))};function Rv(e,t){return e.tag===6?!1:(e=I(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Rt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),x(this._fragmentFiber.child,!1,Uv,e,void 0,void 0)};function Uv(e,t){return e.tag===6||(e=I(e),t.observe(e)),!1}Rt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),x(this._fragmentFiber.child,!1,Hv,e,void 0,void 0);for(var l=t=0;l<Pt.length;l++){var a=Pt[l];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):Pt[t++]=a}Pt.length=t}};function Hv(e,t){return e.tag===6||(e=I(e),t.unobserve(e)),!1}var Pt=[],xr=!1;function qv(e,t,l){Pt.push({fragmentInstance:e,observer:t,instance:l}),xr||(xr=!0,Zv(function(){xr=!1;var a=Pt;Pt=[];for(var n=0;n<a.length;n++){var u=a[n];u.observer.unobserve(u.instance)}}))}Rt.prototype.getClientRects=function(){var e=[];return x(this._fragmentFiber.child,!1,Bv,e,void 0,void 0),e};function Bv(e,t){if(e.tag===6){e=e.stateNode;var l=e.ownerDocument.createRange();l.selectNodeContents(e),t.push.apply(t,l.getClientRects())}else e=I(e),t.push.apply(t,e.getClientRects());return!1}Rt.prototype.getRootNode=function(e){var t=D(this._fragmentFiber);return t===null?this:I(t).getRootNode(e)},Rt.prototype.compareDocumentPosition=function(e){var t=D(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];x(this._fragmentFiber.child,!1,yr,l,void 0,void 0);var a=I(t);if(l.length===0){if(l=a,X(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(l=t)}t=this._fragmentFiber;var n=a=l.compareDocumentPosition(e);return l===e?n=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=V(t)[1],l===null?n=Node.DOCUMENT_POSITION_PRECEDING:(e=I(l).compareDocumentPosition(e),n=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),n|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=I(l[0]),n=I(l[l.length-1]);var u=X(this._fragmentFiber)?t.parentElement:a;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=u.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),d=n.compareDocumentPosition(e),h=i&Node.DOCUMENT_POSITION_CONTAINED_BY||d&Node.DOCUMENT_POSITION_CONTAINED_BY;return d=a&&u&&i&Node.DOCUMENT_POSITION_FOLLOWING&&d&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||u&&n===e||h||d?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!u&&n===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Yv(t,this._fragmentFiber,l[0],l[l.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Yv(e,t,l,a,n){var u=na(n);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!u)e:{for(;u!==null;){if(u.tag===7&&(u===t||u.alternate===t)){l=!0;break e}u=u.return}l=!1}return l}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=n.ownerDocument,n===u||n===u.documentElement||n===u.body;e:{for(u=t,t=D(t);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==t&&u.alternate!==t)){u=!0;break e}u=u.return}u=!1}return u}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!u)&&!(t=u===l)&&(t=ye(l,u,te),t===null?t=!1:(x(t,!0,F,u,l),u=pe,pe=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===a)&&(t=ye(a,u,te),t===null?t=!1:(x(t,!0,z,u,a),u=pe,G=pe=null,t=u!==null)),t):!1}function J0(e,t){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Rt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(r(566));var t=[];x(this._fragmentFiber.child,!1,yr,t,void 0,void 0);var l=e!==!1;if(t.length===0){var a=V(this._fragmentFiber);if(a=l?a[1]||a[0]||D(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=I(a),J0(e,l);return}if(a=I(a),a.nodeType!==9){if(a.nodeType===11){l="host"in a?a.host:null,l!==null&&l.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=l?t.length-1:0;a!==(l?-1:t.length);){var n=t[a];n.tag===6?(n=I(n),J0(n,l)):I(n).scrollIntoView(e),a+=l?-1:1}};function Lv(e,t){return e=I(e),K0(e,t),!1}function K0(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function F0(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a];e.addEventListener(n.type,n.attachedListener,on(n.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){for(var i=0,d=0;d<Pt.length;d++){var h=Pt[d];(h.fragmentInstance!==t||h.observer!==u||h.instance!==e)&&(Pt[i++]=h)}Pt.length=i,u.observe(e)}),K0(e,t))}function Gv(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a];e.removeEventListener(n.type,n.attachedListener,on(n.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?qv(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function gr(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":gr(l),Cu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Vv(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Nn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function kv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Vt(e.nextSibling),e===null))return null;return e}function $0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function br(e){return e.data==="$?"||e.data==="$~"}function Sr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Xv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Vt(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 Nr=null;function P0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Vt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function W0(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 Qv(e,t){function l(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",l,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",l,!0)}return a}function Zv(e){B0(function(){B0(function(t){return e(t)})})}function I0(e,t,l){switch(t=nu(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 eh(e,t,l){for(var a in l){var n=l[a];l.hasOwnProperty(a)&&n!=null&&De(e,t,a,null,Sv,n)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===It&&(e.onclick=null),Cu(e)}function Tr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cu(e)}var kt=new Map,th=new Set;function uu(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var _l=O.d;O.d={f:Jv,r:Kv,D:Fv,C:$v,L:Pv,m:Wv,X:ey,S:Iv,M:ty};function Jv(){var e=_l.f(),t=zi();return e||t}function Kv(e){var t=ja(e);t!==null&&t.tag===5&&t.type==="form"?ad(t):_l.r(e)}var fn=typeof document>"u"?null:document;function lh(e,t,l){var a=fn;if(a&&typeof t=="string"&&t){var n=Ut(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),th.has(n)||(th.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),rt(t,"link",e),et(t),a.head.appendChild(t)))}}function Fv(e){_l.D(e),lh("dns-prefetch",e,null)}function $v(e,t){_l.C(e,t),lh("preconnect",e,t)}function Pv(e,t,l){_l.L(e,t,l);var a=fn;if(a&&e&&t){var n='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Ut(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Ut(l.imageSizes)+'"]')):n+='[href="'+Ut(e)+'"]';var u=n;switch(t){case"style":u=dn(e);break;case"script":u=hn(e)}if(!(kt.has(u)||(e=J({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),kt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(iu(u))||t==="script"&&a.querySelector(cu(u))))){var i=a.createElement("link");rt(i,"link",e),t==="style"&&(i[_u]=!0,i.onload=i.onerror=function(){mo(i)}),et(i),a.head.appendChild(i)}}}function Wv(e,t){_l.m(e,t);var l=fn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ut(a)+'"][href="'+Ut(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=hn(e)}if(!kt.has(u)&&(e=J({rel:"modulepreload",href:e},t),kt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(cu(u)))return}a=l.createElement("link"),rt(a,"link",e),et(a),l.head.appendChild(a)}}}function Iv(e,t,l){_l.S(e,t,l);var a=fn;if(a&&e){var n=Aa(a).hoistableStyles,u=dn(e);t=t||"default";var i=n.get(u);if(!i){var d={loading:0,preload:null};if(i=a.querySelector(iu(u)))d.loading=5;else{e=J({rel:"stylesheet",href:e,"data-precedence":t},l),(l=kt.get(u))&&wr(e,l);var h=i=a.createElement("link");et(h),rt(h,"link",e),h._p=new Promise(function(S,w){h.onload=S,h.onerror=w}),h.addEventListener("load",function(){d.loading|=1}),h.addEventListener("error",function(){d.loading|=2}),d.loading|=4,qi(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:d},n.set(u,i)}}}function ey(e,t){_l.X(e,t);var l=fn;if(l&&e){var a=Aa(l).hoistableScripts,n=hn(e),u=a.get(n);u||(u=l.querySelector(cu(n)),u||(e=J({src:e,async:!0},t),(t=kt.get(n))&&Er(e,t),u=l.createElement("script"),et(u),rt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ty(e,t){_l.M(e,t);var l=fn;if(l&&e){var a=Aa(l).hoistableScripts,n=hn(e),u=a.get(n);u||(u=l.querySelector(cu(n)),u||(e=J({src:e,async:!0,type:"module"},t),(t=kt.get(n))&&Er(e,t),u=l.createElement("script"),et(u),rt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ah(e,t,l,a){var n=(n=Cl.current)?uu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=dn(l.href),t=Aa(n).hoistableStyles,a=t.get(l),a||(a={type:"style",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=dn(l.href);var u=Aa(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(iu(e)))?u._p||(i.instance=u,i.state.loading=5):(u=kt.get(e),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},kt.set(e,u)),ly(n,e,u,i.state))),t&&a===null)throw Error(r(528,""));return i}if(t&&a!==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"?(l=hn(l),t=Aa(n).hoistableScripts,a=t.get(l),a||(a={type:"script",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function dn(e){return'href="'+Ut(e)+'"'}function iu(e){return'link[rel="stylesheet"]['+e+"]"}function nh(e){return J({},e,{"data-precedence":e.precedence,precedence:null})}function ly(e,t,l,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[_u]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[_u]=!0,t.onload=t.onerror=mo.bind(null,t),rt(t,"link",l),et(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function hn(e){return'[src="'+Ut(e)+'"]'}function cu(e){return"script[async]"+e}function uh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ut(l.href)+'"]');if(a)return t.instance=a,et(a),a;var n=J({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),et(a),rt(a,"style",n),qi(a,l.precedence,e),t.instance=a;case"stylesheet":n=dn(l.href);var u=e.querySelector(iu(n));if(u)return t.state.loading|=4,t.instance=u,et(u),u;a=nh(l),(n=kt.get(n))&&wr(a,n),u=(e.ownerDocument||e).createElement("link"),et(u);var i=u;return i._p=new Promise(function(d,h){i.onload=d,i.onerror=h}),rt(u,"link",a),t.state.loading|=4,qi(u,l.precedence,e),t.instance=u;case"script":return u=hn(l.src),(n=e.querySelector(cu(u)))?(t.instance=n,et(n),n):(a=l,(n=kt.get(u))&&(a=J({},l),Er(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),et(n),rt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,qi(a,l.precedence,e));return t.instance}function qi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var d=a[i];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Er(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Bi=null;function ih(e,t,l){if(Bi===null){var a=new Map,n=Bi=new Map;n.set(l,a)}else n=Bi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Nn]||u[nt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var d=a.get(i);d?d.push(u):a.set(i,[u])}}return a}function _r(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function ay(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 ch(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function sh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function rh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function oh(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=rh(t),e.suspenseyImages.push(t)),e=iy.bind(e),t.decode().then(e,e))}function ny(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=dn(a.href),u=t.querySelector(iu(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=su.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,et(u);return}u=t.ownerDocument||t,a=nh(a),(n=kt.get(n))&&wr(a,n),u=u.createElement("link"),et(u);var i=u;i._p=new Promise(function(d,h){i.onload=d,i.onerror=h}),rt(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=su.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Yi=0;function uy(e,t){return e.stylesheets&&e.count===0&&Gi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Gi(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Yi===0&&(Yi=62500*Tv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gi(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Yi?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function fh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Gi(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function su(){this.count--,fh(this)}function iy(){this.imgCount--,fh(this)}var Li=null;function Gi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Li=new Map,t.forEach(cy,e),Li=null,su.call(e))}function cy(e,t){if(!(t.state.loading&4)){var l=Li.get(e);if(l)var a=l.get(null);else{l=new Map,Li.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=su.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var mn={$$typeof:Ne,Provider:null,Consumer:null,_currentValue:ge,_currentValue2:ge,_threadCount:0};function sy(e,t,l,a,n,u,i,d,h){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ic(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ic(0),this.hiddenUpdates=ic(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.transitionTypes=null,this.incompleteTransitions=new Map}function dh(e,t,l,a,n,u,i,d,h,S,w,A){return e=new sy(e,t,l,i,h,S,w,A,d),t=1,u===!0&&(t|=24),u=gt(3,null,null,t),e.current=u,u.stateNode=e,t=Gc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Qc(u),e}function hh(e){return e?(e=Ya,e):Ya}function mh(e,t,l,a,n,u){n=hh(n),a.context===null?a.context=n:a.pendingContext=n,a=Bl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Yl(e,a,t),l!==null&&(Tt(l,e,t),Yn(l,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Cr(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function vh(e){if(e.tag===13||e.tag===31){var t=sa(e,67108864);t!==null&&Tt(t,e,67108864),Cr(e,67108864)}}function yh(e){if(e.tag===13||e.tag===31){var t=Dt();t=cc(t);var l=sa(e,t);l!==null&&Tt(l,e,t),Cr(e,t)}}var pn=!0;function ry(e,t,l,a){var n=Y.T;Y.T=null;var u=O.p;try{O.p=2,jr(e,t,l,a)}finally{O.p=u,Y.T=n}}function oy(e,t,l,a){var n=Y.T;Y.T=null;var u=O.p;try{O.p=8,jr(e,t,l,a)}finally{O.p=u,Y.T=n}}function jr(e,t,l,a){if(pn){var n=Ar(a);if(n===null)rr(e,t,a,Vi,l),gh(e,a);else if(dy(n,e,t,l,a))a.stopPropagation();else if(gh(e,a),t&4&&-1<fy.indexOf(e)){for(;n!==null;){var u=ja(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=aa(u.pendingLanes);if(i!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;i;){var h=1<<31-_t(i);d.entanglements[1]|=h,i&=~h}rl(u),(je&6)===0&&(Ci=wt()+500,tu(0))}}break;case 31:case 13:d=sa(u,2),d!==null&&Tt(d,u,2),zi(),Cr(u,2)}if(u=Ar(a),u===null&&rr(e,t,a,Vi,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else rr(e,t,a,null,l)}}function Ar(e){return e=mc(e),zr(e)}var Vi=null;function zr(e){if(Vi=null,e=na(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=_(t),e!==null)return e;e=null}else if(l===31){if(e=H(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 Vi=e,null}function xh(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Tm()){case to:return 2;case lo:return 8;case Su:case wm:return 32;case ao:return 268435456;default:return 32}default:return 32}}var Or=!1,Pl=null,Wl=null,Il=null,ru=new Map,ou=new Map,ea=[],fy="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 gh(e,t){switch(e){case"focusin":case"focusout":Pl=null;break;case"dragenter":case"dragleave":Wl=null;break;case"mouseover":case"mouseout":Il=null;break;case"pointerover":case"pointerout":ru.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ou.delete(t.pointerId)}}function fu(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ja(t),t!==null&&vh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function dy(e,t,l,a,n){switch(t){case"focusin":return Pl=fu(Pl,e,t,l,a,n),!0;case"dragenter":return Wl=fu(Wl,e,t,l,a,n),!0;case"mouseover":return Il=fu(Il,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return ru.set(u,fu(ru.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,ou.set(u,fu(ou.get(u)||null,e,t,l,a,n)),!0}return!1}function bh(e){var t=na(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=_(l),t!==null){e.blockedOn=t,oo(e.priority,function(){yh(l)});return}}else if(t===31){if(t=H(l),t!==null){e.blockedOn=t,oo(e.priority,function(){yh(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 ki(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ar(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);hc=a,l.target.dispatchEvent(a),hc=null}else return t=ja(l),t!==null&&vh(t),e.blockedOn=l,!1;t.shift()}return!0}function Sh(e,t,l){ki(e)&&l.delete(t)}function hy(){Or=!1,Pl!==null&&ki(Pl)&&(Pl=null),Wl!==null&&ki(Wl)&&(Wl=null),Il!==null&&ki(Il)&&(Il=null),ru.forEach(Sh),ou.forEach(Sh)}function Xi(e,t){e.blockedOn===t&&(e.blockedOn=null,Or||(Or=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,hy)))}var Qi=null;function Nh(e){Qi!==e&&(Qi=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Qi===e&&(Qi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(zr(a||l)===null)continue;break}var u=ja(l);u!==null&&(e.splice(t,3),t-=3,ds(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function vn(e){function t(h){return Xi(h,e)}Pl!==null&&Xi(Pl,e),Wl!==null&&Xi(Wl,e),Il!==null&&Xi(Il,e),ru.forEach(t),ou.forEach(t);for(var l=0;l<ea.length;l++){var a=ea[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ea.length&&(l=ea[0],l.blockedOn===null);)bh(l),l.blockedOn===null&&ea.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[xt]||null;if(typeof u=="function")i||Nh(l);else if(i){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[xt]||null)d=i.formAction;else if(zr(n)!==null)continue}else d=i.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Nh(l)}}}function Th(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Mr(e){this._internalRoot=e}Zi.prototype.render=Mr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=Dt();mh(l,a,e,t,null,null)},Zi.prototype.unmount=Mr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),zi(),t[Ca]=null}};function Zi(e){this._internalRoot=e}Zi.prototype.unstable_scheduleHydration=function(e){if(e){var t=ro();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ea.length&&t!==0&&t<ea[l].priority;l++);ea.splice(l,0,e),l===0&&bh(e)}};var wh=o.version;if(wh!=="19.3.1")throw Error(r(527,wh,"19.3.1"));O.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=E(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var my={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{gn=Ji.inject(my),Et=Ji}catch{}}return hu.createRoot=function(e,t){if(!p(e))throw Error(r(299));var l=!1,a="",n=hd,u=md,i=pd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=dh(e,1,!1,null,null,l,a,null,n,u,i,Th),e[Ca]=t.current,sr(e),new Mr(t)},hu.hydrateRoot=function(e,t,l){if(!p(e))throw Error(r(299));var a=!1,n="",u=hd,i=md,d=pd,h=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(h=l.formState)),t=dh(e,1,!0,t,l??null,a,n,h,u,i,d,Th),t.context=hh(null),l=t.current,a=Dt(),a=cc(a),n=Bl(a),n.callback=null,Yl(l,n,a),l=a,t.current.lanes=l,Sn(t,l),rl(t),e[Ca]=t.current,sr(e),new Zi(t)},hu.version="19.3.1",hu}var Rh;function Ey(){if(Rh)return Hr.exports;Rh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),Hr.exports=wy(),Hr.exports}var _y=Ey();/**
50
+ * @license lucide-react v0.471.2 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const Cy=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ih=(...s)=>s.filter((o,f,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===f).join(" ").trim();/**
55
+ * @license lucide-react v0.471.2 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */var jy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
+ * @license lucide-react v0.471.2 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const Ay=me.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:f=2,absoluteStrokeWidth:r,className:p="",children:m,iconNode:_,...H},R)=>me.createElement("svg",{ref:R,...jy,width:o,height:o,stroke:s,strokeWidth:r?Number(f)*24/Number(o):f,className:Ih("lucide",p),...H},[..._.map(([E,C])=>me.createElement(E,C)),...Array.isArray(m)?m:[m]]));/**
65
+ * @license lucide-react v0.471.2 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const se=(s,o)=>{const f=me.forwardRef(({className:r,...p},m)=>me.createElement(Ay,{ref:m,iconNode:o,className:Ih(`lucide-${Cy(s)}`,r),...p}));return f.displayName=`${s}`,f};/**
70
+ * @license lucide-react v0.471.2 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const zy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],em=se("ArrowRight",zy);/**
75
+ * @license lucide-react v0.471.2 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const Oy=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],My=se("ArrowUp",Oy);/**
80
+ * @license lucide-react v0.471.2 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const Dy=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Wt=se("Check",Dy);/**
85
+ * @license lucide-react v0.471.2 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const Ry=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Uy=se("ChevronDown",Ry);/**
90
+ * @license lucide-react v0.471.2 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const Hy=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],qy=se("ChevronLeft",Hy);/**
95
+ * @license lucide-react v0.471.2 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const By=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],tm=se("ChevronRight",By);/**
100
+ * @license lucide-react v0.471.2 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const Yy=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Ly=se("ChevronsUpDown",Yy);/**
105
+ * @license lucide-react v0.471.2 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const Gy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Pr=se("CircleCheck",Gy);/**
110
+ * @license lucide-react v0.471.2 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const Vy=[["path",{d:"M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z",key:"1pp7kr"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10",key:"2ik1ml"}],["path",{d:"m17 10 4 4-4 4",key:"vp2hj1"}]],ky=se("ClipboardPaste",Vy);/**
115
+ * @license lucide-react v0.471.2 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const Xy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Qy=se("Clock",Xy);/**
120
+ * @license lucide-react v0.471.2 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const Zy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],Jy=se("Columns2",Zy);/**
125
+ * @license lucide-react v0.471.2 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const Ky=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],lm=se("Copy",Ky);/**
130
+ * @license lucide-react v0.471.2 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const Fy=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],$y=se("Download",Fy);/**
135
+ * @license lucide-react v0.471.2 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const Py=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Wy=se("EyeOff",Py);/**
140
+ * @license lucide-react v0.471.2 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const Iy=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],e1=se("Eye",Iy);/**
145
+ * @license lucide-react v0.471.2 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const t1=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],l1=se("FileCode2",t1);/**
150
+ * @license lucide-react v0.471.2 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const a1=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],n1=se("FileDiff",a1);/**
155
+ * @license lucide-react v0.471.2 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const u1=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],i1=se("FileText",u1);/**
160
+ * @license lucide-react v0.471.2 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const c1=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],Lr=se("FileUp",c1);/**
165
+ * @license lucide-react v0.471.2 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const s1=[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],am=se("FolderGit2",s1);/**
170
+ * @license lucide-react v0.471.2 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const r1=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],nm=se("FolderOpen",r1);/**
175
+ * @license lucide-react v0.471.2 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const o1=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],um=se("Folder",o1);/**
180
+ * @license lucide-react v0.471.2 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const f1=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],d1=se("GitBranch",f1);/**
185
+ * @license lucide-react v0.471.2 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const h1=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],m1=se("Layers",h1);/**
190
+ * @license lucide-react v0.471.2 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const p1=[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],v1=se("Maximize2",p1);/**
195
+ * @license lucide-react v0.471.2 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const y1=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],x1=se("MessageSquarePlus",y1);/**
200
+ * @license lucide-react v0.471.2 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const g1=[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],im=se("Minimize2",g1);/**
205
+ * @license lucide-react v0.471.2 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const b1=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],S1=se("Moon",b1);/**
210
+ * @license lucide-react v0.471.2 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const N1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],T1=se("PanelLeftClose",N1);/**
215
+ * @license lucide-react v0.471.2 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const w1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],E1=se("PanelLeftOpen",w1);/**
220
+ * @license lucide-react v0.471.2 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const _1=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],C1=se("Radio",_1);/**
225
+ * @license lucide-react v0.471.2 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const j1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],cm=se("RefreshCw",j1);/**
230
+ * @license lucide-react v0.471.2 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const A1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Wr=se("RotateCcw",A1);/**
235
+ * @license lucide-react v0.471.2 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const z1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],O1=se("Rows2",z1);/**
240
+ * @license lucide-react v0.471.2 - ISC
241
+ *
242
+ * This source code is licensed under the ISC license.
243
+ * See the LICENSE file in the root directory of this source tree.
244
+ */const M1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],D1=se("Search",M1);/**
245
+ * @license lucide-react v0.471.2 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const R1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],U1=se("ShieldAlert",R1);/**
250
+ * @license lucide-react v0.471.2 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const H1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],q1=se("ShieldCheck",H1);/**
255
+ * @license lucide-react v0.471.2 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ */const B1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Y1=se("Shield",B1);/**
260
+ * @license lucide-react v0.471.2 - ISC
261
+ *
262
+ * This source code is licensed under the ISC license.
263
+ * See the LICENSE file in the root directory of this source tree.
264
+ */const L1=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],G1=se("Sparkles",L1);/**
265
+ * @license lucide-react v0.471.2 - ISC
266
+ *
267
+ * This source code is licensed under the ISC license.
268
+ * See the LICENSE file in the root directory of this source tree.
269
+ */const V1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],k1=se("Sun",V1);/**
270
+ * @license lucide-react v0.471.2 - ISC
271
+ *
272
+ * This source code is licensed under the ISC license.
273
+ * See the LICENSE file in the root directory of this source tree.
274
+ */const X1=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Q1=se("Trash2",X1);/**
275
+ * @license lucide-react v0.471.2 - ISC
276
+ *
277
+ * This source code is licensed under the ISC license.
278
+ * See the LICENSE file in the root directory of this source tree.
279
+ */const Z1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Xr=se("TriangleAlert",Z1);/**
280
+ * @license lucide-react v0.471.2 - ISC
281
+ *
282
+ * This source code is licensed under the ISC license.
283
+ * See the LICENSE file in the root directory of this source tree.
284
+ */const J1=[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["path",{d:"M3 12h15a3 3 0 1 1 0 6h-4",key:"1cl7v7"}],["polyline",{points:"16 16 14 18 16 20",key:"1jznyi"}],["line",{x1:"3",x2:"10",y1:"18",y2:"18",key:"1h33wv"}]],K1=se("WrapText",J1);/**
285
+ * @license lucide-react v0.471.2 - ISC
286
+ *
287
+ * This source code is licensed under the ISC license.
288
+ * See the LICENSE file in the root directory of this source tree.
289
+ */const F1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yu=se("X",F1);/**
290
+ * @license lucide-react v0.471.2 - ISC
291
+ *
292
+ * This source code is licensed under the ISC license.
293
+ * See the LICENSE file in the root directory of this source tree.
294
+ */const $1=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],P1=se("Zap",$1),Uh=s=>{let o;const f=new Set,r=(E,C)=>{const x=typeof E=="function"?E(o):E;if(!Object.is(x,o)){const D=o;o=C??(typeof x!="object"||x===null)?x:Object.assign({},o,x),f.forEach(X=>X(o,D))}},p=()=>o,H={setState:r,getState:p,getInitialState:()=>R,subscribe:E=>(f.add(E),()=>f.delete(E))},R=o=s(r,p,H);return H},W1=(s=>s?Uh(s):Uh),I1=s=>s;function ex(s,o=I1){const f=Ur.useSyncExternalStore(s.subscribe,Ur.useCallback(()=>o(s.getState()),[s,o]),()=>o(s.getInitialState()));return Ur.useDebugValue(f),f}const Hh=s=>{const o=W1(s),f=r=>ex(o,r);return Object.assign(f,o),f},tx=(s=>s?Hh(s):Hh);function fl(){}fl.prototype={diff:function(o,f){var r,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=p.callback;typeof p=="function"&&(m=p,p={});var _=this;function H(z){return z=_.postProcess(z,p),m?(setTimeout(function(){m(z)},0),!0):z}o=this.castInput(o,p),f=this.castInput(f,p),o=this.removeEmpty(this.tokenize(o,p)),f=this.removeEmpty(this.tokenize(f,p));var R=f.length,E=o.length,C=1,x=R+E;p.maxEditLength!=null&&(x=Math.min(x,p.maxEditLength));var D=(r=p.timeout)!==null&&r!==void 0?r:1/0,X=Date.now()+D,V=[{oldPos:-1,lastComponent:void 0}],ee=this.extractCommon(V[0],f,o,0,p);if(V[0].oldPos+1>=E&&ee+1>=R)return H(qh(_,V[0].lastComponent,f,o,_.useLongestToken));var I=-1/0,pe=1/0;function G(){for(var z=Math.max(I,-C);z<=Math.min(pe,C);z+=2){var te=void 0,ye=V[z-1],J=V[z+1];ye&&(V[z-1]=void 0);var re=!1;if(J){var L=J.oldPos-z;re=J&&0<=L&&L<R}var ce=ye&&ye.oldPos+1<E;if(!re&&!ce){V[z]=void 0;continue}if(!ce||re&&ye.oldPos<J.oldPos?te=_.addToPath(J,!0,!1,0,p):te=_.addToPath(ye,!1,!0,1,p),ee=_.extractCommon(te,f,o,z,p),te.oldPos+1>=E&&ee+1>=R)return H(qh(_,te.lastComponent,f,o,_.useLongestToken));V[z]=te,te.oldPos+1>=E&&(pe=Math.min(pe,z-1)),ee+1>=R&&(I=Math.max(I,z+1))}C++}if(m)(function z(){setTimeout(function(){if(C>x||Date.now()>X)return m();G()||z()},0)})();else for(;C<=x&&Date.now()<=X;){var F=G();if(F)return F}},addToPath:function(o,f,r,p,m){var _=o.lastComponent;return _&&!m.oneChangePerToken&&_.added===f&&_.removed===r?{oldPos:o.oldPos+p,lastComponent:{count:_.count+1,added:f,removed:r,previousComponent:_.previousComponent}}:{oldPos:o.oldPos+p,lastComponent:{count:1,added:f,removed:r,previousComponent:_}}},extractCommon:function(o,f,r,p,m){for(var _=f.length,H=r.length,R=o.oldPos,E=R-p,C=0;E+1<_&&R+1<H&&this.equals(r[R+1],f[E+1],m);)E++,R++,C++,m.oneChangePerToken&&(o.lastComponent={count:1,previousComponent:o.lastComponent,added:!1,removed:!1});return C&&!m.oneChangePerToken&&(o.lastComponent={count:C,previousComponent:o.lastComponent,added:!1,removed:!1}),o.oldPos=R,E},equals:function(o,f,r){return r.comparator?r.comparator(o,f):o===f||r.ignoreCase&&o.toLowerCase()===f.toLowerCase()},removeEmpty:function(o){for(var f=[],r=0;r<o.length;r++)o[r]&&f.push(o[r]);return f},castInput:function(o){return o},tokenize:function(o){return Array.from(o)},join:function(o){return o.join("")},postProcess:function(o){return o}};function qh(s,o,f,r,p){for(var m=[],_;o;)m.push(o),_=o.previousComponent,delete o.previousComponent,o=_;m.reverse();for(var H=0,R=m.length,E=0,C=0;H<R;H++){var x=m[H];if(x.removed)x.value=s.join(r.slice(C,C+x.count)),C+=x.count;else{if(!x.added&&p){var D=f.slice(E,E+x.count);D=D.map(function(X,V){var ee=r[C+V];return ee.length>X.length?ee:X}),x.value=s.join(D)}else x.value=s.join(f.slice(E,E+x.count));E+=x.count,x.added||(C+=x.count)}}return m}function Bh(s,o){var f;for(f=0;f<s.length&&f<o.length;f++)if(s[f]!=o[f])return s.slice(0,f);return s.slice(0,f)}function Yh(s,o){var f;if(!s||!o||s[s.length-1]!=o[o.length-1])return"";for(f=0;f<s.length&&f<o.length;f++)if(s[s.length-(f+1)]!=o[o.length-(f+1)])return s.slice(-f);return s.slice(-f)}function Qr(s,o,f){if(s.slice(0,o.length)!=o)throw Error("string ".concat(JSON.stringify(s)," doesn't start with prefix ").concat(JSON.stringify(o),"; this is a bug"));return f+s.slice(o.length)}function Zr(s,o,f){if(!o)return s+f;if(s.slice(-o.length)!=o)throw Error("string ".concat(JSON.stringify(s)," doesn't end with suffix ").concat(JSON.stringify(o),"; this is a bug"));return s.slice(0,-o.length)+f}function mu(s,o){return Qr(s,o,"")}function Ki(s,o){return Zr(s,o,"")}function Lh(s,o){return o.slice(0,lx(s,o))}function lx(s,o){var f=0;s.length>o.length&&(f=s.length-o.length);var r=o.length;s.length<o.length&&(r=s.length);var p=Array(r),m=0;p[0]=0;for(var _=1;_<r;_++){for(o[_]==o[m]?p[_]=p[m]:p[_]=m;m>0&&o[_]!=o[m];)m=p[m];o[_]==o[m]&&m++}m=0;for(var H=f;H<s.length;H++){for(;m>0&&s[H]!=o[m];)m=p[m];s[H]==o[m]&&m++}return m}var $i="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",ax=new RegExp("[".concat($i,"]+|\\s+|[^").concat($i,"]"),"ug"),Pi=new fl;Pi.equals=function(s,o,f){return f.ignoreCase&&(s=s.toLowerCase(),o=o.toLowerCase()),s.trim()===o.trim()};Pi.tokenize=function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f;if(o.intlSegmenter){if(o.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');f=Array.from(o.intlSegmenter.segment(s),function(m){return m.segment})}else f=s.match(ax)||[];var r=[],p=null;return f.forEach(function(m){/\s/.test(m)?p==null?r.push(m):r.push(r.pop()+m):/\s/.test(p)?r[r.length-1]==p?r.push(r.pop()+m):r.push(p+m):r.push(m),p=m}),r};Pi.join=function(s){return s.map(function(o,f){return f==0?o:o.replace(/^\s+/,"")}).join("")};Pi.postProcess=function(s,o){if(!s||o.oneChangePerToken)return s;var f=null,r=null,p=null;return s.forEach(function(m){m.added?r=m:m.removed?p=m:((r||p)&&Gh(f,p,r,m),f=m,r=null,p=null)}),(r||p)&&Gh(f,p,r,null),s};function Gh(s,o,f,r){if(o&&f){var p=o.value.match(/^\s*/)[0],m=o.value.match(/\s*$/)[0],_=f.value.match(/^\s*/)[0],H=f.value.match(/\s*$/)[0];if(s){var R=Bh(p,_);s.value=Zr(s.value,_,R),o.value=mu(o.value,R),f.value=mu(f.value,R)}if(r){var E=Yh(m,H);r.value=Qr(r.value,H,E),o.value=Ki(o.value,E),f.value=Ki(f.value,E)}}else if(f)s&&(f.value=f.value.replace(/^\s*/,"")),r&&(r.value=r.value.replace(/^\s*/,""));else if(s&&r){var C=r.value.match(/^\s*/)[0],x=o.value.match(/^\s*/)[0],D=o.value.match(/\s*$/)[0],X=Bh(C,x);o.value=mu(o.value,X);var V=Yh(mu(C,X),D);o.value=Ki(o.value,V),r.value=Qr(r.value,C,V),s.value=Zr(s.value,C,C.slice(0,C.length-V.length))}else if(r){var ee=r.value.match(/^\s*/)[0],I=o.value.match(/\s*$/)[0],pe=Lh(I,ee);o.value=Ki(o.value,pe)}else if(s){var G=s.value.match(/\s*$/)[0],F=o.value.match(/^\s*/)[0],z=Lh(G,F);o.value=mu(o.value,z)}}var sm=new fl;sm.tokenize=function(s){var o=new RegExp("(\\r?\\n)|[".concat($i,"]+|[^\\S\\n\\r]+|[^").concat($i,"]"),"ug");return s.match(o)||[]};function nx(s,o,f){return sm.diff(s,o,f)}var Wi=new fl;Wi.tokenize=function(s,o){o.stripTrailingCr&&(s=s.replace(/\r\n/g,`
295
+ `));var f=[],r=s.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var p=0;p<r.length;p++){var m=r[p];p%2&&!o.newlineIsToken?f[f.length-1]+=m:f.push(m)}return f};Wi.equals=function(s,o,f){return f.ignoreWhitespace?((!f.newlineIsToken||!s.includes(`
296
+ `))&&(s=s.trim()),(!f.newlineIsToken||!o.includes(`
297
+ `))&&(o=o.trim())):f.ignoreNewlineAtEof&&!f.newlineIsToken&&(s.endsWith(`
298
+ `)&&(s=s.slice(0,-1)),o.endsWith(`
299
+ `)&&(o=o.slice(0,-1))),fl.prototype.equals.call(this,s,o,f)};function rm(s,o,f){return Wi.diff(s,o,f)}var ux=new fl;ux.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var ix=new fl;ix.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Jr(s){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Jr(s)}var vu=new fl;vu.useLongestToken=!0;vu.tokenize=Wi.tokenize;vu.castInput=function(s,o){var f=o.undefinedReplacement,r=o.stringifyReplacer,p=r===void 0?function(m,_){return typeof _>"u"?f:_}:r;return typeof s=="string"?s:JSON.stringify(Kr(s,null,null,p),p," ")};vu.equals=function(s,o,f){return fl.prototype.equals.call(vu,s.replace(/,([\r\n])/g,"$1"),o.replace(/,([\r\n])/g,"$1"),f)};function Kr(s,o,f,r,p){o=o||[],f=f||[],r&&(s=r(p,s));var m;for(m=0;m<o.length;m+=1)if(o[m]===s)return f[m];var _;if(Object.prototype.toString.call(s)==="[object Array]"){for(o.push(s),_=new Array(s.length),f.push(_),m=0;m<s.length;m+=1)_[m]=Kr(s[m],o,f,r,p);return o.pop(),f.pop(),_}if(s&&s.toJSON&&(s=s.toJSON()),Jr(s)==="object"&&s!==null){o.push(s),_={},f.push(_);var H=[],R;for(R in s)Object.prototype.hasOwnProperty.call(s,R)&&H.push(R);for(H.sort(),m=0;m<H.length;m+=1)R=H[m],_[R]=Kr(s[R],o,f,r,R);o.pop(),f.pop()}else _=s;return _}var Fr=new fl;Fr.tokenize=function(s){return s.slice()};Fr.join=Fr.removeEmpty=function(s){return s};const cx="1.3.0",Gr={chatgpt:128e3,claude:2e5,gemini:1e6},Vh={bug_fix:{label:"Fix a Bug",shortDesc:"Find the root cause and repair broken behavior",instruction:"Identify the root cause of the bug described below and make the cleanest minimal fix without breaking existing functionality."},add_feature:{label:"Add a Feature",shortDesc:"Build new functionality matching the existing code style",instruction:"Implement the requested feature cleanly, matching the project architecture, naming conventions, and coding patterns."},improve_code:{label:"Improve Code",shortDesc:"Refactor for clarity, speed, or better structure",instruction:"Refactor and improve the selected code for readability, maintainability, and performance while preserving external behavior."},review_code:{label:"Review Only",shortDesc:"Spot bugs, security risks, or edge cases",instruction:"Review the selected code carefully for bugs, edge cases, and security issues. Only include code edits if fixing clear defects."}};function sx(s){const o=f=>s<=f*.6?"great":s<=f*.88?"tight":"too_large";return{chatgpt:o(Gr.chatgpt),claude:o(Gr.claude),gemini:o(Gr.gemini)}}const kh="chat2diff_session_token";function rx(){const s=window.location.hash;if(s.startsWith("#token=")){const f=decodeURIComponent(s.slice(7));return sessionStorage.setItem(kh,f),window.history.replaceState({},"",window.location.pathname+window.location.search),f}const o=sessionStorage.getItem(kh);return o||""}const om=rx();async function ol(s,o){const f=await fetch(s,{...o,headers:{"Content-Type":"application/json","X-Chat2Diff-Token":om,...(o==null?void 0:o.headers)??{}}}),r=await f.json().catch(()=>({}));if(!f.ok||r.data===void 0)throw new Error(r.message||`Request failed (${f.status})`);return r.data}const Xt={getWorkspace:()=>ol("/api/v1/workspace"),listDirectories:s=>ol(`/api/v1/filesystem/list${s?`?dir=${encodeURIComponent(s)}`:""}`),openWorkspace:s=>ol("/api/v1/workspace/open",{method:"POST",body:JSON.stringify({repoPath:s})}),getFileTree:()=>ol("/api/v1/files/tree"),packContext:s=>ol("/api/v1/pack",{method:"POST",body:JSON.stringify(s)}),parsePatch:s=>ol("/api/v1/patch/parse",{method:"POST",body:JSON.stringify({rawText:s})}),applyPatch:(s,o,f)=>ol("/api/v1/patch/apply",{method:"POST",body:JSON.stringify({parseId:s,selectedFilePaths:o,customContents:f})}),getHistory:()=>ol("/api/v1/history"),undoSnapshot:s=>ol(`/api/v1/history/${encodeURIComponent(s)}/undo`,{method:"POST"}),toggleWatcher:s=>ol("/api/v1/watcher/toggle",{method:"POST",body:JSON.stringify({enabled:s})})};function ox(s,o){let f=null,r=!1,p=1e3,m=null;const _=()=>{if(r)return;const R=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws?token=${encodeURIComponent(om)}`;f=new WebSocket(R),f.onopen=()=>{p=1e3,o(!0)},f.onmessage=E=>{try{s(JSON.parse(String(E.data)))}catch{}},f.onclose=()=>{o(!1),r||(m=window.setTimeout(_,p),p=Math.min(p*1.5,6e3))},f.onerror=()=>{f==null||f.close()}};return _(),()=>{r=!0,m&&window.clearTimeout(m),f==null||f.close()}}function fx(s,o){const f=new Blob([o],{type:"text/plain;charset=utf-8"}),r=URL.createObjectURL(f),p=document.createElement("a");p.href=r,p.download=s,document.body.appendChild(p),p.click(),document.body.removeChild(p),URL.revokeObjectURL(r)}function Fi(s){const o=[];for(const f of s)f.type==="file"?o.push(f):f.children&&o.push(...Fi(f.children));return o}function fm(s){return`chat2diff_selection::${s.toLowerCase()}`}function dx(s){if(typeof window>"u"||!s)return[];try{const o=localStorage.getItem(fm(s));if(!o)return[];const f=JSON.parse(o);return Array.isArray(f)?f.filter(r=>typeof r=="string"):[]}catch{return[]}}function pu(s,o){if(!(typeof window>"u"||!s))try{localStorage.setItem(fm(s),JSON.stringify(Array.from(o)))}catch{}}const dm="chat2diff_patch_format",hm="chat2diff_redact_secrets",mm="chat2diff_auto_jump_review",pm="chat2diff_file_bundle_style";function Xh(){if(typeof window>"u")return null;const s=localStorage.getItem(dm);return s==="unified_diff"||s==="search_replace"?s:null}function hx(){if(typeof window>"u")return!0;const s=localStorage.getItem(hm);return s===null?!0:s==="true"}function mx(){if(typeof window>"u")return!0;const s=localStorage.getItem(mm);return s===null?!0:s==="true"}function px(){return typeof window>"u"?"all_in_one":localStorage.getItem(pm)==="separate_prompt"?"separate_prompt":"all_in_one"}function Qh(s,o){const f=rm(s,o);let r=0,p=0;for(const m of f){const _=m.count??0;m.added&&(r+=_),m.removed&&(p+=_)}return{additions:r,deletions:p}}function yn(s,o,f,r){if(!s&&o.size===0&&f.size===0&&r.size===0)return null;const p=Array.from(o),m=Array.from(f).filter(E=>!o.has(E)),_=Array.from(r).filter(E=>!o.has(E)&&!f.has(E)),H=s?s.files.filter(E=>E.status==="ready"&&!o.has(E.filePath)&&!f.has(E.filePath)&&!r.has(E.filePath)).map(E=>E.filePath):[],R=s?s.files.filter(E=>E.status==="failed"||E.status==="blocked").map(E=>({filePath:E.filePath,reason:E.errorReason??"Could not apply cleanly"})):[];return{appliedFiles:p,partiallyAppliedFiles:m,notAppliedFiles:H,failedFiles:R,undoneFiles:_}}const vm=typeof window<"u"&&(localStorage.getItem("chat2diff_theme")==="dark"||!localStorage.getItem("chat2diff_theme")&&window.matchMedia("(prefers-color-scheme: dark)").matches);typeof document<"u"&&document.documentElement.classList.toggle("dark",vm);const la=tx((s,o)=>({activeStep:"prepare",repoPickerOpen:!1,historyDrawerOpen:!1,darkMode:vm,autoJumpToReview:mx(),filePanelCollapsed:!1,socketConnected:!1,toasts:[],repoPath:"",repoName:"Loading...",isGitRepo:!1,gitBranch:null,clipboardWatchEnabled:!0,clipboardAvailable:!0,recentRepos:[],fileTree:[],totalFiles:0,skippedSecretsCount:0,skippedBinaryCount:0,changedPaths:[],selectedPaths:new Set,searchQuery:"",isLoadingTree:!1,chatMode:"new_chat",followUpAttachMode:"smart",includeSelectedInFollowUp:!1,turnSync:null,preset:"bug_fix",taskDescription:"",errorLog:"",patchFormatPreference:Xh()??"search_replace",fileBundleStyle:px(),redactSecrets:hx(),lastPackResult:null,isPacking:!1,rawPasteInput:"",activeParse:null,checkedApplyPaths:new Set,appliedFilePaths:new Set,partiallyAppliedFilePaths:new Set,undoneFilePaths:new Set,appliedFileSnapshots:{},selectedPreviewFile:null,hasUnreadPatch:!1,isParsing:!1,isApplying:!1,snapshots:[],setStep:f=>s(r=>({activeStep:f,hasUnreadPatch:f==="review"?!1:r.hasUnreadPatch})),setRepoPickerOpen:f=>s({repoPickerOpen:f}),setHistoryDrawerOpen:f=>{s({historyDrawerOpen:f}),f&&o().refreshHistory()},toggleDarkMode:()=>s(f=>{const r=!f.darkMode;return document.documentElement.classList.toggle("dark",r),localStorage.setItem("chat2diff_theme",r?"dark":"light"),{darkMode:r}}),toggleAutoJumpToReview:()=>s(f=>{const r=!f.autoJumpToReview;return typeof window<"u"&&localStorage.setItem(mm,String(r)),{autoJumpToReview:r}}),setFilePanelCollapsed:f=>s({filePanelCollapsed:f}),setSocketConnected:f=>s({socketConnected:f}),pushToast:(f,r,p,m)=>{const _=`${Date.now()}_${Math.random().toString(36).slice(2,6)}`;s(H=>({toasts:[...H.toasts.slice(-3),{id:_,tone:f,text:r,undoSnapshotId:p,actionLabel:m==null?void 0:m.label,actionStep:m==null?void 0:m.step}]})),window.setTimeout(()=>{s(H=>({toasts:H.toasts.filter(R=>R.id!==_)}))},p||m?9e3:4500)},dismissToast:f=>s(r=>({toasts:r.toasts.filter(p=>p.id!==f)})),bootstrap:async()=>{try{const f=await Xt.getWorkspace(),r=Xh();s({repoPath:f.repoPath,repoName:f.repoName,isGitRepo:f.isGitRepo,gitBranch:f.gitBranch,clipboardWatchEnabled:f.clipboardWatchEnabled,clipboardAvailable:f.clipboardAvailable,patchFormatPreference:r??f.defaultPatchFormat??o().patchFormatPreference,recentRepos:f.recentRepos}),await Promise.all([o().refreshTree(),o().refreshHistory()])}catch(f){o().pushToast("error",f instanceof Error?f.message:"Failed to connect to server.")}},refreshTree:async(f=!1)=>{f||s({isLoadingTree:!0});try{const r=await Xt.getFileTree(),p=new Set(Fi(r.tree).map(R=>R.path)),m=o().selectedPaths,_=m.size>0?Array.from(m):dx(o().repoPath),H=new Set(_.filter(R=>p.has(R)));s({fileTree:r.tree,totalFiles:r.totalFiles,skippedSecretsCount:r.skippedSecretsCount,skippedBinaryCount:r.skippedBinaryCount,changedPaths:r.changedPaths??[],selectedPaths:H,isLoadingTree:!1})}catch(r){s({isLoadingTree:!1}),o().pushToast("error",r instanceof Error?r.message:"Could not scan project files.")}},refreshHistory:async()=>{try{const{snapshots:f}=await Xt.getHistory();s({snapshots:f})}catch{}},switchRepo:async f=>{try{await Xt.openWorkspace(f),s({repoPickerOpen:!1,selectedPaths:new Set,activeParse:null,checkedApplyPaths:new Set,appliedFilePaths:new Set,partiallyAppliedFilePaths:new Set,undoneFilePaths:new Set,appliedFileSnapshots:{},selectedPreviewFile:null,lastPackResult:null,chatMode:"new_chat",turnSync:null,activeStep:"prepare"}),await o().bootstrap(),o().pushToast("success",`Opened project: ${o().repoName}`)}catch(r){o().pushToast("error",r instanceof Error?r.message:"Could not switch project.")}},toggleWatcher:async()=>{const f=!o().clipboardWatchEnabled;try{const r=await Xt.toggleWatcher(f);s({clipboardWatchEnabled:r.enabled,clipboardAvailable:r.available})}catch(r){o().pushToast("error",r instanceof Error?r.message:"Could not toggle watcher.")}},setWatcherStatus:(f,r)=>s({clipboardWatchEnabled:f,clipboardAvailable:r}),setSearchQuery:f=>s({searchQuery:f}),toggleNodeSelection:f=>{const r=new Set(o().selectedPaths);if(f.type==="file")r.has(f.path)?r.delete(f.path):r.add(f.path);else{const p=Fi(f.children??[]),m=p.length>0&&p.every(_=>r.has(_.path));for(const _ of p)m?r.delete(_.path):r.add(_.path)}s({selectedPaths:r}),pu(o().repoPath,r)},selectAllFiles:()=>{const f=Fi(o().fileTree).map(p=>p.path),r=new Set(f);s({selectedPaths:r}),pu(o().repoPath,r)},selectChangedFiles:()=>{const f=o().changedPaths;if(f.length===0){o().pushToast("info","No uncommitted Git changes found.");return}const r=new Set(f);s({selectedPaths:r}),pu(o().repoPath,r),o().pushToast("info",`Selected ${f.length} changed file(s).`)},removePathsFromSelection:f=>{const r=new Set(o().selectedPaths);for(const p of f)r.delete(p);s({selectedPaths:r}),pu(o().repoPath,r)},clearSelection:()=>{s({selectedPaths:new Set}),pu(o().repoPath,new Set)},setChatMode:f=>s({chatMode:f}),setFollowUpAttachMode:f=>s({followUpAttachMode:f,includeSelectedInFollowUp:f==="all"}),setIncludeSelectedInFollowUp:f=>s({includeSelectedInFollowUp:f,followUpAttachMode:f?"all":"smart"}),startNewChat:()=>s({chatMode:"new_chat",followUpAttachMode:"smart",turnSync:null,includeSelectedInFollowUp:!1,lastPackResult:null}),startFollowUpFromReview:()=>{const f=o(),r=yn(f.activeParse,f.appliedFilePaths,f.partiallyAppliedFilePaths,f.undoneFilePaths);s({activeStep:"prepare",chatMode:"follow_up",followUpAttachMode:"smart",includeSelectedInFollowUp:!1,turnSync:r,taskDescription:"",errorLog:"",lastPackResult:null})},clearTurnSync:()=>s({turnSync:null}),setPreset:f=>s({preset:f}),setTaskDescription:f=>s({taskDescription:f}),setErrorLog:f=>s({errorLog:f}),setPatchFormat:f=>{typeof window<"u"&&localStorage.setItem(dm,f),s({patchFormatPreference:f})},setFileBundleStyle:f=>{typeof window<"u"&&localStorage.setItem(pm,f),s({fileBundleStyle:f})},setRedactSecrets:f=>{typeof window<"u"&&localStorage.setItem(hm,String(f)),s({redactSecrets:f})},packContext:async(f,r)=>{const p=o();if(p.chatMode==="new_chat"&&p.selectedPaths.size===0)return p.pushToast("error","Pick at least one file on the left first."),null;if(!p.taskDescription.trim())return p.pushToast("error","Describe what you want the AI to do first."),null;s({isPacking:!0});try{const m=await Xt.packContext({selectedPaths:Array.from(p.selectedPaths),preset:p.preset,taskDescription:p.taskDescription,errorLog:p.errorLog,patchFormatPreference:p.patchFormatPreference,redactSecrets:p.redactSecrets,mode:f,chatMode:p.chatMode,turnSync:p.chatMode==="follow_up"?p.turnSync:null,includeSelectedInFollowUp:p.includeSelectedInFollowUp,followUpAttachMode:p.chatMode==="follow_up"?p.followUpAttachMode:void 0,fileBundleStyle:(r==null?void 0:r.fileBundleStyle)??p.fileBundleStyle,copyFileToClipboard:r==null?void 0:r.copyFileToClipboard});return s({lastPackResult:m,isPacking:!1}),m}catch(m){return s({isPacking:!1}),p.pushToast("error",m instanceof Error?m.message:"Failed to prepare prompt."),null}},setRawPasteInput:f=>s({rawPasteInput:f}),receiveIncomingParse:(f,r)=>{var x;const p=f.files.filter(D=>D.status==="ready").map(D=>D.filePath),m=((x=f.files[0])==null?void 0:x.filePath)??null,{activeStep:_,autoJumpToReview:H}=o(),R=_==="review",E=r&&H&&!R,C=yn(f,new Set,new Set,new Set);s({activeParse:f,checkedApplyPaths:new Set(p),appliedFilePaths:new Set,partiallyAppliedFilePaths:new Set,undoneFilePaths:new Set,appliedFileSnapshots:{},selectedPreviewFile:m,turnSync:C,activeStep:E?"review":_,hasUnreadPatch:r&&!R&&!E}),r&&o().pushToast("info",E?`Loaded AI changes for ${f.summary.totalFiles} file(s) from clipboard.`:`Detected AI changes for ${f.summary.totalFiles} file(s).`,void 0,!R&&!E?{label:"Review Now",step:"review"}:void 0)},parseRawText:async f=>{const r=f.trim();if(!r){o().pushToast("error","Paste the AI reply first.");return}s({isParsing:!0});try{const p=await Xt.parsePatch(r);s({isParsing:!1,activeStep:"review",rawPasteInput:r}),o().receiveIncomingParse(p,!1)}catch(p){s({isParsing:!1}),o().pushToast("error",p instanceof Error?p.message:"Could not parse AI reply.")}},parseManualPaste:async()=>{await o().parseRawText(o().rawPasteInput)},toggleApplyFile:f=>{const r=new Set(o().checkedApplyPaths);r.has(f)?r.delete(f):r.add(f),s({checkedApplyPaths:r})},setAllReadyApply:f=>{const r=o().activeParse;if(!r)return;if(!f){s({checkedApplyPaths:new Set});return}const p=o().appliedFilePaths;s({checkedApplyPaths:new Set(r.files.filter(m=>m.status==="ready"&&!p.has(m.filePath)).map(m=>m.filePath))})},setSelectedPreviewFile:f=>s({selectedPreviewFile:f}),clearActiveParse:()=>s({activeParse:null,checkedApplyPaths:new Set,appliedFilePaths:new Set,partiallyAppliedFilePaths:new Set,undoneFilePaths:new Set,appliedFileSnapshots:{},selectedPreviewFile:null}),applyCheckedFiles:async f=>{const{activeParse:r,checkedApplyPaths:p,appliedFilePaths:m,partiallyAppliedFilePaths:_,undoneFilePaths:H,appliedFileSnapshots:R}=o(),E=Array.from(p).filter(C=>!m.has(C));if(!(!r||E.length===0)){s({isApplying:!0});try{const C=await Xt.applyPatch(r.parseId,E,f),x=new Set(C.appliedFiles),D=new Set(m),X=new Set(_),V=new Set(H),ee={...R},I=new Set(p),pe=r.files.map(F=>{if(!x.has(F.filePath))return F;I.delete(F.filePath),V.delete(F.filePath);const z=f==null?void 0:f[F.filePath];if(z!==void 0&&z!==F.proposedContent){X.add(F.filePath);const te=Qh(z,F.proposedContent);return{...F,originalContent:z,...te}}return D.add(F.filePath),X.delete(F.filePath),ee[F.filePath]=C.snapshotId,F}),G={...r,files:pe};s({isApplying:!1,activeParse:G,appliedFilePaths:D,partiallyAppliedFilePaths:X,undoneFilePaths:V,appliedFileSnapshots:ee,checkedApplyPaths:I,turnSync:yn(G,D,X,V)}),await Promise.all([o().refreshTree(!0),o().refreshHistory()]),o().pushToast("success",`Applied changes to ${C.appliedFiles.length} file(s).`,C.snapshotId)}catch(C){s({isApplying:!1}),o().pushToast("error",C instanceof Error?C.message:"Failed to apply changes.")}}},applySingleFile:async(f,r)=>{const{activeParse:p,appliedFilePaths:m}=o();if(!p||m.has(f))return;const _=p.files.find(H=>H.filePath===f);if(!(!_||_.status!=="ready")){if(r!==void 0&&r!==_.proposedContent){await o().applyPartialFileContent(f,r);return}s({isApplying:!0});try{const H=await Xt.applyPatch(p.parseId,[f]),R=new Set(o().appliedFilePaths);R.add(f);const E=new Set(o().partiallyAppliedFilePaths);E.delete(f);const C=new Set(o().undoneFilePaths);C.delete(f);const x=new Set(o().checkedApplyPaths);x.delete(f);const D={...o().appliedFileSnapshots,[f]:H.snapshotId};s({isApplying:!1,appliedFilePaths:R,partiallyAppliedFilePaths:E,undoneFilePaths:C,appliedFileSnapshots:D,checkedApplyPaths:x,turnSync:yn(p,R,E,C)}),await Promise.all([o().refreshTree(!0),o().refreshHistory()]),o().pushToast("success",`Applied ${f}.`,H.snapshotId)}catch(H){s({isApplying:!1}),o().pushToast("error",H instanceof Error?H.message:"Failed to apply file.")}}},applyPartialFileContent:async(f,r)=>{const{activeParse:p}=o();if(!p)return;const m=p.files.find(_=>_.filePath===f);if(!(!m||m.status!=="ready")){s({isApplying:!0});try{const _=await Xt.applyPatch(p.parseId,[f],{[f]:r}),H=r===m.proposedContent,R=H?{additions:0,deletions:0}:Qh(r,m.proposedContent),E=new Set(o().appliedFilePaths),C=new Set(o().partiallyAppliedFilePaths),x=new Set(o().undoneFilePaths),D=new Set(o().checkedApplyPaths),X={...o().appliedFileSnapshots};x.delete(f),H?(E.add(f),C.delete(f),D.delete(f),X[f]=_.snapshotId):C.add(f);const V=p.files.map(I=>I.filePath===f?{...I,originalContent:r,...R}:I),ee={...p,files:V};s({isApplying:!1,activeParse:ee,appliedFilePaths:E,partiallyAppliedFilePaths:C,undoneFilePaths:x,appliedFileSnapshots:X,checkedApplyPaths:D,turnSync:yn(ee,E,C,x)}),await Promise.all([o().refreshTree(!0),o().refreshHistory()]),o().pushToast("success",H?`Applied all changes to ${f}.`:`Applied change block to ${f}.`,_.snapshotId)}catch(_){s({isApplying:!1}),o().pushToast("error",_ instanceof Error?_.message:"Failed to apply change.")}}},undoSnapshotById:async f=>{try{const r=await Xt.undoSnapshot(f),p=new Set([...r.restoredFiles,...r.removedCreatedFiles]),m=new Set(o().appliedFilePaths),_=new Set(o().partiallyAppliedFilePaths),H=new Set(o().undoneFilePaths),R={...o().appliedFileSnapshots};for(const C of p)m.delete(C),_.delete(C),H.add(C),delete R[C];s({appliedFilePaths:m,partiallyAppliedFilePaths:_,undoneFilePaths:H,appliedFileSnapshots:R,turnSync:yn(o().activeParse,m,_,H)});const E=p.size;await Promise.all([o().refreshTree(!0),o().refreshHistory()]),o().pushToast("success",`Restored ${E} file(s) to their previous state.`)}catch(r){o().pushToast("error",r instanceof Error?r.message:"Could not undo snapshot.")}}}));function vx(){const{historyDrawerOpen:s,setHistoryDrawerOpen:o,snapshots:f,undoSnapshotById:r}=la();return s?c.jsx("div",{className:"fixed inset-0 z-50 flex justify-end bg-black/40 backdrop-blur-xs",children:c.jsxs("div",{className:"w-full max-w-md bg-[var(--bg-surface)] h-full shadow-2xl border-l border-[var(--border-default)] flex flex-col",children:[c.jsxs("div",{className:"p-4 border-b border-[var(--border-default)] flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-sm font-semibold",children:"Applied Changes History"}),c.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"Every apply creates a local backup so you can undo safely."})]}),c.jsx("button",{type:"button",onClick:()=>o(!1),className:"p-1.5 rounded-lg hover:bg-[var(--bg-subtle)] cursor-pointer",children:c.jsx(yu,{className:"h-4 w-4"})})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-3",children:f.length===0?c.jsx("div",{className:"text-center py-12 text-sm text-[var(--text-muted)]",children:"No changes applied in this project yet."}):f.map(p=>c.jsxs("div",{className:"p-3.5 rounded-xl border border-[var(--border-default)] bg-[var(--bg-canvas)] space-y-2.5",children:[c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium",children:p.summary}),c.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:new Date(p.appliedAt).toLocaleString()})]}),p.reverted?c.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-[var(--bg-subtle)] text-[var(--text-muted)]",children:"Undone"}):c.jsxs("button",{type:"button",onClick:()=>void r(p.snapshotId),className:"flex items-center gap-1 px-2.5 py-1 rounded-lg text-xs font-medium border border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300 hover:bg-amber-500/20 cursor-pointer",children:[c.jsx(Wr,{className:"h-3 w-3"}),"Undo"]})]}),c.jsx("ul",{className:"space-y-1 text-xs font-mono text-[var(--text-secondary)]",children:p.files.map(m=>c.jsxs("li",{className:"truncate",children:[c.jsxs("span",{className:"uppercase text-[10px] mr-1.5 text-[var(--text-muted)]",children:["[",m.action,"]"]}),m.filePath]},m.filePath))})]},p.snapshotId))})]})}):null}function yx(){const{repoPickerOpen:s,setRepoPickerOpen:o,repoPath:f,recentRepos:r,switchRepo:p}=la(),[m,_]=me.useState(null),[H,R]=me.useState(""),[E,C]=me.useState(!1),[x,D]=me.useState(null),X=async V=>{C(!0),D(null);try{const ee=await Xt.listDirectories(V);_(ee),R(ee.currentPath)}catch(ee){D(ee instanceof Error?ee.message:"Unable to open folder.")}finally{C(!1)}};return me.useEffect(()=>{s&&X(f||void 0)},[s,f]),s?c.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-xs flex items-center justify-center p-4",children:c.jsxs("div",{className:"bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-2xl w-full max-w-xl max-h-[85vh] flex flex-col shadow-2xl overflow-hidden",children:[c.jsxs("div",{className:"px-5 py-4 border-b border-[var(--border-default)] flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-base font-semibold",children:"Choose Project Folder"}),c.jsx("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:"Pick any local folder on your computer to work on with Chat2Diff."})]}),c.jsx("button",{type:"button",onClick:()=>o(!1),className:"p-1.5 rounded-lg hover:bg-[var(--bg-subtle)] cursor-pointer",children:c.jsx(yu,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"p-4 space-y-4 overflow-y-auto flex-1",children:[r.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-medium text-[var(--text-muted)] mb-2",children:"Recent Projects"}),c.jsx("div",{className:"flex flex-wrap gap-2",children:r.slice(0,6).map(V=>c.jsx("button",{type:"button",onClick:()=>void p(V.path),className:`px-3 py-1.5 rounded-lg text-xs border transition cursor-pointer ${V.path.toLowerCase()===f.toLowerCase()?"border-blue-500 bg-blue-500/10 text-blue-600 dark:text-blue-400 font-medium":"border-[var(--border-default)] hover:bg-[var(--bg-subtle)]"}`,title:V.path,children:V.name},V.path))})]}),c.jsxs("form",{onSubmit:V=>{V.preventDefault(),X(H)},className:"flex gap-2",children:[c.jsx("input",{type:"text",value:H,onChange:V=>R(V.target.value),placeholder:"Paste or type a folder path...",className:"flex-1 px-3 py-2 text-xs font-mono rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] focus:outline-none focus:ring-2 focus:ring-blue-500"}),c.jsx("button",{type:"submit",className:"px-3 py-2 rounded-lg text-xs font-medium border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:"Go"})]}),x&&c.jsx("div",{className:"text-xs text-red-600 dark:text-red-400 bg-red-500/10 px-3 py-2 rounded-lg",children:x}),c.jsxs("div",{className:"border border-[var(--border-default)] rounded-lg overflow-hidden",children:[c.jsxs("div",{className:"px-3 py-2 bg-[var(--bg-subtle)] border-b border-[var(--border-default)] flex items-center justify-between gap-2",children:[c.jsx("span",{className:"text-xs font-mono truncate text-[var(--text-secondary)]",children:(m==null?void 0:m.currentPath)??"..."}),(m==null?void 0:m.parentPath)&&c.jsxs("button",{type:"button",onClick:()=>void X(m.parentPath),className:"flex items-center gap-1 text-xs px-2 py-1 rounded border border-[var(--border-default)] bg-[var(--bg-surface)] hover:bg-[var(--bg-canvas)] shrink-0 cursor-pointer",children:[c.jsx(My,{className:"h-3 w-3"}),"Up"]})]}),c.jsx("div",{className:"max-h-64 overflow-y-auto divide-y divide-[var(--border-default)]",children:E?c.jsx("div",{className:"p-4 text-xs text-[var(--text-muted)]",children:"Loading folders..."}):m&&m.entries.length>0?m.entries.map(V=>c.jsxs("div",{className:"px-3 py-2 flex items-center justify-between hover:bg-[var(--bg-subtle)] transition",children:[c.jsxs("button",{type:"button",onClick:()=>void X(V.path),className:"flex items-center gap-2 text-sm text-left flex-1 min-w-0 cursor-pointer",children:[V.isGitRepo?c.jsx(am,{className:"h-4 w-4 text-blue-500 shrink-0"}):c.jsx(um,{className:"h-4 w-4 text-[var(--text-muted)] shrink-0"}),c.jsx("span",{className:"truncate",children:V.name})]}),c.jsx("button",{type:"button",onClick:()=>void p(V.path),className:"ml-2 px-2.5 py-1 rounded text-xs font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-500/10 cursor-pointer",children:"Open"})]},V.path)):c.jsx("div",{className:"p-4 text-xs text-[var(--text-muted)]",children:"No subfolders here."})})]})]}),c.jsxs("div",{className:"px-5 py-3 border-t border-[var(--border-default)] bg-[var(--bg-subtle)] flex items-center justify-between",children:[c.jsxs("span",{className:"text-xs text-[var(--text-muted)] truncate max-w-md",children:["Current folder: ",m==null?void 0:m.currentPath]}),c.jsxs("button",{type:"button",disabled:!m,onClick:()=>m&&void p(m.currentPath),className:"flex items-center gap-1.5 px-4 py-2 rounded-lg text-xs font-medium bg-blue-600 hover:bg-blue-700 text-white disabled:opacity-50 cursor-pointer",children:[c.jsx(Wt,{className:"h-3.5 w-3.5"}),"Use This Folder"]})]})]})}):null}function ym(s){return s.type==="file"?[s.path]:(s.children??[]).flatMap(ym)}function xm(s){const o=[];for(const f of s)f.type==="directory"&&(o.push(f.path),f.children&&o.push(...xm(f.children)));return o}function gm(s,o){if(!o.trim())return s;const f=o.toLowerCase(),r=[];for(const p of s)if(p.type==="file")p.path.toLowerCase().includes(f)&&r.push(p);else{const m=gm(p.children??[],f);(m.length>0||p.path.toLowerCase().includes(f))&&r.push({...p,children:m.length>0?m:p.children})}return r}function xx({state:s,onChange:o}){const f=me.useRef(null);return me.useEffect(()=>{f.current&&(f.current.indeterminate=s==="indeterminate")},[s]),c.jsx("input",{ref:f,type:"checkbox",checked:s==="checked",onChange:o,className:"h-4 w-4 rounded border-[var(--border-default)] accent-blue-600 cursor-pointer shrink-0"})}function Vr({level:s}){return s==="great"?c.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",children:"Fits easily"}):s==="tight"?c.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-amber-500/10 text-amber-600 dark:text-amber-400",children:"Tight fit"}):c.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-red-500/10 text-red-600 dark:text-red-400",children:"Too large"})}function gx(){const{fileTree:s,totalFiles:o,skippedSecretsCount:f,skippedBinaryCount:r,changedPaths:p,selectedPaths:m,searchQuery:_,isLoadingTree:H,setSearchQuery:R,toggleNodeSelection:E,selectAllFiles:C,selectChangedFiles:x,removePathsFromSelection:D,clearSelection:X,refreshTree:V,setFilePanelCollapsed:ee}=la(),[I,pe]=me.useState(new Set);me.useEffect(()=>{s.length!==0&&pe(L=>{if(L.size>0)return L;const ce=s.filter(le=>le.type==="directory").slice(0,6).map(le=>le.path);return new Set(ce)})},[s]);const G=me.useMemo(()=>gm(s,_),[s,_]),F=me.useMemo(()=>{const L=new Map,ce=le=>{for(const ne of le)ne.type==="file"?L.set(ne.path,ne.estimatedTokens):ne.children&&ce(ne.children)};return ce(s),L},[s]),z=me.useMemo(()=>{let L=0;for(const ce of m)L+=F.get(ce)??0;return L},[m,F]),te=me.useMemo(()=>sx(z),[z]),ye=me.useMemo(()=>{const L=new Map;for(const ce of m){const le=ce.lastIndexOf("/"),ne=le===-1?"(root)":ce.slice(0,le),Ee=L.get(ne)??[];Ee.push(ce),L.set(ne,Ee)}return Array.from(L.entries()).sort((ce,le)=>le[1].length-ce[1].length)},[m]),J=L=>{pe(ce=>{const le=new Set(ce);return le.has(L)?le.delete(L):le.add(L),le})},re=(L,ce)=>{const le=ym(L),ne=le.filter(Ne=>m.has(Ne)).length,Ee=ne===0?"unchecked":ne===le.length?"checked":"indeterminate",Fe=_.trim().length>0||I.has(L.path);return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 py-1.5 px-2 rounded-lg hover:bg-[var(--bg-subtle)] transition text-sm",style:{paddingLeft:`${ce*18+8}px`},children:[L.type==="directory"?c.jsx("button",{type:"button",onClick:()=>J(L.path),className:"p-0.5 text-[var(--text-muted)] hover:text-[var(--text-primary)] cursor-pointer",children:Fe?c.jsx(Uy,{className:"h-4 w-4"}):c.jsx(tm,{className:"h-4 w-4"})}):c.jsx("span",{className:"w-5 shrink-0"}),c.jsx(xx,{state:Ee,onChange:()=>E(L)}),L.type==="directory"?c.jsxs("button",{type:"button",onClick:()=>J(L.path),className:"flex items-center gap-2 flex-1 min-w-0 text-left cursor-pointer",children:[c.jsx(um,{className:"h-4 w-4 text-blue-500 shrink-0"}),c.jsx("span",{className:"font-medium truncate",children:L.name}),c.jsxs("span",{className:"text-xs text-[var(--text-muted)] shrink-0",children:[L.fileCount," ",L.fileCount===1?"file":"files"]})]}):c.jsxs("button",{type:"button",onClick:()=>E(L),className:"flex items-center justify-between gap-2 flex-1 min-w-0 text-left cursor-pointer",children:[c.jsxs("span",{className:"flex items-center gap-2 min-w-0",children:[c.jsx(l1,{className:"h-4 w-4 text-[var(--text-muted)] shrink-0"}),c.jsx("span",{className:"truncate",children:L.name})]}),c.jsxs("span",{className:"text-xs text-[var(--text-muted)] font-mono shrink-0",children:["~",L.estimatedTokens.toLocaleString()," tok"]})]})]}),L.type==="directory"&&Fe&&L.children&&c.jsx("div",{children:L.children.map(Ne=>re(Ne,ce+1))})]},L.path)};return c.jsxs("div",{className:"rounded-xl border border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden flex flex-col flex-1 min-h-[420px] lg:max-h-[calc(100vh-148px)]",children:[c.jsxs("div",{className:"p-3.5 border-b border-[var(--border-default)] space-y-2.5 shrink-0",children:[c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("h2",{className:"font-semibold text-sm",children:"Project Files"}),c.jsxs("p",{className:"text-[11px] text-[var(--text-muted)]",children:[m.size," of ",o," selected (~",z.toLocaleString()," tok)"]})]}),c.jsx("button",{type:"button",onClick:()=>ee(!0),title:"Hide file tree for more writing space",className:"hidden lg:inline-flex p-1.5 rounded-lg border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] text-[var(--text-muted)] hover:text-[var(--text-primary)] cursor-pointer",children:c.jsx(T1,{className:"h-3.5 w-3.5"})})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[c.jsxs("button",{type:"button",onClick:C,className:"text-[11px] px-2 py-1 rounded-md border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:["All (",o,")"]}),p.length>0&&c.jsxs("button",{type:"button",onClick:x,title:"Select only uncommitted Git changes",className:"inline-flex items-center gap-1 text-[11px] px-2 py-1 rounded-md border border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300 hover:bg-blue-500/20 cursor-pointer",children:[c.jsx(d1,{className:"h-3 w-3"}),c.jsxs("span",{children:["Changed (",p.length,")"]})]}),c.jsx("button",{type:"button",onClick:X,className:"text-[11px] px-2 py-1 rounded-md border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:"Clear"}),c.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[c.jsx("button",{type:"button",onClick:()=>pe(new Set(xm(s))),title:"Expand all folders",className:"p-1 rounded-md border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:c.jsx(Ly,{className:"h-3.5 w-3.5"})}),c.jsx("button",{type:"button",onClick:()=>pe(new Set),title:"Collapse all folders",className:"p-1 rounded-md border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:c.jsx(im,{className:"h-3.5 w-3.5"})}),c.jsx("button",{type:"button",onClick:()=>void V(),title:"Refresh files from disk",className:"p-1 rounded-md border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:c.jsx(cm,{className:`h-3.5 w-3.5 ${H?"animate-spin":""}`})})]})]}),c.jsxs("div",{className:"relative",children:[c.jsx(D1,{className:"h-3.5 w-3.5 text-[var(--text-muted)] absolute left-2.5 top-1/2 -translate-y-1/2"}),c.jsx("input",{type:"text",value:_,onChange:L=>R(L.target.value),placeholder:"Filter folders or files...",className:"w-full pl-8 pr-3 py-1.5 text-xs rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]}),c.jsx("div",{className:"p-2 overflow-y-auto flex-1 min-h-0",children:H?c.jsx("div",{className:"p-5 text-xs text-[var(--text-muted)]",children:"Scanning project files..."}):G.length===0?c.jsx("div",{className:"p-6 text-center text-xs text-[var(--text-muted)]",children:"No matching code files found."}):G.map(L=>re(L,0))}),c.jsxs("div",{className:"p-3 border-t border-[var(--border-default)] bg-[var(--bg-subtle)]/50 space-y-2.5 shrink-0",children:[ye.length>0&&c.jsx("div",{className:"flex flex-wrap gap-1 max-h-16 overflow-y-auto",children:ye.map(([L,ce])=>c.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded bg-[var(--bg-surface)] border border-[var(--border-default)] text-[11px] font-mono",children:[c.jsx("span",{className:"truncate max-w-[130px]",children:L}),c.jsxs("span",{className:"text-[var(--text-muted)]",children:["(",ce.length,")"]}),c.jsx("button",{type:"button",onClick:()=>D(ce),className:"text-[var(--text-muted)] hover:text-red-500 cursor-pointer",title:`Remove ${L}`,children:c.jsx(yu,{className:"h-3 w-3"})})]},L))}),c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-1.5 text-[11px]",children:[c.jsxs("span",{className:"text-[var(--text-muted)]",children:["ChatGPT: ",c.jsx(Vr,{level:te.chatgpt})]}),c.jsxs("span",{className:"text-[var(--text-muted)]",children:["Claude: ",c.jsx(Vr,{level:te.claude})]}),c.jsxs("span",{className:"text-[var(--text-muted)]",children:["Gemini: ",c.jsx(Vr,{level:te.gemini})]})]}),c.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-[var(--text-muted)]",children:[c.jsx(q1,{className:"h-3.5 w-3.5 text-emerald-600 dark:text-emerald-400 shrink-0"}),c.jsxs("span",{className:"truncate",children:["Auto-hidden: .gitignore, ",f," secret(s), ",r," binary/large"]})]})]})]})}function bx(){const{fileTree:s,selectedPaths:o,filePanelCollapsed:f,chatMode:r,followUpAttachMode:p,turnSync:m,preset:_,taskDescription:H,errorLog:R,patchFormatPreference:E,fileBundleStyle:C,redactSecrets:x,lastPackResult:D,isPacking:X,setFilePanelCollapsed:V,setChatMode:ee,setFollowUpAttachMode:I,startNewChat:pe,clearTurnSync:G,setPreset:F,setTaskDescription:z,setErrorLog:te,setPatchFormat:ye,setFileBundleStyle:J,setRedactSecrets:re,packContext:L,setStep:ce,pushToast:le}=la(),[ne,Ee]=me.useState(null),[Fe,Ne]=me.useState(!1),[M,$]=me.useState(!1);me.useEffect(()=>{Ne(!1)},[H,R,_,r,p,E,o]);const P=me.useMemo(()=>{let q=0;const Y=O=>{for(const ge of O)ge.type==="file"?o.has(ge.path)&&(q+=ge.estimatedTokens):ge.children&&Y(ge.children)};return Y(s),q},[s,o]),oe=r==="follow_up",ue=C==="separate_prompt",Ve=oe&&p==="none",We=!Ve&&(oe?p==="all"&&(P>18e3||o.size>15):P>18e3||o.size>15),Qt=async()=>{const q=await L("inline_copy");if(!q)return;await navigator.clipboard.writeText(q.promptText),Ee("inline");const Y=oe?q.stats.attachedFiles.length>0?` (${q.stats.attachedFiles.length} updated/failed file(s) included)`:" (short follow-up, 0 files re-uploaded)":"";le("success",`Copied prompt!${Y} Paste into your AI chat.`),window.setTimeout(()=>Ee(null),3e3)},y=async()=>{const q=await L("file_attachment",{copyFileToClipboard:!0,fileBundleStyle:C});if(q){if(!q.contextFileContent){await navigator.clipboard.writeText(q.promptText),Ee("inline"),le("success","All files already in sync (0 attached) — copied the short follow-up prompt!"),window.setTimeout(()=>Ee(null),3e3);return}q.fileCopiedToClipboard?(Ee("file"),ue?(Ne(!0),le("success",`1. Copied ${q.contextFileName} (${q.stats.attachedFiles.length} file(s))! Paste (Ctrl+V) in AI chat, then click "2. Copy Prompt Text".`)):le("success",`Copied ${q.contextFileName} (${q.stats.attachedFiles.length} file(s))! Press Ctrl+V in AI chat and send "go".`),window.setTimeout(()=>Ee(null),3500)):(q.cachedFilePath&&await navigator.clipboard.writeText(q.cachedFilePath).catch(()=>{}),le("error",q.fileClipboardError??"Could not copy file object to clipboard. Cached path copied — use Copy Path or Save .txt."))}},U=async()=>{const q=Fe&&D&&D.fileBundleStyle==="separate_prompt"?D:await L("file_attachment",{copyFileToClipboard:!1,fileBundleStyle:"separate_prompt"});q&&(await navigator.clipboard.writeText(q.promptText),Ee("separate_prompt"),le("success","2. Copied readable prompt text! Paste it alongside your attached file."),window.setTimeout(()=>Ee(null),3e3))},Z=async()=>{const q=await L("file_attachment",{copyFileToClipboard:!1,fileBundleStyle:C});q&&(q.cachedFilePath?(await navigator.clipboard.writeText(q.cachedFilePath),Ee("path"),le("success",`Copied single cache file path: ${q.cachedFilePath}`),window.setTimeout(()=>Ee(null),3e3)):(await navigator.clipboard.writeText(q.promptText),Ee("inline"),le("info","All files already in sync (0 attached) — copied short prompt instead."),window.setTimeout(()=>Ee(null),3e3)))},K=async()=>{const q=await L("file_attachment",{copyFileToClipboard:!1,fileBundleStyle:C});q&&(q.contextFileContent?(fx(q.contextFileName,q.contextFileContent),Ee("download"),ue?(await navigator.clipboard.writeText(q.promptText),Ne(!0),le("success",`Saved ${q.contextFileName} & copied the prompt text to your clipboard!`)):le("success",`Saved ${q.contextFileName}! Upload it to your AI chat and send "go".`)):(await navigator.clipboard.writeText(q.promptText),Ee("inline"),le("success","All files already in sync (0 attached) — copied the short follow-up prompt!")),window.setTimeout(()=>Ee(null),3500))},xe=!!(m&&(m.appliedFiles.length>0||m.partiallyAppliedFiles.length>0||m.notAppliedFiles.length>0||m.failedFiles.length>0||m.undoneFiles.length>0)),fe=!X&&!!H.trim()&&(oe||o.size>0);return c.jsxs("div",{className:"rounded-xl border border-[var(--border-default)] bg-[var(--bg-surface)] p-4 sm:p-5 flex flex-col gap-4 flex-1",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 pb-3 border-b border-[var(--border-default)]",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[f&&c.jsxs("button",{type:"button",onClick:()=>V(!1),title:"Show project file picker",className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border border-[var(--border-default)] bg-[var(--bg-subtle)] hover:border-blue-500/40 text-xs font-medium cursor-pointer",children:[c.jsx(E1,{className:"h-3.5 w-3.5"}),c.jsxs("span",{children:["Files (",o.size,")"]})]}),c.jsxs("div",{children:[c.jsx("h2",{className:"font-semibold text-sm sm:text-base",children:"Describe Your Task & Send"}),c.jsx("p",{className:"text-[11px] text-[var(--text-muted)]",children:oe?"Follow-up turn: confirms applied/skipped files so the AI stays in sync without re-uploading everything.":`New chat: packages ${o.size} selected file(s) (~${P.toLocaleString()} tokens).`})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("div",{className:"inline-flex rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] p-0.5",role:"group","aria-label":"Conversation mode",children:[c.jsxs("button",{type:"button",onClick:()=>pe(),className:`inline-flex items-center gap-1 px-2.5 py-1 rounded-md text-xs font-medium transition cursor-pointer ${oe?"text-[var(--text-secondary)] hover:text-[var(--text-primary)]":"bg-blue-600 text-white shadow-xs"}`,title:"Send full selected files to start a fresh AI conversation",children:[c.jsx(x1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"New Chat"})]}),c.jsxs("button",{type:"button",onClick:()=>ee("follow_up"),className:`inline-flex items-center gap-1 px-2.5 py-1 rounded-md text-xs font-medium transition cursor-pointer ${oe?"bg-blue-600 text-white shadow-xs":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,title:"Continue in the same AI chat without re-uploading unchanged files",children:[c.jsx(cm,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Same Chat (Follow-Up)"})]})]}),(H.trim()||R.trim())&&c.jsx("button",{type:"button",onClick:()=>{z(""),te("")},className:"p-1.5 rounded-lg border border-[var(--border-default)] text-[var(--text-muted)] hover:text-red-500 cursor-pointer",title:"Clear task and error fields",children:c.jsx(Q1,{className:"h-3.5 w-3.5"})})]})]}),oe&&c.jsxs("div",{className:"p-3 rounded-xl border border-blue-500/30 bg-blue-500/8 space-y-2",children:[c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{className:"space-y-1 text-xs",children:[c.jsxs("div",{className:"font-semibold text-blue-700 dark:text-blue-300 flex items-center gap-1.5",children:[c.jsx(Pr,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Grounded Follow-Up Sync"})]}),xe&&m?c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-[11px]",children:[m.appliedFiles.length>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 font-medium",children:["✓ ",m.appliedFiles.length," applied"]}),m.partiallyAppliedFiles.length>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-blue-500/15 text-blue-700 dark:text-blue-300 font-medium",children:["◐ ",m.partiallyAppliedFiles.length," partial (source attached)"]}),m.notAppliedFiles.length>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-[var(--bg-subtle)] text-[var(--text-secondary)] font-medium",children:["⏭ ",m.notAppliedFiles.length," skipped"]}),m.failedFiles.length>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-amber-500/15 text-amber-700 dark:text-amber-300 font-medium",children:["⚠ ",m.failedFiles.length," failed (source attached)"]}),m.undoneFiles.length>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-red-500/15 text-red-700 dark:text-red-300 font-medium",children:["↺ ",m.undoneFiles.length," undone (source attached)"]})]}):c.jsx("p",{className:"text-[11px] text-[var(--text-secondary)]",children:"Only newly selected or externally edited files will be attached — unchanged files already in your chat are skipped."})]}),xe&&c.jsx("button",{type:"button",onClick:G,className:"p-1 text-[var(--text-muted)] hover:text-[var(--text-primary)] cursor-pointer",title:"Clear previous turn status",children:c.jsx(yu,{className:"h-3.5 w-3.5"})})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-1",children:[c.jsx("span",{className:"text-[11px] font-medium text-[var(--text-secondary)]",children:"Files to include:"}),c.jsxs("div",{className:"inline-flex rounded-lg border border-[var(--border-default)] bg-[var(--bg-surface)] p-0.5",role:"group","aria-label":"Follow-up file attachment mode",children:[c.jsx("button",{type:"button",onClick:()=>I("smart"),title:"Attach only changed, partial, failed, or undone files",className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition cursor-pointer ${p==="smart"?"bg-blue-600 text-white":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:"Auto Delta"}),c.jsx("button",{type:"button",onClick:()=>I("none"),title:"Attach 0 files — send only the short follow-up prompt",className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition cursor-pointer ${p==="none"?"bg-blue-600 text-white":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:"Text Only (0 files)"}),c.jsxs("button",{type:"button",onClick:()=>I("all"),title:"Attach all currently selected files",className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition cursor-pointer ${p==="all"?"bg-blue-600 text-white":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:["All Selected (",o.size,")"]})]})]})]}),c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:Object.keys(Vh).map(q=>{const Y=Vh[q],O=_===q;return c.jsxs("button",{type:"button",onClick:()=>F(q),className:`p-2 rounded-lg border text-left transition cursor-pointer ${O?"border-blue-600 bg-blue-500/10 text-blue-700 dark:text-blue-300":"border-[var(--border-default)] hover:bg-[var(--bg-subtle)]"}`,children:[c.jsx("div",{className:"text-xs font-semibold",children:Y.label}),c.jsx("div",{className:"text-[11px] text-[var(--text-muted)] mt-0.5 line-clamp-1",children:Y.shortDesc})]},q)})}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-semibold text-[var(--text-secondary)] mb-1",children:oe?"What should the AI do next?":"What do you want the AI to do?"}),c.jsx("textarea",{rows:5,value:H,onChange:q=>z(q.target.value),placeholder:oe?"Example: That worked! Now add keyboard navigation and fix the error shown below...":"Example: Fix the login button alignment on mobile screens and add a loading spinner while signing in...",className:"w-full p-3 text-sm rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"block text-xs font-semibold text-[var(--text-secondary)] mb-1",children:["Paste any error, log, or compiler output"," ",c.jsx("span",{className:"font-normal text-[var(--text-muted)]",children:"(optional)"})]}),c.jsx("textarea",{rows:3,value:R,onChange:q=>te(q.target.value),placeholder:"Paste compiler errors, stack traces, runtime logs, or build output from any language...",className:"w-full p-2.5 text-xs font-mono rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),c.jsxs("div",{className:"pt-2 border-t border-[var(--border-default)] flex flex-col sm:flex-row sm:items-center justify-between gap-2.5",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"text-xs font-medium text-[var(--text-secondary)]",children:"AI Reply Format:"}),c.jsxs("div",{className:"inline-flex rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] p-0.5",role:"group","aria-label":"AI reply format",children:[c.jsx("button",{type:"button",onClick:()=>ye("search_replace"),title:"Best accuracy across ChatGPT, Gemini, Claude, and DeepSeek",className:`px-2.5 py-1 rounded-md text-xs font-medium transition cursor-pointer ${E==="search_replace"?"bg-blue-600 text-white shadow-xs":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:"Search & Replace"}),c.jsx("button",{type:"button",onClick:()=>ye("unified_diff"),title:"Compact unified git diff format",className:`px-2.5 py-1 rounded-md text-xs font-medium transition cursor-pointer ${E==="unified_diff"?"bg-blue-600 text-white shadow-xs":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:"Unified Git Diff"})]})]}),c.jsxs("label",{className:"inline-flex items-center gap-2 px-2.5 py-1.5 rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] text-xs cursor-pointer select-none self-start sm:self-auto",children:[c.jsx(Y1,{className:"h-3.5 w-3.5 text-emerald-600 dark:text-emerald-400 shrink-0"}),c.jsx("span",{children:"Hide API keys"}),c.jsx("input",{type:"checkbox",checked:x,onChange:q=>re(q.target.checked),className:"h-3.5 w-3.5 accent-blue-600 cursor-pointer"})]})]}),c.jsxs("div",{className:"space-y-2.5 pt-1",children:[c.jsxs("button",{type:"button",disabled:!fe,onClick:()=>void Qt(),className:`w-full py-2.5 px-4 rounded-lg disabled:opacity-40 font-medium text-sm flex items-center justify-center gap-2 transition cursor-pointer ${We?"border border-[var(--border-default)] bg-[var(--bg-subtle)] hover:border-blue-500/50":"bg-blue-600 hover:bg-blue-700 text-white"}`,children:[ne==="inline"?c.jsx(Wt,{className:"h-4 w-4"}):c.jsx(lm,{className:"h-4 w-4"}),c.jsx("span",{children:ne==="inline"?"Copied! Paste into your AI chat":oe?"Copy Grounded Follow-Up Prompt":"Copy Prompt & Code (Text)"}),!We&&ne!=="inline"&&c.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/20",children:"Best"})]}),c.jsxs("div",{className:`p-3 rounded-xl border space-y-2.5 ${We?"border-blue-500/40 bg-blue-500/5":"border-[var(--border-default)] bg-[var(--bg-canvas)]/70"}`,children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-[var(--text-secondary)]",children:[c.jsx(Lr,{className:"h-3.5 w-3.5 text-blue-600 dark:text-blue-400"}),c.jsx("span",{children:"Attach as File"}),c.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 font-medium",children:"0 Downloads bloat"}),We&&c.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-blue-600 text-white font-medium",children:"Recommended"})]}),c.jsxs("div",{className:"inline-flex rounded-lg border border-[var(--border-default)] bg-[var(--bg-surface)] p-0.5",role:"group","aria-label":"File attachment style",children:[c.jsx("button",{type:"button",onClick:()=>{J("all_in_one"),Ne(!1)},title:"Fastest: puts your task prompt + code together inside 1 file. Paste with Ctrl+V and type 'go'.",className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition cursor-pointer ${ue?"text-[var(--text-secondary)] hover:text-[var(--text-primary)]":"bg-blue-600 text-white"}`,children:"1-Paste Magic"}),c.jsx("button",{type:"button",onClick:()=>{J("separate_prompt"),Ne(!1)},title:"Cleanest chat history: Step 1 copies the code file, Step 2 copies your readable prompt.",className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition cursor-pointer ${ue?"bg-blue-600 text-white":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:"Separate File + Prompt"})]})]}),ue?c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[c.jsxs("button",{type:"button",disabled:!fe||Ve,onClick:()=>void y(),title:Ve?"0 files attached in Text Only mode":"Step 1: Overwrites 1 cached code file and copies it to your clipboard for Ctrl+V",className:`py-2 px-3 rounded-lg disabled:opacity-40 font-medium text-xs flex items-center justify-center gap-1.5 transition cursor-pointer ${We&&!Fe?"bg-blue-600 hover:bg-blue-700 text-white":"border border-[var(--border-default)] bg-[var(--bg-surface)] hover:border-blue-500/50"}`,children:[ne==="file"?c.jsx(Wt,{className:"h-3.5 w-3.5 text-emerald-500"}):c.jsx(Lr,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:ne==="file"?"1. File Copied! (Ctrl+V)":"1. Copy Code File (Ctrl+V)"})]}),c.jsxs("button",{type:"button",disabled:!fe,onClick:()=>void U(),title:"Step 2: Copies your readable task prompt so you can paste it alongside the attached file",className:`py-2 px-3 rounded-lg disabled:opacity-40 font-medium text-xs flex items-center justify-center gap-1.5 transition cursor-pointer ${Fe?"bg-blue-600 hover:bg-blue-700 text-white shadow-xs":"border border-[var(--border-default)] bg-[var(--bg-surface)] hover:border-blue-500/50"}`,children:[ne==="separate_prompt"?c.jsx(Wt,{className:"h-3.5 w-3.5"}):c.jsx(i1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:ne==="separate_prompt"?"2. Prompt Copied!":"2. Copy Prompt Text"})]})]}):c.jsxs("button",{type:"button",disabled:!fe||Ve,onClick:()=>void y(),title:Ve?"0 files attached in Text Only mode — use Copy Grounded Follow-Up Prompt above":"Overwrites 1 cached file containing both prompt + code and copies it to your clipboard for Ctrl+V",className:`w-full py-2 px-3.5 rounded-lg disabled:opacity-40 font-medium text-xs sm:text-sm flex items-center justify-center gap-2 transition cursor-pointer ${We?"bg-blue-600 hover:bg-blue-700 text-white":"border border-[var(--border-default)] bg-[var(--bg-surface)] hover:border-blue-500/50"}`,children:[ne==="file"?c.jsx(Wt,{className:"h-4 w-4 text-emerald-500"}):c.jsx(Lr,{className:"h-4 w-4"}),c.jsx("span",{children:ne==="file"?'File Copied! Press Ctrl+V in AI chat & send "go"':"Copy All-in-One File (Ctrl+V)"})]}),c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 text-[11px] text-[var(--text-muted)]",children:[c.jsx("span",{children:ue?"Step 1: Ctrl+V to attach file. Step 2: Ctrl+V to paste readable prompt.":'Press Ctrl+V in your AI chat to attach, then type "go" and hit Enter.'}),c.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[c.jsxs("button",{type:"button",disabled:!fe||Ve,onClick:()=>void Z(),title:"Copy the path of the single overwritten cache file for any Upload dialog",className:"inline-flex items-center gap-1 hover:text-[var(--text-primary)] disabled:opacity-40 cursor-pointer",children:[ne==="path"?c.jsx(Wt,{className:"h-3 w-3 text-emerald-500"}):c.jsx(nm,{className:"h-3 w-3"}),c.jsx("span",{children:ne==="path"?"Path Copied":"Copy Path"})]}),c.jsx("span",{className:"opacity-40",children:"·"}),c.jsxs("button",{type:"button",disabled:!fe||Ve,onClick:()=>void K(),title:"Fallback: download a .txt copy to your Downloads folder (e.g. to share to mobile)",className:"inline-flex items-center gap-1 hover:text-[var(--text-primary)] disabled:opacity-40 cursor-pointer",children:[ne==="download"?c.jsx(Wt,{className:"h-3 w-3 text-emerald-500"}):c.jsx($y,{className:"h-3 w-3"}),c.jsx("span",{children:ne==="download"?"Saved":"Save .txt"})]})]})]})]})]}),D&&D.warnings.length>0&&c.jsxs("div",{className:"p-3 rounded-lg border border-amber-500/30 bg-amber-500/10 space-y-1",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-amber-700 dark:text-amber-300",children:[c.jsx(Xr,{className:"h-4 w-4"}),c.jsx("span",{children:"Secret Guard Notice"})]}),D.warnings.map((q,Y)=>c.jsxs("p",{className:"text-xs text-amber-800 dark:text-amber-200",children:[q.filePath,": ",q.reason]},Y))]}),c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 pt-1 mt-auto text-xs",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[D&&c.jsxs("button",{type:"button",onClick:()=>$(q=>!q),className:"inline-flex items-center gap-1.5 text-[var(--text-secondary)] hover:text-[var(--text-primary)] cursor-pointer",children:[M?c.jsx(Wy,{className:"h-3.5 w-3.5"}):c.jsx(e1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:M?"Hide preview":`Preview prompt (~${D.stats.estimatedTokens.toLocaleString()} tok)`})]}),c.jsx("span",{className:"text-[11px] text-[var(--text-muted)] hidden sm:inline",children:"Copy the AI reply or press Ctrl+V anywhere to review."})]}),c.jsxs("button",{type:"button",onClick:()=>ce("review"),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg border border-blue-500/40 text-blue-600 dark:text-blue-400 hover:bg-blue-500/10 font-medium cursor-pointer",children:[c.jsx("span",{children:"Go to Review"}),c.jsx(em,{className:"h-3.5 w-3.5"})]})]}),M&&D&&c.jsx("pre",{className:"p-3 rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] text-[11px] font-mono max-h-52 overflow-auto whitespace-pre-wrap",children:D.promptText})]})}const Zh="chat2diff_diff_view_mode",Jh="chat2diff_diff_wrap_lines",Kh="chat2diff_diff_full_file",Fh=3,$h=500;function Sx(s){return s?(s.endsWith(`
300
+ `)?s.slice(0,-1):s).split(`
301
+ `):[]}function Ph(s,o){const f=rm(s,o),r=[];let p=1,m=1;for(const E of f){const C=Sx(E.value);if(!E.added&&!E.removed){const x=C.map(D=>({type:"ctx",oldNum:p++,newNum:m++,text:D}));r.push({kind:"context",raw:E.value,rows:x})}else{const x=C.map(X=>E.added?{type:"add",oldNum:null,newNum:m++,text:X}:{type:"del",oldNum:p++,newNum:null,text:X}),D=r[r.length-1];D&&D.kind==="hunk"?(E.removed&&(D.oldRaw+=E.value),E.added&&(D.newRaw+=E.value),D.rows.push(...x)):r.push({kind:"hunk",oldRaw:E.removed?E.value:"",newRaw:E.added?E.value:"",rows:x})}}const _=[];for(let E=0;E<r.length;E++){const C=r[E],x=_[_.length-1],D=r[E+1];if(C.kind==="context"&&C.rows.length<=2&&x&&x.kind==="hunk"&&D&&D.kind==="hunk"){x.oldRaw+=C.raw+D.oldRaw,x.newRaw+=C.raw+D.newRaw,x.rows.push(...C.rows,...D.rows),E++;continue}_.push(C)}let H=0,R=0;return _.map(E=>{var I,pe;if(E.kind==="context")return{kind:"context",id:R++,raw:E.raw,rows:E.rows};const C=((I=E.rows.find(G=>G.oldNum!==null))==null?void 0:I.oldNum)??1,x=((pe=E.rows.find(G=>G.newNum!==null))==null?void 0:pe.newNum)??1;let D=0,X=0,V=0,ee=0;for(const G of E.rows)G.type==="add"?(D++,ee++):G.type==="del"?(X++,V++):(V++,ee++);return{kind:"hunk",id:H++,oldRaw:E.oldRaw,newRaw:E.newRaw,oldStart:C,oldCount:V,newStart:x,newCount:ee,additions:D,deletions:X,unifiedRows:E.rows,splitRows:Nx(E.rows)}})}function kr(s,o){return s.map(f=>f.kind==="context"?f.raw:o.has(f.id)?f.newRaw:f.oldRaw).join("")}function Nx(s){const o=[];let f=0;for(;f<s.length;){const r=s[f];if(r.type==="ctx")o.push({leftType:"ctx",rightType:"ctx",oldNum:r.oldNum,newNum:r.newNum,leftText:r.text,rightText:r.text,isModifiedPair:!1}),f++;else if(r.type==="del"){const p=[];for(;f<s.length&&s[f].type==="del";)p.push(s[f]),f++;const m=[];for(;f<s.length&&s[f].type==="add";)m.push(s[f]),f++;const _=Math.max(p.length,m.length);for(let H=0;H<_;H++){const R=p[H],E=m[H];o.push({leftType:R?"del":"empty",rightType:E?"add":"empty",oldNum:R?R.oldNum:null,newNum:E?E.newNum:null,leftText:R?R.text:"",rightText:E?E.text:"",isModifiedPair:!!(R&&E)})}}else o.push({leftType:"empty",rightType:"add",oldNum:null,newNum:r.newNum,leftText:"",rightText:r.text,isModifiedPair:!1}),f++}return o}function Wh({oldText:s,newText:o,side:f}){const r=s.length>$h||o.length>$h,p=me.useMemo(()=>r?null:nx(s,o),[s,o,r]);return p?c.jsx(c.Fragment,{children:p.map((m,_)=>!m.added&&!m.removed?c.jsx("span",{children:m.value},_):f==="left"&&m.removed?c.jsx("span",{className:"bg-red-500/35 dark:bg-red-500/40 rounded-[2px] px-0.5 font-semibold text-red-950 dark:text-red-100",children:m.value},_):f==="right"&&m.added?c.jsx("span",{className:"bg-emerald-500/35 dark:bg-emerald-500/40 rounded-[2px] px-0.5 font-semibold text-emerald-950 dark:text-emerald-100",children:m.value},_):null)}):c.jsx(c.Fragment,{children:f==="left"?s:o})}function Tx({file:s,segments:o,isApplied:f,viewMode:r,wrapLines:p,showFullFile:m,skippedHunks:_,isApplying:H,onToggleHunk:R,onApplySingleHunk:E}){const[C,x]=me.useState(new Set);me.useEffect(()=>{x(new Set)},[s.filePath,s.originalContent,m,r]);const D=z=>{x(te=>new Set(te).add(z))},X=o.filter(z=>z.kind==="hunk").length,V=!f&&s.action==="modify"&&X>0;if(s.status==="failed"||s.status==="blocked")return c.jsxs("div",{className:"p-8 text-center space-y-2",children:[c.jsx("div",{className:"inline-flex p-3 rounded-full bg-red-500/10 text-red-600 dark:text-red-400",children:c.jsx(U1,{className:"h-6 w-6"})}),c.jsx("h3",{className:"font-semibold text-sm",children:"Cannot apply this file"}),c.jsx("p",{className:"text-xs text-[var(--text-muted)] max-w-md mx-auto",children:s.errorReason??"An error occurred while validating this diff."})]});const ee=p?"whitespace-pre-wrap [overflow-wrap:anywhere]":"whitespace-pre",I=(z,te,ye=!1)=>c.jsxs("div",{className:`flex leading-5 ${ye?"opacity-45":""} ${z.type==="add"?"bg-emerald-500/15 text-emerald-950 dark:text-emerald-200":z.type==="del"?"bg-red-500/15 text-red-950 dark:text-red-200":"text-[var(--text-secondary)]"}`,children:[c.jsx("span",{className:"w-11 text-right pr-2 py-0.5 text-[11px] text-[var(--text-muted)] bg-[var(--bg-subtle)]/40 border-r border-[var(--border-default)]/50 select-none shrink-0",children:z.oldNum??""}),c.jsx("span",{className:"w-11 text-right pr-2 py-0.5 text-[11px] text-[var(--text-muted)] bg-[var(--bg-subtle)]/40 border-r border-[var(--border-default)]/50 select-none shrink-0",children:z.newNum??""}),c.jsx("span",{className:"w-5 text-center py-0.5 select-none shrink-0 font-bold",children:z.type==="add"?"+":z.type==="del"?"-":" "}),c.jsx("span",{className:`flex-1 min-w-0 pr-3 py-0.5 ${ee}`,children:z.text})]},te),pe=(z,te,ye=!1)=>c.jsxs("div",{className:`grid grid-cols-2 divide-x divide-[var(--border-default)] leading-5 ${ye?"opacity-45":""}`,children:[c.jsxs("div",{className:`flex min-w-0 ${z.leftType==="del"?"bg-red-500/15 text-red-950 dark:text-red-200":z.leftType==="empty"?"bg-[var(--bg-subtle)]/50":"text-[var(--text-secondary)]"}`,children:[c.jsx("span",{className:"w-11 text-right pr-2 py-0.5 text-[11px] text-[var(--text-muted)] bg-[var(--bg-subtle)]/40 border-r border-[var(--border-default)]/50 select-none shrink-0",children:z.oldNum??""}),c.jsx("span",{className:"w-5 text-center py-0.5 select-none shrink-0 font-bold",children:z.leftType==="del"?"-":" "}),c.jsx("span",{className:`flex-1 min-w-0 pr-3 py-0.5 ${ee}`,children:z.isModifiedPair?c.jsx(Wh,{oldText:z.leftText,newText:z.rightText,side:"left"}):z.leftText})]}),c.jsxs("div",{className:`flex min-w-0 ${z.rightType==="add"?"bg-emerald-500/15 text-emerald-950 dark:text-emerald-200":z.rightType==="empty"?"bg-[var(--bg-subtle)]/50":"text-[var(--text-secondary)]"}`,children:[c.jsx("span",{className:"w-11 text-right pr-2 py-0.5 text-[11px] text-[var(--text-muted)] bg-[var(--bg-subtle)]/40 border-r border-[var(--border-default)]/50 select-none shrink-0",children:z.newNum??""}),c.jsx("span",{className:"w-5 text-center py-0.5 select-none shrink-0 font-bold",children:z.rightType==="add"?"+":" "}),c.jsx("span",{className:`flex-1 min-w-0 pr-3 py-0.5 ${ee}`,children:z.isModifiedPair?c.jsx(Wh,{oldText:z.leftText,newText:z.rightText,side:"right"}):z.rightText})]})]},te),G=(z,te)=>{const ye=te===0,J=te===o.length-1,re=m||X===0||C.has(z.id),L=(Ee,Fe)=>Ee.map((Ne,M)=>r==="unified"?I(Ne,`${Fe}-${M}`):pe({leftType:"ctx",rightType:"ctx",oldNum:Ne.oldNum,newNum:Ne.newNum,leftText:Ne.text,rightText:Ne.text,isModifiedPair:!1},`${Fe}-${M}`));if(re)return c.jsx("div",{children:L(z.rows,`ctx-${z.id}`)},`ctx-${z.id}`);const ce=ye?[]:z.rows.slice(0,Fh),le=J?[]:z.rows.slice(Math.max(ce.length,z.rows.length-Fh)),ne=z.rows.length-ce.length-le.length;return ne<=2?c.jsx("div",{children:L(z.rows,`ctx-${z.id}`)},`ctx-${z.id}`):c.jsxs("div",{children:[ce.length>0&&L(ce,`ctx-top-${z.id}`),c.jsxs("button",{type:"button",onClick:()=>D(z.id),className:"w-full py-1 px-4 text-left text-[11px] font-sans text-blue-600 dark:text-blue-400 bg-blue-500/5 hover:bg-blue-500/10 border-y border-[var(--border-default)]/60 cursor-pointer",children:["⋯ Show ",ne," unchanged ",ne===1?"line":"lines"]}),le.length>0&&L(le,`ctx-bot-${z.id}`)]},`ctx-${z.id}`)},F=z=>{const te=_.has(z.id);return c.jsxs("div",{className:"border-y border-[var(--border-default)]/80",children:[c.jsxs("div",{className:"px-3 py-1 bg-blue-500/8 dark:bg-blue-500/10 border-b border-[var(--border-default)]/60 flex flex-wrap items-center justify-between gap-2 font-sans",children:[c.jsxs("div",{className:"flex items-center gap-2 text-[11px]",children:[c.jsxs("span",{className:"font-semibold text-blue-700 dark:text-blue-300",children:["Change ",z.id+1," of ",X]}),c.jsxs("span",{className:"font-mono text-[var(--text-muted)]",children:["@@ -",z.oldStart,",",z.oldCount," +",z.newStart,",",z.newCount," @@"]}),c.jsxs("span",{className:"font-mono",children:[c.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400",children:["+",z.additions]})," ",c.jsxs("span",{className:"text-red-600 dark:text-red-400",children:["-",z.deletions]})]})]}),V&&c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("button",{type:"button",onClick:()=>R(z.id),className:`px-2 py-0.5 rounded text-[11px] font-medium border transition cursor-pointer ${te?"border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-muted)] hover:text-[var(--text-primary)]":"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300 hover:bg-blue-500/20"}`,title:"Include or skip this change block when applying the file",children:te?"Skipped":"Included"}),c.jsxs("button",{type:"button",disabled:H,onClick:()=>E(z.id),className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] font-semibold bg-emerald-600 hover:bg-emerald-700 disabled:opacity-40 text-white transition cursor-pointer",title:"Apply only this change block to disk right now",children:[c.jsx(Wt,{className:"h-3 w-3"}),c.jsx("span",{children:"Apply Change"})]})]})]}),r==="unified"?z.unifiedRows.map((ye,J)=>I(ye,`hu-${z.id}-${J}`,te)):z.splitRows.map((ye,J)=>pe(ye,`hs-${z.id}-${J}`,te))]},`hunk-${z.id}`)};return X===0&&f?c.jsxs("div",{className:"p-10 text-center space-y-2",children:[c.jsx("div",{className:"inline-flex p-3 rounded-full bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",children:c.jsx(Pr,{className:"h-6 w-6"})}),c.jsx("h3",{className:"font-semibold text-sm",children:"All changes applied to this file"}),c.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"You can continue reviewing the remaining files on the left or undo from the header."})]}):c.jsx("div",{className:`font-mono text-xs ${p?"w-full":r==="split"?"min-w-[960px] w-max":"min-w-full w-max"}`,children:o.map((z,te)=>z.kind==="context"?G(z,te):F(z))})}function wx(){const{rawPasteInput:s,activeParse:o,checkedApplyPaths:f,appliedFilePaths:r,appliedFileSnapshots:p,selectedPreviewFile:m,clipboardWatchEnabled:_,isParsing:H,isApplying:R,setRawPasteInput:E,parseManualPaste:C,toggleApplyFile:x,setAllReadyApply:D,setSelectedPreviewFile:X,clearActiveParse:V,applyCheckedFiles:ee,applySingleFile:I,applyPartialFileContent:pe,undoSnapshotById:G,startFollowUpFromReview:F,pushToast:z}=la(),[te,ye]=me.useState(()=>typeof window>"u"?"split":localStorage.getItem(Zh)==="unified"?"unified":"split"),[J,re]=me.useState(()=>{if(typeof window>"u")return!0;const O=localStorage.getItem(Jh);return O===null?!0:O==="true"}),[L,ce]=me.useState(()=>typeof window>"u"?!1:localStorage.getItem(Kh)==="true"),[le,ne]=me.useState({});me.useEffect(()=>{ne({})},[o==null?void 0:o.parseId]);const Ee=O=>{ye(O),localStorage.setItem(Zh,O)},Fe=()=>{re(O=>{const ge=!O;return localStorage.setItem(Jh,String(ge)),ge})},Ne=()=>{ce(O=>{const ge=!O;return localStorage.setItem(Kh,String(ge)),ge})},M=(o==null?void 0:o.files.find(O=>O.filePath===m))??(o==null?void 0:o.files[0])??null,$=o&&M?o.files.findIndex(O=>O.filePath===M.filePath):-1,P=me.useMemo(()=>!M||M.status!=="ready"?[]:Ph(M.originalContent,M.proposedContent),[M]),oe=me.useMemo(()=>new Set(M?le[M.filePath]??[]:[]),[M,le]),ue=me.useMemo(()=>P.filter(O=>O.kind==="hunk").map(O=>O.id),[P]),Ve=(O,ge)=>{ne(ft=>{const ke=new Set(ft[O]??[]);return ke.has(ge)?ke.delete(ge):ke.add(ge),{...ft,[O]:Array.from(ke)}})},We=async O=>{if(!M)return;const ge=kr(P,new Set([O]));await pe(M.filePath,ge),ne(ft=>({...ft,[M.filePath]:[]}))},Qt=async()=>{if(!M)return;if(M.action!=="modify"||ue.length===0){await I(M.filePath);return}const O=new Set(ue.filter(ge=>!oe.has(ge)));if(O.size===0){z("error","Include at least one change block before applying.");return}if(O.size===ue.length)await I(M.filePath);else{const ge=kr(P,O);await pe(M.filePath,ge),ne(ft=>({...ft,[M.filePath]:[]}))}},y=async()=>{if(!o)return;const O={};for(const ge of f){const ft=le[ge];if(!ft||ft.length===0)continue;const ke=o.files.find(Ie=>Ie.filePath===ge);if(!ke||ke.action!=="modify")continue;const ht=Ph(ke.originalContent,ke.proposedContent),$e=new Set(ft),ze=new Set(ht.filter(Ie=>Ie.kind==="hunk").map(Ie=>Ie.id).filter(Ie=>!$e.has(Ie)));ze.size>0&&(O[ge]=kr(ht,ze))}await ee(Object.keys(O).length>0?O:void 0)},U=async()=>{o!=null&&o.retryPrompt&&(await navigator.clipboard.writeText(o.retryPrompt),z("success","Copied fix prompt for failed file(s). Paste it into your AI chat!"))};if(!o)return c.jsx("div",{className:"p-6 max-w-3xl mx-auto w-full flex-1 flex flex-col justify-center items-center",children:c.jsxs("div",{className:"w-full rounded-2xl border border-[var(--border-default)] bg-[var(--bg-surface)] p-6 space-y-4 shadow-sm text-center",children:[c.jsx("div",{className:"mx-auto w-12 h-12 rounded-full bg-blue-500/10 text-blue-600 dark:text-blue-400 flex items-center justify-center",children:c.jsx(ky,{className:"h-6 w-6"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-base font-semibold",children:"Waiting for AI Changes"}),c.jsx("p",{className:"text-xs text-[var(--text-muted)] mt-1 max-w-md mx-auto",children:_?"Copy the reply from any AI chat — Chat2Diff detects it automatically. You can also press Ctrl+V anywhere or paste below.":"Press Ctrl+V anywhere on this page or paste the AI reply below to preview changes safely."})]}),c.jsx("textarea",{rows:8,value:s,onChange:O=>E(O.target.value),placeholder:"Paste code blocks here (SEARCH/REPLACE blocks or Unified Git Diff)...",className:"w-full p-3 font-mono text-xs rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] focus:outline-none focus:ring-2 focus:ring-blue-500"}),c.jsxs("button",{type:"button",disabled:H||!s.trim(),onClick:()=>void C(),className:"w-full py-2.5 px-4 rounded-lg text-xs font-semibold bg-blue-600 hover:bg-blue-700 disabled:opacity-50 text-white transition cursor-pointer flex items-center justify-center gap-2",children:[c.jsx(n1,{className:"h-4 w-4"}),c.jsx("span",{children:H?"Checking changes...":"Preview Changes"})]})]})});const Z=o.files.filter(O=>O.status==="ready"&&!r.has(O.filePath)),K=o.files.filter(O=>r.has(O.filePath)).length,xe=Z.length>0&&Z.every(O=>f.has(O.filePath)),fe=!!(M&&r.has(M.filePath)),q=ue.filter(O=>!oe.has(O)).length,Y=M?p[M.filePath]:void 0;return c.jsxs("div",{className:"p-6 max-w-7xl mx-auto w-full flex-1 flex flex-col gap-4",children:[c.jsxs("div",{className:"rounded-xl border border-[var(--border-default)] bg-[var(--bg-surface)] px-4 py-3 flex flex-wrap items-center justify-between gap-3",children:[c.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[c.jsx("span",{className:"font-semibold text-sm",children:"Review Changes"}),c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 font-medium",children:[Z.length," pending"]}),K>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-blue-500/15 text-blue-700 dark:text-blue-300 font-medium",children:[K," applied"]}),o.summary.failedCount>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-amber-500/15 text-amber-700 dark:text-amber-300 font-medium",children:[o.summary.failedCount," needs retry"]}),o.summary.blockedCount>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-red-500/15 text-red-700 dark:text-red-300 font-medium",children:[o.summary.blockedCount," blocked"]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("button",{type:"button",onClick:V,className:"px-3 py-1.5 rounded-lg text-xs border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:"Paste Another Reply"}),o.retryPrompt&&c.jsxs("button",{type:"button",onClick:()=>void U(),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300 hover:bg-amber-500/20 cursor-pointer",children:[c.jsx(lm,{className:"h-3.5 w-3.5"}),c.jsxs("span",{children:["Copy Fix Prompt (",o.summary.failedCount,")"]})]}),c.jsxs("button",{type:"button",onClick:F,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border border-blue-500/40 bg-blue-500/10 text-blue-700 dark:text-blue-300 hover:bg-blue-500/20 cursor-pointer",title:"Send exact applied/skipped/failed status to your next turn in the same AI chat",children:[c.jsx("span",{children:"Continue in Same Chat"}),c.jsx(em,{className:"h-3.5 w-3.5"})]}),c.jsxs("button",{type:"button",disabled:R||f.size===0,onClick:()=>void y(),className:"flex items-center gap-1.5 px-4 py-1.5 rounded-lg text-xs font-semibold bg-emerald-600 hover:bg-emerald-700 disabled:opacity-40 text-white transition cursor-pointer",children:[c.jsx(Wt,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:R?"Applying...":`Apply Selected (${f.size}/${Z.length})`})]})]})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4 flex-1",children:[c.jsxs("div",{className:"lg:col-span-4 xl:col-span-3 rounded-xl border border-[var(--border-default)] bg-[var(--bg-surface)] flex flex-col overflow-hidden",children:[c.jsxs("div",{className:"px-3.5 py-2.5 border-b border-[var(--border-default)] bg-[var(--bg-subtle)] flex items-center justify-between text-xs",children:[c.jsxs("label",{className:"flex items-center gap-2 font-medium cursor-pointer",children:[c.jsx("input",{type:"checkbox",checked:xe,onChange:O=>D(O.target.checked),disabled:Z.length===0,className:"h-3.5 w-3.5 accent-blue-600"}),c.jsx("span",{children:"Select all pending"})]}),c.jsxs("span",{className:"text-[var(--text-muted)]",children:[o.files.length," files"]})]}),c.jsx("div",{className:"overflow-y-auto flex-1 divide-y divide-[var(--border-default)]",children:o.files.map(O=>{const ge=(M==null?void 0:M.filePath)===O.filePath,ft=f.has(O.filePath),ke=r.has(O.filePath);return c.jsxs("div",{onClick:()=>X(O.filePath),className:`px-3 py-2.5 flex items-start gap-2.5 cursor-pointer transition ${ge?"bg-blue-500/10":"hover:bg-[var(--bg-subtle)]"}`,children:[c.jsx("input",{type:"checkbox",disabled:O.status!=="ready"||ke,checked:ft,onClick:ht=>ht.stopPropagation(),onChange:()=>x(O.filePath),className:"mt-0.5 h-3.5 w-3.5 accent-blue-600 shrink-0"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"text-xs font-mono truncate font-medium",children:O.filePath}),c.jsxs("div",{className:"flex items-center gap-2 mt-1 text-[11px]",children:[c.jsx("span",{className:`px-1.5 py-0.2 rounded capitalize inline-flex items-center gap-1 ${ke?"bg-blue-500/15 text-blue-700 dark:text-blue-300 font-medium":O.status==="ready"?"bg-emerald-500/15 text-emerald-700 dark:text-emerald-300":"bg-red-500/15 text-red-700 dark:text-red-300"}`,children:ke?c.jsxs(c.Fragment,{children:[c.jsx(Wt,{className:"h-3 w-3"}),"applied"]}):O.status==="ready"?O.action:O.status}),O.status==="ready"&&!ke&&c.jsxs("span",{className:"font-mono text-[var(--text-muted)]",children:[c.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400",children:["+",O.additions]})," ",c.jsxs("span",{className:"text-red-600 dark:text-red-400",children:["-",O.deletions]})]}),O.securityWarning&&c.jsx("span",{title:O.securityWarning,className:"inline-flex shrink-0",children:c.jsx(Xr,{className:"h-3.5 w-3.5 text-amber-500"})})]})]})]},O.filePath)})})]}),c.jsx("div",{className:"lg:col-span-8 xl:col-span-9 rounded-xl border border-[var(--border-default)] bg-[var(--bg-surface)] flex flex-col overflow-hidden min-h-[420px]",children:M&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"px-3.5 py-2 border-b border-[var(--border-default)] bg-[var(--bg-subtle)] flex flex-wrap items-center justify-between gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[o.files.length>1&&c.jsxs("div",{className:"inline-flex items-center rounded-lg border border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden shrink-0",children:[c.jsx("button",{type:"button",disabled:$<=0,onClick:()=>$>0&&X(o.files[$-1].filePath),className:"p-1 hover:bg-[var(--bg-subtle)] disabled:opacity-35 cursor-pointer",title:"Previous file",children:c.jsx(qy,{className:"h-3.5 w-3.5"})}),c.jsxs("span",{className:"px-1.5 text-[11px] font-mono text-[var(--text-muted)]",children:[$+1,"/",o.files.length]}),c.jsx("button",{type:"button",disabled:$>=o.files.length-1,onClick:()=>$<o.files.length-1&&X(o.files[$+1].filePath),className:"p-1 hover:bg-[var(--bg-subtle)] disabled:opacity-35 cursor-pointer",title:"Next file",children:c.jsx(tm,{className:"h-3.5 w-3.5"})})]}),c.jsx("span",{className:"text-xs font-mono font-medium truncate",children:M.filePath}),M.repairNote&&c.jsxs("span",{className:"inline-flex items-center gap-1 text-[11px] px-2 py-0.5 rounded-full bg-blue-500/15 text-blue-700 dark:text-blue-300",children:[c.jsx(G1,{className:"h-3 w-3"}),M.repairNote]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[M.status==="ready"&&!fe&&c.jsxs("button",{type:"button",disabled:R||ue.length>0&&q===0,onClick:()=>void Qt(),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg text-xs font-semibold bg-emerald-600 hover:bg-emerald-700 disabled:opacity-40 text-white transition cursor-pointer",children:[c.jsx(Wt,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:ue.length>0&&q<ue.length?`Apply ${q}/${ue.length} Changes`:"Apply This File"})]}),fe&&c.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[c.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded-lg text-xs font-medium bg-blue-500/15 text-blue-700 dark:text-blue-300",children:[c.jsx(Pr,{className:"h-3.5 w-3.5"}),"Applied"]}),Y&&c.jsxs("button",{type:"button",onClick:()=>void G(Y),className:"inline-flex items-center gap-1 px-2 py-1 rounded-lg text-xs border border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300 hover:bg-amber-500/20 cursor-pointer",children:[c.jsx(Wr,{className:"h-3 w-3"}),c.jsx("span",{children:"Undo"})]})]}),c.jsxs("button",{type:"button",onClick:Fe,className:`flex items-center gap-1 px-2 py-1 rounded-lg text-xs border cursor-pointer ${J?"border-blue-500/40 bg-blue-500/10 text-blue-700 dark:text-blue-300":"border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-secondary)]"}`,title:"Wrap long lines so code never overflows horizontally",children:[c.jsx(K1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Wrap"})]}),c.jsxs("button",{type:"button",onClick:Ne,className:"flex items-center gap-1 px-2.5 py-1 rounded-lg text-xs border border-[var(--border-default)] bg-[var(--bg-surface)] hover:bg-[var(--bg-canvas)] text-[var(--text-secondary)] cursor-pointer",title:"Toggle between focused changes only and full file",children:[L?c.jsx(im,{className:"h-3.5 w-3.5"}):c.jsx(v1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:L?"Changes Only":"Full File"})]}),c.jsxs("div",{className:"flex items-center gap-1 rounded-lg border border-[var(--border-default)] bg-[var(--bg-surface)] p-0.5",children:[c.jsxs("button",{type:"button",onClick:()=>Ee("split"),className:`flex items-center gap-1 px-2 py-1 rounded text-xs cursor-pointer ${te==="split"?"bg-blue-600 text-white":"text-[var(--text-secondary)]"}`,children:[c.jsx(Jy,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Side-by-Side"})]}),c.jsxs("button",{type:"button",onClick:()=>Ee("unified"),className:`flex items-center gap-1 px-2 py-1 rounded text-xs cursor-pointer ${te==="unified"?"bg-blue-600 text-white":"text-[var(--text-secondary)]"}`,children:[c.jsx(O1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Unified"})]})]})]})]}),M.securityWarning&&c.jsxs("div",{className:"px-4 py-2 bg-amber-500/10 border-b border-amber-500/30 text-xs text-amber-800 dark:text-amber-200 flex items-center gap-2",children:[c.jsx(Xr,{className:"h-4 w-4 shrink-0"}),c.jsx("span",{children:M.securityWarning})]}),c.jsx("div",{className:"flex-1 overflow-auto",children:c.jsx(Tx,{file:M,segments:P,isApplied:fe,viewMode:te,wrapLines:J,showFullFile:L,skippedHunks:oe,isApplying:R,onToggleHunk:O=>Ve(M.filePath,O),onApplySingleHunk:O=>void We(O)})})]})})]})]})}function Ex(){const{repoName:s,isGitRepo:o,gitBranch:f,clipboardWatchEnabled:r,clipboardAvailable:p,autoJumpToReview:m,darkMode:_,snapshots:H,setRepoPickerOpen:R,setHistoryDrawerOpen:E,toggleWatcher:C,toggleAutoJumpToReview:x,toggleDarkMode:D}=la(),X=H.filter(V=>!V.reverted).length;return c.jsxs("header",{className:"border-b border-[var(--border-default)] bg-[var(--bg-surface)] px-4 py-2.5 flex items-center justify-between shrink-0",children:[c.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 font-bold text-base tracking-tight text-blue-600 dark:text-blue-400 shrink-0",children:[c.jsx(m1,{className:"h-5 w-5"}),c.jsx("span",{children:"Chat2Diff"}),c.jsxs("span",{className:"text-[11px] font-mono font-medium px-1.5 py-0.5 rounded bg-blue-500/10 text-blue-600 dark:text-blue-400",children:["v",cx]})]}),c.jsx("span",{className:"text-[var(--border-default)]",children:"/"}),c.jsxs("button",{type:"button",onClick:()=>R(!0),className:"flex items-center gap-2 px-2.5 py-1.5 rounded-lg border border-[var(--border-default)] bg-[var(--bg-subtle)] hover:border-blue-500/50 transition text-sm font-medium truncate max-w-[260px] sm:max-w-xs cursor-pointer",title:"Click to switch project folder",children:[o?c.jsx(am,{className:"h-4 w-4 text-blue-600 dark:text-blue-400 shrink-0"}):c.jsx(nm,{className:"h-4 w-4 text-amber-600 dark:text-amber-400 shrink-0"}),c.jsx("span",{className:"truncate",children:s}),f&&c.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-blue-500/10 text-blue-600 dark:text-blue-400 font-mono shrink-0",children:f})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("button",{type:"button",onClick:()=>void C(),disabled:!p,className:`hidden sm:flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-medium border transition cursor-pointer ${r&&p?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-[var(--border-default)] bg-[var(--bg-subtle)] text-[var(--text-muted)]"}`,title:p?"Toggle automatic detection when you copy an AI reply":"Clipboard auto-watch unavailable; paste AI replies in Review & Apply",children:[c.jsx(C1,{className:`h-3.5 w-3.5 ${r?"animate-pulse":""}`}),c.jsx("span",{children:p?r?"Listening for AI Replies":"Auto-Listen Paused":"Manual Paste Mode"})]}),c.jsxs("button",{type:"button",onClick:x,className:`hidden md:flex items-center gap-1.5 px-2.5 py-1.5 rounded-full text-xs font-medium border transition cursor-pointer ${m?"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300":"border-[var(--border-default)] bg-[var(--bg-subtle)] text-[var(--text-muted)]"}`,title:"Automatically switch to Review & Apply when an AI patch is copied to your clipboard",children:[c.jsx(P1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:m?"Auto-Review On":"Auto-Review Off"})]}),c.jsxs("button",{type:"button",onClick:()=>E(!0),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border border-[var(--border-default)] bg-[var(--bg-surface)] hover:bg-[var(--bg-subtle)] transition cursor-pointer",children:[c.jsx(Qy,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Undo History"}),X>0&&c.jsx("span",{className:"px-1.5 py-0.2 rounded-full bg-blue-600 text-white text-[11px]",children:X})]}),c.jsx("button",{type:"button",onClick:D,"aria-label":"Toggle color theme",className:"p-2 rounded-lg border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] transition cursor-pointer",children:_?c.jsx(k1,{className:"h-4 w-4"}):c.jsx(S1,{className:"h-4 w-4"})})]})]})}const _x=[{id:"prepare",title:"1. Prepare & Send",shortcut:"Alt+1"},{id:"review",title:"2. Review & Apply",shortcut:"Alt+2"}];function Cx(s){return!s||s.length<15?!1:!!(/(?:<[ \t]*){4,12}[ \t]*SEARCH/i.test(s)&&/(?:>[ \t]*){4,12}[ \t]*REPLACE/i.test(s)||/^--- .+\n\+\+\+ .+/m.test(s)&&s.includes("@@")||/^[ \t]*(?:[#*>\s\-\/\d.]*)(?:CREATE FILE|NEW FILE|DELETE FILE|REMOVE FILE)\*{0,2}\s*:/mi.test(s))}function jx(){const{activeStep:s,repoName:o,socketConnected:f,selectedPaths:r,activeParse:p,appliedFilePaths:m,hasUnreadPatch:_,filePanelCollapsed:H,toasts:R,setStep:E,bootstrap:C,receiveIncomingParse:x,parseRawText:D,setWatcherStatus:X,setSocketConnected:V,dismissToast:ee,undoSnapshotById:I}=la();me.useEffect(()=>(C(),ox(F=>{F.type==="PATCH_DETECTED"?x(F.payload.parseResult,!0):F.type==="WATCHER_STATUS"&&X(F.payload.enabled,F.payload.available)},F=>V(F))),[C,x,X,V]),me.useEffect(()=>{const G=F=>{!F.altKey||F.ctrlKey||F.metaKey||(F.key==="1"?(F.preventDefault(),E("prepare")):F.key==="2"&&(F.preventDefault(),E("review")))};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[E]),me.useEffect(()=>{const G=F=>{var J;const z=F.target;if(z&&(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable))return;const te=((J=F.clipboardData)==null?void 0:J.getData("text/plain"))??"";if(!te.trim())return;(la.getState().activeStep==="review"||Cx(te))&&(F.preventDefault(),D(te))};return window.addEventListener("paste",G),()=>window.removeEventListener("paste",G)},[D]);const pe=p?p.files.filter(G=>G.status==="ready"&&!m.has(G.filePath)).length:0;return c.jsxs("div",{className:"flex flex-col h-screen w-screen overflow-hidden bg-[var(--bg-canvas)] text-[var(--text-primary)]",children:[c.jsx(Ex,{}),o!=="Loading..."&&!f&&c.jsxs("div",{className:"bg-amber-500/15 border-b border-amber-500/30 px-4 py-1.5 text-center text-xs text-amber-800 dark:text-amber-200 shrink-0",children:["Local Chat2Diff server disconnected — re-run ",c.jsx("code",{className:"font-mono font-semibold",children:"npx chat2diff"})," in your terminal to reconnect."]}),c.jsx("nav",{className:"border-b border-[var(--border-default)] bg-[var(--bg-surface)] px-4 py-2 shrink-0",children:c.jsx("div",{className:"max-w-xl mx-auto grid grid-cols-2 gap-2",children:_x.map(G=>{const F=s===G.id;return c.jsxs("button",{type:"button",onClick:()=>E(G.id),title:`Switch view (${G.shortcut})`,className:`py-2 px-3 rounded-lg text-xs sm:text-sm font-medium flex items-center justify-center gap-2 transition cursor-pointer ${F?"bg-blue-600 text-white shadow-xs":"bg-[var(--bg-subtle)] text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:[c.jsx("span",{children:G.title}),G.id==="prepare"&&r.size>0&&c.jsxs("span",{className:`text-[11px] px-1.5 py-0.5 rounded-full ${F?"bg-white/20 text-white":"bg-blue-500/15 text-blue-600 dark:text-blue-400"}`,children:[r.size," files"]}),G.id==="review"&&pe>0&&c.jsxs("span",{className:`text-[11px] px-1.5 py-0.5 rounded-full ${F?"bg-white/20 text-white":"bg-emerald-500/15 text-emerald-700 dark:text-emerald-300"}`,children:[pe," pending"]}),G.id==="review"&&_&&c.jsx("span",{className:"h-2 w-2 rounded-full bg-emerald-400 animate-ping"})]},G.id)})})}),c.jsx("main",{className:"flex-1 min-h-0 overflow-y-auto flex flex-col",children:s==="prepare"?c.jsxs("div",{className:"p-4 sm:p-5 max-w-[1440px] mx-auto w-full flex-1 min-h-0 grid grid-cols-1 lg:grid-cols-12 gap-5",children:[!H&&c.jsx("div",{className:"lg:col-span-5 xl:col-span-4 min-h-0 flex flex-col",children:c.jsx(gx,{})}),c.jsx("div",{className:`${H?"lg:col-span-12 max-w-4xl mx-auto w-full":"lg:col-span-7 xl:col-span-8"} min-h-0 flex flex-col`,children:c.jsx(bx,{})})]}):c.jsx(wx,{})}),c.jsx(yx,{}),c.jsx(vx,{}),c.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm",children:R.map(G=>c.jsxs("div",{className:`px-4 py-3 rounded-xl shadow-lg border text-xs flex items-center justify-between gap-3 ${G.tone==="success"?"bg-emerald-600 text-white border-emerald-500":G.tone==="error"?"bg-red-600 text-white border-red-500":"bg-[var(--bg-surface)] text-[var(--text-primary)] border-[var(--border-default)]"}`,children:[c.jsx("span",{children:G.text}),c.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[G.actionLabel&&G.actionStep&&c.jsx("button",{type:"button",onClick:()=>{E(G.actionStep),ee(G.id)},className:"px-2.5 py-1 rounded bg-blue-600 hover:bg-blue-700 text-white font-semibold cursor-pointer",children:G.actionLabel}),G.undoSnapshotId&&c.jsxs("button",{type:"button",onClick:()=>{I(G.undoSnapshotId),ee(G.id)},className:"inline-flex items-center gap-1 px-2 py-1 rounded bg-white/20 hover:bg-white/30 font-semibold cursor-pointer",children:[c.jsx(Wr,{className:"h-3 w-3"}),"Undo"]}),c.jsx("button",{type:"button",onClick:()=>ee(G.id),className:"p-0.5 opacity-80 hover:opacity-100 cursor-pointer",children:c.jsx(yu,{className:"h-3.5 w-3.5"})})]})]},G.id))})]})}_y.createRoot(document.getElementById("root")).render(c.jsx(me.StrictMode,{children:c.jsx(jx,{})}));