oh-my-pr 2.8.2 → 2.9.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,8 @@
1
+ function dv(n,o){for(var s=0;s<o.length;s++){const l=o[s];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(l,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();function pp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ia={exports:{}},vo={},la={exports:{}},he={};var df;function fv(){if(df)return he;df=1;var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function S(P){return P===null||typeof P!="object"?null:(P=b&&P[b]||P["@@iterator"],typeof P=="function"?P:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,k={};function N(P,z,ue){this.props=P,this.context=z,this.refs=k,this.updater=ue||R}N.prototype.isReactComponent={},N.prototype.setState=function(P,z){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,z,"setState")},N.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function j(){}j.prototype=N.prototype;function I(P,z,ue){this.props=P,this.context=z,this.refs=k,this.updater=ue||R}var M=I.prototype=new j;M.constructor=I,T(M,N.prototype),M.isPureReactComponent=!0;var D=Array.isArray,$=Object.prototype.hasOwnProperty,B={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function ne(P,z,ue){var de,ge={},ve=null,xe=null;if(z!=null)for(de in z.ref!==void 0&&(xe=z.ref),z.key!==void 0&&(ve=""+z.key),z)$.call(z,de)&&!V.hasOwnProperty(de)&&(ge[de]=z[de]);var we=arguments.length-2;if(we===1)ge.children=ue;else if(1<we){for(var Ce=Array(we),Ye=0;Ye<we;Ye++)Ce[Ye]=arguments[Ye+2];ge.children=Ce}if(P&&P.defaultProps)for(de in we=P.defaultProps,we)ge[de]===void 0&&(ge[de]=we[de]);return{$$typeof:n,type:P,key:ve,ref:xe,props:ge,_owner:B.current}}function F(P,z){return{$$typeof:n,type:P.type,key:z,ref:P.ref,props:P.props,_owner:P._owner}}function re(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function pe(P){var z={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(ue){return z[ue]})}var ee=/\/+/g;function ce(P,z){return typeof P=="object"&&P!==null&&P.key!=null?pe(""+P.key):z.toString(36)}function G(P,z,ue,de,ge){var ve=typeof P;(ve==="undefined"||ve==="boolean")&&(P=null);var xe=!1;if(P===null)xe=!0;else switch(ve){case"string":case"number":xe=!0;break;case"object":switch(P.$$typeof){case n:case o:xe=!0}}if(xe)return xe=P,ge=ge(xe),P=de===""?"."+ce(xe,0):de,D(ge)?(ue="",P!=null&&(ue=P.replace(ee,"$&/")+"/"),G(ge,z,ue,"",function(Ye){return Ye})):ge!=null&&(re(ge)&&(ge=F(ge,ue+(!ge.key||xe&&xe.key===ge.key?"":(""+ge.key).replace(ee,"$&/")+"/")+P)),z.push(ge)),1;if(xe=0,de=de===""?".":de+":",D(P))for(var we=0;we<P.length;we++){ve=P[we];var Ce=de+ce(ve,we);xe+=G(ve,z,ue,Ce,ge)}else if(Ce=S(P),typeof Ce=="function")for(P=Ce.call(P),we=0;!(ve=P.next()).done;)ve=ve.value,Ce=de+ce(ve,we++),xe+=G(ve,z,ue,Ce,ge);else if(ve==="object")throw z=String(P),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return xe}function me(P,z,ue){if(P==null)return P;var de=[],ge=0;return G(P,de,"","",function(ve){return z.call(ue,ve,ge++)}),de}function le(P){if(P._status===-1){var z=P._result;z=z(),z.then(function(ue){(P._status===0||P._status===-1)&&(P._status=1,P._result=ue)},function(ue){(P._status===0||P._status===-1)&&(P._status=2,P._result=ue)}),P._status===-1&&(P._status=0,P._result=z)}if(P._status===1)return P._result.default;throw P._result}var ie={current:null},L={transition:null},q={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:L,ReactCurrentOwner:B};function K(){throw Error("act(...) is not supported in production builds of React.")}return he.Children={map:me,forEach:function(P,z,ue){me(P,function(){z.apply(this,arguments)},ue)},count:function(P){var z=0;return me(P,function(){z++}),z},toArray:function(P){return me(P,function(z){return z})||[]},only:function(P){if(!re(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},he.Component=N,he.Fragment=s,he.Profiler=u,he.PureComponent=I,he.StrictMode=l,he.Suspense=g,he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,he.act=K,he.cloneElement=function(P,z,ue){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var de=T({},P.props),ge=P.key,ve=P.ref,xe=P._owner;if(z!=null){if(z.ref!==void 0&&(ve=z.ref,xe=B.current),z.key!==void 0&&(ge=""+z.key),P.type&&P.type.defaultProps)var we=P.type.defaultProps;for(Ce in z)$.call(z,Ce)&&!V.hasOwnProperty(Ce)&&(de[Ce]=z[Ce]===void 0&&we!==void 0?we[Ce]:z[Ce])}var Ce=arguments.length-2;if(Ce===1)de.children=ue;else if(1<Ce){we=Array(Ce);for(var Ye=0;Ye<Ce;Ye++)we[Ye]=arguments[Ye+2];de.children=we}return{$$typeof:n,type:P.type,key:ge,ref:ve,props:de,_owner:xe}},he.createContext=function(P){return P={$$typeof:p,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:f,_context:P},P.Consumer=P},he.createElement=ne,he.createFactory=function(P){var z=ne.bind(null,P);return z.type=P,z},he.createRef=function(){return{current:null}},he.forwardRef=function(P){return{$$typeof:h,render:P}},he.isValidElement=re,he.lazy=function(P){return{$$typeof:y,_payload:{_status:-1,_result:P},_init:le}},he.memo=function(P,z){return{$$typeof:v,type:P,compare:z===void 0?null:z}},he.startTransition=function(P){var z=L.transition;L.transition={};try{P()}finally{L.transition=z}},he.unstable_act=K,he.useCallback=function(P,z){return ie.current.useCallback(P,z)},he.useContext=function(P){return ie.current.useContext(P)},he.useDebugValue=function(){},he.useDeferredValue=function(P){return ie.current.useDeferredValue(P)},he.useEffect=function(P,z){return ie.current.useEffect(P,z)},he.useId=function(){return ie.current.useId()},he.useImperativeHandle=function(P,z,ue){return ie.current.useImperativeHandle(P,z,ue)},he.useInsertionEffect=function(P,z){return ie.current.useInsertionEffect(P,z)},he.useLayoutEffect=function(P,z){return ie.current.useLayoutEffect(P,z)},he.useMemo=function(P,z){return ie.current.useMemo(P,z)},he.useReducer=function(P,z,ue){return ie.current.useReducer(P,z,ue)},he.useRef=function(P){return ie.current.useRef(P)},he.useState=function(P){return ie.current.useState(P)},he.useSyncExternalStore=function(P,z,ue){return ie.current.useSyncExternalStore(P,z,ue)},he.useTransition=function(){return ie.current.useTransition()},he.version="18.3.1",he}var ff;function Js(){return ff||(ff=1,la.exports=fv()),la.exports}var pf;function pv(){if(pf)return vo;pf=1;var n=Js(),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(h,g,v){var y,b={},S=null,R=null;v!==void 0&&(S=""+v),g.key!==void 0&&(S=""+g.key),g.ref!==void 0&&(R=g.ref);for(y in g)l.call(g,y)&&!f.hasOwnProperty(y)&&(b[y]=g[y]);if(h&&h.defaultProps)for(y in g=h.defaultProps,g)b[y]===void 0&&(b[y]=g[y]);return{$$typeof:o,type:h,key:S,ref:R,props:b,_owner:u.current}}return vo.Fragment=s,vo.jsx=p,vo.jsxs=p,vo}var hf;function hv(){return hf||(hf=1,ia.exports=pv()),ia.exports}var d=hv(),zs={},aa={exports:{}},st={},ua={exports:{}},ca={};var mf;function mv(){return mf||(mf=1,(function(n){function o(L,q){var K=L.length;L.push(q);e:for(;0<K;){var P=K-1>>>1,z=L[P];if(0<u(z,q))L[P]=q,L[K]=z,K=P;else break e}}function s(L){return L.length===0?null:L[0]}function l(L){if(L.length===0)return null;var q=L[0],K=L.pop();if(K!==q){L[0]=K;e:for(var P=0,z=L.length,ue=z>>>1;P<ue;){var de=2*(P+1)-1,ge=L[de],ve=de+1,xe=L[ve];if(0>u(ge,K))ve<z&&0>u(xe,ge)?(L[P]=xe,L[ve]=K,P=ve):(L[P]=ge,L[de]=K,P=de);else if(ve<z&&0>u(xe,K))L[P]=xe,L[ve]=K,P=ve;else break e}}return q}function u(L,q){var K=L.sortIndex-q.sortIndex;return K!==0?K:L.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();n.unstable_now=function(){return p.now()-h}}var g=[],v=[],y=1,b=null,S=3,R=!1,T=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(L){for(var q=s(v);q!==null;){if(q.callback===null)l(v);else if(q.startTime<=L)l(v),q.sortIndex=q.expirationTime,o(g,q);else break;q=s(v)}}function D(L){if(k=!1,M(L),!T)if(s(g)!==null)T=!0,le($);else{var q=s(v);q!==null&&ie(D,q.startTime-L)}}function $(L,q){T=!1,k&&(k=!1,j(ne),ne=-1),R=!0;var K=S;try{for(M(q),b=s(g);b!==null&&(!(b.expirationTime>q)||L&&!pe());){var P=b.callback;if(typeof P=="function"){b.callback=null,S=b.priorityLevel;var z=P(b.expirationTime<=q);q=n.unstable_now(),typeof z=="function"?b.callback=z:b===s(g)&&l(g),M(q)}else l(g);b=s(g)}if(b!==null)var ue=!0;else{var de=s(v);de!==null&&ie(D,de.startTime-q),ue=!1}return ue}finally{b=null,S=K,R=!1}}var B=!1,V=null,ne=-1,F=5,re=-1;function pe(){return!(n.unstable_now()-re<F)}function ee(){if(V!==null){var L=n.unstable_now();re=L;var q=!0;try{q=V(!0,L)}finally{q?ce():(B=!1,V=null)}}else B=!1}var ce;if(typeof I=="function")ce=function(){I(ee)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,me=G.port2;G.port1.onmessage=ee,ce=function(){me.postMessage(null)}}else ce=function(){N(ee,0)};function le(L){V=L,B||(B=!0,ce())}function ie(L,q){ne=N(function(){L(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(L){L.callback=null},n.unstable_continueExecution=function(){T||R||(T=!0,le($))},n.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return s(g)},n.unstable_next=function(L){switch(S){case 1:case 2:case 3:var q=3;break;default:q=S}var K=S;S=q;try{return L()}finally{S=K}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(L,q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var K=S;S=L;try{return q()}finally{S=K}},n.unstable_scheduleCallback=function(L,q,K){var P=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?P+K:P):K=P,L){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=K+z,L={id:y++,callback:q,priorityLevel:L,startTime:K,expirationTime:z,sortIndex:-1},K>P?(L.sortIndex=K,o(v,L),s(g)===null&&L===s(v)&&(k?(j(ne),ne=-1):k=!0,ie(D,K-P))):(L.sortIndex=z,o(g,L),T||R||(T=!0,le($))),L},n.unstable_shouldYield=pe,n.unstable_wrapCallback=function(L){var q=S;return function(){var K=S;S=q;try{return L.apply(this,arguments)}finally{S=K}}}})(ca)),ca}var gf;function gv(){return gf||(gf=1,ua.exports=mv()),ua.exports}var vf;function vv(){if(vf)return st;vf=1;var n=Js(),o=gv();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var l=new Set,u={};function f(e,t){p(e,t),p(e+"Capture",t)}function p(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,v=/^[: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]*$/,y={},b={};function S(e){return g.call(b,e)?!0:g.call(y,e)?!1:v.test(e)?b[e]=!0:(y[e]=!0,!1)}function R(e,t,r,i){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function T(e,t,r,i){if(t===null||typeof t>"u"||R(e,t,r,i))return!0;if(i)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function k(e,t,r,i,a,c,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=m}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];N[t]=new k(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new k(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){N[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function I(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(j,I);N[t]=new k(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(j,I);N[t]=new k(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(j,I);N[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});function M(e,t,r,i){var a=N.hasOwnProperty(t)?N[t]:null;(a!==null?a.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(T(t,r,a,i)&&(r=null),i||a===null?S(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,i=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,i?e.setAttributeNS(i,t,r):e.setAttribute(t,r))))}var D=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$=Symbol.for("react.element"),B=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),re=Symbol.for("react.provider"),pe=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),L=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=L&&e[L]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,P;function z(e){if(P===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
2
+ `+P+e}var ue=!1;function de(e,t){if(!e||ue)return"";ue=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(A){var i=A}Reflect.construct(e,[],t)}else{try{t.call()}catch(A){i=A}e.call(t.prototype)}else{try{throw Error()}catch(A){i=A}e()}}catch(A){if(A&&i&&typeof A.stack=="string"){for(var a=A.stack.split(`
3
+ `),c=i.stack.split(`
4
+ `),m=a.length-1,w=c.length-1;1<=m&&0<=w&&a[m]!==c[w];)w--;for(;1<=m&&0<=w;m--,w--)if(a[m]!==c[w]){if(m!==1||w!==1)do if(m--,w--,0>w||a[m]!==c[w]){var C=`
5
+ `+a[m].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=m&&0<=w);break}}}finally{ue=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?z(e):""}function ge(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=de(e.type,!1),e;case 11:return e=de(e.type.render,!1),e;case 1:return e=de(e.type,!0),e;default:return""}}function ve(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V:return"Fragment";case B:return"Portal";case F:return"Profiler";case ne:return"StrictMode";case ce:return"Suspense";case G:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pe:return(e.displayName||"Context")+".Consumer";case re:return(e._context.displayName||"Context")+".Provider";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case me:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function xe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(t);case 8:return t===ne?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function we(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ye(e){var t=Ce(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(m){i=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yn(e){e._valueTracker||(e._valueTracker=Ye(e))}function To(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=Ce(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function Ht(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 pi(e,t){var r=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function vu(e,t){var r=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;r=we(t.value!=null?t.value:r),e._wrapperState={initialChecked:i,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yu(e,t){t=t.checked,t!=null&&M(e,"checked",t,!1)}function hi(e,t){yu(e,t);var r=we(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mi(e,t.type,r):t.hasOwnProperty("defaultValue")&&mi(e,t.type,we(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xu(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function mi(e,t,r){(t!=="number"||Ht(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Or=Array.isArray;function Xn(e,t,r,i){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&i&&(e[r].defaultSelected=!0)}else{for(r=""+we(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function gi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wu(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(s(92));if(Or(r)){if(1<r.length)throw Error(s(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:we(r)}}function bu(e,t){var r=we(t.value),i=we(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),i!=null&&(e.defaultValue=""+i)}function Su(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Cu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function vi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Cu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Oo,ku=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,i,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,i,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Oo=Oo||document.createElement("div"),Oo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Oo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _r(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ar={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mm=["Webkit","ms","Moz","O"];Object.keys(Ar).forEach(function(e){mm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ar[t]=Ar[e]})});function Eu(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ar.hasOwnProperty(e)&&Ar[e]?(""+t).trim():t+"px"}function Nu(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=r.indexOf("--")===0,a=Eu(r,t[r],i);r==="float"&&(r="cssFloat"),i?e.setProperty(r,a):e[r]=a}}var gm=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yi(e,t){if(t){if(gm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function xi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 wi=null;function bi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Si=null,Zn=null,Jn=null;function Pu(e){if(e=to(e)){if(typeof Si!="function")throw Error(s(280));var t=e.stateNode;t&&(t=es(t),Si(e.stateNode,e.type,t))}}function Ru(e){Zn?Jn?Jn.push(e):Jn=[e]:Zn=e}function ju(){if(Zn){var e=Zn,t=Jn;if(Jn=Zn=null,Pu(e),t)for(e=0;e<t.length;e++)Pu(t[e])}}function Tu(e,t){return e(t)}function Ou(){}var Ci=!1;function _u(e,t,r){if(Ci)return e(t,r);Ci=!0;try{return Tu(e,t,r)}finally{Ci=!1,(Zn!==null||Jn!==null)&&(Ou(),ju())}}function Ir(e,t){var r=e.stateNode;if(r===null)return null;var i=es(r);if(i===null)return null;r=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,t,typeof r));return r}var ki=!1;if(h)try{var Mr={};Object.defineProperty(Mr,"passive",{get:function(){ki=!0}}),window.addEventListener("test",Mr,Mr),window.removeEventListener("test",Mr,Mr)}catch{ki=!1}function vm(e,t,r,i,a,c,m,w,C){var A=Array.prototype.slice.call(arguments,3);try{t.apply(r,A)}catch(H){this.onError(H)}}var Lr=!1,_o=null,Ao=!1,Ei=null,ym={onError:function(e){Lr=!0,_o=e}};function xm(e,t,r,i,a,c,m,w,C){Lr=!1,_o=null,vm.apply(ym,arguments)}function wm(e,t,r,i,a,c,m,w,C){if(xm.apply(this,arguments),Lr){if(Lr){var A=_o;Lr=!1,_o=null}else throw Error(s(198));Ao||(Ao=!0,Ei=A)}}function On(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Au(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 Iu(e){if(On(e)!==e)throw Error(s(188))}function bm(e){var t=e.alternate;if(!t){if(t=On(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,i=t;;){var a=r.return;if(a===null)break;var c=a.alternate;if(c===null){if(i=a.return,i!==null){r=i;continue}break}if(a.child===c.child){for(c=a.child;c;){if(c===r)return Iu(a),e;if(c===i)return Iu(a),t;c=c.sibling}throw Error(s(188))}if(r.return!==i.return)r=a,i=c;else{for(var m=!1,w=a.child;w;){if(w===r){m=!0,r=a,i=c;break}if(w===i){m=!0,i=a,r=c;break}w=w.sibling}if(!m){for(w=c.child;w;){if(w===r){m=!0,r=c,i=a;break}if(w===i){m=!0,i=c,r=a;break}w=w.sibling}if(!m)throw Error(s(189))}}if(r.alternate!==i)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}function Mu(e){return e=bm(e),e!==null?Lu(e):null}function Lu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Lu(e);if(t!==null)return t;e=e.sibling}return null}var Du=o.unstable_scheduleCallback,Fu=o.unstable_cancelCallback,Sm=o.unstable_shouldYield,Cm=o.unstable_requestPaint,Ae=o.unstable_now,km=o.unstable_getCurrentPriorityLevel,Ni=o.unstable_ImmediatePriority,zu=o.unstable_UserBlockingPriority,Io=o.unstable_NormalPriority,Em=o.unstable_LowPriority,$u=o.unstable_IdlePriority,Mo=null,At=null;function Nm(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Mo,e,void 0,(e.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:jm,Pm=Math.log,Rm=Math.LN2;function jm(e){return e>>>=0,e===0?32:31-(Pm(e)/Rm|0)|0}var Lo=64,Do=4194304;function Dr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fo(e,t){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,c=e.pingedLanes,m=r&268435455;if(m!==0){var w=m&~a;w!==0?i=Dr(w):(c&=m,c!==0&&(i=Dr(c)))}else m=r&~a,m!==0?i=Dr(m):c!==0&&(i=Dr(c));if(i===0)return 0;if(t!==0&&t!==i&&(t&a)===0&&(a=i&-i,c=t&-t,a>=c||a===16&&(c&4194240)!==0))return t;if((i&4)!==0&&(i|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)r=31-kt(t),a=1<<r,i|=e[r],t&=~a;return i}function Tm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Om(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,c=e.pendingLanes;0<c;){var m=31-kt(c),w=1<<m,C=a[m];C===-1?((w&r)===0||(w&i)!==0)&&(a[m]=Tm(w,t)):C<=t&&(e.expiredLanes|=w),c&=~w}}function Pi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Uu(){var e=Lo;return Lo<<=1,(Lo&4194240)===0&&(Lo=64),e}function Ri(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Fr(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=r}function _m(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-kt(r),c=1<<a;t[a]=0,i[a]=-1,e[a]=-1,r&=~c}}function ji(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-kt(r),a=1<<i;a&t|e[i]&t&&(e[i]|=t),r&=~a}}var Se=0;function Hu(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Wu,Ti,Bu,Vu,Qu,Oi=!1,zo=[],nn=null,rn=null,on=null,zr=new Map,$r=new Map,sn=[],Am="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 submit".split(" ");function Ku(e,t){switch(e){case"focusin":case"focusout":nn=null;break;case"dragenter":case"dragleave":rn=null;break;case"mouseover":case"mouseout":on=null;break;case"pointerover":case"pointerout":zr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$r.delete(t.pointerId)}}function Ur(e,t,r,i,a,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:i,nativeEvent:c,targetContainers:[a]},t!==null&&(t=to(t),t!==null&&Ti(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Im(e,t,r,i,a){switch(t){case"focusin":return nn=Ur(nn,e,t,r,i,a),!0;case"dragenter":return rn=Ur(rn,e,t,r,i,a),!0;case"mouseover":return on=Ur(on,e,t,r,i,a),!0;case"pointerover":var c=a.pointerId;return zr.set(c,Ur(zr.get(c)||null,e,t,r,i,a)),!0;case"gotpointercapture":return c=a.pointerId,$r.set(c,Ur($r.get(c)||null,e,t,r,i,a)),!0}return!1}function qu(e){var t=_n(e.target);if(t!==null){var r=On(t);if(r!==null){if(t=r.tag,t===13){if(t=Au(r),t!==null){e.blockedOn=t,Qu(e.priority,function(){Bu(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $o(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ai(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);wi=i,r.target.dispatchEvent(i),wi=null}else return t=to(r),t!==null&&Ti(t),e.blockedOn=r,!1;t.shift()}return!0}function Gu(e,t,r){$o(e)&&r.delete(t)}function Mm(){Oi=!1,nn!==null&&$o(nn)&&(nn=null),rn!==null&&$o(rn)&&(rn=null),on!==null&&$o(on)&&(on=null),zr.forEach(Gu),$r.forEach(Gu)}function Hr(e,t){e.blockedOn===t&&(e.blockedOn=null,Oi||(Oi=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Mm)))}function Wr(e){function t(a){return Hr(a,e)}if(0<zo.length){Hr(zo[0],e);for(var r=1;r<zo.length;r++){var i=zo[r];i.blockedOn===e&&(i.blockedOn=null)}}for(nn!==null&&Hr(nn,e),rn!==null&&Hr(rn,e),on!==null&&Hr(on,e),zr.forEach(t),$r.forEach(t),r=0;r<sn.length;r++)i=sn[r],i.blockedOn===e&&(i.blockedOn=null);for(;0<sn.length&&(r=sn[0],r.blockedOn===null);)qu(r),r.blockedOn===null&&sn.shift()}var er=D.ReactCurrentBatchConfig,Uo=!0;function Lm(e,t,r,i){var a=Se,c=er.transition;er.transition=null;try{Se=1,_i(e,t,r,i)}finally{Se=a,er.transition=c}}function Dm(e,t,r,i){var a=Se,c=er.transition;er.transition=null;try{Se=4,_i(e,t,r,i)}finally{Se=a,er.transition=c}}function _i(e,t,r,i){if(Uo){var a=Ai(e,t,r,i);if(a===null)Yi(e,t,i,Ho,r),Ku(e,i);else if(Im(a,e,t,r,i))i.stopPropagation();else if(Ku(e,i),t&4&&-1<Am.indexOf(e)){for(;a!==null;){var c=to(a);if(c!==null&&Wu(c),c=Ai(e,t,r,i),c===null&&Yi(e,t,i,Ho,r),c===a)break;a=c}a!==null&&i.stopPropagation()}else Yi(e,t,i,null,r)}}var Ho=null;function Ai(e,t,r,i){if(Ho=null,e=bi(i),e=_n(e),e!==null)if(t=On(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Au(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ho=e,null}function Yu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(km()){case Ni:return 1;case zu:return 4;case Io:case Em:return 16;case $u:return 536870912;default:return 16}default:return 16}}var ln=null,Ii=null,Wo=null;function Xu(){if(Wo)return Wo;var e,t=Ii,r=t.length,i,a="value"in ln?ln.value:ln.textContent,c=a.length;for(e=0;e<r&&t[e]===a[e];e++);var m=r-e;for(i=1;i<=m&&t[r-i]===a[c-i];i++);return Wo=a.slice(e,1<i?1-i:void 0)}function Bo(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 Vo(){return!0}function Zu(){return!1}function it(e){function t(r,i,a,c,m){this._reactName=r,this._targetInst=a,this.type=i,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(r=e[w],this[w]=r?r(c):c[w]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Vo:Zu,this.isPropagationStopped=Zu,this}return K(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Vo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Vo)},persist:function(){},isPersistent:Vo}),t}var tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mi=it(tr),Br=K({},tr,{view:0,detail:0}),Fm=it(Br),Li,Di,Vr,Qo=K({},Br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zi,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!==Vr&&(Vr&&e.type==="mousemove"?(Li=e.screenX-Vr.screenX,Di=e.screenY-Vr.screenY):Di=Li=0,Vr=e),Li)},movementY:function(e){return"movementY"in e?e.movementY:Di}}),Ju=it(Qo),zm=K({},Qo,{dataTransfer:0}),$m=it(zm),Um=K({},Br,{relatedTarget:0}),Fi=it(Um),Hm=K({},tr,{animationName:0,elapsedTime:0,pseudoElement:0}),Wm=it(Hm),Bm=K({},tr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vm=it(Bm),Qm=K({},tr,{data:0}),ec=it(Qm),Km={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qm={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"},Gm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ym(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gm[e])?!!t[e]:!1}function zi(){return Ym}var Xm=K({},Br,{key:function(e){if(e.key){var t=Km[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zi,charCode:function(e){return e.type==="keypress"?Bo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zm=it(Xm),Jm=K({},Qo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tc=it(Jm),eg=K({},Br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zi}),tg=it(eg),ng=K({},tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),rg=it(ng),og=K({},Qo,{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}),sg=it(og),ig=[9,13,27,32],$i=h&&"CompositionEvent"in window,Qr=null;h&&"documentMode"in document&&(Qr=document.documentMode);var lg=h&&"TextEvent"in window&&!Qr,nc=h&&(!$i||Qr&&8<Qr&&11>=Qr),rc=" ",oc=!1;function sc(e,t){switch(e){case"keyup":return ig.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ic(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nr=!1;function ag(e,t){switch(e){case"compositionend":return ic(t);case"keypress":return t.which!==32?null:(oc=!0,rc);case"textInput":return e=t.data,e===rc&&oc?null:e;default:return null}}function ug(e,t){if(nr)return e==="compositionend"||!$i&&sc(e,t)?(e=Xu(),Wo=Ii=ln=null,nr=!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 nc&&t.locale!=="ko"?null:t.data;default:return null}}var cg={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 lc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cg[e.type]:t==="textarea"}function ac(e,t,r,i){Ru(i),t=Xo(t,"onChange"),0<t.length&&(r=new Mi("onChange","change",null,r,i),e.push({event:r,listeners:t}))}var Kr=null,qr=null;function dg(e){Nc(e,0)}function Ko(e){var t=lr(e);if(To(t))return e}function fg(e,t){if(e==="change")return t}var uc=!1;if(h){var Ui;if(h){var Hi="oninput"in document;if(!Hi){var cc=document.createElement("div");cc.setAttribute("oninput","return;"),Hi=typeof cc.oninput=="function"}Ui=Hi}else Ui=!1;uc=Ui&&(!document.documentMode||9<document.documentMode)}function dc(){Kr&&(Kr.detachEvent("onpropertychange",fc),qr=Kr=null)}function fc(e){if(e.propertyName==="value"&&Ko(qr)){var t=[];ac(t,qr,e,bi(e)),_u(dg,t)}}function pg(e,t,r){e==="focusin"?(dc(),Kr=t,qr=r,Kr.attachEvent("onpropertychange",fc)):e==="focusout"&&dc()}function hg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ko(qr)}function mg(e,t){if(e==="click")return Ko(t)}function gg(e,t){if(e==="input"||e==="change")return Ko(t)}function vg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:vg;function Gr(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var a=r[i];if(!g.call(t,a)||!Et(e[a],t[a]))return!1}return!0}function pc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hc(e,t){var r=pc(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=t&&i>=t)return{node:r,offset:t-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pc(r)}}function mc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gc(){for(var e=window,t=Ht();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ht(e.document)}return t}function Wi(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")}function yg(e){var t=gc(),r=e.focusedElem,i=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&mc(r.ownerDocument.documentElement,r)){if(i!==null&&Wi(r)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,c=Math.min(i.start,a);i=i.end===void 0?c:Math.min(i.end,a),!e.extend&&c>i&&(a=i,i=c,c=a),a=hc(r,c);var m=hc(r,i);a&&m&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),c>i?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xg=h&&"documentMode"in document&&11>=document.documentMode,rr=null,Bi=null,Yr=null,Vi=!1;function vc(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Vi||rr==null||rr!==Ht(i)||(i=rr,"selectionStart"in i&&Wi(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Yr&&Gr(Yr,i)||(Yr=i,i=Xo(Bi,"onSelect"),0<i.length&&(t=new Mi("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=rr)))}function qo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var or={animationend:qo("Animation","AnimationEnd"),animationiteration:qo("Animation","AnimationIteration"),animationstart:qo("Animation","AnimationStart"),transitionend:qo("Transition","TransitionEnd")},Qi={},yc={};h&&(yc=document.createElement("div").style,"AnimationEvent"in window||(delete or.animationend.animation,delete or.animationiteration.animation,delete or.animationstart.animation),"TransitionEvent"in window||delete or.transitionend.transition);function Go(e){if(Qi[e])return Qi[e];if(!or[e])return e;var t=or[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in yc)return Qi[e]=t[r];return e}var xc=Go("animationend"),wc=Go("animationiteration"),bc=Go("animationstart"),Sc=Go("transitionend"),Cc=new Map,kc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function an(e,t){Cc.set(e,t),f(t,[e])}for(var Ki=0;Ki<kc.length;Ki++){var qi=kc[Ki],wg=qi.toLowerCase(),bg=qi[0].toUpperCase()+qi.slice(1);an(wg,"on"+bg)}an(xc,"onAnimationEnd"),an(wc,"onAnimationIteration"),an(bc,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(Sc,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xr="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(" "),Sg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xr));function Ec(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,wm(i,t,void 0,e),e.currentTarget=null}function Nc(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],a=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var m=i.length-1;0<=m;m--){var w=i[m],C=w.instance,A=w.currentTarget;if(w=w.listener,C!==c&&a.isPropagationStopped())break e;Ec(a,w,A),c=C}else for(m=0;m<i.length;m++){if(w=i[m],C=w.instance,A=w.currentTarget,w=w.listener,C!==c&&a.isPropagationStopped())break e;Ec(a,w,A),c=C}}}if(Ao)throw e=Ei,Ao=!1,Ei=null,e}function Ne(e,t){var r=t[nl];r===void 0&&(r=t[nl]=new Set);var i=e+"__bubble";r.has(i)||(Pc(t,e,2,!1),r.add(i))}function Gi(e,t,r){var i=0;t&&(i|=4),Pc(r,e,i,t)}var Yo="_reactListening"+Math.random().toString(36).slice(2);function Zr(e){if(!e[Yo]){e[Yo]=!0,l.forEach(function(r){r!=="selectionchange"&&(Sg.has(r)||Gi(r,!1,e),Gi(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yo]||(t[Yo]=!0,Gi("selectionchange",!1,t))}}function Pc(e,t,r,i){switch(Yu(t)){case 1:var a=Lm;break;case 4:a=Dm;break;default:a=_i}r=a.bind(null,t,r,e),a=void 0,!ki||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function Yi(e,t,r,i,a){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var w=i.stateNode.containerInfo;if(w===a||w.nodeType===8&&w.parentNode===a)break;if(m===4)for(m=i.return;m!==null;){var C=m.tag;if((C===3||C===4)&&(C=m.stateNode.containerInfo,C===a||C.nodeType===8&&C.parentNode===a))return;m=m.return}for(;w!==null;){if(m=_n(w),m===null)return;if(C=m.tag,C===5||C===6){i=c=m;continue e}w=w.parentNode}}i=i.return}_u(function(){var A=c,H=bi(r),W=[];e:{var U=Cc.get(e);if(U!==void 0){var Y=Mi,Z=e;switch(e){case"keypress":if(Bo(r)===0)break e;case"keydown":case"keyup":Y=Zm;break;case"focusin":Z="focus",Y=Fi;break;case"focusout":Z="blur",Y=Fi;break;case"beforeblur":case"afterblur":Y=Fi;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Ju;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=$m;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=tg;break;case xc:case wc:case bc:Y=Wm;break;case Sc:Y=rg;break;case"scroll":Y=Fm;break;case"wheel":Y=sg;break;case"copy":case"cut":case"paste":Y=Vm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=tc}var J=(t&4)!==0,Ie=!J&&e==="scroll",O=J?U!==null?U+"Capture":null:U;J=[];for(var E=A,_;E!==null;){_=E;var Q=_.stateNode;if(_.tag===5&&Q!==null&&(_=Q,O!==null&&(Q=Ir(E,O),Q!=null&&J.push(Jr(E,Q,_)))),Ie)break;E=E.return}0<J.length&&(U=new Y(U,Z,null,r,H),W.push({event:U,listeners:J}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",U&&r!==wi&&(Z=r.relatedTarget||r.fromElement)&&(_n(Z)||Z[Wt]))break e;if((Y||U)&&(U=H.window===H?H:(U=H.ownerDocument)?U.defaultView||U.parentWindow:window,Y?(Z=r.relatedTarget||r.toElement,Y=A,Z=Z?_n(Z):null,Z!==null&&(Ie=On(Z),Z!==Ie||Z.tag!==5&&Z.tag!==6)&&(Z=null)):(Y=null,Z=A),Y!==Z)){if(J=Ju,Q="onMouseLeave",O="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(J=tc,Q="onPointerLeave",O="onPointerEnter",E="pointer"),Ie=Y==null?U:lr(Y),_=Z==null?U:lr(Z),U=new J(Q,E+"leave",Y,r,H),U.target=Ie,U.relatedTarget=_,Q=null,_n(H)===A&&(J=new J(O,E+"enter",Z,r,H),J.target=_,J.relatedTarget=Ie,Q=J),Ie=Q,Y&&Z)t:{for(J=Y,O=Z,E=0,_=J;_;_=sr(_))E++;for(_=0,Q=O;Q;Q=sr(Q))_++;for(;0<E-_;)J=sr(J),E--;for(;0<_-E;)O=sr(O),_--;for(;E--;){if(J===O||O!==null&&J===O.alternate)break t;J=sr(J),O=sr(O)}J=null}else J=null;Y!==null&&Rc(W,U,Y,J,!1),Z!==null&&Ie!==null&&Rc(W,Ie,Z,J,!0)}}e:{if(U=A?lr(A):window,Y=U.nodeName&&U.nodeName.toLowerCase(),Y==="select"||Y==="input"&&U.type==="file")var te=fg;else if(lc(U))if(uc)te=gg;else{te=hg;var oe=pg}else(Y=U.nodeName)&&Y.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(te=mg);if(te&&(te=te(e,A))){ac(W,te,r,H);break e}oe&&oe(e,U,A),e==="focusout"&&(oe=U._wrapperState)&&oe.controlled&&U.type==="number"&&mi(U,"number",U.value)}switch(oe=A?lr(A):window,e){case"focusin":(lc(oe)||oe.contentEditable==="true")&&(rr=oe,Bi=A,Yr=null);break;case"focusout":Yr=Bi=rr=null;break;case"mousedown":Vi=!0;break;case"contextmenu":case"mouseup":case"dragend":Vi=!1,vc(W,r,H);break;case"selectionchange":if(xg)break;case"keydown":case"keyup":vc(W,r,H)}var se;if($i)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 nr?sc(e,r)&&(ae="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ae="onCompositionStart");ae&&(nc&&r.locale!=="ko"&&(nr||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&nr&&(se=Xu()):(ln=H,Ii="value"in ln?ln.value:ln.textContent,nr=!0)),oe=Xo(A,ae),0<oe.length&&(ae=new ec(ae,e,null,r,H),W.push({event:ae,listeners:oe}),se?ae.data=se:(se=ic(r),se!==null&&(ae.data=se)))),(se=lg?ag(e,r):ug(e,r))&&(A=Xo(A,"onBeforeInput"),0<A.length&&(H=new ec("onBeforeInput","beforeinput",null,r,H),W.push({event:H,listeners:A}),H.data=se))}Nc(W,t)})}function Jr(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Xo(e,t){for(var r=t+"Capture",i=[];e!==null;){var a=e,c=a.stateNode;a.tag===5&&c!==null&&(a=c,c=Ir(e,r),c!=null&&i.unshift(Jr(e,c,a)),c=Ir(e,t),c!=null&&i.push(Jr(e,c,a))),e=e.return}return i}function sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Rc(e,t,r,i,a){for(var c=t._reactName,m=[];r!==null&&r!==i;){var w=r,C=w.alternate,A=w.stateNode;if(C!==null&&C===i)break;w.tag===5&&A!==null&&(w=A,a?(C=Ir(r,c),C!=null&&m.unshift(Jr(r,C,w))):a||(C=Ir(r,c),C!=null&&m.push(Jr(r,C,w)))),r=r.return}m.length!==0&&e.push({event:t,listeners:m})}var Cg=/\r\n?/g,kg=/\u0000|\uFFFD/g;function jc(e){return(typeof e=="string"?e:""+e).replace(Cg,`
6
+ `).replace(kg,"")}function Zo(e,t,r){if(t=jc(t),jc(e)!==t&&r)throw Error(s(425))}function Jo(){}var Xi=null,Zi=null;function Ji(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var el=typeof setTimeout=="function"?setTimeout:void 0,Eg=typeof clearTimeout=="function"?clearTimeout:void 0,Tc=typeof Promise=="function"?Promise:void 0,Ng=typeof queueMicrotask=="function"?queueMicrotask:typeof Tc<"u"?function(e){return Tc.resolve(null).then(e).catch(Pg)}:el;function Pg(e){setTimeout(function(){throw e})}function tl(e,t){var r=t,i=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(i===0){e.removeChild(a),Wr(t);return}i--}else r!=="$"&&r!=="$?"&&r!=="$!"||i++;r=a}while(r);Wr(t)}function un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Oc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var ir=Math.random().toString(36).slice(2),It="__reactFiber$"+ir,eo="__reactProps$"+ir,Wt="__reactContainer$"+ir,nl="__reactEvents$"+ir,Rg="__reactListeners$"+ir,jg="__reactHandles$"+ir;function _n(e){var t=e[It];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Wt]||r[It]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Oc(e);e!==null;){if(r=e[It])return r;e=Oc(e)}return t}e=r,r=e.parentNode}return null}function to(e){return e=e[It]||e[Wt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function es(e){return e[eo]||null}var rl=[],ar=-1;function cn(e){return{current:e}}function Pe(e){0>ar||(e.current=rl[ar],rl[ar]=null,ar--)}function ke(e,t){ar++,rl[ar]=e.current,e.current=t}var dn={},Qe=cn(dn),et=cn(!1),An=dn;function ur(e,t){var r=e.type.contextTypes;if(!r)return dn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var a={},c;for(c in r)a[c]=t[c];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function tt(e){return e=e.childContextTypes,e!=null}function ts(){Pe(et),Pe(Qe)}function _c(e,t,r){if(Qe.current!==dn)throw Error(s(168));ke(Qe,t),ke(et,r)}function Ac(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return r;i=i.getChildContext();for(var a in i)if(!(a in t))throw Error(s(108,xe(e)||"Unknown",a));return K({},r,i)}function ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dn,An=Qe.current,ke(Qe,e),ke(et,et.current),!0}function Ic(e,t,r){var i=e.stateNode;if(!i)throw Error(s(169));r?(e=Ac(e,t,An),i.__reactInternalMemoizedMergedChildContext=e,Pe(et),Pe(Qe),ke(Qe,e)):Pe(et),ke(et,r)}var Bt=null,rs=!1,ol=!1;function Mc(e){Bt===null?Bt=[e]:Bt.push(e)}function Tg(e){rs=!0,Mc(e)}function fn(){if(!ol&&Bt!==null){ol=!0;var e=0,t=Se;try{var r=Bt;for(Se=1;e<r.length;e++){var i=r[e];do i=i(!0);while(i!==null)}Bt=null,rs=!1}catch(a){throw Bt!==null&&(Bt=Bt.slice(e+1)),Du(Ni,fn),a}finally{Se=t,ol=!1}}return null}var cr=[],dr=0,os=null,ss=0,ht=[],mt=0,In=null,Vt=1,Qt="";function Mn(e,t){cr[dr++]=ss,cr[dr++]=os,os=e,ss=t}function Lc(e,t,r){ht[mt++]=Vt,ht[mt++]=Qt,ht[mt++]=In,In=e;var i=Vt;e=Qt;var a=32-kt(i)-1;i&=~(1<<a),r+=1;var c=32-kt(t)+a;if(30<c){var m=a-a%5;c=(i&(1<<m)-1).toString(32),i>>=m,a-=m,Vt=1<<32-kt(t)+a|r<<a|i,Qt=c+e}else Vt=1<<c|r<<a|i,Qt=e}function sl(e){e.return!==null&&(Mn(e,1),Lc(e,1,0))}function il(e){for(;e===os;)os=cr[--dr],cr[dr]=null,ss=cr[--dr],cr[dr]=null;for(;e===In;)In=ht[--mt],ht[mt]=null,Qt=ht[--mt],ht[mt]=null,Vt=ht[--mt],ht[mt]=null}var lt=null,at=null,je=!1,Nt=null;function Dc(e,t){var r=xt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Fc(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lt=e,at=un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lt=e,at=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=In!==null?{id:Vt,overflow:Qt}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=xt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,lt=e,at=null,!0):!1;default:return!1}}function ll(e){return(e.mode&1)!==0&&(e.flags&128)===0}function al(e){if(je){var t=at;if(t){var r=t;if(!Fc(e,t)){if(ll(e))throw Error(s(418));t=un(r.nextSibling);var i=lt;t&&Fc(e,t)?Dc(i,r):(e.flags=e.flags&-4097|2,je=!1,lt=e)}}else{if(ll(e))throw Error(s(418));e.flags=e.flags&-4097|2,je=!1,lt=e}}}function zc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function is(e){if(e!==lt)return!1;if(!je)return zc(e),je=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ji(e.type,e.memoizedProps)),t&&(t=at)){if(ll(e))throw $c(),Error(s(418));for(;t;)Dc(e,t),t=un(t.nextSibling)}if(zc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){at=un(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}at=null}}else at=lt?un(e.stateNode.nextSibling):null;return!0}function $c(){for(var e=at;e;)e=un(e.nextSibling)}function fr(){at=lt=null,je=!1}function ul(e){Nt===null?Nt=[e]:Nt.push(e)}var Og=D.ReactCurrentBatchConfig;function no(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(s(309));var i=r.stateNode}if(!i)throw Error(s(147,e));var a=i,c=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c?t.ref:(t=function(m){var w=a.refs;m===null?delete w[c]:w[c]=m},t._stringRef=c,t)}if(typeof e!="string")throw Error(s(284));if(!r._owner)throw Error(s(290,e))}return e}function ls(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Uc(e){var t=e._init;return t(e._payload)}function Hc(e){function t(O,E){if(e){var _=O.deletions;_===null?(O.deletions=[E],O.flags|=16):_.push(E)}}function r(O,E){if(!e)return null;for(;E!==null;)t(O,E),E=E.sibling;return null}function i(O,E){for(O=new Map;E!==null;)E.key!==null?O.set(E.key,E):O.set(E.index,E),E=E.sibling;return O}function a(O,E){return O=wn(O,E),O.index=0,O.sibling=null,O}function c(O,E,_){return O.index=_,e?(_=O.alternate,_!==null?(_=_.index,_<E?(O.flags|=2,E):_):(O.flags|=2,E)):(O.flags|=1048576,E)}function m(O){return e&&O.alternate===null&&(O.flags|=2),O}function w(O,E,_,Q){return E===null||E.tag!==6?(E=ea(_,O.mode,Q),E.return=O,E):(E=a(E,_),E.return=O,E)}function C(O,E,_,Q){var te=_.type;return te===V?H(O,E,_.props.children,Q,_.key):E!==null&&(E.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===le&&Uc(te)===E.type)?(Q=a(E,_.props),Q.ref=no(O,E,_),Q.return=O,Q):(Q=Os(_.type,_.key,_.props,null,O.mode,Q),Q.ref=no(O,E,_),Q.return=O,Q)}function A(O,E,_,Q){return E===null||E.tag!==4||E.stateNode.containerInfo!==_.containerInfo||E.stateNode.implementation!==_.implementation?(E=ta(_,O.mode,Q),E.return=O,E):(E=a(E,_.children||[]),E.return=O,E)}function H(O,E,_,Q,te){return E===null||E.tag!==7?(E=Wn(_,O.mode,Q,te),E.return=O,E):(E=a(E,_),E.return=O,E)}function W(O,E,_){if(typeof E=="string"&&E!==""||typeof E=="number")return E=ea(""+E,O.mode,_),E.return=O,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case $:return _=Os(E.type,E.key,E.props,null,O.mode,_),_.ref=no(O,null,E),_.return=O,_;case B:return E=ta(E,O.mode,_),E.return=O,E;case le:var Q=E._init;return W(O,Q(E._payload),_)}if(Or(E)||q(E))return E=Wn(E,O.mode,_,null),E.return=O,E;ls(O,E)}return null}function U(O,E,_,Q){var te=E!==null?E.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return te!==null?null:w(O,E,""+_,Q);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case $:return _.key===te?C(O,E,_,Q):null;case B:return _.key===te?A(O,E,_,Q):null;case le:return te=_._init,U(O,E,te(_._payload),Q)}if(Or(_)||q(_))return te!==null?null:H(O,E,_,Q,null);ls(O,_)}return null}function Y(O,E,_,Q,te){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return O=O.get(_)||null,w(E,O,""+Q,te);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case $:return O=O.get(Q.key===null?_:Q.key)||null,C(E,O,Q,te);case B:return O=O.get(Q.key===null?_:Q.key)||null,A(E,O,Q,te);case le:var oe=Q._init;return Y(O,E,_,oe(Q._payload),te)}if(Or(Q)||q(Q))return O=O.get(_)||null,H(E,O,Q,te,null);ls(E,Q)}return null}function Z(O,E,_,Q){for(var te=null,oe=null,se=E,ae=E=0,He=null;se!==null&&ae<_.length;ae++){se.index>ae?(He=se,se=null):He=se.sibling;var be=U(O,se,_[ae],Q);if(be===null){se===null&&(se=He);break}e&&se&&be.alternate===null&&t(O,se),E=c(be,E,ae),oe===null?te=be:oe.sibling=be,oe=be,se=He}if(ae===_.length)return r(O,se),je&&Mn(O,ae),te;if(se===null){for(;ae<_.length;ae++)se=W(O,_[ae],Q),se!==null&&(E=c(se,E,ae),oe===null?te=se:oe.sibling=se,oe=se);return je&&Mn(O,ae),te}for(se=i(O,se);ae<_.length;ae++)He=Y(se,O,ae,_[ae],Q),He!==null&&(e&&He.alternate!==null&&se.delete(He.key===null?ae:He.key),E=c(He,E,ae),oe===null?te=He:oe.sibling=He,oe=He);return e&&se.forEach(function(bn){return t(O,bn)}),je&&Mn(O,ae),te}function J(O,E,_,Q){var te=q(_);if(typeof te!="function")throw Error(s(150));if(_=te.call(_),_==null)throw Error(s(151));for(var oe=te=null,se=E,ae=E=0,He=null,be=_.next();se!==null&&!be.done;ae++,be=_.next()){se.index>ae?(He=se,se=null):He=se.sibling;var bn=U(O,se,be.value,Q);if(bn===null){se===null&&(se=He);break}e&&se&&bn.alternate===null&&t(O,se),E=c(bn,E,ae),oe===null?te=bn:oe.sibling=bn,oe=bn,se=He}if(be.done)return r(O,se),je&&Mn(O,ae),te;if(se===null){for(;!be.done;ae++,be=_.next())be=W(O,be.value,Q),be!==null&&(E=c(be,E,ae),oe===null?te=be:oe.sibling=be,oe=be);return je&&Mn(O,ae),te}for(se=i(O,se);!be.done;ae++,be=_.next())be=Y(se,O,ae,be.value,Q),be!==null&&(e&&be.alternate!==null&&se.delete(be.key===null?ae:be.key),E=c(be,E,ae),oe===null?te=be:oe.sibling=be,oe=be);return e&&se.forEach(function(cv){return t(O,cv)}),je&&Mn(O,ae),te}function Ie(O,E,_,Q){if(typeof _=="object"&&_!==null&&_.type===V&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case $:e:{for(var te=_.key,oe=E;oe!==null;){if(oe.key===te){if(te=_.type,te===V){if(oe.tag===7){r(O,oe.sibling),E=a(oe,_.props.children),E.return=O,O=E;break e}}else if(oe.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===le&&Uc(te)===oe.type){r(O,oe.sibling),E=a(oe,_.props),E.ref=no(O,oe,_),E.return=O,O=E;break e}r(O,oe);break}else t(O,oe);oe=oe.sibling}_.type===V?(E=Wn(_.props.children,O.mode,Q,_.key),E.return=O,O=E):(Q=Os(_.type,_.key,_.props,null,O.mode,Q),Q.ref=no(O,E,_),Q.return=O,O=Q)}return m(O);case B:e:{for(oe=_.key;E!==null;){if(E.key===oe)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){r(O,E.sibling),E=a(E,_.children||[]),E.return=O,O=E;break e}else{r(O,E);break}else t(O,E);E=E.sibling}E=ta(_,O.mode,Q),E.return=O,O=E}return m(O);case le:return oe=_._init,Ie(O,E,oe(_._payload),Q)}if(Or(_))return Z(O,E,_,Q);if(q(_))return J(O,E,_,Q);ls(O,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,E!==null&&E.tag===6?(r(O,E.sibling),E=a(E,_),E.return=O,O=E):(r(O,E),E=ea(_,O.mode,Q),E.return=O,O=E),m(O)):r(O,E)}return Ie}var pr=Hc(!0),Wc=Hc(!1),as=cn(null),us=null,hr=null,cl=null;function dl(){cl=hr=us=null}function fl(e){var t=as.current;Pe(as),e._currentValue=t}function pl(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}}function mr(e,t){us=e,cl=hr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(nt=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(cl!==e)if(e={context:e,memoizedValue:t,next:null},hr===null){if(us===null)throw Error(s(308));hr=e,us.dependencies={lanes:0,firstContext:e}}else hr=hr.next=e;return t}var Ln=null;function hl(e){Ln===null?Ln=[e]:Ln.push(e)}function Bc(e,t,r,i){var a=t.interleaved;return a===null?(r.next=r,hl(t)):(r.next=a.next,a.next=r),t.interleaved=r,Kt(e,i)}function Kt(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var pn=!1;function ml(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hn(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ye&2)!==0){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,Kt(e,r)}return a=i.interleaved,a===null?(t.next=t,hl(i)):(t.next=a.next,a.next=t),i.interleaved=t,Kt(e,r)}function cs(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,ji(e,r)}}function Qc(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var a=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var m={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};c===null?a=c=m:c=c.next=m,r=r.next}while(r!==null);c===null?a=c=t:c=c.next=t}else a=c=t;r={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:c,shared:i.shared,effects:i.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ds(e,t,r,i){var a=e.updateQueue;pn=!1;var c=a.firstBaseUpdate,m=a.lastBaseUpdate,w=a.shared.pending;if(w!==null){a.shared.pending=null;var C=w,A=C.next;C.next=null,m===null?c=A:m.next=A,m=C;var H=e.alternate;H!==null&&(H=H.updateQueue,w=H.lastBaseUpdate,w!==m&&(w===null?H.firstBaseUpdate=A:w.next=A,H.lastBaseUpdate=C))}if(c!==null){var W=a.baseState;m=0,H=A=C=null,w=c;do{var U=w.lane,Y=w.eventTime;if((i&U)===U){H!==null&&(H=H.next={eventTime:Y,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var Z=e,J=w;switch(U=t,Y=r,J.tag){case 1:if(Z=J.payload,typeof Z=="function"){W=Z.call(Y,W,U);break e}W=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=J.payload,U=typeof Z=="function"?Z.call(Y,W,U):Z,U==null)break e;W=K({},W,U);break e;case 2:pn=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,U=a.effects,U===null?a.effects=[w]:U.push(w))}else Y={eventTime:Y,lane:U,tag:w.tag,payload:w.payload,callback:w.callback,next:null},H===null?(A=H=Y,C=W):H=H.next=Y,m|=U;if(w=w.next,w===null){if(w=a.shared.pending,w===null)break;U=w,w=U.next,U.next=null,a.lastBaseUpdate=U,a.shared.pending=null}}while(!0);if(H===null&&(C=W),a.baseState=C,a.firstBaseUpdate=A,a.lastBaseUpdate=H,t=a.shared.interleaved,t!==null){a=t;do m|=a.lane,a=a.next;while(a!==t)}else c===null&&(a.shared.lanes=0);zn|=m,e.lanes=m,e.memoizedState=W}}function Kc(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=r,typeof a!="function")throw Error(s(191,a));a.call(i)}}}var ro={},Mt=cn(ro),oo=cn(ro),so=cn(ro);function Dn(e){if(e===ro)throw Error(s(174));return e}function gl(e,t){switch(ke(so,t),ke(oo,e),ke(Mt,ro),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vi(t,e)}Pe(Mt),ke(Mt,t)}function gr(){Pe(Mt),Pe(oo),Pe(so)}function qc(e){Dn(so.current);var t=Dn(Mt.current),r=vi(t,e.type);t!==r&&(ke(oo,e),ke(Mt,r))}function vl(e){oo.current===e&&(Pe(Mt),Pe(oo))}var Te=cn(0);function fs(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yl=[];function xl(){for(var e=0;e<yl.length;e++)yl[e]._workInProgressVersionPrimary=null;yl.length=0}var ps=D.ReactCurrentDispatcher,wl=D.ReactCurrentBatchConfig,Fn=0,Oe=null,De=null,$e=null,hs=!1,io=!1,lo=0,_g=0;function Ke(){throw Error(s(321))}function bl(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Et(e[r],t[r]))return!1;return!0}function Sl(e,t,r,i,a,c){if(Fn=c,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ps.current=e===null||e.memoizedState===null?Lg:Dg,e=r(i,a),io){c=0;do{if(io=!1,lo=0,25<=c)throw Error(s(301));c+=1,$e=De=null,t.updateQueue=null,ps.current=Fg,e=r(i,a)}while(io)}if(ps.current=vs,t=De!==null&&De.next!==null,Fn=0,$e=De=Oe=null,hs=!1,t)throw Error(s(300));return e}function Cl(){var e=lo!==0;return lo=0,e}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?Oe.memoizedState=$e=e:$e=$e.next=e,$e}function vt(){if(De===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=$e===null?Oe.memoizedState:$e.next;if(t!==null)$e=t,De=e;else{if(e===null)throw Error(s(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},$e===null?Oe.memoizedState=$e=e:$e=$e.next=e}return $e}function ao(e,t){return typeof t=="function"?t(e):t}function kl(e){var t=vt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var i=De,a=i.baseQueue,c=r.pending;if(c!==null){if(a!==null){var m=a.next;a.next=c.next,c.next=m}i.baseQueue=a=c,r.pending=null}if(a!==null){c=a.next,i=i.baseState;var w=m=null,C=null,A=c;do{var H=A.lane;if((Fn&H)===H)C!==null&&(C=C.next={lane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),i=A.hasEagerState?A.eagerState:e(i,A.action);else{var W={lane:H,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};C===null?(w=C=W,m=i):C=C.next=W,Oe.lanes|=H,zn|=H}A=A.next}while(A!==null&&A!==c);C===null?m=i:C.next=w,Et(i,t.memoizedState)||(nt=!0),t.memoizedState=i,t.baseState=m,t.baseQueue=C,r.lastRenderedState=i}if(e=r.interleaved,e!==null){a=e;do c=a.lane,Oe.lanes|=c,zn|=c,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function El(e){var t=vt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var i=r.dispatch,a=r.pending,c=t.memoizedState;if(a!==null){r.pending=null;var m=a=a.next;do c=e(c,m.action),m=m.next;while(m!==a);Et(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,i]}function Gc(){}function Yc(e,t){var r=Oe,i=vt(),a=t(),c=!Et(i.memoizedState,a);if(c&&(i.memoizedState=a,nt=!0),i=i.queue,Nl(Jc.bind(null,r,i,e),[e]),i.getSnapshot!==t||c||$e!==null&&$e.memoizedState.tag&1){if(r.flags|=2048,uo(9,Zc.bind(null,r,i,a,t),void 0,null),Ue===null)throw Error(s(349));(Fn&30)!==0||Xc(r,t,a)}return a}function Xc(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Zc(e,t,r,i){t.value=r,t.getSnapshot=i,ed(t)&&td(e)}function Jc(e,t,r){return r(function(){ed(t)&&td(e)})}function ed(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Et(e,r)}catch{return!0}}function td(e){var t=Kt(e,1);t!==null&&Tt(t,e,1,-1)}function nd(e){var t=Lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:e},t.queue=e,e=e.dispatch=Mg.bind(null,Oe,e),[t.memoizedState,e]}function uo(e,t,r,i){return e={tag:e,create:t,destroy:r,deps:i,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,t.lastEffect=e)),e}function rd(){return vt().memoizedState}function ms(e,t,r,i){var a=Lt();Oe.flags|=e,a.memoizedState=uo(1|t,r,void 0,i===void 0?null:i)}function gs(e,t,r,i){var a=vt();i=i===void 0?null:i;var c=void 0;if(De!==null){var m=De.memoizedState;if(c=m.destroy,i!==null&&bl(i,m.deps)){a.memoizedState=uo(t,r,c,i);return}}Oe.flags|=e,a.memoizedState=uo(1|t,r,c,i)}function od(e,t){return ms(8390656,8,e,t)}function Nl(e,t){return gs(2048,8,e,t)}function sd(e,t){return gs(4,2,e,t)}function id(e,t){return gs(4,4,e,t)}function ld(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ad(e,t,r){return r=r!=null?r.concat([e]):null,gs(4,4,ld.bind(null,t,e),r)}function Pl(){}function ud(e,t){var r=vt();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&bl(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function cd(e,t){var r=vt();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&bl(t,i[1])?i[0]:(e=e(),r.memoizedState=[e,t],e)}function dd(e,t,r){return(Fn&21)===0?(e.baseState&&(e.baseState=!1,nt=!0),e.memoizedState=r):(Et(r,t)||(r=Uu(),Oe.lanes|=r,zn|=r,e.baseState=!0),t)}function Ag(e,t){var r=Se;Se=r!==0&&4>r?r:4,e(!0);var i=wl.transition;wl.transition={};try{e(!1),t()}finally{Se=r,wl.transition=i}}function fd(){return vt().memoizedState}function Ig(e,t,r){var i=yn(e);if(r={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null},pd(e))hd(t,r);else if(r=Bc(e,t,r,i),r!==null){var a=Ze();Tt(r,e,i,a),md(r,t,i)}}function Mg(e,t,r){var i=yn(e),a={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null};if(pd(e))hd(t,a);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,w=c(m,r);if(a.hasEagerState=!0,a.eagerState=w,Et(w,m)){var C=t.interleaved;C===null?(a.next=a,hl(t)):(a.next=C.next,C.next=a),t.interleaved=a;return}}catch{}r=Bc(e,t,a,i),r!==null&&(a=Ze(),Tt(r,e,i,a),md(r,t,i))}}function pd(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function hd(e,t){io=hs=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function md(e,t,r){if((r&4194240)!==0){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,ji(e,r)}}var vs={readContext:gt,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},Lg={readContext:gt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:od,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ms(4194308,4,ld.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){return ms(4,2,e,t)},useMemo:function(e,t){var r=Lt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var i=Lt();return t=r!==void 0?r(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Ig.bind(null,Oe,e),[i.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:nd,useDebugValue:Pl,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=nd(!1),t=e[0];return e=Ag.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=Oe,a=Lt();if(je){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),Ue===null)throw Error(s(349));(Fn&30)!==0||Xc(i,t,r)}a.memoizedState=r;var c={value:r,getSnapshot:t};return a.queue=c,od(Jc.bind(null,i,c,e),[e]),i.flags|=2048,uo(9,Zc.bind(null,i,c,r,t),void 0,null),r},useId:function(){var e=Lt(),t=Ue.identifierPrefix;if(je){var r=Qt,i=Vt;r=(i&~(1<<32-kt(i)-1)).toString(32)+r,t=":"+t+"R"+r,r=lo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=_g++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Dg={readContext:gt,useCallback:ud,useContext:gt,useEffect:Nl,useImperativeHandle:ad,useInsertionEffect:sd,useLayoutEffect:id,useMemo:cd,useReducer:kl,useRef:rd,useState:function(){return kl(ao)},useDebugValue:Pl,useDeferredValue:function(e){var t=vt();return dd(t,De.memoizedState,e)},useTransition:function(){var e=kl(ao)[0],t=vt().memoizedState;return[e,t]},useMutableSource:Gc,useSyncExternalStore:Yc,useId:fd,unstable_isNewReconciler:!1},Fg={readContext:gt,useCallback:ud,useContext:gt,useEffect:Nl,useImperativeHandle:ad,useInsertionEffect:sd,useLayoutEffect:id,useMemo:cd,useReducer:El,useRef:rd,useState:function(){return El(ao)},useDebugValue:Pl,useDeferredValue:function(e){var t=vt();return De===null?t.memoizedState=e:dd(t,De.memoizedState,e)},useTransition:function(){var e=El(ao)[0],t=vt().memoizedState;return[e,t]},useMutableSource:Gc,useSyncExternalStore:Yc,useId:fd,unstable_isNewReconciler:!1};function Pt(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Rl(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:K({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ys={isMounted:function(e){return(e=e._reactInternals)?On(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var i=Ze(),a=yn(e),c=qt(i,a);c.payload=t,r!=null&&(c.callback=r),t=hn(e,c,a),t!==null&&(Tt(t,e,a,i),cs(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=Ze(),a=yn(e),c=qt(i,a);c.tag=1,c.payload=t,r!=null&&(c.callback=r),t=hn(e,c,a),t!==null&&(Tt(t,e,a,i),cs(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ze(),i=yn(e),a=qt(r,i);a.tag=2,t!=null&&(a.callback=t),t=hn(e,a,i),t!==null&&(Tt(t,e,i,r),cs(t,e,i))}};function gd(e,t,r,i,a,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,m):t.prototype&&t.prototype.isPureReactComponent?!Gr(r,i)||!Gr(a,c):!0}function vd(e,t,r){var i=!1,a=dn,c=t.contextType;return typeof c=="object"&&c!==null?c=gt(c):(a=tt(t)?An:Qe.current,i=t.contextTypes,c=(i=i!=null)?ur(e,a):dn),t=new t(r,c),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ys,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=c),t}function yd(e,t,r,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,i),t.state!==e&&ys.enqueueReplaceState(t,t.state,null)}function jl(e,t,r,i){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},ml(e);var c=t.contextType;typeof c=="object"&&c!==null?a.context=gt(c):(c=tt(t)?An:Qe.current,a.context=ur(e,c)),a.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(Rl(e,t,c,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&ys.enqueueReplaceState(a,a.state,null),ds(e,r,a,i),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function vr(e,t){try{var r="",i=t;do r+=ge(i),i=i.return;while(i);var a=r}catch(c){a=`
7
+ Error generating stack: `+c.message+`
8
+ `+c.stack}return{value:e,source:t,stack:a,digest:null}}function Tl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Ol(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var zg=typeof WeakMap=="function"?WeakMap:Map;function xd(e,t,r){r=qt(-1,r),r.tag=3,r.payload={element:null};var i=t.value;return r.callback=function(){Es||(Es=!0,Ql=i),Ol(e,t)},r}function wd(e,t,r){r=qt(-1,r),r.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var a=t.value;r.payload=function(){return i(a)},r.callback=function(){Ol(e,t)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(r.callback=function(){Ol(e,t),typeof i!="function"&&(gn===null?gn=new Set([this]):gn.add(this));var m=t.stack;this.componentDidCatch(t.value,{componentStack:m!==null?m:""})}),r}function bd(e,t,r){var i=e.pingCache;if(i===null){i=e.pingCache=new zg;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(r)||(a.add(r),e=Jg.bind(null,e,t,r),t.then(e,e))}function Sd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Cd(e,t,r,i,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=qt(-1,1),t.tag=2,hn(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var $g=D.ReactCurrentOwner,nt=!1;function Xe(e,t,r,i){t.child=e===null?Wc(t,null,r,i):pr(t,e.child,r,i)}function kd(e,t,r,i,a){r=r.render;var c=t.ref;return mr(t,a),i=Sl(e,t,r,i,c,a),r=Cl(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Gt(e,t,a)):(je&&r&&sl(t),t.flags|=1,Xe(e,t,i,a),t.child)}function Ed(e,t,r,i,a){if(e===null){var c=r.type;return typeof c=="function"&&!Jl(c)&&c.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=c,Nd(e,t,c,i,a)):(e=Os(r.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,(e.lanes&a)===0){var m=c.memoizedProps;if(r=r.compare,r=r!==null?r:Gr,r(m,i)&&e.ref===t.ref)return Gt(e,t,a)}return t.flags|=1,e=wn(c,i),e.ref=t.ref,e.return=t,t.child=e}function Nd(e,t,r,i,a){if(e!==null){var c=e.memoizedProps;if(Gr(c,i)&&e.ref===t.ref)if(nt=!1,t.pendingProps=i=c,(e.lanes&a)!==0)(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Gt(e,t,a)}return _l(e,t,r,i,a)}function Pd(e,t,r){var i=t.pendingProps,a=i.children,c=e!==null?e.memoizedState:null;if(i.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(xr,ut),ut|=r;else{if((r&1073741824)===0)return e=c!==null?c.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(xr,ut),ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=c!==null?c.baseLanes:r,ke(xr,ut),ut|=i}else c!==null?(i=c.baseLanes|r,t.memoizedState=null):i=r,ke(xr,ut),ut|=i;return Xe(e,t,a,r),t.child}function Rd(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,r,i,a){var c=tt(r)?An:Qe.current;return c=ur(t,c),mr(t,a),r=Sl(e,t,r,i,c,a),i=Cl(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Gt(e,t,a)):(je&&i&&sl(t),t.flags|=1,Xe(e,t,r,a),t.child)}function jd(e,t,r,i,a){if(tt(r)){var c=!0;ns(t)}else c=!1;if(mr(t,a),t.stateNode===null)ws(e,t),vd(t,r,i),jl(t,r,i,a),i=!0;else if(e===null){var m=t.stateNode,w=t.memoizedProps;m.props=w;var C=m.context,A=r.contextType;typeof A=="object"&&A!==null?A=gt(A):(A=tt(r)?An:Qe.current,A=ur(t,A));var H=r.getDerivedStateFromProps,W=typeof H=="function"||typeof m.getSnapshotBeforeUpdate=="function";W||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==i||C!==A)&&yd(t,m,i,A),pn=!1;var U=t.memoizedState;m.state=U,ds(t,i,m,a),C=t.memoizedState,w!==i||U!==C||et.current||pn?(typeof H=="function"&&(Rl(t,r,H,i),C=t.memoizedState),(w=pn||gd(t,r,w,i,U,C,A))?(W||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=C),m.props=i,m.state=C,m.context=A,i=w):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{m=t.stateNode,Vc(e,t),w=t.memoizedProps,A=t.type===t.elementType?w:Pt(t.type,w),m.props=A,W=t.pendingProps,U=m.context,C=r.contextType,typeof C=="object"&&C!==null?C=gt(C):(C=tt(r)?An:Qe.current,C=ur(t,C));var Y=r.getDerivedStateFromProps;(H=typeof Y=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==W||U!==C)&&yd(t,m,i,C),pn=!1,U=t.memoizedState,m.state=U,ds(t,i,m,a);var Z=t.memoizedState;w!==W||U!==Z||et.current||pn?(typeof Y=="function"&&(Rl(t,r,Y,i),Z=t.memoizedState),(A=pn||gd(t,r,A,i,U,Z,C)||!1)?(H||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(i,Z,C),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(i,Z,C)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||w===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=Z),m.props=i,m.state=Z,m.context=C,i=A):(typeof m.componentDidUpdate!="function"||w===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),i=!1)}return Al(e,t,r,i,c,a)}function Al(e,t,r,i,a,c){Rd(e,t);var m=(t.flags&128)!==0;if(!i&&!m)return a&&Ic(t,r,!1),Gt(e,t,c);i=t.stateNode,$g.current=t;var w=m&&typeof r.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&m?(t.child=pr(t,e.child,null,c),t.child=pr(t,null,w,c)):Xe(e,t,w,c),t.memoizedState=i.state,a&&Ic(t,r,!0),t.child}function Td(e){var t=e.stateNode;t.pendingContext?_c(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_c(e,t.context,!1),gl(e,t.containerInfo)}function Od(e,t,r,i,a){return fr(),ul(a),t.flags|=256,Xe(e,t,r,i),t.child}var Il={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function _d(e,t,r){var i=t.pendingProps,a=Te.current,c=!1,m=(t.flags&128)!==0,w;if((w=m)||(w=e!==null&&e.memoizedState===null?!1:(a&2)!==0),w?(c=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ke(Te,a&1),e===null)return al(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(m=i.children,e=i.fallback,c?(i=t.mode,c=t.child,m={mode:"hidden",children:m},(i&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=m):c=_s(m,i,0,null),e=Wn(e,i,r,null),c.return=t,e.return=t,c.sibling=e,t.child=c,t.child.memoizedState=Ml(r),t.memoizedState=Il,e):Ll(t,m));if(a=e.memoizedState,a!==null&&(w=a.dehydrated,w!==null))return Ug(e,t,m,i,w,a,r);if(c){c=i.fallback,m=t.mode,a=e.child,w=a.sibling;var C={mode:"hidden",children:i.children};return(m&1)===0&&t.child!==a?(i=t.child,i.childLanes=0,i.pendingProps=C,t.deletions=null):(i=wn(a,C),i.subtreeFlags=a.subtreeFlags&14680064),w!==null?c=wn(w,c):(c=Wn(c,m,r,null),c.flags|=2),c.return=t,i.return=t,i.sibling=c,t.child=i,i=c,c=t.child,m=e.child.memoizedState,m=m===null?Ml(r):{baseLanes:m.baseLanes|r,cachePool:null,transitions:m.transitions},c.memoizedState=m,c.childLanes=e.childLanes&~r,t.memoizedState=Il,i}return c=e.child,e=c.sibling,i=wn(c,{mode:"visible",children:i.children}),(t.mode&1)===0&&(i.lanes=r),i.return=t,i.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Ll(e,t){return t=_s({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xs(e,t,r,i){return i!==null&&ul(i),pr(t,e.child,null,r),e=Ll(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ug(e,t,r,i,a,c,m){if(r)return t.flags&256?(t.flags&=-257,i=Tl(Error(s(422))),xs(e,t,m,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(c=i.fallback,a=t.mode,i=_s({mode:"visible",children:i.children},a,0,null),c=Wn(c,a,m,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,(t.mode&1)!==0&&pr(t,e.child,null,m),t.child.memoizedState=Ml(m),t.memoizedState=Il,c);if((t.mode&1)===0)return xs(e,t,m,null);if(a.data==="$!"){if(i=a.nextSibling&&a.nextSibling.dataset,i)var w=i.dgst;return i=w,c=Error(s(419)),i=Tl(c,i,void 0),xs(e,t,m,i)}if(w=(m&e.childLanes)!==0,nt||w){if(i=Ue,i!==null){switch(m&-m){case 4:a=2;break;case 16:a=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|m))!==0?0:a,a!==0&&a!==c.retryLane&&(c.retryLane=a,Kt(e,a),Tt(i,e,a,-1))}return Zl(),i=Tl(Error(s(421))),xs(e,t,m,i)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=ev.bind(null,e),a._reactRetry=t,null):(e=c.treeContext,at=un(a.nextSibling),lt=t,je=!0,Nt=null,e!==null&&(ht[mt++]=Vt,ht[mt++]=Qt,ht[mt++]=In,Vt=e.id,Qt=e.overflow,In=t),t=Ll(t,i.children),t.flags|=4096,t)}function Ad(e,t,r){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),pl(e.return,t,r)}function Dl(e,t,r,i,a){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:a}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=i,c.tail=r,c.tailMode=a)}function Id(e,t,r){var i=t.pendingProps,a=i.revealOrder,c=i.tail;if(Xe(e,t,i.children,r),i=Te.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ad(e,r,t);else if(e.tag===19)Ad(e,r,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}i&=1}if(ke(Te,i),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&fs(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Dl(t,!1,a,r,c);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&fs(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Dl(t,!0,r,null,c);break;case"together":Dl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ws(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),zn|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=wn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=wn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Hg(e,t,r){switch(t.tag){case 3:Td(t),fr();break;case 5:qc(t);break;case 1:tt(t.type)&&ns(t);break;case 4:gl(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,a=t.memoizedProps.value;ke(as,i._currentValue),i._currentValue=a;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(ke(Te,Te.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?_d(e,t,r):(ke(Te,Te.current&1),e=Gt(e,t,r),e!==null?e.sibling:null);ke(Te,Te.current&1);break;case 19:if(i=(r&t.childLanes)!==0,(e.flags&128)!==0){if(i)return Id(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ke(Te,Te.current),i)break;return null;case 22:case 23:return t.lanes=0,Pd(e,t,r)}return Gt(e,t,r)}var Md,Fl,Ld,Dd;Md=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Fl=function(){},Ld=function(e,t,r,i){var a=e.memoizedProps;if(a!==i){e=t.stateNode,Dn(Mt.current);var c=null;switch(r){case"input":a=pi(e,a),i=pi(e,i),c=[];break;case"select":a=K({},a,{value:void 0}),i=K({},i,{value:void 0}),c=[];break;case"textarea":a=gi(e,a),i=gi(e,i),c=[];break;default:typeof a.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=Jo)}yi(r,i);var m;r=null;for(A in a)if(!i.hasOwnProperty(A)&&a.hasOwnProperty(A)&&a[A]!=null)if(A==="style"){var w=a[A];for(m in w)w.hasOwnProperty(m)&&(r||(r={}),r[m]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(u.hasOwnProperty(A)?c||(c=[]):(c=c||[]).push(A,null));for(A in i){var C=i[A];if(w=a?.[A],i.hasOwnProperty(A)&&C!==w&&(C!=null||w!=null))if(A==="style")if(w){for(m in w)!w.hasOwnProperty(m)||C&&C.hasOwnProperty(m)||(r||(r={}),r[m]="");for(m in C)C.hasOwnProperty(m)&&w[m]!==C[m]&&(r||(r={}),r[m]=C[m])}else r||(c||(c=[]),c.push(A,r)),r=C;else A==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,w=w?w.__html:void 0,C!=null&&w!==C&&(c=c||[]).push(A,C)):A==="children"?typeof C!="string"&&typeof C!="number"||(c=c||[]).push(A,""+C):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(u.hasOwnProperty(A)?(C!=null&&A==="onScroll"&&Ne("scroll",e),c||w===C||(c=[])):(c=c||[]).push(A,C))}r&&(c=c||[]).push("style",r);var A=c;(t.updateQueue=A)&&(t.flags|=4)}},Dd=function(e,t,r,i){r!==i&&(t.flags|=4)};function co(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,i|=a.subtreeFlags&14680064,i|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=r,t}function Wg(e,t,r){var i=t.pendingProps;switch(il(t),t.tag){case 2: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 tt(t.type)&&ts(),qe(t),null;case 3:return i=t.stateNode,gr(),Pe(et),Pe(Qe),xl(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(is(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Nt!==null&&(Gl(Nt),Nt=null))),Fl(e,t),qe(t),null;case 5:vl(t);var a=Dn(so.current);if(r=t.type,e!==null&&t.stateNode!=null)Ld(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(s(166));return qe(t),null}if(e=Dn(Mt.current),is(t)){i=t.stateNode,r=t.type;var c=t.memoizedProps;switch(i[It]=t,i[eo]=c,e=(t.mode&1)!==0,r){case"dialog":Ne("cancel",i),Ne("close",i);break;case"iframe":case"object":case"embed":Ne("load",i);break;case"video":case"audio":for(a=0;a<Xr.length;a++)Ne(Xr[a],i);break;case"source":Ne("error",i);break;case"img":case"image":case"link":Ne("error",i),Ne("load",i);break;case"details":Ne("toggle",i);break;case"input":vu(i,c),Ne("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!c.multiple},Ne("invalid",i);break;case"textarea":wu(i,c),Ne("invalid",i)}yi(r,c),a=null;for(var m in c)if(c.hasOwnProperty(m)){var w=c[m];m==="children"?typeof w=="string"?i.textContent!==w&&(c.suppressHydrationWarning!==!0&&Zo(i.textContent,w,e),a=["children",w]):typeof w=="number"&&i.textContent!==""+w&&(c.suppressHydrationWarning!==!0&&Zo(i.textContent,w,e),a=["children",""+w]):u.hasOwnProperty(m)&&w!=null&&m==="onScroll"&&Ne("scroll",i)}switch(r){case"input":Yn(i),xu(i,c,!0);break;case"textarea":Yn(i),Su(i);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(i.onclick=Jo)}i=a,t.updateQueue=i,i!==null&&(t.flags|=4)}else{m=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Cu(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=m.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=m.createElement(r,{is:i.is}):(e=m.createElement(r),r==="select"&&(m=e,i.multiple?m.multiple=!0:i.size&&(m.size=i.size))):e=m.createElementNS(e,r),e[It]=t,e[eo]=i,Md(e,t,!1,!1),t.stateNode=e;e:{switch(m=xi(r,i),r){case"dialog":Ne("cancel",e),Ne("close",e),a=i;break;case"iframe":case"object":case"embed":Ne("load",e),a=i;break;case"video":case"audio":for(a=0;a<Xr.length;a++)Ne(Xr[a],e);a=i;break;case"source":Ne("error",e),a=i;break;case"img":case"image":case"link":Ne("error",e),Ne("load",e),a=i;break;case"details":Ne("toggle",e),a=i;break;case"input":vu(e,i),a=pi(e,i),Ne("invalid",e);break;case"option":a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=K({},i,{value:void 0}),Ne("invalid",e);break;case"textarea":wu(e,i),a=gi(e,i),Ne("invalid",e);break;default:a=i}yi(r,a),w=a;for(c in w)if(w.hasOwnProperty(c)){var C=w[c];c==="style"?Nu(e,C):c==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&ku(e,C)):c==="children"?typeof C=="string"?(r!=="textarea"||C!=="")&&_r(e,C):typeof C=="number"&&_r(e,""+C):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?C!=null&&c==="onScroll"&&Ne("scroll",e):C!=null&&M(e,c,C,m))}switch(r){case"input":Yn(e),xu(e,i,!1);break;case"textarea":Yn(e),Su(e);break;case"option":i.value!=null&&e.setAttribute("value",""+we(i.value));break;case"select":e.multiple=!!i.multiple,c=i.value,c!=null?Xn(e,!!i.multiple,c,!1):i.defaultValue!=null&&Xn(e,!!i.multiple,i.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Jo)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)Dd(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(r=Dn(so.current),Dn(Mt.current),is(t)){if(i=t.stateNode,r=t.memoizedProps,i[It]=t,(c=i.nodeValue!==r)&&(e=lt,e!==null))switch(e.tag){case 3:Zo(i.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zo(i.nodeValue,r,(e.mode&1)!==0)}c&&(t.flags|=4)}else i=(r.nodeType===9?r:r.ownerDocument).createTextNode(i),i[It]=t,t.stateNode=i}return qe(t),null;case 13:if(Pe(Te),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(je&&at!==null&&(t.mode&1)!==0&&(t.flags&128)===0)$c(),fr(),t.flags|=98560,c=!1;else if(c=is(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[It]=t}else fr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),c=!1}else Nt!==null&&(Gl(Nt),Nt=null),c=!0;if(!c)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Te.current&1)!==0?Fe===0&&(Fe=3):Zl())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return gr(),Fl(e,t),e===null&&Zr(t.stateNode.containerInfo),qe(t),null;case 10:return fl(t.type._context),qe(t),null;case 17:return tt(t.type)&&ts(),qe(t),null;case 19:if(Pe(Te),c=t.memoizedState,c===null)return qe(t),null;if(i=(t.flags&128)!==0,m=c.rendering,m===null)if(i)co(c,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=fs(e),m!==null){for(t.flags|=128,co(c,!1),i=m.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;r!==null;)c=r,e=i,c.flags&=14680066,m=c.alternate,m===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=m.childLanes,c.lanes=m.lanes,c.child=m.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=m.memoizedProps,c.memoizedState=m.memoizedState,c.updateQueue=m.updateQueue,c.type=m.type,e=m.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ke(Te,Te.current&1|2),t.child}e=e.sibling}c.tail!==null&&Ae()>wr&&(t.flags|=128,i=!0,co(c,!1),t.lanes=4194304)}else{if(!i)if(e=fs(m),e!==null){if(t.flags|=128,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),co(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!je)return qe(t),null}else 2*Ae()-c.renderingStartTime>wr&&r!==1073741824&&(t.flags|=128,i=!0,co(c,!1),t.lanes=4194304);c.isBackwards?(m.sibling=t.child,t.child=m):(r=c.last,r!==null?r.sibling=m:t.child=m,c.last=m)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Ae(),t.sibling=null,r=Te.current,ke(Te,i?r&1|2:r&1),t):(qe(t),null);case 22:case 23:return Xl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&(t.mode&1)!==0?(ut&1073741824)!==0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Bg(e,t){switch(il(t),t.tag){case 1:return tt(t.type)&&ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gr(),Pe(et),Pe(Qe),xl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return vl(t),null;case 13:if(Pe(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Te),null;case 4:return gr(),null;case 10:return fl(t.type._context),null;case 22:case 23:return Xl(),null;case 24:return null;default:return null}}var bs=!1,Ge=!1,Vg=typeof WeakSet=="function"?WeakSet:Set,X=null;function yr(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(i){_e(e,t,i)}else r.current=null}function zl(e,t,r){try{r()}catch(i){_e(e,t,i)}}var Fd=!1;function Qg(e,t){if(Xi=Uo,e=gc(),Wi(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var m=0,w=-1,C=-1,A=0,H=0,W=e,U=null;t:for(;;){for(var Y;W!==r||a!==0&&W.nodeType!==3||(w=m+a),W!==c||i!==0&&W.nodeType!==3||(C=m+i),W.nodeType===3&&(m+=W.nodeValue.length),(Y=W.firstChild)!==null;)U=W,W=Y;for(;;){if(W===e)break t;if(U===r&&++A===a&&(w=m),U===c&&++H===i&&(C=m),(Y=W.nextSibling)!==null)break;W=U,U=W.parentNode}W=Y}r=w===-1||C===-1?null:{start:w,end:C}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zi={focusedElem:e,selectionRange:r},Uo=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var Z=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var J=Z.memoizedProps,Ie=Z.memoizedState,O=t.stateNode,E=O.getSnapshotBeforeUpdate(t.elementType===t.type?J:Pt(t.type,J),Ie);O.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(Q){_e(t,t.return,Q)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return Z=Fd,Fd=!1,Z}function fo(e,t,r){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&e)===e){var c=a.destroy;a.destroy=void 0,c!==void 0&&zl(t,r,c)}a=a.next}while(a!==i)}}function Ss(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var i=r.create;r.destroy=i()}r=r.next}while(r!==t)}}function $l(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function zd(e){var t=e.alternate;t!==null&&(e.alternate=null,zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[eo],delete t[nl],delete t[Rg],delete t[jg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $d(e){return e.tag===5||e.tag===3||e.tag===4}function Ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$d(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.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 Ul(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Jo));else if(i!==4&&(e=e.child,e!==null))for(Ul(e,t,r),e=e.sibling;e!==null;)Ul(e,t,r),e=e.sibling}function Hl(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Hl(e,t,r),e=e.sibling;e!==null;)Hl(e,t,r),e=e.sibling}var We=null,Rt=!1;function mn(e,t,r){for(r=r.child;r!==null;)Hd(e,t,r),r=r.sibling}function Hd(e,t,r){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Mo,r)}catch{}switch(r.tag){case 5:Ge||yr(r,t);case 6:var i=We,a=Rt;We=null,mn(e,t,r),We=i,Rt=a,We!==null&&(Rt?(e=We,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):We.removeChild(r.stateNode));break;case 18:We!==null&&(Rt?(e=We,r=r.stateNode,e.nodeType===8?tl(e.parentNode,r):e.nodeType===1&&tl(e,r),Wr(e)):tl(We,r.stateNode));break;case 4:i=We,a=Rt,We=r.stateNode.containerInfo,Rt=!0,mn(e,t,r),We=i,Rt=a;break;case 0:case 11:case 14:case 15:if(!Ge&&(i=r.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){a=i=i.next;do{var c=a,m=c.destroy;c=c.tag,m!==void 0&&((c&2)!==0||(c&4)!==0)&&zl(r,t,m),a=a.next}while(a!==i)}mn(e,t,r);break;case 1:if(!Ge&&(yr(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=r.memoizedProps,i.state=r.memoizedState,i.componentWillUnmount()}catch(w){_e(r,t,w)}mn(e,t,r);break;case 21:mn(e,t,r);break;case 22:r.mode&1?(Ge=(i=Ge)||r.memoizedState!==null,mn(e,t,r),Ge=i):mn(e,t,r);break;default:mn(e,t,r)}}function Wd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Vg),t.forEach(function(i){var a=tv.bind(null,e,i);r.has(i)||(r.add(i),i.then(a,a))})}}function jt(e,t){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var a=r[i];try{var c=e,m=t,w=m;e:for(;w!==null;){switch(w.tag){case 5:We=w.stateNode,Rt=!1;break e;case 3:We=w.stateNode.containerInfo,Rt=!0;break e;case 4:We=w.stateNode.containerInfo,Rt=!0;break e}w=w.return}if(We===null)throw Error(s(160));Hd(c,m,a),We=null,Rt=!1;var C=a.alternate;C!==null&&(C.return=null),a.return=null}catch(A){_e(a,t,A)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Bd(t,e),t=t.sibling}function Bd(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jt(t,e),Dt(e),i&4){try{fo(3,e,e.return),Ss(3,e)}catch(J){_e(e,e.return,J)}try{fo(5,e,e.return)}catch(J){_e(e,e.return,J)}}break;case 1:jt(t,e),Dt(e),i&512&&r!==null&&yr(r,r.return);break;case 5:if(jt(t,e),Dt(e),i&512&&r!==null&&yr(r,r.return),e.flags&32){var a=e.stateNode;try{_r(a,"")}catch(J){_e(e,e.return,J)}}if(i&4&&(a=e.stateNode,a!=null)){var c=e.memoizedProps,m=r!==null?r.memoizedProps:c,w=e.type,C=e.updateQueue;if(e.updateQueue=null,C!==null)try{w==="input"&&c.type==="radio"&&c.name!=null&&yu(a,c),xi(w,m);var A=xi(w,c);for(m=0;m<C.length;m+=2){var H=C[m],W=C[m+1];H==="style"?Nu(a,W):H==="dangerouslySetInnerHTML"?ku(a,W):H==="children"?_r(a,W):M(a,H,W,A)}switch(w){case"input":hi(a,c);break;case"textarea":bu(a,c);break;case"select":var U=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!c.multiple;var Y=c.value;Y!=null?Xn(a,!!c.multiple,Y,!1):U!==!!c.multiple&&(c.defaultValue!=null?Xn(a,!!c.multiple,c.defaultValue,!0):Xn(a,!!c.multiple,c.multiple?[]:"",!1))}a[eo]=c}catch(J){_e(e,e.return,J)}}break;case 6:if(jt(t,e),Dt(e),i&4){if(e.stateNode===null)throw Error(s(162));a=e.stateNode,c=e.memoizedProps;try{a.nodeValue=c}catch(J){_e(e,e.return,J)}}break;case 3:if(jt(t,e),Dt(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Wr(t.containerInfo)}catch(J){_e(e,e.return,J)}break;case 4:jt(t,e),Dt(e);break;case 13:jt(t,e),Dt(e),a=e.child,a.flags&8192&&(c=a.memoizedState!==null,a.stateNode.isHidden=c,!c||a.alternate!==null&&a.alternate.memoizedState!==null||(Vl=Ae())),i&4&&Wd(e);break;case 22:if(H=r!==null&&r.memoizedState!==null,e.mode&1?(Ge=(A=Ge)||H,jt(t,e),Ge=A):jt(t,e),Dt(e),i&8192){if(A=e.memoizedState!==null,(e.stateNode.isHidden=A)&&!H&&(e.mode&1)!==0)for(X=e,H=e.child;H!==null;){for(W=X=H;X!==null;){switch(U=X,Y=U.child,U.tag){case 0:case 11:case 14:case 15:fo(4,U,U.return);break;case 1:yr(U,U.return);var Z=U.stateNode;if(typeof Z.componentWillUnmount=="function"){i=U,r=U.return;try{t=i,Z.props=t.memoizedProps,Z.state=t.memoizedState,Z.componentWillUnmount()}catch(J){_e(i,r,J)}}break;case 5:yr(U,U.return);break;case 22:if(U.memoizedState!==null){Kd(W);continue}}Y!==null?(Y.return=U,X=Y):Kd(W)}H=H.sibling}e:for(H=null,W=e;;){if(W.tag===5){if(H===null){H=W;try{a=W.stateNode,A?(c=a.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(w=W.stateNode,C=W.memoizedProps.style,m=C!=null&&C.hasOwnProperty("display")?C.display:null,w.style.display=Eu("display",m))}catch(J){_e(e,e.return,J)}}}else if(W.tag===6){if(H===null)try{W.stateNode.nodeValue=A?"":W.memoizedProps}catch(J){_e(e,e.return,J)}}else if((W.tag!==22&&W.tag!==23||W.memoizedState===null||W===e)&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===e)break e;for(;W.sibling===null;){if(W.return===null||W.return===e)break e;H===W&&(H=null),W=W.return}H===W&&(H=null),W.sibling.return=W.return,W=W.sibling}}break;case 19:jt(t,e),Dt(e),i&4&&Wd(e);break;case 21:break;default:jt(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if($d(r)){var i=r;break e}r=r.return}throw Error(s(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(_r(a,""),i.flags&=-33);var c=Ud(e);Hl(e,c,a);break;case 3:case 4:var m=i.stateNode.containerInfo,w=Ud(e);Ul(e,w,m);break;default:throw Error(s(161))}}catch(C){_e(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Kg(e,t,r){X=e,Vd(e)}function Vd(e,t,r){for(var i=(e.mode&1)!==0;X!==null;){var a=X,c=a.child;if(a.tag===22&&i){var m=a.memoizedState!==null||bs;if(!m){var w=a.alternate,C=w!==null&&w.memoizedState!==null||Ge;w=bs;var A=Ge;if(bs=m,(Ge=C)&&!A)for(X=a;X!==null;)m=X,C=m.child,m.tag===22&&m.memoizedState!==null?qd(a):C!==null?(C.return=m,X=C):qd(a);for(;c!==null;)X=c,Vd(c),c=c.sibling;X=a,bs=w,Ge=A}Qd(e)}else(a.subtreeFlags&8772)!==0&&c!==null?(c.return=a,X=c):Qd(e)}}function Qd(e){for(;X!==null;){var t=X;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ge||Ss(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!Ge)if(r===null)i.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Pt(t.type,r.memoizedProps);i.componentDidUpdate(a,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var c=t.updateQueue;c!==null&&Kc(t,c,i);break;case 3:var m=t.updateQueue;if(m!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Kc(t,m,r)}break;case 5:var w=t.stateNode;if(r===null&&t.flags&4){r=w;var C=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&r.focus();break;case"img":C.src&&(r.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var A=t.alternate;if(A!==null){var H=A.memoizedState;if(H!==null){var W=H.dehydrated;W!==null&&Wr(W)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}Ge||t.flags&512&&$l(t)}catch(U){_e(t,t.return,U)}}if(t===e){X=null;break}if(r=t.sibling,r!==null){r.return=t.return,X=r;break}X=t.return}}function Kd(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var r=t.sibling;if(r!==null){r.return=t.return,X=r;break}X=t.return}}function qd(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Ss(4,t)}catch(C){_e(t,r,C)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var a=t.return;try{i.componentDidMount()}catch(C){_e(t,a,C)}}var c=t.return;try{$l(t)}catch(C){_e(t,c,C)}break;case 5:var m=t.return;try{$l(t)}catch(C){_e(t,m,C)}}}catch(C){_e(t,t.return,C)}if(t===e){X=null;break}var w=t.sibling;if(w!==null){w.return=t.return,X=w;break}X=t.return}}var qg=Math.ceil,Cs=D.ReactCurrentDispatcher,Wl=D.ReactCurrentOwner,yt=D.ReactCurrentBatchConfig,ye=0,Ue=null,Me=null,Be=0,ut=0,xr=cn(0),Fe=0,po=null,zn=0,ks=0,Bl=0,ho=null,rt=null,Vl=0,wr=1/0,Yt=null,Es=!1,Ql=null,gn=null,Ns=!1,vn=null,Ps=0,mo=0,Kl=null,Rs=-1,js=0;function Ze(){return(ye&6)!==0?Ae():Rs!==-1?Rs:Rs=Ae()}function yn(e){return(e.mode&1)===0?1:(ye&2)!==0&&Be!==0?Be&-Be:Og.transition!==null?(js===0&&(js=Uu()),js):(e=Se,e!==0||(e=window.event,e=e===void 0?16:Yu(e.type)),e)}function Tt(e,t,r,i){if(50<mo)throw mo=0,Kl=null,Error(s(185));Fr(e,r,i),((ye&2)===0||e!==Ue)&&(e===Ue&&((ye&2)===0&&(ks|=r),Fe===4&&xn(e,Be)),ot(e,i),r===1&&ye===0&&(t.mode&1)===0&&(wr=Ae()+500,rs&&fn()))}function ot(e,t){var r=e.callbackNode;Om(e,t);var i=Fo(e,e===Ue?Be:0);if(i===0)r!==null&&Fu(r),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(r!=null&&Fu(r),t===1)e.tag===0?Tg(Yd.bind(null,e)):Mc(Yd.bind(null,e)),Ng(function(){(ye&6)===0&&fn()}),r=null;else{switch(Hu(i)){case 1:r=Ni;break;case 4:r=zu;break;case 16:r=Io;break;case 536870912:r=$u;break;default:r=Io}r=of(r,Gd.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Gd(e,t){if(Rs=-1,js=0,(ye&6)!==0)throw Error(s(327));var r=e.callbackNode;if(br()&&e.callbackNode!==r)return null;var i=Fo(e,e===Ue?Be:0);if(i===0)return null;if((i&30)!==0||(i&e.expiredLanes)!==0||t)t=Ts(e,i);else{t=i;var a=ye;ye|=2;var c=Zd();(Ue!==e||Be!==t)&&(Yt=null,wr=Ae()+500,Un(e,t));do try{Xg();break}catch(w){Xd(e,w)}while(!0);dl(),Cs.current=c,ye=a,Me!==null?t=0:(Ue=null,Be=0,t=Fe)}if(t!==0){if(t===2&&(a=Pi(e),a!==0&&(i=a,t=ql(e,a))),t===1)throw r=po,Un(e,0),xn(e,i),ot(e,Ae()),r;if(t===6)xn(e,i);else{if(a=e.current.alternate,(i&30)===0&&!Gg(a)&&(t=Ts(e,i),t===2&&(c=Pi(e),c!==0&&(i=c,t=ql(e,c))),t===1))throw r=po,Un(e,0),xn(e,i),ot(e,Ae()),r;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(s(345));case 2:Hn(e,rt,Yt);break;case 3:if(xn(e,i),(i&130023424)===i&&(t=Vl+500-Ae(),10<t)){if(Fo(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Ze(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=el(Hn.bind(null,e,rt,Yt),t);break}Hn(e,rt,Yt);break;case 4:if(xn(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var m=31-kt(i);c=1<<m,m=t[m],m>a&&(a=m),i&=~c}if(i=a,i=Ae()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*qg(i/1960))-i,10<i){e.timeoutHandle=el(Hn.bind(null,e,rt,Yt),i);break}Hn(e,rt,Yt);break;case 5:Hn(e,rt,Yt);break;default:throw Error(s(329))}}}return ot(e,Ae()),e.callbackNode===r?Gd.bind(null,e):null}function ql(e,t){var r=ho;return e.current.memoizedState.isDehydrated&&(Un(e,t).flags|=256),e=Ts(e,t),e!==2&&(t=rt,rt=r,t!==null&&Gl(t)),e}function Gl(e){rt===null?rt=e:rt.push.apply(rt,e)}function Gg(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var i=0;i<r.length;i++){var a=r[i],c=a.getSnapshot;a=a.value;try{if(!Et(c(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 xn(e,t){for(t&=~Bl,t&=~ks,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-kt(t),i=1<<r;e[r]=-1,t&=~i}}function Yd(e){if((ye&6)!==0)throw Error(s(327));br();var t=Fo(e,0);if((t&1)===0)return ot(e,Ae()),null;var r=Ts(e,t);if(e.tag!==0&&r===2){var i=Pi(e);i!==0&&(t=i,r=ql(e,i))}if(r===1)throw r=po,Un(e,0),xn(e,t),ot(e,Ae()),r;if(r===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hn(e,rt,Yt),ot(e,Ae()),null}function Yl(e,t){var r=ye;ye|=1;try{return e(t)}finally{ye=r,ye===0&&(wr=Ae()+500,rs&&fn())}}function $n(e){vn!==null&&vn.tag===0&&(ye&6)===0&&br();var t=ye;ye|=1;var r=yt.transition,i=Se;try{if(yt.transition=null,Se=1,e)return e()}finally{Se=i,yt.transition=r,ye=t,(ye&6)===0&&fn()}}function Xl(){ut=xr.current,Pe(xr)}function Un(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Eg(r)),Me!==null)for(r=Me.return;r!==null;){var i=r;switch(il(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&ts();break;case 3:gr(),Pe(et),Pe(Qe),xl();break;case 5:vl(i);break;case 4:gr();break;case 13:Pe(Te);break;case 19:Pe(Te);break;case 10:fl(i.type._context);break;case 22:case 23:Xl()}r=r.return}if(Ue=e,Me=e=wn(e.current,null),Be=ut=t,Fe=0,po=null,Bl=ks=zn=0,rt=ho=null,Ln!==null){for(t=0;t<Ln.length;t++)if(r=Ln[t],i=r.interleaved,i!==null){r.interleaved=null;var a=i.next,c=r.pending;if(c!==null){var m=c.next;c.next=a,i.next=m}r.pending=i}Ln=null}return e}function Xd(e,t){do{var r=Me;try{if(dl(),ps.current=vs,hs){for(var i=Oe.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}hs=!1}if(Fn=0,$e=De=Oe=null,io=!1,lo=0,Wl.current=null,r===null||r.return===null){Fe=1,po=t,Me=null;break}e:{var c=e,m=r.return,w=r,C=t;if(t=Be,w.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var A=C,H=w,W=H.tag;if((H.mode&1)===0&&(W===0||W===11||W===15)){var U=H.alternate;U?(H.updateQueue=U.updateQueue,H.memoizedState=U.memoizedState,H.lanes=U.lanes):(H.updateQueue=null,H.memoizedState=null)}var Y=Sd(m);if(Y!==null){Y.flags&=-257,Cd(Y,m,w,c,t),Y.mode&1&&bd(c,A,t),t=Y,C=A;var Z=t.updateQueue;if(Z===null){var J=new Set;J.add(C),t.updateQueue=J}else Z.add(C);break e}else{if((t&1)===0){bd(c,A,t),Zl();break e}C=Error(s(426))}}else if(je&&w.mode&1){var Ie=Sd(m);if(Ie!==null){(Ie.flags&65536)===0&&(Ie.flags|=256),Cd(Ie,m,w,c,t),ul(vr(C,w));break e}}c=C=vr(C,w),Fe!==4&&(Fe=2),ho===null?ho=[c]:ho.push(c),c=m;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var O=xd(c,C,t);Qc(c,O);break e;case 1:w=C;var E=c.type,_=c.stateNode;if((c.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(gn===null||!gn.has(_)))){c.flags|=65536,t&=-t,c.lanes|=t;var Q=wd(c,w,t);Qc(c,Q);break e}}c=c.return}while(c!==null)}ef(r)}catch(te){t=te,Me===r&&r!==null&&(Me=r=r.return);continue}break}while(!0)}function Zd(){var e=Cs.current;return Cs.current=vs,e===null?vs:e}function Zl(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),Ue===null||(zn&268435455)===0&&(ks&268435455)===0||xn(Ue,Be)}function Ts(e,t){var r=ye;ye|=2;var i=Zd();(Ue!==e||Be!==t)&&(Yt=null,Un(e,t));do try{Yg();break}catch(a){Xd(e,a)}while(!0);if(dl(),ye=r,Cs.current=i,Me!==null)throw Error(s(261));return Ue=null,Be=0,Fe}function Yg(){for(;Me!==null;)Jd(Me)}function Xg(){for(;Me!==null&&!Sm();)Jd(Me)}function Jd(e){var t=rf(e.alternate,e,ut);e.memoizedProps=e.pendingProps,t===null?ef(e):Me=t,Wl.current=null}function ef(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Wg(r,t,ut),r!==null){Me=r;return}}else{if(r=Bg(r,t),r!==null){r.flags&=32767,Me=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,Me=null;return}}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);Fe===0&&(Fe=5)}function Hn(e,t,r){var i=Se,a=yt.transition;try{yt.transition=null,Se=1,Zg(e,t,r,i)}finally{yt.transition=a,Se=i}return null}function Zg(e,t,r,i){do br();while(vn!==null);if((ye&6)!==0)throw Error(s(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var c=r.lanes|r.childLanes;if(_m(e,c),e===Ue&&(Me=Ue=null,Be=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ns||(Ns=!0,of(Io,function(){return br(),null})),c=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||c){c=yt.transition,yt.transition=null;var m=Se;Se=1;var w=ye;ye|=4,Wl.current=null,Qg(e,r),Bd(r,e),yg(Zi),Uo=!!Xi,Zi=Xi=null,e.current=r,Kg(r),Cm(),ye=w,Se=m,yt.transition=c}else e.current=r;if(Ns&&(Ns=!1,vn=e,Ps=a),c=e.pendingLanes,c===0&&(gn=null),Nm(r.stateNode),ot(e,Ae()),t!==null)for(i=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],i(a.value,{componentStack:a.stack,digest:a.digest});if(Es)throw Es=!1,e=Ql,Ql=null,e;return(Ps&1)!==0&&e.tag!==0&&br(),c=e.pendingLanes,(c&1)!==0?e===Kl?mo++:(mo=0,Kl=e):mo=0,fn(),null}function br(){if(vn!==null){var e=Hu(Ps),t=yt.transition,r=Se;try{if(yt.transition=null,Se=16>e?16:e,vn===null)var i=!1;else{if(e=vn,vn=null,Ps=0,(ye&6)!==0)throw Error(s(331));var a=ye;for(ye|=4,X=e.current;X!==null;){var c=X,m=c.child;if((X.flags&16)!==0){var w=c.deletions;if(w!==null){for(var C=0;C<w.length;C++){var A=w[C];for(X=A;X!==null;){var H=X;switch(H.tag){case 0:case 11:case 15:fo(8,H,c)}var W=H.child;if(W!==null)W.return=H,X=W;else for(;X!==null;){H=X;var U=H.sibling,Y=H.return;if(zd(H),H===A){X=null;break}if(U!==null){U.return=Y,X=U;break}X=Y}}}var Z=c.alternate;if(Z!==null){var J=Z.child;if(J!==null){Z.child=null;do{var Ie=J.sibling;J.sibling=null,J=Ie}while(J!==null)}}X=c}}if((c.subtreeFlags&2064)!==0&&m!==null)m.return=c,X=m;else e:for(;X!==null;){if(c=X,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:fo(9,c,c.return)}var O=c.sibling;if(O!==null){O.return=c.return,X=O;break e}X=c.return}}var E=e.current;for(X=E;X!==null;){m=X;var _=m.child;if((m.subtreeFlags&2064)!==0&&_!==null)_.return=m,X=_;else e:for(m=E;X!==null;){if(w=X,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:Ss(9,w)}}catch(te){_e(w,w.return,te)}if(w===m){X=null;break e}var Q=w.sibling;if(Q!==null){Q.return=w.return,X=Q;break e}X=w.return}}if(ye=a,fn(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Mo,e)}catch{}i=!0}return i}finally{Se=r,yt.transition=t}}return!1}function tf(e,t,r){t=vr(r,t),t=xd(e,t,1),e=hn(e,t,1),t=Ze(),e!==null&&(Fr(e,1,t),ot(e,t))}function _e(e,t,r){if(e.tag===3)tf(e,e,r);else for(;t!==null;){if(t.tag===3){tf(t,e,r);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(gn===null||!gn.has(i))){e=vr(r,e),e=wd(t,e,1),t=hn(t,e,1),e=Ze(),t!==null&&(Fr(t,1,e),ot(t,e));break}}t=t.return}}function Jg(e,t,r){var i=e.pingCache;i!==null&&i.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&r,Ue===e&&(Be&r)===r&&(Fe===4||Fe===3&&(Be&130023424)===Be&&500>Ae()-Vl?Un(e,0):Bl|=r),ot(e,t)}function nf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Do,Do<<=1,(Do&130023424)===0&&(Do=4194304)));var r=Ze();e=Kt(e,t),e!==null&&(Fr(e,t,r),ot(e,r))}function ev(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),nf(e,r)}function tv(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(s(314))}i!==null&&i.delete(t),nf(e,r)}var rf;rf=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)nt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return nt=!1,Hg(e,t,r);nt=(e.flags&131072)!==0}else nt=!1,je&&(t.flags&1048576)!==0&&Lc(t,ss,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ws(e,t),e=t.pendingProps;var a=ur(t,Qe.current);mr(t,r),a=Sl(null,t,i,e,a,r);var c=Cl();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(i)?(c=!0,ns(t)):c=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ml(t),a.updater=ys,t.stateNode=a,a._reactInternals=t,jl(t,i,e,r),t=Al(null,t,i,!0,c,r)):(t.tag=0,je&&c&&sl(t),Xe(null,t,a,r),t=t.child),t;case 16:i=t.elementType;e:{switch(ws(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=rv(i),e=Pt(i,e),a){case 0:t=_l(null,t,i,e,r);break e;case 1:t=jd(null,t,i,e,r);break e;case 11:t=kd(null,t,i,e,r);break e;case 14:t=Ed(null,t,i,Pt(i.type,e),r);break e}throw Error(s(306,i,""))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Pt(i,a),_l(e,t,i,a,r);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Pt(i,a),jd(e,t,i,a,r);case 3:e:{if(Td(t),e===null)throw Error(s(387));i=t.pendingProps,c=t.memoizedState,a=c.element,Vc(e,t),ds(t,i,null,r);var m=t.memoizedState;if(i=m.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){a=vr(Error(s(423)),t),t=Od(e,t,i,r,a);break e}else if(i!==a){a=vr(Error(s(424)),t),t=Od(e,t,i,r,a);break e}else for(at=un(t.stateNode.containerInfo.firstChild),lt=t,je=!0,Nt=null,r=Wc(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(fr(),i===a){t=Gt(e,t,r);break e}Xe(e,t,i,r)}t=t.child}return t;case 5:return qc(t),e===null&&al(t),i=t.type,a=t.pendingProps,c=e!==null?e.memoizedProps:null,m=a.children,Ji(i,a)?m=null:c!==null&&Ji(i,c)&&(t.flags|=32),Rd(e,t),Xe(e,t,m,r),t.child;case 6:return e===null&&al(t),null;case 13:return _d(e,t,r);case 4:return gl(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=pr(t,null,i,r):Xe(e,t,i,r),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Pt(i,a),kd(e,t,i,a,r);case 7:return Xe(e,t,t.pendingProps,r),t.child;case 8:return Xe(e,t,t.pendingProps.children,r),t.child;case 12:return Xe(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,a=t.pendingProps,c=t.memoizedProps,m=a.value,ke(as,i._currentValue),i._currentValue=m,c!==null)if(Et(c.value,m)){if(c.children===a.children&&!et.current){t=Gt(e,t,r);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var w=c.dependencies;if(w!==null){m=c.child;for(var C=w.firstContext;C!==null;){if(C.context===i){if(c.tag===1){C=qt(-1,r&-r),C.tag=2;var A=c.updateQueue;if(A!==null){A=A.shared;var H=A.pending;H===null?C.next=C:(C.next=H.next,H.next=C),A.pending=C}}c.lanes|=r,C=c.alternate,C!==null&&(C.lanes|=r),pl(c.return,r,t),w.lanes|=r;break}C=C.next}}else if(c.tag===10)m=c.type===t.type?null:c.child;else if(c.tag===18){if(m=c.return,m===null)throw Error(s(341));m.lanes|=r,w=m.alternate,w!==null&&(w.lanes|=r),pl(m,r,t),m=c.sibling}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===t){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}Xe(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,mr(t,r),a=gt(a),i=i(a),t.flags|=1,Xe(e,t,i,r),t.child;case 14:return i=t.type,a=Pt(i,t.pendingProps),a=Pt(i.type,a),Ed(e,t,i,a,r);case 15:return Nd(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Pt(i,a),ws(e,t),t.tag=1,tt(i)?(e=!0,ns(t)):e=!1,mr(t,r),vd(t,i,a),jl(t,i,a,r),Al(null,t,i,!0,e,r);case 19:return Id(e,t,r);case 22:return Pd(e,t,r)}throw Error(s(156,t.tag))};function of(e,t){return Du(e,t)}function nv(e,t,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,r,i){return new nv(e,t,r,i)}function Jl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rv(e){if(typeof e=="function")return Jl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ee)return 11;if(e===me)return 14}return 2}function wn(e,t){var r=e.alternate;return r===null?(r=xt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Os(e,t,r,i,a,c){var m=2;if(i=e,typeof e=="function")Jl(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case V:return Wn(r.children,a,c,t);case ne:m=8,a|=8;break;case F:return e=xt(12,r,t,a|2),e.elementType=F,e.lanes=c,e;case ce:return e=xt(13,r,t,a),e.elementType=ce,e.lanes=c,e;case G:return e=xt(19,r,t,a),e.elementType=G,e.lanes=c,e;case ie:return _s(r,a,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case re:m=10;break e;case pe:m=9;break e;case ee:m=11;break e;case me:m=14;break e;case le:m=16,i=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=xt(m,r,t,a),t.elementType=e,t.type=i,t.lanes=c,t}function Wn(e,t,r,i){return e=xt(7,e,i,t),e.lanes=r,e}function _s(e,t,r,i){return e=xt(22,e,i,t),e.elementType=ie,e.lanes=r,e.stateNode={isHidden:!1},e}function ea(e,t,r){return e=xt(6,e,null,t),e.lanes=r,e}function ta(e,t,r){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ov(e,t,r,i,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ri(0),this.expirationTimes=Ri(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ri(0),this.identifierPrefix=i,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function na(e,t,r,i,a,c,m,w,C){return e=new ov(e,t,r,w,C),t===1?(t=1,c===!0&&(t|=8)):t=0,c=xt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:i,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ml(c),e}function sv(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:B,key:i==null?null:""+i,children:e,containerInfo:t,implementation:r}}function sf(e){if(!e)return dn;e=e._reactInternals;e:{if(On(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var r=e.type;if(tt(r))return Ac(e,r,t)}return t}function lf(e,t,r,i,a,c,m,w,C){return e=na(r,i,!0,e,a,c,m,w,C),e.context=sf(null),r=e.current,i=Ze(),a=yn(r),c=qt(i,a),c.callback=t??null,hn(r,c,a),e.current.lanes=a,Fr(e,a,i),ot(e,i),e}function As(e,t,r,i){var a=t.current,c=Ze(),m=yn(a);return r=sf(r),t.context===null?t.context=r:t.pendingContext=r,t=qt(c,m),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=hn(a,t,m),e!==null&&(Tt(e,a,m,c),cs(e,a,m)),m}function Is(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function af(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function ra(e,t){af(e,t),(e=e.alternate)&&af(e,t)}function iv(){return null}var uf=typeof reportError=="function"?reportError:function(e){console.error(e)};function oa(e){this._internalRoot=e}Ms.prototype.render=oa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));As(e,t,null,null)},Ms.prototype.unmount=oa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$n(function(){As(null,e,null,null)}),t[Wt]=null}};function Ms(e){this._internalRoot=e}Ms.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vu();e={blockedOn:null,target:e,priority:t};for(var r=0;r<sn.length&&t!==0&&t<sn[r].priority;r++);sn.splice(r,0,e),r===0&&qu(e)}};function sa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ls(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function cf(){}function lv(e,t,r,i,a){if(a){if(typeof i=="function"){var c=i;i=function(){var A=Is(m);c.call(A)}}var m=lf(t,i,e,0,null,!1,!1,"",cf);return e._reactRootContainer=m,e[Wt]=m.current,Zr(e.nodeType===8?e.parentNode:e),$n(),m}for(;a=e.lastChild;)e.removeChild(a);if(typeof i=="function"){var w=i;i=function(){var A=Is(C);w.call(A)}}var C=na(e,0,!1,null,null,!1,!1,"",cf);return e._reactRootContainer=C,e[Wt]=C.current,Zr(e.nodeType===8?e.parentNode:e),$n(function(){As(t,C,r,i)}),C}function Ds(e,t,r,i,a){var c=r._reactRootContainer;if(c){var m=c;if(typeof a=="function"){var w=a;a=function(){var C=Is(m);w.call(C)}}As(t,m,e,a)}else m=lv(r,t,e,a,i);return Is(m)}Wu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Dr(t.pendingLanes);r!==0&&(ji(t,r|1),ot(t,Ae()),(ye&6)===0&&(wr=Ae()+500,fn()))}break;case 13:$n(function(){var i=Kt(e,1);if(i!==null){var a=Ze();Tt(i,e,1,a)}}),ra(e,1)}},Ti=function(e){if(e.tag===13){var t=Kt(e,134217728);if(t!==null){var r=Ze();Tt(t,e,134217728,r)}ra(e,134217728)}},Bu=function(e){if(e.tag===13){var t=yn(e),r=Kt(e,t);if(r!==null){var i=Ze();Tt(r,e,t,i)}ra(e,t)}},Vu=function(){return Se},Qu=function(e,t){var r=Se;try{return Se=e,t()}finally{Se=r}},Si=function(e,t,r){switch(t){case"input":if(hi(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var a=es(i);if(!a)throw Error(s(90));To(i),hi(i,a)}}}break;case"textarea":bu(e,r);break;case"select":t=r.value,t!=null&&Xn(e,!!r.multiple,t,!1)}},Tu=Yl,Ou=$n;var av={usingClientEntryPoint:!1,Events:[to,lr,es,Ru,ju,Yl]},go={findFiberByHostInstance:_n,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},uv={bundleType:go.bundleType,version:go.version,rendererPackageName:go.rendererPackageName,rendererConfig:go.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Mu(e),e===null?null:e.stateNode},findFiberByHostInstance:go.findFiberByHostInstance||iv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fs.isDisabled&&Fs.supportsFiber)try{Mo=Fs.inject(uv),At=Fs}catch{}}return st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=av,st.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!sa(t))throw Error(s(200));return sv(e,t,null,r)},st.createRoot=function(e,t){if(!sa(e))throw Error(s(299));var r=!1,i="",a=uf;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=na(e,1,!1,null,null,r,!1,i,a),e[Wt]=t.current,Zr(e.nodeType===8?e.parentNode:e),new oa(t)},st.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Mu(t),e=e===null?null:e.stateNode,e},st.flushSync=function(e){return $n(e)},st.hydrate=function(e,t,r){if(!Ls(t))throw Error(s(200));return Ds(null,e,t,!0,r)},st.hydrateRoot=function(e,t,r){if(!sa(e))throw Error(s(405));var i=r!=null&&r.hydratedSources||null,a=!1,c="",m=uf;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onRecoverableError!==void 0&&(m=r.onRecoverableError)),t=lf(t,null,e,1,r??null,a,!1,c,m),e[Wt]=t.current,Zr(e),i)for(e=0;e<i.length;e++)r=i[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Ms(t)},st.render=function(e,t,r){if(!Ls(t))throw Error(s(200));return Ds(null,e,t,!1,r)},st.unmountComponentAtNode=function(e){if(!Ls(e))throw Error(s(40));return e._reactRootContainer?($n(function(){Ds(null,null,e,!1,function(){e._reactRootContainer=null,e[Wt]=null})}),!0):!1},st.unstable_batchedUpdates=Yl,st.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!Ls(r))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Ds(e,t,r,!1,i)},st.version="18.3.1-next-f1338f8080-20240426",st}var yf;function hp(){if(yf)return aa.exports;yf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}return n(),aa.exports=vv(),aa.exports}var xf;function yv(){if(xf)return zs;xf=1;var n=hp();return zs.createRoot=n.createRoot,zs.hydrateRoot=n.hydrateRoot,zs}var xv=yv();function wv(n,o){if(n instanceof RegExp)return{keys:!1,pattern:n};var s,l,u,f,p=[],h="",g=n.split("/");for(g[0]||g.shift();u=g.shift();)s=u[0],s==="*"?(p.push(s),h+=u[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(l=u.indexOf("?",1),f=u.indexOf(".",1),p.push(u.substring(1,~l?l:~f?f:u.length)),h+=~l&&!~f?"(?:/([^/]+?))?":"/([^/]+?)",~f&&(h+=(~l?"?":"")+"\\"+u.substring(f))):h+="/"+u;return{keys:p,pattern:new RegExp("^"+h+(o?"(?=$|/)":"/?$"),"i")}}var x=Js();const En=pp(x),Ua=dv({__proto__:null,default:En},[x]);var da={exports:{}},fa={};var wf;function bv(){if(wf)return fa;wf=1;var n=Js();function o(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}var s=typeof Object.is=="function"?Object.is:o,l=n.useState,u=n.useEffect,f=n.useLayoutEffect,p=n.useDebugValue;function h(b,S){var R=S(),T=l({inst:{value:R,getSnapshot:S}}),k=T[0].inst,N=T[1];return f(function(){k.value=R,k.getSnapshot=S,g(k)&&N({inst:k})},[b,R,S]),u(function(){return g(k)&&N({inst:k}),b(function(){g(k)&&N({inst:k})})},[b]),p(R),R}function g(b){var S=b.getSnapshot;b=b.value;try{var R=S();return!s(b,R)}catch{return!0}}function v(b,S){return S()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:h;return fa.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,fa}var bf;function Sv(){return bf||(bf=1,da.exports=bv()),da.exports}var mp=Sv();const Cv=Ua.useInsertionEffect,kv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ev=kv?x.useLayoutEffect:x.useEffect,Nv=Cv||Ev,gp=n=>{const o=x.useRef([n,(...s)=>o[0](...s)]).current;return Nv(()=>{o[0]=n}),o[1]},Pv="popstate",Ha="pushState",Wa="replaceState",Rv="hashchange",Sf=[Pv,Ha,Wa,Rv],jv=n=>{for(const o of Sf)addEventListener(o,n);return()=>{for(const o of Sf)removeEventListener(o,n)}},vp=(n,o)=>mp.useSyncExternalStore(jv,n,o),Cf=()=>location.search,Tv=({ssrSearch:n}={})=>vp(Cf,n!=null?()=>n:Cf),kf=()=>location.pathname,Ov=({ssrPath:n}={})=>vp(kf,n!=null?()=>n:kf),_v=(n,{replace:o=!1,state:s=null}={})=>history[o?Wa:Ha](s,"",n),Av=(n={})=>[Ov(n),_v],Ef=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Ef]>"u"){for(const n of[Ha,Wa]){const o=history[n];history[n]=function(){const s=o.apply(this,arguments),l=new Event(n);return l.arguments=arguments,dispatchEvent(l),s}}Object.defineProperty(window,Ef,{value:!0})}const Iv=(n,o)=>o.toLowerCase().indexOf(n.toLowerCase())?"~"+o:o.slice(n.length)||"/",yp=(n="")=>n==="/"?"":n,Mv=(n,o)=>n[0]==="~"?n.slice(1):yp(o)+n,Lv=(n="",o)=>Iv(Nf(yp(n)),Nf(o)),Nf=n=>{try{return decodeURI(n)}catch{return n}},xp={hook:Av,searchHook:Tv,parser:wv,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n,aroundNav:(n,o,s)=>n(o,s)},wp=x.createContext(xp),ei=()=>x.useContext(wp),bp={},Sp=x.createContext(bp),Dv=()=>x.useContext(Sp),Ba=n=>{const[o,s]=n.hook(n);return[Lv(n.base,o),gp((l,u)=>n.aroundNav(s,Mv(l,n.base),u))]},Cp=(n,o,s,l)=>{const{pattern:u,keys:f}=o instanceof RegExp?{keys:!1,pattern:o}:n(o||"*",l),p=u.exec(s)||[],[h,...g]=p;return h!==void 0?[!0,(()=>{const v=f!==!1?Object.fromEntries(f.map((b,S)=>[b,g[S]])):p.groups;let y={...g};return v&&Object.assign(y,v),y})(),...l?[h]:[]]:[!1,null]},kp=({children:n,...o})=>{const s=ei(),l=o.hook?xp:s;let u=l;const[f,p=o.ssrSearch??""]=o.ssrPath?.split("?")??[];f&&(o.ssrSearch=p,o.ssrPath=f),o.hrefs=o.hrefs??o.hook?.hrefs,o.searchHook=o.searchHook??o.hook?.searchHook;let h=x.useRef({}),g=h.current,v=g;for(let y in l){const b=y==="base"?l[y]+(o[y]??""):o[y]??l[y];g===v&&b!==v[y]&&(h.current=v={...v}),v[y]=b,(b!==l[y]||b!==u[y])&&(u=v)}return x.createElement(wp.Provider,{value:u,children:n})},Pf=({children:n,component:o},s)=>o?x.createElement(o,{params:s}):typeof n=="function"?n(s):n,Fv=n=>{let o=x.useRef(bp);const s=o.current;return o.current=Object.keys(n).length!==Object.keys(s).length||Object.entries(n).some(([l,u])=>u!==s[l])?n:s},yo=({path:n,nest:o,match:s,...l})=>{const u=ei(),[f]=Ba(u),[p,h,g]=s??Cp(u.parser,n,f,o),v=Fv({...Dv(),...h});if(!p)return null;const y=g?x.createElement(kp,{base:g},Pf(l,v)):Pf(l,v);return x.createElement(Sp.Provider,{value:v,children:y})},Nn=x.forwardRef((n,o)=>{const s=ei(),[l,u]=Ba(s),{to:f="",href:p=f,onClick:h,asChild:g,children:v,className:y,replace:b,state:S,transition:R,...T}=n,k=gp(j=>{j.ctrlKey||j.metaKey||j.altKey||j.shiftKey||j.button!==0||(h?.(j),j.defaultPrevented||(j.preventDefault(),u(p,n)))}),N=s.hrefs(p[0]==="~"?p.slice(1):s.base+p,s);return g&&x.isValidElement(v)?x.cloneElement(v,{onClick:k,href:N}):x.createElement("a",{...T,onClick:k,href:N,className:y?.call?y(l===p):y,children:v,ref:o})}),Ep=n=>Array.isArray(n)?n.flatMap(o=>Ep(o&&o.type===x.Fragment?o.props.children:o)):[n],zv=({children:n,location:o})=>{const s=ei(),[l]=Ba(s);for(const u of Ep(n)){let f=0;if(x.isValidElement(u)&&(f=Cp(s.parser,u.props.path,o||l,u.props.nest))[0])return x.cloneElement(u,{match:f})}return null},bo={v:[]},Rf=()=>bo.v.forEach(n=>n()),$v=n=>(bo.v.push(n)===1&&addEventListener("hashchange",Rf),()=>{bo.v=bo.v.filter(o=>o!==n),bo.v.length||removeEventListener("hashchange",Rf)}),Uv=()=>"/"+location.hash.replace(/^#?\/?/,""),Hv=(n,{state:o=null,replace:s=!1}={})=>{const l=location.href,[u,f]=n.replace(/^#?\/?/,"").split("?"),p=new URL(location.href);p.hash=`/${u}`,f&&(p.search=f);const h=p.href;s?history.replaceState(o,"",h):history.pushState(o,"",h);const g=typeof HashChangeEvent<"u"?new HashChangeEvent("hashchange",{oldURL:l,newURL:h}):new Event("hashchange",{detail:{oldURL:l,newURL:h}});dispatchEvent(g)},Np=({ssrPath:n="/"}={})=>[mp.useSyncExternalStore($v,Uv,()=>n),Hv];Np.hrefs=n=>"#"+n;var Pr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Wv={setTimeout:(n,o)=>setTimeout(n,o),clearTimeout:n=>clearTimeout(n),setInterval:(n,o)=>setInterval(n,o),clearInterval:n=>clearInterval(n)},Bv=class{#e=Wv;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,o){return this.#e.setTimeout(n,o)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,o){return this.#e.setInterval(n,o)}clearInterval(n){this.#e.clearInterval(n)}},Qn=new Bv;function Vv(n){setTimeout(n,0)}var Kn=typeof window>"u"||"Deno"in globalThis;function Je(){}function Qv(n,o){return typeof n=="function"?n(o):n}function ka(n){return typeof n=="number"&&n>=0&&n!==1/0}function Pp(n,o){return Math.max(n+(o||0)-Date.now(),0)}function Pn(n,o){return typeof n=="function"?n(o):n}function wt(n,o){return typeof n=="function"?n(o):n}function jf(n,o){const{type:s="all",exact:l,fetchStatus:u,predicate:f,queryKey:p,stale:h}=n;if(p){if(l){if(o.queryHash!==Va(p,o.options))return!1}else if(!Co(o.queryKey,p))return!1}if(s!=="all"){const g=o.isActive();if(s==="active"&&!g||s==="inactive"&&g)return!1}return!(typeof h=="boolean"&&o.isStale()!==h||u&&u!==o.state.fetchStatus||f&&!f(o))}function Tf(n,o){const{exact:s,status:l,predicate:u,mutationKey:f}=n;if(f){if(!o.options.mutationKey)return!1;if(s){if(qn(o.options.mutationKey)!==qn(f))return!1}else if(!Co(o.options.mutationKey,f))return!1}return!(l&&o.state.status!==l||u&&!u(o))}function Va(n,o){return(o?.queryKeyHashFn||qn)(n)}function qn(n){return JSON.stringify(n,(o,s)=>Ea(s)?Object.keys(s).sort().reduce((l,u)=>(l[u]=s[u],l),{}):s)}function Co(n,o){return n===o?!0:typeof n!=typeof o?!1:n&&o&&typeof n=="object"&&typeof o=="object"?Object.keys(o).every(s=>Co(n[s],o[s])):!1}var Kv=Object.prototype.hasOwnProperty;function Rp(n,o,s=0){if(n===o)return n;if(s>500)return o;const l=Of(n)&&Of(o);if(!l&&!(Ea(n)&&Ea(o)))return o;const f=(l?n:Object.keys(n)).length,p=l?o:Object.keys(o),h=p.length,g=l?new Array(h):{};let v=0;for(let y=0;y<h;y++){const b=l?y:p[y],S=n[b],R=o[b];if(S===R){g[b]=S,(l?y<f:Kv.call(n,b))&&v++;continue}if(S===null||R===null||typeof S!="object"||typeof R!="object"){g[b]=R;continue}const T=Rp(S,R,s+1);g[b]=T,T===S&&v++}return f===h&&v===f?n:g}function Ks(n,o){if(!o||Object.keys(n).length!==Object.keys(o).length)return!1;for(const s in n)if(n[s]!==o[s])return!1;return!0}function Of(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Ea(n){if(!_f(n))return!1;const o=n.constructor;if(o===void 0)return!0;const s=o.prototype;return!(!_f(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function _f(n){return Object.prototype.toString.call(n)==="[object Object]"}function qv(n){return new Promise(o=>{Qn.setTimeout(o,n)})}function Na(n,o,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,o):s.structuralSharing!==!1?Rp(n,o):o}function Gv(n,o,s=0){const l=[...n,o];return s&&l.length>s?l.slice(1):l}function Yv(n,o,s=0){const l=[o,...n];return s&&l.length>s?l.slice(0,-1):l}var Qa=Symbol();function jp(n,o){return!n.queryFn&&o?.initialPromise?()=>o.initialPromise:!n.queryFn||n.queryFn===Qa?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Ka(n,o){return typeof n=="function"?n(...o):!!n}function Xv(n,o,s){let l=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??=o(),l||(l=!0,u.aborted?s():u.addEventListener("abort",s,{once:!0})),u)}),n}var Zv=class extends Pr{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!Kn&&window.addEventListener){const o=()=>n();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(o=>{o(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},qa=new Zv;function Pa(){let n,o;const s=new Promise((u,f)=>{n=u,o=f});s.status="pending",s.catch(()=>{});function l(u){Object.assign(s,u),delete s.resolve,delete s.reject}return s.resolve=u=>{l({status:"fulfilled",value:u}),n(u)},s.reject=u=>{l({status:"rejected",reason:u}),o(u)},s}var Jv=Vv;function ey(){let n=[],o=0,s=h=>{h()},l=h=>{h()},u=Jv;const f=h=>{o?n.push(h):u(()=>{s(h)})},p=()=>{const h=n;n=[],h.length&&u(()=>{l(()=>{h.forEach(g=>{s(g)})})})};return{batch:h=>{let g;o++;try{g=h()}finally{o--,o||p()}return g},batchCalls:h=>(...g)=>{f(()=>{h(...g)})},schedule:f,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{l=h},setScheduler:h=>{u=h}}}var ze=ey(),ty=class extends Pr{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!Kn&&window.addEventListener){const o=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},qs=new ty;function ny(n){return Math.min(1e3*2**n,3e4)}function Tp(n){return(n??"online")==="online"?qs.isOnline():!0}var Ra=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Op(n){let o=!1,s=0,l;const u=Pa(),f=()=>u.status!=="pending",p=k=>{if(!f()){const N=new Ra(k);S(N),n.onCancel?.(N)}},h=()=>{o=!0},g=()=>{o=!1},v=()=>qa.isFocused()&&(n.networkMode==="always"||qs.isOnline())&&n.canRun(),y=()=>Tp(n.networkMode)&&n.canRun(),b=k=>{f()||(l?.(),u.resolve(k))},S=k=>{f()||(l?.(),u.reject(k))},R=()=>new Promise(k=>{l=N=>{(f()||v())&&k(N)},n.onPause?.()}).then(()=>{l=void 0,f()||n.onContinue?.()}),T=()=>{if(f())return;let k;const N=s===0?n.initialPromise:void 0;try{k=N??n.fn()}catch(j){k=Promise.reject(j)}Promise.resolve(k).then(b).catch(j=>{if(f())return;const I=n.retry??(Kn?0:3),M=n.retryDelay??ny,D=typeof M=="function"?M(s,j):M,$=I===!0||typeof I=="number"&&s<I||typeof I=="function"&&I(s,j);if(o||!$){S(j);return}s++,n.onFail?.(s,j),qv(D).then(()=>v()?void 0:R()).then(()=>{o?S(j):T()})})};return{promise:u,status:()=>u.status,cancel:p,continue:()=>(l?.(),u),cancelRetry:h,continueRetry:g,canStart:y,start:()=>(y()?T():R().then(T),u)}}var _p=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ka(this.gcTime)&&(this.#e=Qn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Kn?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Qn.clearTimeout(this.#e),this.#e=void 0)}},ry=class extends _p{#e;#t;#n;#o;#r;#i;#l;constructor(n){super(),this.#l=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#o=n.client,this.#n=this.#o.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=If(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const o=If(this.options);o.data!==void 0&&(this.setState(Af(o.data,o.dataUpdatedAt)),this.#e=o)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,o){const s=Na(this.state.data,n,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:o?.updatedAt,manual:o?.manual}),s}setState(n,o){this.#s({type:"setState",state:n,setStateOptions:o})}cancel(n){const o=this.#r?.promise;return this.#r?.cancel(n),o?o.then(Je).catch(Je):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>wt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Pn(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Pp(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(o=>o.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(o=>o.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(o=>o!==n),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,o){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&o?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(g=>g.options.queryFn);h&&this.setOptions(h.options)}const s=new AbortController,l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#l=!0,s.signal)})},u=()=>{const h=jp(this.options,o),v=(()=>{const y={client:this.#o,queryKey:this.queryKey,meta:this.meta};return l(y),y})();return this.#l=!1,this.options.persister?this.options.persister(h,v,this):h(v)},p=(()=>{const h={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:u};return l(h),h})();this.options.behavior?.onFetch(p,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==p.fetchOptions?.meta)&&this.#s({type:"fetch",meta:p.fetchOptions?.meta}),this.#r=Op({initialPromise:o?.initialPromise,fn:p.fetchFn,onCancel:h=>{h instanceof Ra&&h.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(h,g)=>{this.#s({type:"failed",failureCount:h,error:g})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof Ra){if(h.silent)return this.#r.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#s({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#s(n){const o=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Ap(s.data,this.options),fetchMeta:n.meta??null};case"success":const l={...s,...Af(n.data,n.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?l:void 0,l;case"error":const u=n.error;return{...s,error:u,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=o(this.state),ze.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function Ap(n,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Tp(o.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Af(n,o){return{data:n,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function If(n){const o=typeof n.initialData=="function"?n.initialData():n.initialData,s=o!==void 0,l=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:s?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var oy=class extends Pr{constructor(n,o){super(),this.options=o,this.#e=n,this.#s=null,this.#l=Pa(),this.bindMethods(),this.setOptions(o)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#i;#l;#s;#m;#f;#p;#u;#c;#a;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Mf(this.#t,this.options)?this.#d():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ja(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ja(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#b(),this.#t.removeObserver(this)}setOptions(n){const o=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),o._defaulted&&!Ks(this.options,o)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const l=this.hasListeners();l&&Lf(this.#t,s,this.options,o)&&this.#d(),this.updateResult(),l&&(this.#t!==s||wt(this.options.enabled,this.#t)!==wt(o.enabled,this.#t)||Pn(this.options.staleTime,this.#t)!==Pn(o.staleTime,this.#t))&&this.#g();const u=this.#v();l&&(this.#t!==s||wt(this.options.enabled,this.#t)!==wt(o.enabled,this.#t)||u!==this.#a)&&this.#y(u)}getOptimisticResult(n){const o=this.#e.getQueryCache().build(this.#e,n),s=this.createResult(o,n);return iy(this,s)&&(this.#o=s,this.#i=this.options,this.#r=this.#t.state),s}getCurrentResult(){return this.#o}trackResult(n,o){return new Proxy(n,{get:(s,l)=>(this.trackProp(l),o?.(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,l))})}trackProp(n){this.#h.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const o=this.#e.defaultQueryOptions(n),s=this.#e.getQueryCache().build(this.#e,o);return s.fetch().then(()=>this.createResult(s,o))}fetch(n){return this.#d({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(n){this.#S();let o=this.#t.fetch(this.options,n);return n?.throwOnError||(o=o.catch(Je)),o}#g(){this.#w();const n=Pn(this.options.staleTime,this.#t);if(Kn||this.#o.isStale||!ka(n))return;const s=Pp(this.#o.dataUpdatedAt,n)+1;this.#u=Qn.setTimeout(()=>{this.#o.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(n){this.#b(),this.#a=n,!(Kn||wt(this.options.enabled,this.#t)===!1||!ka(this.#a)||this.#a===0)&&(this.#c=Qn.setInterval(()=>{(this.options.refetchIntervalInBackground||qa.isFocused())&&this.#d()},this.#a))}#x(){this.#g(),this.#y(this.#v())}#w(){this.#u&&(Qn.clearTimeout(this.#u),this.#u=void 0)}#b(){this.#c&&(Qn.clearInterval(this.#c),this.#c=void 0)}createResult(n,o){const s=this.#t,l=this.options,u=this.#o,f=this.#r,p=this.#i,g=n!==s?n.state:this.#n,{state:v}=n;let y={...v},b=!1,S;if(o._optimisticResults){const ne=this.hasListeners(),F=!ne&&Mf(n,o),re=ne&&Lf(n,s,o,l);(F||re)&&(y={...y,...Ap(v.data,n.options)}),o._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:R,errorUpdatedAt:T,status:k}=y;S=y.data;let N=!1;if(o.placeholderData!==void 0&&S===void 0&&k==="pending"){let ne;u?.isPlaceholderData&&o.placeholderData===p?.placeholderData?(ne=u.data,N=!0):ne=typeof o.placeholderData=="function"?o.placeholderData(this.#p?.state.data,this.#p):o.placeholderData,ne!==void 0&&(k="success",S=Na(u?.data,ne,o),b=!0)}if(o.select&&S!==void 0&&!N)if(u&&S===f?.data&&o.select===this.#m)S=this.#f;else try{this.#m=o.select,S=o.select(S),S=Na(u?.data,S,o),this.#f=S,this.#s=null}catch(ne){this.#s=ne}this.#s&&(R=this.#s,S=this.#f,T=Date.now(),k="error");const j=y.fetchStatus==="fetching",I=k==="pending",M=k==="error",D=I&&j,$=S!==void 0,V={status:k,fetchStatus:y.fetchStatus,isPending:I,isSuccess:k==="success",isError:M,isInitialLoading:D,isLoading:D,data:S,dataUpdatedAt:y.dataUpdatedAt,error:R,errorUpdatedAt:T,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>g.dataUpdateCount||y.errorUpdateCount>g.errorUpdateCount,isFetching:j,isRefetching:j&&!I,isLoadingError:M&&!$,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:M&&$,isStale:Ga(n,o),refetch:this.refetch,promise:this.#l,isEnabled:wt(o.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ne=V.data!==void 0,F=V.status==="error"&&!ne,re=ce=>{F?ce.reject(V.error):ne&&ce.resolve(V.data)},pe=()=>{const ce=this.#l=V.promise=Pa();re(ce)},ee=this.#l;switch(ee.status){case"pending":n.queryHash===s.queryHash&&re(ee);break;case"fulfilled":(F||V.data!==ee.value)&&pe();break;case"rejected":(!F||V.error!==ee.reason)&&pe();break}}return V}updateResult(){const n=this.#o,o=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#p=this.#t),Ks(o,n))return;this.#o=o;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,u=typeof l=="function"?l():l;if(u==="all"||!u&&!this.#h.size)return!0;const f=new Set(u??this.#h);return this.options.throwOnError&&f.add("error"),Object.keys(this.#o).some(p=>{const h=p;return this.#o[h]!==n[h]&&f.has(h)})};this.#C({listeners:s()})}#S(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const o=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(o?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#C(n){ze.batch(()=>{n.listeners&&this.listeners.forEach(o=>{o(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function sy(n,o){return wt(o.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&o.retryOnMount===!1)}function Mf(n,o){return sy(n,o)||n.state.data!==void 0&&ja(n,o,o.refetchOnMount)}function ja(n,o,s){if(wt(o.enabled,n)!==!1&&Pn(o.staleTime,n)!=="static"){const l=typeof s=="function"?s(n):s;return l==="always"||l!==!1&&Ga(n,o)}return!1}function Lf(n,o,s,l){return(n!==o||wt(l.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Ga(n,s)}function Ga(n,o){return wt(o.enabled,n)!==!1&&n.isStaleByTime(Pn(o.staleTime,n))}function iy(n,o){return!Ks(n.getCurrentResult(),o)}function Df(n){return{onFetch:(o,s)=>{const l=o.options,u=o.fetchOptions?.meta?.fetchMore?.direction,f=o.state.data?.pages||[],p=o.state.data?.pageParams||[];let h={pages:[],pageParams:[]},g=0;const v=async()=>{let y=!1;const b=T=>{Xv(T,()=>o.signal,()=>y=!0)},S=jp(o.options,o.fetchOptions),R=async(T,k,N)=>{if(y)return Promise.reject();if(k==null&&T.pages.length)return Promise.resolve(T);const I=(()=>{const B={client:o.client,queryKey:o.queryKey,pageParam:k,direction:N?"backward":"forward",meta:o.options.meta};return b(B),B})(),M=await S(I),{maxPages:D}=o.options,$=N?Yv:Gv;return{pages:$(T.pages,M,D),pageParams:$(T.pageParams,k,D)}};if(u&&f.length){const T=u==="backward",k=T?ly:Ff,N={pages:f,pageParams:p},j=k(l,N);h=await R(N,j,T)}else{const T=n??f.length;do{const k=g===0?p[0]??l.initialPageParam:Ff(l,h);if(g>0&&k==null)break;h=await R(h,k),g++}while(g<T)}return h};o.options.persister?o.fetchFn=()=>o.options.persister?.(v,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},s):o.fetchFn=v}}}function Ff(n,{pages:o,pageParams:s}){const l=o.length-1;return o.length>0?n.getNextPageParam(o[l],o,s[l],s):void 0}function ly(n,{pages:o,pageParams:s}){return o.length>0?n.getPreviousPageParam?.(o[0],o,s[0],s):void 0}var ay=class extends _p{#e;#t;#n;#o;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||Ip(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(o=>o!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(n){const o=()=>{this.#r({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=Op({fn:()=>this.options.mutationFn?this.options.mutationFn(n,s):Promise.reject(new Error("No mutationFn found")),onFail:(f,p)=>{this.#r({type:"failed",failureCount:f,error:p})},onPause:()=>{this.#r({type:"pause"})},onContinue:o,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const l=this.state.status==="pending",u=!this.#o.canStart();try{if(l)o();else{this.#r({type:"pending",variables:n,isPaused:u}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,s);const p=await this.options.onMutate?.(n,s);p!==this.state.context&&this.#r({type:"pending",context:p,variables:n,isPaused:u})}const f=await this.#o.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,s),await this.options.onSuccess?.(f,n,this.state.context,s),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(f,null,n,this.state.context,s),this.#r({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,s)}catch(p){Promise.reject(p)}try{await this.options.onError?.(f,n,this.state.context,s)}catch(p){Promise.reject(p)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,s)}catch(p){Promise.reject(p)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,s)}catch(p){Promise.reject(p)}throw this.#r({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#r(n){const o=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=o(this.state),ze.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function Ip(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var uy=class extends Pr{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,o,s){const l=new ay({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(o),state:s});return this.add(l),l}add(n){this.#e.add(n);const o=$s(n);if(typeof o=="string"){const s=this.#t.get(o);s?s.push(n):this.#t.set(o,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const o=$s(n);if(typeof o=="string"){const s=this.#t.get(o);if(s)if(s.length>1){const l=s.indexOf(n);l!==-1&&s.splice(l,1)}else s[0]===n&&this.#t.delete(o)}}this.notify({type:"removed",mutation:n})}canRun(n){const o=$s(n);if(typeof o=="string"){const l=this.#t.get(o)?.find(u=>u.state.status==="pending");return!l||l===n}else return!0}runNext(n){const o=$s(n);return typeof o=="string"?this.#t.get(o)?.find(l=>l!==n&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ze.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const o={exact:!0,...n};return this.getAll().find(s=>Tf(o,s))}findAll(n={}){return this.getAll().filter(o=>Tf(n,o))}notify(n){ze.batch(()=>{this.listeners.forEach(o=>{o(n)})})}resumePausedMutations(){const n=this.getAll().filter(o=>o.state.isPaused);return ze.batch(()=>Promise.all(n.map(o=>o.continue().catch(Je))))}};function $s(n){return n.options.scope?.id}var cy=class extends Pr{#e;#t=void 0;#n;#o;constructor(o,s){super(),this.#e=o,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(o){const s=this.options;this.options=this.#e.defaultMutationOptions(o),Ks(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&qn(s.mutationKey)!==qn(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(o){this.#r(),this.#i(o)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(o,s){return this.#o=s,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(o)}#r(){const o=this.#n?.state??Ip();this.#t={...o,isPending:o.status==="pending",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset}}#i(o){ze.batch(()=>{if(this.#o&&this.hasListeners()){const s=this.#t.variables,l=this.#t.context,u={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(o?.type==="success"){try{this.#o.onSuccess?.(o.data,s,l,u)}catch(f){Promise.reject(f)}try{this.#o.onSettled?.(o.data,null,s,l,u)}catch(f){Promise.reject(f)}}else if(o?.type==="error"){try{this.#o.onError?.(o.error,s,l,u)}catch(f){Promise.reject(f)}try{this.#o.onSettled?.(void 0,o.error,s,l,u)}catch(f){Promise.reject(f)}}}this.listeners.forEach(s=>{s(this.#t)})})}},dy=class extends Pr{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,o,s){const l=o.queryKey,u=o.queryHash??Va(l,o);let f=this.get(u);return f||(f=new ry({client:n,queryKey:l,queryHash:u,options:n.defaultQueryOptions(o),state:s,defaultOptions:n.getQueryDefaults(l)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const o=this.#e.get(n.queryHash);o&&(n.destroy(),o===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){ze.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const o={exact:!0,...n};return this.getAll().find(s=>jf(o,s))}findAll(n={}){const o=this.getAll();return Object.keys(n).length>0?o.filter(s=>jf(n,s)):o}notify(n){ze.batch(()=>{this.listeners.forEach(o=>{o(n)})})}onFocus(){ze.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){ze.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},fy=class{#e;#t;#n;#o;#r;#i;#l;#s;constructor(n={}){this.#e=n.queryCache||new dy,this.#t=n.mutationCache||new uy,this.#n=n.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#l=qa.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=qs.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#l?.(),this.#l=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const o=this.defaultQueryOptions({queryKey:n});return this.#e.get(o.queryHash)?.state.data}ensureQueryData(n){const o=this.defaultQueryOptions(n),s=this.#e.build(this,o),l=s.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Pn(o.staleTime,s))&&this.prefetchQuery(o),Promise.resolve(l))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:o,state:s})=>{const l=s.data;return[o,l]})}setQueryData(n,o,s){const l=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(l.queryHash)?.state.data,p=Qv(o,f);if(p!==void 0)return this.#e.build(this,l).setData(p,{...s,manual:!0})}setQueriesData(n,o,s){return ze.batch(()=>this.#e.findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,o,s)]))}getQueryState(n){const o=this.defaultQueryOptions({queryKey:n});return this.#e.get(o.queryHash)?.state}removeQueries(n){const o=this.#e;ze.batch(()=>{o.findAll(n).forEach(s=>{o.remove(s)})})}resetQueries(n,o){const s=this.#e;return ze.batch(()=>(s.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},o)))}cancelQueries(n,o={}){const s={revert:!0,...o},l=ze.batch(()=>this.#e.findAll(n).map(u=>u.cancel(s)));return Promise.all(l).then(Je).catch(Je)}invalidateQueries(n,o={}){return ze.batch(()=>(this.#e.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},o)))}refetchQueries(n,o={}){const s={...o,cancelRefetch:o.cancelRefetch??!0},l=ze.batch(()=>this.#e.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,s);return s.throwOnError||(f=f.catch(Je)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(Je)}fetchQuery(n){const o=this.defaultQueryOptions(n);o.retry===void 0&&(o.retry=!1);const s=this.#e.build(this,o);return s.isStaleByTime(Pn(o.staleTime,s))?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Je).catch(Je)}fetchInfiniteQuery(n){return n.behavior=Df(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Je).catch(Je)}ensureInfiniteQueryData(n){return n.behavior=Df(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return qs.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,o){this.#o.set(qn(n),{queryKey:n,defaultOptions:o})}getQueryDefaults(n){const o=[...this.#o.values()],s={};return o.forEach(l=>{Co(n,l.queryKey)&&Object.assign(s,l.defaultOptions)}),s}setMutationDefaults(n,o){this.#r.set(qn(n),{mutationKey:n,defaultOptions:o})}getMutationDefaults(n){const o=[...this.#r.values()],s={};return o.forEach(l=>{Co(n,l.mutationKey)&&Object.assign(s,l.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const o={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return o.queryHash||(o.queryHash=Va(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.queryFn===Qa&&(o.enabled=!1),o}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Mp=x.createContext(void 0),Lp=n=>{const o=x.useContext(Mp);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},py=({client:n,children:o})=>(x.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(Mp.Provider,{value:n,children:o})),Dp=x.createContext(!1),hy=()=>x.useContext(Dp);Dp.Provider;function my(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var gy=x.createContext(my()),vy=()=>x.useContext(gy),yy=(n,o,s)=>{const l=s?.state.error&&typeof n.throwOnError=="function"?Ka(n.throwOnError,[s.state.error,s]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(o.isReset()||(n.retryOnMount=!1))},xy=n=>{x.useEffect(()=>{n.clearReset()},[n])},wy=({result:n,errorResetBoundary:o,throwOnError:s,query:l,suspense:u})=>n.isError&&!o.isReset()&&!n.isFetching&&l&&(u&&n.data===void 0||Ka(s,[n.error,l])),by=n=>{if(n.suspense){const s=u=>u==="static"?u:Math.max(u??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...u)=>s(l(...u)):s(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Sy=(n,o)=>n.isLoading&&n.isFetching&&!o,Cy=(n,o)=>n?.suspense&&o.isPending,zf=(n,o,s)=>o.fetchOptimistic(n).catch(()=>{s.clearReset()});function ky(n,o,s){const l=hy(),u=vy(),f=Lp(),p=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(p);const h=f.getQueryCache().get(p.queryHash);p._optimisticResults=l?"isRestoring":"optimistic",by(p),yy(p,u,h),xy(u);const g=!f.getQueryCache().get(p.queryHash),[v]=x.useState(()=>new o(f,p)),y=v.getOptimisticResult(p),b=!l&&n.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(S=>{const R=b?v.subscribe(ze.batchCalls(S)):Je;return v.updateResult(),R},[v,b]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),x.useEffect(()=>{v.setOptions(p)},[p,v]),Cy(p,y))throw zf(p,v,u);if(wy({result:y,errorResetBoundary:u,throwOnError:p.throwOnError,query:h,suspense:p.suspense}))throw y.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(p,y),p.experimental_prefetchInRender&&!Kn&&Sy(y,l)&&(g?zf(p,v,u):h?.promise)?.catch(Je).finally(()=>{v.updateResult()}),p.notifyOnChangeProps?y:v.trackResult(y)}function St(n,o){return ky(n,oy)}function bt(n,o){const s=Lp(),[l]=x.useState(()=>new cy(s,n));x.useEffect(()=>{l.setOptions(n)},[l,n]);const u=x.useSyncExternalStore(x.useCallback(p=>l.subscribe(ze.batchCalls(p)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),f=x.useCallback((p,h)=>{l.mutate(p,h).catch(Je)},[l]);if(u.error&&Ka(l.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}const Ya="__PORT_5000__".startsWith("__")?"":"__PORT_5000__";async function Xa(n){if(!n.ok){const o=await n.text()||n.statusText;throw new Error(`${n.status}: ${o}`)}}async function Ey(n,o){const s=await fetch(`${Ya}${n}`,o);return await Xa(s),await s.json()}async function ct(n,o,s){const l=await fetch(`${Ya}${o}`,{method:n,headers:s?{"Content-Type":"application/json"}:{},body:s?JSON.stringify(s):void 0});return await Xa(l),l}const Ny=({on401:n})=>async({queryKey:o})=>{const s=await fetch(`${Ya}${o.join("/")}`);return await Xa(s),await s.json()},Ee=new fy({defaultOptions:{queries:{queryFn:Ny({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),Py=1,Ry=1e6;let pa=0;function jy(){return pa=(pa+1)%Number.MAX_SAFE_INTEGER,pa.toString()}const ha=new Map,$f=n=>{if(ha.has(n))return;const o=setTimeout(()=>{ha.delete(n),So({type:"REMOVE_TOAST",toastId:n})},Ry);ha.set(n,o)},Ty=(n,o)=>{switch(o.type){case"ADD_TOAST":return{...n,toasts:[o.toast,...n.toasts].slice(0,Py)};case"UPDATE_TOAST":return{...n,toasts:n.toasts.map(s=>s.id===o.toast.id?{...s,...o.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=o;return s?$f(s):n.toasts.forEach(l=>{$f(l.id)}),{...n,toasts:n.toasts.map(l=>l.id===s||s===void 0?{...l,open:!1}:l)}}case"REMOVE_TOAST":return o.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(s=>s.id!==o.toastId)}}},Bs=[];let Vs={toasts:[]};function So(n){Vs=Ty(Vs,n),Bs.forEach(o=>{o(Vs)})}function Zt({...n}){const o=jy(),s=u=>So({type:"UPDATE_TOAST",toast:{...u,id:o}}),l=()=>So({type:"DISMISS_TOAST",toastId:o});return So({type:"ADD_TOAST",toast:{...n,id:o,open:!0,onOpenChange:u=>{u||l()}}}),{id:o,dismiss:l,update:s}}function Oy(){const[n,o]=x.useState(Vs);return x.useEffect(()=>(Bs.push(o),()=>{const s=Bs.indexOf(o);s>-1&&Bs.splice(s,1)}),[n]),{...n,toast:Zt,dismiss:s=>So({type:"DISMISS_TOAST",toastId:s})}}var ti=hp();const _y=pp(ti);function Le(n,o,{checkForDefaultPrevented:s=!0}={}){return function(u){if(n?.(u),s===!1||!u.defaultPrevented)return o?.(u)}}function Uf(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function Za(...n){return o=>{let s=!1;const l=n.map(u=>{const f=Uf(u,o);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<l.length;u++){const f=l[u];typeof f=="function"?f():Uf(n[u],null)}}}}function Ct(...n){return x.useCallback(Za(...n),n)}function Po(n,o=[]){let s=[];function l(f,p){const h=x.createContext(p),g=s.length;s=[...s,p];const v=b=>{const{scope:S,children:R,...T}=b,k=S?.[n]?.[g]||h,N=x.useMemo(()=>T,Object.values(T));return d.jsx(k.Provider,{value:N,children:R})};v.displayName=f+"Provider";function y(b,S){const R=S?.[n]?.[g]||h,T=x.useContext(R);if(T)return T;if(p!==void 0)return p;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[v,y]}const u=()=>{const f=s.map(p=>x.createContext(p));return function(h){const g=h?.[n]||f;return x.useMemo(()=>({[`__scope${n}`]:{...h,[n]:g}}),[h,g])}};return u.scopeName=n,[l,Ay(u,...o)]}function Ay(...n){const o=n[0];if(n.length===1)return o;const s=()=>{const l=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const p=l.reduce((h,{useScope:g,scopeName:v})=>{const b=g(f)[`__scope${v}`];return{...h,...b}},{});return x.useMemo(()=>({[`__scope${o.scopeName}`]:p}),[p])}};return s.scopeName=o.scopeName,s}function Hf(n){const o=Iy(n),s=x.forwardRef((l,u)=>{const{children:f,...p}=l,h=x.Children.toArray(f),g=h.find(Ly);if(g){const v=g.props.children,y=h.map(b=>b===g?x.Children.count(v)>1?x.Children.only(null):x.isValidElement(v)?v.props.children:null:b);return d.jsx(o,{...p,ref:u,children:x.isValidElement(v)?x.cloneElement(v,void 0,y):null})}return d.jsx(o,{...p,ref:u,children:f})});return s.displayName=`${n}.Slot`,s}function Iy(n){const o=x.forwardRef((s,l)=>{const{children:u,...f}=s;if(x.isValidElement(u)){const p=Fy(u),h=Dy(f,u.props);return u.type!==x.Fragment&&(h.ref=l?Za(l,p):p),x.cloneElement(u,h)}return x.Children.count(u)>1?x.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var My=Symbol("radix.slottable");function Ly(n){return x.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===My}function Dy(n,o){const s={...o};for(const l in o){const u=n[l],f=o[l];/^on[A-Z]/.test(l)?u&&f?s[l]=(...h)=>{const g=f(...h);return u(...h),g}:u&&(s[l]=u):l==="style"?s[l]={...u,...f}:l==="className"&&(s[l]=[u,f].filter(Boolean).join(" "))}return{...n,...s}}function Fy(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function zy(n){const o=n+"CollectionProvider",[s,l]=Po(o),[u,f]=s(o,{collectionRef:{current:null},itemMap:new Map}),p=k=>{const{scope:N,children:j}=k,I=En.useRef(null),M=En.useRef(new Map).current;return d.jsx(u,{scope:N,itemMap:M,collectionRef:I,children:j})};p.displayName=o;const h=n+"CollectionSlot",g=Hf(h),v=En.forwardRef((k,N)=>{const{scope:j,children:I}=k,M=f(h,j),D=Ct(N,M.collectionRef);return d.jsx(g,{ref:D,children:I})});v.displayName=h;const y=n+"CollectionItemSlot",b="data-radix-collection-item",S=Hf(y),R=En.forwardRef((k,N)=>{const{scope:j,children:I,...M}=k,D=En.useRef(null),$=Ct(N,D),B=f(y,j);return En.useEffect(()=>(B.itemMap.set(D,{ref:D,...M}),()=>{B.itemMap.delete(D)})),d.jsx(S,{[b]:"",ref:$,children:I})});R.displayName=y;function T(k){const N=f(n+"CollectionConsumer",k);return En.useCallback(()=>{const I=N.collectionRef.current;if(!I)return[];const M=Array.from(I.querySelectorAll(`[${b}]`));return Array.from(N.itemMap.values()).sort((B,V)=>M.indexOf(B.ref.current)-M.indexOf(V.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:p,Slot:v,ItemSlot:R},T,l]}function $y(n){const o=Uy(n),s=x.forwardRef((l,u)=>{const{children:f,...p}=l,h=x.Children.toArray(f),g=h.find(Wy);if(g){const v=g.props.children,y=h.map(b=>b===g?x.Children.count(v)>1?x.Children.only(null):x.isValidElement(v)?v.props.children:null:b);return d.jsx(o,{...p,ref:u,children:x.isValidElement(v)?x.cloneElement(v,void 0,y):null})}return d.jsx(o,{...p,ref:u,children:f})});return s.displayName=`${n}.Slot`,s}function Uy(n){const o=x.forwardRef((s,l)=>{const{children:u,...f}=s;if(x.isValidElement(u)){const p=Vy(u),h=By(f,u.props);return u.type!==x.Fragment&&(h.ref=l?Za(l,p):p),x.cloneElement(u,h)}return x.Children.count(u)>1?x.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var Hy=Symbol("radix.slottable");function Wy(n){return x.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Hy}function By(n,o){const s={...o};for(const l in o){const u=n[l],f=o[l];/^on[A-Z]/.test(l)?u&&f?s[l]=(...h)=>{const g=f(...h);return u(...h),g}:u&&(s[l]=u):l==="style"?s[l]={...u,...f}:l==="className"&&(s[l]=[u,f].filter(Boolean).join(" "))}return{...n,...s}}function Vy(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Qy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ve=Qy.reduce((n,o)=>{const s=$y(`Primitive.${o}`),l=x.forwardRef((u,f)=>{const{asChild:p,...h}=u,g=p?s:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(g,{...h,ref:f})});return l.displayName=`Primitive.${o}`,{...n,[o]:l}},{});function Fp(n,o){n&&ti.flushSync(()=>n.dispatchEvent(o))}function Rn(n){const o=x.useRef(n);return x.useEffect(()=>{o.current=n}),x.useMemo(()=>(...s)=>o.current?.(...s),[])}function Ky(n,o=globalThis?.document){const s=Rn(n);x.useEffect(()=>{const l=u=>{u.key==="Escape"&&s(u)};return o.addEventListener("keydown",l,{capture:!0}),()=>o.removeEventListener("keydown",l,{capture:!0})},[s,o])}var qy="DismissableLayer",Ta="dismissableLayer.update",Gy="dismissableLayer.pointerDownOutside",Yy="dismissableLayer.focusOutside",Wf,zp=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ja=x.forwardRef((n,o)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:p,onDismiss:h,...g}=n,v=x.useContext(zp),[y,b]=x.useState(null),S=y?.ownerDocument??globalThis?.document,[,R]=x.useState({}),T=Ct(o,V=>b(V)),k=Array.from(v.layers),[N]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),j=k.indexOf(N),I=y?k.indexOf(y):-1,M=v.layersWithOutsidePointerEventsDisabled.size>0,D=I>=j,$=Zy(V=>{const ne=V.target,F=[...v.branches].some(re=>re.contains(ne));!D||F||(u?.(V),p?.(V),V.defaultPrevented||h?.())},S),B=Jy(V=>{const ne=V.target;[...v.branches].some(re=>re.contains(ne))||(f?.(V),p?.(V),V.defaultPrevented||h?.())},S);return Ky(V=>{I===v.layers.size-1&&(l?.(V),!V.defaultPrevented&&h&&(V.preventDefault(),h()))},S),x.useEffect(()=>{if(y)return s&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Wf=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(y)),v.layers.add(y),Bf(),()=>{s&&v.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=Wf)}},[y,S,s,v]),x.useEffect(()=>()=>{y&&(v.layers.delete(y),v.layersWithOutsidePointerEventsDisabled.delete(y),Bf())},[y,v]),x.useEffect(()=>{const V=()=>R({});return document.addEventListener(Ta,V),()=>document.removeEventListener(Ta,V)},[]),d.jsx(Ve.div,{...g,ref:T,style:{pointerEvents:M?D?"auto":"none":void 0,...n.style},onFocusCapture:Le(n.onFocusCapture,B.onFocusCapture),onBlurCapture:Le(n.onBlurCapture,B.onBlurCapture),onPointerDownCapture:Le(n.onPointerDownCapture,$.onPointerDownCapture)})});Ja.displayName=qy;var Xy="DismissableLayerBranch",$p=x.forwardRef((n,o)=>{const s=x.useContext(zp),l=x.useRef(null),u=Ct(o,l);return x.useEffect(()=>{const f=l.current;if(f)return s.branches.add(f),()=>{s.branches.delete(f)}},[s.branches]),d.jsx(Ve.div,{...n,ref:u})});$p.displayName=Xy;function Zy(n,o=globalThis?.document){const s=Rn(n),l=x.useRef(!1),u=x.useRef(()=>{});return x.useEffect(()=>{const f=h=>{if(h.target&&!l.current){let g=function(){Up(Gy,s,v,{discrete:!0})};const v={originalEvent:h};h.pointerType==="touch"?(o.removeEventListener("click",u.current),u.current=g,o.addEventListener("click",u.current,{once:!0})):g()}else o.removeEventListener("click",u.current);l.current=!1},p=window.setTimeout(()=>{o.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(p),o.removeEventListener("pointerdown",f),o.removeEventListener("click",u.current)}},[o,s]),{onPointerDownCapture:()=>l.current=!0}}function Jy(n,o=globalThis?.document){const s=Rn(n),l=x.useRef(!1);return x.useEffect(()=>{const u=f=>{f.target&&!l.current&&Up(Yy,s,{originalEvent:f},{discrete:!1})};return o.addEventListener("focusin",u),()=>o.removeEventListener("focusin",u)},[o,s]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Bf(){const n=new CustomEvent(Ta);document.dispatchEvent(n)}function Up(n,o,s,{discrete:l}){const u=s.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});o&&u.addEventListener(n,o,{once:!0}),l?Fp(u,f):u.dispatchEvent(f)}var ex=Ja,tx=$p,$t=globalThis?.document?x.useLayoutEffect:()=>{},nx="Portal",Hp=x.forwardRef((n,o)=>{const{container:s,...l}=n,[u,f]=x.useState(!1);$t(()=>f(!0),[]);const p=s||u&&globalThis?.document?.body;return p?_y.createPortal(d.jsx(Ve.div,{...l,ref:o}),p):null});Hp.displayName=nx;function rx(n,o){return x.useReducer((s,l)=>o[s][l]??s,n)}var ni=n=>{const{present:o,children:s}=n,l=ox(o),u=typeof s=="function"?s({present:l.isPresent}):x.Children.only(s),f=Ct(l.ref,sx(u));return typeof s=="function"||l.isPresent?x.cloneElement(u,{ref:f}):null};ni.displayName="Presence";function ox(n){const[o,s]=x.useState(),l=x.useRef(null),u=x.useRef(n),f=x.useRef("none"),p=n?"mounted":"unmounted",[h,g]=rx(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const v=Us(l.current);f.current=h==="mounted"?v:"none"},[h]),$t(()=>{const v=l.current,y=u.current;if(y!==n){const S=f.current,R=Us(v);n?g("MOUNT"):R==="none"||v?.display==="none"?g("UNMOUNT"):g(y&&S!==R?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,g]),$t(()=>{if(o){let v;const y=o.ownerDocument.defaultView??window,b=R=>{const k=Us(l.current).includes(CSS.escape(R.animationName));if(R.target===o&&k&&(g("ANIMATION_END"),!u.current)){const N=o.style.animationFillMode;o.style.animationFillMode="forwards",v=y.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=N)})}},S=R=>{R.target===o&&(f.current=Us(l.current))};return o.addEventListener("animationstart",S),o.addEventListener("animationcancel",b),o.addEventListener("animationend",b),()=>{y.clearTimeout(v),o.removeEventListener("animationstart",S),o.removeEventListener("animationcancel",b),o.removeEventListener("animationend",b)}}else g("ANIMATION_END")},[o,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:x.useCallback(v=>{l.current=v?getComputedStyle(v):null,s(v)},[])}}function Us(n){return n?.animationName||"none"}function sx(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var ix=Ua[" useInsertionEffect ".trim().toString()]||$t;function eu({prop:n,defaultProp:o,onChange:s=()=>{},caller:l}){const[u,f,p]=lx({defaultProp:o,onChange:s}),h=n!==void 0,g=h?n:u;{const y=x.useRef(n!==void 0);x.useEffect(()=>{const b=y.current;b!==h&&console.warn(`${l} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=h},[h,l])}const v=x.useCallback(y=>{if(h){const b=ax(y)?y(n):y;b!==n&&p.current?.(b)}else f(y)},[h,n,f,p]);return[g,v]}function lx({defaultProp:n,onChange:o}){const[s,l]=x.useState(n),u=x.useRef(s),f=x.useRef(o);return ix(()=>{f.current=o},[o]),x.useEffect(()=>{u.current!==s&&(f.current?.(s),u.current=s)},[s,u]),[s,l,f]}function ax(n){return typeof n=="function"}var ux=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),cx="VisuallyHidden",ri=x.forwardRef((n,o)=>d.jsx(Ve.span,{...n,ref:o,style:{...ux,...n.style}}));ri.displayName=cx;var dx=ri,tu="ToastProvider",[nu,fx,px]=zy("Toast"),[Wp]=Po("Toast",[px]),[hx,oi]=Wp(tu),Bp=n=>{const{__scopeToast:o,label:s="Notification",duration:l=5e3,swipeDirection:u="right",swipeThreshold:f=50,children:p}=n,[h,g]=x.useState(null),[v,y]=x.useState(0),b=x.useRef(!1),S=x.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${tu}\`. Expected non-empty \`string\`.`),d.jsx(nu.Provider,{scope:o,children:d.jsx(hx,{scope:o,label:s,duration:l,swipeDirection:u,swipeThreshold:f,toastCount:v,viewport:h,onViewportChange:g,onToastAdd:x.useCallback(()=>y(R=>R+1),[]),onToastRemove:x.useCallback(()=>y(R=>R-1),[]),isFocusedToastEscapeKeyDownRef:b,isClosePausedRef:S,children:p})})};Bp.displayName=tu;var Vp="ToastViewport",mx=["F8"],Oa="toast.viewportPause",_a="toast.viewportResume",Qp=x.forwardRef((n,o)=>{const{__scopeToast:s,hotkey:l=mx,label:u="Notifications ({hotkey})",...f}=n,p=oi(Vp,s),h=fx(s),g=x.useRef(null),v=x.useRef(null),y=x.useRef(null),b=x.useRef(null),S=Ct(o,b,p.onViewportChange),R=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=p.toastCount>0;x.useEffect(()=>{const N=j=>{l.length!==0&&l.every(M=>j[M]||j.code===M)&&b.current?.focus()};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[l]),x.useEffect(()=>{const N=g.current,j=b.current;if(T&&N&&j){const I=()=>{if(!p.isClosePausedRef.current){const B=new CustomEvent(Oa);j.dispatchEvent(B),p.isClosePausedRef.current=!0}},M=()=>{if(p.isClosePausedRef.current){const B=new CustomEvent(_a);j.dispatchEvent(B),p.isClosePausedRef.current=!1}},D=B=>{!N.contains(B.relatedTarget)&&M()},$=()=>{N.contains(document.activeElement)||M()};return N.addEventListener("focusin",I),N.addEventListener("focusout",D),N.addEventListener("pointermove",I),N.addEventListener("pointerleave",$),window.addEventListener("blur",I),window.addEventListener("focus",M),()=>{N.removeEventListener("focusin",I),N.removeEventListener("focusout",D),N.removeEventListener("pointermove",I),N.removeEventListener("pointerleave",$),window.removeEventListener("blur",I),window.removeEventListener("focus",M)}}},[T,p.isClosePausedRef]);const k=x.useCallback(({tabbingDirection:N})=>{const I=h().map(M=>{const D=M.ref.current,$=[D,...Rx(D)];return N==="forwards"?$:$.reverse()});return(N==="forwards"?I.reverse():I).flat()},[h]);return x.useEffect(()=>{const N=b.current;if(N){const j=I=>{const M=I.altKey||I.ctrlKey||I.metaKey;if(I.key==="Tab"&&!M){const $=document.activeElement,B=I.shiftKey;if(I.target===N&&B){v.current?.focus();return}const F=k({tabbingDirection:B?"backwards":"forwards"}),re=F.findIndex(pe=>pe===$);ma(F.slice(re+1))?I.preventDefault():B?v.current?.focus():y.current?.focus()}};return N.addEventListener("keydown",j),()=>N.removeEventListener("keydown",j)}},[h,k]),d.jsxs(tx,{ref:g,role:"region","aria-label":u.replace("{hotkey}",R),tabIndex:-1,style:{pointerEvents:T?void 0:"none"},children:[T&&d.jsx(Aa,{ref:v,onFocusFromOutsideViewport:()=>{const N=k({tabbingDirection:"forwards"});ma(N)}}),d.jsx(nu.Slot,{scope:s,children:d.jsx(Ve.ol,{tabIndex:-1,...f,ref:S})}),T&&d.jsx(Aa,{ref:y,onFocusFromOutsideViewport:()=>{const N=k({tabbingDirection:"backwards"});ma(N)}})]})});Qp.displayName=Vp;var Kp="ToastFocusProxy",Aa=x.forwardRef((n,o)=>{const{__scopeToast:s,onFocusFromOutsideViewport:l,...u}=n,f=oi(Kp,s);return d.jsx(ri,{tabIndex:0,...u,ref:o,style:{position:"fixed"},onFocus:p=>{const h=p.relatedTarget;!f.viewport?.contains(h)&&l()}})});Aa.displayName=Kp;var Ro="Toast",gx="toast.swipeStart",vx="toast.swipeMove",yx="toast.swipeCancel",xx="toast.swipeEnd",qp=x.forwardRef((n,o)=>{const{forceMount:s,open:l,defaultOpen:u,onOpenChange:f,...p}=n,[h,g]=eu({prop:l,defaultProp:u??!0,onChange:f,caller:Ro});return d.jsx(ni,{present:s||h,children:d.jsx(Sx,{open:h,...p,ref:o,onClose:()=>g(!1),onPause:Rn(n.onPause),onResume:Rn(n.onResume),onSwipeStart:Le(n.onSwipeStart,v=>{v.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Le(n.onSwipeMove,v=>{const{x:y,y:b}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","move"),v.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${y}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${b}px`)}),onSwipeCancel:Le(n.onSwipeCancel,v=>{v.currentTarget.setAttribute("data-swipe","cancel"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Le(n.onSwipeEnd,v=>{const{x:y,y:b}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","end"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${y}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${b}px`),g(!1)})})})});qp.displayName=Ro;var[wx,bx]=Wp(Ro,{onClose(){}}),Sx=x.forwardRef((n,o)=>{const{__scopeToast:s,type:l="foreground",duration:u,open:f,onClose:p,onEscapeKeyDown:h,onPause:g,onResume:v,onSwipeStart:y,onSwipeMove:b,onSwipeCancel:S,onSwipeEnd:R,...T}=n,k=oi(Ro,s),[N,j]=x.useState(null),I=Ct(o,G=>j(G)),M=x.useRef(null),D=x.useRef(null),$=u||k.duration,B=x.useRef(0),V=x.useRef($),ne=x.useRef(0),{onToastAdd:F,onToastRemove:re}=k,pe=Rn(()=>{N?.contains(document.activeElement)&&k.viewport?.focus(),p()}),ee=x.useCallback(G=>{!G||G===1/0||(window.clearTimeout(ne.current),B.current=new Date().getTime(),ne.current=window.setTimeout(pe,G))},[pe]);x.useEffect(()=>{const G=k.viewport;if(G){const me=()=>{ee(V.current),v?.()},le=()=>{const ie=new Date().getTime()-B.current;V.current=V.current-ie,window.clearTimeout(ne.current),g?.()};return G.addEventListener(Oa,le),G.addEventListener(_a,me),()=>{G.removeEventListener(Oa,le),G.removeEventListener(_a,me)}}},[k.viewport,$,g,v,ee]),x.useEffect(()=>{f&&!k.isClosePausedRef.current&&ee($)},[f,$,k.isClosePausedRef,ee]),x.useEffect(()=>(F(),()=>re()),[F,re]);const ce=x.useMemo(()=>N?th(N):null,[N]);return k.viewport?d.jsxs(d.Fragment,{children:[ce&&d.jsx(Cx,{__scopeToast:s,role:"status","aria-live":l==="foreground"?"assertive":"polite",children:ce}),d.jsx(wx,{scope:s,onClose:pe,children:ti.createPortal(d.jsx(nu.ItemSlot,{scope:s,children:d.jsx(ex,{asChild:!0,onEscapeKeyDown:Le(h,()=>{k.isFocusedToastEscapeKeyDownRef.current||pe(),k.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(Ve.li,{tabIndex:0,"data-state":f?"open":"closed","data-swipe-direction":k.swipeDirection,...T,ref:I,style:{userSelect:"none",touchAction:"none",...n.style},onKeyDown:Le(n.onKeyDown,G=>{G.key==="Escape"&&(h?.(G.nativeEvent),G.nativeEvent.defaultPrevented||(k.isFocusedToastEscapeKeyDownRef.current=!0,pe()))}),onPointerDown:Le(n.onPointerDown,G=>{G.button===0&&(M.current={x:G.clientX,y:G.clientY})}),onPointerMove:Le(n.onPointerMove,G=>{if(!M.current)return;const me=G.clientX-M.current.x,le=G.clientY-M.current.y,ie=!!D.current,L=["left","right"].includes(k.swipeDirection),q=["left","up"].includes(k.swipeDirection)?Math.min:Math.max,K=L?q(0,me):0,P=L?0:q(0,le),z=G.pointerType==="touch"?10:2,ue={x:K,y:P},de={originalEvent:G,delta:ue};ie?(D.current=ue,Hs(vx,b,de,{discrete:!1})):Vf(ue,k.swipeDirection,z)?(D.current=ue,Hs(gx,y,de,{discrete:!1}),G.target.setPointerCapture(G.pointerId)):(Math.abs(me)>z||Math.abs(le)>z)&&(M.current=null)}),onPointerUp:Le(n.onPointerUp,G=>{const me=D.current,le=G.target;if(le.hasPointerCapture(G.pointerId)&&le.releasePointerCapture(G.pointerId),D.current=null,M.current=null,me){const ie=G.currentTarget,L={originalEvent:G,delta:me};Vf(me,k.swipeDirection,k.swipeThreshold)?Hs(xx,R,L,{discrete:!0}):Hs(yx,S,L,{discrete:!0}),ie.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})})}),k.viewport)})]}):null}),Cx=n=>{const{__scopeToast:o,children:s,...l}=n,u=oi(Ro,o),[f,p]=x.useState(!1),[h,g]=x.useState(!1);return Nx(()=>p(!0)),x.useEffect(()=>{const v=window.setTimeout(()=>g(!0),1e3);return()=>window.clearTimeout(v)},[]),h?null:d.jsx(Hp,{asChild:!0,children:d.jsx(ri,{...l,children:f&&d.jsxs(d.Fragment,{children:[u.label," ",s]})})})},kx="ToastTitle",Gp=x.forwardRef((n,o)=>{const{__scopeToast:s,...l}=n;return d.jsx(Ve.div,{...l,ref:o})});Gp.displayName=kx;var Ex="ToastDescription",Yp=x.forwardRef((n,o)=>{const{__scopeToast:s,...l}=n;return d.jsx(Ve.div,{...l,ref:o})});Yp.displayName=Ex;var Xp="ToastAction",Zp=x.forwardRef((n,o)=>{const{altText:s,...l}=n;return s.trim()?d.jsx(eh,{altText:s,asChild:!0,children:d.jsx(ru,{...l,ref:o})}):(console.error(`Invalid prop \`altText\` supplied to \`${Xp}\`. Expected non-empty \`string\`.`),null)});Zp.displayName=Xp;var Jp="ToastClose",ru=x.forwardRef((n,o)=>{const{__scopeToast:s,...l}=n,u=bx(Jp,s);return d.jsx(eh,{asChild:!0,children:d.jsx(Ve.button,{type:"button",...l,ref:o,onClick:Le(n.onClick,u.onClose)})})});ru.displayName=Jp;var eh=x.forwardRef((n,o)=>{const{__scopeToast:s,altText:l,...u}=n;return d.jsx(Ve.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":l||void 0,...u,ref:o})});function th(n){const o=[];return Array.from(n.childNodes).forEach(l=>{if(l.nodeType===l.TEXT_NODE&&l.textContent&&o.push(l.textContent),Px(l)){const u=l.ariaHidden||l.hidden||l.style.display==="none",f=l.dataset.radixToastAnnounceExclude==="";if(!u)if(f){const p=l.dataset.radixToastAnnounceAlt;p&&o.push(p)}else o.push(...th(l))}}),o}function Hs(n,o,s,{discrete:l}){const u=s.originalEvent.currentTarget,f=new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:s});o&&u.addEventListener(n,o,{once:!0}),l?Fp(u,f):u.dispatchEvent(f)}var Vf=(n,o,s=0)=>{const l=Math.abs(n.x),u=Math.abs(n.y),f=l>u;return o==="left"||o==="right"?f&&l>s:!f&&u>s};function Nx(n=()=>{}){const o=Rn(n);$t(()=>{let s=0,l=0;return s=window.requestAnimationFrame(()=>l=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(l)}},[o])}function Px(n){return n.nodeType===n.ELEMENT_NODE}function Rx(n){const o=[],s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const u=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||u?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)o.push(s.currentNode);return o}function ma(n){const o=document.activeElement;return n.some(s=>s===o?!0:(s.focus(),document.activeElement!==o))}var jx=Bp,nh=Qp,rh=qp,oh=Gp,sh=Yp,ih=Zp,lh=ru;function ah(n){var o,s,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(o=0;o<u;o++)n[o]&&(s=ah(n[o]))&&(l&&(l+=" "),l+=s)}else for(s in n)n[s]&&(l&&(l+=" "),l+=s);return l}function uh(){for(var n,o,s=0,l="",u=arguments.length;s<u;s++)(n=arguments[s])&&(o=ah(n))&&(l&&(l+=" "),l+=o);return l}const Qf=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Kf=uh,Tx=(n,o)=>s=>{var l;if(o?.variants==null)return Kf(n,s?.class,s?.className);const{variants:u,defaultVariants:f}=o,p=Object.keys(u).map(v=>{const y=s?.[v],b=f?.[v];if(y===null)return null;const S=Qf(y)||Qf(b);return u[v][S]}),h=s&&Object.entries(s).reduce((v,y)=>{let[b,S]=y;return S===void 0||(v[b]=S),v},{}),g=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((v,y)=>{let{class:b,className:S,...R}=y;return Object.entries(R).every(T=>{let[k,N]=T;return Array.isArray(N)?N.includes({...f,...h}[k]):{...f,...h}[k]===N})?[...v,b,S]:v},[]);return Kf(n,p,g,s?.class,s?.className)};const Ox=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ch=(...n)=>n.filter((o,s,l)=>!!o&&l.indexOf(o)===s).join(" ");var _x={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ax=x.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:u="",children:f,iconNode:p,...h},g)=>x.createElement("svg",{ref:g,..._x,width:o,height:o,stroke:n,strokeWidth:l?Number(s)*24/Number(o):s,className:ch("lucide",u),...h},[...p.map(([v,y])=>x.createElement(v,y)),...Array.isArray(f)?f:[f]]));const dh=(n,o)=>{const s=x.forwardRef(({className:l,...u},f)=>x.createElement(Ax,{ref:f,iconNode:o,className:ch(`lucide-${Ox(n)}`,l),...u}));return s.displayName=`${n}`,s};const Ix=dh("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const Mx=dh("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ou="-",Lx=n=>{const o=Fx(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:p=>{const h=p.split(ou);return h[0]===""&&h.length!==1&&h.shift(),fh(h,o)||Dx(p)},getConflictingClassGroupIds:(p,h)=>{const g=s[p]||[];return h&&l[p]?[...g,...l[p]]:g}}},fh=(n,o)=>{if(n.length===0)return o.classGroupId;const s=n[0],l=o.nextPart.get(s),u=l?fh(n.slice(1),l):void 0;if(u)return u;if(o.validators.length===0)return;const f=n.join(ou);return o.validators.find(({validator:p})=>p(f))?.classGroupId},qf=/^\[(.+)\]$/,Dx=n=>{if(qf.test(n)){const o=qf.exec(n)[1],s=o?.substring(0,o.indexOf(":"));if(s)return"arbitrary.."+s}},Fx=n=>{const{theme:o,prefix:s}=n,l={nextPart:new Map,validators:[]};return $x(Object.entries(n.classGroups),s).forEach(([f,p])=>{Ia(p,l,f,o)}),l},Ia=(n,o,s,l)=>{n.forEach(u=>{if(typeof u=="string"){const f=u===""?o:Gf(o,u);f.classGroupId=s;return}if(typeof u=="function"){if(zx(u)){Ia(u(l),o,s,l);return}o.validators.push({validator:u,classGroupId:s});return}Object.entries(u).forEach(([f,p])=>{Ia(p,Gf(o,f),s,l)})})},Gf=(n,o)=>{let s=n;return o.split(ou).forEach(l=>{s.nextPart.has(l)||s.nextPart.set(l,{nextPart:new Map,validators:[]}),s=s.nextPart.get(l)}),s},zx=n=>n.isThemeGetter,$x=(n,o)=>o?n.map(([s,l])=>{const u=l.map(f=>typeof f=="string"?o+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([p,h])=>[o+p,h])):f);return[s,u]}):n,Ux=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,s=new Map,l=new Map;const u=(f,p)=>{s.set(f,p),o++,o>n&&(o=0,l=s,s=new Map)};return{get(f){let p=s.get(f);if(p!==void 0)return p;if((p=l.get(f))!==void 0)return u(f,p),p},set(f,p){s.has(f)?s.set(f,p):u(f,p)}}},ph="!",Hx=n=>{const{separator:o,experimentalParseClassName:s}=n,l=o.length===1,u=o[0],f=o.length,p=h=>{const g=[];let v=0,y=0,b;for(let N=0;N<h.length;N++){let j=h[N];if(v===0){if(j===u&&(l||h.slice(N,N+f)===o)){g.push(h.slice(y,N)),y=N+f;continue}if(j==="/"){b=N;continue}}j==="["?v++:j==="]"&&v--}const S=g.length===0?h:h.substring(y),R=S.startsWith(ph),T=R?S.substring(1):S,k=b&&b>y?b-y:void 0;return{modifiers:g,hasImportantModifier:R,baseClassName:T,maybePostfixModifierPosition:k}};return s?h=>s({className:h,parseClassName:p}):p},Wx=n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(l=>{l[0]==="["?(o.push(...s.sort(),l),s=[]):s.push(l)}),o.push(...s.sort()),o},Bx=n=>({cache:Ux(n.cacheSize),parseClassName:Hx(n),...Lx(n)}),Vx=/\s+/,Qx=(n,o)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:u}=o,f=[],p=n.trim().split(Vx);let h="";for(let g=p.length-1;g>=0;g-=1){const v=p[g],{modifiers:y,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:R}=s(v);let T=!!R,k=l(T?S.substring(0,R):S);if(!k){if(!T){h=v+(h.length>0?" "+h:h);continue}if(k=l(S),!k){h=v+(h.length>0?" "+h:h);continue}T=!1}const N=Wx(y).join(":"),j=b?N+ph:N,I=j+k;if(f.includes(I))continue;f.push(I);const M=u(k,T);for(let D=0;D<M.length;++D){const $=M[D];f.push(j+$)}h=v+(h.length>0?" "+h:h)}return h};function Kx(){let n=0,o,s,l="";for(;n<arguments.length;)(o=arguments[n++])&&(s=hh(o))&&(l&&(l+=" "),l+=s);return l}const hh=n=>{if(typeof n=="string")return n;let o,s="";for(let l=0;l<n.length;l++)n[l]&&(o=hh(n[l]))&&(s&&(s+=" "),s+=o);return s};function qx(n,...o){let s,l,u,f=p;function p(g){const v=o.reduce((y,b)=>b(y),n());return s=Bx(v),l=s.cache.get,u=s.cache.set,f=h,h(g)}function h(g){const v=l(g);if(v)return v;const y=Qx(g,s);return u(g,y),y}return function(){return f(Kx.apply(null,arguments))}}const Re=n=>{const o=s=>s[n]||[];return o.isThemeGetter=!0,o},mh=/^\[(?:([a-z-]+):)?(.+)\]$/i,Gx=/^\d+\/\d+$/,Yx=new Set(["px","full","screen"]),Xx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Jx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ew=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=n=>Sr(n)||Yx.has(n)||Gx.test(n),Sn=n=>Rr(n,"length",uw),Sr=n=>!!n&&!Number.isNaN(Number(n)),ga=n=>Rr(n,"number",Sr),xo=n=>!!n&&Number.isInteger(Number(n)),nw=n=>n.endsWith("%")&&Sr(n.slice(0,-1)),fe=n=>mh.test(n),Cn=n=>Xx.test(n),rw=new Set(["length","size","percentage"]),ow=n=>Rr(n,rw,gh),sw=n=>Rr(n,"position",gh),iw=new Set(["image","url"]),lw=n=>Rr(n,iw,dw),aw=n=>Rr(n,"",cw),wo=()=>!0,Rr=(n,o,s)=>{const l=mh.exec(n);return l?l[1]?typeof o=="string"?l[1]===o:o.has(l[1]):s(l[2]):!1},uw=n=>Zx.test(n)&&!Jx.test(n),gh=()=>!1,cw=n=>ew.test(n),dw=n=>tw.test(n),fw=()=>{const n=Re("colors"),o=Re("spacing"),s=Re("blur"),l=Re("brightness"),u=Re("borderColor"),f=Re("borderRadius"),p=Re("borderSpacing"),h=Re("borderWidth"),g=Re("contrast"),v=Re("grayscale"),y=Re("hueRotate"),b=Re("invert"),S=Re("gap"),R=Re("gradientColorStops"),T=Re("gradientColorStopPositions"),k=Re("inset"),N=Re("margin"),j=Re("opacity"),I=Re("padding"),M=Re("saturate"),D=Re("scale"),$=Re("sepia"),B=Re("skew"),V=Re("space"),ne=Re("translate"),F=()=>["auto","contain","none"],re=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",fe,o],ee=()=>[fe,o],ce=()=>["",Xt,Sn],G=()=>["auto",Sr,fe],me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",fe],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[Sr,fe];return{cacheSize:500,separator:":",theme:{colors:[wo],spacing:[Xt,Sn],blur:["none","",Cn,fe],brightness:P(),borderColor:[n],borderRadius:["none","","full",Cn,fe],borderSpacing:ee(),borderWidth:ce(),contrast:P(),grayscale:q(),hueRotate:P(),invert:q(),gap:ee(),gradientColorStops:[n],gradientColorStopPositions:[nw,Sn],inset:pe(),margin:pe(),opacity:P(),padding:ee(),saturate:P(),scale:P(),sepia:q(),skew:P(),space:ee(),translate:ee()},classGroups:{aspect:[{aspect:["auto","square","video",fe]}],container:["container"],columns:[{columns:[Cn]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...me(),fe]}],overflow:[{overflow:re()}],"overflow-x":[{"overflow-x":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xo,fe]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fe]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",xo,fe]}],"grid-cols":[{"grid-cols":[wo]}],"col-start-end":[{col:["auto",{span:["full",xo,fe]},fe]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[wo]}],"row-start-end":[{row:["auto",{span:[xo,fe]},fe]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fe]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",fe,o]}],"min-w":[{"min-w":[fe,o,"min","max","fit"]}],"max-w":[{"max-w":[fe,o,"none","full","min","max","fit","prose",{screen:[Cn]},Cn]}],h:[{h:[fe,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[fe,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[fe,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[fe,o,"auto","min","max","fit"]}],"font-size":[{text:["base",Cn,Sn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ga]}],"font-family":[{font:[wo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",fe]}],"line-clamp":[{"line-clamp":["none",Sr,ga]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xt,fe]}],"list-image":[{"list-image":["none",fe]}],"list-style-type":[{list:["none","disc","decimal",fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xt,Sn]}],"underline-offset":[{"underline-offset":["auto",Xt,fe]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...me(),sw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ow]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lw]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[T]}],"gradient-via-pos":[{via:[T]}],"gradient-to-pos":[{to:[T]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:le()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[Xt,fe]}],"outline-w":[{outline:[Xt,Sn]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[Xt,Sn]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Cn,aw]}],"shadow-color":[{shadow:[wo]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[l]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",Cn,fe]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[b]}],saturate:[{saturate:[M]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[p]}],"border-spacing-x":[{"border-spacing-x":[p]}],"border-spacing-y":[{"border-spacing-y":[p]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",fe]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",fe]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[xo,fe]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[B]}],"skew-y":[{"skew-y":[B]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",fe]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fe]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[Xt,Sn,ga]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},pw=qx(fw);function pt(...n){return pw(uh(n))}const hw=jx,vh=x.forwardRef(({className:n,...o},s)=>d.jsx(nh,{ref:s,className:pt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",n),...o}));vh.displayName=nh.displayName;const mw=Tx("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),yh=x.forwardRef(({className:n,variant:o,...s},l)=>d.jsx(rh,{ref:l,className:pt(mw({variant:o}),n),...s}));yh.displayName=rh.displayName;const gw=x.forwardRef(({className:n,...o},s)=>d.jsx(ih,{ref:s,className:pt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n),...o}));gw.displayName=ih.displayName;const xh=x.forwardRef(({className:n,...o},s)=>d.jsx(lh,{ref:s,className:pt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",n),"toast-close":"",...o,children:d.jsx(Mx,{className:"h-4 w-4"})}));xh.displayName=lh.displayName;const wh=x.forwardRef(({className:n,...o},s)=>d.jsx(oh,{ref:s,className:pt("text-sm font-semibold",n),...o}));wh.displayName=oh.displayName;const bh=x.forwardRef(({className:n,...o},s)=>d.jsx(sh,{ref:s,className:pt("text-sm opacity-90",n),...o}));bh.displayName=sh.displayName;function vw(){const{toasts:n}=Oy();return d.jsxs(hw,{children:[n.map(function({id:o,title:s,description:l,action:u,...f}){return d.jsxs(yh,{...f,children:[d.jsxs("div",{className:"grid gap-1",children:[s&&d.jsx(wh,{children:s}),l&&d.jsx(bh,{children:l})]}),u,d.jsx(xh,{})]},o)}),d.jsx(vh,{})]})}var yw=Ua[" useId ".trim().toString()]||(()=>{}),xw=0;function Sh(n){const[o,s]=x.useState(yw());return $t(()=>{s(l=>l??String(xw++))},[n]),o?`radix-${o}`:""}const ww=["top","right","bottom","left"],jn=Math.min,dt=Math.max,Gs=Math.round,Ws=Math.floor,zt=n=>({x:n,y:n}),bw={left:"right",right:"left",bottom:"top",top:"bottom"};function Ma(n,o,s){return dt(n,jn(o,s))}function Jt(n,o){return typeof n=="function"?n(o):n}function en(n){return n.split("-")[0]}function jr(n){return n.split("-")[1]}function su(n){return n==="x"?"y":"x"}function iu(n){return n==="y"?"height":"width"}function Ft(n){const o=n[0];return o==="t"||o==="b"?"y":"x"}function lu(n){return su(Ft(n))}function Sw(n,o,s){s===void 0&&(s=!1);const l=jr(n),u=lu(n),f=iu(u);let p=u==="x"?l===(s?"end":"start")?"right":"left":l==="start"?"bottom":"top";return o.reference[f]>o.floating[f]&&(p=Ys(p)),[p,Ys(p)]}function Cw(n){const o=Ys(n);return[La(n),o,La(o)]}function La(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Yf=["left","right"],Xf=["right","left"],kw=["top","bottom"],Ew=["bottom","top"];function Nw(n,o,s){switch(n){case"top":case"bottom":return s?o?Xf:Yf:o?Yf:Xf;case"left":case"right":return o?kw:Ew;default:return[]}}function Pw(n,o,s,l){const u=jr(n);let f=Nw(en(n),s==="start",l);return u&&(f=f.map(p=>p+"-"+u),o&&(f=f.concat(f.map(La)))),f}function Ys(n){const o=en(n);return bw[o]+n.slice(o.length)}function Rw(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ch(n){return typeof n!="number"?Rw(n):{top:n,right:n,bottom:n,left:n}}function Xs(n){const{x:o,y:s,width:l,height:u}=n;return{width:l,height:u,top:s,left:o,right:o+l,bottom:s+u,x:o,y:s}}function Zf(n,o,s){let{reference:l,floating:u}=n;const f=Ft(o),p=lu(o),h=iu(p),g=en(o),v=f==="y",y=l.x+l.width/2-u.width/2,b=l.y+l.height/2-u.height/2,S=l[h]/2-u[h]/2;let R;switch(g){case"top":R={x:y,y:l.y-u.height};break;case"bottom":R={x:y,y:l.y+l.height};break;case"right":R={x:l.x+l.width,y:b};break;case"left":R={x:l.x-u.width,y:b};break;default:R={x:l.x,y:l.y}}switch(jr(o)){case"start":R[p]-=S*(s&&v?-1:1);break;case"end":R[p]+=S*(s&&v?-1:1);break}return R}async function jw(n,o){var s;o===void 0&&(o={});const{x:l,y:u,platform:f,rects:p,elements:h,strategy:g}=n,{boundary:v="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:S=!1,padding:R=0}=Jt(o,n),T=Ch(R),N=h[S?b==="floating"?"reference":"floating":b],j=Xs(await f.getClippingRect({element:(s=await(f.isElement==null?void 0:f.isElement(N)))==null||s?N:N.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(h.floating)),boundary:v,rootBoundary:y,strategy:g})),I=b==="floating"?{x:l,y:u,width:p.floating.width,height:p.floating.height}:p.reference,M=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h.floating)),D=await(f.isElement==null?void 0:f.isElement(M))?await(f.getScale==null?void 0:f.getScale(M))||{x:1,y:1}:{x:1,y:1},$=Xs(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:I,offsetParent:M,strategy:g}):I);return{top:(j.top-$.top+T.top)/D.y,bottom:($.bottom-j.bottom+T.bottom)/D.y,left:(j.left-$.left+T.left)/D.x,right:($.right-j.right+T.right)/D.x}}const Tw=50,Ow=async(n,o,s)=>{const{placement:l="bottom",strategy:u="absolute",middleware:f=[],platform:p}=s,h=p.detectOverflow?p:{...p,detectOverflow:jw},g=await(p.isRTL==null?void 0:p.isRTL(o));let v=await p.getElementRects({reference:n,floating:o,strategy:u}),{x:y,y:b}=Zf(v,l,g),S=l,R=0;const T={};for(let k=0;k<f.length;k++){const N=f[k];if(!N)continue;const{name:j,fn:I}=N,{x:M,y:D,data:$,reset:B}=await I({x:y,y:b,initialPlacement:l,placement:S,strategy:u,middlewareData:T,rects:v,platform:h,elements:{reference:n,floating:o}});y=M??y,b=D??b,T[j]={...T[j],...$},B&&R<Tw&&(R++,typeof B=="object"&&(B.placement&&(S=B.placement),B.rects&&(v=B.rects===!0?await p.getElementRects({reference:n,floating:o,strategy:u}):B.rects),{x:y,y:b}=Zf(v,S,g)),k=-1)}return{x:y,y:b,placement:S,strategy:u,middlewareData:T}},_w=n=>({name:"arrow",options:n,async fn(o){const{x:s,y:l,placement:u,rects:f,platform:p,elements:h,middlewareData:g}=o,{element:v,padding:y=0}=Jt(n,o)||{};if(v==null)return{};const b=Ch(y),S={x:s,y:l},R=lu(u),T=iu(R),k=await p.getDimensions(v),N=R==="y",j=N?"top":"left",I=N?"bottom":"right",M=N?"clientHeight":"clientWidth",D=f.reference[T]+f.reference[R]-S[R]-f.floating[T],$=S[R]-f.reference[R],B=await(p.getOffsetParent==null?void 0:p.getOffsetParent(v));let V=B?B[M]:0;(!V||!await(p.isElement==null?void 0:p.isElement(B)))&&(V=h.floating[M]||f.floating[T]);const ne=D/2-$/2,F=V/2-k[T]/2-1,re=jn(b[j],F),pe=jn(b[I],F),ee=re,ce=V-k[T]-pe,G=V/2-k[T]/2+ne,me=Ma(ee,G,ce),le=!g.arrow&&jr(u)!=null&&G!==me&&f.reference[T]/2-(G<ee?re:pe)-k[T]/2<0,ie=le?G<ee?G-ee:G-ce:0;return{[R]:S[R]+ie,data:{[R]:me,centerOffset:G-me-ie,...le&&{alignmentOffset:ie}},reset:le}}}),Aw=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var s,l;const{placement:u,middlewareData:f,rects:p,initialPlacement:h,platform:g,elements:v}=o,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:k=!0,...N}=Jt(n,o);if((s=f.arrow)!=null&&s.alignmentOffset)return{};const j=en(u),I=Ft(h),M=en(h)===h,D=await(g.isRTL==null?void 0:g.isRTL(v.floating)),$=S||(M||!k?[Ys(h)]:Cw(h)),B=T!=="none";!S&&B&&$.push(...Pw(h,k,T,D));const V=[h,...$],ne=await g.detectOverflow(o,N),F=[];let re=((l=f.flip)==null?void 0:l.overflows)||[];if(y&&F.push(ne[j]),b){const G=Sw(u,p,D);F.push(ne[G[0]],ne[G[1]])}if(re=[...re,{placement:u,overflows:F}],!F.every(G=>G<=0)){var pe,ee;const G=(((pe=f.flip)==null?void 0:pe.index)||0)+1,me=V[G];if(me&&(!(b==="alignment"?I!==Ft(me):!1)||re.every(L=>Ft(L.placement)===I?L.overflows[0]>0:!0)))return{data:{index:G,overflows:re},reset:{placement:me}};let le=(ee=re.filter(ie=>ie.overflows[0]<=0).sort((ie,L)=>ie.overflows[1]-L.overflows[1])[0])==null?void 0:ee.placement;if(!le)switch(R){case"bestFit":{var ce;const ie=(ce=re.filter(L=>{if(B){const q=Ft(L.placement);return q===I||q==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(q=>q>0).reduce((q,K)=>q+K,0)]).sort((L,q)=>L[1]-q[1])[0])==null?void 0:ce[0];ie&&(le=ie);break}case"initialPlacement":le=h;break}if(u!==le)return{reset:{placement:le}}}return{}}}};function Jf(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function ep(n){return ww.some(o=>n[o]>=0)}const Iw=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:s,platform:l}=o,{strategy:u="referenceHidden",...f}=Jt(n,o);switch(u){case"referenceHidden":{const p=await l.detectOverflow(o,{...f,elementContext:"reference"}),h=Jf(p,s.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:ep(h)}}}case"escaped":{const p=await l.detectOverflow(o,{...f,altBoundary:!0}),h=Jf(p,s.floating);return{data:{escapedOffsets:h,escaped:ep(h)}}}default:return{}}}}},kh=new Set(["left","top"]);async function Mw(n,o){const{placement:s,platform:l,elements:u}=n,f=await(l.isRTL==null?void 0:l.isRTL(u.floating)),p=en(s),h=jr(s),g=Ft(s)==="y",v=kh.has(p)?-1:1,y=f&&g?-1:1,b=Jt(o,n);let{mainAxis:S,crossAxis:R,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof T=="number"&&(R=h==="end"?T*-1:T),g?{x:R*y,y:S*v}:{x:S*v,y:R*y}}const Lw=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var s,l;const{x:u,y:f,placement:p,middlewareData:h}=o,g=await Mw(o,n);return p===((s=h.offset)==null?void 0:s.placement)&&(l=h.arrow)!=null&&l.alignmentOffset?{}:{x:u+g.x,y:f+g.y,data:{...g,placement:p}}}}},Dw=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){const{x:s,y:l,placement:u,platform:f}=o,{mainAxis:p=!0,crossAxis:h=!1,limiter:g={fn:j=>{let{x:I,y:M}=j;return{x:I,y:M}}},...v}=Jt(n,o),y={x:s,y:l},b=await f.detectOverflow(o,v),S=Ft(en(u)),R=su(S);let T=y[R],k=y[S];if(p){const j=R==="y"?"top":"left",I=R==="y"?"bottom":"right",M=T+b[j],D=T-b[I];T=Ma(M,T,D)}if(h){const j=S==="y"?"top":"left",I=S==="y"?"bottom":"right",M=k+b[j],D=k-b[I];k=Ma(M,k,D)}const N=g.fn({...o,[R]:T,[S]:k});return{...N,data:{x:N.x-s,y:N.y-l,enabled:{[R]:p,[S]:h}}}}}},Fw=function(n){return n===void 0&&(n={}),{options:n,fn(o){const{x:s,y:l,placement:u,rects:f,middlewareData:p}=o,{offset:h=0,mainAxis:g=!0,crossAxis:v=!0}=Jt(n,o),y={x:s,y:l},b=Ft(u),S=su(b);let R=y[S],T=y[b];const k=Jt(h,o),N=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(g){const M=S==="y"?"height":"width",D=f.reference[S]-f.floating[M]+N.mainAxis,$=f.reference[S]+f.reference[M]-N.mainAxis;R<D?R=D:R>$&&(R=$)}if(v){var j,I;const M=S==="y"?"width":"height",D=kh.has(en(u)),$=f.reference[b]-f.floating[M]+(D&&((j=p.offset)==null?void 0:j[b])||0)+(D?0:N.crossAxis),B=f.reference[b]+f.reference[M]+(D?0:((I=p.offset)==null?void 0:I[b])||0)-(D?N.crossAxis:0);T<$?T=$:T>B&&(T=B)}return{[S]:R,[b]:T}}}},zw=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var s,l;const{placement:u,rects:f,platform:p,elements:h}=o,{apply:g=()=>{},...v}=Jt(n,o),y=await p.detectOverflow(o,v),b=en(u),S=jr(u),R=Ft(u)==="y",{width:T,height:k}=f.floating;let N,j;b==="top"||b==="bottom"?(N=b,j=S===(await(p.isRTL==null?void 0:p.isRTL(h.floating))?"start":"end")?"left":"right"):(j=b,N=S==="end"?"top":"bottom");const I=k-y.top-y.bottom,M=T-y.left-y.right,D=jn(k-y[N],I),$=jn(T-y[j],M),B=!o.middlewareData.shift;let V=D,ne=$;if((s=o.middlewareData.shift)!=null&&s.enabled.x&&(ne=M),(l=o.middlewareData.shift)!=null&&l.enabled.y&&(V=I),B&&!S){const re=dt(y.left,0),pe=dt(y.right,0),ee=dt(y.top,0),ce=dt(y.bottom,0);R?ne=T-2*(re!==0||pe!==0?re+pe:dt(y.left,y.right)):V=k-2*(ee!==0||ce!==0?ee+ce:dt(y.top,y.bottom))}await g({...o,availableWidth:ne,availableHeight:V});const F=await p.getDimensions(h.floating);return T!==F.width||k!==F.height?{reset:{rects:!0}}:{}}}};function si(){return typeof window<"u"}function Tr(n){return Eh(n)?(n.nodeName||"").toLowerCase():"#document"}function ft(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Ut(n){var o;return(o=(Eh(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Eh(n){return si()?n instanceof Node||n instanceof ft(n).Node:!1}function Ot(n){return si()?n instanceof Element||n instanceof ft(n).Element:!1}function tn(n){return si()?n instanceof HTMLElement||n instanceof ft(n).HTMLElement:!1}function tp(n){return!si()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ft(n).ShadowRoot}function jo(n){const{overflow:o,overflowX:s,overflowY:l,display:u}=_t(n);return/auto|scroll|overlay|hidden|clip/.test(o+l+s)&&u!=="inline"&&u!=="contents"}function $w(n){return/^(table|td|th)$/.test(Tr(n))}function ii(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const Uw=/transform|translate|scale|rotate|perspective|filter/,Hw=/paint|layout|strict|content/,Bn=n=>!!n&&n!=="none";let va;function au(n){const o=Ot(n)?_t(n):n;return Bn(o.transform)||Bn(o.translate)||Bn(o.scale)||Bn(o.rotate)||Bn(o.perspective)||!uu()&&(Bn(o.backdropFilter)||Bn(o.filter))||Uw.test(o.willChange||"")||Hw.test(o.contain||"")}function Ww(n){let o=Tn(n);for(;tn(o)&&!kr(o);){if(au(o))return o;if(ii(o))return null;o=Tn(o)}return null}function uu(){return va==null&&(va=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),va}function kr(n){return/^(html|body|#document)$/.test(Tr(n))}function _t(n){return ft(n).getComputedStyle(n)}function li(n){return Ot(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Tn(n){if(Tr(n)==="html")return n;const o=n.assignedSlot||n.parentNode||tp(n)&&n.host||Ut(n);return tp(o)?o.host:o}function Nh(n){const o=Tn(n);return kr(o)?n.ownerDocument?n.ownerDocument.body:n.body:tn(o)&&jo(o)?o:Nh(o)}function ko(n,o,s){var l;o===void 0&&(o=[]),s===void 0&&(s=!0);const u=Nh(n),f=u===((l=n.ownerDocument)==null?void 0:l.body),p=ft(u);if(f){const h=Da(p);return o.concat(p,p.visualViewport||[],jo(u)?u:[],h&&s?ko(h):[])}else return o.concat(u,ko(u,[],s))}function Da(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ph(n){const o=_t(n);let s=parseFloat(o.width)||0,l=parseFloat(o.height)||0;const u=tn(n),f=u?n.offsetWidth:s,p=u?n.offsetHeight:l,h=Gs(s)!==f||Gs(l)!==p;return h&&(s=f,l=p),{width:s,height:l,$:h}}function cu(n){return Ot(n)?n:n.contextElement}function Cr(n){const o=cu(n);if(!tn(o))return zt(1);const s=o.getBoundingClientRect(),{width:l,height:u,$:f}=Ph(o);let p=(f?Gs(s.width):s.width)/l,h=(f?Gs(s.height):s.height)/u;return(!p||!Number.isFinite(p))&&(p=1),(!h||!Number.isFinite(h))&&(h=1),{x:p,y:h}}const Bw=zt(0);function Rh(n){const o=ft(n);return!uu()||!o.visualViewport?Bw:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Vw(n,o,s){return o===void 0&&(o=!1),!s||o&&s!==ft(n)?!1:o}function Gn(n,o,s,l){o===void 0&&(o=!1),s===void 0&&(s=!1);const u=n.getBoundingClientRect(),f=cu(n);let p=zt(1);o&&(l?Ot(l)&&(p=Cr(l)):p=Cr(n));const h=Vw(f,s,l)?Rh(f):zt(0);let g=(u.left+h.x)/p.x,v=(u.top+h.y)/p.y,y=u.width/p.x,b=u.height/p.y;if(f){const S=ft(f),R=l&&Ot(l)?ft(l):l;let T=S,k=Da(T);for(;k&&l&&R!==T;){const N=Cr(k),j=k.getBoundingClientRect(),I=_t(k),M=j.left+(k.clientLeft+parseFloat(I.paddingLeft))*N.x,D=j.top+(k.clientTop+parseFloat(I.paddingTop))*N.y;g*=N.x,v*=N.y,y*=N.x,b*=N.y,g+=M,v+=D,T=ft(k),k=Da(T)}}return Xs({width:y,height:b,x:g,y:v})}function ai(n,o){const s=li(n).scrollLeft;return o?o.left+s:Gn(Ut(n)).left+s}function jh(n,o){const s=n.getBoundingClientRect(),l=s.left+o.scrollLeft-ai(n,s),u=s.top+o.scrollTop;return{x:l,y:u}}function Qw(n){let{elements:o,rect:s,offsetParent:l,strategy:u}=n;const f=u==="fixed",p=Ut(l),h=o?ii(o.floating):!1;if(l===p||h&&f)return s;let g={scrollLeft:0,scrollTop:0},v=zt(1);const y=zt(0),b=tn(l);if((b||!b&&!f)&&((Tr(l)!=="body"||jo(p))&&(g=li(l)),b)){const R=Gn(l);v=Cr(l),y.x=R.x+l.clientLeft,y.y=R.y+l.clientTop}const S=p&&!b&&!f?jh(p,g):zt(0);return{width:s.width*v.x,height:s.height*v.y,x:s.x*v.x-g.scrollLeft*v.x+y.x+S.x,y:s.y*v.y-g.scrollTop*v.y+y.y+S.y}}function Kw(n){return Array.from(n.getClientRects())}function qw(n){const o=Ut(n),s=li(n),l=n.ownerDocument.body,u=dt(o.scrollWidth,o.clientWidth,l.scrollWidth,l.clientWidth),f=dt(o.scrollHeight,o.clientHeight,l.scrollHeight,l.clientHeight);let p=-s.scrollLeft+ai(n);const h=-s.scrollTop;return _t(l).direction==="rtl"&&(p+=dt(o.clientWidth,l.clientWidth)-u),{width:u,height:f,x:p,y:h}}const np=25;function Gw(n,o){const s=ft(n),l=Ut(n),u=s.visualViewport;let f=l.clientWidth,p=l.clientHeight,h=0,g=0;if(u){f=u.width,p=u.height;const y=uu();(!y||y&&o==="fixed")&&(h=u.offsetLeft,g=u.offsetTop)}const v=ai(l);if(v<=0){const y=l.ownerDocument,b=y.body,S=getComputedStyle(b),R=y.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,T=Math.abs(l.clientWidth-b.clientWidth-R);T<=np&&(f-=T)}else v<=np&&(f+=v);return{width:f,height:p,x:h,y:g}}function Yw(n,o){const s=Gn(n,!0,o==="fixed"),l=s.top+n.clientTop,u=s.left+n.clientLeft,f=tn(n)?Cr(n):zt(1),p=n.clientWidth*f.x,h=n.clientHeight*f.y,g=u*f.x,v=l*f.y;return{width:p,height:h,x:g,y:v}}function rp(n,o,s){let l;if(o==="viewport")l=Gw(n,s);else if(o==="document")l=qw(Ut(n));else if(Ot(o))l=Yw(o,s);else{const u=Rh(n);l={x:o.x-u.x,y:o.y-u.y,width:o.width,height:o.height}}return Xs(l)}function Th(n,o){const s=Tn(n);return s===o||!Ot(s)||kr(s)?!1:_t(s).position==="fixed"||Th(s,o)}function Xw(n,o){const s=o.get(n);if(s)return s;let l=ko(n,[],!1).filter(h=>Ot(h)&&Tr(h)!=="body"),u=null;const f=_t(n).position==="fixed";let p=f?Tn(n):n;for(;Ot(p)&&!kr(p);){const h=_t(p),g=au(p);!g&&h.position==="fixed"&&(u=null),(f?!g&&!u:!g&&h.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||jo(p)&&!g&&Th(n,p))?l=l.filter(y=>y!==p):u=h,p=Tn(p)}return o.set(n,l),l}function Zw(n){let{element:o,boundary:s,rootBoundary:l,strategy:u}=n;const p=[...s==="clippingAncestors"?ii(o)?[]:Xw(o,this._c):[].concat(s),l],h=rp(o,p[0],u);let g=h.top,v=h.right,y=h.bottom,b=h.left;for(let S=1;S<p.length;S++){const R=rp(o,p[S],u);g=dt(R.top,g),v=jn(R.right,v),y=jn(R.bottom,y),b=dt(R.left,b)}return{width:v-b,height:y-g,x:b,y:g}}function Jw(n){const{width:o,height:s}=Ph(n);return{width:o,height:s}}function e0(n,o,s){const l=tn(o),u=Ut(o),f=s==="fixed",p=Gn(n,!0,f,o);let h={scrollLeft:0,scrollTop:0};const g=zt(0);function v(){g.x=ai(u)}if(l||!l&&!f)if((Tr(o)!=="body"||jo(u))&&(h=li(o)),l){const R=Gn(o,!0,f,o);g.x=R.x+o.clientLeft,g.y=R.y+o.clientTop}else u&&v();f&&!l&&u&&v();const y=u&&!l&&!f?jh(u,h):zt(0),b=p.left+h.scrollLeft-g.x-y.x,S=p.top+h.scrollTop-g.y-y.y;return{x:b,y:S,width:p.width,height:p.height}}function ya(n){return _t(n).position==="static"}function op(n,o){if(!tn(n)||_t(n).position==="fixed")return null;if(o)return o(n);let s=n.offsetParent;return Ut(n)===s&&(s=s.ownerDocument.body),s}function Oh(n,o){const s=ft(n);if(ii(n))return s;if(!tn(n)){let u=Tn(n);for(;u&&!kr(u);){if(Ot(u)&&!ya(u))return u;u=Tn(u)}return s}let l=op(n,o);for(;l&&$w(l)&&ya(l);)l=op(l,o);return l&&kr(l)&&ya(l)&&!au(l)?s:l||Ww(n)||s}const t0=async function(n){const o=this.getOffsetParent||Oh,s=this.getDimensions,l=await s(n.floating);return{reference:e0(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function n0(n){return _t(n).direction==="rtl"}const r0={convertOffsetParentRelativeRectToViewportRelativeRect:Qw,getDocumentElement:Ut,getClippingRect:Zw,getOffsetParent:Oh,getElementRects:t0,getClientRects:Kw,getDimensions:Jw,getScale:Cr,isElement:Ot,isRTL:n0};function _h(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function o0(n,o){let s=null,l;const u=Ut(n);function f(){var h;clearTimeout(l),(h=s)==null||h.disconnect(),s=null}function p(h,g){h===void 0&&(h=!1),g===void 0&&(g=1),f();const v=n.getBoundingClientRect(),{left:y,top:b,width:S,height:R}=v;if(h||o(),!S||!R)return;const T=Ws(b),k=Ws(u.clientWidth-(y+S)),N=Ws(u.clientHeight-(b+R)),j=Ws(y),M={rootMargin:-T+"px "+-k+"px "+-N+"px "+-j+"px",threshold:dt(0,jn(1,g))||1};let D=!0;function $(B){const V=B[0].intersectionRatio;if(V!==g){if(!D)return p();V?p(!1,V):l=setTimeout(()=>{p(!1,1e-7)},1e3)}V===1&&!_h(v,n.getBoundingClientRect())&&p(),D=!1}try{s=new IntersectionObserver($,{...M,root:u.ownerDocument})}catch{s=new IntersectionObserver($,M)}s.observe(n)}return p(!0),f}function s0(n,o,s,l){l===void 0&&(l={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:g=!1}=l,v=cu(n),y=u||f?[...v?ko(v):[],...o?ko(o):[]]:[];y.forEach(j=>{u&&j.addEventListener("scroll",s,{passive:!0}),f&&j.addEventListener("resize",s)});const b=v&&h?o0(v,s):null;let S=-1,R=null;p&&(R=new ResizeObserver(j=>{let[I]=j;I&&I.target===v&&R&&o&&(R.unobserve(o),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var M;(M=R)==null||M.observe(o)})),s()}),v&&!g&&R.observe(v),o&&R.observe(o));let T,k=g?Gn(n):null;g&&N();function N(){const j=Gn(n);k&&!_h(k,j)&&s(),k=j,T=requestAnimationFrame(N)}return s(),()=>{var j;y.forEach(I=>{u&&I.removeEventListener("scroll",s),f&&I.removeEventListener("resize",s)}),b?.(),(j=R)==null||j.disconnect(),R=null,g&&cancelAnimationFrame(T)}}const i0=Lw,l0=Dw,a0=Aw,u0=zw,c0=Iw,sp=_w,d0=Fw,f0=(n,o,s)=>{const l=new Map,u={platform:r0,...s},f={...u.platform,_c:l};return Ow(n,o,{...u,platform:f})};var p0=typeof document<"u",h0=function(){},Qs=p0?x.useLayoutEffect:h0;function Zs(n,o){if(n===o)return!0;if(typeof n!=typeof o)return!1;if(typeof n=="function"&&n.toString()===o.toString())return!0;let s,l,u;if(n&&o&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==o.length)return!1;for(l=s;l--!==0;)if(!Zs(n[l],o[l]))return!1;return!0}if(u=Object.keys(n),s=u.length,s!==Object.keys(o).length)return!1;for(l=s;l--!==0;)if(!{}.hasOwnProperty.call(o,u[l]))return!1;for(l=s;l--!==0;){const f=u[l];if(!(f==="_owner"&&n.$$typeof)&&!Zs(n[f],o[f]))return!1}return!0}return n!==n&&o!==o}function Ah(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ip(n,o){const s=Ah(n);return Math.round(o*s)/s}function xa(n){const o=x.useRef(n);return Qs(()=>{o.current=n}),o}function m0(n){n===void 0&&(n={});const{placement:o="bottom",strategy:s="absolute",middleware:l=[],platform:u,elements:{reference:f,floating:p}={},transform:h=!0,whileElementsMounted:g,open:v}=n,[y,b]=x.useState({x:0,y:0,strategy:s,placement:o,middlewareData:{},isPositioned:!1}),[S,R]=x.useState(l);Zs(S,l)||R(l);const[T,k]=x.useState(null),[N,j]=x.useState(null),I=x.useCallback(L=>{L!==B.current&&(B.current=L,k(L))},[]),M=x.useCallback(L=>{L!==V.current&&(V.current=L,j(L))},[]),D=f||T,$=p||N,B=x.useRef(null),V=x.useRef(null),ne=x.useRef(y),F=g!=null,re=xa(g),pe=xa(u),ee=xa(v),ce=x.useCallback(()=>{if(!B.current||!V.current)return;const L={placement:o,strategy:s,middleware:S};pe.current&&(L.platform=pe.current),f0(B.current,V.current,L).then(q=>{const K={...q,isPositioned:ee.current!==!1};G.current&&!Zs(ne.current,K)&&(ne.current=K,ti.flushSync(()=>{b(K)}))})},[S,o,s,pe,ee]);Qs(()=>{v===!1&&ne.current.isPositioned&&(ne.current.isPositioned=!1,b(L=>({...L,isPositioned:!1})))},[v]);const G=x.useRef(!1);Qs(()=>(G.current=!0,()=>{G.current=!1}),[]),Qs(()=>{if(D&&(B.current=D),$&&(V.current=$),D&&$){if(re.current)return re.current(D,$,ce);ce()}},[D,$,ce,re,F]);const me=x.useMemo(()=>({reference:B,floating:V,setReference:I,setFloating:M}),[I,M]),le=x.useMemo(()=>({reference:D,floating:$}),[D,$]),ie=x.useMemo(()=>{const L={position:s,left:0,top:0};if(!le.floating)return L;const q=ip(le.floating,y.x),K=ip(le.floating,y.y);return h?{...L,transform:"translate("+q+"px, "+K+"px)",...Ah(le.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:q,top:K}},[s,h,le.floating,y.x,y.y]);return x.useMemo(()=>({...y,update:ce,refs:me,elements:le,floatingStyles:ie}),[y,ce,me,le,ie])}const g0=n=>{function o(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:l,padding:u}=typeof n=="function"?n(s):n;return l&&o(l)?l.current!=null?sp({element:l.current,padding:u}).fn(s):{}:l?sp({element:l,padding:u}).fn(s):{}}}},v0=(n,o)=>{const s=i0(n);return{name:s.name,fn:s.fn,options:[n,o]}},y0=(n,o)=>{const s=l0(n);return{name:s.name,fn:s.fn,options:[n,o]}},x0=(n,o)=>({fn:d0(n).fn,options:[n,o]}),w0=(n,o)=>{const s=a0(n);return{name:s.name,fn:s.fn,options:[n,o]}},b0=(n,o)=>{const s=u0(n);return{name:s.name,fn:s.fn,options:[n,o]}},S0=(n,o)=>{const s=c0(n);return{name:s.name,fn:s.fn,options:[n,o]}},C0=(n,o)=>{const s=g0(n);return{name:s.name,fn:s.fn,options:[n,o]}};var k0="Arrow",Ih=x.forwardRef((n,o)=>{const{children:s,width:l=10,height:u=5,...f}=n;return d.jsx(Ve.svg,{...f,ref:o,width:l,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ih.displayName=k0;var E0=Ih;function N0(n){const[o,s]=x.useState(void 0);return $t(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const l=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let p,h;if("borderBoxSize"in f){const g=f.borderBoxSize,v=Array.isArray(g)?g[0]:g;p=v.inlineSize,h=v.blockSize}else p=n.offsetWidth,h=n.offsetHeight;s({width:p,height:h})});return l.observe(n,{box:"border-box"}),()=>l.unobserve(n)}else s(void 0)},[n]),o}var du="Popper",[Mh,Lh]=Po(du),[P0,Dh]=Mh(du),Fh=n=>{const{__scopePopper:o,children:s}=n,[l,u]=x.useState(null);return d.jsx(P0,{scope:o,anchor:l,onAnchorChange:u,children:s})};Fh.displayName=du;var zh="PopperAnchor",$h=x.forwardRef((n,o)=>{const{__scopePopper:s,virtualRef:l,...u}=n,f=Dh(zh,s),p=x.useRef(null),h=Ct(o,p),g=x.useRef(null);return x.useEffect(()=>{const v=g.current;g.current=l?.current||p.current,v!==g.current&&f.onAnchorChange(g.current)}),l?null:d.jsx(Ve.div,{...u,ref:h})});$h.displayName=zh;var fu="PopperContent",[R0,j0]=Mh(fu),Uh=x.forwardRef((n,o)=>{const{__scopePopper:s,side:l="bottom",sideOffset:u=0,align:f="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:S=!1,updatePositionStrategy:R="optimized",onPlaced:T,...k}=n,N=Dh(fu,s),[j,I]=x.useState(null),M=Ct(o,xe=>I(xe)),[D,$]=x.useState(null),B=N0(D),V=B?.width??0,ne=B?.height??0,F=l+(f!=="center"?"-"+f:""),re=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},pe=Array.isArray(v)?v:[v],ee=pe.length>0,ce={padding:re,boundary:pe.filter(O0),altBoundary:ee},{refs:G,floatingStyles:me,placement:le,isPositioned:ie,middlewareData:L}=m0({strategy:"fixed",placement:F,whileElementsMounted:(...xe)=>s0(...xe,{animationFrame:R==="always"}),elements:{reference:N.anchor},middleware:[v0({mainAxis:u+ne,alignmentAxis:p}),g&&y0({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?x0():void 0,...ce}),g&&w0({...ce}),b0({...ce,apply:({elements:xe,rects:we,availableWidth:Ce,availableHeight:Ye})=>{const{width:Yn,height:To}=we.reference,Ht=xe.floating.style;Ht.setProperty("--radix-popper-available-width",`${Ce}px`),Ht.setProperty("--radix-popper-available-height",`${Ye}px`),Ht.setProperty("--radix-popper-anchor-width",`${Yn}px`),Ht.setProperty("--radix-popper-anchor-height",`${To}px`)}}),D&&C0({element:D,padding:h}),_0({arrowWidth:V,arrowHeight:ne}),S&&S0({strategy:"referenceHidden",...ce})]}),[q,K]=Bh(le),P=Rn(T);$t(()=>{ie&&P?.()},[ie,P]);const z=L.arrow?.x,ue=L.arrow?.y,de=L.arrow?.centerOffset!==0,[ge,ve]=x.useState();return $t(()=>{j&&ve(window.getComputedStyle(j).zIndex)},[j]),d.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:ie?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:d.jsx(R0,{scope:s,placedSide:q,onArrowChange:$,arrowX:z,arrowY:ue,shouldHideArrow:de,children:d.jsx(Ve.div,{"data-side":q,"data-align":K,...k,ref:M,style:{...k.style,animation:ie?void 0:"none"}})})})});Uh.displayName=fu;var Hh="PopperArrow",T0={top:"bottom",right:"left",bottom:"top",left:"right"},Wh=x.forwardRef(function(o,s){const{__scopePopper:l,...u}=o,f=j0(Hh,l),p=T0[f.placedSide];return d.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[p]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:d.jsx(E0,{...u,ref:s,style:{...u.style,display:"block"}})})});Wh.displayName=Hh;function O0(n){return n!==null}var _0=n=>({name:"transformOrigin",options:n,fn(o){const{placement:s,rects:l,middlewareData:u}=o,p=u.arrow?.centerOffset!==0,h=p?0:n.arrowWidth,g=p?0:n.arrowHeight,[v,y]=Bh(s),b={start:"0%",center:"50%",end:"100%"}[y],S=(u.arrow?.x??0)+h/2,R=(u.arrow?.y??0)+g/2;let T="",k="";return v==="bottom"?(T=p?b:`${S}px`,k=`${-g}px`):v==="top"?(T=p?b:`${S}px`,k=`${l.floating.height+g}px`):v==="right"?(T=`${-g}px`,k=p?b:`${R}px`):v==="left"&&(T=`${l.floating.width+g}px`,k=p?b:`${R}px`),{data:{x:T,y:k}}}});function Bh(n){const[o,s="center"]=n.split("-");return[o,s]}var A0=Fh,I0=$h,M0=Uh,L0=Wh,D0=Symbol("radix.slottable");function F0(n){const o=({children:s})=>d.jsx(d.Fragment,{children:s});return o.displayName=`${n}.Slottable`,o.__radixId=D0,o}var[ui]=Po("Tooltip",[Lh]),ci=Lh(),Vh="TooltipProvider",z0=700,Fa="tooltip.open",[$0,pu]=ui(Vh),Qh=n=>{const{__scopeTooltip:o,delayDuration:s=z0,skipDelayDuration:l=300,disableHoverableContent:u=!1,children:f}=n,p=x.useRef(!0),h=x.useRef(!1),g=x.useRef(0);return x.useEffect(()=>{const v=g.current;return()=>window.clearTimeout(v)},[]),d.jsx($0,{scope:o,isOpenDelayedRef:p,delayDuration:s,onOpen:x.useCallback(()=>{window.clearTimeout(g.current),p.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>p.current=!0,l)},[l]),isPointerInTransitRef:h,onPointerInTransitChange:x.useCallback(v=>{h.current=v},[]),disableHoverableContent:u,children:f})};Qh.displayName=Vh;var Eo="Tooltip",[U0,di]=ui(Eo),Kh=n=>{const{__scopeTooltip:o,children:s,open:l,defaultOpen:u,onOpenChange:f,disableHoverableContent:p,delayDuration:h}=n,g=pu(Eo,n.__scopeTooltip),v=ci(o),[y,b]=x.useState(null),S=Sh(),R=x.useRef(0),T=p??g.disableHoverableContent,k=h??g.delayDuration,N=x.useRef(!1),[j,I]=eu({prop:l,defaultProp:u??!1,onChange:V=>{V?(g.onOpen(),document.dispatchEvent(new CustomEvent(Fa))):g.onClose(),f?.(V)},caller:Eo}),M=x.useMemo(()=>j?N.current?"delayed-open":"instant-open":"closed",[j]),D=x.useCallback(()=>{window.clearTimeout(R.current),R.current=0,N.current=!1,I(!0)},[I]),$=x.useCallback(()=>{window.clearTimeout(R.current),R.current=0,I(!1)},[I]),B=x.useCallback(()=>{window.clearTimeout(R.current),R.current=window.setTimeout(()=>{N.current=!0,I(!0),R.current=0},k)},[k,I]);return x.useEffect(()=>()=>{R.current&&(window.clearTimeout(R.current),R.current=0)},[]),d.jsx(A0,{...v,children:d.jsx(U0,{scope:o,contentId:S,open:j,stateAttribute:M,trigger:y,onTriggerChange:b,onTriggerEnter:x.useCallback(()=>{g.isOpenDelayedRef.current?B():D()},[g.isOpenDelayedRef,B,D]),onTriggerLeave:x.useCallback(()=>{T?$():(window.clearTimeout(R.current),R.current=0)},[$,T]),onOpen:D,onClose:$,disableHoverableContent:T,children:s})})};Kh.displayName=Eo;var za="TooltipTrigger",qh=x.forwardRef((n,o)=>{const{__scopeTooltip:s,...l}=n,u=di(za,s),f=pu(za,s),p=ci(s),h=x.useRef(null),g=Ct(o,h,u.onTriggerChange),v=x.useRef(!1),y=x.useRef(!1),b=x.useCallback(()=>v.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),d.jsx(I0,{asChild:!0,...p,children:d.jsx(Ve.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...l,ref:g,onPointerMove:Le(n.onPointerMove,S=>{S.pointerType!=="touch"&&!y.current&&!f.isPointerInTransitRef.current&&(u.onTriggerEnter(),y.current=!0)}),onPointerLeave:Le(n.onPointerLeave,()=>{u.onTriggerLeave(),y.current=!1}),onPointerDown:Le(n.onPointerDown,()=>{u.open&&u.onClose(),v.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:Le(n.onFocus,()=>{v.current||u.onOpen()}),onBlur:Le(n.onBlur,u.onClose),onClick:Le(n.onClick,u.onClose)})})});qh.displayName=za;var H0="TooltipPortal",[fb,W0]=ui(H0,{forceMount:void 0}),Er="TooltipContent",Gh=x.forwardRef((n,o)=>{const s=W0(Er,n.__scopeTooltip),{forceMount:l=s.forceMount,side:u="top",...f}=n,p=di(Er,n.__scopeTooltip);return d.jsx(ni,{present:l||p.open,children:p.disableHoverableContent?d.jsx(Yh,{side:u,...f,ref:o}):d.jsx(B0,{side:u,...f,ref:o})})}),B0=x.forwardRef((n,o)=>{const s=di(Er,n.__scopeTooltip),l=pu(Er,n.__scopeTooltip),u=x.useRef(null),f=Ct(o,u),[p,h]=x.useState(null),{trigger:g,onClose:v}=s,y=u.current,{onPointerInTransitChange:b}=l,S=x.useCallback(()=>{h(null),b(!1)},[b]),R=x.useCallback((T,k)=>{const N=T.currentTarget,j={x:T.clientX,y:T.clientY},I=G0(j,N.getBoundingClientRect()),M=Y0(j,I),D=X0(k.getBoundingClientRect()),$=J0([...M,...D]);h($),b(!0)},[b]);return x.useEffect(()=>()=>S(),[S]),x.useEffect(()=>{if(g&&y){const T=N=>R(N,y),k=N=>R(N,g);return g.addEventListener("pointerleave",T),y.addEventListener("pointerleave",k),()=>{g.removeEventListener("pointerleave",T),y.removeEventListener("pointerleave",k)}}},[g,y,R,S]),x.useEffect(()=>{if(p){const T=k=>{const N=k.target,j={x:k.clientX,y:k.clientY},I=g?.contains(N)||y?.contains(N),M=!Z0(j,p);I?S():M&&(S(),v())};return document.addEventListener("pointermove",T),()=>document.removeEventListener("pointermove",T)}},[g,y,p,v,S]),d.jsx(Yh,{...n,ref:f})}),[V0,Q0]=ui(Eo,{isInside:!1}),K0=F0("TooltipContent"),Yh=x.forwardRef((n,o)=>{const{__scopeTooltip:s,children:l,"aria-label":u,onEscapeKeyDown:f,onPointerDownOutside:p,...h}=n,g=di(Er,s),v=ci(s),{onClose:y}=g;return x.useEffect(()=>(document.addEventListener(Fa,y),()=>document.removeEventListener(Fa,y)),[y]),x.useEffect(()=>{if(g.trigger){const b=S=>{S.target?.contains(g.trigger)&&y()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[g.trigger,y]),d.jsx(Ja,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:d.jsxs(M0,{"data-state":g.stateAttribute,...v,...h,ref:o,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(K0,{children:l}),d.jsx(V0,{scope:s,isInside:!0,children:d.jsx(dx,{id:g.contentId,role:"tooltip",children:u||l})})]})})});Gh.displayName=Er;var Xh="TooltipArrow",q0=x.forwardRef((n,o)=>{const{__scopeTooltip:s,...l}=n,u=ci(s);return Q0(Xh,s).isInside?null:d.jsx(L0,{...u,...l,ref:o})});q0.displayName=Xh;function G0(n,o){const s=Math.abs(o.top-n.y),l=Math.abs(o.bottom-n.y),u=Math.abs(o.right-n.x),f=Math.abs(o.left-n.x);switch(Math.min(s,l,u,f)){case f:return"left";case u:return"right";case s:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function Y0(n,o,s=5){const l=[];switch(o){case"top":l.push({x:n.x-s,y:n.y+s},{x:n.x+s,y:n.y+s});break;case"bottom":l.push({x:n.x-s,y:n.y-s},{x:n.x+s,y:n.y-s});break;case"left":l.push({x:n.x+s,y:n.y-s},{x:n.x+s,y:n.y+s});break;case"right":l.push({x:n.x-s,y:n.y-s},{x:n.x-s,y:n.y+s});break}return l}function X0(n){const{top:o,right:s,bottom:l,left:u}=n;return[{x:u,y:o},{x:s,y:o},{x:s,y:l},{x:u,y:l}]}function Z0(n,o){const{x:s,y:l}=n;let u=!1;for(let f=0,p=o.length-1;f<o.length;p=f++){const h=o[f],g=o[p],v=h.x,y=h.y,b=g.x,S=g.y;y>l!=S>l&&s<(b-v)*(l-y)/(S-y)+v&&(u=!u)}return u}function J0(n){const o=n.slice();return o.sort((s,l)=>s.x<l.x?-1:s.x>l.x?1:s.y<l.y?-1:s.y>l.y?1:0),e1(o)}function e1(n){if(n.length<=1)return n.slice();const o=[];for(let l=0;l<n.length;l++){const u=n[l];for(;o.length>=2;){const f=o[o.length-1],p=o[o.length-2];if((f.x-p.x)*(u.y-p.y)>=(f.y-p.y)*(u.x-p.x))o.pop();else break}o.push(u)}o.pop();const s=[];for(let l=n.length-1;l>=0;l--){const u=n[l];for(;s.length>=2;){const f=s[s.length-1],p=s[s.length-2];if((f.x-p.x)*(u.y-p.y)>=(f.y-p.y)*(u.x-p.x))s.pop();else break}s.push(u)}return s.pop(),o.length===1&&s.length===1&&o[0].x===s[0].x&&o[0].y===s[0].y?o:o.concat(s)}var t1=Qh,n1=Kh,r1=qh,Zh=Gh;const o1=t1,s1=n1,i1=r1,Jh=x.forwardRef(({className:n,sideOffset:o=4,...s},l)=>d.jsx(Zh,{ref:l,sideOffset:o,className:pt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",n),...s}));Jh.displayName=Zh.displayName;var fi="Collapsible",[l1]=Po(fi),[a1,hu]=l1(fi),em=x.forwardRef((n,o)=>{const{__scopeCollapsible:s,open:l,defaultOpen:u,disabled:f,onOpenChange:p,...h}=n,[g,v]=eu({prop:l,defaultProp:u??!1,onChange:p,caller:fi});return d.jsx(a1,{scope:s,disabled:f,contentId:Sh(),open:g,onOpenToggle:x.useCallback(()=>v(y=>!y),[v]),children:d.jsx(Ve.div,{"data-state":gu(g),"data-disabled":f?"":void 0,...h,ref:o})})});em.displayName=fi;var tm="CollapsibleTrigger",nm=x.forwardRef((n,o)=>{const{__scopeCollapsible:s,...l}=n,u=hu(tm,s);return d.jsx(Ve.button,{type:"button","aria-controls":u.contentId,"aria-expanded":u.open||!1,"data-state":gu(u.open),"data-disabled":u.disabled?"":void 0,disabled:u.disabled,...l,ref:o,onClick:Le(n.onClick,u.onOpenToggle)})});nm.displayName=tm;var mu="CollapsibleContent",rm=x.forwardRef((n,o)=>{const{forceMount:s,...l}=n,u=hu(mu,n.__scopeCollapsible);return d.jsx(ni,{present:s||u.open,children:({present:f})=>d.jsx(u1,{...l,ref:o,present:f})})});rm.displayName=mu;var u1=x.forwardRef((n,o)=>{const{__scopeCollapsible:s,present:l,children:u,...f}=n,p=hu(mu,s),[h,g]=x.useState(l),v=x.useRef(null),y=Ct(o,v),b=x.useRef(0),S=b.current,R=x.useRef(0),T=R.current,k=p.open||h,N=x.useRef(k),j=x.useRef(void 0);return x.useEffect(()=>{const I=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(I)},[]),$t(()=>{const I=v.current;if(I){j.current=j.current||{transitionDuration:I.style.transitionDuration,animationName:I.style.animationName},I.style.transitionDuration="0s",I.style.animationName="none";const M=I.getBoundingClientRect();b.current=M.height,R.current=M.width,N.current||(I.style.transitionDuration=j.current.transitionDuration,I.style.animationName=j.current.animationName),g(l)}},[p.open,l]),d.jsx(Ve.div,{"data-state":gu(p.open),"data-disabled":p.disabled?"":void 0,id:p.contentId,hidden:!k,...f,ref:y,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":T?`${T}px`:void 0,...n.style},children:k&&u})});function gu(n){return n?"open":"closed"}var c1=em,d1=nm,f1=rm;function p1(n){const o=n.split("/");if(o.length!==2||!o[0]||!o[1])return`https://github.com/${n}`;const[s,l]=o;return`https://github.com/${encodeURIComponent(s)}/${encodeURIComponent(l)}`}const lp="onboarding-panel-dismissed-v2",wa={claude:"Claude",codex:"Codex",gemini:"Gemini"},ap=[{label:"Gemini Code Assist",href:"https://github.com/apps/gemini-code-assist"},{label:"OpenAI Codex",href:"https://developers.openai.com/codex/integrations/github"},{label:"Claude Code",href:"https://support.claude.com/en/articles/14233555-set-up-code-review-for-claude-code"},{label:"Cursor",href:"https://cursor.com/docs/integrations/github"}];function up(n){return n.claude||n.codex||n.gemini}function h1(n){return Object.entries(n).filter(([,o])=>o).map(([o])=>o)}function m1(n){const o=n.repos.filter(b=>b.accessible),s=n.repos.filter(b=>!b.accessible),l=o.filter(b=>up(b.codeReviews)),u=o.filter(b=>!up(b.codeReviews)),f=[{id:"github",title:"Connect GitHub",description:n.githubConnected?`Connected${n.githubUser?` as @${n.githubUser}`:""}.`:"Connect GitHub so the app can read repositories, sync feedback, and install review workflows.",complete:n.githubConnected},{id:"repo",title:"Track your first repository or PR",description:o.length>0?`Watching ${o.length} accessible repo${o.length===1?"":"s"}.`:"Use the Add PR or Watch form below. Adding a PR also adds its repository to the watch list.",complete:o.length>0},{id:"workflow",title:"Enable first-pass AI review",description:l.length>0?`Detected an AI review workflow in ${l.length} repo${l.length===1?"":"s"}.`:o.length>0?"Install a Claude or Codex review workflow on any tracked repository to seed actionable review comments automatically.":"Track an accessible repository first, then install a review workflow.",complete:l.length>0}],p=f.filter(b=>b.complete).length,h=f.filter(b=>!b.complete),g=[...h.map(b=>b.id.toLowerCase()),...s.map(b=>"access:"+b.repo.toLowerCase()+":"+(b.error?.slice(0,100)??"").toLowerCase())].sort().join("|")||"complete",v=h.length>0||s.length>0,y=h.length>0?`${p} of ${f.length} complete`:`${s.length} access issue${s.length===1?"":"s"}`;return{accessibleRepos:o,hasIssues:v,inaccessibleRepos:s,reposMissingReview:u,reposWithReview:l,steps:f,pendingSteps:h,completedCount:p,dismissalKey:g,summary:y}}function ba({children:n}){return d.jsx("code",{className:"rounded border border-border bg-muted/30 px-1 py-0.5 text-[11px] font-mono",children:n})}function cp({number:n,children:o}){return d.jsxs("div",{className:"flex gap-2.5",children:[d.jsx("span",{className:"mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center border border-border text-[10px] text-muted-foreground",children:n}),d.jsx("div",{className:"flex-1 text-[12px] leading-relaxed",children:o})]})}function g1({step:n,index:o,children:s}){return d.jsx("div",{className:`border px-3 py-3 ${n.complete?"border-border bg-background/60":"border-amber-500/30 bg-amber-500/5"}`,children:d.jsxs("div",{className:"flex gap-3",children:[d.jsx("span",{className:`mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center border text-[10px] ${n.complete?"border-border text-foreground":"border-amber-500/40 text-amber-500"}`,children:n.complete?"✓":o}),d.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[d.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider",children:n.title}),d.jsx("span",{className:`border px-1.5 py-0 text-[10px] uppercase tracking-wider ${n.complete?"border-border text-muted-foreground":"border-amber-500/40 text-amber-500"}`,children:n.complete?"done":"next"})]}),d.jsx("p",{className:"text-[12px] text-muted-foreground",children:n.description}),s]})]})})}function v1(){const[n,o]=x.useState(()=>typeof window>"u"?null:window.localStorage.getItem(lp)),[s,l]=x.useState(!0),{data:u,isLoading:f}=St({queryKey:["/api/onboarding/status"],refetchInterval:3e4}),{data:p}=St({queryKey:["/api/config"]}),h=bt({mutationFn:async({repo:M,tool:D})=>(await ct("POST","/api/onboarding/install-review",{repo:M,tool:D})).json(),onSuccess:(M,D)=>{Ee.invalidateQueries({queryKey:["/api/onboarding/status"]}),Zt({description:`${wa[D.tool]} review workflow installed for ${D.repo}.`})},onError:M=>{Zt({variant:"destructive",description:`Could not install review workflow: ${M.message}`})}});if(f||!u)return null;const{accessibleRepos:g,completedCount:v,dismissalKey:y,hasIssues:b,inaccessibleRepos:S,reposMissingReview:R,reposWithReview:T,steps:k,summary:N}=m1(u),I=(p?.codingAgent??"claude")==="codex"?["codex","claude"]:["claude","codex"];return!b||n===y?null:d.jsxs("div",{className:"shrink-0 border-b border-border bg-muted/35",children:[d.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[d.jsxs("button",{onClick:()=>l(!s),className:"flex items-center gap-2 text-left",children:[d.jsx("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full bg-foreground"}),d.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider",children:"Getting started"}),d.jsx("span",{className:"text-[11px] text-muted-foreground",children:N}),d.jsx("span",{className:"text-[10px] text-muted-foreground",children:s?"▲":"▼"})]}),d.jsx("button",{onClick:()=>{typeof window<"u"&&window.localStorage.setItem(lp,y),o(y)},className:"text-[10px] uppercase tracking-wider text-muted-foreground transition-colors hover:text-foreground",children:"dismiss"})]}),s&&d.jsxs("div",{className:"border-t border-border px-4 py-4 space-y-4",children:[d.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[d.jsx("div",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:"Setup checklist"}),d.jsxs("div",{className:"text-[11px] text-muted-foreground",children:[v," of ",k.length," complete"]})]}),d.jsx("div",{className:"space-y-3",children:k.map((M,D)=>d.jsxs(g1,{step:M,index:D+1,children:[M.id==="github"&&!M.complete&&d.jsxs("div",{className:"space-y-2 pt-1",children:[u.githubError&&d.jsx("p",{className:"text-[12px] text-destructive",children:u.githubError}),d.jsxs("div",{className:"space-y-1.5 text-[12px] text-muted-foreground",children:[d.jsxs(cp,{number:1,children:["Run ",d.jsx(ba,{children:"gh auth login"})," on this machine, or set ",d.jsx(ba,{children:"GITHUB_TOKEN"})," before starting the app."]}),d.jsxs(cp,{number:2,children:["Prefer the built-in token field if you want the app to remember it. Open ",d.jsx(Nn,{href:"/settings",className:"underline underline-offset-2",children:"settings"})," to paste a Personal Access Token."]})]})]}),M.id==="repo"&&!M.complete&&d.jsxs("div",{className:"pt-1 text-[12px] text-muted-foreground",children:["The left sidebar is the real entry point. Use ",d.jsx("span",{className:"text-foreground",children:"Add"})," for a PR URL or ",d.jsx("span",{className:"text-foreground",children:"Watch"})," for an ",d.jsx(ba,{children:"owner/repo"})," slug."]}),M.id==="workflow"&&!M.complete&&g.length>0&&d.jsxs("div",{className:"space-y-2 pt-1",children:[d.jsxs("div",{className:"space-y-2 border border-border bg-muted/40 px-3 py-2",children:[d.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Oh-my-PR is best used along with a chain of AI code review tools. Different models have different strengths and weaknesses. Below are instructions on how to install code reviews with different providers."}),d.jsx("div",{className:"flex flex-wrap gap-x-3 gap-y-1 text-[11px]",children:ap.map($=>d.jsx("a",{href:$.href,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 text-foreground/80 hover:text-foreground",children:$.label},$.href))})]}),R.map($=>d.jsxs("div",{className:"flex flex-col gap-2 border border-border bg-background/50 px-3 py-2 md:flex-row md:items-center md:justify-between",children:[d.jsxs("div",{className:"min-w-0",children:[d.jsx("a",{href:`https://github.com/${$.repo}`,target:"_blank",rel:"noopener noreferrer",className:"block truncate text-[11px] font-medium underline underline-offset-2",children:$.repo}),d.jsx("p",{className:"text-[11px] text-muted-foreground",children:"No AI review workflow detected yet."})]}),d.jsx("div",{className:"flex flex-wrap gap-2",children:I.map(B=>{const V=h.isPending&&h.variables?.repo===$.repo&&h.variables?.tool===B;return d.jsx("button",{type:"button",onClick:()=>h.mutate({repo:$.repo,tool:B}),disabled:h.isPending,className:"border border-border px-2 py-1 text-[10px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background disabled:opacity-40",children:V?"Installing…":`Install ${wa[B]}`},`${$.repo}-${B}`)})})]},$.repo))]}),M.id==="workflow"&&M.complete&&T.length>0&&d.jsxs("div",{className:"space-y-2 pt-1",children:[d.jsxs("div",{className:"space-y-2 border border-border bg-muted/40 px-3 py-2",children:[d.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Oh-my-PR is best used along with a chain of AI code review tools. Different models have different strengths and weaknesses. Below are instructions on how to install code reviews with different providers."}),d.jsx("div",{className:"flex flex-wrap gap-x-3 gap-y-1 text-[11px]",children:ap.map($=>d.jsx("a",{href:$.href,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 text-foreground/80 hover:text-foreground",children:$.label},$.href))})]}),d.jsx("div",{className:"flex flex-wrap gap-2",children:T.map($=>{const B=h1($.codeReviews).map(V=>wa[V]).join(" + ");return d.jsxs("span",{className:"border border-border px-2 py-0.5 text-[10px] uppercase tracking-wider text-muted-foreground",children:[$.repo," · ",B]},$.repo)})})]})]},M.id))}),S.length>0&&d.jsxs("div",{className:"space-y-3 border border-destructive/30 bg-destructive/5 px-3 py-3",children:[d.jsx("div",{className:"text-[11px] font-medium uppercase tracking-wider text-destructive",children:"Repository access issues"}),d.jsx("div",{className:"space-y-2",children:S.map(M=>d.jsxs("div",{className:"space-y-1",children:[d.jsx("div",{className:"text-[11px] font-medium",children:d.jsx("a",{href:`https://github.com/${M.repo}`,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",children:M.repo})}),d.jsxs("p",{className:"text-[12px] text-destructive",children:["Cannot access this repository: ",M.error??"unknown error"]})]},M.repo))})]})]})]})}function y1(n){return n.replace("_"," ").toUpperCase()}function x1(n){return n==="in_progress"?"border-foreground text-foreground animate-pulse":n==="failed"?"border-destructive text-destructive":n==="warning"?"border-yellow-500 text-yellow-500":n==="resolved"?"border-foreground/20 text-muted-foreground":n==="rejected"?"border-foreground/20 text-muted-foreground line-through":n==="flagged"?"border-foreground/40 text-foreground/60":n==="queued"?"border-foreground text-foreground":"border-foreground/30 text-foreground/60"}function om(n){return n==="resolved"||n==="rejected"}function w1(n){return om(n)||n==="warning"}function sm(n){return n.length===0?!1:n.every(o=>om(o.status))}function No(n){return n.reduce((o,s)=>(s.status==="queued"?o.queued+=1:s.status==="in_progress"?o.inProgress+=1:s.status==="failed"?o.failed+=1:s.status==="warning"&&(o.warning+=1),o),{queued:0,inProgress:0,failed:0,warning:0})}const b1={idle:"IDLE",triaging:"TRIAGING",awaiting_repair_slot:"REPAIR QUEUED",repairing:"REPAIRING",awaiting_ci:"WAITING FOR CI",verifying:"VERIFYING",healed:"HEALED",cooldown:"COOLDOWN",blocked:"BLOCKED",escalated:"ESCALATED",superseded:"SUPERSEDED"},S1={idle:[],triaging:["cancel"],awaiting_repair_slot:["pause","cancel"],repairing:["pause","cancel"],awaiting_ci:["pause","cancel"],verifying:["cancel"],healed:[],cooldown:["resume","cancel"],blocked:["retry"],escalated:["retry"],superseded:[]},C1={idle:"neutral",triaging:"info",awaiting_repair_slot:"warning",repairing:"info",awaiting_ci:"info",verifying:"info",healed:"success",cooldown:"warning",blocked:"danger",escalated:"danger",superseded:"neutral"},k1={idle:"Waiting for a new failing check on the current PR head.",triaging:"Classifying the current failure set before deciding whether it is safe to repair.",awaiting_repair_slot:"Ready for the next bounded repair attempt as soon as a slot is free.",repairing:"A repair agent is actively working in an isolated worktree.",awaiting_ci:"A repair was pushed and the new head SHA is waiting for CI to settle.",verifying:"Comparing the latest check results against the previous failure fingerprint.",healed:"The latest repair cycle converged to green and the session is complete.",cooldown:"Cooling down before another retry is allowed.",blocked:"Stopped because the failure looks external or unsafe to repair in-branch.",escalated:"Stopped because retries were exhausted or the failure did not improve.",superseded:"Replaced after the PR head moved to a newer commit."};function E1(n){return b1[n]}function N1(n){return S1[n]}function dp(n){return n==="pause"?"Pause":n==="resume"?"Resume":n==="retry"?"Retry":"Cancel"}function P1(n){return C1[n]}function R1(n){return k1[n]}function j1(n){const o=n.attemptCount,s=o===1?"":"s";return o===0?n.state==="triaging"?"Preparing attempt 1":n.state==="awaiting_repair_slot"?"Queued for attempt 1":n.state==="healed"?"Healed without a repair attempt":"No repair attempts yet":n.state==="repairing"?`Attempt ${o} running`:n.state==="awaiting_ci"?`Attempt ${o} pushed, waiting on CI`:n.state==="verifying"?`Attempt ${o} verifying`:n.state==="healed"?`Healed after ${o} attempt${s}`:n.state==="blocked"?`${o} attempt${s} before blocking`:n.state==="escalated"?`${o} attempt${s} before escalation`:n.state==="cooldown"?`${o} attempt${s}, cooling down`:n.state==="superseded"?`${o} attempt${s}, superseded`:`${o} attempt${s} recorded`}function T1(n){return n?n.blockedReason??n.escalationReason??n.latestFingerprint??null:null}function O1(n,o){const s=n.filter(l=>l.prId===o);return s.length===0?null:s.reduce((l,u)=>u.updatedAt>l.updatedAt?u:l)}function _1(n,o){return O1(n,o)}function A1(n,o){return{stateLabel:E1(n.state),tone:P1(n.state),attemptSummary:j1(n),reasonSummary:T1(n),statusHint:R1(n.state),actions:N1(n.state).map(s=>({label:dp(s),available:!0,hint:`${dp(s)} controls are planned but not wired to the backend yet.`}))}}function Nr(n){return n?new Date(n).toLocaleTimeString("en-US",{hour12:!1}):null}function im(n){return n.watchEnabled}function lm(n){return n==="processing"?"autonomous run active":n==="done"?"completed":n==="error"?"attention needed":n==="archived"?"archived":"watching"}function I1(n){return`${Math.max(1,Math.round((n??12e4)/1e3))}s`}const fp={neutral:"border-border text-muted-foreground",info:"border-foreground text-foreground",warning:"border-yellow-600 text-yellow-600",success:"border-green-600 text-green-600",danger:"border-destructive text-destructive"};function am({status:n}){const o=n==="watching"?"bg-foreground/30":n==="processing"?"bg-foreground animate-pulse":n==="done"?"bg-foreground":n==="archived"?"bg-foreground/15":"bg-destructive";return d.jsx("span",{className:`inline-block h-1.5 w-1.5 shrink-0 ${o}`})}function M1({status:n}){const o=x1(n);return d.jsx("span",{className:`inline-block border px-1.5 py-0 text-[11px] uppercase tracking-wide ${o}`,children:y1(n)})}function $a(){return d.jsx("span",{className:"border border-border px-1.5 py-0 text-[10px] uppercase tracking-wider text-muted-foreground",children:"watch paused"})}function um({href:n,testId:o,label:s,hint:l,className:u,dotClassName:f,hintClassName:p,onClick:h}){return d.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:h,"data-testid":o,className:`inline-flex items-center border border-green-600 bg-green-600/10 font-medium uppercase text-green-500 transition-colors hover:bg-green-600/20 ${u}`,children:[d.jsx("span",{className:`inline-block rounded-full bg-green-500 ${f}`}),s,l&&d.jsx("span",{className:p,children:l})]})}function cm({pr:n}){const o=No(n.feedbackItems).inProgress;if(!(n.status==="processing")&&o===0)return null;const l=o>0?`${o} agent${o!==1?"s":""} running on this PR`:"Agent run active on this PR";return d.jsxs(s1,{children:[d.jsx(i1,{asChild:!0,children:d.jsxs("span",{className:"inline-flex shrink-0 cursor-default items-center gap-0.5 text-[12px]","data-testid":`agent-indicator-${n.id}`,children:[d.jsx("span",{className:"animate-pulse",children:"🤖"}),o>0&&d.jsx("span",{className:"text-[10px] text-muted-foreground",children:o})]})}),d.jsx(Jh,{side:"top",children:d.jsx("p",{className:"text-xs",children:l})})]})}function L1({pr:n,isSelected:o,onSelect:s}){const l=Nr(n.lastChecked),u=im(n),p=!(n.status==="processing"||No(n.feedbackItems).inProgress>0)&&sm(n.feedbackItems);return d.jsx("div",{onClick:s,onKeyDown:h=>{h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),s())},role:"button",tabIndex:0,"data-testid":`pr-row-${n.id}`,className:`w-full border-b border-border px-4 py-3 text-left transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring ${o?"bg-muted":""}`,children:d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx(am,{status:n.status}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("span",{className:"w-12 shrink-0 text-muted-foreground",children:["#",n.number]}),d.jsx("span",{className:"truncate",children:n.title}),d.jsx(cm,{pr:n})]}),p&&d.jsx(um,{href:n.url,testId:`ready-to-merge-${n.id}`,label:"Ready to merge",hint:"— click to open PR",onClick:h=>h.stopPropagation(),className:"mt-1.5 ml-[3.75rem] gap-1.5 px-2 py-0.5 text-[11px] tracking-wider",dotClassName:"h-1.5 w-1.5",hintClassName:"text-[10px] normal-case tracking-normal text-green-500/70"}),d.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 pl-[3.75rem] text-[11px] text-muted-foreground",children:[d.jsx("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",onClick:h=>h.stopPropagation(),className:"underline decoration-border underline-offset-2 transition-colors hover:text-foreground",children:n.repo}),d.jsx("span",{children:lm(n.status)}),!u&&d.jsx($a,{}),n.feedbackItems.length>0&&(()=>{const h=No(n.feedbackItems),g=[];return h.queued>0&&g.push(`${h.queued}q`),h.inProgress>0&&g.push(`${h.inProgress} active`),h.failed>0&&g.push(`${h.failed} failed`),h.warning>0&&g.push(`${h.warning} warn`),g.length===0?d.jsxs("span",{children:[n.feedbackItems.length," items"]}):d.jsx("span",{children:g.join(" · ")})})(),l&&d.jsxs("span",{children:["checked ",l]})]})]})]})})}function D1({item:n,prId:o,readOnly:s}){const l=bt({mutationFn:async h=>(await ct("PATCH",`/api/prs/${o}/feedback/${n.id}`,{decision:h})).json(),onSuccess:()=>{Ee.invalidateQueries({queryKey:["/api/prs"]}),Ee.invalidateQueries({queryKey:["/api/prs",o]})}}),u=bt({mutationFn:async()=>(await ct("POST",`/api/prs/${o}/feedback/${n.id}/retry`)).json(),onSuccess:()=>{Ee.invalidateQueries({queryKey:["/api/prs"]}),Ee.invalidateQueries({queryKey:["/api/prs",o]}),Ee.invalidateQueries({queryKey:["/api/logs"]})},onError:h=>{Vn("Could not retry feedback item",h)}}),f=Nr(n.createdAt),p=w1(n.status);return d.jsxs(c1,{defaultOpen:!p,className:"border-b border-border",children:[d.jsx("div",{className:"px-4 py-3",children:d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx("div",{className:"shrink-0 pt-0.5",children:d.jsx(M1,{status:n.status})}),d.jsx("div",{className:"min-w-0 flex-1",children:d.jsxs("div",{className:"mb-1 flex flex-wrap items-center gap-2",children:[d.jsx("span",{className:"font-medium",children:n.author}),n.file&&d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[n.file,n.line?`:${n.line}`:""]}),d.jsx("span",{className:"text-[11px] text-muted-foreground",children:n.type.replace("_"," ")}),f&&d.jsx("span",{className:"text-[11px] text-muted-foreground",children:f})]})}),d.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[!s&&(n.status==="failed"||n.status==="warning")&&d.jsx("button",{onClick:()=>u.mutate(),disabled:u.isPending,"data-testid":`retry-${n.id}`,className:"px-1.5 py-0.5 text-[10px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background border border-border text-muted-foreground disabled:opacity-30",children:"R"}),d.jsx(d1,{asChild:!0,children:d.jsx("button",{"data-testid":`toggle-${n.id}`,className:"px-1.5 py-0.5 text-[10px] uppercase tracking-wider text-muted-foreground transition-colors hover:bg-foreground hover:text-background border border-border",children:"↕"})}),!s&&["accept","reject","flag"].map(h=>d.jsx("button",{onClick:()=>l.mutate(h),"data-testid":`override-${h}-${n.id}`,className:`px-1.5 py-0.5 text-[10px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background ${n.decision===h?"bg-foreground text-background":"border border-border text-muted-foreground"}`,children:h.charAt(0)},h))]})]})}),d.jsx(f1,{children:d.jsxs("div",{className:"px-4 pb-3",children:[n.bodyHtml?d.jsx("div",{className:"feedback-markdown text-[12px] leading-relaxed",dangerouslySetInnerHTML:{__html:n.bodyHtml}}):d.jsx("p",{className:"whitespace-pre-wrap text-[12px] leading-relaxed text-foreground/80",children:n.body}),(n.statusReason||n.decisionReason)&&d.jsx("p",{className:"mt-2 text-[11px] text-muted-foreground",children:n.statusReason||n.decisionReason})]})})]})}function F1({prId:n}){const o=x.useRef(null),{data:s=[]}=St({queryKey:["/api/logs",n??"all"],queryFn:async()=>{const l=n?`/api/logs?prId=${encodeURIComponent(n)}`:"/api/logs";return(await ct("GET",l)).json()},refetchInterval:1500});return x.useEffect(()=>{const l=o.current;l&&(l.scrollTop=l.scrollHeight)},[s.length,n]),d.jsx("div",{className:"flex h-full flex-col",children:d.jsx("div",{ref:o,className:"flex-1 overflow-y-auto p-4 font-mono text-[11px] leading-relaxed",children:s.length===0?d.jsx("span",{className:"text-muted-foreground",children:"No log entries."}):s.map(l=>d.jsxs("div",{className:"border-b border-border/60 py-2 last:border-b-0","data-testid":`log-${l.id}`,children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-[10px] uppercase tracking-wider text-muted-foreground",children:[d.jsx("span",{children:Nr(l.timestamp)}),d.jsx("span",{className:l.level==="error"?"text-destructive":l.level==="warn"?"text-foreground/80":"text-foreground/55",children:l.level}),l.phase&&d.jsx("span",{className:"border border-border px-1 py-0",children:l.phase}),l.runId&&d.jsxs("span",{className:"normal-case text-foreground/45",children:["run ",l.runId.slice(0,8)]})]}),d.jsx("div",{className:"mt-1 break-words text-foreground/75",children:l.message}),l.metadata&&Object.keys(l.metadata).length>0&&d.jsx("pre",{className:"mt-1 whitespace-pre-wrap break-all text-[10px] text-muted-foreground",children:JSON.stringify(l.metadata,null,2)})]},l.id))})})}function z1({pr:n,config:o,healingSessions:s}){const l=_1(s,n.id),u=l?A1(l):null,f=u?fp[u.tone]:fp.neutral;return d.jsxs("div",{className:"shrink-0 border-b border-border px-4 py-3","data-testid":"panel-ci-healing",children:[d.jsxs("div",{className:"flex items-start justify-between gap-3",children:[d.jsxs("div",{className:"min-w-0",children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:"CI healing"}),d.jsx("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:u?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:`inline-flex border px-1.5 py-0.5 text-[11px] uppercase tracking-wider ${f}`,children:u.stateLabel}),d.jsx("span",{className:"text-[11px] text-muted-foreground",children:u.attemptSummary})]}):d.jsx("span",{className:"text-[11px] text-muted-foreground",children:o?.autoHealCI===!1?"Automatic CI healing is disabled in settings.":"No healing session yet for this PR."})})]}),l&&d.jsxs("span",{className:"shrink-0 text-[10px] text-muted-foreground",children:["head ",l.currentHeadSha.slice(0,7)]})]}),u?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"mt-2 grid gap-1 text-[11px] text-muted-foreground",children:[u.reasonSummary&&d.jsxs("div",{children:["Reason: ",u.reasonSummary]}),d.jsx("div",{children:u.statusHint}),d.jsxs("div",{children:["Attempts: ",u.attemptSummary,l?.latestFingerprint?` · fingerprint ${l.latestFingerprint}`:""]})]}),u.actions.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:u.actions.map(p=>d.jsx("button",{type:"button",disabled:!0,title:p.hint,className:`border px-2 py-0.5 text-[10px] uppercase tracking-wider transition-colors ${p.available?"border-border text-foreground/70 hover:bg-muted":"border-border text-muted-foreground/60"} disabled:opacity-100`,children:p.label},p.label))}),d.jsx("div",{className:"mt-1 text-[10px] text-muted-foreground",children:"Operator controls are read-only until healing action endpoints are added."})]})]}):o?.autoHealCI!==!1&&d.jsx("div",{className:"mt-2 text-[11px] text-muted-foreground",children:"The watcher will create a healing session when a failing check is classified as healable."})]})}function $1({prId:n}){const[o,s]=x.useState("ask");return d.jsxs("div",{className:"w-80 shrink-0 border-l border-border flex flex-col",children:[d.jsxs("div",{className:"flex border-b border-border",children:[d.jsx("button",{onClick:()=>s("ask"),"data-testid":"tab-ask",className:`flex-1 px-3 py-2 text-[11px] uppercase tracking-wider transition-colors ${o==="ask"?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:"Ask Agent"}),d.jsx("button",{onClick:()=>s("activity"),"data-testid":"tab-activity",className:`flex-1 px-3 py-2 text-[11px] uppercase tracking-wider transition-colors ${o==="activity"?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:"Activity"})]}),d.jsx("div",{className:"flex-1 overflow-hidden",children:o==="activity"?d.jsx(F1,{prId:n}):n?d.jsx(U1,{prId:n}):d.jsx("div",{className:"flex h-full items-center justify-center text-[12px] text-muted-foreground",children:"Select a PR to ask questions."})})]})}function U1({prId:n}){const[o,s]=x.useState(""),l=x.useRef(null),{data:u=[]}=St({queryKey:["/api/prs",n,"questions"],refetchInterval:2e3}),f=bt({mutationFn:p=>ct("POST",`/api/prs/${n}/questions`,{question:p}).then(h=>h.json()),onSuccess:()=>{Ee.invalidateQueries({queryKey:["/api/prs",n,"questions"]}),s("")}});return x.useEffect(()=>{const p=l.current;p&&(p.scrollTop=p.scrollHeight)},[u.length,u[u.length-1]?.status]),d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsx("div",{className:"border-b border-border px-4 py-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:"Ask Agent"}),d.jsx("div",{ref:l,className:"flex-1 overflow-y-auto p-4 space-y-3",children:u.length===0?d.jsx("span",{className:"text-[12px] text-muted-foreground",children:"Ask questions about this PR — the agent will read activity logs, feedback, and status to answer."}):u.map(p=>d.jsxs("div",{className:"space-y-1.5","data-testid":`question-${p.id}`,children:[d.jsxs("div",{className:"text-[12px]",children:[d.jsx("span",{className:"font-medium text-foreground/90",children:"Q: "}),d.jsx("span",{className:"text-foreground/80",children:p.question})]}),p.status==="pending"||p.status==="answering"?d.jsx("div",{className:"text-[11px] text-muted-foreground animate-pulse",children:"Agent is thinking..."}):p.status==="error"?d.jsxs("div",{className:"text-[11px] text-destructive",children:["Error: ",p.error||"Unknown error"]}):d.jsx("div",{className:"text-[12px] leading-relaxed text-foreground/75 whitespace-pre-wrap border-l-2 border-border pl-3",children:p.answer}),d.jsxs("div",{className:"text-[10px] text-muted-foreground",children:[Nr(p.createdAt),p.answeredAt&&` — answered ${Nr(p.answeredAt)}`]})]},p.id))}),d.jsxs("form",{onSubmit:p=>{p.preventDefault(),o.trim()&&!f.isPending&&f.mutate(o.trim())},className:"border-t border-border p-3",children:[d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{type:"text",value:o,onChange:p=>s(p.target.value),placeholder:"Was the review done? Why did this fail?","data-testid":"input-question",className:"flex-1 border border-border bg-transparent px-2 py-1 text-[12px] placeholder:text-muted-foreground/50 focus:border-foreground focus:outline-none"}),d.jsx("button",{type:"submit",disabled:f.isPending||!o.trim(),"data-testid":"button-ask",className:"border border-border px-2 py-1 text-[11px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:f.isPending?"...":"Ask"})]}),f.isError&&d.jsx("div",{className:"mt-1 text-[11px] text-destructive",children:dm(f.error)})]})]})}function dm(n){if(!(n instanceof Error))return String(n);const o=n.message.replace(/^\d+:\s*/,"").trim();if(!o)return"Request failed";try{const s=JSON.parse(o);if(typeof s.error=="string")return s.error;if(typeof s.message=="string")return s.message}catch{}return o}function Vn(n,o){Zt({variant:"destructive",title:n,description:dm(o)})}function H1(){const[n,o]=x.useState(null),[s,l]=x.useState(""),[u,f]=x.useState(""),[p,h]=x.useState("active"),{data:g=[],isLoading:v}=St({queryKey:["/api/prs"],refetchInterval:3e3}),{data:y=[],isLoading:b}=St({queryKey:["/api/prs/archived"],refetchInterval:1e4}),{data:S}=St({queryKey:["/api/config"],refetchInterval:5e3}),{data:R=[]}=St({queryKey:["/api/healing-sessions"],queryFn:async()=>Ey("/api/healing-sessions"),refetchInterval:5e3}),{data:T=[]}=St({queryKey:["/api/repos"],refetchInterval:5e3}),k=p==="active"?g:y,N=p==="archived";x.useEffect(()=>{if(k.length===0){n!==null&&o(null);return}(!n||!k.some(F=>F.id===n))&&o(k[0].id)},[k,n]);const j=k.find(F=>F.id===n)??null,I=j?im(j):!0,M=bt({mutationFn:async F=>(await ct("POST","/api/prs",{url:F})).json(),onSuccess:F=>{Ee.invalidateQueries({queryKey:["/api/prs"]}),Ee.invalidateQueries({queryKey:["/api/onboarding/status"]}),l(""),o(F.id)},onError:F=>{Vn("Could not add PR",F)}}),D=bt({mutationFn:async F=>(await ct("POST",`/api/prs/${F}/apply`)).json(),onSuccess:()=>{Ee.invalidateQueries({queryKey:["/api/prs"]}),Ee.invalidateQueries({queryKey:["/api/logs"]})},onError:F=>{Vn("Could not run babysitter",F)}}),$=bt({mutationFn:async({id:F,enabled:re})=>(await ct("PATCH",`/api/prs/${F}/watch`,{enabled:re})).json(),onSuccess:()=>{Ee.invalidateQueries({queryKey:["/api/prs"]}),Ee.invalidateQueries({queryKey:["/api/prs/archived"]}),Ee.invalidateQueries({queryKey:["/api/logs"]})},onError:F=>{Vn("Could not update PR watch state",F)}}),B=bt({mutationFn:async F=>(await ct("PATCH","/api/config",F)).json(),onSuccess:()=>{Ee.invalidateQueries({queryKey:["/api/config"]}),Ee.invalidateQueries({queryKey:["/api/onboarding/status"]})},onError:F=>{Vn("Could not update settings",F)}}),V=bt({mutationFn:async()=>(await ct("POST","/api/repos/sync")).json(),onSuccess:()=>{Ee.invalidateQueries({queryKey:["/api/prs"]}),Ee.invalidateQueries({queryKey:["/api/repos"]}),Ee.invalidateQueries({queryKey:["/api/onboarding/status"]})},onError:F=>{Vn("Could not sync repositories",F)}}),ne=bt({mutationFn:async F=>(await ct("POST","/api/repos",{repo:F})).json(),onSuccess:()=>{Ee.invalidateQueries({queryKey:["/api/repos"]}),Ee.invalidateQueries({queryKey:["/api/prs"]}),Ee.invalidateQueries({queryKey:["/api/onboarding/status"]}),f("")},onError:F=>{Vn("Could not watch repository",F)}});return d.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[d.jsxs("header",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-2.5",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-label":"PR Feedback Agent",children:[d.jsx("rect",{x:"1",y:"1",width:"14",height:"14",stroke:"currentColor",strokeWidth:"1.5"}),d.jsx("path",{d:"M4 5h8M4 8h5M4 11h6",stroke:"currentColor",strokeWidth:"1"})]}),d.jsx("span",{className:"text-sm font-medium tracking-tight",children:"code factory"}),d.jsx("span",{className:"border border-border px-1.5 py-0 text-[10px] uppercase tracking-wider text-muted-foreground",children:"autonomous"}),d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["poll ",I1(S?.pollIntervalMs)]}),d.jsx(Nn,{href:"/changelogs",className:"text-[11px] text-muted-foreground hover:text-foreground focus:outline-none",children:"changelogs"}),d.jsx(Nn,{href:"/releases",className:"text-[11px] text-muted-foreground hover:text-foreground focus:outline-none",children:"releases"})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[g.length," PR",g.length!==1?"s":""," in ",T.length," repo",T.length!==1?"s":""]}),d.jsx("label",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:"Agent"}),d.jsxs("select",{value:S?.codingAgent??"codex",onChange:F=>{const re=F.target.value;B.mutate({codingAgent:re})},disabled:B.isPending,"data-testid":"select-coding-agent",className:"border border-border bg-transparent px-2 py-0.5 text-[11px] focus:border-foreground focus:outline-none disabled:opacity-50",children:[d.jsx("option",{value:"codex",children:"codex"}),d.jsx("option",{value:"claude",children:"claude"})]}),d.jsxs("label",{className:"flex items-center gap-1 text-[11px] text-muted-foreground",children:[d.jsx("input",{type:"checkbox",checked:S?.autoResolveMergeConflicts??!0,onChange:F=>B.mutate({autoResolveMergeConflicts:F.target.checked}),disabled:B.isPending,"data-testid":"checkbox-auto-resolve-conflicts",className:"accent-foreground"}),"Auto-resolve conflicts"]}),d.jsxs("label",{className:"flex items-center gap-1 text-[11px] text-muted-foreground",children:[d.jsx("input",{type:"checkbox",checked:S?.autoUpdateDocs??!0,onChange:F=>B.mutate({autoUpdateDocs:F.target.checked}),disabled:B.isPending,"data-testid":"checkbox-auto-update-docs",className:"accent-foreground"}),"Auto-update docs"]}),d.jsx(Nn,{href:"/settings",className:"border border-border px-2 py-0.5 text-[11px] text-muted-foreground hover:text-foreground",children:"settings"})]})]}),d.jsx(v1,{}),d.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[d.jsxs("div",{className:"flex w-80 shrink-0 flex-col border-r border-border",children:[d.jsxs("div",{className:"flex border-b border-border",children:[d.jsxs("button",{onClick:()=>h("active"),"data-testid":"tab-active",className:`flex-1 px-3 py-2 text-[11px] uppercase tracking-wider transition-colors ${p==="active"?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:["Active (",g.length,")"]}),d.jsxs("button",{onClick:()=>h("archived"),"data-testid":"tab-archived",className:`flex-1 px-3 py-2 text-[11px] uppercase tracking-wider transition-colors ${p==="archived"?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"}`,children:["Archived (",y.length,")"]})]}),!N&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"border-b border-border px-3 py-2 text-[11px] text-muted-foreground",children:"Add a PR or watch a repo. Sync and babysit start automatically."}),d.jsx("form",{onSubmit:F=>{F.preventDefault(),s.trim()&&M.mutate(s.trim())},className:"border-b border-border p-3",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{type:"text",value:s,onChange:F=>l(F.target.value),placeholder:"github.com/owner/repo/pull/123","data-testid":"input-add-pr",className:"flex-1 border border-border bg-transparent px-2 py-1 text-[12px] placeholder:text-muted-foreground/50 focus:border-foreground focus:outline-none"}),d.jsx("button",{type:"submit",disabled:M.isPending||!s.trim(),"data-testid":"button-add-pr",className:"border border-border px-2 py-1 text-[11px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:"Add"})]})}),d.jsxs("form",{onSubmit:F=>{F.preventDefault(),u.trim()&&ne.mutate(u.trim())},className:"border-b border-border p-3",children:[d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{type:"text",value:u,onChange:F=>f(F.target.value),placeholder:"owner/repo","data-testid":"input-add-repo",className:"flex-1 border border-border bg-transparent px-2 py-1 text-[12px] placeholder:text-muted-foreground/50 focus:border-foreground focus:outline-none"}),d.jsx("button",{type:"submit",disabled:ne.isPending||!u.trim(),"data-testid":"button-add-repo",className:"border border-border px-2 py-1 text-[11px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:"Watch"})]}),d.jsxs("div",{className:"mt-3",children:[d.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[d.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:"Tracked repositories"}),d.jsx("button",{type:"button",onClick:()=>V.mutate(),disabled:V.isPending,"data-testid":"button-sync-repos",className:"border border-border px-1.5 py-0.5 text-[10px] uppercase tracking-wider text-muted-foreground transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:V.isPending?"Fetching…":"Fetch"})]}),T.length===0?d.jsx("div",{className:"text-[11px] text-muted-foreground",children:"No repositories being watched yet."}):d.jsx("div",{className:"space-y-1 text-[12px]",children:T.map(F=>d.jsx("a",{href:p1(F),target:"_blank",rel:"noopener noreferrer","data-testid":`tracked-repo-${F.replace("/","-")}`,className:"block break-all text-foreground/75 underline decoration-border underline-offset-2 transition-colors hover:text-foreground",children:F},F))})]})]})]}),d.jsx("div",{className:"flex-1 overflow-y-auto",children:(N?b:v)?d.jsx("div",{className:"p-4 text-[12px] text-muted-foreground",children:"Loading..."}):k.length===0?d.jsx("div",{className:"p-4 text-[12px] text-muted-foreground",children:N?"No archived PRs. Closed PRs are archived automatically.":"No PRs tracked yet. Add a repository to watch or add a PR URL."}):k.map(F=>d.jsx(L1,{pr:F,isSelected:F.id===n,onSelect:()=>o(F.id)},F.id))})]}),d.jsx("div",{className:"flex flex-1 flex-col overflow-hidden",children:j?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"shrink-0 border-b border-border px-4 py-3",children:[d.jsxs("div",{className:"mb-1 flex items-start justify-between gap-4",children:[d.jsxs("div",{className:"min-w-0",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(am,{status:j.status}),d.jsx("span",{className:"truncate font-medium",children:j.title}),d.jsx(cm,{pr:j}),!I&&d.jsx($a,{}),d.jsxs("a",{href:j.url,target:"_blank",rel:"noopener noreferrer",className:"shrink-0 text-[11px] text-muted-foreground underline decoration-border underline-offset-2 transition-colors hover:text-foreground",children:[j.repo,"#",j.number]})]}),d.jsxs("div",{className:"mt-1 flex flex-wrap gap-x-4 gap-y-1 text-[11px] text-muted-foreground",children:[d.jsxs("span",{children:["status: ",lm(j.status)]}),!I&&d.jsx($a,{}),d.jsxs("span",{children:[j.feedbackItems.length," items"]}),j.feedbackItems.length>0&&(()=>{const F=No(j.feedbackItems);return d.jsxs(d.Fragment,{children:[F.queued>0&&d.jsxs("span",{children:[F.queued," queued"]}),F.inProgress>0&&d.jsxs("span",{children:[F.inProgress," in progress"]}),F.failed>0&&d.jsxs("span",{children:[F.failed," failed"]}),F.warning>0&&d.jsxs("span",{children:[F.warning," warnings"]})]})})(),j.testsPassed!==null&&d.jsxs("span",{children:["tests: ",j.testsPassed?"pass":"fail"]}),j.lintPassed!==null&&d.jsxs("span",{children:["lint: ",j.lintPassed?"pass":"fail"]}),j.lastChecked&&d.jsxs("span",{children:["checked ",Nr(j.lastChecked)]})]})]}),!N&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>D.mutate(j.id),disabled:D.isPending||j.status==="processing","data-testid":"button-apply",className:"border border-border px-2 py-0.5 text-[10px] uppercase tracking-wider transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:j.status==="processing"?"Running":"Run now"}),d.jsx("button",{onClick:()=>$.mutate({id:j.id,enabled:!I}),disabled:$.isPending,"data-testid":"button-toggle-watch",className:"border border-border px-2 py-0.5 text-[10px] uppercase tracking-wider text-muted-foreground transition-colors hover:bg-foreground hover:text-background disabled:opacity-30",children:I?"Pause watch":"Resume watch"})]})]}),sm(j.feedbackItems)&&j.status!=="processing"&&No(j.feedbackItems).inProgress===0&&d.jsx(um,{href:j.url,testId:"detail-ready-to-merge",label:"All comments resolved — ready to merge",hint:"Open PR on GitHub →",className:"mt-2 gap-2 px-3 py-1.5 text-[12px] tracking-wider",dotClassName:"h-2 w-2",hintClassName:"text-[11px] normal-case tracking-normal text-green-500/70"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:I?"Background watcher syncs GitHub feedback and pushes approved fixes automatically.":"Background watch is paused for this PR; manual runs still work."})]}),d.jsx(z1,{pr:j,config:S,healingSessions:R}),d.jsx("div",{className:"flex-1 overflow-y-auto",children:j.feedbackItems.length===0?d.jsx("div",{className:"p-4 text-[12px] text-muted-foreground",children:I?"No feedback yet. The watcher will sync GitHub comments automatically.":"No feedback yet. Background watch is paused for this PR."}):j.feedbackItems.map(F=>d.jsx(D1,{item:F,prId:j.id,readOnly:N},F.id))})]}):d.jsx("div",{className:"flex flex-1 items-center justify-center text-[12px] text-muted-foreground",children:"Select a PR from the left panel."})}),d.jsx($1,{prId:n})]})]})}function W1(){const{data:n}=St({queryKey:["/api/config"]}),[o,s]=x.useState(""),[l,u]=x.useState(!1),f=bt({mutationFn:async p=>(await ct("PATCH","/api/config",p)).json(),onSuccess:()=>{Ee.invalidateQueries({queryKey:["/api/config"]}),Ee.invalidateQueries({queryKey:["/api/onboarding/status"]}),Zt({description:"Settings saved."})},onError:p=>{Zt({variant:"destructive",description:`Failed to save: ${p.message}`})}});return d.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[d.jsx("header",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-2.5",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Nn,{href:"/",className:"text-[11px] text-muted-foreground hover:text-foreground",children:"← back"}),d.jsx("span",{className:"text-sm font-medium tracking-tight",children:"settings"})]})}),d.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:d.jsxs("div",{className:"mx-auto flex max-w-2xl flex-col gap-8",children:[d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Agent"}),d.jsx("div",{className:"flex flex-col gap-4 rounded border border-border p-4",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Coding Agent"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:"CLI agent used to apply fixes"})]}),d.jsxs("select",{value:n?.codingAgent??"codex",onChange:p=>{const h=p.target.value;f.mutate({codingAgent:h})},disabled:f.isPending,className:"border border-border bg-transparent px-2 py-1 text-sm focus:border-foreground focus:outline-none disabled:opacity-50",children:[d.jsx("option",{value:"codex",children:"codex"}),d.jsx("option",{value:"claude",children:"claude"})]})]})})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Tuning"}),d.jsxs("div",{className:"flex flex-col gap-4 rounded border border-border p-4",children:[d.jsx(kn,{label:"Max turns",description:"Maximum agent turns per feedback item",value:n?.maxTurns??15,onChange:p=>f.mutate({maxTurns:p}),disabled:f.isPending}),d.jsx(kn,{label:"Poll interval (ms)",description:"How often to check for new feedback",value:n?.pollIntervalMs??12e4,onChange:p=>f.mutate({pollIntervalMs:p}),disabled:f.isPending}),d.jsx(kn,{label:"Batch window (ms)",description:"Time to batch feedback before processing",value:n?.batchWindowMs??3e5,onChange:p=>f.mutate({batchWindowMs:p}),disabled:f.isPending}),d.jsx(kn,{label:"Max changes per run",description:"Limit on concurrent changes",value:n?.maxChangesPerRun??20,onChange:p=>f.mutate({maxChangesPerRun:p}),disabled:f.isPending}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Auto-update docs"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:"Automatically assess whether tracked PRs need documentation updates."})]}),d.jsx("input",{type:"checkbox",checked:n?.autoUpdateDocs??!0,onChange:p=>f.mutate({autoUpdateDocs:p.target.checked}),disabled:f.isPending,className:"h-4 w-4 accent-foreground"})]})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"CI Healing"}),d.jsxs("div",{className:"flex flex-col gap-4 rounded border border-border p-4",children:[d.jsxs("div",{className:"flex items-center justify-between gap-3",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Automatic CI healing"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:"Classify healable CI failures and run bounded repair attempts in isolated worktrees."})]}),d.jsx("input",{type:"checkbox",checked:n?.autoHealCI??!1,onChange:p=>f.mutate({autoHealCI:p.target.checked}),disabled:f.isPending,className:"h-4 w-4 accent-foreground"})]}),d.jsx(kn,{label:"Max healing attempts per session",description:"Upper bound on repair attempts for a single healing session",value:n?.maxHealingAttemptsPerSession??3,onChange:p=>f.mutate({maxHealingAttemptsPerSession:p}),disabled:f.isPending}),d.jsx(kn,{label:"Max healing attempts per fingerprint",description:"Cap retries for the same failure fingerprint",value:n?.maxHealingAttemptsPerFingerprint??2,onChange:p=>f.mutate({maxHealingAttemptsPerFingerprint:p}),disabled:f.isPending}),d.jsx(kn,{label:"Max concurrent healing runs",description:"How many healing runs can execute at once",value:n?.maxConcurrentHealingRuns??1,onChange:p=>f.mutate({maxConcurrentHealingRuns:p}),disabled:f.isPending}),d.jsx(kn,{label:"Healing cooldown (ms)",description:"Backoff before a cooldowned session can retry",value:n?.healingCooldownMs??3e5,onChange:p=>f.mutate({healingCooldownMs:p}),disabled:f.isPending})]})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Releases"}),d.jsx("div",{className:"flex flex-col gap-4 rounded border border-border p-4",children:d.jsxs("label",{className:"flex items-start justify-between gap-3",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Automatic release creation"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:"Evaluate merged PRs and publish GitHub releases automatically when the agent decides they are release-worthy."})]}),d.jsx("input",{type:"checkbox",checked:n?.autoCreateReleases??!0,onChange:p=>f.mutate({autoCreateReleases:p.target.checked}),disabled:f.isPending,className:"mt-1 accent-foreground","data-testid":"checkbox-auto-create-releases"})]})})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"GitHub"}),d.jsxs("div",{className:"flex flex-col gap-4 rounded border border-border p-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Token"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:n?.githubToken||"not set"})]}),l?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("input",{type:"password",value:o,onChange:p=>s(p.target.value),placeholder:"ghp_...",className:"border border-border bg-transparent px-2 py-1 text-sm focus:border-foreground focus:outline-none"}),d.jsx("button",{onClick:()=>{o&&(f.mutate({githubToken:o}),s(""),u(!1))},disabled:!o||f.isPending,className:"border border-border px-2 py-1 text-xs hover:bg-muted disabled:opacity-50",children:"save"}),d.jsx("button",{onClick:()=>{u(!1),s("")},className:"px-2 py-1 text-xs text-muted-foreground hover:text-foreground",children:"cancel"})]}):d.jsx("button",{onClick:()=>u(!0),className:"border border-border px-2 py-1 text-xs hover:bg-muted",children:"update"})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Trusted reviewers"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:n?.trustedReviewers?.length?n.trustedReviewers.join(", "):"none configured"})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:"Ignored bots"}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:n?.ignoredBots?.length?n.ignoredBots.join(", "):"none configured"})]})]})]})]})})]})}function kn({label:n,description:o,value:s,onChange:l,disabled:u}){return d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx("div",{className:"text-sm",children:n}),d.jsx("div",{className:"text-[11px] text-muted-foreground",children:o})]}),d.jsx("input",{type:"number",value:s,onChange:f=>{const p=parseInt(f.target.value,10);isNaN(p)||l(p)},disabled:u,className:"w-28 border border-border bg-transparent px-2 py-1 text-right text-sm focus:border-foreground focus:outline-none disabled:opacity-50"})]})}function B1(n){return new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function V1(n){const o=n.match(/##\s*Twitter\/X\s*(?:Thread)?\n([\s\S]*?)(?=\n##\s|\s*$)/i),s=n.match(/##\s*LinkedIn\s*(?:\/\s*General)?\n([\s\S]*?)(?=\n##\s|\s*$)/i);return{twitter:o?o[1].trim():null,linkedin:s?s[1].trim():null}}function Q1({text:n}){const[o,s]=x.useState(!1),l=async()=>{try{await navigator.clipboard.writeText(n),s(!0),setTimeout(()=>s(!1),2e3)}catch{}};return d.jsx("button",{onClick:l,className:"border border-border px-2 py-0.5 text-[11px] uppercase tracking-wider text-muted-foreground hover:border-foreground hover:text-foreground focus:outline-none",children:o?"copied":"copy"})}function Sa({title:n,content:o}){return d.jsxs("div",{className:"mt-4",children:[d.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[d.jsx("span",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:n}),d.jsx(Q1,{text:o})]}),d.jsx("pre",{className:"whitespace-pre-wrap border border-border bg-background p-3 text-[12px] leading-relaxed font-mono",children:o})]})}function K1({status:n}){const o=n==="done"?"border-foreground/40 text-foreground":n==="generating"?"border-border text-muted-foreground animate-pulse":"border-destructive/40 text-destructive";return d.jsx("span",{className:`border px-1.5 py-0 text-[10px] uppercase tracking-wider ${o}`,children:n})}function q1({changelog:n}){const[o,s]=x.useState(!1),l=n.content?V1(n.content):null;return d.jsxs("div",{className:"border border-border",children:[d.jsxs("div",{className:"flex cursor-pointer items-center justify-between px-4 py-3 hover:bg-muted/30",onClick:()=>n.status==="done"&&s(u=>!u),children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(K1,{status:n.status}),d.jsx("span",{className:"text-sm font-medium",children:B1(n.createdAt)}),d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[n.triggerCount," PR",n.triggerCount!==1?"s":""," merged"]}),d.jsx("span",{className:"text-[11px] text-muted-foreground",children:n.prSummaries.map(u=>`#${u.number}`).join(" · ")})]}),n.status==="done"&&d.jsx("span",{className:"text-[11px] text-muted-foreground",children:o?"▲":"▼"})]}),o&&n.status==="done"&&d.jsxs("div",{className:"border-t border-border px-4 pb-4 pt-3",children:[n.error&&d.jsx("p",{className:"mb-3 text-[12px] text-destructive",children:n.error}),l?.twitter&&d.jsx(Sa,{title:"Twitter / X Thread",content:l.twitter}),l?.linkedin&&d.jsx(Sa,{title:"LinkedIn / General",content:l.linkedin}),!l?.twitter&&!l?.linkedin&&n.content&&d.jsx(Sa,{title:"Full output",content:n.content})]}),n.status==="error"&&n.error&&d.jsx("div",{className:"border-t border-border px-4 py-3",children:d.jsx("p",{className:"text-[12px] text-destructive",children:n.error})}),n.status==="generating"&&d.jsx("div",{className:"border-t border-border px-4 py-2.5",children:d.jsx("span",{className:"text-[11px] text-muted-foreground",children:"Generating social media post with AI agent…"})})]})}function G1(){const{data:n=[],isLoading:o}=St({queryKey:["/api/changelogs"],refetchInterval:s=>s.state.data?.some(u=>u.status==="generating")?5e3:!1});return d.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[d.jsxs("header",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-2.5",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-label":"PR Feedback Agent",children:[d.jsx("rect",{x:"1",y:"1",width:"14",height:"14",stroke:"currentColor",strokeWidth:"1.5"}),d.jsx("path",{d:"M4 5h8M4 8h5M4 11h6",stroke:"currentColor",strokeWidth:"1"})]}),d.jsx("span",{className:"text-sm font-medium tracking-tight",children:"code factory"}),d.jsx("span",{className:"border border-border px-1.5 py-0 text-[10px] uppercase tracking-wider text-muted-foreground",children:"changelogs"})]}),d.jsx(Nn,{href:"/",className:"text-[11px] text-muted-foreground hover:text-foreground focus:outline-none",children:"← back to dashboard"})]}),d.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:d.jsxs("div",{className:"mx-auto max-w-3xl",children:[d.jsxs("div",{className:"mb-5",children:[d.jsx("h1",{className:"text-base font-medium",children:"Social Media Changelogs"}),d.jsx("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"Generated automatically every 5 PRs merged to main. Copy and paste into Twitter/X or LinkedIn."})]}),!o&&n.length===0&&d.jsxs("div",{className:"border border-border px-4 py-8 text-center",children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"No changelogs yet."}),d.jsx("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"A post will be generated automatically after every 5 PRs are merged to main."})]}),o&&d.jsx("div",{className:"border border-border px-4 py-6 text-center",children:d.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Loading…"})}),d.jsx("div",{className:"flex flex-col gap-2",children:n.map(s=>d.jsx(q1,{changelog:s},s.id))})]})})]})}const Y1=new Set(["detected","evaluating","proposed","publishing"]);function fm(n){return Y1.has(n)}function X1(n){return n==="published"||n==="skipped"||n==="error"}function Z1(n){return typeof n=="object"&&n!==null&&"status"in n&&typeof n.status=="string"}function Ca(n){if(!n)return"n/a";const o=new Date(n);return Number.isNaN(o.getTime())?"n/a":o.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}function J1(n){return n?n.slice(0,7):"n/a"}function eb({status:n}){const o=n==="published"?"border-foreground/40 text-foreground":n==="skipped"?"border-border text-muted-foreground":n==="error"?"border-destructive/40 text-destructive":fm(n)?"border-border text-muted-foreground animate-pulse":"border-border text-muted-foreground";return d.jsx("span",{className:`border px-1.5 py-0 text-[10px] uppercase tracking-wider ${o}`,children:n})}function tb({text:n}){const[o,s]=x.useState(!1),l=async()=>{try{await navigator.clipboard.writeText(n),s(!0),setTimeout(()=>s(!1),1500)}catch(u){const f=u instanceof Error?u.message:"Clipboard write failed";Zt({variant:"destructive",description:`Failed to copy: ${f}`})}};return d.jsx("button",{onClick:l,className:"border border-border px-2 py-0.5 text-[11px] uppercase tracking-wider text-muted-foreground hover:border-foreground hover:text-foreground",children:o?"copied":"copy"})}function nb({run:n,onRetry:o,retryPending:s}){const[l,u]=x.useState(!1),p=!(!!n.decisionReason||!!n.releaseTitle||!!n.releaseNotes||!!n.error||!!n.githubReleaseUrl||n.includedPrs.length>0)&&X1(n.status);return d.jsxs("div",{className:"border border-border",children:[d.jsxs("button",{className:"flex w-full items-center justify-between px-4 py-3 text-left hover:bg-muted/30",onClick:()=>u(h=>!h),children:[d.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[d.jsx(eb,{status:n.status}),d.jsx("span",{className:"truncate text-sm font-medium",children:n.repo}),d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["#",n.triggerPrNumber]}),n.proposedVersion&&d.jsx("span",{className:"border border-border px-1.5 py-0 text-[10px] uppercase tracking-wider text-muted-foreground",children:n.proposedVersion}),!n.proposedVersion&&n.recommendedBump&&d.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["bump ",n.recommendedBump]})]}),d.jsxs("div",{className:"flex items-center gap-3 text-[11px] text-muted-foreground",children:[d.jsx("span",{children:Ca(n.createdAt)}),d.jsx("span",{children:l?"▲":"▼"})]})]}),l&&d.jsxs("div",{className:"border-t border-border px-4 pb-4 pt-3",children:[d.jsxs("div",{className:"mb-3 text-[12px] text-muted-foreground",children:["Trigger PR:"," ",d.jsxs("a",{href:n.triggerPrUrl,target:"_blank",rel:"noreferrer noopener",className:"underline underline-offset-2",children:["#",n.triggerPrNumber," ",n.triggerPrTitle]})]}),n.decisionReason&&d.jsx("p",{className:"mb-3 text-[12px] leading-relaxed",children:n.decisionReason}),n.releaseTitle&&d.jsxs("p",{className:"mb-3 text-[12px]",children:[d.jsx("span",{className:"text-muted-foreground",children:"Release title:"})," ",d.jsx("span",{children:n.releaseTitle})]}),d.jsxs("div",{className:"mb-3 grid grid-cols-1 gap-2 text-[12px] text-muted-foreground md:grid-cols-2",children:[d.jsxs("div",{children:["Base branch: ",n.baseBranch||"n/a"]}),d.jsxs("div",{children:["Trigger SHA: ",J1(n.triggerMergeSha)]}),d.jsxs("div",{children:["Merged at: ",Ca(n.triggerMergedAt)]}),d.jsxs("div",{children:["Updated: ",Ca(n.updatedAt)]})]}),n.includedPrs.length>0&&d.jsxs("div",{className:"mb-3",children:[d.jsxs("div",{className:"mb-1.5 text-[11px] uppercase tracking-wider text-muted-foreground",children:["Included PRs (",n.includedPrs.length,")"]}),d.jsx("div",{className:"space-y-1 border border-border p-3 text-[12px]",children:n.includedPrs.map(h=>d.jsxs("div",{className:"flex items-center justify-between gap-3",children:[d.jsxs("span",{className:"truncate",children:["#",h.number," ",h.title]}),d.jsx("a",{href:h.url,target:"_blank",rel:"noreferrer noopener",className:"text-muted-foreground hover:text-foreground",children:"open"})]},`${h.mergeSha}-${h.number}`))})]}),n.releaseNotes&&d.jsxs("div",{className:"mb-3",children:[d.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[d.jsx("span",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:"Release Notes"}),d.jsx(tb,{text:n.releaseNotes})]}),d.jsx("pre",{className:"whitespace-pre-wrap border border-border bg-background p-3 text-[12px] leading-relaxed font-mono",children:n.releaseNotes})]}),n.error&&d.jsx("div",{className:"mb-3 border border-destructive/40 bg-destructive/5 p-3 text-[12px] text-destructive",children:n.error}),d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.githubReleaseUrl&&d.jsx("a",{href:n.githubReleaseUrl,target:"_blank",rel:"noreferrer noopener",className:"border border-border px-2 py-1 text-[11px] uppercase tracking-wider text-muted-foreground hover:text-foreground",children:"open release"}),n.status==="error"&&d.jsx("button",{onClick:()=>o(n.id),disabled:s,className:"border border-border px-2 py-1 text-[11px] uppercase tracking-wider text-muted-foreground hover:text-foreground disabled:opacity-50",children:"retry"})]}),p&&d.jsx("p",{className:"mt-2 text-[12px] text-muted-foreground",children:"No details available yet."})]})]})}function rb(){const{data:n=[],isLoading:o}=St({queryKey:["/api/releases"],refetchInterval:l=>{const u=l.state.data;return Array.isArray(u)&&u.some(f=>Z1(f)&&fm(f.status))?5e3:!1}}),s=bt({mutationFn:async l=>(await ct("POST",`/api/releases/${l}/retry`)).json(),onSuccess:()=>{Ee.invalidateQueries({queryKey:["/api/releases"]}),Zt({description:"Retry queued."})},onError:l=>{Zt({variant:"destructive",description:`Retry failed: ${l.message}`})}});return d.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[d.jsxs("header",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-2.5",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-label":"Release Management",children:[d.jsx("rect",{x:"1",y:"1",width:"14",height:"14",stroke:"currentColor",strokeWidth:"1.5"}),d.jsx("path",{d:"M4 6h8M4 9h8M4 12h5",stroke:"currentColor",strokeWidth:"1"})]}),d.jsx("span",{className:"text-sm font-medium tracking-tight",children:"code factory"}),d.jsx("span",{className:"border border-border px-1.5 py-0 text-[10px] uppercase tracking-wider text-muted-foreground",children:"releases"})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Nn,{href:"/settings",className:"text-[11px] text-muted-foreground hover:text-foreground focus:outline-none",children:"settings"}),d.jsx(Nn,{href:"/",className:"text-[11px] text-muted-foreground hover:text-foreground focus:outline-none",children:"← back to dashboard"})]})]}),d.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:d.jsxs("div",{className:"mx-auto max-w-4xl",children:[d.jsxs("div",{className:"mb-5",children:[d.jsx("h1",{className:"text-base font-medium",children:"Release Management"}),d.jsx("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"Every merged PR can trigger agent evaluation. This page shows release decisions, version bumps, notes, and publishing outcomes."})]}),o&&d.jsx("div",{className:"border border-border px-4 py-6 text-center",children:d.jsx("p",{className:"text-[12px] text-muted-foreground",children:"Loading…"})}),!o&&n.length===0&&d.jsxs("div",{className:"border border-border px-4 py-8 text-center",children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"No release runs yet."}),d.jsx("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"Runs appear after merged PRs are evaluated for release-worthiness."})]}),d.jsx("div",{className:"flex flex-col gap-2",children:n.map(l=>d.jsx(nb,{run:l,onRetry:u=>s.mutate(u),retryPending:s.isPending},l.id))})]})})]})}const pm=x.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:pt("shadcn-card rounded-xl border bg-card border-card-border text-card-foreground shadow-sm",n),...o}));pm.displayName="Card";const ob=x.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:pt("flex flex-col space-y-1.5 p-6",n),...o}));ob.displayName="CardHeader";const sb=x.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:pt("text-2xl font-semibold leading-none tracking-tight",n),...o}));sb.displayName="CardTitle";const ib=x.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:pt("text-sm text-muted-foreground",n),...o}));ib.displayName="CardDescription";const hm=x.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:pt("p-6 pt-0",n),...o}));hm.displayName="CardContent";const lb=x.forwardRef(({className:n,...o},s)=>d.jsx("div",{ref:s,className:pt("flex items-center p-6 pt-0",n),...o}));lb.displayName="CardFooter";function ab(){return d.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:d.jsx(pm,{className:"w-full max-w-md mx-4",children:d.jsxs(hm,{className:"pt-6",children:[d.jsxs("div",{className:"flex mb-4 gap-2",children:[d.jsx(Ix,{className:"h-8 w-8 text-red-500"}),d.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),d.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}function ub(){return d.jsxs(zv,{children:[d.jsx(yo,{path:"/",component:H1}),d.jsx(yo,{path:"/settings",component:W1}),d.jsx(yo,{path:"/changelogs",component:G1}),d.jsx(yo,{path:"/releases",component:rb}),d.jsx(yo,{component:ab})]})}function cb(){return d.jsx(py,{client:Ee,children:d.jsxs(o1,{children:[d.jsx(vw,{}),d.jsx(kp,{hook:Np,children:d.jsx(ub,{})})]})})}window.location.hash||(window.location.hash="#/");xv.createRoot(document.getElementById("root")).render(d.jsx(cb,{}));