function z1(l,r){for(var o=0;o<r.length;o++){const i=r[o];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in l)){const f=Object.getOwnPropertyDescriptor(i,u);f&&Object.defineProperty(l,u,f.get?f:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function o(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 i(u){if(u.ep)return;u.ep=!0;const f=o(u);fetch(u.href,f)}})();function ov(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Hu={exports:{}},$r={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ig;function D1(){if(ig)return $r;ig=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:l,type:i,key:d,ref:u!==void 0?u:null,props:f}}return $r.Fragment=r,$r.jsx=o,$r.jsxs=o,$r}var cg;function k1(){return cg||(cg=1,Hu.exports=D1()),Hu.exports}var y=k1(),Bu={exports:{}},ye={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sg;function L1(){if(sg)return ye;sg=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),E=Symbol.iterator;function C(M){return M===null||typeof M!="object"?null:(M=E&&M[E]||M["@@iterator"],typeof M=="function"?M:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,R={};function T(M,O,G){this.props=M,this.context=O,this.refs=R,this.updater=G||N}T.prototype.isReactComponent={},T.prototype.setState=function(M,O){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,O,"setState")},T.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function A(){}A.prototype=T.prototype;function z(M,O,G){this.props=M,this.context=O,this.refs=R,this.updater=G||N}var q=z.prototype=new A;q.constructor=z,w(q,T.prototype),q.isPureReactComponent=!0;var Q=Array.isArray;function F(){}var Y={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function te(M,O,G){var P=G.ref;return{$$typeof:l,type:M,key:O,ref:P!==void 0?P:null,props:G}}function pe(M,O){return te(M.type,O,M.props)}function de(M){return typeof M=="object"&&M!==null&&M.$$typeof===l}function le(M){var O={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(G){return O[G]})}var ue=/\/+/g;function ce(M,O){return typeof M=="object"&&M!==null&&M.key!=null?le(""+M.key):O.toString(36)}function se(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(F,F):(M.status="pending",M.then(function(O){M.status==="pending"&&(M.status="fulfilled",M.value=O)},function(O){M.status==="pending"&&(M.status="rejected",M.reason=O)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function D(M,O,G,P,W){var ee=typeof M;(ee==="undefined"||ee==="boolean")&&(M=null);var K=!1;if(M===null)K=!0;else switch(ee){case"bigint":case"string":case"number":K=!0;break;case"object":switch(M.$$typeof){case l:case r:K=!0;break;case b:return K=M._init,D(K(M._payload),O,G,P,W)}}if(K)return W=W(M),K=P===""?"."+ce(M,0):P,Q(W)?(G="",K!=null&&(G=K.replace(ue,"$&/")+"/"),D(W,O,G,"",function(Se){return Se})):W!=null&&(de(W)&&(W=pe(W,G+(W.key==null||M&&M.key===W.key?"":(""+W.key).replace(ue,"$&/")+"/")+K)),O.push(W)),1;K=0;var me=P===""?".":P+":";if(Q(M))for(var fe=0;fe<M.length;fe++)P=M[fe],ee=me+ce(P,fe),K+=D(P,O,G,ee,W);else if(fe=C(M),typeof fe=="function")for(M=fe.call(M),fe=0;!(P=M.next()).done;)P=P.value,ee=me+ce(P,fe++),K+=D(P,O,G,ee,W);else if(ee==="object"){if(typeof M.then=="function")return D(se(M),O,G,P,W);throw O=String(M),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return K}function X(M,O,G){if(M==null)return M;var P=[],W=0;return D(M,P,"","",function(ee){return O.call(G,ee,W++)}),P}function B(M){if(M._status===-1){var O=M._result;O=O(),O.then(function(G){(M._status===0||M._status===-1)&&(M._status=1,M._result=G)},function(G){(M._status===0||M._status===-1)&&(M._status=2,M._result=G)}),M._status===-1&&(M._status=0,M._result=O)}if(M._status===1)return M._result.default;throw M._result}var oe=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},ve={map:X,forEach:function(M,O,G){X(M,function(){O.apply(this,arguments)},G)},count:function(M){var O=0;return X(M,function(){O++}),O},toArray:function(M){return X(M,function(O){return O})||[]},only:function(M){if(!de(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ye.Activity=x,ye.Children=ve,ye.Component=T,ye.Fragment=o,ye.Profiler=u,ye.PureComponent=z,ye.StrictMode=i,ye.Suspense=v,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ye.__COMPILER_RUNTIME={__proto__:null,c:function(M){return Y.H.useMemoCache(M)}},ye.cache=function(M){return function(){return M.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(M,O,G){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var P=w({},M.props),W=M.key;if(O!=null)for(ee in O.key!==void 0&&(W=""+O.key),O)!I.call(O,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&O.ref===void 0||(P[ee]=O[ee]);var ee=arguments.length-2;if(ee===1)P.children=G;else if(1<ee){for(var K=Array(ee),me=0;me<ee;me++)K[me]=arguments[me+2];P.children=K}return te(M.type,W,P)},ye.createContext=function(M){return M={$$typeof:d,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:f,_context:M},M},ye.createElement=function(M,O,G){var P,W={},ee=null;if(O!=null)for(P in O.key!==void 0&&(ee=""+O.key),O)I.call(O,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(W[P]=O[P]);var K=arguments.length-2;if(K===1)W.children=G;else if(1<K){for(var me=Array(K),fe=0;fe<K;fe++)me[fe]=arguments[fe+2];W.children=me}if(M&&M.defaultProps)for(P in K=M.defaultProps,K)W[P]===void 0&&(W[P]=K[P]);return te(M,ee,W)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(M){return{$$typeof:m,render:M}},ye.isValidElement=de,ye.lazy=function(M){return{$$typeof:b,_payload:{_status:-1,_result:M},_init:B}},ye.memo=function(M,O){return{$$typeof:h,type:M,compare:O===void 0?null:O}},ye.startTransition=function(M){var O=Y.T,G={};Y.T=G;try{var P=M(),W=Y.S;W!==null&&W(G,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(F,oe)}catch(ee){oe(ee)}finally{O!==null&&G.types!==null&&(O.types=G.types),Y.T=O}},ye.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ye.use=function(M){return Y.H.use(M)},ye.useActionState=function(M,O,G){return Y.H.useActionState(M,O,G)},ye.useCallback=function(M,O){return Y.H.useCallback(M,O)},ye.useContext=function(M){return Y.H.useContext(M)},ye.useDebugValue=function(){},ye.useDeferredValue=function(M,O){return Y.H.useDeferredValue(M,O)},ye.useEffect=function(M,O){return Y.H.useEffect(M,O)},ye.useEffectEvent=function(M){return Y.H.useEffectEvent(M)},ye.useId=function(){return Y.H.useId()},ye.useImperativeHandle=function(M,O,G){return Y.H.useImperativeHandle(M,O,G)},ye.useInsertionEffect=function(M,O){return Y.H.useInsertionEffect(M,O)},ye.useLayoutEffect=function(M,O){return Y.H.useLayoutEffect(M,O)},ye.useMemo=function(M,O){return Y.H.useMemo(M,O)},ye.useOptimistic=function(M,O){return Y.H.useOptimistic(M,O)},ye.useReducer=function(M,O,G){return Y.H.useReducer(M,O,G)},ye.useRef=function(M){return Y.H.useRef(M)},ye.useState=function(M){return Y.H.useState(M)},ye.useSyncExternalStore=function(M,O,G){return Y.H.useSyncExternalStore(M,O,G)},ye.useTransition=function(){return Y.H.useTransition()},ye.version="19.2.0",ye}var ug;function Nf(){return ug||(ug=1,Bu.exports=L1()),Bu.exports}var p=Nf();const Fe=ov(p),iv=z1({__proto__:null,default:Fe},[p]);var qu={exports:{}},Pr={},Vu={exports:{}},Yu={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fg;function U1(){return fg||(fg=1,(function(l){function r(D,X){var B=D.length;D.push(X);e:for(;0<B;){var oe=B-1>>>1,ve=D[oe];if(0<u(ve,X))D[oe]=X,D[B]=ve,B=oe;else break e}}function o(D){return D.length===0?null:D[0]}function i(D){if(D.length===0)return null;var X=D[0],B=D.pop();if(B!==X){D[0]=B;e:for(var oe=0,ve=D.length,M=ve>>>1;oe<M;){var O=2*(oe+1)-1,G=D[O],P=O+1,W=D[P];if(0>u(G,B))P<ve&&0>u(W,G)?(D[oe]=W,D[P]=B,oe=P):(D[oe]=G,D[O]=B,oe=O);else if(P<ve&&0>u(W,B))D[oe]=W,D[P]=B,oe=P;else break e}}return X}function u(D,X){var B=D.sortIndex-X.sortIndex;return B!==0?B:D.id-X.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();l.unstable_now=function(){return d.now()-m}}var v=[],h=[],b=1,x=null,E=3,C=!1,N=!1,w=!1,R=!1,T=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function q(D){for(var X=o(h);X!==null;){if(X.callback===null)i(h);else if(X.startTime<=D)i(h),X.sortIndex=X.expirationTime,r(v,X);else break;X=o(h)}}function Q(D){if(w=!1,q(D),!N)if(o(v)!==null)N=!0,F||(F=!0,le());else{var X=o(h);X!==null&&se(Q,X.startTime-D)}}var F=!1,Y=-1,I=5,te=-1;function pe(){return R?!0:!(l.unstable_now()-te<I)}function de(){if(R=!1,F){var D=l.unstable_now();te=D;var X=!0;try{e:{N=!1,w&&(w=!1,A(Y),Y=-1),C=!0;var B=E;try{t:{for(q(D),x=o(v);x!==null&&!(x.expirationTime>D&&pe());){var oe=x.callback;if(typeof oe=="function"){x.callback=null,E=x.priorityLevel;var ve=oe(x.expirationTime<=D);if(D=l.unstable_now(),typeof ve=="function"){x.callback=ve,q(D),X=!0;break t}x===o(v)&&i(v),q(D)}else i(v);x=o(v)}if(x!==null)X=!0;else{var M=o(h);M!==null&&se(Q,M.startTime-D),X=!1}}break e}finally{x=null,E=B,C=!1}X=void 0}}finally{X?le():F=!1}}}var le;if(typeof z=="function")le=function(){z(de)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,ce=ue.port2;ue.port1.onmessage=de,le=function(){ce.postMessage(null)}}else le=function(){T(de,0)};function se(D,X){Y=T(function(){D(l.unstable_now())},X)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return E},l.unstable_next=function(D){switch(E){case 1:case 2:case 3:var X=3;break;default:X=E}var B=E;E=X;try{return D()}finally{E=B}},l.unstable_requestPaint=function(){R=!0},l.unstable_runWithPriority=function(D,X){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var B=E;E=D;try{return X()}finally{E=B}},l.unstable_scheduleCallback=function(D,X,B){var oe=l.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?oe+B:oe):B=oe,D){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=B+ve,D={id:b++,callback:X,priorityLevel:D,startTime:B,expirationTime:ve,sortIndex:-1},B>oe?(D.sortIndex=B,r(h,D),o(v)===null&&D===o(h)&&(w?(A(Y),Y=-1):w=!0,se(Q,B-oe))):(D.sortIndex=ve,r(v,D),N||C||(N=!0,F||(F=!0,le()))),D},l.unstable_shouldYield=pe,l.unstable_wrapCallback=function(D){var X=E;return function(){var B=E;E=X;try{return D.apply(this,arguments)}finally{E=B}}}})(Yu)),Yu}var dg;function H1(){return dg||(dg=1,Vu.exports=U1()),Vu.exports}var Gu={exports:{}},mt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mg;function B1(){if(mg)return mt;mg=1;var l=Nf();function r(v){var h="https://react.dev/errors/"+v;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(v,h,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:x==null?null:""+x,children:v,containerInfo:h,implementation:b}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,h){if(v==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,mt.createPortal=function(v,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return f(v,h,null,b)},mt.flushSync=function(v){var h=d.T,b=i.p;try{if(d.T=null,i.p=2,v)return v()}finally{d.T=h,i.p=b,i.d.f()}},mt.preconnect=function(v,h){typeof v=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(v,h))},mt.prefetchDNS=function(v){typeof v=="string"&&i.d.D(v)},mt.preinit=function(v,h){if(typeof v=="string"&&h&&typeof h.as=="string"){var b=h.as,x=m(b,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?i.d.S(v,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:x,integrity:E,fetchPriority:C}):b==="script"&&i.d.X(v,{crossOrigin:x,integrity:E,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},mt.preinitModule=function(v,h){if(typeof v=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=m(h.as,h.crossOrigin);i.d.M(v,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(v)},mt.preload=function(v,h){if(typeof v=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,x=m(b,h.crossOrigin);i.d.L(v,b,{crossOrigin:x,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},mt.preloadModule=function(v,h){if(typeof v=="string")if(h){var b=m(h.as,h.crossOrigin);i.d.m(v,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(v)},mt.requestFormReset=function(v){i.d.r(v)},mt.unstable_batchedUpdates=function(v,h){return v(h)},mt.useFormState=function(v,h,b){return d.H.useFormState(v,h,b)},mt.useFormStatus=function(){return d.H.useHostTransitionStatus()},mt.version="19.2.0",mt}var hg;function cv(){if(hg)return Gu.exports;hg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Gu.exports=B1(),Gu.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var pg;function q1(){if(pg)return Pr;pg=1;var l=H1(),r=Nf(),o=cv();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(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 m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(i(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,a=t;;){var c=n.return;if(c===null)break;var s=c.alternate;if(s===null){if(a=c.return,a!==null){n=a;continue}break}if(c.child===s.child){for(s=c.child;s;){if(s===n)return v(c),e;if(s===a)return v(c),t;s=s.sibling}throw Error(i(188))}if(n.return!==a.return)n=c,a=s;else{for(var g=!1,S=c.child;S;){if(S===n){g=!0,n=c,a=s;break}if(S===a){g=!0,a=c,n=s;break}S=S.sibling}if(!g){for(S=s.child;S;){if(S===n){g=!0,n=s,a=c;break}if(S===a){g=!0,a=s,n=c;break}S=S.sibling}if(!g)throw Error(i(189))}}if(n.alternate!==a)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,E=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=de&&e[de]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Symbol.for("react.client.reference");function ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case T:return"Profiler";case R:return"StrictMode";case Q:return"Suspense";case F:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case z:return e.displayName||"Context";case A:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var se=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},oe=[],ve=-1;function M(e){return{current:e}}function O(e){0>ve||(e.current=oe[ve],oe[ve]=null,ve--)}function G(e,t){ve++,oe[ve]=e.current,e.current=t}var P=M(null),W=M(null),ee=M(null),K=M(null);function me(e,t){switch(G(ee,t),G(W,e),G(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Op(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Op(t),e=Mp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}O(P),G(P,e)}function fe(){O(P),O(W),O(ee)}function Se(e){e.memoizedState!==null&&G(K,e);var t=P.current,n=Mp(t,e.type);t!==n&&(G(W,e),G(P,n))}function _e(e){W.current===e&&(O(P),O(W)),K.current===e&&(O(K),Xr._currentValue=B)}var ke,ht;function pt(e){if(ke===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ke=t&&t[1]||"",ht=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ke+e+ht}var xl=!1;function Sl(e,t){if(!e||xl)return"";xl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(V){var H=V}Reflect.construct(e,[],J)}else{try{J.call()}catch(V){H=V}e.call(J.prototype)}}else{try{throw Error()}catch(V){H=V}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(V){if(V&&H&&typeof V.stack=="string")return[V.stack,H.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),g=s[0],S=s[1];if(g&&S){var _=g.split(`
`),U=S.split(`
`);for(c=a=0;a<_.length&&!_[a].includes("DetermineComponentFrameRoot");)a++;for(;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;if(a===_.length||c===U.length)for(a=_.length-1,c=U.length-1;1<=a&&0<=c&&_[a]!==U[c];)c--;for(;1<=a&&0<=c;a--,c--)if(_[a]!==U[c]){if(a!==1||c!==1)do if(a--,c--,0>c||_[a]!==U[c]){var Z=`
`+_[a].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=a&&0<=c);break}}}finally{xl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?pt(n):""}function tr(e,t){switch(e.tag){case 26:case 27:case 5:return pt(e.type);case 16:return pt("Lazy");case 13:return e.child!==t&&t!==null?pt("Suspense Fallback"):pt("Suspense");case 19:return pt("SuspenseList");case 0:case 15:return Sl(e.type,!1);case 11:return Sl(e.type.render,!1);case 1:return Sl(e.type,!0);case 31:return pt("Activity");default:return""}}function id(e){try{var t="",n=null;do t+=tr(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Ec=Object.prototype.hasOwnProperty,Cc=l.unstable_scheduleCallback,Ac=l.unstable_cancelCallback,fb=l.unstable_shouldYield,db=l.unstable_requestPaint,Rt=l.unstable_now,mb=l.unstable_getCurrentPriorityLevel,cd=l.unstable_ImmediatePriority,sd=l.unstable_UserBlockingPriority,mo=l.unstable_NormalPriority,hb=l.unstable_LowPriority,ud=l.unstable_IdlePriority,pb=l.log,gb=l.unstable_setDisableYieldValue,nr=null,Nt=null;function Bn(e){if(typeof pb=="function"&&gb(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(nr,e)}catch{}}var Tt=Math.clz32?Math.clz32:bb,vb=Math.log,yb=Math.LN2;function bb(e){return e>>>=0,e===0?32:31-(vb(e)/yb|0)|0}var ho=256,po=262144,go=4194304;function wl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function vo(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var c=0,s=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=a&134217727;return S!==0?(a=S&~s,a!==0?c=wl(a):(g&=S,g!==0?c=wl(g):n||(n=S&~e,n!==0&&(c=wl(n))))):(S=a&~s,S!==0?c=wl(S):g!==0?c=wl(g):n||(n=a&~e,n!==0&&(c=wl(n)))),c===0?0:t!==0&&t!==c&&(t&s)===0&&(s=c&-c,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:c}function lr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xb(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fd(){var e=go;return go<<=1,(go&62914560)===0&&(go=4194304),e}function Rc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ar(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Sb(e,t,n,a,c,s){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var S=e.entanglements,_=e.expirationTimes,U=e.hiddenUpdates;for(n=g&~n;0<n;){var Z=31-Tt(n),J=1<<Z;S[Z]=0,_[Z]=-1;var H=U[Z];if(H!==null)for(U[Z]=null,Z=0;Z<H.length;Z++){var V=H[Z];V!==null&&(V.lane&=-536870913)}n&=~J}a!==0&&dd(e,a,0),s!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=s&~(g&~t))}function dd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Tt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function md(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Tt(n),c=1<<a;c&t|e[a]&t&&(e[a]|=t),n&=~c}}function hd(e,t){var n=t&-t;return n=(n&42)!==0?1:Nc(n),(n&(e.suspendedLanes|t))!==0?0:n}function Nc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Tc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function pd(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:eg(e.type))}function gd(e,t){var n=X.p;try{return X.p=e,t()}finally{X.p=n}}var qn=Math.random().toString(36).slice(2),it="__reactFiber$"+qn,bt="__reactProps$"+qn,Il="__reactContainer$"+qn,_c="__reactEvents$"+qn,wb="__reactListeners$"+qn,Eb="__reactHandles$"+qn,vd="__reactResources$"+qn,rr="__reactMarker$"+qn;function Oc(e){delete e[it],delete e[bt],delete e[_c],delete e[wb],delete e[Eb]}function Wl(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Il]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Hp(e);e!==null;){if(n=e[it])return n;e=Hp(e)}return t}e=n,n=e.parentNode}return null}function ea(e){if(e=e[it]||e[Il]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function or(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ta(e){var t=e[vd];return t||(t=e[vd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[rr]=!0}var yd=new Set,bd={};function El(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(bd[e]=t,e=0;e<t.length;e++)yd.add(t[e])}var Cb=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),xd={},Sd={};function Ab(e){return Ec.call(Sd,e)?!0:Ec.call(xd,e)?!1:Cb.test(e)?Sd[e]=!0:(xd[e]=!0,!1)}function yo(e,t,n){if(Ab(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function bo(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function pn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rb(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){n=""+g,s.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mc(e){if(!e._valueTracker){var t=wd(e)?"checked":"value";e._valueTracker=Rb(e,t,""+e[t])}}function Ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=wd(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function xo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Nb=/[\n"\\]/g;function Bt(e){return e.replace(Nb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function jc(e,t,n,a,c,s,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?zc(e,g,Ht(t)):n!=null?zc(e,g,Ht(n)):a!=null&&e.removeAttribute("value"),c==null&&s!=null&&(e.defaultChecked=!!s),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Ht(S):e.removeAttribute("name")}function Cd(e,t,n,a,c,s,g,S){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Mc(e);return}n=n!=null?""+Ht(n):"",t=t!=null?""+Ht(t):n,S||t===e.value||(e.value=t),e.defaultValue=t}a=a??c,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=S?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Mc(e)}function zc(e,t,n){t==="number"&&xo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function la(e,t,n,a){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Ht(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,a&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Ad(e,t,n){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ht(n):""}function Rd(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(i(92));if(se(a)){if(1<a.length)throw Error(i(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Ht(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Mc(e)}function aa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Nd(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Tb.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Td(e,t,n){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var c in t)a=t[c],t.hasOwnProperty(c)&&n[c]!==a&&Nd(e,c,a)}else for(var s in t)t.hasOwnProperty(s)&&Nd(e,s,t[s])}function Dc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _b=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ob=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function So(e){return Ob.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function gn(){}var kc=null;function Lc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ra=null,oa=null;function _d(e){var t=ea(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(jc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var c=a[bt]||null;if(!c)throw Error(i(90));jc(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Ed(a)}break e;case"textarea":Ad(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&la(e,!!n.multiple,t,!1)}}}var Uc=!1;function Od(e,t,n){if(Uc)return e(t,n);Uc=!0;try{var a=e(t);return a}finally{if(Uc=!1,(ra!==null||oa!==null)&&(ci(),ra&&(t=ra,e=oa,oa=ra=null,_d(t),e)))for(t=0;t<e.length;t++)_d(e[t])}}function ir(e,t){var n=e.stateNode;if(n===null)return null;var a=n[bt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=!1;if(vn)try{var cr={};Object.defineProperty(cr,"passive",{get:function(){Hc=!0}}),window.addEventListener("test",cr,cr),window.removeEventListener("test",cr,cr)}catch{Hc=!1}var Vn=null,Bc=null,wo=null;function Md(){if(wo)return wo;var e,t=Bc,n=t.length,a,c="value"in Vn?Vn.value:Vn.textContent,s=c.length;for(e=0;e<n&&t[e]===c[e];e++);var g=n-e;for(a=1;a<=g&&t[n-a]===c[s-a];a++);return wo=c.slice(e,1<a?1-a:void 0)}function Eo(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 Co(){return!0}function jd(){return!1}function xt(e){function t(n,a,c,s,g){this._reactName=n,this._targetInst=c,this.type=a,this.nativeEvent=s,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(s):s[S]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Co:jd,this.isPropagationStopped=jd,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Co)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Co)},persist:function(){},isPersistent:Co}),t}var Cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ao=xt(Cl),sr=x({},Cl,{view:0,detail:0}),Mb=xt(sr),qc,Vc,ur,Ro=x({},sr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gc,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!==ur&&(ur&&e.type==="mousemove"?(qc=e.screenX-ur.screenX,Vc=e.screenY-ur.screenY):Vc=qc=0,ur=e),qc)},movementY:function(e){return"movementY"in e?e.movementY:Vc}}),zd=xt(Ro),jb=x({},Ro,{dataTransfer:0}),zb=xt(jb),Db=x({},sr,{relatedTarget:0}),Yc=xt(Db),kb=x({},Cl,{animationName:0,elapsedTime:0,pseudoElement:0}),Lb=xt(kb),Ub=x({},Cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hb=xt(Ub),Bb=x({},Cl,{data:0}),Dd=xt(Bb),qb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vb={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"},Yb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yb[e])?!!t[e]:!1}function Gc(){return Gb}var Xb=x({},sr,{key:function(e){if(e.key){var t=qb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gc,charCode:function(e){return e.type==="keypress"?Eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qb=xt(Xb),Zb=x({},Ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kd=xt(Zb),Kb=x({},sr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gc}),$b=xt(Kb),Pb=x({},Cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jb=xt(Pb),Fb=x({},Ro,{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}),Ib=xt(Fb),Wb=x({},Cl,{newState:0,oldState:0}),ex=xt(Wb),tx=[9,13,27,32],Xc=vn&&"CompositionEvent"in window,fr=null;vn&&"documentMode"in document&&(fr=document.documentMode);var nx=vn&&"TextEvent"in window&&!fr,Ld=vn&&(!Xc||fr&&8<fr&&11>=fr),Ud=" ",Hd=!1;function Bd(e,t){switch(e){case"keyup":return tx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function lx(e,t){switch(e){case"compositionend":return qd(t);case"keypress":return t.which!==32?null:(Hd=!0,Ud);case"textInput":return e=t.data,e===Ud&&Hd?null:e;default:return null}}function ax(e,t){if(ia)return e==="compositionend"||!Xc&&Bd(e,t)?(e=Md(),wo=Bc=Vn=null,ia=!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 Ld&&t.locale!=="ko"?null:t.data;default:return null}}var rx={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 Vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rx[e.type]:t==="textarea"}function Yd(e,t,n,a){ra?oa?oa.push(a):oa=[a]:ra=a,t=pi(t,"onChange"),0<t.length&&(n=new Ao("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var dr=null,mr=null;function ox(e){Cp(e,0)}function No(e){var t=or(e);if(Ed(t))return e}function Gd(e,t){if(e==="change")return t}var Xd=!1;if(vn){var Qc;if(vn){var Zc="oninput"in document;if(!Zc){var Qd=document.createElement("div");Qd.setAttribute("oninput","return;"),Zc=typeof Qd.oninput=="function"}Qc=Zc}else Qc=!1;Xd=Qc&&(!document.documentMode||9<document.documentMode)}function Zd(){dr&&(dr.detachEvent("onpropertychange",Kd),mr=dr=null)}function Kd(e){if(e.propertyName==="value"&&No(mr)){var t=[];Yd(t,mr,e,Lc(e)),Od(ox,t)}}function ix(e,t,n){e==="focusin"?(Zd(),dr=t,mr=n,dr.attachEvent("onpropertychange",Kd)):e==="focusout"&&Zd()}function cx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return No(mr)}function sx(e,t){if(e==="click")return No(t)}function ux(e,t){if(e==="input"||e==="change")return No(t)}function fx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:fx;function hr(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var c=n[a];if(!Ec.call(t,c)||!_t(e[c],t[c]))return!1}return!0}function $d(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pd(e,t){var n=$d(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$d(n)}}function Jd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xo(e.document)}return t}function Kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var dx=vn&&"documentMode"in document&&11>=document.documentMode,ca=null,$c=null,pr=null,Pc=!1;function Id(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pc||ca==null||ca!==xo(a)||(a=ca,"selectionStart"in a&&Kc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),pr&&hr(pr,a)||(pr=a,a=pi($c,"onSelect"),0<a.length&&(t=new Ao("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ca)))}function Al(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sa={animationend:Al("Animation","AnimationEnd"),animationiteration:Al("Animation","AnimationIteration"),animationstart:Al("Animation","AnimationStart"),transitionrun:Al("Transition","TransitionRun"),transitionstart:Al("Transition","TransitionStart"),transitioncancel:Al("Transition","TransitionCancel"),transitionend:Al("Transition","TransitionEnd")},Jc={},Wd={};vn&&(Wd=document.createElement("div").style,"AnimationEvent"in window||(delete sa.animationend.animation,delete sa.animationiteration.animation,delete sa.animationstart.animation),"TransitionEvent"in window||delete sa.transitionend.transition);function Rl(e){if(Jc[e])return Jc[e];if(!sa[e])return e;var t=sa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wd)return Jc[e]=t[n];return e}var em=Rl("animationend"),tm=Rl("animationiteration"),nm=Rl("animationstart"),mx=Rl("transitionrun"),hx=Rl("transitionstart"),px=Rl("transitioncancel"),lm=Rl("transitionend"),am=new Map,Fc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Fc.push("scrollEnd");function $t(e,t){am.set(e,t),El(t,[e])}var To=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qt=[],ua=0,Ic=0;function _o(){for(var e=ua,t=Ic=ua=0;t<e;){var n=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var c=qt[t];qt[t++]=null;var s=qt[t];if(qt[t++]=null,a!==null&&c!==null){var g=a.pending;g===null?c.next=c:(c.next=g.next,g.next=c),a.pending=c}s!==0&&rm(n,c,s)}}function Oo(e,t,n,a){qt[ua++]=e,qt[ua++]=t,qt[ua++]=n,qt[ua++]=a,Ic|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Wc(e,t,n,a){return Oo(e,t,n,a),Mo(e)}function Nl(e,t){return Oo(e,null,null,t),Mo(e)}function rm(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var c=!1,s=e.return;s!==null;)s.childLanes|=n,a=s.alternate,a!==null&&(a.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(c=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,c&&t!==null&&(c=31-Tt(n),e=s.hiddenUpdates,a=e[c],a===null?e[c]=[t]:a.push(t),t.lane=n|536870912),s):null}function Mo(e){if(50<Ur)throw Ur=0,cu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fa={};function gx(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,n,a){return new gx(e,t,n,a)}function es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yn(e,t){var n=e.alternate;return n===null?(n=Ot(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function om(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function jo(e,t,n,a,c,s){var g=0;if(a=e,typeof e=="function")es(e)&&(g=1);else if(typeof e=="string")g=S1(e,n,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Ot(31,n,t,c),e.elementType=te,e.lanes=s,e;case w:return Tl(n.children,c,s,t);case R:g=8,c|=24;break;case T:return e=Ot(12,n,t,c|2),e.elementType=T,e.lanes=s,e;case Q:return e=Ot(13,n,t,c),e.elementType=Q,e.lanes=s,e;case F:return e=Ot(19,n,t,c),e.elementType=F,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:g=10;break e;case A:g=9;break e;case q:g=11;break e;case Y:g=14;break e;case I:g=16,a=null;break e}g=29,n=Error(i(130,e===null?"null":typeof e,"")),a=null}return t=Ot(g,n,t,c),t.elementType=e,t.type=a,t.lanes=s,t}function Tl(e,t,n,a){return e=Ot(7,e,a,t),e.lanes=n,e}function ts(e,t,n){return e=Ot(6,e,null,t),e.lanes=n,e}function im(e){var t=Ot(18,null,null,0);return t.stateNode=e,t}function ns(e,t,n){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var cm=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var n=cm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:id(t)},cm.set(e,t),t)}return{value:e,source:t,stack:id(t)}}var da=[],ma=0,zo=null,gr=0,Yt=[],Gt=0,Yn=null,nn=1,ln="";function bn(e,t){da[ma++]=gr,da[ma++]=zo,zo=e,gr=t}function sm(e,t,n){Yt[Gt++]=nn,Yt[Gt++]=ln,Yt[Gt++]=Yn,Yn=e;var a=nn;e=ln;var c=32-Tt(a)-1;a&=~(1<<c),n+=1;var s=32-Tt(t)+c;if(30<s){var g=c-c%5;s=(a&(1<<g)-1).toString(32),a>>=g,c-=g,nn=1<<32-Tt(t)+c|n<<c|a,ln=s+e}else nn=1<<s|n<<c|a,ln=e}function ls(e){e.return!==null&&(bn(e,1),sm(e,1,0))}function as(e){for(;e===zo;)zo=da[--ma],da[ma]=null,gr=da[--ma],da[ma]=null;for(;e===Yn;)Yn=Yt[--Gt],Yt[Gt]=null,ln=Yt[--Gt],Yt[Gt]=null,nn=Yt[--Gt],Yt[Gt]=null}function um(e,t){Yt[Gt++]=nn,Yt[Gt++]=ln,Yt[Gt++]=Yn,nn=t.id,ln=t.overflow,Yn=e}var ct=null,Ge=null,Te=!1,Gn=null,Xt=!1,rs=Error(i(519));function Xn(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vr(Vt(t,e)),rs}function fm(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[it]=e,t[bt]=a,n){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(n=0;n<Br.length;n++)Ae(Br[n],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),Cd(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),Rd(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Tp(t.textContent,n)?(a.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),a.onScroll!=null&&Ae("scroll",t),a.onScrollEnd!=null&&Ae("scrollend",t),a.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||Xn(e,!0)}function dm(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:ct=ct.return}}function ha(e){if(e!==ct)return!1;if(!Te)return dm(e),Te=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Eu(e.type,e.memoizedProps)),n=!n),n&&Ge&&Xn(e),dm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ge=Up(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ge=Up(e)}else t===27?(t=Ge,al(e.type)?(e=Tu,Tu=null,Ge=e):Ge=t):Ge=ct?Zt(e.stateNode.nextSibling):null;return!0}function _l(){Ge=ct=null,Te=!1}function os(){var e=Gn;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),Gn=null),e}function vr(e){Gn===null?Gn=[e]:Gn.push(e)}var is=M(null),Ol=null,xn=null;function Qn(e,t,n){G(is,t._currentValue),t._currentValue=n}function Sn(e){e._currentValue=is.current,O(is)}function cs(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function ss(e,t,n,a){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var s=c.dependencies;if(s!==null){var g=c.child;s=s.firstContext;e:for(;s!==null;){var S=s;s=c;for(var _=0;_<t.length;_++)if(S.context===t[_]){s.lanes|=n,S=s.alternate,S!==null&&(S.lanes|=n),cs(s.return,n,e),a||(g=null);break e}s=S.next}}else if(c.tag===18){if(g=c.return,g===null)throw Error(i(341));g.lanes|=n,s=g.alternate,s!==null&&(s.lanes|=n),cs(g,n,e),g=null}else g=c.child;if(g!==null)g.return=c;else for(g=c;g!==null;){if(g===e){g=null;break}if(c=g.sibling,c!==null){c.return=g.return,g=c;break}g=g.return}c=g}}function pa(e,t,n,a){e=null;for(var c=t,s=!1;c!==null;){if(!s){if((c.flags&524288)!==0)s=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var g=c.alternate;if(g===null)throw Error(i(387));if(g=g.memoizedProps,g!==null){var S=c.type;_t(c.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(c===K.current){if(g=c.alternate,g===null)throw Error(i(387));g.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Xr):e=[Xr])}c=c.return}e!==null&&ss(t,e,n,a),t.flags|=262144}function Do(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ml(e){Ol=e,xn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return mm(Ol,e)}function ko(e,t){return Ol===null&&Ml(e),mm(e,t)}function mm(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},xn===null){if(e===null)throw Error(i(308));xn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xn=xn.next=t;return n}var vx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},yx=l.unstable_scheduleCallback,bx=l.unstable_NormalPriority,Ie={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function us(){return{controller:new vx,data:new Map,refCount:0}}function yr(e){e.refCount--,e.refCount===0&&yx(bx,function(){e.controller.abort()})}var br=null,fs=0,ga=0,va=null;function xx(e,t){if(br===null){var n=br=[];fs=0,ga=hu(),va={status:"pending",value:void 0,then:function(a){n.push(a)}}}return fs++,t.then(hm,hm),t}function hm(){if(--fs===0&&br!==null){va!==null&&(va.status="fulfilled");var e=br;br=null,ga=0,va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sx(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(a.status="rejected",a.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),a}var pm=D.S;D.S=function(e,t){Ih=Rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&xx(e,t),pm!==null&&pm(e,t)};var jl=M(null);function ds(){var e=jl.current;return e!==null?e:Ve.pooledCache}function Lo(e,t){t===null?G(jl,jl.current):G(jl,t.pool)}function gm(){var e=ds();return e===null?null:{parent:Ie._currentValue,pool:e}}var ya=Error(i(460)),ms=Error(i(474)),Uo=Error(i(542)),Ho={then:function(){}};function vm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ym(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gn,gn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e;default:if(typeof t.status=="string")t.then(gn,gn);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=a}},function(a){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,xm(e),e}throw Dl=t,ya}}function zl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Dl=n,ya):n}}var Dl=null;function bm(){if(Dl===null)throw Error(i(459));var e=Dl;return Dl=null,e}function xm(e){if(e===ya||e===Uo)throw Error(i(483))}var ba=null,xr=0;function Bo(e){var t=xr;return xr+=1,ba===null&&(ba=[]),ym(ba,e,t)}function Sr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qo(e,t){throw t.$$typeof===E?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Sm(e){function t(k,j){if(e){var L=k.deletions;L===null?(k.deletions=[j],k.flags|=16):L.push(j)}}function n(k,j){if(!e)return null;for(;j!==null;)t(k,j),j=j.sibling;return null}function a(k){for(var j=new Map;k!==null;)k.key!==null?j.set(k.key,k):j.set(k.index,k),k=k.sibling;return j}function c(k,j){return k=yn(k,j),k.index=0,k.sibling=null,k}function s(k,j,L){return k.index=L,e?(L=k.alternate,L!==null?(L=L.index,L<j?(k.flags|=67108866,j):L):(k.flags|=67108866,j)):(k.flags|=1048576,j)}function g(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function S(k,j,L,$){return j===null||j.tag!==6?(j=ts(L,k.mode,$),j.return=k,j):(j=c(j,L),j.return=k,j)}function _(k,j,L,$){var he=L.type;return he===w?Z(k,j,L.props.children,$,L.key):j!==null&&(j.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===I&&zl(he)===j.type)?(j=c(j,L.props),Sr(j,L),j.return=k,j):(j=jo(L.type,L.key,L.props,null,k.mode,$),Sr(j,L),j.return=k,j)}function U(k,j,L,$){return j===null||j.tag!==4||j.stateNode.containerInfo!==L.containerInfo||j.stateNode.implementation!==L.implementation?(j=ns(L,k.mode,$),j.return=k,j):(j=c(j,L.children||[]),j.return=k,j)}function Z(k,j,L,$,he){return j===null||j.tag!==7?(j=Tl(L,k.mode,$,he),j.return=k,j):(j=c(j,L),j.return=k,j)}function J(k,j,L){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=ts(""+j,k.mode,L),j.return=k,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case C:return L=jo(j.type,j.key,j.props,null,k.mode,L),Sr(L,j),L.return=k,L;case N:return j=ns(j,k.mode,L),j.return=k,j;case I:return j=zl(j),J(k,j,L)}if(se(j)||le(j))return j=Tl(j,k.mode,L,null),j.return=k,j;if(typeof j.then=="function")return J(k,Bo(j),L);if(j.$$typeof===z)return J(k,ko(k,j),L);qo(k,j)}return null}function H(k,j,L,$){var he=j!==null?j.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return he!==null?null:S(k,j,""+L,$);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case C:return L.key===he?_(k,j,L,$):null;case N:return L.key===he?U(k,j,L,$):null;case I:return L=zl(L),H(k,j,L,$)}if(se(L)||le(L))return he!==null?null:Z(k,j,L,$,null);if(typeof L.then=="function")return H(k,j,Bo(L),$);if(L.$$typeof===z)return H(k,j,ko(k,L),$);qo(k,L)}return null}function V(k,j,L,$,he){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return k=k.get(L)||null,S(j,k,""+$,he);if(typeof $=="object"&&$!==null){switch($.$$typeof){case C:return k=k.get($.key===null?L:$.key)||null,_(j,k,$,he);case N:return k=k.get($.key===null?L:$.key)||null,U(j,k,$,he);case I:return $=zl($),V(k,j,L,$,he)}if(se($)||le($))return k=k.get(L)||null,Z(j,k,$,he,null);if(typeof $.then=="function")return V(k,j,L,Bo($),he);if($.$$typeof===z)return V(k,j,L,ko(j,$),he);qo(j,$)}return null}function ne(k,j,L,$){for(var he=null,Me=null,ie=j,we=j=0,Ne=null;ie!==null&&we<L.length;we++){ie.index>we?(Ne=ie,ie=null):Ne=ie.sibling;var je=H(k,ie,L[we],$);if(je===null){ie===null&&(ie=Ne);break}e&&ie&&je.alternate===null&&t(k,ie),j=s(je,j,we),Me===null?he=je:Me.sibling=je,Me=je,ie=Ne}if(we===L.length)return n(k,ie),Te&&bn(k,we),he;if(ie===null){for(;we<L.length;we++)ie=J(k,L[we],$),ie!==null&&(j=s(ie,j,we),Me===null?he=ie:Me.sibling=ie,Me=ie);return Te&&bn(k,we),he}for(ie=a(ie);we<L.length;we++)Ne=V(ie,k,we,L[we],$),Ne!==null&&(e&&Ne.alternate!==null&&ie.delete(Ne.key===null?we:Ne.key),j=s(Ne,j,we),Me===null?he=Ne:Me.sibling=Ne,Me=Ne);return e&&ie.forEach(function(sl){return t(k,sl)}),Te&&bn(k,we),he}function ge(k,j,L,$){if(L==null)throw Error(i(151));for(var he=null,Me=null,ie=j,we=j=0,Ne=null,je=L.next();ie!==null&&!je.done;we++,je=L.next()){ie.index>we?(Ne=ie,ie=null):Ne=ie.sibling;var sl=H(k,ie,je.value,$);if(sl===null){ie===null&&(ie=Ne);break}e&&ie&&sl.alternate===null&&t(k,ie),j=s(sl,j,we),Me===null?he=sl:Me.sibling=sl,Me=sl,ie=Ne}if(je.done)return n(k,ie),Te&&bn(k,we),he;if(ie===null){for(;!je.done;we++,je=L.next())je=J(k,je.value,$),je!==null&&(j=s(je,j,we),Me===null?he=je:Me.sibling=je,Me=je);return Te&&bn(k,we),he}for(ie=a(ie);!je.done;we++,je=L.next())je=V(ie,k,we,je.value,$),je!==null&&(e&&je.alternate!==null&&ie.delete(je.key===null?we:je.key),j=s(je,j,we),Me===null?he=je:Me.sibling=je,Me=je);return e&&ie.forEach(function(j1){return t(k,j1)}),Te&&bn(k,we),he}function qe(k,j,L,$){if(typeof L=="object"&&L!==null&&L.type===w&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case C:e:{for(var he=L.key;j!==null;){if(j.key===he){if(he=L.type,he===w){if(j.tag===7){n(k,j.sibling),$=c(j,L.props.children),$.return=k,k=$;break e}}else if(j.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===I&&zl(he)===j.type){n(k,j.sibling),$=c(j,L.props),Sr($,L),$.return=k,k=$;break e}n(k,j);break}else t(k,j);j=j.sibling}L.type===w?($=Tl(L.props.children,k.mode,$,L.key),$.return=k,k=$):($=jo(L.type,L.key,L.props,null,k.mode,$),Sr($,L),$.return=k,k=$)}return g(k);case N:e:{for(he=L.key;j!==null;){if(j.key===he)if(j.tag===4&&j.stateNode.containerInfo===L.containerInfo&&j.stateNode.implementation===L.implementation){n(k,j.sibling),$=c(j,L.children||[]),$.return=k,k=$;break e}else{n(k,j);break}else t(k,j);j=j.sibling}$=ns(L,k.mode,$),$.return=k,k=$}return g(k);case I:return L=zl(L),qe(k,j,L,$)}if(se(L))return ne(k,j,L,$);if(le(L)){if(he=le(L),typeof he!="function")throw Error(i(150));return L=he.call(L),ge(k,j,L,$)}if(typeof L.then=="function")return qe(k,j,Bo(L),$);if(L.$$typeof===z)return qe(k,j,ko(k,L),$);qo(k,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,j!==null&&j.tag===6?(n(k,j.sibling),$=c(j,L),$.return=k,k=$):(n(k,j),$=ts(L,k.mode,$),$.return=k,k=$),g(k)):n(k,j)}return function(k,j,L,$){try{xr=0;var he=qe(k,j,L,$);return ba=null,he}catch(ie){if(ie===ya||ie===Uo)throw ie;var Me=Ot(29,ie,null,k.mode);return Me.lanes=$,Me.return=k,Me}finally{}}}var kl=Sm(!0),wm=Sm(!1),Zn=!1;function hs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ps(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $n(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ze&2)!==0){var c=a.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),a.pending=t,t=Mo(e),rm(e,null,n),t}return Oo(e,a,t,n),Mo(e)}function wr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,md(e,n)}}function gs(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var c=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?c=s=g:s=s.next=g,n=n.next}while(n!==null);s===null?c=s=t:s=s.next=t}else c=s=t;n={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var vs=!1;function Er(){if(vs){var e=va;if(e!==null)throw e}}function Cr(e,t,n,a){vs=!1;var c=e.updateQueue;Zn=!1;var s=c.firstBaseUpdate,g=c.lastBaseUpdate,S=c.shared.pending;if(S!==null){c.shared.pending=null;var _=S,U=_.next;_.next=null,g===null?s=U:g.next=U,g=_;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,S=Z.lastBaseUpdate,S!==g&&(S===null?Z.firstBaseUpdate=U:S.next=U,Z.lastBaseUpdate=_))}if(s!==null){var J=c.baseState;g=0,Z=U=_=null,S=s;do{var H=S.lane&-536870913,V=H!==S.lane;if(V?(Re&H)===H:(a&H)===H){H!==0&&H===ga&&(vs=!0),Z!==null&&(Z=Z.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var ne=e,ge=S;H=t;var qe=n;switch(ge.tag){case 1:if(ne=ge.payload,typeof ne=="function"){J=ne.call(qe,J,H);break e}J=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ge.payload,H=typeof ne=="function"?ne.call(qe,J,H):ne,H==null)break e;J=x({},J,H);break e;case 2:Zn=!0}}H=S.callback,H!==null&&(e.flags|=64,V&&(e.flags|=8192),V=c.callbacks,V===null?c.callbacks=[H]:V.push(H))}else V={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Z===null?(U=Z=V,_=J):Z=Z.next=V,g|=H;if(S=S.next,S===null){if(S=c.shared.pending,S===null)break;V=S,S=V.next,V.next=null,c.lastBaseUpdate=V,c.shared.pending=null}}while(!0);Z===null&&(_=J),c.baseState=_,c.firstBaseUpdate=U,c.lastBaseUpdate=Z,s===null&&(c.shared.lanes=0),Wn|=g,e.lanes=g,e.memoizedState=J}}function Em(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Cm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Em(n[e],t)}var xa=M(null),Vo=M(0);function Am(e,t){e=On,G(Vo,e),G(xa,t),On=e|t.baseLanes}function ys(){G(Vo,On),G(xa,xa.current)}function bs(){On=Vo.current,O(xa),O(Vo)}var Mt=M(null),Qt=null;function Pn(e){var t=e.alternate;G(Pe,Pe.current&1),G(Mt,e),Qt===null&&(t===null||xa.current!==null||t.memoizedState!==null)&&(Qt=e)}function xs(e){G(Pe,Pe.current),G(Mt,e),Qt===null&&(Qt=e)}function Rm(e){e.tag===22?(G(Pe,Pe.current),G(Mt,e),Qt===null&&(Qt=e)):Jn()}function Jn(){G(Pe,Pe.current),G(Mt,Mt.current)}function jt(e){O(Mt),Qt===e&&(Qt=null),O(Pe)}var Pe=M(0);function Yo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ru(n)||Nu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wn=0,xe=null,He=null,We=null,Go=!1,Sa=!1,Ll=!1,Xo=0,Ar=0,wa=null,wx=0;function Ke(){throw Error(i(321))}function Ss(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function ws(e,t,n,a,c,s){return wn=s,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?sh:Us,Ll=!1,s=n(a,c),Ll=!1,Sa&&(s=Tm(t,n,a,c)),Nm(e),s}function Nm(e){D.H=Tr;var t=He!==null&&He.next!==null;if(wn=0,We=He=xe=null,Go=!1,Ar=0,wa=null,t)throw Error(i(300));e===null||et||(e=e.dependencies,e!==null&&Do(e)&&(et=!0))}function Tm(e,t,n,a){xe=e;var c=0;do{if(Sa&&(wa=null),Ar=0,Sa=!1,25<=c)throw Error(i(301));if(c+=1,We=He=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}D.H=uh,s=t(n,a)}while(Sa);return s}function Ex(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Rr(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(xe.flags|=1024),t}function Es(){var e=Xo!==0;return Xo=0,e}function Cs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function As(e){if(Go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Go=!1}wn=0,We=He=xe=null,Sa=!1,Ar=Xo=0,wa=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?xe.memoizedState=We=e:We=We.next=e,We}function Je(){if(He===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=We===null?xe.memoizedState:We.next;if(t!==null)We=t,He=e;else{if(e===null)throw xe.alternate===null?Error(i(467)):Error(i(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},We===null?xe.memoizedState=We=e:We=We.next=e}return We}function Qo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rr(e){var t=Ar;return Ar+=1,wa===null&&(wa=[]),e=ym(wa,e,t),t=xe,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?sh:Us),e}function Zo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rr(e);if(e.$$typeof===z)return st(e)}throw Error(i(438,String(e)))}function Rs(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=xe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Qo(),xe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=pe;return t.index++,n}function En(e,t){return typeof t=="function"?t(e):t}function Ko(e){var t=Je();return Ns(t,He,e)}function Ns(e,t,n){var a=e.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=n;var c=e.baseQueue,s=a.pending;if(s!==null){if(c!==null){var g=c.next;c.next=s.next,s.next=g}t.baseQueue=c=s,a.pending=null}if(s=e.baseState,c===null)e.memoizedState=s;else{t=c.next;var S=g=null,_=null,U=t,Z=!1;do{var J=U.lane&-536870913;if(J!==U.lane?(Re&J)===J:(wn&J)===J){var H=U.revertLane;if(H===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),J===ga&&(Z=!0);else if((wn&H)===H){U=U.next,H===ga&&(Z=!0);continue}else J={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},_===null?(S=_=J,g=s):_=_.next=J,xe.lanes|=H,Wn|=H;J=U.action,Ll&&n(s,J),s=U.hasEagerState?U.eagerState:n(s,J)}else H={lane:J,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},_===null?(S=_=H,g=s):_=_.next=H,xe.lanes|=J,Wn|=J;U=U.next}while(U!==null&&U!==t);if(_===null?g=s:_.next=S,!_t(s,e.memoizedState)&&(et=!0,Z&&(n=va,n!==null)))throw n;e.memoizedState=s,e.baseState=g,e.baseQueue=_,a.lastRenderedState=s}return c===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ts(e){var t=Je(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var a=n.dispatch,c=n.pending,s=t.memoizedState;if(c!==null){n.pending=null;var g=c=c.next;do s=e(s,g.action),g=g.next;while(g!==c);_t(s,t.memoizedState)||(et=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,a]}function _m(e,t,n){var a=xe,c=Je(),s=Te;if(s){if(n===void 0)throw Error(i(407));n=n()}else n=t();var g=!_t((He||c).memoizedState,n);if(g&&(c.memoizedState=n,et=!0),c=c.queue,Ms(jm.bind(null,a,c,e),[e]),c.getSnapshot!==t||g||We!==null&&We.memoizedState.tag&1){if(a.flags|=2048,Ea(9,{destroy:void 0},Mm.bind(null,a,c,n,t),null),Ve===null)throw Error(i(349));s||(wn&127)!==0||Om(a,t,n)}return n}function Om(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=Qo(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Mm(e,t,n,a){t.value=n,t.getSnapshot=a,zm(t)&&Dm(e)}function jm(e,t,n){return n(function(){zm(t)&&Dm(e)})}function zm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function Dm(e){var t=Nl(e,2);t!==null&&At(t,e,2)}function _s(e){var t=gt();if(typeof e=="function"){var n=e;if(e=n(),Ll){Bn(!0);try{n()}finally{Bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function km(e,t,n,a){return e.baseState=n,Ns(e,He,typeof a=="function"?a:En)}function Cx(e,t,n,a,c){if(Jo(e))throw Error(i(485));if(e=t.action,e!==null){var s={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){s.listeners.push(g)}};D.T!==null?n(!0):s.isTransition=!1,a(s),n=t.pending,n===null?(s.next=t.pending=s,Lm(t,s)):(s.next=n.next,t.pending=n.next=s)}}function Lm(e,t){var n=t.action,a=t.payload,c=e.state;if(t.isTransition){var s=D.T,g={};D.T=g;try{var S=n(c,a),_=D.S;_!==null&&_(g,S),Um(e,t,S)}catch(U){Os(e,t,U)}finally{s!==null&&g.types!==null&&(s.types=g.types),D.T=s}}else try{s=n(c,a),Um(e,t,s)}catch(U){Os(e,t,U)}}function Um(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Hm(e,t,a)},function(a){return Os(e,t,a)}):Hm(e,t,n)}function Hm(e,t,n){t.status="fulfilled",t.value=n,Bm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Lm(e,n)))}function Os(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Bm(t),t=t.next;while(t!==a)}e.action=null}function Bm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qm(e,t){return t}function Vm(e,t){if(Te){var n=Ve.formState;if(n!==null){e:{var a=xe;if(Te){if(Ge){t:{for(var c=Ge,s=Xt;c.nodeType!==8;){if(!s){c=null;break t}if(c=Zt(c.nextSibling),c===null){c=null;break t}}s=c.data,c=s==="F!"||s==="F"?c:null}if(c){Ge=Zt(c.nextSibling),a=c.data==="F!";break e}}Xn(a)}a=!1}a&&(t=n[0])}}return n=gt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qm,lastRenderedState:t},n.queue=a,n=oh.bind(null,xe,a),a.dispatch=n,a=_s(!1),s=Ls.bind(null,xe,!1,a.queue),a=gt(),c={state:t,dispatch:null,action:e,pending:null},a.queue=c,n=Cx.bind(null,xe,c,s,n),c.dispatch=n,a.memoizedState=e,[t,n,!1]}function Ym(e){var t=Je();return Gm(t,He,e)}function Gm(e,t,n){if(t=Ns(e,t,qm)[0],e=Ko(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Rr(t)}catch(g){throw g===ya?Uo:g}else a=t;t=Je();var c=t.queue,s=c.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,Ea(9,{destroy:void 0},Ax.bind(null,c,n),null)),[a,s,e]}function Ax(e,t){e.action=t}function Xm(e){var t=Je(),n=He;if(n!==null)return Gm(t,n,e);Je(),t=t.memoizedState,n=Je();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ea(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Qo(),xe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Qm(){return Je().memoizedState}function $o(e,t,n,a){var c=gt();xe.flags|=e,c.memoizedState=Ea(1|t,{destroy:void 0},n,a===void 0?null:a)}function Po(e,t,n,a){var c=Je();a=a===void 0?null:a;var s=c.memoizedState.inst;He!==null&&a!==null&&Ss(a,He.memoizedState.deps)?c.memoizedState=Ea(t,s,n,a):(xe.flags|=e,c.memoizedState=Ea(1|t,s,n,a))}function Zm(e,t){$o(8390656,8,e,t)}function Ms(e,t){Po(2048,8,e,t)}function Rx(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Qo(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Km(e){var t=Je().memoizedState;return Rx({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function $m(e,t){return Po(4,2,e,t)}function Pm(e,t){return Po(4,4,e,t)}function Jm(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Fm(e,t,n){n=n!=null?n.concat([e]):null,Po(4,4,Jm.bind(null,t,e),n)}function js(){}function Im(e,t){var n=Je();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ss(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Wm(e,t){var n=Je();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ss(t,a[1]))return a[0];if(a=e(),Ll){Bn(!0);try{e()}finally{Bn(!1)}}return n.memoizedState=[a,t],a}function zs(e,t,n){return n===void 0||(wn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ep(),xe.lanes|=e,Wn|=e,n)}function eh(e,t,n,a){return _t(n,t)?n:xa.current!==null?(e=zs(e,n,a),_t(e,t)||(et=!0),e):(wn&42)===0||(wn&1073741824)!==0&&(Re&261930)===0?(et=!0,e.memoizedState=n):(e=ep(),xe.lanes|=e,Wn|=e,t)}function th(e,t,n,a,c){var s=X.p;X.p=s!==0&&8>s?s:8;var g=D.T,S={};D.T=S,Ls(e,!1,t,n);try{var _=c(),U=D.S;if(U!==null&&U(S,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var Z=Sx(_,a);Nr(e,t,Z,kt(e))}else Nr(e,t,a,kt(e))}catch(J){Nr(e,t,{then:function(){},status:"rejected",reason:J},kt())}finally{X.p=s,g!==null&&S.types!==null&&(g.types=S.types),D.T=g}}function Nx(){}function Ds(e,t,n,a){if(e.tag!==5)throw Error(i(476));var c=nh(e).queue;th(e,c,t,B,n===null?Nx:function(){return lh(e),n(a)})}function nh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:B},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function lh(e){var t=nh(e);t.next===null&&(t=e.alternate.memoizedState),Nr(e,t.next.queue,{},kt())}function ks(){return st(Xr)}function ah(){return Je().memoizedState}function rh(){return Je().memoizedState}function Tx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=kt();e=Kn(n);var a=$n(t,e,n);a!==null&&(At(a,t,n),wr(a,t,n)),t={cache:us()},e.payload=t;return}t=t.return}}function _x(e,t,n){var a=kt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Jo(e)?ih(t,n):(n=Wc(e,t,n,a),n!==null&&(At(n,e,a),ch(n,t,a)))}function oh(e,t,n){var a=kt();Nr(e,t,n,a)}function Nr(e,t,n,a){var c={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jo(e))ih(t,c);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var g=t.lastRenderedState,S=s(g,n);if(c.hasEagerState=!0,c.eagerState=S,_t(S,g))return Oo(e,t,c,0),Ve===null&&_o(),!1}catch{}finally{}if(n=Wc(e,t,c,a),n!==null)return At(n,e,a),ch(n,t,a),!0}return!1}function Ls(e,t,n,a){if(a={lane:2,revertLane:hu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Jo(e)){if(t)throw Error(i(479))}else t=Wc(e,n,a,2),t!==null&&At(t,e,2)}function Jo(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function ih(e,t){Sa=Go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ch(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,md(e,n)}}var Tr={readContext:st,use:Zo,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};Tr.useEffectEvent=Ke;var sh={readContext:st,use:Zo,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:Zm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,$o(4194308,4,Jm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $o(4194308,4,e,t)},useInsertionEffect:function(e,t){$o(4,2,e,t)},useMemo:function(e,t){var n=gt();t=t===void 0?null:t;var a=e();if(Ll){Bn(!0);try{e()}finally{Bn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=gt();if(n!==void 0){var c=n(t);if(Ll){Bn(!0);try{n(t)}finally{Bn(!1)}}}else c=t;return a.memoizedState=a.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},a.queue=e,e=e.dispatch=_x.bind(null,xe,e),[a.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=_s(e);var t=e.queue,n=oh.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:js,useDeferredValue:function(e,t){var n=gt();return zs(n,e,t)},useTransition:function(){var e=_s(!1);return e=th.bind(null,xe,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=xe,c=gt();if(Te){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ve===null)throw Error(i(349));(Re&127)!==0||Om(a,t,n)}c.memoizedState=n;var s={value:n,getSnapshot:t};return c.queue=s,Zm(jm.bind(null,a,s,e),[e]),a.flags|=2048,Ea(9,{destroy:void 0},Mm.bind(null,a,s,n,t),null),n},useId:function(){var e=gt(),t=Ve.identifierPrefix;if(Te){var n=ln,a=nn;n=(a&~(1<<32-Tt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Xo++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=wx++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ks,useFormState:Vm,useActionState:Vm,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Rs,useCacheRefresh:function(){return gt().memoizedState=Tx.bind(null,xe)},useEffectEvent:function(e){var t=gt(),n={impl:e};return t.memoizedState=n,function(){if((ze&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Us={readContext:st,use:Zo,useCallback:Im,useContext:st,useEffect:Ms,useImperativeHandle:Fm,useInsertionEffect:$m,useLayoutEffect:Pm,useMemo:Wm,useReducer:Ko,useRef:Qm,useState:function(){return Ko(En)},useDebugValue:js,useDeferredValue:function(e,t){var n=Je();return eh(n,He.memoizedState,e,t)},useTransition:function(){var e=Ko(En)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Rr(e),t]},useSyncExternalStore:_m,useId:ah,useHostTransitionStatus:ks,useFormState:Ym,useActionState:Ym,useOptimistic:function(e,t){var n=Je();return km(n,He,e,t)},useMemoCache:Rs,useCacheRefresh:rh};Us.useEffectEvent=Km;var uh={readContext:st,use:Zo,useCallback:Im,useContext:st,useEffect:Ms,useImperativeHandle:Fm,useInsertionEffect:$m,useLayoutEffect:Pm,useMemo:Wm,useReducer:Ts,useRef:Qm,useState:function(){return Ts(En)},useDebugValue:js,useDeferredValue:function(e,t){var n=Je();return He===null?zs(n,e,t):eh(n,He.memoizedState,e,t)},useTransition:function(){var e=Ts(En)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Rr(e),t]},useSyncExternalStore:_m,useId:ah,useHostTransitionStatus:ks,useFormState:Xm,useActionState:Xm,useOptimistic:function(e,t){var n=Je();return He!==null?km(n,He,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Rs,useCacheRefresh:rh};uh.useEffectEvent=Km;function Hs(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bs={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=kt(),c=Kn(a);c.payload=t,n!=null&&(c.callback=n),t=$n(e,c,a),t!==null&&(At(t,e,a),wr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=kt(),c=Kn(a);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=$n(e,c,a),t!==null&&(At(t,e,a),wr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kt(),a=Kn(n);a.tag=2,t!=null&&(a.callback=t),t=$n(e,a,n),t!==null&&(At(t,e,n),wr(t,e,n))}};function fh(e,t,n,a,c,s,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,g):t.prototype&&t.prototype.isPureReactComponent?!hr(n,a)||!hr(c,s):!0}function dh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Bs.enqueueReplaceState(t,t.state,null)}function Ul(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function mh(e){To(e)}function hh(e){console.error(e)}function ph(e){To(e)}function Fo(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function gh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function qs(e,t,n){return n=Kn(n),n.tag=3,n.payload={element:null},n.callback=function(){Fo(e,t)},n}function vh(e){return e=Kn(e),e.tag=3,e}function yh(e,t,n,a){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var s=a.value;e.payload=function(){return c(s)},e.callback=function(){gh(t,n,a)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){gh(t,n,a),typeof c!="function"&&(el===null?el=new Set([this]):el.add(this));var S=a.stack;this.componentDidCatch(a.value,{componentStack:S!==null?S:""})})}function Ox(e,t,n,a,c){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&pa(t,n,c,!0),n=Mt.current,n!==null){switch(n.tag){case 31:case 13:return Qt===null?si():n.alternate===null&&$e===0&&($e=3),n.flags&=-257,n.flags|=65536,n.lanes=c,a===Ho?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),fu(e,a,c)),!1;case 22:return n.flags|=65536,a===Ho?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),fu(e,a,c)),!1}throw Error(i(435,n.tag))}return fu(e,a,c),si(),!1}if(Te)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,a!==rs&&(e=Error(i(422),{cause:a}),vr(Vt(e,n)))):(a!==rs&&(t=Error(i(423),{cause:a}),vr(Vt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,a=Vt(a,n),c=qs(e.stateNode,a,c),gs(e,c),$e!==4&&($e=2)),!1;var s=Error(i(520),{cause:a});if(s=Vt(s,n),Lr===null?Lr=[s]:Lr.push(s),$e!==4&&($e=2),t===null)return!0;a=Vt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=qs(n.stateNode,a,e),gs(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(el===null||!el.has(s))))return n.flags|=65536,c&=-c,n.lanes|=c,c=vh(c),yh(c,e,n,a),gs(n,c),!1}n=n.return}while(n!==null);return!1}var Vs=Error(i(461)),et=!1;function ut(e,t,n,a){t.child=e===null?wm(t,null,n,a):kl(t,e.child,n,a)}function bh(e,t,n,a,c){n=n.render;var s=t.ref;if("ref"in a){var g={};for(var S in a)S!=="ref"&&(g[S]=a[S])}else g=a;return Ml(t),a=ws(e,t,n,g,s,c),S=Es(),e!==null&&!et?(Cs(e,t,c),Cn(e,t,c)):(Te&&S&&ls(t),t.flags|=1,ut(e,t,a,c),t.child)}function xh(e,t,n,a,c){if(e===null){var s=n.type;return typeof s=="function"&&!es(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,Sh(e,t,s,a,c)):(e=jo(n.type,null,a,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Ps(e,c)){var g=s.memoizedProps;if(n=n.compare,n=n!==null?n:hr,n(g,a)&&e.ref===t.ref)return Cn(e,t,c)}return t.flags|=1,e=yn(s,a),e.ref=t.ref,e.return=t,t.child=e}function Sh(e,t,n,a,c){if(e!==null){var s=e.memoizedProps;if(hr(s,a)&&e.ref===t.ref)if(et=!1,t.pendingProps=a=s,Ps(e,c))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,Cn(e,t,c)}return Ys(e,t,n,a,c)}function wh(e,t,n,a){var c=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(a=t.child=e.child,c=0;a!==null;)c=c|a.lanes|a.childLanes,a=a.sibling;a=c&~s}else a=0,t.child=null;return Eh(e,t,s,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Lo(t,s!==null?s.cachePool:null),s!==null?Am(t,s):ys(),Rm(t);else return a=t.lanes=536870912,Eh(e,t,s!==null?s.baseLanes|n:n,n,a)}else s!==null?(Lo(t,s.cachePool),Am(t,s),Jn(),t.memoizedState=null):(e!==null&&Lo(t,null),ys(),Jn());return ut(e,t,c,n),t.child}function _r(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Eh(e,t,n,a,c){var s=ds();return s=s===null?null:{parent:Ie._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&Lo(t,null),ys(),Rm(t),e!==null&&pa(e,t,a,!0),t.childLanes=c,null}function Io(e,t){return t=ei({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ch(e,t,n){return kl(t,e.child,null,n),e=Io(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function Mx(e,t,n){var a=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(a.mode==="hidden")return e=Io(t,a),t.lanes=536870912,_r(null,e);if(xs(t),(e=Ge)?(e=Lp(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yn!==null?{id:nn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=im(e),n.return=t,t.child=n,ct=t,Ge=null)):e=null,e===null)throw Xn(t);return t.lanes=536870912,null}return Io(t,a)}var s=e.memoizedState;if(s!==null){var g=s.dehydrated;if(xs(t),c)if(t.flags&256)t.flags&=-257,t=Ch(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(et||pa(e,t,n,!1),c=(n&e.childLanes)!==0,et||c){if(a=Ve,a!==null&&(g=hd(a,n),g!==0&&g!==s.retryLane))throw s.retryLane=g,Nl(e,g),At(a,e,g),Vs;si(),t=Ch(e,t,n)}else e=s.treeContext,Ge=Zt(g.nextSibling),ct=t,Te=!0,Gn=null,Xt=!1,e!==null&&um(t,e),t=Io(t,a),t.flags|=4096;return t}return e=yn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ys(e,t,n,a,c){return Ml(t),n=ws(e,t,n,a,void 0,c),a=Es(),e!==null&&!et?(Cs(e,t,c),Cn(e,t,c)):(Te&&a&&ls(t),t.flags|=1,ut(e,t,n,c),t.child)}function Ah(e,t,n,a,c,s){return Ml(t),t.updateQueue=null,n=Tm(t,a,n,c),Nm(e),a=Es(),e!==null&&!et?(Cs(e,t,s),Cn(e,t,s)):(Te&&a&&ls(t),t.flags|=1,ut(e,t,n,s),t.child)}function Rh(e,t,n,a,c){if(Ml(t),t.stateNode===null){var s=fa,g=n.contextType;typeof g=="object"&&g!==null&&(s=st(g)),s=new n(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Bs,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},hs(t),g=n.contextType,s.context=typeof g=="object"&&g!==null?st(g):fa,s.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Hs(t,n,g,a),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(g=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),g!==s.state&&Bs.enqueueReplaceState(s,s.state,null),Cr(t,a,s,c),Er(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var S=t.memoizedProps,_=Ul(n,S);s.props=_;var U=s.context,Z=n.contextType;g=fa,typeof Z=="object"&&Z!==null&&(g=st(Z));var J=n.getDerivedStateFromProps;Z=typeof J=="function"||typeof s.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,Z||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(S||U!==g)&&dh(t,s,a,g),Zn=!1;var H=t.memoizedState;s.state=H,Cr(t,a,s,c),Er(),U=t.memoizedState,S||H!==U||Zn?(typeof J=="function"&&(Hs(t,n,J,a),U=t.memoizedState),(_=Zn||fh(t,n,_,a,H,U,g))?(Z||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=U),s.props=a,s.state=U,s.context=g,a=_):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,ps(e,t),g=t.memoizedProps,Z=Ul(n,g),s.props=Z,J=t.pendingProps,H=s.context,U=n.contextType,_=fa,typeof U=="object"&&U!==null&&(_=st(U)),S=n.getDerivedStateFromProps,(U=typeof S=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(g!==J||H!==_)&&dh(t,s,a,_),Zn=!1,H=t.memoizedState,s.state=H,Cr(t,a,s,c),Er();var V=t.memoizedState;g!==J||H!==V||Zn||e!==null&&e.dependencies!==null&&Do(e.dependencies)?(typeof S=="function"&&(Hs(t,n,S,a),V=t.memoizedState),(Z=Zn||fh(t,n,Z,a,H,V,_)||e!==null&&e.dependencies!==null&&Do(e.dependencies))?(U||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,V,_),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,V,_)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=V),s.props=a,s.state=V,s.context=_,a=Z):(typeof s.componentDidUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,Wo(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=kl(t,e.child,null,c),t.child=kl(t,null,n,c)):ut(e,t,n,c),t.memoizedState=s.state,e=t.child):e=Cn(e,t,c),e}function Nh(e,t,n,a){return _l(),t.flags|=256,ut(e,t,n,a),t.child}var Gs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xs(e){return{baseLanes:e,cachePool:gm()}}function Qs(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Dt),e}function Th(e,t,n){var a=t.pendingProps,c=!1,s=(t.flags&128)!==0,g;if((g=s)||(g=e!==null&&e.memoizedState===null?!1:(Pe.current&2)!==0),g&&(c=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(c?Pn(t):Jn(),(e=Ge)?(e=Lp(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yn!==null?{id:nn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=im(e),n.return=t,t.child=n,ct=t,Ge=null)):e=null,e===null)throw Xn(t);return Nu(e)?t.lanes=32:t.lanes=536870912,null}var S=a.children;return a=a.fallback,c?(Jn(),c=t.mode,S=ei({mode:"hidden",children:S},c),a=Tl(a,c,n,null),S.return=t,a.return=t,S.sibling=a,t.child=S,a=t.child,a.memoizedState=Xs(n),a.childLanes=Qs(e,g,n),t.memoizedState=Gs,_r(null,a)):(Pn(t),Zs(t,S))}var _=e.memoizedState;if(_!==null&&(S=_.dehydrated,S!==null)){if(s)t.flags&256?(Pn(t),t.flags&=-257,t=Ks(e,t,n)):t.memoizedState!==null?(Jn(),t.child=e.child,t.flags|=128,t=null):(Jn(),S=a.fallback,c=t.mode,a=ei({mode:"visible",children:a.children},c),S=Tl(S,c,n,null),S.flags|=2,a.return=t,S.return=t,a.sibling=S,t.child=a,kl(t,e.child,null,n),a=t.child,a.memoizedState=Xs(n),a.childLanes=Qs(e,g,n),t.memoizedState=Gs,t=_r(null,a));else if(Pn(t),Nu(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var U=g.dgst;g=U,a=Error(i(419)),a.stack="",a.digest=g,vr({value:a,source:null,stack:null}),t=Ks(e,t,n)}else if(et||pa(e,t,n,!1),g=(n&e.childLanes)!==0,et||g){if(g=Ve,g!==null&&(a=hd(g,n),a!==0&&a!==_.retryLane))throw _.retryLane=a,Nl(e,a),At(g,e,a),Vs;Ru(S)||si(),t=Ks(e,t,n)}else Ru(S)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,Ge=Zt(S.nextSibling),ct=t,Te=!0,Gn=null,Xt=!1,e!==null&&um(t,e),t=Zs(t,a.children),t.flags|=4096);return t}return c?(Jn(),S=a.fallback,c=t.mode,_=e.child,U=_.sibling,a=yn(_,{mode:"hidden",children:a.children}),a.subtreeFlags=_.subtreeFlags&65011712,U!==null?S=yn(U,S):(S=Tl(S,c,n,null),S.flags|=2),S.return=t,a.return=t,a.sibling=S,t.child=a,_r(null,a),a=t.child,S=e.child.memoizedState,S===null?S=Xs(n):(c=S.cachePool,c!==null?(_=Ie._currentValue,c=c.parent!==_?{parent:_,pool:_}:c):c=gm(),S={baseLanes:S.baseLanes|n,cachePool:c}),a.memoizedState=S,a.childLanes=Qs(e,g,n),t.memoizedState=Gs,_r(e.child,a)):(Pn(t),n=e.child,e=n.sibling,n=yn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function Zs(e,t){return t=ei({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ei(e,t){return e=Ot(22,e,null,t),e.lanes=0,e}function Ks(e,t,n){return kl(t,e.child,null,n),e=Zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _h(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),cs(e.return,t,n)}function $s(e,t,n,a,c,s){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:c,treeForkCount:s}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=n,g.tailMode=c,g.treeForkCount=s)}function Oh(e,t,n){var a=t.pendingProps,c=a.revealOrder,s=a.tail;a=a.children;var g=Pe.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,G(Pe,g),ut(e,t,a,n),a=Te?gr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_h(e,n,t);else if(e.tag===19)_h(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Yo(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),$s(t,!1,c,n,s,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Yo(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}$s(t,!0,n,null,s,a);break;case"together":$s(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(pa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=yn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ps(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Do(e)))}function jx(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Qn(t,Ie,e.memoizedState.cache),_l();break;case 27:case 5:Se(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Qn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Pn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Th(e,t,n):(Pn(t),e=Cn(e,t,n),e!==null?e.sibling:null);Pn(t);break;case 19:var c=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(pa(e,t,n,!1),a=(n&t.childLanes)!==0),c){if(a)return Oh(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),G(Pe,Pe.current),a)break;return null;case 22:return t.lanes=0,wh(e,t,n,t.pendingProps);case 24:Qn(t,Ie,e.memoizedState.cache)}return Cn(e,t,n)}function Mh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!Ps(e,n)&&(t.flags&128)===0)return et=!1,jx(e,t,n);et=(e.flags&131072)!==0}else et=!1,Te&&(t.flags&1048576)!==0&&sm(t,gr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=zl(t.elementType),t.type=e,typeof e=="function")es(e)?(a=Ul(e,a),t.tag=1,t=Rh(null,t,e,a,n)):(t.tag=0,t=Ys(null,t,e,a,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=bh(null,t,e,a,n);break e}else if(c===Y){t.tag=14,t=xh(null,t,e,a,n);break e}}throw t=ce(e)||e,Error(i(306,t,""))}}return t;case 0:return Ys(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,c=Ul(a,t.pendingProps),Rh(e,t,a,c,n);case 3:e:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));a=t.pendingProps;var s=t.memoizedState;c=s.element,ps(e,t),Cr(t,a,null,n);var g=t.memoizedState;if(a=g.cache,Qn(t,Ie,a),a!==s.cache&&ss(t,[Ie],n,!0),Er(),a=g.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Nh(e,t,a,n);break e}else if(a!==c){c=Vt(Error(i(424)),t),vr(c),t=Nh(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=Zt(e.firstChild),ct=t,Te=!0,Gn=null,Xt=!0,n=wm(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(_l(),a===c){t=Cn(e,t,n);break e}ut(e,t,a,n)}t=t.child}return t;case 26:return Wo(e,t),e===null?(n=Yp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Te||(n=t.type,e=t.pendingProps,a=gi(ee.current).createElement(n),a[it]=t,a[bt]=e,ft(a,n,e),rt(a),t.stateNode=a):t.memoizedState=Yp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Se(t),e===null&&Te&&(a=t.stateNode=Bp(t.type,t.pendingProps,ee.current),ct=t,Xt=!0,c=Ge,al(t.type)?(Tu=c,Ge=Zt(a.firstChild)):Ge=c),ut(e,t,t.pendingProps.children,n),Wo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((c=a=Ge)&&(a=c1(a,t.type,t.pendingProps,Xt),a!==null?(t.stateNode=a,ct=t,Ge=Zt(a.firstChild),Xt=!1,c=!0):c=!1),c||Xn(t)),Se(t),c=t.type,s=t.pendingProps,g=e!==null?e.memoizedProps:null,a=s.children,Eu(c,s)?a=null:g!==null&&Eu(c,g)&&(t.flags|=32),t.memoizedState!==null&&(c=ws(e,t,Ex,null,null,n),Xr._currentValue=c),Wo(e,t),ut(e,t,a,n),t.child;case 6:return e===null&&Te&&((e=n=Ge)&&(n=s1(n,t.pendingProps,Xt),n!==null?(t.stateNode=n,ct=t,Ge=null,e=!0):e=!1),e||Xn(t)),null;case 13:return Th(e,t,n);case 4:return me(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=kl(t,null,a,n):ut(e,t,a,n),t.child;case 11:return bh(e,t,t.type,t.pendingProps,n);case 7:return ut(e,t,t.pendingProps,n),t.child;case 8:return ut(e,t,t.pendingProps.children,n),t.child;case 12:return ut(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Qn(t,t.type,a.value),ut(e,t,a.children,n),t.child;case 9:return c=t.type._context,a=t.pendingProps.children,Ml(t),c=st(c),a=a(c),t.flags|=1,ut(e,t,a,n),t.child;case 14:return xh(e,t,t.type,t.pendingProps,n);case 15:return Sh(e,t,t.type,t.pendingProps,n);case 19:return Oh(e,t,n);case 31:return Mx(e,t,n);case 22:return wh(e,t,n,t.pendingProps);case 24:return Ml(t),a=st(Ie),e===null?(c=ds(),c===null&&(c=Ve,s=us(),c.pooledCache=s,s.refCount++,s!==null&&(c.pooledCacheLanes|=n),c=s),t.memoizedState={parent:a,cache:c},hs(t),Qn(t,Ie,c)):((e.lanes&n)!==0&&(ps(e,t),Cr(t,null,null,n),Er()),c=e.memoizedState,s=t.memoizedState,c.parent!==a?(c={parent:a,cache:a},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Qn(t,Ie,a)):(a=s.cache,Qn(t,Ie,a),a!==c.cache&&ss(t,[Ie],n,!0))),ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function An(e){e.flags|=4}function Js(e,t,n,a,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(ap())e.flags|=8192;else throw Dl=Ho,ms}else e.flags&=-16777217}function jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Kp(t))if(ap())e.flags|=8192;else throw Dl=Ho,ms}function ti(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fd():536870912,e.lanes|=t,Na|=t)}function Or(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags&65011712,a|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function zx(e,t,n){var a=t.pendingProps;switch(as(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Sn(Ie),fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ha(t)?An(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,os())),Xe(t),null;case 26:var c=t.type,s=t.memoizedState;return e===null?(An(t),s!==null?(Xe(t),jh(t,s)):(Xe(t),Js(t,c,null,a,n))):s?s!==e.memoizedState?(An(t),Xe(t),jh(t,s)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&An(t),Xe(t),Js(t,c,e,a,n)),null;case 27:if(_e(t),n=ee.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&An(t);else{if(!a){if(t.stateNode===null)throw Error(i(166));return Xe(t),null}e=P.current,ha(t)?fm(t):(e=Bp(c,a,n),t.stateNode=e,An(t))}return Xe(t),null;case 5:if(_e(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&An(t);else{if(!a){if(t.stateNode===null)throw Error(i(166));return Xe(t),null}if(s=P.current,ha(t))fm(t);else{var g=gi(ee.current);switch(s){case 1:s=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:s=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":s=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":s=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":s=g.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?g.createElement("select",{is:a.is}):g.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?g.createElement(c,{is:a.is}):g.createElement(c)}}s[it]=t,s[bt]=a;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)s.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=s;e:switch(ft(s,c,a),c){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&An(t)}}return Xe(t),Js(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&An(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(i(166));if(e=ee.current,ha(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,c=ct,c!==null)switch(c.tag){case 27:case 5:a=c.memoizedProps}e[it]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Tp(e.nodeValue,n)),e||Xn(t,!0)}else e=gi(e).createTextNode(a),e[it]=t,t.stateNode=e}return Xe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=ha(t),n!==null){if(e===null){if(!a)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[it]=t}else _l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else n=os(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Xe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ha(t),a!==null&&a.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[it]=t}else _l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),c=!1}else c=os(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,c=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(c=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==c&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ti(t,t.updateQueue),Xe(t),null);case 4:return fe(),e===null&&yu(t.stateNode.containerInfo),Xe(t),null;case 10:return Sn(t.type),Xe(t),null;case 19:if(O(Pe),a=t.memoizedState,a===null)return Xe(t),null;if(c=(t.flags&128)!==0,s=a.rendering,s===null)if(c)Or(a,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Yo(e),s!==null){for(t.flags|=128,Or(a,!1),e=s.updateQueue,t.updateQueue=e,ti(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)om(n,e),n=n.sibling;return G(Pe,Pe.current&1|2),Te&&bn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Rt()>oi&&(t.flags|=128,c=!0,Or(a,!1),t.lanes=4194304)}else{if(!c)if(e=Yo(s),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,ti(t,e),Or(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Te)return Xe(t),null}else 2*Rt()-a.renderingStartTime>oi&&n!==536870912&&(t.flags|=128,c=!0,Or(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Rt(),e.sibling=null,n=Pe.current,G(Pe,c?n&1|2:n&1),Te&&bn(t,a.treeForkCount),e):(Xe(t),null);case 22:case 23:return jt(t),bs(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&ti(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&O(jl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sn(Ie),Xe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Dx(e,t){switch(as(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sn(Ie),fe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _e(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(i(340));_l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));_l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(Pe),null;case 4:return fe(),null;case 10:return Sn(t.type),null;case 22:case 23:return jt(t),bs(),e!==null&&O(jl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sn(Ie),null;case 25:return null;default:return null}}function zh(e,t){switch(as(t),t.tag){case 3:Sn(Ie),fe();break;case 26:case 27:case 5:_e(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:O(Pe);break;case 10:Sn(t.type);break;case 22:case 23:jt(t),bs(),e!==null&&O(jl);break;case 24:Sn(Ie)}}function Mr(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var c=a.next;n=c;do{if((n.tag&e)===e){a=void 0;var s=n.create,g=n.inst;a=s(),g.destroy=a}n=n.next}while(n!==c)}}catch(S){Ue(t,t.return,S)}}function Fn(e,t,n){try{var a=t.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var s=c.next;a=s;do{if((a.tag&e)===e){var g=a.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,c=t;var _=n,U=S;try{U()}catch(Z){Ue(c,_,Z)}}}a=a.next}while(a!==s)}}catch(Z){Ue(t,t.return,Z)}}function Dh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Cm(t,n)}catch(a){Ue(e,e.return,a)}}}function kh(e,t,n){n.props=Ul(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ue(e,t,a)}}function jr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(c){Ue(e,t,c)}}function an(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(c){Ue(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Ue(e,t,c)}else n.current=null}function Lh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(c){Ue(e,e.return,c)}}function Fs(e,t,n){try{var a=e.stateNode;n1(a,e.type,n,t),a[bt]=t}catch(c){Ue(e,e.return,c)}}function Uh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&al(e.type)||e.tag===4}function Is(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&al(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ws(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gn));else if(a!==4&&(a===27&&al(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ws(e,t,n),e=e.sibling;e!==null;)Ws(e,t,n),e=e.sibling}function ni(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&al(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ni(e,t,n),e=e.sibling;e!==null;)ni(e,t,n),e=e.sibling}function Hh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);ft(t,a,n),t[it]=e,t[bt]=n}catch(s){Ue(e,e.return,s)}}var Rn=!1,tt=!1,eu=!1,Bh=typeof WeakSet=="function"?WeakSet:Set,ot=null;function kx(e,t){if(e=e.containerInfo,Su=Ei,e=Fd(e),Kc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var c=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var g=0,S=-1,_=-1,U=0,Z=0,J=e,H=null;t:for(;;){for(var V;J!==n||c!==0&&J.nodeType!==3||(S=g+c),J!==s||a!==0&&J.nodeType!==3||(_=g+a),J.nodeType===3&&(g+=J.nodeValue.length),(V=J.firstChild)!==null;)H=J,J=V;for(;;){if(J===e)break t;if(H===n&&++U===c&&(S=g),H===s&&++Z===a&&(_=g),(V=J.nextSibling)!==null)break;J=H,H=J.parentNode}J=V}n=S===-1||_===-1?null:{start:S,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(wu={focusedElem:e,selectionRange:n},Ei=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,n=t,c=s.memoizedProps,s=s.memoizedState,a=n.stateNode;try{var ne=Ul(n.type,c);e=a.getSnapshotBeforeUpdate(ne,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Ue(n,n.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Au(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Au(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ot=e;break}ot=t.return}}function qh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Tn(e,n),a&4&&Mr(5,n);break;case 1:if(Tn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Ue(n,n.return,g)}else{var c=Ul(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ue(n,n.return,g)}}a&64&&Dh(n),a&512&&jr(n,n.return);break;case 3:if(Tn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Cm(e,t)}catch(g){Ue(n,n.return,g)}}break;case 27:t===null&&a&4&&Hh(n);case 26:case 5:Tn(e,n),t===null&&a&4&&Lh(n),a&512&&jr(n,n.return);break;case 12:Tn(e,n);break;case 31:Tn(e,n),a&4&&Gh(e,n);break;case 13:Tn(e,n),a&4&&Xh(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xx.bind(null,n),u1(e,n))));break;case 22:if(a=n.memoizedState!==null||Rn,!a){t=t!==null&&t.memoizedState!==null||tt,c=Rn;var s=tt;Rn=a,(tt=t)&&!s?_n(e,n,(n.subtreeFlags&8772)!==0):Tn(e,n),Rn=c,tt=s}break;case 30:break;default:Tn(e,n)}}function Vh(e){var t=e.alternate;t!==null&&(e.alternate=null,Vh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Oc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Qe=null,St=!1;function Nn(e,t,n){for(n=n.child;n!==null;)Yh(e,t,n),n=n.sibling}function Yh(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(nr,n)}catch{}switch(n.tag){case 26:tt||an(n,t),Nn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tt||an(n,t);var a=Qe,c=St;al(n.type)&&(Qe=n.stateNode,St=!1),Nn(e,t,n),Vr(n.stateNode),Qe=a,St=c;break;case 5:tt||an(n,t);case 6:if(a=Qe,c=St,Qe=null,Nn(e,t,n),Qe=a,St=c,Qe!==null)if(St)try{(Qe.nodeType===9?Qe.body:Qe.nodeName==="HTML"?Qe.ownerDocument.body:Qe).removeChild(n.stateNode)}catch(s){Ue(n,t,s)}else try{Qe.removeChild(n.stateNode)}catch(s){Ue(n,t,s)}break;case 18:Qe!==null&&(St?(e=Qe,Dp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ka(e)):Dp(Qe,n.stateNode));break;case 4:a=Qe,c=St,Qe=n.stateNode.containerInfo,St=!0,Nn(e,t,n),Qe=a,St=c;break;case 0:case 11:case 14:case 15:Fn(2,n,t),tt||Fn(4,n,t),Nn(e,t,n);break;case 1:tt||(an(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&kh(n,t,a)),Nn(e,t,n);break;case 21:Nn(e,t,n);break;case 22:tt=(a=tt)||n.memoizedState!==null,Nn(e,t,n),tt=a;break;default:Nn(e,t,n)}}function Gh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ka(e)}catch(n){Ue(t,t.return,n)}}}function Xh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ka(e)}catch(n){Ue(t,t.return,n)}}function Lx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Bh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Bh),t;default:throw Error(i(435,e.tag))}}function li(e,t){var n=Lx(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var c=Qx.bind(null,e,a);a.then(c,c)}})}function wt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var c=n[a],s=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(al(S.type)){Qe=S.stateNode,St=!1;break e}break;case 5:Qe=S.stateNode,St=!1;break e;case 3:case 4:Qe=S.stateNode.containerInfo,St=!0;break e}S=S.return}if(Qe===null)throw Error(i(160));Yh(s,g,c),Qe=null,St=!1,s=c.alternate,s!==null&&(s.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Qh(t,e),t=t.sibling}var Pt=null;function Qh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(t,e),Et(e),a&4&&(Fn(3,e,e.return),Mr(3,e),Fn(5,e,e.return));break;case 1:wt(t,e),Et(e),a&512&&(tt||n===null||an(n,n.return)),a&64&&Rn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var c=Pt;if(wt(t,e),Et(e),a&512&&(tt||n===null||an(n,n.return)),a&4){var s=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(a){case"title":s=c.getElementsByTagName("title")[0],(!s||s[rr]||s[it]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=c.createElement(a),c.head.insertBefore(s,c.querySelector("head > title"))),ft(s,a,n),s[it]=e,rt(s),a=s;break e;case"link":var g=Qp("link","href",c).get(a+(n.href||""));if(g){for(var S=0;S<g.length;S++)if(s=g[S],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(S,1);break t}}s=c.createElement(a),ft(s,a,n),c.head.appendChild(s);break;case"meta":if(g=Qp("meta","content",c).get(a+(n.content||""))){for(S=0;S<g.length;S++)if(s=g[S],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(S,1);break t}}s=c.createElement(a),ft(s,a,n),c.head.appendChild(s);break;default:throw Error(i(468,a))}s[it]=e,rt(s),a=s}e.stateNode=a}else Zp(c,e.type,e.stateNode);else e.stateNode=Xp(c,a,e.memoizedProps);else s!==a?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,a===null?Zp(c,e.type,e.stateNode):Xp(c,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Fs(e,e.memoizedProps,n.memoizedProps)}break;case 27:wt(t,e),Et(e),a&512&&(tt||n===null||an(n,n.return)),n!==null&&a&4&&Fs(e,e.memoizedProps,n.memoizedProps);break;case 5:if(wt(t,e),Et(e),a&512&&(tt||n===null||an(n,n.return)),e.flags&32){c=e.stateNode;try{aa(c,"")}catch(ne){Ue(e,e.return,ne)}}a&4&&e.stateNode!=null&&(c=e.memoizedProps,Fs(e,c,n!==null?n.memoizedProps:c)),a&1024&&(eu=!0);break;case 6:if(wt(t,e),Et(e),a&4){if(e.stateNode===null)throw Error(i(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){Ue(e,e.return,ne)}}break;case 3:if(bi=null,c=Pt,Pt=vi(t.containerInfo),wt(t,e),Pt=c,Et(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ka(t.containerInfo)}catch(ne){Ue(e,e.return,ne)}eu&&(eu=!1,Zh(e));break;case 4:a=Pt,Pt=vi(e.stateNode.containerInfo),wt(t,e),Et(e),Pt=a;break;case 12:wt(t,e),Et(e);break;case 31:wt(t,e),Et(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,li(e,a)));break;case 13:wt(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ri=Rt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,li(e,a)));break;case 22:c=e.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,U=Rn,Z=tt;if(Rn=U||c,tt=Z||_,wt(t,e),tt=Z,Rn=U,Et(e),a&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||_||Rn||tt||Hl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){_=n=t;try{if(s=_.stateNode,c)g=s.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=_.stateNode;var J=_.memoizedProps.style,H=J!=null&&J.hasOwnProperty("display")?J.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(ne){Ue(_,_.return,ne)}}}else if(t.tag===6){if(n===null){_=t;try{_.stateNode.nodeValue=c?"":_.memoizedProps}catch(ne){Ue(_,_.return,ne)}}}else if(t.tag===18){if(n===null){_=t;try{var V=_.stateNode;c?kp(V,!0):kp(_.stateNode,!1)}catch(ne){Ue(_,_.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,li(e,n))));break;case 19:wt(t,e),Et(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,li(e,a)));break;case 30:break;case 21:break;default:wt(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Uh(a)){n=a;break}a=a.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode,s=Is(e);ni(e,s,c);break;case 5:var g=n.stateNode;n.flags&32&&(aa(g,""),n.flags&=-33);var S=Is(e);ni(e,S,g);break;case 3:case 4:var _=n.stateNode.containerInfo,U=Is(e);Ws(e,U,_);break;default:throw Error(i(161))}}catch(Z){Ue(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Zh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Zh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qh(e,t.alternate,t),t=t.sibling}function Hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Fn(4,t,t.return),Hl(t);break;case 1:an(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&kh(t,t.return,n),Hl(t);break;case 27:Vr(t.stateNode);case 26:case 5:an(t,t.return),Hl(t);break;case 22:t.memoizedState===null&&Hl(t);break;case 30:Hl(t);break;default:Hl(t)}e=e.sibling}}function _n(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,c=e,s=t,g=s.flags;switch(s.tag){case 0:case 11:case 15:_n(c,s,n),Mr(4,s);break;case 1:if(_n(c,s,n),a=s,c=a.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(U){Ue(a,a.return,U)}if(a=s,c=a.updateQueue,c!==null){var S=a.stateNode;try{var _=c.shared.hiddenCallbacks;if(_!==null)for(c.shared.hiddenCallbacks=null,c=0;c<_.length;c++)Em(_[c],S)}catch(U){Ue(a,a.return,U)}}n&&g&64&&Dh(s),jr(s,s.return);break;case 27:Hh(s);case 26:case 5:_n(c,s,n),n&&a===null&&g&4&&Lh(s),jr(s,s.return);break;case 12:_n(c,s,n);break;case 31:_n(c,s,n),n&&g&4&&Gh(c,s);break;case 13:_n(c,s,n),n&&g&4&&Xh(c,s);break;case 22:s.memoizedState===null&&_n(c,s,n),jr(s,s.return);break;case 30:break;default:_n(c,s,n)}t=t.sibling}}function tu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&yr(n))}function nu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yr(e))}function Jt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Kh(e,t,n,a),t=t.sibling}function Kh(e,t,n,a){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,n,a),c&2048&&Mr(9,t);break;case 1:Jt(e,t,n,a);break;case 3:Jt(e,t,n,a),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yr(e)));break;case 12:if(c&2048){Jt(e,t,n,a),e=t.stateNode;try{var s=t.memoizedProps,g=s.id,S=s.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){Ue(t,t.return,_)}}else Jt(e,t,n,a);break;case 31:Jt(e,t,n,a);break;case 13:Jt(e,t,n,a);break;case 23:break;case 22:s=t.stateNode,g=t.alternate,t.memoizedState!==null?s._visibility&2?Jt(e,t,n,a):zr(e,t):s._visibility&2?Jt(e,t,n,a):(s._visibility|=2,Ca(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),c&2048&&tu(g,t);break;case 24:Jt(e,t,n,a),c&2048&&nu(t.alternate,t);break;default:Jt(e,t,n,a)}}function Ca(e,t,n,a,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,g=t,S=n,_=a,U=g.flags;switch(g.tag){case 0:case 11:case 15:Ca(s,g,S,_,c),Mr(8,g);break;case 23:break;case 22:var Z=g.stateNode;g.memoizedState!==null?Z._visibility&2?Ca(s,g,S,_,c):zr(s,g):(Z._visibility|=2,Ca(s,g,S,_,c)),c&&U&2048&&tu(g.alternate,g);break;case 24:Ca(s,g,S,_,c),c&&U&2048&&nu(g.alternate,g);break;default:Ca(s,g,S,_,c)}t=t.sibling}}function zr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,c=a.flags;switch(a.tag){case 22:zr(n,a),c&2048&&tu(a.alternate,a);break;case 24:zr(n,a),c&2048&&nu(a.alternate,a);break;default:zr(n,a)}t=t.sibling}}var Dr=8192;function Aa(e,t,n){if(e.subtreeFlags&Dr)for(e=e.child;e!==null;)$h(e,t,n),e=e.sibling}function $h(e,t,n){switch(e.tag){case 26:Aa(e,t,n),e.flags&Dr&&e.memoizedState!==null&&w1(n,Pt,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,n);break;case 3:case 4:var a=Pt;Pt=vi(e.stateNode.containerInfo),Aa(e,t,n),Pt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Dr,Dr=16777216,Aa(e,t,n),Dr=a):Aa(e,t,n));break;default:Aa(e,t,n)}}function Ph(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function kr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ot=a,Fh(a,e)}Ph(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jh(e),e=e.sibling}function Jh(e){switch(e.tag){case 0:case 11:case 15:kr(e),e.flags&2048&&Fn(9,e,e.return);break;case 3:kr(e);break;case 12:kr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ai(e)):kr(e);break;default:kr(e)}}function ai(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ot=a,Fh(a,e)}Ph(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Fn(8,t,t.return),ai(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ai(t));break;default:ai(t)}e=e.sibling}}function Fh(e,t){for(;ot!==null;){var n=ot;switch(n.tag){case 0:case 11:case 15:Fn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:yr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ot=a;else e:for(n=e;ot!==null;){a=ot;var c=a.sibling,s=a.return;if(Vh(a),a===n){ot=null;break e}if(c!==null){c.return=s,ot=c;break e}ot=s}}}var Ux={getCacheForType:function(e){var t=st(Ie),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return st(Ie).controller.signal}},Hx=typeof WeakMap=="function"?WeakMap:Map,ze=0,Ve=null,Ce=null,Re=0,Le=0,zt=null,In=!1,Ra=!1,lu=!1,On=0,$e=0,Wn=0,Bl=0,au=0,Dt=0,Na=0,Lr=null,Ct=null,ru=!1,ri=0,Ih=0,oi=1/0,ii=null,el=null,lt=0,tl=null,Ta=null,Mn=0,ou=0,iu=null,Wh=null,Ur=0,cu=null;function kt(){return(ze&2)!==0&&Re!==0?Re&-Re:D.T!==null?hu():pd()}function ep(){if(Dt===0)if((Re&536870912)===0||Te){var e=po;po<<=1,(po&3932160)===0&&(po=262144),Dt=e}else Dt=536870912;return e=Mt.current,e!==null&&(e.flags|=32),Dt}function At(e,t,n){(e===Ve&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(_a(e,0),nl(e,Re,Dt,!1)),ar(e,n),((ze&2)===0||e!==Ve)&&(e===Ve&&((ze&2)===0&&(Bl|=n),$e===4&&nl(e,Re,Dt,!1)),rn(e))}function tp(e,t,n){if((ze&6)!==0)throw Error(i(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||lr(e,t),c=a?Vx(e,t):uu(e,t,!0),s=a;do{if(c===0){Ra&&!a&&nl(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!Bx(n)){c=uu(e,t,!1),s=!1;continue}if(c===2){if(s=t,e.errorRecoveryDisabledLanes&s)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;c=Lr;var _=S.current.memoizedState.isDehydrated;if(_&&(_a(S,g).flags|=256),g=uu(S,g,!1),g!==2){if(lu&&!_){S.errorRecoveryDisabledLanes|=s,Bl|=s,c=4;break e}s=Ct,Ct=c,s!==null&&(Ct===null?Ct=s:Ct.push.apply(Ct,s))}c=g}if(s=!1,c!==2)continue}}if(c===1){_a(e,0),nl(e,t,0,!0);break}e:{switch(a=e,s=c,s){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:nl(a,t,Dt,!In);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=ri+300-Rt(),10<c)){if(nl(a,t,Dt,!In),vo(a,0,!0)!==0)break e;Mn=t,a.timeoutHandle=jp(np.bind(null,a,n,Ct,ii,ru,t,Dt,Bl,Na,In,s,"Throttled",-0,0),c);break e}np(a,n,Ct,ii,ru,t,Dt,Bl,Na,In,s,null,-0,0)}}break}while(!0);rn(e)}function np(e,t,n,a,c,s,g,S,_,U,Z,J,H,V){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gn},$h(t,s,J);var ne=(s&62914560)===s?ri-Rt():(s&4194048)===s?Ih-Rt():0;if(ne=E1(J,ne),ne!==null){Mn=s,e.cancelPendingCommit=ne(up.bind(null,e,t,s,n,a,c,g,S,_,Z,J,null,H,V)),nl(e,s,g,!U);return}}up(e,t,s,n,a,c,g,S,_)}function Bx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var c=n[a],s=c.getSnapshot;c=c.value;try{if(!_t(s(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nl(e,t,n,a){t&=~au,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var c=t;0<c;){var s=31-Tt(c),g=1<<s;a[s]=-1,c&=~g}n!==0&&dd(e,n,t)}function ci(){return(ze&6)===0?(Hr(0),!1):!0}function su(){if(Ce!==null){if(Le===0)var e=Ce.return;else e=Ce,xn=Ol=null,As(e),ba=null,xr=0,e=Ce;for(;e!==null;)zh(e.alternate,e),e=e.return;Ce=null}}function _a(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,r1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Mn=0,su(),Ve=e,Ce=n=yn(e.current,null),Re=t,Le=0,zt=null,In=!1,Ra=lr(e,t),lu=!1,Na=Dt=au=Bl=Wn=$e=0,Ct=Lr=null,ru=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var c=31-Tt(a),s=1<<c;t|=e[c],a&=~s}return On=t,_o(),n}function lp(e,t){xe=null,D.H=Tr,t===ya||t===Uo?(t=bm(),Le=3):t===ms?(t=bm(),Le=4):Le=t===Vs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,Ce===null&&($e=1,Fo(e,Vt(t,e.current)))}function ap(){var e=Mt.current;return e===null?!0:(Re&4194048)===Re?Qt===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Qt:!1}function rp(){var e=D.H;return D.H=Tr,e===null?Tr:e}function op(){var e=D.A;return D.A=Ux,e}function si(){$e=4,In||(Re&4194048)!==Re&&Mt.current!==null||(Ra=!0),(Wn&134217727)===0&&(Bl&134217727)===0||Ve===null||nl(Ve,Re,Dt,!1)}function uu(e,t,n){var a=ze;ze|=2;var c=rp(),s=op();(Ve!==e||Re!==t)&&(ii=null,_a(e,t)),t=!1;var g=$e;e:do try{if(Le!==0&&Ce!==null){var S=Ce,_=zt;switch(Le){case 8:su(),g=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var U=Le;if(Le=0,zt=null,Oa(e,S,_,U),n&&Ra){g=0;break e}break;default:U=Le,Le=0,zt=null,Oa(e,S,_,U)}}qx(),g=$e;break}catch(Z){lp(e,Z)}while(!0);return t&&e.shellSuspendCounter++,xn=Ol=null,ze=a,D.H=c,D.A=s,Ce===null&&(Ve=null,Re=0,_o()),g}function qx(){for(;Ce!==null;)ip(Ce)}function Vx(e,t){var n=ze;ze|=2;var a=rp(),c=op();Ve!==e||Re!==t?(ii=null,oi=Rt()+500,_a(e,t)):Ra=lr(e,t);e:do try{if(Le!==0&&Ce!==null){t=Ce;var s=zt;t:switch(Le){case 1:Le=0,zt=null,Oa(e,t,s,1);break;case 2:case 9:if(vm(s)){Le=0,zt=null,cp(t);break}t=function(){Le!==2&&Le!==9||Ve!==e||(Le=7),rn(e)},s.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:vm(s)?(Le=0,zt=null,cp(t)):(Le=0,zt=null,Oa(e,t,s,7));break;case 5:var g=null;switch(Ce.tag){case 26:g=Ce.memoizedState;case 5:case 27:var S=Ce;if(g?Kp(g):S.stateNode.complete){Le=0,zt=null;var _=S.sibling;if(_!==null)Ce=_;else{var U=S.return;U!==null?(Ce=U,ui(U)):Ce=null}break t}}Le=0,zt=null,Oa(e,t,s,5);break;case 6:Le=0,zt=null,Oa(e,t,s,6);break;case 8:su(),$e=6;break e;default:throw Error(i(462))}}Yx();break}catch(Z){lp(e,Z)}while(!0);return xn=Ol=null,D.H=a,D.A=c,ze=n,Ce!==null?0:(Ve=null,Re=0,_o(),$e)}function Yx(){for(;Ce!==null&&!fb();)ip(Ce)}function ip(e){var t=Mh(e.alternate,e,On);e.memoizedProps=e.pendingProps,t===null?ui(e):Ce=t}function cp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ah(n,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=Ah(n,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:As(t);default:zh(n,t),t=Ce=om(t,On),t=Mh(n,t,On)}e.memoizedProps=e.pendingProps,t===null?ui(e):Ce=t}function Oa(e,t,n,a){xn=Ol=null,As(t),ba=null,xr=0;var c=t.return;try{if(Ox(e,c,t,n,Re)){$e=1,Fo(e,Vt(n,e.current)),Ce=null;return}}catch(s){if(c!==null)throw Ce=c,s;$e=1,Fo(e,Vt(n,e.current)),Ce=null;return}t.flags&32768?(Te||a===1?e=!0:Ra||(Re&536870912)!==0?e=!1:(In=e=!0,(a===2||a===9||a===3||a===6)&&(a=Mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),sp(t,e)):ui(t)}function ui(e){var t=e;do{if((t.flags&32768)!==0){sp(t,In);return}e=t.return;var n=zx(t.alternate,t,On);if(n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);$e===0&&($e=5)}function sp(e,t){do{var n=Dx(e.alternate,e);if(n!==null){n.flags&=32767,Ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=n}while(e!==null);$e=6,Ce=null}function up(e,t,n,a,c,s,g,S,_){e.cancelPendingCommit=null;do fi();while(lt!==0);if((ze&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(s=t.lanes|t.childLanes,s|=Ic,Sb(e,n,s,g,S,_),e===Ve&&(Ce=Ve=null,Re=0),Ta=t,tl=e,Mn=n,ou=s,iu=c,Wh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Zx(mo,function(){return pp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,c=X.p,X.p=2,g=ze,ze|=4;try{kx(e,t,n)}finally{ze=g,X.p=c,D.T=a}}lt=1,fp(),dp(),mp()}}function fp(){if(lt===1){lt=0;var e=tl,t=Ta,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var a=X.p;X.p=2;var c=ze;ze|=4;try{Qh(t,e);var s=wu,g=Fd(e.containerInfo),S=s.focusedElem,_=s.selectionRange;if(g!==S&&S&&S.ownerDocument&&Jd(S.ownerDocument.documentElement,S)){if(_!==null&&Kc(S)){var U=_.start,Z=_.end;if(Z===void 0&&(Z=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(Z,S.value.length);else{var J=S.ownerDocument||document,H=J&&J.defaultView||window;if(H.getSelection){var V=H.getSelection(),ne=S.textContent.length,ge=Math.min(_.start,ne),qe=_.end===void 0?ge:Math.min(_.end,ne);!V.extend&&ge>qe&&(g=qe,qe=ge,ge=g);var k=Pd(S,ge),j=Pd(S,qe);if(k&&j&&(V.rangeCount!==1||V.anchorNode!==k.node||V.anchorOffset!==k.offset||V.focusNode!==j.node||V.focusOffset!==j.offset)){var L=J.createRange();L.setStart(k.node,k.offset),V.removeAllRanges(),ge>qe?(V.addRange(L),V.extend(j.node,j.offset)):(L.setEnd(j.node,j.offset),V.addRange(L))}}}}for(J=[],V=S;V=V.parentNode;)V.nodeType===1&&J.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<J.length;S++){var $=J[S];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}Ei=!!Su,wu=Su=null}finally{ze=c,X.p=a,D.T=n}}e.current=t,lt=2}}function dp(){if(lt===2){lt=0;var e=tl,t=Ta,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=X.p;X.p=2;var c=ze;ze|=4;try{qh(e,t.alternate,t)}finally{ze=c,X.p=a,D.T=n}}lt=3}}function mp(){if(lt===4||lt===3){lt=0,db();var e=tl,t=Ta,n=Mn,a=Wh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,Ta=tl=null,hp(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(el=null),Tc(n),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(nr,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,c=X.p,X.p=2,D.T=null;try{for(var s=e.onRecoverableError,g=0;g<a.length;g++){var S=a[g];s(S.value,{componentStack:S.stack})}}finally{D.T=t,X.p=c}}(Mn&3)!==0&&fi(),rn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===cu?Ur++:(Ur=0,cu=e):Ur=0,Hr(0)}}function hp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yr(t)))}function fi(){return fp(),dp(),mp(),pp()}function pp(){if(lt!==5)return!1;var e=tl,t=ou;ou=0;var n=Tc(Mn),a=D.T,c=X.p;try{X.p=32>n?32:n,D.T=null,n=iu,iu=null;var s=tl,g=Mn;if(lt=0,Ta=tl=null,Mn=0,(ze&6)!==0)throw Error(i(331));var S=ze;if(ze|=4,Jh(s.current),Kh(s,s.current,g,n),ze=S,Hr(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(nr,s)}catch{}return!0}finally{X.p=c,D.T=a,hp(e,t)}}function gp(e,t,n){t=Vt(n,t),t=qs(e.stateNode,t,2),e=$n(e,t,2),e!==null&&(ar(e,2),rn(e))}function Ue(e,t,n){if(e.tag===3)gp(e,e,n);else for(;t!==null;){if(t.tag===3){gp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(el===null||!el.has(a))){e=Vt(n,e),n=vh(2),a=$n(t,n,2),a!==null&&(yh(n,a,t,e),ar(a,2),rn(a));break}}t=t.return}}function fu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Hx;var c=new Set;a.set(t,c)}else c=a.get(t),c===void 0&&(c=new Set,a.set(t,c));c.has(n)||(lu=!0,c.add(n),e=Gx.bind(null,e,t,n),t.then(e,e))}function Gx(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ve===e&&(Re&n)===n&&($e===4||$e===3&&(Re&62914560)===Re&&300>Rt()-ri?(ze&2)===0&&_a(e,0):au|=n,Na===Re&&(Na=0)),rn(e)}function vp(e,t){t===0&&(t=fd()),e=Nl(e,t),e!==null&&(ar(e,t),rn(e))}function Xx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vp(e,n)}function Qx(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(i(314))}a!==null&&a.delete(t),vp(e,n)}function Zx(e,t){return Cc(e,t)}var di=null,Ma=null,du=!1,mi=!1,mu=!1,ll=0;function rn(e){e!==Ma&&e.next===null&&(Ma===null?di=Ma=e:Ma=Ma.next=e),mi=!0,du||(du=!0,$x())}function Hr(e,t){if(!mu&&mi){mu=!0;do for(var n=!1,a=di;a!==null;){if(e!==0){var c=a.pendingLanes;if(c===0)var s=0;else{var g=a.suspendedLanes,S=a.pingedLanes;s=(1<<31-Tt(42|e)+1)-1,s&=c&~(g&~S),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,Sp(a,s))}else s=Re,s=vo(a,a===Ve?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||lr(a,s)||(n=!0,Sp(a,s));a=a.next}while(n);mu=!1}}function Kx(){yp()}function yp(){mi=du=!1;var e=0;ll!==0&&a1()&&(e=ll);for(var t=Rt(),n=null,a=di;a!==null;){var c=a.next,s=bp(a,t);s===0?(a.next=null,n===null?di=c:n.next=c,c===null&&(Ma=n)):(n=a,(e!==0||(s&3)!==0)&&(mi=!0)),a=c}lt!==0&&lt!==5||Hr(e),ll!==0&&(ll=0)}function bp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,c=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var g=31-Tt(s),S=1<<g,_=c[g];_===-1?((S&n)===0||(S&a)!==0)&&(c[g]=xb(S,t)):_<=t&&(e.expiredLanes|=S),s&=~S}if(t=Ve,n=Re,n=vo(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ac(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||lr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Ac(a),Tc(n)){case 2:case 8:n=sd;break;case 32:n=mo;break;case 268435456:n=ud;break;default:n=mo}return a=xp.bind(null,e),n=Cc(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Ac(a),e.callbackPriority=2,e.callbackNode=null,2}function xp(e,t){if(lt!==0&&lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(fi()&&e.callbackNode!==n)return null;var a=Re;return a=vo(e,e===Ve?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(tp(e,a,t),bp(e,Rt()),e.callbackNode!=null&&e.callbackNode===n?xp.bind(null,e):null)}function Sp(e,t){if(fi())return null;tp(e,t,!0)}function $x(){o1(function(){(ze&6)!==0?Cc(cd,Kx):yp()})}function hu(){if(ll===0){var e=ga;e===0&&(e=ho,ho<<=1,(ho&261888)===0&&(ho=256)),ll=e}return ll}function wp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:So(""+e)}function Ep(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Px(e,t,n,a,c){if(t==="submit"&&n&&n.stateNode===c){var s=wp((c[bt]||null).action),g=a.submitter;g&&(t=(t=g[bt]||null)?wp(t.formAction):g.getAttribute("formAction"),t!==null&&(s=t,g=null));var S=new Ao("action","action",null,a,c);e.push({event:S,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ll!==0){var _=g?Ep(c,g):new FormData(c);Ds(n,{pending:!0,data:_,method:c.method,action:s},null,_)}}else typeof s=="function"&&(S.preventDefault(),_=g?Ep(c,g):new FormData(c),Ds(n,{pending:!0,data:_,method:c.method,action:s},s,_))},currentTarget:c}]})}}for(var pu=0;pu<Fc.length;pu++){var gu=Fc[pu],Jx=gu.toLowerCase(),Fx=gu[0].toUpperCase()+gu.slice(1);$t(Jx,"on"+Fx)}$t(em,"onAnimationEnd"),$t(tm,"onAnimationIteration"),$t(nm,"onAnimationStart"),$t("dblclick","onDoubleClick"),$t("focusin","onFocus"),$t("focusout","onBlur"),$t(mx,"onTransitionRun"),$t(hx,"onTransitionStart"),$t(px,"onTransitionCancel"),$t(lm,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),El("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),El("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),El("onBeforeInput",["compositionend","keypress","textInput","paste"]),El("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="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(" "),Ix=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Br));function Cp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],c=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var g=a.length-1;0<=g;g--){var S=a[g],_=S.instance,U=S.currentTarget;if(S=S.listener,_!==s&&c.isPropagationStopped())break e;s=S,c.currentTarget=U;try{s(c)}catch(Z){To(Z)}c.currentTarget=null,s=_}else for(g=0;g<a.length;g++){if(S=a[g],_=S.instance,U=S.currentTarget,S=S.listener,_!==s&&c.isPropagationStopped())break e;s=S,c.currentTarget=U;try{s(c)}catch(Z){To(Z)}c.currentTarget=null,s=_}}}}function Ae(e,t){var n=t[_c];n===void 0&&(n=t[_c]=new Set);var a=e+"__bubble";n.has(a)||(Ap(t,e,2,!1),n.add(a))}function vu(e,t,n){var a=0;t&&(a|=4),Ap(n,e,a,t)}var hi="_reactListening"+Math.random().toString(36).slice(2);function yu(e){if(!e[hi]){e[hi]=!0,yd.forEach(function(n){n!=="selectionchange"&&(Ix.has(n)||vu(n,!1,e),vu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hi]||(t[hi]=!0,vu("selectionchange",!1,t))}}function Ap(e,t,n,a){switch(eg(t)){case 2:var c=R1;break;case 8:c=N1;break;default:c=zu}n=c.bind(null,t,n,e),c=void 0,!Hc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),a?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function bu(e,t,n,a,c){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var S=a.stateNode.containerInfo;if(S===c)break;if(g===4)for(g=a.return;g!==null;){var _=g.tag;if((_===3||_===4)&&g.stateNode.containerInfo===c)return;g=g.return}for(;S!==null;){if(g=Wl(S),g===null)return;if(_=g.tag,_===5||_===6||_===26||_===27){a=s=g;continue e}S=S.parentNode}}a=a.return}Od(function(){var U=s,Z=Lc(n),J=[];e:{var H=am.get(e);if(H!==void 0){var V=Ao,ne=e;switch(e){case"keypress":if(Eo(n)===0)break e;case"keydown":case"keyup":V=Qb;break;case"focusin":ne="focus",V=Yc;break;case"focusout":ne="blur",V=Yc;break;case"beforeblur":case"afterblur":V=Yc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=zb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=$b;break;case em:case tm:case nm:V=Lb;break;case lm:V=Jb;break;case"scroll":case"scrollend":V=Mb;break;case"wheel":V=Ib;break;case"copy":case"cut":case"paste":V=Hb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=kd;break;case"toggle":case"beforetoggle":V=ex}var ge=(t&4)!==0,qe=!ge&&(e==="scroll"||e==="scrollend"),k=ge?H!==null?H+"Capture":null:H;ge=[];for(var j=U,L;j!==null;){var $=j;if(L=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||L===null||k===null||($=ir(j,k),$!=null&&ge.push(qr(j,$,L))),qe)break;j=j.return}0<ge.length&&(H=new V(H,ne,null,n,Z),J.push({event:H,listeners:ge}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",H&&n!==kc&&(ne=n.relatedTarget||n.fromElement)&&(Wl(ne)||ne[Il]))break e;if((V||H)&&(H=Z.window===Z?Z:(H=Z.ownerDocument)?H.defaultView||H.parentWindow:window,V?(ne=n.relatedTarget||n.toElement,V=U,ne=ne?Wl(ne):null,ne!==null&&(qe=f(ne),ge=ne.tag,ne!==qe||ge!==5&&ge!==27&&ge!==6)&&(ne=null)):(V=null,ne=U),V!==ne)){if(ge=zd,$="onMouseLeave",k="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ge=kd,$="onPointerLeave",k="onPointerEnter",j="pointer"),qe=V==null?H:or(V),L=ne==null?H:or(ne),H=new ge($,j+"leave",V,n,Z),H.target=qe,H.relatedTarget=L,$=null,Wl(Z)===U&&(ge=new ge(k,j+"enter",ne,n,Z),ge.target=L,ge.relatedTarget=qe,$=ge),qe=$,V&&ne)t:{for(ge=Wx,k=V,j=ne,L=0,$=k;$;$=ge($))L++;$=0;for(var he=j;he;he=ge(he))$++;for(;0<L-$;)k=ge(k),L--;for(;0<$-L;)j=ge(j),$--;for(;L--;){if(k===j||j!==null&&k===j.alternate){ge=k;break t}k=ge(k),j=ge(j)}ge=null}else ge=null;V!==null&&Rp(J,H,V,ge,!1),ne!==null&&qe!==null&&Rp(J,qe,ne,ge,!0)}}e:{if(H=U?or(U):window,V=H.nodeName&&H.nodeName.toLowerCase(),V==="select"||V==="input"&&H.type==="file")var Me=Gd;else if(Vd(H))if(Xd)Me=ux;else{Me=cx;var ie=ix}else V=H.nodeName,!V||V.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&Dc(U.elementType)&&(Me=Gd):Me=sx;if(Me&&(Me=Me(e,U))){Yd(J,Me,n,Z);break e}ie&&ie(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&zc(H,"number",H.value)}switch(ie=U?or(U):window,e){case"focusin":(Vd(ie)||ie.contentEditable==="true")&&(ca=ie,$c=U,pr=null);break;case"focusout":pr=$c=ca=null;break;case"mousedown":Pc=!0;break;case"contextmenu":case"mouseup":case"dragend":Pc=!1,Id(J,n,Z);break;case"selectionchange":if(dx)break;case"keydown":case"keyup":Id(J,n,Z)}var we;if(Xc)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else ia?Bd(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(Ld&&n.locale!=="ko"&&(ia||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&ia&&(we=Md()):(Vn=Z,Bc="value"in Vn?Vn.value:Vn.textContent,ia=!0)),ie=pi(U,Ne),0<ie.length&&(Ne=new Dd(Ne,e,null,n,Z),J.push({event:Ne,listeners:ie}),we?Ne.data=we:(we=qd(n),we!==null&&(Ne.data=we)))),(we=nx?lx(e,n):ax(e,n))&&(Ne=pi(U,"onBeforeInput"),0<Ne.length&&(ie=new Dd("onBeforeInput","beforeinput",null,n,Z),J.push({event:ie,listeners:Ne}),ie.data=we)),Px(J,e,U,n,Z)}Cp(J,t)})}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pi(e,t){for(var n=t+"Capture",a=[];e!==null;){var c=e,s=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||s===null||(c=ir(e,n),c!=null&&a.unshift(qr(e,c,s)),c=ir(e,t),c!=null&&a.push(qr(e,c,s))),e.tag===3)return a;e=e.return}return[]}function Wx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rp(e,t,n,a,c){for(var s=t._reactName,g=[];n!==null&&n!==a;){var S=n,_=S.alternate,U=S.stateNode;if(S=S.tag,_!==null&&_===a)break;S!==5&&S!==26&&S!==27||U===null||(_=U,c?(U=ir(n,s),U!=null&&g.unshift(qr(n,U,_))):c||(U=ir(n,s),U!=null&&g.push(qr(n,U,_)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var e1=/\r\n?/g,t1=/\u0000|\uFFFD/g;function Np(e){return(typeof e=="string"?e:""+e).replace(e1,`
`).replace(t1,"")}function Tp(e,t){return t=Np(t),Np(e)===t}function Be(e,t,n,a,c,s){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||aa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&aa(e,""+a);break;case"className":bo(e,"class",a);break;case"tabIndex":bo(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":bo(e,n,a);break;case"style":Td(e,a,s);break;case"data":if(t!=="object"){bo(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=So(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&Be(e,t,"name",c.name,c,null),Be(e,t,"formEncType",c.formEncType,c,null),Be(e,t,"formMethod",c.formMethod,c,null),Be(e,t,"formTarget",c.formTarget,c,null)):(Be(e,t,"encType",c.encType,c,null),Be(e,t,"method",c.method,c,null),Be(e,t,"target",c.target,c,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=So(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=gn);break;case"onScroll":a!=null&&Ae("scroll",e);break;case"onScrollEnd":a!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(n=a.__html,n!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=So(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),yo(e,"popover",a);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":yo(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=_b.get(n)||n,yo(e,n,a))}}function xu(e,t,n,a,c,s){switch(n){case"style":Td(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(n=a.__html,n!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"children":typeof a=="string"?aa(e,a):(typeof a=="number"||typeof a=="bigint")&&aa(e,""+a);break;case"onScroll":a!=null&&Ae("scroll",e);break;case"onScrollEnd":a!=null&&Ae("scrollend",e);break;case"onClick":a!=null&&(e.onclick=gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),s=e[bt]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,c),typeof a=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,c);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):yo(e,n,a)}}}function ft(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var a=!1,c=!1,s;for(s in n)if(n.hasOwnProperty(s)){var g=n[s];if(g!=null)switch(s){case"src":a=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Be(e,t,s,g,n,null)}}c&&Be(e,t,"srcSet",n.srcSet,n,null),a&&Be(e,t,"src",n.src,n,null);return;case"input":Ae("invalid",e);var S=s=g=c=null,_=null,U=null;for(a in n)if(n.hasOwnProperty(a)){var Z=n[a];if(Z!=null)switch(a){case"name":c=Z;break;case"type":g=Z;break;case"checked":_=Z;break;case"defaultChecked":U=Z;break;case"value":s=Z;break;case"defaultValue":S=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Be(e,t,a,Z,n,null)}}Cd(e,s,S,_,U,g,c,!1);return;case"select":Ae("invalid",e),a=g=s=null;for(c in n)if(n.hasOwnProperty(c)&&(S=n[c],S!=null))switch(c){case"value":s=S;break;case"defaultValue":g=S;break;case"multiple":a=S;default:Be(e,t,c,S,n,null)}t=s,n=g,e.multiple=!!a,t!=null?la(e,!!a,t,!1):n!=null&&la(e,!!a,n,!0);return;case"textarea":Ae("invalid",e),s=c=a=null;for(g in n)if(n.hasOwnProperty(g)&&(S=n[g],S!=null))switch(g){case"value":a=S;break;case"defaultValue":c=S;break;case"children":s=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:Be(e,t,g,S,n,null)}Rd(e,a,c,s);return;case"option":for(_ in n)if(n.hasOwnProperty(_)&&(a=n[_],a!=null))switch(_){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Be(e,t,_,a,n,null)}return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(a=0;a<Br.length;a++)Ae(Br[a],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in n)if(n.hasOwnProperty(U)&&(a=n[U],a!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Be(e,t,U,a,n,null)}return;default:if(Dc(t)){for(Z in n)n.hasOwnProperty(Z)&&(a=n[Z],a!==void 0&&xu(e,t,Z,a,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(a=n[S],a!=null&&Be(e,t,S,a,n,null))}function n1(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,s=null,g=null,S=null,_=null,U=null,Z=null;for(V in n){var J=n[V];if(n.hasOwnProperty(V)&&J!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":_=J;default:a.hasOwnProperty(V)||Be(e,t,V,null,a,J)}}for(var H in a){var V=a[H];if(J=n[H],a.hasOwnProperty(H)&&(V!=null||J!=null))switch(H){case"type":s=V;break;case"name":c=V;break;case"checked":U=V;break;case"defaultChecked":Z=V;break;case"value":g=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:V!==J&&Be(e,t,H,V,a,J)}}jc(e,g,S,_,U,Z,s,c);return;case"select":V=g=S=H=null;for(s in n)if(_=n[s],n.hasOwnProperty(s)&&_!=null)switch(s){case"value":break;case"multiple":V=_;default:a.hasOwnProperty(s)||Be(e,t,s,null,a,_)}for(c in a)if(s=a[c],_=n[c],a.hasOwnProperty(c)&&(s!=null||_!=null))switch(c){case"value":H=s;break;case"defaultValue":S=s;break;case"multiple":g=s;default:s!==_&&Be(e,t,c,s,a,_)}t=S,n=g,a=V,H!=null?la(e,!!n,H,!1):!!a!=!!n&&(t!=null?la(e,!!n,t,!0):la(e,!!n,n?[]:"",!1));return;case"textarea":V=H=null;for(S in n)if(c=n[S],n.hasOwnProperty(S)&&c!=null&&!a.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Be(e,t,S,null,a,c)}for(g in a)if(c=a[g],s=n[g],a.hasOwnProperty(g)&&(c!=null||s!=null))switch(g){case"value":H=c;break;case"defaultValue":V=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==s&&Be(e,t,g,c,a,s)}Ad(e,H,V);return;case"option":for(var ne in n)if(H=n[ne],n.hasOwnProperty(ne)&&H!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Be(e,t,ne,null,a,H)}for(_ in a)if(H=a[_],V=n[_],a.hasOwnProperty(_)&&H!==V&&(H!=null||V!=null))switch(_){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Be(e,t,_,H,a,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ge in n)H=n[ge],n.hasOwnProperty(ge)&&H!=null&&!a.hasOwnProperty(ge)&&Be(e,t,ge,null,a,H);for(U in a)if(H=a[U],V=n[U],a.hasOwnProperty(U)&&H!==V&&(H!=null||V!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:Be(e,t,U,H,a,V)}return;default:if(Dc(t)){for(var qe in n)H=n[qe],n.hasOwnProperty(qe)&&H!==void 0&&!a.hasOwnProperty(qe)&&xu(e,t,qe,void 0,a,H);for(Z in a)H=a[Z],V=n[Z],!a.hasOwnProperty(Z)||H===V||H===void 0&&V===void 0||xu(e,t,Z,H,a,V);return}}for(var k in n)H=n[k],n.hasOwnProperty(k)&&H!=null&&!a.hasOwnProperty(k)&&Be(e,t,k,null,a,H);for(J in a)H=a[J],V=n[J],!a.hasOwnProperty(J)||H===V||H==null&&V==null||Be(e,t,J,H,a,V)}function _p(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function l1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var c=n[a],s=c.transferSize,g=c.initiatorType,S=c.duration;if(s&&S&&_p(g)){for(g=0,S=c.responseEnd,a+=1;a<n.length;a++){var _=n[a],U=_.startTime;if(U>S)break;var Z=_.transferSize,J=_.initiatorType;Z&&_p(J)&&(_=_.responseEnd,g+=Z*(_<S?1:(S-U)/(_-U)))}if(--a,t+=8*(s+g)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Su=null,wu=null;function gi(e){return e.nodeType===9?e:e.ownerDocument}function Op(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Mp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Eu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cu=null;function a1(){var e=window.event;return e&&e.type==="popstate"?e===Cu?!1:(Cu=e,!0):(Cu=null,!1)}var jp=typeof setTimeout=="function"?setTimeout:void 0,r1=typeof clearTimeout=="function"?clearTimeout:void 0,zp=typeof Promise=="function"?Promise:void 0,o1=typeof queueMicrotask=="function"?queueMicrotask:typeof zp<"u"?function(e){return zp.resolve(null).then(e).catch(i1)}:jp;function i1(e){setTimeout(function(){throw e})}function al(e){return e==="head"}function Dp(e,t){var n=t,a=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(c),ka(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Vr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Vr(n);for(var s=n.firstChild;s;){var g=s.nextSibling,S=s.nodeName;s[rr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=g}}else n==="body"&&Vr(e.ownerDocument.body);n=c}while(n);ka(t)}function kp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Au(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Au(n),Oc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function c1(e,t,n,a){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[rr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Zt(e.nextSibling),e===null)break}return null}function s1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Zt(e.nextSibling),e===null))return null;return e}function Lp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Zt(e.nextSibling),e===null))return null;return e}function Ru(e){return e.data==="$?"||e.data==="$~"}function Nu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function u1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Tu=null;function Up(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Zt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Hp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Bp(e,t,n){switch(t=gi(n),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Vr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Oc(e)}var Kt=new Map,qp=new Set;function vi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=X.d;X.d={f:f1,r:d1,D:m1,C:h1,L:p1,m:g1,X:y1,S:v1,M:b1};function f1(){var e=jn.f(),t=ci();return e||t}function d1(e){var t=ea(e);t!==null&&t.tag===5&&t.type==="form"?lh(t):jn.r(e)}var ja=typeof document>"u"?null:document;function Vp(e,t,n){var a=ja;if(a&&typeof t=="string"&&t){var c=Bt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),qp.has(c)||(qp.add(c),e={rel:e,crossOrigin:n,href:t},a.querySelector(c)===null&&(t=a.createElement("link"),ft(t,"link",e),rt(t),a.head.appendChild(t)))}}function m1(e){jn.D(e),Vp("dns-prefetch",e,null)}function h1(e,t){jn.C(e,t),Vp("preconnect",e,t)}function p1(e,t,n){jn.L(e,t,n);var a=ja;if(a&&e&&t){var c='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Bt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Bt(n.imageSizes)+'"]')):c+='[href="'+Bt(e)+'"]';var s=c;switch(t){case"style":s=za(e);break;case"script":s=Da(e)}Kt.has(s)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Kt.set(s,e),a.querySelector(c)!==null||t==="style"&&a.querySelector(Yr(s))||t==="script"&&a.querySelector(Gr(s))||(t=a.createElement("link"),ft(t,"link",e),rt(t),a.head.appendChild(t)))}}function g1(e,t){jn.m(e,t);var n=ja;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Bt(a)+'"][href="'+Bt(e)+'"]',s=c;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Da(e)}if(!Kt.has(s)&&(e=x({rel:"modulepreload",href:e},t),Kt.set(s,e),n.querySelector(c)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Gr(s)))return}a=n.createElement("link"),ft(a,"link",e),rt(a),n.head.appendChild(a)}}}function v1(e,t,n){jn.S(e,t,n);var a=ja;if(a&&e){var c=ta(a).hoistableStyles,s=za(e);t=t||"default";var g=c.get(s);if(!g){var S={loading:0,preload:null};if(g=a.querySelector(Yr(s)))S.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Kt.get(s))&&_u(e,n);var _=g=a.createElement("link");rt(_),ft(_,"link",e),_._p=new Promise(function(U,Z){_.onload=U,_.onerror=Z}),_.addEventListener("load",function(){S.loading|=1}),_.addEventListener("error",function(){S.loading|=2}),S.loading|=4,yi(g,t,a)}g={type:"stylesheet",instance:g,count:1,state:S},c.set(s,g)}}}function y1(e,t){jn.X(e,t);var n=ja;if(n&&e){var a=ta(n).hoistableScripts,c=Da(e),s=a.get(c);s||(s=n.querySelector(Gr(c)),s||(e=x({src:e,async:!0},t),(t=Kt.get(c))&&Ou(e,t),s=n.createElement("script"),rt(s),ft(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(c,s))}}function b1(e,t){jn.M(e,t);var n=ja;if(n&&e){var a=ta(n).hoistableScripts,c=Da(e),s=a.get(c);s||(s=n.querySelector(Gr(c)),s||(e=x({src:e,async:!0,type:"module"},t),(t=Kt.get(c))&&Ou(e,t),s=n.createElement("script"),rt(s),ft(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(c,s))}}function Yp(e,t,n,a){var c=(c=ee.current)?vi(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=za(n.href),n=ta(c).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=za(n.href);var s=ta(c).hoistableStyles,g=s.get(e);if(g||(c=c.ownerDocument||c,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,g),(s=c.querySelector(Yr(e)))&&!s._p&&(g.instance=s,g.state.loading=5),Kt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Kt.set(e,n),s||x1(c,e,n,g.state))),t&&a===null)throw Error(i(528,""));return g}if(t&&a!==null)throw Error(i(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Da(n),n=ta(c).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function za(e){return'href="'+Bt(e)+'"'}function Yr(e){return'link[rel="stylesheet"]['+e+"]"}function Gp(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function x1(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ft(t,"link",n),rt(t),e.head.appendChild(t))}function Da(e){return'[src="'+Bt(e)+'"]'}function Gr(e){return"script[async]"+e}function Xp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Bt(n.href)+'"]');if(a)return t.instance=a,rt(a),a;var c=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),rt(a),ft(a,"style",c),yi(a,n.precedence,e),t.instance=a;case"stylesheet":c=za(n.href);var s=e.querySelector(Yr(c));if(s)return t.state.loading|=4,t.instance=s,rt(s),s;a=Gp(n),(c=Kt.get(c))&&_u(a,c),s=(e.ownerDocument||e).createElement("link"),rt(s);var g=s;return g._p=new Promise(function(S,_){g.onload=S,g.onerror=_}),ft(s,"link",a),t.state.loading|=4,yi(s,n.precedence,e),t.instance=s;case"script":return s=Da(n.src),(c=e.querySelector(Gr(s)))?(t.instance=c,rt(c),c):(a=n,(c=Kt.get(s))&&(a=x({},n),Ou(a,c)),e=e.ownerDocument||e,c=e.createElement("script"),rt(c),ft(c,"link",a),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,yi(a,n.precedence,e));return t.instance}function yi(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=a.length?a[a.length-1]:null,s=c,g=0;g<a.length;g++){var S=a[g];if(S.dataset.precedence===t)s=S;else if(s!==c)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function _u(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ou(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bi=null;function Qp(e,t,n){if(bi===null){var a=new Map,c=bi=new Map;c.set(n,a)}else c=bi,a=c.get(n),a||(a=new Map,c.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var s=n[c];if(!(s[rr]||s[it]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var g=s.getAttribute(t)||"";g=e+g;var S=a.get(g);S?S.push(s):a.set(g,[s])}}return a}function Zp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function S1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Kp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function w1(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=za(a.href),s=t.querySelector(Yr(c));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=xi.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,rt(s);return}s=t.ownerDocument||t,a=Gp(a),(c=Kt.get(c))&&_u(a,c),s=s.createElement("link"),rt(s);var g=s;g._p=new Promise(function(S,_){g.onload=S,g.onerror=_}),ft(s,"link",a),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=xi.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Mu=0;function E1(e,t){return e.stylesheets&&e.count===0&&wi(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&wi(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Mu===0&&(Mu=62500*l1());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wi(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Mu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(c)}}:null}function xi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Si=null;function wi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Si=new Map,t.forEach(C1,e),Si=null,xi.call(e))}function C1(e,t){if(!(t.state.loading&4)){var n=Si.get(e);if(n)var a=n.get(null);else{n=new Map,Si.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<c.length;s++){var g=c[s];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),a=g)}a&&n.set(null,a)}c=t.instance,g=c.getAttribute("data-precedence"),s=n.get(g)||a,s===a&&n.set(null,c),n.set(g,c),this.count++,a=xi.bind(this),c.addEventListener("load",a),c.addEventListener("error",a),s?s.parentNode.insertBefore(c,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Xr={$$typeof:z,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function A1(e,t,n,a,c,s,g,S,_){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Rc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rc(0),this.hiddenUpdates=Rc(null),this.identifierPrefix=a,this.onUncaughtError=c,this.onCaughtError=s,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function $p(e,t,n,a,c,s,g,S,_,U,Z,J){return e=new A1(e,t,n,g,_,U,Z,J,S),t=1,s===!0&&(t|=24),s=Ot(3,null,null,t),e.current=s,s.stateNode=e,t=us(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:n,cache:t},hs(s),e}function Pp(e){return e?(e=fa,e):fa}function Jp(e,t,n,a,c,s){c=Pp(c),a.context===null?a.context=c:a.pendingContext=c,a=Kn(t),a.payload={element:n},s=s===void 0?null:s,s!==null&&(a.callback=s),n=$n(e,a,t),n!==null&&(At(n,e,t),wr(n,e,t))}function Fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ju(e,t){Fp(e,t),(e=e.alternate)&&Fp(e,t)}function Ip(e){if(e.tag===13||e.tag===31){var t=Nl(e,67108864);t!==null&&At(t,e,67108864),ju(e,67108864)}}function Wp(e){if(e.tag===13||e.tag===31){var t=kt();t=Nc(t);var n=Nl(e,t);n!==null&&At(n,e,t),ju(e,t)}}var Ei=!0;function R1(e,t,n,a){var c=D.T;D.T=null;var s=X.p;try{X.p=2,zu(e,t,n,a)}finally{X.p=s,D.T=c}}function N1(e,t,n,a){var c=D.T;D.T=null;var s=X.p;try{X.p=8,zu(e,t,n,a)}finally{X.p=s,D.T=c}}function zu(e,t,n,a){if(Ei){var c=Du(a);if(c===null)bu(e,t,a,Ci,n),tg(e,a);else if(_1(c,e,t,n,a))a.stopPropagation();else if(tg(e,a),t&4&&-1<T1.indexOf(e)){for(;c!==null;){var s=ea(c);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var g=wl(s.pendingLanes);if(g!==0){var S=s;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var _=1<<31-Tt(g);S.entanglements[1]|=_,g&=~_}rn(s),(ze&6)===0&&(oi=Rt()+500,Hr(0))}}break;case 31:case 13:S=Nl(s,2),S!==null&&At(S,s,2),ci(),ju(s,2)}if(s=Du(a),s===null&&bu(e,t,a,Ci,n),s===c)break;c=s}c!==null&&a.stopPropagation()}else bu(e,t,a,null,n)}}function Du(e){return e=Lc(e),ku(e)}var Ci=null;function ku(e){if(Ci=null,e=Wl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ci=e,null}function eg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mb()){case cd:return 2;case sd:return 8;case mo:case hb:return 32;case ud:return 268435456;default:return 32}default:return 32}}var Lu=!1,rl=null,ol=null,il=null,Qr=new Map,Zr=new Map,cl=[],T1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function tg(e,t){switch(e){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":ol=null;break;case"mouseover":case"mouseout":il=null;break;case"pointerover":case"pointerout":Qr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(t.pointerId)}}function Kr(e,t,n,a,c,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:s,targetContainers:[c]},t!==null&&(t=ea(t),t!==null&&Ip(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function _1(e,t,n,a,c){switch(t){case"focusin":return rl=Kr(rl,e,t,n,a,c),!0;case"dragenter":return ol=Kr(ol,e,t,n,a,c),!0;case"mouseover":return il=Kr(il,e,t,n,a,c),!0;case"pointerover":var s=c.pointerId;return Qr.set(s,Kr(Qr.get(s)||null,e,t,n,a,c)),!0;case"gotpointercapture":return s=c.pointerId,Zr.set(s,Kr(Zr.get(s)||null,e,t,n,a,c)),!0}return!1}function ng(e){var t=Wl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,gd(e.priority,function(){Wp(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,gd(e.priority,function(){Wp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ai(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Du(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);kc=a,n.target.dispatchEvent(a),kc=null}else return t=ea(n),t!==null&&Ip(t),e.blockedOn=n,!1;t.shift()}return!0}function lg(e,t,n){Ai(e)&&n.delete(t)}function O1(){Lu=!1,rl!==null&&Ai(rl)&&(rl=null),ol!==null&&Ai(ol)&&(ol=null),il!==null&&Ai(il)&&(il=null),Qr.forEach(lg),Zr.forEach(lg)}function Ri(e,t){e.blockedOn===t&&(e.blockedOn=null,Lu||(Lu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,O1)))}var Ni=null;function ag(e){Ni!==e&&(Ni=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ni===e&&(Ni=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],c=e[t+2];if(typeof a!="function"){if(ku(a||n)===null)continue;break}var s=ea(n);s!==null&&(e.splice(t,3),t-=3,Ds(s,{pending:!0,data:c,method:n.method,action:a},a,c))}}))}function ka(e){function t(_){return Ri(_,e)}rl!==null&&Ri(rl,e),ol!==null&&Ri(ol,e),il!==null&&Ri(il,e),Qr.forEach(t),Zr.forEach(t);for(var n=0;n<cl.length;n++){var a=cl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<cl.length&&(n=cl[0],n.blockedOn===null);)ng(n),n.blockedOn===null&&cl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var c=n[a],s=n[a+1],g=c[bt]||null;if(typeof s=="function")g||ag(n);else if(g){var S=null;if(s&&s.hasAttribute("formAction")){if(c=s,g=s[bt]||null)S=g.formAction;else if(ku(c)!==null)continue}else S=g.action;typeof S=="function"?n[a+1]=S:(n.splice(a,3),a-=3),ag(n)}}}function rg(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(g){return c=g})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Uu(e){this._internalRoot=e}Ti.prototype.render=Uu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current,a=kt();Jp(n,a,e,t,null,null)},Ti.prototype.unmount=Uu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jp(e.current,2,null,e,null,null),ci(),t[Il]=null}};function Ti(e){this._internalRoot=e}Ti.prototype.unstable_scheduleHydration=function(e){if(e){var t=pd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cl.length&&t!==0&&t<cl[n].priority;n++);cl.splice(n,0,e),n===0&&ng(e)}};var og=r.version;if(og!=="19.2.0")throw Error(i(527,og,"19.2.0"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=h(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var M1={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_i.isDisabled&&_i.supportsFiber)try{nr=_i.inject(M1),Nt=_i}catch{}}return Pr.createRoot=function(e,t){if(!u(e))throw Error(i(299));var n=!1,a="",c=mh,s=hh,g=ph;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=$p(e,1,!1,null,null,n,a,null,c,s,g,rg),e[Il]=t.current,yu(e),new Uu(t)},Pr.hydrateRoot=function(e,t,n){if(!u(e))throw Error(i(299));var a=!1,c="",s=mh,g=hh,S=ph,_=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),t=$p(e,1,!0,t,n??null,a,c,_,s,g,S,rg),t.context=Pp(null),n=t.current,a=kt(),a=Nc(a),c=Kn(a),c.callback=null,$n(n,c,a),n=a,t.current.lanes=n,ar(t,n),rn(t),e[Il]=t.current,yu(e),new Ti(t)},Pr.version="19.2.0",Pr}var gg;function V1(){if(gg)return qu.exports;gg=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),qu.exports=q1(),qu.exports}var Y1=V1();/**
 * react-router v7.9.4
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var vg="popstate";function G1(l={}){function r(i,u){let{pathname:f,search:d,hash:m}=i.location;return sf("",{pathname:f,search:d,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function o(i,u){return typeof u=="string"?u:eo(u)}return Q1(r,o,null,l)}function Ze(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function fn(l,r){if(!l){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function X1(){return Math.random().toString(36).substring(2,10)}function yg(l,r){return{usr:l.state,key:l.key,idx:r}}function sf(l,r,o=null,i){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof r=="string"?Za(r):r,state:o,key:r&&r.key||i||X1()}}function eo({pathname:l="/",search:r="",hash:o=""}){return r&&r!=="?"&&(l+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(l+=o.charAt(0)==="#"?o:"#"+o),l}function Za(l){let r={};if(l){let o=l.indexOf("#");o>=0&&(r.hash=l.substring(o),l=l.substring(0,o));let i=l.indexOf("?");i>=0&&(r.search=l.substring(i),l=l.substring(0,i)),l&&(r.pathname=l)}return r}function Q1(l,r,o,i={}){let{window:u=document.defaultView,v5Compat:f=!1}=i,d=u.history,m="POP",v=null,h=b();h==null&&(h=0,d.replaceState({...d.state,idx:h},""));function b(){return(d.state||{idx:null}).idx}function x(){m="POP";let R=b(),T=R==null?null:R-h;h=R,v&&v({action:m,location:w.location,delta:T})}function E(R,T){m="PUSH";let A=sf(w.location,R,T);h=b()+1;let z=yg(A,h),q=w.createHref(A);try{d.pushState(z,"",q)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;u.location.assign(q)}f&&v&&v({action:m,location:w.location,delta:1})}function C(R,T){m="REPLACE";let A=sf(w.location,R,T);h=b();let z=yg(A,h),q=w.createHref(A);d.replaceState(z,"",q),f&&v&&v({action:m,location:w.location,delta:0})}function N(R){return Z1(R)}let w={get action(){return m},get location(){return l(u,d)},listen(R){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(vg,x),v=R,()=>{u.removeEventListener(vg,x),v=null}},createHref(R){return r(u,R)},createURL:N,encodeLocation(R){let T=N(R);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:E,replace:C,go(R){return d.go(R)}};return w}function Z1(l,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Ze(o,"No window.location.(origin|href) available to create URL");let i=typeof l=="string"?l:eo(l);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function sv(l,r,o="/"){return K1(l,r,o,!1)}function K1(l,r,o,i){let u=typeof r=="string"?Za(r):r,f=kn(u.pathname||"/",o);if(f==null)return null;let d=uv(l);$1(d);let m=null;for(let v=0;m==null&&v<d.length;++v){let h=rS(f);m=lS(d[v],h,i)}return m}function uv(l,r=[],o=[],i="",u=!1){let f=(d,m,v=u,h)=>{let b={relativePath:h===void 0?d.path||"":h,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(i)&&v)return;Ze(b.relativePath.startsWith(i),`Absolute route path "${b.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(i.length)}let x=Dn([i,b.relativePath]),E=o.concat(b);d.children&&d.children.length>0&&(Ze(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),uv(d.children,r,E,x,v)),!(d.path==null&&!d.index)&&r.push({path:x,score:tS(x,d.index),routesMeta:E})};return l.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))f(d,m);else for(let v of fv(d.path))f(d,m,!0,v)}),r}function fv(l){let r=l.split("/");if(r.length===0)return[];let[o,...i]=r,u=o.endsWith("?"),f=o.replace(/\?$/,"");if(i.length===0)return u?[f,""]:[f];let d=fv(i.join("/")),m=[];return m.push(...d.map(v=>v===""?f:[f,v].join("/"))),u&&m.push(...d),m.map(v=>l.startsWith("/")&&v===""?"/":v)}function $1(l){l.sort((r,o)=>r.score!==o.score?o.score-r.score:nS(r.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var P1=/^:[\w-]+$/,J1=3,F1=2,I1=1,W1=10,eS=-2,bg=l=>l==="*";function tS(l,r){let o=l.split("/"),i=o.length;return o.some(bg)&&(i+=eS),r&&(i+=F1),o.filter(u=>!bg(u)).reduce((u,f)=>u+(P1.test(f)?J1:f===""?I1:W1),i)}function nS(l,r){return l.length===r.length&&l.slice(0,-1).every((i,u)=>i===r[u])?l[l.length-1]-r[r.length-1]:0}function lS(l,r,o=!1){let{routesMeta:i}=l,u={},f="/",d=[];for(let m=0;m<i.length;++m){let v=i[m],h=m===i.length-1,b=f==="/"?r:r.slice(f.length)||"/",x=Qi({path:v.relativePath,caseSensitive:v.caseSensitive,end:h},b),E=v.route;if(!x&&h&&o&&!i[i.length-1].route.index&&(x=Qi({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!x)return null;Object.assign(u,x.params),d.push({params:u,pathname:Dn([f,x.pathname]),pathnameBase:sS(Dn([f,x.pathnameBase])),route:E}),x.pathnameBase!=="/"&&(f=Dn([f,x.pathnameBase]))}return d}function Qi(l,r){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[o,i]=aS(l.path,l.caseSensitive,l.end),u=r.match(o);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:i.reduce((h,{paramName:b,isOptional:x},E)=>{if(b==="*"){let N=m[E]||"";d=f.slice(0,f.length-N.length).replace(/(.)\/+$/,"$1")}const C=m[E];return x&&!C?h[b]=void 0:h[b]=(C||"").replace(/%2F/g,"/"),h},{}),pathname:f,pathnameBase:d,pattern:l}}function aS(l,r=!1,o=!0){fn(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let i=[],u="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,v)=>(i.push({paramName:m,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(i.push({paramName:"*"}),u+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?u+="\\/*$":l!==""&&l!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,r?void 0:"i"),i]}function rS(l){try{return l.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return fn(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),l}}function kn(l,r){if(r==="/")return l;if(!l.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,i=l.charAt(o);return i&&i!=="/"?null:l.slice(o)||"/"}function oS(l,r="/"){let{pathname:o,search:i="",hash:u=""}=typeof l=="string"?Za(l):l;return{pathname:o?o.startsWith("/")?o:iS(o,r):r,search:uS(i),hash:fS(u)}}function iS(l,r){let o=r.replace(/\/+$/,"").split("/");return l.split("/").forEach(u=>{u===".."?o.length>1&&o.pop():u!=="."&&o.push(u)}),o.length>1?o.join("/"):"/"}function Xu(l,r,o,i){return`Cannot include a '${l}' character in a manually specified \`to.${r}\` field [${JSON.stringify(i)}].  Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function cS(l){return l.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function dv(l){let r=cS(l);return r.map((o,i)=>i===r.length-1?o.pathname:o.pathnameBase)}function mv(l,r,o,i=!1){let u;typeof l=="string"?u=Za(l):(u={...l},Ze(!u.pathname||!u.pathname.includes("?"),Xu("?","pathname","search",u)),Ze(!u.pathname||!u.pathname.includes("#"),Xu("#","pathname","hash",u)),Ze(!u.search||!u.search.includes("#"),Xu("#","search","hash",u)));let f=l===""||u.pathname==="",d=f?"/":u.pathname,m;if(d==null)m=o;else{let x=r.length-1;if(!i&&d.startsWith("..")){let E=d.split("/");for(;E[0]==="..";)E.shift(),x-=1;u.pathname=E.join("/")}m=x>=0?r[x]:"/"}let v=oS(u,m),h=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(h||b)&&(v.pathname+="/"),v}var Dn=l=>l.join("/").replace(/\/\/+/g,"/"),sS=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),uS=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,fS=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function dS(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var hv=["POST","PUT","PATCH","DELETE"];new Set(hv);var mS=["GET",...hv];new Set(mS);var Ka=p.createContext(null);Ka.displayName="DataRouter";var Wi=p.createContext(null);Wi.displayName="DataRouterState";p.createContext(!1);var pv=p.createContext({isTransitioning:!1});pv.displayName="ViewTransition";var hS=p.createContext(new Map);hS.displayName="Fetchers";var pS=p.createContext(null);pS.displayName="Await";var mn=p.createContext(null);mn.displayName="Navigation";var ro=p.createContext(null);ro.displayName="Location";var Hn=p.createContext({outlet:null,matches:[],isDataRoute:!1});Hn.displayName="Route";var Tf=p.createContext(null);Tf.displayName="RouteError";function gS(l,{relative:r}={}){Ze(oo(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=p.useContext(mn),{hash:u,pathname:f,search:d}=io(l,{relative:r}),m=f;return o!=="/"&&(m=f==="/"?o:Dn([o,f])),i.createHref({pathname:m,search:d,hash:u})}function oo(){return p.useContext(ro)!=null}function Jl(){return Ze(oo(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(ro).location}var gv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vv(l){p.useContext(mn).static||p.useLayoutEffect(l)}function vS(){let{isDataRoute:l}=p.useContext(Hn);return l?OS():yS()}function yS(){Ze(oo(),"useNavigate() may be used only in the context of a <Router> component.");let l=p.useContext(Ka),{basename:r,navigator:o}=p.useContext(mn),{matches:i}=p.useContext(Hn),{pathname:u}=Jl(),f=JSON.stringify(dv(i)),d=p.useRef(!1);return vv(()=>{d.current=!0}),p.useCallback((v,h={})=>{if(fn(d.current,gv),!d.current)return;if(typeof v=="number"){o.go(v);return}let b=mv(v,JSON.parse(f),u,h.relative==="path");l==null&&r!=="/"&&(b.pathname=b.pathname==="/"?r:Dn([r,b.pathname])),(h.replace?o.replace:o.push)(b,h.state,h)},[r,o,f,u,l])}p.createContext(null);function io(l,{relative:r}={}){let{matches:o}=p.useContext(Hn),{pathname:i}=Jl(),u=JSON.stringify(dv(o));return p.useMemo(()=>mv(l,JSON.parse(u),i,r==="path"),[l,u,i,r])}function bS(l,r){return yv(l,r)}function yv(l,r,o,i,u){Ze(oo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=p.useContext(mn),{matches:d}=p.useContext(Hn),m=d[d.length-1],v=m?m.params:{},h=m?m.pathname:"/",b=m?m.pathnameBase:"/",x=m&&m.route;{let A=x&&x.path||"";bv(h,!x||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let E=Jl(),C;if(r){let A=typeof r=="string"?Za(r):r;Ze(b==="/"||A.pathname?.startsWith(b),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${A.pathname}" was given in the \`location\` prop.`),C=A}else C=E;let N=C.pathname||"/",w=N;if(b!=="/"){let A=b.replace(/^\//,"").split("/");w="/"+N.replace(/^\//,"").split("/").slice(A.length).join("/")}let R=sv(l,{pathname:w});fn(x||R!=null,`No routes matched location "${C.pathname}${C.search}${C.hash}" `),fn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${C.pathname}${C.search}${C.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=CS(R&&R.map(A=>Object.assign({},A,{params:Object.assign({},v,A.params),pathname:Dn([b,f.encodeLocation?f.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?b:Dn([b,f.encodeLocation?f.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),d,o,i,u);return r&&T?p.createElement(ro.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...C},navigationType:"POP"}},T):T}function xS(){let l=_S(),r=dS(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),o=l instanceof Error?l.stack:null,i="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:i},f={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:f},"ErrorBoundary")," or"," ",p.createElement("code",{style:f},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},r),o?p.createElement("pre",{style:u},o):null,d)}var SS=p.createElement(xS,null),wS=class extends p.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,r){return r.location!==l.location||r.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:r.error,location:r.location,revalidation:l.revalidation||r.revalidation}}componentDidCatch(l,r){this.props.unstable_onError?this.props.unstable_onError(l,r):console.error("React Router caught the following error during render",l)}render(){return this.state.error!==void 0?p.createElement(Hn.Provider,{value:this.props.routeContext},p.createElement(Tf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ES({routeContext:l,match:r,children:o}){let i=p.useContext(Ka);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(Hn.Provider,{value:l},o)}function CS(l,r=[],o=null,i=null,u=null){if(l==null){if(!o)return null;if(o.errors)l=o.matches;else if(r.length===0&&!o.initialized&&o.matches.length>0)l=o.matches;else return null}let f=l,d=o?.errors;if(d!=null){let h=f.findIndex(b=>b.route.id&&d?.[b.route.id]!==void 0);Ze(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,h+1))}let m=!1,v=-1;if(o)for(let h=0;h<f.length;h++){let b=f[h];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(v=h),b.route.id){let{loaderData:x,errors:E}=o,C=b.route.loader&&!x.hasOwnProperty(b.route.id)&&(!E||E[b.route.id]===void 0);if(b.route.lazy||C){m=!0,v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}return f.reduceRight((h,b,x)=>{let E,C=!1,N=null,w=null;o&&(E=d&&b.route.id?d[b.route.id]:void 0,N=b.route.errorElement||SS,m&&(v<0&&x===0?(bv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,w=null):v===x&&(C=!0,w=b.route.hydrateFallbackElement||null)));let R=r.concat(f.slice(0,x+1)),T=()=>{let A;return E?A=N:C?A=w:b.route.Component?A=p.createElement(b.route.Component,null):b.route.element?A=b.route.element:A=h,p.createElement(ES,{match:b,routeContext:{outlet:h,matches:R,isDataRoute:o!=null},children:A})};return o&&(b.route.ErrorBoundary||b.route.errorElement||x===0)?p.createElement(wS,{location:o.location,revalidation:o.revalidation,component:N,error:E,children:T(),routeContext:{outlet:null,matches:R,isDataRoute:!0},unstable_onError:i}):T()},null)}function _f(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function AS(l){let r=p.useContext(Ka);return Ze(r,_f(l)),r}function RS(l){let r=p.useContext(Wi);return Ze(r,_f(l)),r}function NS(l){let r=p.useContext(Hn);return Ze(r,_f(l)),r}function Of(l){let r=NS(l),o=r.matches[r.matches.length-1];return Ze(o.route.id,`${l} can only be used on routes that contain a unique "id"`),o.route.id}function TS(){return Of("useRouteId")}function _S(){let l=p.useContext(Tf),r=RS("useRouteError"),o=Of("useRouteError");return l!==void 0?l:r.errors?.[o]}function OS(){let{router:l}=AS("useNavigate"),r=Of("useNavigate"),o=p.useRef(!1);return vv(()=>{o.current=!0}),p.useCallback(async(u,f={})=>{fn(o.current,gv),o.current&&(typeof u=="number"?l.navigate(u):await l.navigate(u,{fromRouteId:r,...f}))},[l,r])}var xg={};function bv(l,r,o){!r&&!xg[l]&&(xg[l]=!0,fn(!1,o))}p.memo(MS);function MS({routes:l,future:r,state:o,unstable_onError:i}){return yv(l,void 0,o,i,r)}function Bi(l){Ze(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function jS({basename:l="/",children:r=null,location:o,navigationType:i="POP",navigator:u,static:f=!1}){Ze(!oo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=l.replace(/^\/*/,"/"),m=p.useMemo(()=>({basename:d,navigator:u,static:f,future:{}}),[d,u,f]);typeof o=="string"&&(o=Za(o));let{pathname:v="/",search:h="",hash:b="",state:x=null,key:E="default"}=o,C=p.useMemo(()=>{let N=kn(v,d);return N==null?null:{location:{pathname:N,search:h,hash:b,state:x,key:E},navigationType:i}},[d,v,h,b,x,E,i]);return fn(C!=null,`<Router basename="${d}"> is not able to match the URL "${v}${h}${b}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:p.createElement(mn.Provider,{value:m},p.createElement(ro.Provider,{children:r,value:C}))}function zS({children:l,location:r}){return bS(uf(l),r)}function uf(l,r=[]){let o=[];return p.Children.forEach(l,(i,u)=>{if(!p.isValidElement(i))return;let f=[...r,u];if(i.type===p.Fragment){o.push.apply(o,uf(i.props.children,f));return}Ze(i.type===Bi,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ze(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||f.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=uf(i.props.children,f)),o.push(d)}),o}var qi="get",Vi="application/x-www-form-urlencoded";function ec(l){return l!=null&&typeof l.tagName=="string"}function DS(l){return ec(l)&&l.tagName.toLowerCase()==="button"}function kS(l){return ec(l)&&l.tagName.toLowerCase()==="form"}function LS(l){return ec(l)&&l.tagName.toLowerCase()==="input"}function US(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function HS(l,r){return l.button===0&&(!r||r==="_self")&&!US(l)}var Oi=null;function BS(){if(Oi===null)try{new FormData(document.createElement("form"),0),Oi=!1}catch{Oi=!0}return Oi}var qS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qu(l){return l!=null&&!qS.has(l)?(fn(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vi}"`),null):l}function VS(l,r){let o,i,u,f,d;if(kS(l)){let m=l.getAttribute("action");i=m?kn(m,r):null,o=l.getAttribute("method")||qi,u=Qu(l.getAttribute("enctype"))||Vi,f=new FormData(l)}else if(DS(l)||LS(l)&&(l.type==="submit"||l.type==="image")){let m=l.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||m.getAttribute("action");if(i=v?kn(v,r):null,o=l.getAttribute("formmethod")||m.getAttribute("method")||qi,u=Qu(l.getAttribute("formenctype"))||Qu(m.getAttribute("enctype"))||Vi,f=new FormData(m,l),!BS()){let{name:h,type:b,value:x}=l;if(b==="image"){let E=h?`${h}.`:"";f.append(`${E}x`,"0"),f.append(`${E}y`,"0")}else h&&f.append(h,x)}}else{if(ec(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=qi,i=null,u=Vi,d=l}return f&&u==="text/plain"&&(d=f,f=void 0),{action:i,method:o.toLowerCase(),encType:u,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mf(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function YS(l,r,o){let i=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return i.pathname==="/"?i.pathname=`_root.${o}`:r&&kn(i.pathname,r)==="/"?i.pathname=`${r.replace(/\/$/,"")}/_root.${o}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${o}`,i}async function GS(l,r){if(l.id in r)return r[l.id];try{let o=await import(l.module);return r[l.id]=o,o}catch(o){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function XS(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function QS(l,r,o){let i=await Promise.all(l.map(async u=>{let f=r.routes[u.route.id];if(f){let d=await GS(f,o);return d.links?d.links():[]}return[]}));return PS(i.flat(1).filter(XS).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Sg(l,r,o,i,u,f){let d=(v,h)=>o[h]?v.route.id!==o[h].route.id:!0,m=(v,h)=>o[h].pathname!==v.pathname||o[h].route.path?.endsWith("*")&&o[h].params["*"]!==v.params["*"];return f==="assets"?r.filter((v,h)=>d(v,h)||m(v,h)):f==="data"?r.filter((v,h)=>{let b=i.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(d(v,h)||m(v,h))return!0;if(v.route.shouldRevalidate){let x=v.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function ZS(l,r,{includeHydrateFallback:o}={}){return KS(l.map(i=>{let u=r.routes[i.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),o&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function KS(l){return[...new Set(l)]}function $S(l){let r={},o=Object.keys(l).sort();for(let i of o)r[i]=l[i];return r}function PS(l,r){let o=new Set;return new Set(r),l.reduce((i,u)=>{let f=JSON.stringify($S(u));return o.has(f)||(o.add(f),i.push({key:f,link:u})),i},[])}function xv(){let l=p.useContext(Ka);return Mf(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function JS(){let l=p.useContext(Wi);return Mf(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var jf=p.createContext(void 0);jf.displayName="FrameworkContext";function Sv(){let l=p.useContext(jf);return Mf(l,"You must render this element inside a <HydratedRouter> element"),l}function FS(l,r){let o=p.useContext(jf),[i,u]=p.useState(!1),[f,d]=p.useState(!1),{onFocus:m,onBlur:v,onMouseEnter:h,onMouseLeave:b,onTouchStart:x}=r,E=p.useRef(null);p.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let w=T=>{T.forEach(A=>{d(A.isIntersecting)})},R=new IntersectionObserver(w,{threshold:.5});return E.current&&R.observe(E.current),()=>{R.disconnect()}}},[l]),p.useEffect(()=>{if(i){let w=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(w)}}},[i]);let C=()=>{u(!0)},N=()=>{u(!1),d(!1)};return o?l!=="intent"?[f,E,{}]:[f,E,{onFocus:Jr(m,C),onBlur:Jr(v,N),onMouseEnter:Jr(h,C),onMouseLeave:Jr(b,N),onTouchStart:Jr(x,C)}]:[!1,E,{}]}function Jr(l,r){return o=>{l&&l(o),o.defaultPrevented||r(o)}}function IS({page:l,...r}){let{router:o}=xv(),i=p.useMemo(()=>sv(o.routes,l,o.basename),[o.routes,l,o.basename]);return i?p.createElement(ew,{page:l,matches:i,...r}):null}function WS(l){let{manifest:r,routeModules:o}=Sv(),[i,u]=p.useState([]);return p.useEffect(()=>{let f=!1;return QS(l,r,o).then(d=>{f||u(d)}),()=>{f=!0}},[l,r,o]),i}function ew({page:l,matches:r,...o}){let i=Jl(),{manifest:u,routeModules:f}=Sv(),{basename:d}=xv(),{loaderData:m,matches:v}=JS(),h=p.useMemo(()=>Sg(l,r,v,u,i,"data"),[l,r,v,u,i]),b=p.useMemo(()=>Sg(l,r,v,u,i,"assets"),[l,r,v,u,i]),x=p.useMemo(()=>{if(l===i.pathname+i.search+i.hash)return[];let N=new Set,w=!1;if(r.forEach(T=>{let A=u.routes[T.route.id];!A||!A.hasLoader||(!h.some(z=>z.route.id===T.route.id)&&T.route.id in m&&f[T.route.id]?.shouldRevalidate||A.hasClientLoader?w=!0:N.add(T.route.id))}),N.size===0)return[];let R=YS(l,d,"data");return w&&N.size>0&&R.searchParams.set("_routes",r.filter(T=>N.has(T.route.id)).map(T=>T.route.id).join(",")),[R.pathname+R.search]},[d,m,i,u,h,r,l,f]),E=p.useMemo(()=>ZS(b,u),[b,u]),C=WS(b);return p.createElement(p.Fragment,null,x.map(N=>p.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...o})),E.map(N=>p.createElement("link",{key:N,rel:"modulepreload",href:N,...o})),C.map(({key:N,link:w})=>p.createElement("link",{key:N,nonce:o.nonce,...w})))}function tw(...l){return r=>{l.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var wv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wv&&(window.__reactRouterVersion="7.9.4")}catch{}function nw({basename:l,children:r,window:o}){let i=p.useRef();i.current==null&&(i.current=G1({window:o,v5Compat:!0}));let u=i.current,[f,d]=p.useState({action:u.action,location:u.location}),m=p.useCallback(v=>{p.startTransition(()=>d(v))},[d]);return p.useLayoutEffect(()=>u.listen(m),[u,m]),p.createElement(jS,{basename:l,children:r,location:f.location,navigationType:f.action,navigator:u})}var Ev=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tc=p.forwardRef(function({onClick:r,discover:o="render",prefetch:i="none",relative:u,reloadDocument:f,replace:d,state:m,target:v,to:h,preventScrollReset:b,viewTransition:x,...E},C){let{basename:N}=p.useContext(mn),w=typeof h=="string"&&Ev.test(h),R,T=!1;if(typeof h=="string"&&w&&(R=h,wv))try{let te=new URL(window.location.href),pe=h.startsWith("//")?new URL(te.protocol+h):new URL(h),de=kn(pe.pathname,N);pe.origin===te.origin&&de!=null?h=de+pe.search+pe.hash:T=!0}catch{fn(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=gS(h,{relative:u}),[z,q,Q]=FS(i,E),F=ow(h,{replace:d,state:m,target:v,preventScrollReset:b,relative:u,viewTransition:x});function Y(te){r&&r(te),te.defaultPrevented||F(te)}let I=p.createElement("a",{...E,...Q,href:R||A,onClick:T||f?r:Y,ref:tw(C,q),target:v,"data-discover":!w&&o==="render"?"true":void 0});return z&&!w?p.createElement(p.Fragment,null,I,p.createElement(IS,{page:A})):I});tc.displayName="Link";var lw=p.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:i="",end:u=!1,style:f,to:d,viewTransition:m,children:v,...h},b){let x=io(d,{relative:h.relative}),E=Jl(),C=p.useContext(Wi),{navigator:N,basename:w}=p.useContext(mn),R=C!=null&&fw(x)&&m===!0,T=N.encodeLocation?N.encodeLocation(x).pathname:x.pathname,A=E.pathname,z=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;o||(A=A.toLowerCase(),z=z?z.toLowerCase():null,T=T.toLowerCase()),z&&w&&(z=kn(z,w)||z);const q=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let Q=A===T||!u&&A.startsWith(T)&&A.charAt(q)==="/",F=z!=null&&(z===T||!u&&z.startsWith(T)&&z.charAt(T.length)==="/"),Y={isActive:Q,isPending:F,isTransitioning:R},I=Q?r:void 0,te;typeof i=="function"?te=i(Y):te=[i,Q?"active":null,F?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let pe=typeof f=="function"?f(Y):f;return p.createElement(tc,{...h,"aria-current":I,className:te,ref:b,style:pe,to:d,viewTransition:m},typeof v=="function"?v(Y):v)});lw.displayName="NavLink";var aw=p.forwardRef(({discover:l="render",fetcherKey:r,navigate:o,reloadDocument:i,replace:u,state:f,method:d=qi,action:m,onSubmit:v,relative:h,preventScrollReset:b,viewTransition:x,...E},C)=>{let N=sw(),w=uw(m,{relative:h}),R=d.toLowerCase()==="get"?"get":"post",T=typeof m=="string"&&Ev.test(m),A=z=>{if(v&&v(z),z.defaultPrevented)return;z.preventDefault();let q=z.nativeEvent.submitter,Q=q?.getAttribute("formmethod")||d;N(q||z.currentTarget,{fetcherKey:r,method:Q,navigate:o,replace:u,state:f,relative:h,preventScrollReset:b,viewTransition:x})};return p.createElement("form",{ref:C,method:R,action:w,onSubmit:i?v:A,...E,"data-discover":!T&&l==="render"?"true":void 0})});aw.displayName="Form";function rw(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cv(l){let r=p.useContext(Ka);return Ze(r,rw(l)),r}function ow(l,{target:r,replace:o,state:i,preventScrollReset:u,relative:f,viewTransition:d}={}){let m=vS(),v=Jl(),h=io(l,{relative:f});return p.useCallback(b=>{if(HS(b,r)){b.preventDefault();let x=o!==void 0?o:eo(v)===eo(h);m(l,{replace:x,state:i,preventScrollReset:u,relative:f,viewTransition:d})}},[v,m,h,o,i,r,l,u,f,d])}var iw=0,cw=()=>`__${String(++iw)}__`;function sw(){let{router:l}=Cv("useSubmit"),{basename:r}=p.useContext(mn),o=TS();return p.useCallback(async(i,u={})=>{let{action:f,method:d,encType:m,formData:v,body:h}=VS(i,r);if(u.navigate===!1){let b=u.fetcherKey||cw();await l.fetch(b,o,u.action||f,{preventScrollReset:u.preventScrollReset,formData:v,body:h,formMethod:u.method||d,formEncType:u.encType||m,flushSync:u.flushSync})}else await l.navigate(u.action||f,{preventScrollReset:u.preventScrollReset,formData:v,body:h,formMethod:u.method||d,formEncType:u.encType||m,replace:u.replace,state:u.state,fromRouteId:o,flushSync:u.flushSync,viewTransition:u.viewTransition})},[l,r,o])}function uw(l,{relative:r}={}){let{basename:o}=p.useContext(mn),i=p.useContext(Hn);Ze(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),f={...io(l||".",{relative:r})},d=Jl();if(l==null){f.search=d.search;let m=new URLSearchParams(f.search),v=m.getAll("index");if(v.some(b=>b==="")){m.delete("index"),v.filter(x=>x).forEach(x=>m.append("index",x));let b=m.toString();f.search=b?`?${b}`:""}}return(!l||l===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(f.pathname=f.pathname==="/"?o:Dn([o,f.pathname])),eo(f)}function fw(l,{relative:r}={}){let o=p.useContext(pv);Ze(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Cv("useViewTransitionState"),u=io(l,{relative:r});if(!o.isTransitioning)return!1;let f=kn(o.currentLocation.pathname,i)||o.currentLocation.pathname,d=kn(o.nextLocation.pathname,i)||o.nextLocation.pathname;return Qi(u.pathname,d)!=null||Qi(u.pathname,f)!=null}var co=cv();const dw=ov(co);function mw(l,r){const o=p.createContext(r),i=f=>{const{children:d,...m}=f,v=p.useMemo(()=>m,Object.values(m));return y.jsx(o.Provider,{value:v,children:d})};i.displayName=l+"Provider";function u(f){const d=p.useContext(o);if(d)return d;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${l}\``)}return[i,u]}function gl(l,r=[]){let o=[];function i(f,d){const m=p.createContext(d),v=o.length;o=[...o,d];const h=x=>{const{scope:E,children:C,...N}=x,w=E?.[l]?.[v]||m,R=p.useMemo(()=>N,Object.values(N));return y.jsx(w.Provider,{value:R,children:C})};h.displayName=f+"Provider";function b(x,E){const C=E?.[l]?.[v]||m,N=p.useContext(C);if(N)return N;if(d!==void 0)return d;throw new Error(`\`${x}\` must be used within \`${f}\``)}return[h,b]}const u=()=>{const f=o.map(d=>p.createContext(d));return function(m){const v=m?.[l]||f;return p.useMemo(()=>({[`__scope${l}`]:{...m,[l]:v}}),[m,v])}};return u.scopeName=l,[i,hw(u,...r)]}function hw(...l){const r=l[0];if(l.length===1)return r;const o=()=>{const i=l.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const d=i.reduce((m,{useScope:v,scopeName:h})=>{const x=v(f)[`__scope${h}`];return{...m,...x}},{});return p.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return o.scopeName=r.scopeName,o}function wg(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function Vl(...l){return r=>{let o=!1;const i=l.map(u=>{const f=wg(u,r);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let u=0;u<i.length;u++){const f=i[u];typeof f=="function"?f():wg(l[u],null)}}}}function Ye(...l){return p.useCallback(Vl(...l),l)}function Yl(l){const r=gw(l),o=p.forwardRef((i,u)=>{const{children:f,...d}=i,m=p.Children.toArray(f),v=m.find(yw);if(v){const h=v.props.children,b=m.map(x=>x===v?p.Children.count(h)>1?p.Children.only(null):p.isValidElement(h)?h.props.children:null:x);return y.jsx(r,{...d,ref:u,children:p.isValidElement(h)?p.cloneElement(h,void 0,b):null})}return y.jsx(r,{...d,ref:u,children:f})});return o.displayName=`${l}.Slot`,o}var pw=Yl("Slot");function gw(l){const r=p.forwardRef((o,i)=>{const{children:u,...f}=o;if(p.isValidElement(u)){const d=xw(u),m=bw(f,u.props);return u.type!==p.Fragment&&(m.ref=i?Vl(i,d):d),p.cloneElement(u,m)}return p.Children.count(u)>1?p.Children.only(null):null});return r.displayName=`${l}.SlotClone`,r}var vw=Symbol("radix.slottable");function yw(l){return p.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===vw}function bw(l,r){const o={...r};for(const i in r){const u=l[i],f=r[i];/^on[A-Z]/.test(i)?u&&f?o[i]=(...m)=>{const v=f(...m);return u(...m),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...f}:i==="className"&&(o[i]=[u,f].filter(Boolean).join(" "))}return{...l,...o}}function xw(l){let r=Object.getOwnPropertyDescriptor(l.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=Object.getOwnPropertyDescriptor(l,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}function Av(l){const r=l+"CollectionProvider",[o,i]=gl(r),[u,f]=o(r,{collectionRef:{current:null},itemMap:new Map}),d=w=>{const{scope:R,children:T}=w,A=Fe.useRef(null),z=Fe.useRef(new Map).current;return y.jsx(u,{scope:R,itemMap:z,collectionRef:A,children:T})};d.displayName=r;const m=l+"CollectionSlot",v=Yl(m),h=Fe.forwardRef((w,R)=>{const{scope:T,children:A}=w,z=f(m,T),q=Ye(R,z.collectionRef);return y.jsx(v,{ref:q,children:A})});h.displayName=m;const b=l+"CollectionItemSlot",x="data-radix-collection-item",E=Yl(b),C=Fe.forwardRef((w,R)=>{const{scope:T,children:A,...z}=w,q=Fe.useRef(null),Q=Ye(R,q),F=f(b,T);return Fe.useEffect(()=>(F.itemMap.set(q,{ref:q,...z}),()=>void F.itemMap.delete(q))),y.jsx(E,{[x]:"",ref:Q,children:A})});C.displayName=b;function N(w){const R=f(l+"CollectionConsumer",w);return Fe.useCallback(()=>{const A=R.collectionRef.current;if(!A)return[];const z=Array.from(A.querySelectorAll(`[${x}]`));return Array.from(R.itemMap.values()).sort((F,Y)=>z.indexOf(F.ref.current)-z.indexOf(Y.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:d,Slot:h,ItemSlot:C},N,i]}function Oe(l,r,{checkForDefaultPrevented:o=!0}={}){return function(u){if(l?.(u),o===!1||!u.defaultPrevented)return r?.(u)}}var dt=globalThis?.document?p.useLayoutEffect:()=>{},Sw=iv[" useInsertionEffect ".trim().toString()]||dt;function dl({prop:l,defaultProp:r,onChange:o=()=>{},caller:i}){const[u,f,d]=ww({defaultProp:r,onChange:o}),m=l!==void 0,v=m?l:u;{const b=p.useRef(l!==void 0);p.useEffect(()=>{const x=b.current;x!==m&&console.warn(`${i} is changing from ${x?"controlled":"uncontrolled"} to ${m?"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.`),b.current=m},[m,i])}const h=p.useCallback(b=>{if(m){const x=Ew(b)?b(l):b;x!==l&&d.current?.(x)}else f(b)},[m,l,f,d]);return[v,h]}function ww({defaultProp:l,onChange:r}){const[o,i]=p.useState(l),u=p.useRef(o),f=p.useRef(r);return Sw(()=>{f.current=r},[r]),p.useEffect(()=>{u.current!==o&&(f.current?.(o),u.current=o)},[o,u]),[o,i,f]}function Ew(l){return typeof l=="function"}var Cw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],be=Cw.reduce((l,r)=>{const o=Yl(`Primitive.${r}`),i=p.forwardRef((u,f)=>{const{asChild:d,...m}=u,v=d?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(v,{...m,ref:f})});return i.displayName=`Primitive.${r}`,{...l,[r]:i}},{});function Aw(l,r){l&&co.flushSync(()=>l.dispatchEvent(r))}function Rw(l,r){return p.useReducer((o,i)=>r[o][i]??o,l)}var Fl=l=>{const{present:r,children:o}=l,i=Nw(r),u=typeof o=="function"?o({present:i.isPresent}):p.Children.only(o),f=Ye(i.ref,Tw(u));return typeof o=="function"||i.isPresent?p.cloneElement(u,{ref:f}):null};Fl.displayName="Presence";function Nw(l){const[r,o]=p.useState(),i=p.useRef(null),u=p.useRef(l),f=p.useRef("none"),d=l?"mounted":"unmounted",[m,v]=Rw(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const h=Mi(i.current);f.current=m==="mounted"?h:"none"},[m]),dt(()=>{const h=i.current,b=u.current;if(b!==l){const E=f.current,C=Mi(h);l?v("MOUNT"):C==="none"||h?.display==="none"?v("UNMOUNT"):v(b&&E!==C?"ANIMATION_OUT":"UNMOUNT"),u.current=l}},[l,v]),dt(()=>{if(r){let h;const b=r.ownerDocument.defaultView??window,x=C=>{const w=Mi(i.current).includes(CSS.escape(C.animationName));if(C.target===r&&w&&(v("ANIMATION_END"),!u.current)){const R=r.style.animationFillMode;r.style.animationFillMode="forwards",h=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=R)})}},E=C=>{C.target===r&&(f.current=Mi(i.current))};return r.addEventListener("animationstart",E),r.addEventListener("animationcancel",x),r.addEventListener("animationend",x),()=>{b.clearTimeout(h),r.removeEventListener("animationstart",E),r.removeEventListener("animationcancel",x),r.removeEventListener("animationend",x)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:p.useCallback(h=>{i.current=h?getComputedStyle(h):null,o(h)},[])}}function Mi(l){return l?.animationName||"none"}function Tw(l){let r=Object.getOwnPropertyDescriptor(l.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=Object.getOwnPropertyDescriptor(l,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}var _w=iv[" useId ".trim().toString()]||(()=>{}),Ow=0;function vt(l){const[r,o]=p.useState(_w());return dt(()=>{o(i=>i??String(Ow++))},[l]),r?`radix-${r}`:""}var nc="Collapsible",[Mw,Rv]=gl(nc),[jw,zf]=Mw(nc),Nv=p.forwardRef((l,r)=>{const{__scopeCollapsible:o,open:i,defaultOpen:u,disabled:f,onOpenChange:d,...m}=l,[v,h]=dl({prop:i,defaultProp:u??!1,onChange:d,caller:nc});return y.jsx(jw,{scope:o,disabled:f,contentId:vt(),open:v,onOpenToggle:p.useCallback(()=>h(b=>!b),[h]),children:y.jsx(be.div,{"data-state":kf(v),"data-disabled":f?"":void 0,...m,ref:r})})});Nv.displayName=nc;var Tv="CollapsibleTrigger",_v=p.forwardRef((l,r)=>{const{__scopeCollapsible:o,...i}=l,u=zf(Tv,o);return y.jsx(be.button,{type:"button","aria-controls":u.contentId,"aria-expanded":u.open||!1,"data-state":kf(u.open),"data-disabled":u.disabled?"":void 0,disabled:u.disabled,...i,ref:r,onClick:Oe(l.onClick,u.onOpenToggle)})});_v.displayName=Tv;var Df="CollapsibleContent",Ov=p.forwardRef((l,r)=>{const{forceMount:o,...i}=l,u=zf(Df,l.__scopeCollapsible);return y.jsx(Fl,{present:o||u.open,children:({present:f})=>y.jsx(zw,{...i,ref:r,present:f})})});Ov.displayName=Df;var zw=p.forwardRef((l,r)=>{const{__scopeCollapsible:o,present:i,children:u,...f}=l,d=zf(Df,o),[m,v]=p.useState(i),h=p.useRef(null),b=Ye(r,h),x=p.useRef(0),E=x.current,C=p.useRef(0),N=C.current,w=d.open||m,R=p.useRef(w),T=p.useRef(void 0);return p.useEffect(()=>{const A=requestAnimationFrame(()=>R.current=!1);return()=>cancelAnimationFrame(A)},[]),dt(()=>{const A=h.current;if(A){T.current=T.current||{transitionDuration:A.style.transitionDuration,animationName:A.style.animationName},A.style.transitionDuration="0s",A.style.animationName="none";const z=A.getBoundingClientRect();x.current=z.height,C.current=z.width,R.current||(A.style.transitionDuration=T.current.transitionDuration,A.style.animationName=T.current.animationName),v(i)}},[d.open,i]),y.jsx(be.div,{"data-state":kf(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!w,...f,ref:b,style:{"--radix-collapsible-content-height":E?`${E}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...l.style},children:w&&u})});function kf(l){return l?"open":"closed"}var Dw=Nv,kw=_v,Lw=Ov,Uw=p.createContext(void 0);function Mv(l){const r=p.useContext(Uw);return l||r||"ltr"}var en="Accordion",Hw=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Lf,Bw,qw]=Av(en),[lc]=gl(en,[qw,Rv]),Uf=Rv(),jv=Fe.forwardRef((l,r)=>{const{type:o,...i}=l,u=i,f=i;return y.jsx(Lf.Provider,{scope:l.__scopeAccordion,children:o==="multiple"?y.jsx(Xw,{...f,ref:r}):y.jsx(Gw,{...u,ref:r})})});jv.displayName=en;var[zv,Vw]=lc(en),[Dv,Yw]=lc(en,{collapsible:!1}),Gw=Fe.forwardRef((l,r)=>{const{value:o,defaultValue:i,onValueChange:u=()=>{},collapsible:f=!1,...d}=l,[m,v]=dl({prop:o,defaultProp:i??"",onChange:u,caller:en});return y.jsx(zv,{scope:l.__scopeAccordion,value:Fe.useMemo(()=>m?[m]:[],[m]),onItemOpen:v,onItemClose:Fe.useCallback(()=>f&&v(""),[f,v]),children:y.jsx(Dv,{scope:l.__scopeAccordion,collapsible:f,children:y.jsx(kv,{...d,ref:r})})})}),Xw=Fe.forwardRef((l,r)=>{const{value:o,defaultValue:i,onValueChange:u=()=>{},...f}=l,[d,m]=dl({prop:o,defaultProp:i??[],onChange:u,caller:en}),v=Fe.useCallback(b=>m((x=[])=>[...x,b]),[m]),h=Fe.useCallback(b=>m((x=[])=>x.filter(E=>E!==b)),[m]);return y.jsx(zv,{scope:l.__scopeAccordion,value:d,onItemOpen:v,onItemClose:h,children:y.jsx(Dv,{scope:l.__scopeAccordion,collapsible:!0,children:y.jsx(kv,{...f,ref:r})})})}),[Qw,ac]=lc(en),kv=Fe.forwardRef((l,r)=>{const{__scopeAccordion:o,disabled:i,dir:u,orientation:f="vertical",...d}=l,m=Fe.useRef(null),v=Ye(m,r),h=Bw(o),x=Mv(u)==="ltr",E=Oe(l.onKeyDown,C=>{if(!Hw.includes(C.key))return;const N=C.target,w=h().filter(I=>!I.ref.current?.disabled),R=w.findIndex(I=>I.ref.current===N),T=w.length;if(R===-1)return;C.preventDefault();let A=R;const z=0,q=T-1,Q=()=>{A=R+1,A>q&&(A=z)},F=()=>{A=R-1,A<z&&(A=q)};switch(C.key){case"Home":A=z;break;case"End":A=q;break;case"ArrowRight":f==="horizontal"&&(x?Q():F());break;case"ArrowDown":f==="vertical"&&Q();break;case"ArrowLeft":f==="horizontal"&&(x?F():Q());break;case"ArrowUp":f==="vertical"&&F();break}const Y=A%T;w[Y].ref.current?.focus()});return y.jsx(Qw,{scope:o,disabled:i,direction:u,orientation:f,children:y.jsx(Lf.Slot,{scope:o,children:y.jsx(be.div,{...d,"data-orientation":f,ref:v,onKeyDown:i?void 0:E})})})}),Zi="AccordionItem",[Zw,Hf]=lc(Zi),Lv=Fe.forwardRef((l,r)=>{const{__scopeAccordion:o,value:i,...u}=l,f=ac(Zi,o),d=Vw(Zi,o),m=Uf(o),v=vt(),h=i&&d.value.includes(i)||!1,b=f.disabled||l.disabled;return y.jsx(Zw,{scope:o,open:h,disabled:b,triggerId:v,children:y.jsx(Dw,{"data-orientation":f.orientation,"data-state":Yv(h),...m,...u,ref:r,disabled:b,open:h,onOpenChange:x=>{x?d.onItemOpen(i):d.onItemClose(i)}})})});Lv.displayName=Zi;var Uv="AccordionHeader",Hv=Fe.forwardRef((l,r)=>{const{__scopeAccordion:o,...i}=l,u=ac(en,o),f=Hf(Uv,o);return y.jsx(be.h3,{"data-orientation":u.orientation,"data-state":Yv(f.open),"data-disabled":f.disabled?"":void 0,...i,ref:r})});Hv.displayName=Uv;var ff="AccordionTrigger",Bv=Fe.forwardRef((l,r)=>{const{__scopeAccordion:o,...i}=l,u=ac(en,o),f=Hf(ff,o),d=Yw(ff,o),m=Uf(o);return y.jsx(Lf.ItemSlot,{scope:o,children:y.jsx(kw,{"aria-disabled":f.open&&!d.collapsible||void 0,"data-orientation":u.orientation,id:f.triggerId,...m,...i,ref:r})})});Bv.displayName=ff;var qv="AccordionContent",Vv=Fe.forwardRef((l,r)=>{const{__scopeAccordion:o,...i}=l,u=ac(en,o),f=Hf(qv,o),d=Uf(o);return y.jsx(Lw,{role:"region","aria-labelledby":f.triggerId,"data-orientation":u.orientation,...d,...i,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...l.style}})});Vv.displayName=qv;function Yv(l){return l?"open":"closed"}var Kw=jv,$w=Lv,Pw=Hv,Jw=Bv,Fw=Vv;/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Iw=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ww=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,i)=>i?i.toUpperCase():o.toLowerCase()),Eg=l=>{const r=Ww(l);return r.charAt(0).toUpperCase()+r.slice(1)},Gv=(...l)=>l.filter((r,o,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===o).join(" ").trim(),eE=l=>{for(const r in l)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var tE={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"};/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nE=p.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:u="",children:f,iconNode:d,...m},v)=>p.createElement("svg",{ref:v,...tE,width:r,height:r,stroke:l,strokeWidth:i?Number(o)*24/Number(r):o,className:Gv("lucide",u),...!f&&!eE(m)&&{"aria-hidden":"true"},...m},[...d.map(([h,b])=>p.createElement(h,b)),...Array.isArray(f)?f:[f]]));/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yt=(l,r)=>{const o=p.forwardRef(({className:i,...u},f)=>p.createElement(nE,{ref:f,iconNode:r,className:Gv(`lucide-${Iw(Eg(l))}`,`lucide-${l}`,i),...u}));return o.displayName=Eg(l),o};/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lE=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],aE=yt("arrow-right",lE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Gl=yt("check",rE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],rc=yt("chevron-down",oE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cE=yt("chevron-right",iE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],uE=yt("chevron-up",sE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fE=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],dE=yt("chevrons-up-down",fE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mE=[["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"}]],Bf=yt("circle-alert",mE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hE=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],pE=yt("loader-circle",hE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gE=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],vE=yt("moon",gE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yE=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Xv=yt("pencil",yE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bE=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M7 12h.01",key:"eqddd0"}]],xE=yt("rectangle-ellipsis",bE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SE=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],wE=yt("search",SE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const EE=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],CE=yt("sun",EE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],to=yt("x",AE);/**
 * @license lucide-react v0.548.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RE=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Cg=yt("zap",RE);function Qv(l){var r,o,i="";if(typeof l=="string"||typeof l=="number")i+=l;else if(typeof l=="object")if(Array.isArray(l)){var u=l.length;for(r=0;r<u;r++)l[r]&&(o=Qv(l[r]))&&(i&&(i+=" "),i+=o)}else for(o in l)l[o]&&(i&&(i+=" "),i+=o);return i}function Zv(){for(var l,r,o=0,i="",u=arguments.length;o<u;o++)(l=arguments[o])&&(r=Qv(l))&&(i&&(i+=" "),i+=r);return i}const qf="-",NE=l=>{const r=_E(l),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=l;return{getClassGroupId:d=>{const m=d.split(qf);return m[0]===""&&m.length!==1&&m.shift(),Kv(m,r)||TE(d)},getConflictingClassGroupIds:(d,m)=>{const v=o[d]||[];return m&&i[d]?[...v,...i[d]]:v}}},Kv=(l,r)=>{if(l.length===0)return r.classGroupId;const o=l[0],i=r.nextPart.get(o),u=i?Kv(l.slice(1),i):void 0;if(u)return u;if(r.validators.length===0)return;const f=l.join(qf);return r.validators.find(({validator:d})=>d(f))?.classGroupId},Ag=/^\[(.+)\]$/,TE=l=>{if(Ag.test(l)){const r=Ag.exec(l)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},_E=l=>{const{theme:r,classGroups:o}=l,i={nextPart:new Map,validators:[]};for(const u in o)df(o[u],i,u,r);return i},df=(l,r,o,i)=>{l.forEach(u=>{if(typeof u=="string"){const f=u===""?r:Rg(r,u);f.classGroupId=o;return}if(typeof u=="function"){if(OE(u)){df(u(i),r,o,i);return}r.validators.push({validator:u,classGroupId:o});return}Object.entries(u).forEach(([f,d])=>{df(d,Rg(r,f),o,i)})})},Rg=(l,r)=>{let o=l;return r.split(qf).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},OE=l=>l.isThemeGetter,ME=l=>{if(l<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,i=new Map;const u=(f,d)=>{o.set(f,d),r++,r>l&&(r=0,i=o,o=new Map)};return{get(f){let d=o.get(f);if(d!==void 0)return d;if((d=i.get(f))!==void 0)return u(f,d),d},set(f,d){o.has(f)?o.set(f,d):u(f,d)}}},mf="!",hf=":",jE=hf.length,zE=l=>{const{prefix:r,experimentalParseClassName:o}=l;let i=u=>{const f=[];let d=0,m=0,v=0,h;for(let N=0;N<u.length;N++){let w=u[N];if(d===0&&m===0){if(w===hf){f.push(u.slice(v,N)),v=N+jE;continue}if(w==="/"){h=N;continue}}w==="["?d++:w==="]"?d--:w==="("?m++:w===")"&&m--}const b=f.length===0?u:u.substring(v),x=DE(b),E=x!==b,C=h&&h>v?h-v:void 0;return{modifiers:f,hasImportantModifier:E,baseClassName:x,maybePostfixModifierPosition:C}};if(r){const u=r+hf,f=i;i=d=>d.startsWith(u)?f(d.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(o){const u=i;i=f=>o({className:f,parseClassName:u})}return i},DE=l=>l.endsWith(mf)?l.substring(0,l.length-1):l.startsWith(mf)?l.substring(1):l,kE=l=>{const r=Object.fromEntries(l.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const u=[];let f=[];return i.forEach(d=>{d[0]==="["||r[d]?(u.push(...f.sort(),d),f=[]):f.push(d)}),u.push(...f.sort()),u}},LE=l=>({cache:ME(l.cacheSize),parseClassName:zE(l),sortModifiers:kE(l),...NE(l)}),UE=/\s+/,HE=(l,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:f}=r,d=[],m=l.trim().split(UE);let v="";for(let h=m.length-1;h>=0;h-=1){const b=m[h],{isExternal:x,modifiers:E,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:w}=o(b);if(x){v=b+(v.length>0?" "+v:v);continue}let R=!!w,T=i(R?N.substring(0,w):N);if(!T){if(!R){v=b+(v.length>0?" "+v:v);continue}if(T=i(N),!T){v=b+(v.length>0?" "+v:v);continue}R=!1}const A=f(E).join(":"),z=C?A+mf:A,q=z+T;if(d.includes(q))continue;d.push(q);const Q=u(T,R);for(let F=0;F<Q.length;++F){const Y=Q[F];d.push(z+Y)}v=b+(v.length>0?" "+v:v)}return v};function BE(){let l=0,r,o,i="";for(;l<arguments.length;)(r=arguments[l++])&&(o=$v(r))&&(i&&(i+=" "),i+=o);return i}const $v=l=>{if(typeof l=="string")return l;let r,o="";for(let i=0;i<l.length;i++)l[i]&&(r=$v(l[i]))&&(o&&(o+=" "),o+=r);return o};function qE(l,...r){let o,i,u,f=d;function d(v){const h=r.reduce((b,x)=>x(b),l());return o=LE(h),i=o.cache.get,u=o.cache.set,f=m,m(v)}function m(v){const h=i(v);if(h)return h;const b=HE(v,o);return u(v,b),b}return function(){return f(BE.apply(null,arguments))}}const at=l=>{const r=o=>o[l]||[];return r.isThemeGetter=!0,r},Pv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,VE=/^\d+\/\d+$/,YE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GE=/\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$/,XE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,QE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ZE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,La=l=>VE.test(l),Ee=l=>!!l&&!Number.isNaN(Number(l)),ul=l=>!!l&&Number.isInteger(Number(l)),Zu=l=>l.endsWith("%")&&Ee(l.slice(0,-1)),zn=l=>YE.test(l),KE=()=>!0,$E=l=>GE.test(l)&&!XE.test(l),Fv=()=>!1,PE=l=>QE.test(l),JE=l=>ZE.test(l),FE=l=>!ae(l)&&!re(l),IE=l=>$a(l,ey,Fv),ae=l=>Pv.test(l),ql=l=>$a(l,ty,$E),Ku=l=>$a(l,lC,Ee),Ng=l=>$a(l,Iv,Fv),WE=l=>$a(l,Wv,JE),ji=l=>$a(l,ny,PE),re=l=>Jv.test(l),Fr=l=>Pa(l,ty),eC=l=>Pa(l,aC),Tg=l=>Pa(l,Iv),tC=l=>Pa(l,ey),nC=l=>Pa(l,Wv),zi=l=>Pa(l,ny,!0),$a=(l,r,o)=>{const i=Pv.exec(l);return i?i[1]?r(i[1]):o(i[2]):!1},Pa=(l,r,o=!1)=>{const i=Jv.exec(l);return i?i[1]?r(i[1]):o:!1},Iv=l=>l==="position"||l==="percentage",Wv=l=>l==="image"||l==="url",ey=l=>l==="length"||l==="size"||l==="bg-size",ty=l=>l==="length",lC=l=>l==="number",aC=l=>l==="family-name",ny=l=>l==="shadow",rC=()=>{const l=at("color"),r=at("font"),o=at("text"),i=at("font-weight"),u=at("tracking"),f=at("leading"),d=at("breakpoint"),m=at("container"),v=at("spacing"),h=at("radius"),b=at("shadow"),x=at("inset-shadow"),E=at("text-shadow"),C=at("drop-shadow"),N=at("blur"),w=at("perspective"),R=at("aspect"),T=at("ease"),A=at("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...q(),re,ae],F=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],I=()=>[re,ae,v],te=()=>[La,"full","auto",...I()],pe=()=>[ul,"none","subgrid",re,ae],de=()=>["auto",{span:["full",ul,re,ae]},ul,re,ae],le=()=>[ul,"auto",re,ae],ue=()=>["auto","min","max","fr",re,ae],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],se=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...I()],X=()=>[La,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],B=()=>[l,re,ae],oe=()=>[...q(),Tg,Ng,{position:[re,ae]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",tC,IE,{size:[re,ae]}],O=()=>[Zu,Fr,ql],G=()=>["","none","full",h,re,ae],P=()=>["",Ee,Fr,ql],W=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[Ee,Zu,Tg,Ng],me=()=>["","none",N,re,ae],fe=()=>["none",Ee,re,ae],Se=()=>["none",Ee,re,ae],_e=()=>[Ee,re,ae],ke=()=>[La,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zn],breakpoint:[zn],color:[KE],container:[zn],"drop-shadow":[zn],ease:["in","out","in-out"],font:[FE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zn],shadow:[zn],spacing:["px",Ee],text:[zn],"text-shadow":[zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",La,ae,re,R]}],container:["container"],columns:[{columns:[Ee,ae,re,m]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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"],sr:["sr-only","not-sr-only"],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:Q()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[ul,"auto",re,ae]}],basis:[{basis:[La,"full","auto",m,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,La,"auto","initial","none",ae]}],grow:[{grow:["",Ee,re,ae]}],shrink:[{shrink:["",Ee,re,ae]}],order:[{order:[ul,"first","last","none",re,ae]}],"grid-cols":[{"grid-cols":pe()}],"col-start-end":[{col:de()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":pe()}],"row-start-end":[{row:de()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...se(),"normal"]}],"justify-self":[{"justify-self":["auto",...se()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...se(),"baseline"]}],"place-self":[{"place-self":["auto",...se()]}],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:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[m,"screen",...X()]}],"min-w":[{"min-w":[m,"screen","none",...X()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",o,Fr,ql]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,re,Ku]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zu,ae]}],"font-family":[{font:[eC,ae,r]}],"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:[u,re,ae]}],"line-clamp":[{"line-clamp":[Ee,"none",re,Ku]}],leading:[{leading:[f,...I()]}],"list-image":[{"list-image":["none",re,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",re,ql]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Ee,"auto",re,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ul,re,ae],radial:["",re,ae],conic:[ul,re,ae]},nC,WE]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,re,ae]}],"outline-w":[{outline:["",Ee,Fr,ql]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",b,zi,ji]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",x,zi,ji]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Ee,ql]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",E,zi,ji]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Ee,re,ae]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[re,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":q()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,ae]}],filter:[{filter:["","none",re,ae]}],blur:[{blur:me()}],brightness:[{brightness:[Ee,re,ae]}],contrast:[{contrast:[Ee,re,ae]}],"drop-shadow":[{"drop-shadow":["","none",C,zi,ji]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Ee,re,ae]}],"hue-rotate":[{"hue-rotate":[Ee,re,ae]}],invert:[{invert:["",Ee,re,ae]}],saturate:[{saturate:[Ee,re,ae]}],sepia:[{sepia:["",Ee,re,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",re,ae]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,re,ae]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,re,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,re,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,re,ae]}],"backdrop-invert":[{"backdrop-invert":["",Ee,re,ae]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,re,ae]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,re,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,re,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",re,ae]}],ease:[{ease:["linear","initial",T,re,ae]}],delay:[{delay:[Ee,re,ae]}],animate:[{animate:["none",A,re,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,re,ae]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[re,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",re,ae]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",re,ae]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Ee,Fr,ql,Ku]}],stroke:[{stroke:["none",...B()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},oC=qE(rC);function De(...l){return oC(Zv(l))}function ly({...l}){return y.jsx(Kw,{"data-slot":"accordion",...l})}function ay({className:l,...r}){return y.jsx($w,{"data-slot":"accordion-item",className:De("border-b last:border-b-0",l),...r})}function ry({className:l,children:r,...o}){return y.jsx(Pw,{className:"flex",children:y.jsxs(Jw,{"data-slot":"accordion-trigger",className:De("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",l),...o,children:[r,y.jsx(rc,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function oy({className:l,children:r,...o}){return y.jsx(Fw,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...o,children:y.jsx("div",{className:De("pt-0 pb-4",l),children:r})})}function iC({part:l}){return y.jsx("div",{className:"flex justify-start mb-6 animate-fadeInUp",children:y.jsxs("div",{className:"max-w-[75%] rounded-2xl px-5 py-3.5 bg-gradient-to-br from-blue-500/10 via-cyan-500/10 to-sky-500/10 border border-blue-500/30 shadow-sm shadow-blue-500/10 transition-all duration-300 hover:shadow-md hover:shadow-blue-500/20",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[y.jsxs("svg",{className:"w-4 h-4 text-blue-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),y.jsx("span",{className:"text-xs font-semibold tracking-wide uppercase text-blue-600",children:"System Prompt"}),l.dynamic_ref&&y.jsxs("span",{className:"text-xs text-blue-500/70 font-mono",children:["(",l.dynamic_ref,")"]})]}),y.jsx(ly,{type:"single",collapsible:!0,className:"transition-all duration-200",children:y.jsxs(ay,{value:"system",className:"border-none",children:[y.jsx(ry,{className:"py-2 text-xs hover:no-underline text-blue-600 hover:text-blue-700 transition-colors",children:y.jsx("div",{className:"flex items-center gap-2",children:y.jsx("span",{className:"font-medium",children:"View system instructions"})})}),y.jsx(oy,{className:"transition-all duration-300",children:y.jsx("div",{className:"text-sm whitespace-pre-wrap break-words bg-card/50 backdrop-blur-sm rounded-xl p-4 mt-2 font-mono text-foreground/80 max-h-96 overflow-y-auto border border-border/30 shadow-inner",children:l.content})})]})})]})})}function no(l){if(!l)return"ltr";const r=l.match(/[^\s\p{P}\p{S}\p{N}]/u)?.[0];if(!r)return"ltr";const o=r.charCodeAt(0);return o>=1424&&o<=1535||o>=1536&&o<=1791||o>=1872&&o<=1919||o>=2208&&o<=2303||o>=64336&&o<=65023||o>=65136&&o<=65279?"rtl":"ltr"}const _g=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,Og=Zv,iy=(l,r)=>o=>{var i;if(r?.variants==null)return Og(l,o?.class,o?.className);const{variants:u,defaultVariants:f}=r,d=Object.keys(u).map(h=>{const b=o?.[h],x=f?.[h];if(b===null)return null;const E=_g(b)||_g(x);return u[h][E]}),m=o&&Object.entries(o).reduce((h,b)=>{let[x,E]=b;return E===void 0||(h[x]=E),h},{}),v=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((h,b)=>{let{class:x,className:E,...C}=b;return Object.entries(C).every(N=>{let[w,R]=N;return Array.isArray(R)?R.includes({...f,...m}[w]):{...f,...m}[w]===R})?[...h,x,E]:h},[]);return Og(l,d,v,o?.class,o?.className)},cC=iy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function nt({className:l,variant:r,size:o,asChild:i=!1,...u}){const f=i?pw:"button";return y.jsx(f,{"data-slot":"button",className:De(cC({variant:r,size:o,className:l})),...u})}function Ja({className:l,...r}){return y.jsx("textarea",{"data-slot":"textarea",className:De("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",l),...r})}function sC({part:l,partIndex:r,onEdit:o,isLoading:i}){const[u,f]=p.useState(!1),[d,m]=p.useState(l.content),[v,h]=p.useState(!1),b=p.useRef(null),x=!i&&o;p.useEffect(()=>{u&&b.current&&(b.current.focus(),b.current.style.height="auto",b.current.style.height=`${b.current.scrollHeight}px`)},[u]);const E=()=>{m(l.content),f(!0)},C=()=>{d.trim()&&o&&(o(r,d),f(!1))},N=()=>{m(l.content),f(!1)},w=T=>{m(T.target.value),b.current&&(b.current.style.height="auto",b.current.style.height=`${b.current.scrollHeight}px`)},R=T=>{T.key==="Enter"&&!T.shiftKey?(T.preventDefault(),C()):T.key==="Escape"&&N()};return y.jsx("div",{className:"flex justify-end mb-6 animate-fadeInUp group",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:y.jsxs("div",{className:"max-w-[75%] rounded-2xl px-5 py-3.5 shadow-sm transition-all duration-300 hover:shadow-md bg-gradient-to-br from-primary to-purple-600 text-primary-foreground shadow-primary/20",children:[y.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[y.jsx("span",{className:"text-xs font-semibold tracking-wide uppercase text-primary-foreground/80",children:"You"}),x&&!u&&y.jsx(nt,{variant:"ghost",size:"sm",onClick:E,className:`h-6 w-6 p-0 hover:bg-primary-foreground/20 transition-opacity ${v?"opacity-100":"opacity-0"}`,children:y.jsx(Xv,{className:"h-3 w-3"})})]}),u?y.jsxs("div",{className:"space-y-2",children:[y.jsx(Ja,{ref:b,value:d,onChange:w,onKeyDown:R,dir:no(d),className:"min-h-[48px] max-h-[300px] resize-none bg-primary-foreground/10 border-primary-foreground/20 text-primary-foreground placeholder:text-primary-foreground/50 focus:border-primary-foreground/40 focus:ring-2 focus:ring-primary-foreground/20",placeholder:"Edit your message..."}),y.jsxs("div",{className:"flex gap-2 justify-end",children:[y.jsxs(nt,{variant:"ghost",size:"sm",onClick:N,className:"h-7 px-3 text-xs hover:bg-primary-foreground/20 text-primary-foreground",children:[y.jsx(to,{className:"h-3 w-3 mr-1"}),"Cancel"]}),y.jsxs(nt,{variant:"secondary",size:"sm",onClick:C,disabled:!d.trim(),className:"h-7 px-3 text-xs bg-primary-foreground/20 hover:bg-primary-foreground/30 text-primary-foreground",children:[y.jsx(Gl,{className:"h-3 w-3 mr-1"}),"Save"]})]})]}):y.jsx("div",{className:"whitespace-pre-wrap break-words leading-relaxed",dir:no(l.content),children:l.content})]})})}function uC({part:l,isStreaming:r}){return y.jsx("div",{className:"flex justify-start mb-6 animate-fadeInUp",children:y.jsxs("div",{className:"max-w-[75%] rounded-2xl px-5 py-3.5 shadow-sm transition-all duration-300 hover:shadow-md bg-card text-card-foreground border border-border/50 shadow-card/10",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[y.jsx("span",{className:"text-xs font-semibold tracking-wide uppercase text-muted-foreground",children:"Assistant"}),r&&y.jsxs("span",{className:"text-xs animate-pulse flex items-center gap-1 text-muted-foreground",children:[y.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-current animate-bounce",style:{animationDelay:"0ms"}}),y.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-current animate-bounce",style:{animationDelay:"150ms"}}),y.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-current animate-bounce",style:{animationDelay:"300ms"}})]})]}),y.jsx("div",{className:"whitespace-pre-wrap break-words leading-relaxed",dir:no(l.content),children:l.content||y.jsx("span",{className:"text-muted-foreground italic",children:"Waiting for response..."})})]})})}function fC({part:l,isExecuting:r,pendingApproval:o,approvalStatus:i,onApprove:u,onReject:f,onMock:d}){const[m,v]=p.useState(!1),[h,b]=p.useState(""),[x,E]=p.useState(null),C=typeof l.args=="string"?JSON.parse(l.args||"{}"):l.args,N=()=>{if(!h.trim()){E("Mock value cannot be empty");return}E(null),d?.(h),v(!1),b("")},w=o&&i==="pending";return y.jsx("div",{className:"flex justify-start mb-6 animate-fadeInUp",children:y.jsxs("div",{className:"max-w-[75%] rounded-xl border border-primary/30 bg-gradient-to-br from-primary/5 via-purple-500/5 to-violet-500/5 p-4 text-sm shadow-sm transition-all duration-200 hover:shadow-md hover:border-primary/40",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[y.jsx("span",{className:"inline-flex items-center rounded-lg bg-gradient-to-r from-primary to-purple-600 px-2.5 py-1 text-xs font-semibold text-primary-foreground shadow-sm",children:"Tool Call"}),y.jsx("span",{className:"font-mono font-semibold text-foreground",children:l.tool_name}),r&&y.jsxs("span",{className:"ml-auto inline-flex items-center gap-1 text-blue-500 text-xs font-semibold",children:[y.jsx(pE,{size:14,className:"animate-spin"}),"Executing"]}),i==="approved"&&y.jsxs("span",{className:"ml-auto inline-flex items-center gap-1 text-green-500 text-xs font-semibold",children:[y.jsx(Gl,{size:14}),"Approved"]}),i==="rejected"&&y.jsxs("span",{className:"ml-auto inline-flex items-center gap-1 text-red-500 text-xs font-semibold",children:[y.jsx(to,{size:14}),"Rejected"]}),i==="mocked"&&y.jsxs("span",{className:"ml-auto inline-flex items-center gap-1 text-purple-500 text-xs font-semibold",children:[y.jsx(Cg,{size:14}),"Mocked"]}),i==="pending"&&o&&y.jsx("span",{className:"ml-auto inline-flex items-center gap-1 text-yellow-500 text-xs font-semibold",children:"Pending Approval"})]}),y.jsx("div",{className:"rounded-lg bg-card/80 backdrop-blur-sm p-3 font-mono text-xs text-foreground/80 border border-border/30 shadow-inner max-h-96 overflow-y-auto",children:y.jsx("pre",{className:"whitespace-pre-wrap break-words",children:JSON.stringify(C,null,2)})}),w&&y.jsxs("div",{className:"mt-3 space-y-2",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsxs(nt,{size:"sm",variant:"default",className:"bg-green-600 hover:bg-green-700",onClick:u,children:[y.jsx(Gl,{size:14,className:"mr-1"}),"Approve"]}),y.jsxs(nt,{size:"sm",variant:"destructive",onClick:f,children:[y.jsx(to,{size:14,className:"mr-1"}),"Reject"]}),y.jsxs(nt,{size:"sm",variant:"secondary",onClick:()=>v(!m),children:[y.jsx(Cg,{size:14,className:"mr-1"}),"Mock"]})]}),m&&y.jsxs("div",{className:"space-y-2",children:[y.jsx(Ja,{placeholder:"Enter mock return value (free text)",value:h,onChange:R=>b(R.target.value),rows:3,className:"font-mono text-xs"}),x&&y.jsx("p",{className:"text-xs text-red-500",children:x}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(nt,{size:"sm",onClick:N,children:"Submit Mock"}),y.jsx(nt,{size:"sm",variant:"outline",onClick:()=>{v(!1),b(""),E(null)},children:"Cancel"})]})]})]})]})})}function dC({part:l,partIndex:r,onEdit:o,isLoading:i}){const[u,f]=p.useState(!1),[d,m]=p.useState(!1),[v,h]=p.useState(!1),[b,x]=p.useState(()=>typeof l.content=="string"?l.content:JSON.stringify(l.content,null,2)),[E,C]=p.useState(null),N=p.useRef(null),w=!i&&o,R=typeof l.content!="string";p.useEffect(()=>{d&&N.current&&(N.current.focus(),N.current.style.height="auto",N.current.style.height=`${N.current.scrollHeight}px`)},[d]);const T=()=>{x(typeof l.content=="string"?l.content:JSON.stringify(l.content,null,2)),C(null),m(!0),f(!0)},A=()=>{if(!(!b.trim()||!o))if(R)try{const F=JSON.parse(b);o(r,F),m(!1),C(null)}catch{C("Invalid JSON format");return}else o(r,b),m(!1)},z=()=>{x(typeof l.content=="string"?l.content:JSON.stringify(l.content,null,2)),C(null),m(!1)},q=F=>{x(F.target.value),C(null),N.current&&(N.current.style.height="auto",N.current.style.height=`${N.current.scrollHeight}px`)},Q=F=>{F.key==="Escape"&&z(),F.key==="Enter"&&!F.shiftKey&&!R&&(F.preventDefault(),A())};return y.jsx("div",{className:"flex justify-start mb-6 animate-fadeInUp group",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:y.jsxs("div",{className:"max-w-[75%] rounded-xl border border-emerald-500/30 bg-gradient-to-br from-emerald-500/5 via-teal-500/5 to-green-500/5 p-4 text-sm shadow-sm transition-all duration-200 hover:shadow-md hover:border-emerald-500/40",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[y.jsx("span",{className:"inline-flex items-center rounded-lg bg-gradient-to-r from-emerald-500 to-teal-600 px-2.5 py-1 text-xs font-semibold text-white shadow-sm",children:"Tool Result"}),y.jsx("span",{className:"font-mono font-semibold text-foreground",children:l.tool_name}),y.jsxs("span",{className:"ml-auto inline-flex items-center gap-1 text-emerald-500 text-xs font-semibold",children:[y.jsx(Gl,{size:14}),"Completed"]}),w&&!d&&y.jsx(nt,{variant:"ghost",size:"sm",onClick:T,className:`h-6 w-6 p-0 hover:bg-emerald-500/20 transition-opacity ${v?"opacity-100":"opacity-0"}`,children:y.jsx(Xv,{className:"h-3 w-3"})})]}),y.jsxs("div",{children:[y.jsxs("button",{onClick:()=>f(!u),className:"flex items-center gap-2 w-full text-xs font-semibold text-muted-foreground hover:text-foreground transition-colors",disabled:d,children:[u?y.jsx(rc,{size:14}):y.jsx(cE,{size:14}),d?"Editing Result":"View Result"]}),u&&y.jsx("div",{className:"mt-2",children:d?y.jsxs("div",{className:"space-y-2",children:[y.jsx(Ja,{ref:N,value:b,onChange:q,onKeyDown:Q,className:"min-h-[100px] max-h-[400px] resize-none font-mono text-xs bg-card/80 border-emerald-500/30",placeholder:"Edit tool result..."}),E&&y.jsx("div",{className:"text-xs text-destructive font-semibold",children:E}),y.jsxs("div",{className:"flex gap-2 justify-end",children:[y.jsxs(nt,{variant:"ghost",size:"sm",onClick:z,className:"h-7 px-3 text-xs hover:bg-card/50",children:[y.jsx(to,{className:"h-3 w-3 mr-1"}),"Cancel"]}),y.jsxs(nt,{variant:"secondary",size:"sm",onClick:A,disabled:!b.trim()||!!E,className:"h-7 px-3 text-xs bg-emerald-500/20 hover:bg-emerald-500/30",children:[y.jsx(Gl,{className:"h-3 w-3 mr-1"}),"Save"]})]})]}):y.jsx("div",{className:"rounded-lg bg-card/80 backdrop-blur-sm p-3 font-mono text-xs text-foreground/80 border border-border/30 shadow-inner max-h-96 overflow-y-auto",children:y.jsx("pre",{className:"whitespace-pre-wrap break-words",children:typeof l.content=="string"?l.content:JSON.stringify(l.content,null,2)})})})]})]})})}function mC({part:l,isStreaming:r}){return y.jsx("div",{className:"flex justify-start mb-6 animate-fadeInUp",children:y.jsxs("div",{className:"max-w-[75%] rounded-2xl px-5 py-3.5 bg-gradient-to-br from-purple-500/10 via-violet-500/10 to-fuchsia-500/10 border border-purple-500/30 shadow-sm shadow-purple-500/10 transition-all duration-300 hover:shadow-md hover:shadow-purple-500/20",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[y.jsx("svg",{className:"w-4 h-4 text-purple-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})}),y.jsx("span",{className:"text-xs font-semibold tracking-wide uppercase text-purple-600",children:"Thinking Process"}),r&&y.jsxs("span",{className:"text-xs animate-pulse flex items-center gap-1 text-purple-500",children:[y.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-current animate-bounce",style:{animationDelay:"0ms"}}),y.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-current animate-bounce",style:{animationDelay:"150ms"}}),y.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-current animate-bounce",style:{animationDelay:"300ms"}})]})]}),y.jsx(ly,{type:"single",collapsible:!0,className:"transition-all duration-200",children:y.jsxs(ay,{value:"thinking",className:"border-none",children:[y.jsx(ry,{className:"py-2 text-xs hover:no-underline text-purple-600 hover:text-purple-700 transition-colors",children:y.jsx("div",{className:"flex items-center gap-2",children:y.jsx("span",{className:"font-medium",children:"View reasoning trace"})})}),y.jsx(oy,{className:"transition-all duration-300",children:y.jsx("div",{className:"text-sm whitespace-pre-wrap break-words bg-card/50 backdrop-blur-sm rounded-xl p-4 mt-2 font-mono text-foreground/80 max-h-96 overflow-y-auto border border-border/30 shadow-inner",children:l.content||y.jsx("span",{className:"text-muted-foreground italic",children:"Waiting for thinking process..."})})})]})})]})})}function hC({part:l,partIndex:r,isStreaming:o,isExecuting:i,pendingApproval:u,approvalStatus:f,onApprove:d,onReject:m,onMock:v,onEdit:h,isLoading:b}){switch(l.part_kind){case"system-prompt":return y.jsx(iC,{part:l});case"user-prompt":return y.jsx(sC,{part:l,partIndex:r,onEdit:h,isLoading:b});case"text":return y.jsx(uC,{part:l,isStreaming:o});case"tool-call":return y.jsx(fC,{part:l,isExecuting:i,pendingApproval:u,approvalStatus:f,onApprove:d,onReject:m,onMock:v});case"tool-return":return y.jsx(dC,{part:l,partIndex:r,onEdit:h,isLoading:b});case"thinking":return y.jsx(mC,{part:l,isStreaming:o});default:return console.warn("Unknown part kind:",l),null}}const pC=iy("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function Vf({className:l,variant:r,...o}){return y.jsx("div",{"data-slot":"alert",role:"alert",className:De(pC({variant:r}),l),...o})}function Yf({className:l,...r}){return y.jsx("div",{"data-slot":"alert-description",className:De("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",l),...r})}function gC({messages:l,error:r,isLoading:o,awaitingApprovals:i,pendingTools:u,allHandled:f,toolCallsMap:d,onContinueWithApprovals:m,onApprove:v,onReject:h,onMock:b,onEdit:x}){const E=p.useRef(null),C=[];l.forEach((w,R)=>{const T=R===l.length-1;w.parts.forEach(A=>{C.push({part:A,messageKind:w.kind,isLastMessage:T})})});const N=w=>u?.find(R=>R.tool_call_id===w);return p.useEffect(()=>{E.current?.scrollIntoView({behavior:"smooth"})},[l]),y.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-8 bg-background",children:l.length===0?y.jsx("div",{className:"flex items-center justify-center h-full",children:y.jsxs("div",{className:"text-center max-w-2xl animate-fadeInUp",children:[y.jsxs("div",{className:"mb-8 relative",children:[y.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/20 via-purple-500/20 to-violet-500/20 blur-3xl -z-10 animate-pulse"}),y.jsx("div",{className:"inline-flex p-6 rounded-3xl bg-gradient-to-br from-primary/10 via-purple-500/10 to-violet-500/10 border border-primary/20 shadow-lg shadow-primary/10",children:y.jsx("svg",{className:"w-16 h-16 text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})})})]}),y.jsx("h2",{className:"text-3xl font-bold bg-gradient-to-r from-primary via-purple-500 to-violet-500 bg-clip-text text-transparent mb-3",children:"Agent Playbook"}),y.jsx("p",{className:"text-lg text-muted-foreground mb-2",children:"Interactive testing environment for pydantic-ai agents"}),y.jsx("p",{className:"text-sm text-muted-foreground/70",children:"Configure your agent on the right and start chatting below"})]})}):y.jsxs("div",{className:"max-w-4xl mx-auto",children:[C.map((w,R)=>{let T;w.part.part_kind==="tool-call"&&(T=w.part.tool_call_id);const A=T?N(T):void 0,z=T?d?.get(T)?.isExecuting:!1;return y.jsx(hC,{part:w.part,partIndex:R,isStreaming:o&&w.isLastMessage,isExecuting:z,pendingApproval:i&&!!A,approvalStatus:A?.status,onApprove:T&&v?()=>v(T):void 0,onReject:T&&h?()=>h(T):void 0,onMock:T&&b?q=>b(T,q):void 0,onEdit:x,isLoading:o},R)}),i&&y.jsx("div",{className:"flex justify-center mb-6",children:y.jsxs("div",{className:"bg-gradient-to-r from-yellow-500/10 to-orange-500/10 border border-yellow-500/30 rounded-xl p-4 max-w-md",children:[y.jsx("p",{className:"text-sm text-muted-foreground mb-3 text-center",children:f?"All tool calls have been handled. Click Continue to proceed.":"Please approve, reject, or mock all pending tool calls."}),y.jsxs(nt,{className:"w-full",disabled:!f,onClick:m,children:["Continue",y.jsx(aE,{size:16,className:"ml-2"})]})]})}),r&&y.jsxs(Vf,{variant:"destructive",className:"mb-6 border-destructive/50 shadow-lg shadow-destructive/10",children:[y.jsx(Bf,{className:"h-4 w-4"}),y.jsxs(Yf,{children:[y.jsx("span",{className:"font-semibold",children:"Error:"})," ",r]})]}),y.jsx("div",{ref:E})]})})}function vC({onSend:l,isLoading:r,onCancel:o}){const[i,u]=p.useState(""),f=p.useRef(null),d=()=>{i.trim()&&!r&&(l(i),u(""),f.current&&(f.current.style.height="auto"))},m=h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),d())},v=h=>{u(h.target.value),f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)};return p.useEffect(()=>{!i&&f.current&&(f.current.style.height="auto")},[i]),y.jsx("div",{className:"border-t border-border/50 bg-card p-6",children:y.jsx("div",{className:"max-w-4xl mx-auto",children:y.jsxs("div",{className:"flex gap-3 items-end",children:[y.jsx(Ja,{ref:f,value:i,onChange:v,onKeyDown:m,dir:no(i),placeholder:"Type your message... (Enter to send, Shift+Enter for new line)",className:"flex-1 resize-none bg-background border-border/50 focus:border-primary/50 focus:ring-2 focus:ring-primary/20 transition-all duration-200 shadow-sm rounded-xl min-h-[48px] max-h-[200px] overflow-y-auto",rows:1,disabled:r}),r?y.jsx(nt,{onClick:o,variant:"destructive",size:"lg",className:"h-12 px-6 shadow-lg shadow-destructive/20 hover:shadow-xl hover:shadow-destructive/30 transition-all duration-200 shrink-0",children:"Cancel"}):y.jsx(nt,{onClick:d,disabled:!i.trim(),size:"lg",className:"h-12 w-12 p-0 bg-gradient-to-r from-primary to-purple-600 hover:from-primary/90 hover:to-purple-600/90 shadow-lg shadow-primary/20 hover:shadow-xl hover:shadow-primary/30 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed shrink-0",children:y.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})})})]})})})}var yC="Label",cy=p.forwardRef((l,r)=>y.jsx(be.label,{...l,ref:r,onMouseDown:o=>{o.target.closest("button, input, select, textarea")||(l.onMouseDown?.(o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}}));cy.displayName=yC;var bC=cy;function on({className:l,...r}){return y.jsx(bC,{"data-slot":"label",className:De("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",l),...r})}var Mg=1,xC=.9,SC=.8,wC=.17,$u=.1,Pu=.999,EC=.9999,CC=.99,AC=/[\\\/_+.#"@\[\(\{&]/,RC=/[\\\/_+.#"@\[\(\{&]/g,NC=/[\s-]/,sy=/[\s-]/g;function pf(l,r,o,i,u,f,d){if(f===r.length)return u===l.length?Mg:CC;var m=`${u},${f}`;if(d[m]!==void 0)return d[m];for(var v=i.charAt(f),h=o.indexOf(v,u),b=0,x,E,C,N;h>=0;)x=pf(l,r,o,i,h+1,f+1,d),x>b&&(h===u?x*=Mg:AC.test(l.charAt(h-1))?(x*=SC,C=l.slice(u,h-1).match(RC),C&&u>0&&(x*=Math.pow(Pu,C.length))):NC.test(l.charAt(h-1))?(x*=xC,N=l.slice(u,h-1).match(sy),N&&u>0&&(x*=Math.pow(Pu,N.length))):(x*=wC,u>0&&(x*=Math.pow(Pu,h-u))),l.charAt(h)!==r.charAt(f)&&(x*=EC)),(x<$u&&o.charAt(h-1)===i.charAt(f+1)||i.charAt(f+1)===i.charAt(f)&&o.charAt(h-1)!==i.charAt(f))&&(E=pf(l,r,o,i,h+1,f+2,d),E*$u>x&&(x=E*$u)),x>b&&(b=x),h=o.indexOf(v,h+1);return d[m]=b,b}function jg(l){return l.toLowerCase().replace(sy," ")}function TC(l,r,o){return l=o&&o.length>0?`${l+" "+o.join(" ")}`:l,pf(l,r,jg(l),jg(r),0,0,{})}function Xl(l){const r=p.useRef(l);return p.useEffect(()=>{r.current=l}),p.useMemo(()=>(...o)=>r.current?.(...o),[])}function _C(l,r=globalThis?.document){const o=Xl(l);p.useEffect(()=>{const i=u=>{u.key==="Escape"&&o(u)};return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[o,r])}var OC="DismissableLayer",gf="dismissableLayer.update",MC="dismissableLayer.pointerDownOutside",jC="dismissableLayer.focusOutside",zg,uy=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),oc=p.forwardRef((l,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:m,...v}=l,h=p.useContext(uy),[b,x]=p.useState(null),E=b?.ownerDocument??globalThis?.document,[,C]=p.useState({}),N=Ye(r,Y=>x(Y)),w=Array.from(h.layers),[R]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),T=w.indexOf(R),A=b?w.indexOf(b):-1,z=h.layersWithOutsidePointerEventsDisabled.size>0,q=A>=T,Q=kC(Y=>{const I=Y.target,te=[...h.branches].some(pe=>pe.contains(I));!q||te||(u?.(Y),d?.(Y),Y.defaultPrevented||m?.())},E),F=LC(Y=>{const I=Y.target;[...h.branches].some(pe=>pe.contains(I))||(f?.(Y),d?.(Y),Y.defaultPrevented||m?.())},E);return _C(Y=>{A===h.layers.size-1&&(i?.(Y),!Y.defaultPrevented&&m&&(Y.preventDefault(),m()))},E),p.useEffect(()=>{if(b)return o&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(zg=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(b)),h.layers.add(b),Dg(),()=>{o&&h.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=zg)}},[b,E,o,h]),p.useEffect(()=>()=>{b&&(h.layers.delete(b),h.layersWithOutsidePointerEventsDisabled.delete(b),Dg())},[b,h]),p.useEffect(()=>{const Y=()=>C({});return document.addEventListener(gf,Y),()=>document.removeEventListener(gf,Y)},[]),y.jsx(be.div,{...v,ref:N,style:{pointerEvents:z?q?"auto":"none":void 0,...l.style},onFocusCapture:Oe(l.onFocusCapture,F.onFocusCapture),onBlurCapture:Oe(l.onBlurCapture,F.onBlurCapture),onPointerDownCapture:Oe(l.onPointerDownCapture,Q.onPointerDownCapture)})});oc.displayName=OC;var zC="DismissableLayerBranch",DC=p.forwardRef((l,r)=>{const o=p.useContext(uy),i=p.useRef(null),u=Ye(r,i);return p.useEffect(()=>{const f=i.current;if(f)return o.branches.add(f),()=>{o.branches.delete(f)}},[o.branches]),y.jsx(be.div,{...l,ref:u})});DC.displayName=zC;function kC(l,r=globalThis?.document){const o=Xl(l),i=p.useRef(!1),u=p.useRef(()=>{});return p.useEffect(()=>{const f=m=>{if(m.target&&!i.current){let v=function(){fy(MC,o,h,{discrete:!0})};const h={originalEvent:m};m.pointerType==="touch"?(r.removeEventListener("click",u.current),u.current=v,r.addEventListener("click",u.current,{once:!0})):v()}else r.removeEventListener("click",u.current);i.current=!1},d=window.setTimeout(()=>{r.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),r.removeEventListener("pointerdown",f),r.removeEventListener("click",u.current)}},[r,o]),{onPointerDownCapture:()=>i.current=!0}}function LC(l,r=globalThis?.document){const o=Xl(l),i=p.useRef(!1);return p.useEffect(()=>{const u=f=>{f.target&&!i.current&&fy(jC,o,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",u),()=>r.removeEventListener("focusin",u)},[r,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Dg(){const l=new CustomEvent(gf);document.dispatchEvent(l)}function fy(l,r,o,{discrete:i}){const u=o.originalEvent.target,f=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:o});r&&u.addEventListener(l,r,{once:!0}),i?Aw(u,f):u.dispatchEvent(f)}var Ju="focusScope.autoFocusOnMount",Fu="focusScope.autoFocusOnUnmount",kg={bubbles:!1,cancelable:!0},UC="FocusScope",ic=p.forwardRef((l,r)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...d}=l,[m,v]=p.useState(null),h=Xl(u),b=Xl(f),x=p.useRef(null),E=Ye(r,w=>v(w)),C=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(i){let w=function(z){if(C.paused||!m)return;const q=z.target;m.contains(q)?x.current=q:fl(x.current,{select:!0})},R=function(z){if(C.paused||!m)return;const q=z.relatedTarget;q!==null&&(m.contains(q)||fl(x.current,{select:!0}))},T=function(z){if(document.activeElement===document.body)for(const Q of z)Q.removedNodes.length>0&&fl(m)};document.addEventListener("focusin",w),document.addEventListener("focusout",R);const A=new MutationObserver(T);return m&&A.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",R),A.disconnect()}}},[i,m,C.paused]),p.useEffect(()=>{if(m){Ug.add(C);const w=document.activeElement;if(!m.contains(w)){const T=new CustomEvent(Ju,kg);m.addEventListener(Ju,h),m.dispatchEvent(T),T.defaultPrevented||(HC(GC(dy(m)),{select:!0}),document.activeElement===w&&fl(m))}return()=>{m.removeEventListener(Ju,h),setTimeout(()=>{const T=new CustomEvent(Fu,kg);m.addEventListener(Fu,b),m.dispatchEvent(T),T.defaultPrevented||fl(w??document.body,{select:!0}),m.removeEventListener(Fu,b),Ug.remove(C)},0)}}},[m,h,b,C]);const N=p.useCallback(w=>{if(!o&&!i||C.paused)return;const R=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,T=document.activeElement;if(R&&T){const A=w.currentTarget,[z,q]=BC(A);z&&q?!w.shiftKey&&T===q?(w.preventDefault(),o&&fl(z,{select:!0})):w.shiftKey&&T===z&&(w.preventDefault(),o&&fl(q,{select:!0})):T===A&&w.preventDefault()}},[o,i,C.paused]);return y.jsx(be.div,{tabIndex:-1,...d,ref:E,onKeyDown:N})});ic.displayName=UC;function HC(l,{select:r=!1}={}){const o=document.activeElement;for(const i of l)if(fl(i,{select:r}),document.activeElement!==o)return}function BC(l){const r=dy(l),o=Lg(r,l),i=Lg(r.reverse(),l);return[o,i]}function dy(l){const r=[],o=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const u=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||u?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function Lg(l,r){for(const o of l)if(!qC(o,{upTo:r}))return o}function qC(l,{upTo:r}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(r!==void 0&&l===r)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function VC(l){return l instanceof HTMLInputElement&&"select"in l}function fl(l,{select:r=!1}={}){if(l&&l.focus){const o=document.activeElement;l.focus({preventScroll:!0}),l!==o&&VC(l)&&r&&l.select()}}var Ug=YC();function YC(){let l=[];return{add(r){const o=l[0];r!==o&&o?.pause(),l=Hg(l,r),l.unshift(r)},remove(r){l=Hg(l,r),l[0]?.resume()}}}function Hg(l,r){const o=[...l],i=o.indexOf(r);return i!==-1&&o.splice(i,1),o}function GC(l){return l.filter(r=>r.tagName!=="A")}var XC="Portal",cc=p.forwardRef((l,r)=>{const{container:o,...i}=l,[u,f]=p.useState(!1);dt(()=>f(!0),[]);const d=o||u&&globalThis?.document?.body;return d?dw.createPortal(y.jsx(be.div,{...i,ref:r}),d):null});cc.displayName=XC;var Iu=0;function Gf(){p.useEffect(()=>{const l=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",l[0]??Bg()),document.body.insertAdjacentElement("beforeend",l[1]??Bg()),Iu++,()=>{Iu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Iu--}},[])}function Bg(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var cn=function(){return cn=Object.assign||function(r){for(var o,i=1,u=arguments.length;i<u;i++){o=arguments[i];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(r[f]=o[f])}return r},cn.apply(this,arguments)};function my(l,r){var o={};for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&r.indexOf(i)<0&&(o[i]=l[i]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(l);u<i.length;u++)r.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(l,i[u])&&(o[i[u]]=l[i[u]]);return o}function QC(l,r,o){if(o||arguments.length===2)for(var i=0,u=r.length,f;i<u;i++)(f||!(i in r))&&(f||(f=Array.prototype.slice.call(r,0,i)),f[i]=r[i]);return l.concat(f||Array.prototype.slice.call(r))}var Yi="right-scroll-bar-position",Gi="width-before-scroll-bar",ZC="with-scroll-bars-hidden",KC="--removed-body-scroll-bar-size";function Wu(l,r){return typeof l=="function"?l(r):l&&(l.current=r),l}function $C(l,r){var o=p.useState(function(){return{value:l,callback:r,facade:{get current(){return o.value},set current(i){var u=o.value;u!==i&&(o.value=i,o.callback(i,u))}}}})[0];return o.callback=r,o.facade}var PC=typeof window<"u"?p.useLayoutEffect:p.useEffect,qg=new WeakMap;function JC(l,r){var o=$C(null,function(i){return l.forEach(function(u){return Wu(u,i)})});return PC(function(){var i=qg.get(o);if(i){var u=new Set(i),f=new Set(l),d=o.current;u.forEach(function(m){f.has(m)||Wu(m,null)}),f.forEach(function(m){u.has(m)||Wu(m,d)})}qg.set(o,l)},[l]),o}function FC(l){return l}function IC(l,r){r===void 0&&(r=FC);var o=[],i=!1,u={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:l},useMedium:function(f){var d=r(f,i);return o.push(d),function(){o=o.filter(function(m){return m!==d})}},assignSyncMedium:function(f){for(i=!0;o.length;){var d=o;o=[],d.forEach(f)}o={push:function(m){return f(m)},filter:function(){return o}}},assignMedium:function(f){i=!0;var d=[];if(o.length){var m=o;o=[],m.forEach(f),d=o}var v=function(){var b=d;d=[],b.forEach(f)},h=function(){return Promise.resolve().then(v)};h(),o={push:function(b){d.push(b),h()},filter:function(b){return d=d.filter(b),o}}}};return u}function WC(l){l===void 0&&(l={});var r=IC(null);return r.options=cn({async:!0,ssr:!1},l),r}var hy=function(l){var r=l.sideCar,o=my(l,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return p.createElement(i,cn({},o))};hy.isSideCarExport=!0;function e2(l,r){return l.useMedium(r),hy}var py=WC(),ef=function(){},sc=p.forwardRef(function(l,r){var o=p.useRef(null),i=p.useState({onScrollCapture:ef,onWheelCapture:ef,onTouchMoveCapture:ef}),u=i[0],f=i[1],d=l.forwardProps,m=l.children,v=l.className,h=l.removeScrollBar,b=l.enabled,x=l.shards,E=l.sideCar,C=l.noRelative,N=l.noIsolation,w=l.inert,R=l.allowPinchZoom,T=l.as,A=T===void 0?"div":T,z=l.gapMode,q=my(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=E,F=JC([o,r]),Y=cn(cn({},q),u);return p.createElement(p.Fragment,null,b&&p.createElement(Q,{sideCar:py,removeScrollBar:h,shards:x,noRelative:C,noIsolation:N,inert:w,setCallbacks:f,allowPinchZoom:!!R,lockRef:o,gapMode:z}),d?p.cloneElement(p.Children.only(m),cn(cn({},Y),{ref:F})):p.createElement(A,cn({},Y,{className:v,ref:F}),m))});sc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sc.classNames={fullWidth:Gi,zeroRight:Yi};var t2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function n2(){if(!document)return null;var l=document.createElement("style");l.type="text/css";var r=t2();return r&&l.setAttribute("nonce",r),l}function l2(l,r){l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}function a2(l){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(l)}var r2=function(){var l=0,r=null;return{add:function(o){l==0&&(r=n2())&&(l2(r,o),a2(r)),l++},remove:function(){l--,!l&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},o2=function(){var l=r2();return function(r,o){p.useEffect(function(){return l.add(r),function(){l.remove()}},[r&&o])}},gy=function(){var l=o2(),r=function(o){var i=o.styles,u=o.dynamic;return l(i,u),null};return r},i2={left:0,top:0,right:0,gap:0},tf=function(l){return parseInt(l||"",10)||0},c2=function(l){var r=window.getComputedStyle(document.body),o=r[l==="padding"?"paddingLeft":"marginLeft"],i=r[l==="padding"?"paddingTop":"marginTop"],u=r[l==="padding"?"paddingRight":"marginRight"];return[tf(o),tf(i),tf(u)]},s2=function(l){if(l===void 0&&(l="margin"),typeof window>"u")return i2;var r=c2(l),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-o+r[2]-r[0])}},u2=gy(),Ya="data-scroll-locked",f2=function(l,r,o,i){var u=l.left,f=l.top,d=l.right,m=l.gap;return o===void 0&&(o="margin"),`
  .`.concat(ZC,` {
   overflow: hidden `).concat(i,`;
   padding-right: `).concat(m,"px ").concat(i,`;
  }
  body[`).concat(Ya,`] {
    overflow: hidden `).concat(i,`;
    overscroll-behavior: contain;
    `).concat([r&&"position: relative ".concat(i,";"),o==="margin"&&`
    padding-left: `.concat(u,`px;
    padding-top: `).concat(f,`px;
    padding-right: `).concat(d,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(m,"px ").concat(i,`;
    `),o==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Yi,` {
    right: `).concat(m,"px ").concat(i,`;
  }
  
  .`).concat(Gi,` {
    margin-right: `).concat(m,"px ").concat(i,`;
  }
  
  .`).concat(Yi," .").concat(Yi,` {
    right: 0 `).concat(i,`;
  }
  
  .`).concat(Gi," .").concat(Gi,` {
    margin-right: 0 `).concat(i,`;
  }
  
  body[`).concat(Ya,`] {
    `).concat(KC,": ").concat(m,`px;
  }
`)},Vg=function(){var l=parseInt(document.body.getAttribute(Ya)||"0",10);return isFinite(l)?l:0},d2=function(){p.useEffect(function(){return document.body.setAttribute(Ya,(Vg()+1).toString()),function(){var l=Vg()-1;l<=0?document.body.removeAttribute(Ya):document.body.setAttribute(Ya,l.toString())}},[])},m2=function(l){var r=l.noRelative,o=l.noImportant,i=l.gapMode,u=i===void 0?"margin":i;d2();var f=p.useMemo(function(){return s2(u)},[u]);return p.createElement(u2,{styles:f2(f,!r,u,o?"":"!important")})},vf=!1;if(typeof window<"u")try{var Di=Object.defineProperty({},"passive",{get:function(){return vf=!0,!0}});window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{vf=!1}var Ua=vf?{passive:!1}:!1,h2=function(l){return l.tagName==="TEXTAREA"},vy=function(l,r){if(!(l instanceof Element))return!1;var o=window.getComputedStyle(l);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!h2(l)&&o[r]==="visible")},p2=function(l){return vy(l,"overflowY")},g2=function(l){return vy(l,"overflowX")},Yg=function(l,r){var o=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=yy(l,i);if(u){var f=by(l,i),d=f[1],m=f[2];if(d>m)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},v2=function(l){var r=l.scrollTop,o=l.scrollHeight,i=l.clientHeight;return[r,o,i]},y2=function(l){var r=l.scrollLeft,o=l.scrollWidth,i=l.clientWidth;return[r,o,i]},yy=function(l,r){return l==="v"?p2(r):g2(r)},by=function(l,r){return l==="v"?v2(r):y2(r)},b2=function(l,r){return l==="h"&&r==="rtl"?-1:1},x2=function(l,r,o,i,u){var f=b2(l,window.getComputedStyle(r).direction),d=f*i,m=o.target,v=r.contains(m),h=!1,b=d>0,x=0,E=0;do{if(!m)break;var C=by(l,m),N=C[0],w=C[1],R=C[2],T=w-R-f*N;(N||T)&&yy(l,m)&&(x+=T,E+=N);var A=m.parentNode;m=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!v&&m!==document.body||v&&(r.contains(m)||r===m));return(b&&Math.abs(x)<1||!b&&Math.abs(E)<1)&&(h=!0),h},ki=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},Gg=function(l){return[l.deltaX,l.deltaY]},Xg=function(l){return l&&"current"in l?l.current:l},S2=function(l,r){return l[0]===r[0]&&l[1]===r[1]},w2=function(l){return`
  .block-interactivity-`.concat(l,` {pointer-events: none;}
  .allow-interactivity-`).concat(l,` {pointer-events: all;}
`)},E2=0,Ha=[];function C2(l){var r=p.useRef([]),o=p.useRef([0,0]),i=p.useRef(),u=p.useState(E2++)[0],f=p.useState(gy)[0],d=p.useRef(l);p.useEffect(function(){d.current=l},[l]),p.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(u));var w=QC([l.lockRef.current],(l.shards||[]).map(Xg),!0).filter(Boolean);return w.forEach(function(R){return R.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),w.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(u))})}}},[l.inert,l.lockRef.current,l.shards]);var m=p.useCallback(function(w,R){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!d.current.allowPinchZoom;var T=ki(w),A=o.current,z="deltaX"in w?w.deltaX:A[0]-T[0],q="deltaY"in w?w.deltaY:A[1]-T[1],Q,F=w.target,Y=Math.abs(z)>Math.abs(q)?"h":"v";if("touches"in w&&Y==="h"&&F.type==="range")return!1;var I=Yg(Y,F);if(!I)return!0;if(I?Q=Y:(Q=Y==="v"?"h":"v",I=Yg(Y,F)),!I)return!1;if(!i.current&&"changedTouches"in w&&(z||q)&&(i.current=Q),!Q)return!0;var te=i.current||Q;return x2(te,R,w,te==="h"?z:q)},[]),v=p.useCallback(function(w){var R=w;if(!(!Ha.length||Ha[Ha.length-1]!==f)){var T="deltaY"in R?Gg(R):ki(R),A=r.current.filter(function(Q){return Q.name===R.type&&(Q.target===R.target||R.target===Q.shadowParent)&&S2(Q.delta,T)})[0];if(A&&A.should){R.cancelable&&R.preventDefault();return}if(!A){var z=(d.current.shards||[]).map(Xg).filter(Boolean).filter(function(Q){return Q.contains(R.target)}),q=z.length>0?m(R,z[0]):!d.current.noIsolation;q&&R.cancelable&&R.preventDefault()}}},[]),h=p.useCallback(function(w,R,T,A){var z={name:w,delta:R,target:T,should:A,shadowParent:A2(T)};r.current.push(z),setTimeout(function(){r.current=r.current.filter(function(q){return q!==z})},1)},[]),b=p.useCallback(function(w){o.current=ki(w),i.current=void 0},[]),x=p.useCallback(function(w){h(w.type,Gg(w),w.target,m(w,l.lockRef.current))},[]),E=p.useCallback(function(w){h(w.type,ki(w),w.target,m(w,l.lockRef.current))},[]);p.useEffect(function(){return Ha.push(f),l.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:E}),document.addEventListener("wheel",v,Ua),document.addEventListener("touchmove",v,Ua),document.addEventListener("touchstart",b,Ua),function(){Ha=Ha.filter(function(w){return w!==f}),document.removeEventListener("wheel",v,Ua),document.removeEventListener("touchmove",v,Ua),document.removeEventListener("touchstart",b,Ua)}},[]);var C=l.removeScrollBar,N=l.inert;return p.createElement(p.Fragment,null,N?p.createElement(f,{styles:w2(u)}):null,C?p.createElement(m2,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function A2(l){for(var r=null;l!==null;)l instanceof ShadowRoot&&(r=l.host,l=l.host),l=l.parentNode;return r}const R2=e2(py,C2);var uc=p.forwardRef(function(l,r){return p.createElement(sc,cn({},l,{ref:r,sideCar:R2}))});uc.classNames=sc.classNames;var N2=function(l){if(typeof document>"u")return null;var r=Array.isArray(l)?l[0]:l;return r.ownerDocument.body},Ba=new WeakMap,Li=new WeakMap,Ui={},nf=0,xy=function(l){return l&&(l.host||xy(l.parentNode))},T2=function(l,r){return r.map(function(o){if(l.contains(o))return o;var i=xy(o);return i&&l.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",l,". Doing nothing"),null)}).filter(function(o){return!!o})},_2=function(l,r,o,i){var u=T2(r,Array.isArray(l)?l:[l]);Ui[o]||(Ui[o]=new WeakMap);var f=Ui[o],d=[],m=new Set,v=new Set(u),h=function(x){!x||m.has(x)||(m.add(x),h(x.parentNode))};u.forEach(h);var b=function(x){!x||v.has(x)||Array.prototype.forEach.call(x.children,function(E){if(m.has(E))b(E);else try{var C=E.getAttribute(i),N=C!==null&&C!=="false",w=(Ba.get(E)||0)+1,R=(f.get(E)||0)+1;Ba.set(E,w),f.set(E,R),d.push(E),w===1&&N&&Li.set(E,!0),R===1&&E.setAttribute(o,"true"),N||E.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",E,T)}})};return b(r),m.clear(),nf++,function(){d.forEach(function(x){var E=Ba.get(x)-1,C=f.get(x)-1;Ba.set(x,E),f.set(x,C),E||(Li.has(x)||x.removeAttribute(i),Li.delete(x)),C||x.removeAttribute(o)}),nf--,nf||(Ba=new WeakMap,Ba=new WeakMap,Li=new WeakMap,Ui={})}},Xf=function(l,r,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(l)?l:[l]),u=N2(l);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),_2(i,u,o,"aria-hidden")):function(){return null}},fc="Dialog",[Sy]=gl(fc),[O2,tn]=Sy(fc),wy=l=>{const{__scopeDialog:r,children:o,open:i,defaultOpen:u,onOpenChange:f,modal:d=!0}=l,m=p.useRef(null),v=p.useRef(null),[h,b]=dl({prop:i,defaultProp:u??!1,onChange:f,caller:fc});return y.jsx(O2,{scope:r,triggerRef:m,contentRef:v,contentId:vt(),titleId:vt(),descriptionId:vt(),open:h,onOpenChange:b,onOpenToggle:p.useCallback(()=>b(x=>!x),[b]),modal:d,children:o})};wy.displayName=fc;var Ey="DialogTrigger",M2=p.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,u=tn(Ey,o),f=Ye(r,u.triggerRef);return y.jsx(be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":Kf(u.open),...i,ref:f,onClick:Oe(l.onClick,u.onOpenToggle)})});M2.displayName=Ey;var Qf="DialogPortal",[j2,Cy]=Sy(Qf,{forceMount:void 0}),Ay=l=>{const{__scopeDialog:r,forceMount:o,children:i,container:u}=l,f=tn(Qf,r);return y.jsx(j2,{scope:r,forceMount:o,children:p.Children.map(i,d=>y.jsx(Fl,{present:o||f.open,children:y.jsx(cc,{asChild:!0,container:u,children:d})}))})};Ay.displayName=Qf;var Ki="DialogOverlay",Ry=p.forwardRef((l,r)=>{const o=Cy(Ki,l.__scopeDialog),{forceMount:i=o.forceMount,...u}=l,f=tn(Ki,l.__scopeDialog);return f.modal?y.jsx(Fl,{present:i||f.open,children:y.jsx(D2,{...u,ref:r})}):null});Ry.displayName=Ki;var z2=Yl("DialogOverlay.RemoveScroll"),D2=p.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,u=tn(Ki,o);return y.jsx(uc,{as:z2,allowPinchZoom:!0,shards:[u.contentRef],children:y.jsx(be.div,{"data-state":Kf(u.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),Ql="DialogContent",Ny=p.forwardRef((l,r)=>{const o=Cy(Ql,l.__scopeDialog),{forceMount:i=o.forceMount,...u}=l,f=tn(Ql,l.__scopeDialog);return y.jsx(Fl,{present:i||f.open,children:f.modal?y.jsx(k2,{...u,ref:r}):y.jsx(L2,{...u,ref:r})})});Ny.displayName=Ql;var k2=p.forwardRef((l,r)=>{const o=tn(Ql,l.__scopeDialog),i=p.useRef(null),u=Ye(r,o.contentRef,i);return p.useEffect(()=>{const f=i.current;if(f)return Xf(f)},[]),y.jsx(Ty,{...l,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(l.onCloseAutoFocus,f=>{f.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:Oe(l.onPointerDownOutside,f=>{const d=f.detail.originalEvent,m=d.button===0&&d.ctrlKey===!0;(d.button===2||m)&&f.preventDefault()}),onFocusOutside:Oe(l.onFocusOutside,f=>f.preventDefault())})}),L2=p.forwardRef((l,r)=>{const o=tn(Ql,l.__scopeDialog),i=p.useRef(!1),u=p.useRef(!1);return y.jsx(Ty,{...l,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{l.onCloseAutoFocus?.(f),f.defaultPrevented||(i.current||o.triggerRef.current?.focus(),f.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:f=>{l.onInteractOutside?.(f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const d=f.target;o.triggerRef.current?.contains(d)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),Ty=p.forwardRef((l,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:f,...d}=l,m=tn(Ql,o),v=p.useRef(null),h=Ye(r,v);return Gf(),y.jsxs(y.Fragment,{children:[y.jsx(ic,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:f,children:y.jsx(oc,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Kf(m.open),...d,ref:h,onDismiss:()=>m.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(U2,{titleId:m.titleId}),y.jsx(B2,{contentRef:v,descriptionId:m.descriptionId})]})]})}),Zf="DialogTitle",_y=p.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,u=tn(Zf,o);return y.jsx(be.h2,{id:u.titleId,...i,ref:r})});_y.displayName=Zf;var Oy="DialogDescription",My=p.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,u=tn(Oy,o);return y.jsx(be.p,{id:u.descriptionId,...i,ref:r})});My.displayName=Oy;var jy="DialogClose",zy=p.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,u=tn(jy,o);return y.jsx(be.button,{type:"button",...i,ref:r,onClick:Oe(l.onClick,()=>u.onOpenChange(!1))})});zy.displayName=jy;function Kf(l){return l?"open":"closed"}var Dy="DialogTitleWarning",[fT,ky]=mw(Dy,{contentName:Ql,titleName:Zf,docsSlug:"dialog"}),U2=({titleId:l})=>{const r=ky(Dy),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return p.useEffect(()=>{l&&(document.getElementById(l)||console.error(o))},[o,l]),null},H2="DialogDescriptionWarning",B2=({contentRef:l,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ky(H2).contentName}}.`;return p.useEffect(()=>{const u=l.current?.getAttribute("aria-describedby");r&&u&&(document.getElementById(r)||console.warn(i))},[i,l,r]),null},Ly=wy,Uy=Ay,Hy=Ry,By=Ny,q2=_y,V2=My,Y2=zy,Ir='[cmdk-group=""]',lf='[cmdk-group-items=""]',G2='[cmdk-group-heading=""]',qy='[cmdk-item=""]',Qg=`${qy}:not([aria-disabled="true"])`,yf="cmdk-item-select",qa="data-value",X2=(l,r,o)=>TC(l,r,o),Vy=p.createContext(void 0),so=()=>p.useContext(Vy),Yy=p.createContext(void 0),$f=()=>p.useContext(Yy),Gy=p.createContext(void 0),Xy=p.forwardRef((l,r)=>{let o=Va(()=>{var O,G;return{search:"",value:(G=(O=l.value)!=null?O:l.defaultValue)!=null?G:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=Va(()=>new Set),u=Va(()=>new Map),f=Va(()=>new Map),d=Va(()=>new Set),m=Qy(l),{label:v,children:h,value:b,onValueChange:x,filter:E,shouldFilter:C,loop:N,disablePointerSelection:w=!1,vimBindings:R=!0,...T}=l,A=vt(),z=vt(),q=vt(),Q=p.useRef(null),F=tA();Zl(()=>{if(b!==void 0){let O=b.trim();o.current.value=O,Y.emit()}},[b]),Zl(()=>{F(6,ue)},[]);let Y=p.useMemo(()=>({subscribe:O=>(d.current.add(O),()=>d.current.delete(O)),snapshot:()=>o.current,setState:(O,G,P)=>{var W,ee,K,me;if(!Object.is(o.current[O],G)){if(o.current[O]=G,O==="search")le(),pe(),F(1,de);else if(O==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let fe=document.getElementById(q);fe?fe.focus():(W=document.getElementById(A))==null||W.focus()}if(F(7,()=>{var fe;o.current.selectedItemId=(fe=ce())==null?void 0:fe.id,Y.emit()}),P||F(5,ue),((ee=m.current)==null?void 0:ee.value)!==void 0){let fe=G??"";(me=(K=m.current).onValueChange)==null||me.call(K,fe);return}}Y.emit()}},emit:()=>{d.current.forEach(O=>O())}}),[]),I=p.useMemo(()=>({value:(O,G,P)=>{var W;G!==((W=f.current.get(O))==null?void 0:W.value)&&(f.current.set(O,{value:G,keywords:P}),o.current.filtered.items.set(O,te(G,P)),F(2,()=>{pe(),Y.emit()}))},item:(O,G)=>(i.current.add(O),G&&(u.current.has(G)?u.current.get(G).add(O):u.current.set(G,new Set([O]))),F(3,()=>{le(),pe(),o.current.value||de(),Y.emit()}),()=>{f.current.delete(O),i.current.delete(O),o.current.filtered.items.delete(O);let P=ce();F(4,()=>{le(),P?.getAttribute("id")===O&&de(),Y.emit()})}),group:O=>(u.current.has(O)||u.current.set(O,new Set),()=>{f.current.delete(O),u.current.delete(O)}),filter:()=>m.current.shouldFilter,label:v||l["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:A,inputId:q,labelId:z,listInnerRef:Q}),[]);function te(O,G){var P,W;let ee=(W=(P=m.current)==null?void 0:P.filter)!=null?W:X2;return O?ee(O,o.current.search,G):0}function pe(){if(!o.current.search||m.current.shouldFilter===!1)return;let O=o.current.filtered.items,G=[];o.current.filtered.groups.forEach(W=>{let ee=u.current.get(W),K=0;ee.forEach(me=>{let fe=O.get(me);K=Math.max(fe,K)}),G.push([W,K])});let P=Q.current;se().sort((W,ee)=>{var K,me;let fe=W.getAttribute("id"),Se=ee.getAttribute("id");return((K=O.get(Se))!=null?K:0)-((me=O.get(fe))!=null?me:0)}).forEach(W=>{let ee=W.closest(lf);ee?ee.appendChild(W.parentElement===ee?W:W.closest(`${lf} > *`)):P.appendChild(W.parentElement===P?W:W.closest(`${lf} > *`))}),G.sort((W,ee)=>ee[1]-W[1]).forEach(W=>{var ee;let K=(ee=Q.current)==null?void 0:ee.querySelector(`${Ir}[${qa}="${encodeURIComponent(W[0])}"]`);K?.parentElement.appendChild(K)})}function de(){let O=se().find(P=>P.getAttribute("aria-disabled")!=="true"),G=O?.getAttribute(qa);Y.setState("value",G||void 0)}function le(){var O,G,P,W;if(!o.current.search||m.current.shouldFilter===!1){o.current.filtered.count=i.current.size;return}o.current.filtered.groups=new Set;let ee=0;for(let K of i.current){let me=(G=(O=f.current.get(K))==null?void 0:O.value)!=null?G:"",fe=(W=(P=f.current.get(K))==null?void 0:P.keywords)!=null?W:[],Se=te(me,fe);o.current.filtered.items.set(K,Se),Se>0&&ee++}for(let[K,me]of u.current)for(let fe of me)if(o.current.filtered.items.get(fe)>0){o.current.filtered.groups.add(K);break}o.current.filtered.count=ee}function ue(){var O,G,P;let W=ce();W&&(((O=W.parentElement)==null?void 0:O.firstChild)===W&&((P=(G=W.closest(Ir))==null?void 0:G.querySelector(G2))==null||P.scrollIntoView({block:"nearest"})),W.scrollIntoView({block:"nearest"}))}function ce(){var O;return(O=Q.current)==null?void 0:O.querySelector(`${qy}[aria-selected="true"]`)}function se(){var O;return Array.from(((O=Q.current)==null?void 0:O.querySelectorAll(Qg))||[])}function D(O){let G=se()[O];G&&Y.setState("value",G.getAttribute(qa))}function X(O){var G;let P=ce(),W=se(),ee=W.findIndex(me=>me===P),K=W[ee+O];(G=m.current)!=null&&G.loop&&(K=ee+O<0?W[W.length-1]:ee+O===W.length?W[0]:W[ee+O]),K&&Y.setState("value",K.getAttribute(qa))}function B(O){let G=ce(),P=G?.closest(Ir),W;for(;P&&!W;)P=O>0?W2(P,Ir):eA(P,Ir),W=P?.querySelector(Qg);W?Y.setState("value",W.getAttribute(qa)):X(O)}let oe=()=>D(se().length-1),ve=O=>{O.preventDefault(),O.metaKey?oe():O.altKey?B(1):X(1)},M=O=>{O.preventDefault(),O.metaKey?D(0):O.altKey?B(-1):X(-1)};return p.createElement(be.div,{ref:r,tabIndex:-1,...T,"cmdk-root":"",onKeyDown:O=>{var G;(G=T.onKeyDown)==null||G.call(T,O);let P=O.nativeEvent.isComposing||O.keyCode===229;if(!(O.defaultPrevented||P))switch(O.key){case"n":case"j":{R&&O.ctrlKey&&ve(O);break}case"ArrowDown":{ve(O);break}case"p":case"k":{R&&O.ctrlKey&&M(O);break}case"ArrowUp":{M(O);break}case"Home":{O.preventDefault(),D(0);break}case"End":{O.preventDefault(),oe();break}case"Enter":{O.preventDefault();let W=ce();if(W){let ee=new Event(yf);W.dispatchEvent(ee)}}}}},p.createElement("label",{"cmdk-label":"",htmlFor:I.inputId,id:I.labelId,style:lA},v),dc(l,O=>p.createElement(Yy.Provider,{value:Y},p.createElement(Vy.Provider,{value:I},O))))}),Q2=p.forwardRef((l,r)=>{var o,i;let u=vt(),f=p.useRef(null),d=p.useContext(Gy),m=so(),v=Qy(l),h=(i=(o=v.current)==null?void 0:o.forceMount)!=null?i:d?.forceMount;Zl(()=>{if(!h)return m.item(u,d?.id)},[h]);let b=Zy(u,f,[l.value,l.children,f],l.keywords),x=$f(),E=ml(F=>F.value&&F.value===b.current),C=ml(F=>h||m.filter()===!1?!0:F.search?F.filtered.items.get(u)>0:!0);p.useEffect(()=>{let F=f.current;if(!(!F||l.disabled))return F.addEventListener(yf,N),()=>F.removeEventListener(yf,N)},[C,l.onSelect,l.disabled]);function N(){var F,Y;w(),(Y=(F=v.current).onSelect)==null||Y.call(F,b.current)}function w(){x.setState("value",b.current,!0)}if(!C)return null;let{disabled:R,value:T,onSelect:A,forceMount:z,keywords:q,...Q}=l;return p.createElement(be.div,{ref:Vl(f,r),...Q,id:u,"cmdk-item":"",role:"option","aria-disabled":!!R,"aria-selected":!!E,"data-disabled":!!R,"data-selected":!!E,onPointerMove:R||m.getDisablePointerSelection()?void 0:w,onClick:R?void 0:N},l.children)}),Z2=p.forwardRef((l,r)=>{let{heading:o,children:i,forceMount:u,...f}=l,d=vt(),m=p.useRef(null),v=p.useRef(null),h=vt(),b=so(),x=ml(C=>u||b.filter()===!1?!0:C.search?C.filtered.groups.has(d):!0);Zl(()=>b.group(d),[]),Zy(d,m,[l.value,l.heading,v]);let E=p.useMemo(()=>({id:d,forceMount:u}),[u]);return p.createElement(be.div,{ref:Vl(m,r),...f,"cmdk-group":"",role:"presentation",hidden:x?void 0:!0},o&&p.createElement("div",{ref:v,"cmdk-group-heading":"","aria-hidden":!0,id:h},o),dc(l,C=>p.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":o?h:void 0},p.createElement(Gy.Provider,{value:E},C))))}),K2=p.forwardRef((l,r)=>{let{alwaysRender:o,...i}=l,u=p.useRef(null),f=ml(d=>!d.search);return!o&&!f?null:p.createElement(be.div,{ref:Vl(u,r),...i,"cmdk-separator":"",role:"separator"})}),$2=p.forwardRef((l,r)=>{let{onValueChange:o,...i}=l,u=l.value!=null,f=$f(),d=ml(h=>h.search),m=ml(h=>h.selectedItemId),v=so();return p.useEffect(()=>{l.value!=null&&f.setState("search",l.value)},[l.value]),p.createElement(be.input,{ref:r,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":v.listId,"aria-labelledby":v.labelId,"aria-activedescendant":m,id:v.inputId,type:"text",value:u?l.value:d,onChange:h=>{u||f.setState("search",h.target.value),o?.(h.target.value)}})}),P2=p.forwardRef((l,r)=>{let{children:o,label:i="Suggestions",...u}=l,f=p.useRef(null),d=p.useRef(null),m=ml(h=>h.selectedItemId),v=so();return p.useEffect(()=>{if(d.current&&f.current){let h=d.current,b=f.current,x,E=new ResizeObserver(()=>{x=requestAnimationFrame(()=>{let C=h.offsetHeight;b.style.setProperty("--cmdk-list-height",C.toFixed(1)+"px")})});return E.observe(h),()=>{cancelAnimationFrame(x),E.unobserve(h)}}},[]),p.createElement(be.div,{ref:Vl(f,r),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":i,id:v.listId},dc(l,h=>p.createElement("div",{ref:Vl(d,v.listInnerRef),"cmdk-list-sizer":""},h)))}),J2=p.forwardRef((l,r)=>{let{open:o,onOpenChange:i,overlayClassName:u,contentClassName:f,container:d,...m}=l;return p.createElement(Ly,{open:o,onOpenChange:i},p.createElement(Uy,{container:d},p.createElement(Hy,{"cmdk-overlay":"",className:u}),p.createElement(By,{"aria-label":l.label,"cmdk-dialog":"",className:f},p.createElement(Xy,{ref:r,...m}))))}),F2=p.forwardRef((l,r)=>ml(o=>o.filtered.count===0)?p.createElement(be.div,{ref:r,...l,"cmdk-empty":"",role:"presentation"}):null),I2=p.forwardRef((l,r)=>{let{progress:o,children:i,label:u="Loading...",...f}=l;return p.createElement(be.div,{ref:r,...f,"cmdk-loading":"",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},dc(l,d=>p.createElement("div",{"aria-hidden":!0},d)))}),Fa=Object.assign(Xy,{List:P2,Item:Q2,Input:$2,Group:Z2,Separator:K2,Dialog:J2,Empty:F2,Loading:I2});function W2(l,r){let o=l.nextElementSibling;for(;o;){if(o.matches(r))return o;o=o.nextElementSibling}}function eA(l,r){let o=l.previousElementSibling;for(;o;){if(o.matches(r))return o;o=o.previousElementSibling}}function Qy(l){let r=p.useRef(l);return Zl(()=>{r.current=l}),r}var Zl=typeof window>"u"?p.useEffect:p.useLayoutEffect;function Va(l){let r=p.useRef();return r.current===void 0&&(r.current=l()),r}function ml(l){let r=$f(),o=()=>l(r.snapshot());return p.useSyncExternalStore(r.subscribe,o,o)}function Zy(l,r,o,i=[]){let u=p.useRef(),f=so();return Zl(()=>{var d;let m=(()=>{var h;for(let b of o){if(typeof b=="string")return b.trim();if(typeof b=="object"&&"current"in b)return b.current?(h=b.current.textContent)==null?void 0:h.trim():u.current}})(),v=i.map(h=>h.trim());f.value(l,m,v),(d=r.current)==null||d.setAttribute(qa,m),u.current=m}),u}var tA=()=>{let[l,r]=p.useState(),o=Va(()=>new Map);return Zl(()=>{o.current.forEach(i=>i()),o.current=new Map},[l]),(i,u)=>{o.current.set(i,u),r({})}};function nA(l){let r=l.type;return typeof r=="function"?r(l.props):"render"in r?r.render(l.props):l}function dc({asChild:l,children:r},o){return l&&p.isValidElement(r)?p.cloneElement(nA(r),{ref:r.ref},o(r.props.children)):o(r)}var lA={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function aA({...l}){return y.jsx(Ly,{"data-slot":"dialog",...l})}function rA({...l}){return y.jsx(Uy,{"data-slot":"dialog-portal",...l})}function oA({className:l,...r}){return y.jsx(Hy,{"data-slot":"dialog-overlay",className:De("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",l),...r})}function iA({className:l,children:r,showCloseButton:o=!0,...i}){return y.jsxs(rA,{"data-slot":"dialog-portal",children:[y.jsx(oA,{}),y.jsxs(By,{"data-slot":"dialog-content",className:De("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",l),...i,children:[r,o&&y.jsxs(Y2,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[y.jsx(to,{}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function cA({className:l,...r}){return y.jsx("div",{"data-slot":"dialog-header",className:De("flex flex-col gap-2 text-center sm:text-left",l),...r})}function sA({className:l,...r}){return y.jsx("div",{"data-slot":"dialog-footer",className:De("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",l),...r})}function uA({className:l,...r}){return y.jsx(q2,{"data-slot":"dialog-title",className:De("text-lg leading-none font-semibold",l),...r})}function fA({className:l,...r}){return y.jsx(V2,{"data-slot":"dialog-description",className:De("text-muted-foreground text-sm",l),...r})}function dA({className:l,...r}){return y.jsx(Fa,{"data-slot":"command",className:De("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",l),...r})}function mA({className:l,...r}){return y.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[y.jsx(wE,{className:"size-4 shrink-0 opacity-50"}),y.jsx(Fa.Input,{"data-slot":"command-input",className:De("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",l),...r})]})}function hA({className:l,...r}){return y.jsx(Fa.List,{"data-slot":"command-list",className:De("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",l),...r})}function pA({...l}){return y.jsx(Fa.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...l})}function gA({className:l,...r}){return y.jsx(Fa.Group,{"data-slot":"command-group",className:De("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",l),...r})}function vA({className:l,...r}){return y.jsx(Fa.Item,{"data-slot":"command-item",className:De("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...r})}const yA=["top","right","bottom","left"],hl=Math.min,Lt=Math.max,$i=Math.round,Hi=Math.floor,un=l=>({x:l,y:l}),bA={left:"right",right:"left",bottom:"top",top:"bottom"},xA={start:"end",end:"start"};function bf(l,r,o){return Lt(l,hl(r,o))}function Ln(l,r){return typeof l=="function"?l(r):l}function Un(l){return l.split("-")[0]}function Ia(l){return l.split("-")[1]}function Pf(l){return l==="x"?"y":"x"}function Jf(l){return l==="y"?"height":"width"}const SA=new Set(["top","bottom"]);function sn(l){return SA.has(Un(l))?"y":"x"}function Ff(l){return Pf(sn(l))}function wA(l,r,o){o===void 0&&(o=!1);const i=Ia(l),u=Ff(l),f=Jf(u);let d=u==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(d=Pi(d)),[d,Pi(d)]}function EA(l){const r=Pi(l);return[xf(l),r,xf(r)]}function xf(l){return l.replace(/start|end/g,r=>xA[r])}const Zg=["left","right"],Kg=["right","left"],CA=["top","bottom"],AA=["bottom","top"];function RA(l,r,o){switch(l){case"top":case"bottom":return o?r?Kg:Zg:r?Zg:Kg;case"left":case"right":return r?CA:AA;default:return[]}}function NA(l,r,o,i){const u=Ia(l);let f=RA(Un(l),o==="start",i);return u&&(f=f.map(d=>d+"-"+u),r&&(f=f.concat(f.map(xf)))),f}function Pi(l){return l.replace(/left|right|bottom|top/g,r=>bA[r])}function TA(l){return{top:0,right:0,bottom:0,left:0,...l}}function Ky(l){return typeof l!="number"?TA(l):{top:l,right:l,bottom:l,left:l}}function Ji(l){const{x:r,y:o,width:i,height:u}=l;return{width:i,height:u,top:o,left:r,right:r+i,bottom:o+u,x:r,y:o}}function $g(l,r,o){let{reference:i,floating:u}=l;const f=sn(r),d=Ff(r),m=Jf(d),v=Un(r),h=f==="y",b=i.x+i.width/2-u.width/2,x=i.y+i.height/2-u.height/2,E=i[m]/2-u[m]/2;let C;switch(v){case"top":C={x:b,y:i.y-u.height};break;case"bottom":C={x:b,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:x};break;case"left":C={x:i.x-u.width,y:x};break;default:C={x:i.x,y:i.y}}switch(Ia(r)){case"start":C[d]-=E*(o&&h?-1:1);break;case"end":C[d]+=E*(o&&h?-1:1);break}return C}const _A=async(l,r,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:f=[],platform:d}=o,m=f.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(r));let h=await d.getElementRects({reference:l,floating:r,strategy:u}),{x:b,y:x}=$g(h,i,v),E=i,C={},N=0;for(let w=0;w<m.length;w++){const{name:R,fn:T}=m[w],{x:A,y:z,data:q,reset:Q}=await T({x:b,y:x,initialPlacement:i,placement:E,strategy:u,middlewareData:C,rects:h,platform:d,elements:{reference:l,floating:r}});b=A??b,x=z??x,C={...C,[R]:{...C[R],...q}},Q&&N<=50&&(N++,typeof Q=="object"&&(Q.placement&&(E=Q.placement),Q.rects&&(h=Q.rects===!0?await d.getElementRects({reference:l,floating:r,strategy:u}):Q.rects),{x:b,y:x}=$g(h,E,v)),w=-1)}return{x:b,y:x,placement:E,strategy:u,middlewareData:C}};async function lo(l,r){var o;r===void 0&&(r={});const{x:i,y:u,platform:f,rects:d,elements:m,strategy:v}=l,{boundary:h="clippingAncestors",rootBoundary:b="viewport",elementContext:x="floating",altBoundary:E=!1,padding:C=0}=Ln(r,l),N=Ky(C),R=m[E?x==="floating"?"reference":"floating":x],T=Ji(await f.getClippingRect({element:(o=await(f.isElement==null?void 0:f.isElement(R)))==null||o?R:R.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:h,rootBoundary:b,strategy:v})),A=x==="floating"?{x:i,y:u,width:d.floating.width,height:d.floating.height}:d.reference,z=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),q=await(f.isElement==null?void 0:f.isElement(z))?await(f.getScale==null?void 0:f.getScale(z))||{x:1,y:1}:{x:1,y:1},Q=Ji(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:A,offsetParent:z,strategy:v}):A);return{top:(T.top-Q.top+N.top)/q.y,bottom:(Q.bottom-T.bottom+N.bottom)/q.y,left:(T.left-Q.left+N.left)/q.x,right:(Q.right-T.right+N.right)/q.x}}const OA=l=>({name:"arrow",options:l,async fn(r){const{x:o,y:i,placement:u,rects:f,platform:d,elements:m,middlewareData:v}=r,{element:h,padding:b=0}=Ln(l,r)||{};if(h==null)return{};const x=Ky(b),E={x:o,y:i},C=Ff(u),N=Jf(C),w=await d.getDimensions(h),R=C==="y",T=R?"top":"left",A=R?"bottom":"right",z=R?"clientHeight":"clientWidth",q=f.reference[N]+f.reference[C]-E[C]-f.floating[N],Q=E[C]-f.reference[C],F=await(d.getOffsetParent==null?void 0:d.getOffsetParent(h));let Y=F?F[z]:0;(!Y||!await(d.isElement==null?void 0:d.isElement(F)))&&(Y=m.floating[z]||f.floating[N]);const I=q/2-Q/2,te=Y/2-w[N]/2-1,pe=hl(x[T],te),de=hl(x[A],te),le=pe,ue=Y-w[N]-de,ce=Y/2-w[N]/2+I,se=bf(le,ce,ue),D=!v.arrow&&Ia(u)!=null&&ce!==se&&f.reference[N]/2-(ce<le?pe:de)-w[N]/2<0,X=D?ce<le?ce-le:ce-ue:0;return{[C]:E[C]+X,data:{[C]:se,centerOffset:ce-se-X,...D&&{alignmentOffset:X}},reset:D}}}),MA=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(r){var o,i;const{placement:u,middlewareData:f,rects:d,initialPlacement:m,platform:v,elements:h}=r,{mainAxis:b=!0,crossAxis:x=!0,fallbackPlacements:E,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:w=!0,...R}=Ln(l,r);if((o=f.arrow)!=null&&o.alignmentOffset)return{};const T=Un(u),A=sn(m),z=Un(m)===m,q=await(v.isRTL==null?void 0:v.isRTL(h.floating)),Q=E||(z||!w?[Pi(m)]:EA(m)),F=N!=="none";!E&&F&&Q.push(...NA(m,w,N,q));const Y=[m,...Q],I=await lo(r,R),te=[];let pe=((i=f.flip)==null?void 0:i.overflows)||[];if(b&&te.push(I[T]),x){const ce=wA(u,d,q);te.push(I[ce[0]],I[ce[1]])}if(pe=[...pe,{placement:u,overflows:te}],!te.every(ce=>ce<=0)){var de,le;const ce=(((de=f.flip)==null?void 0:de.index)||0)+1,se=Y[ce];if(se&&(!(x==="alignment"?A!==sn(se):!1)||pe.every(B=>sn(B.placement)===A?B.overflows[0]>0:!0)))return{data:{index:ce,overflows:pe},reset:{placement:se}};let D=(le=pe.filter(X=>X.overflows[0]<=0).sort((X,B)=>X.overflows[1]-B.overflows[1])[0])==null?void 0:le.placement;if(!D)switch(C){case"bestFit":{var ue;const X=(ue=pe.filter(B=>{if(F){const oe=sn(B.placement);return oe===A||oe==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(oe=>oe>0).reduce((oe,ve)=>oe+ve,0)]).sort((B,oe)=>B[1]-oe[1])[0])==null?void 0:ue[0];X&&(D=X);break}case"initialPlacement":D=m;break}if(u!==D)return{reset:{placement:D}}}return{}}}};function Pg(l,r){return{top:l.top-r.height,right:l.right-r.width,bottom:l.bottom-r.height,left:l.left-r.width}}function Jg(l){return yA.some(r=>l[r]>=0)}const jA=function(l){return l===void 0&&(l={}),{name:"hide",options:l,async fn(r){const{rects:o}=r,{strategy:i="referenceHidden",...u}=Ln(l,r);switch(i){case"referenceHidden":{const f=await lo(r,{...u,elementContext:"reference"}),d=Pg(f,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Jg(d)}}}case"escaped":{const f=await lo(r,{...u,altBoundary:!0}),d=Pg(f,o.floating);return{data:{escapedOffsets:d,escaped:Jg(d)}}}default:return{}}}}},$y=new Set(["left","top"]);async function zA(l,r){const{placement:o,platform:i,elements:u}=l,f=await(i.isRTL==null?void 0:i.isRTL(u.floating)),d=Un(o),m=Ia(o),v=sn(o)==="y",h=$y.has(d)?-1:1,b=f&&v?-1:1,x=Ln(r,l);let{mainAxis:E,crossAxis:C,alignmentAxis:N}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return m&&typeof N=="number"&&(C=m==="end"?N*-1:N),v?{x:C*b,y:E*h}:{x:E*h,y:C*b}}const DA=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(r){var o,i;const{x:u,y:f,placement:d,middlewareData:m}=r,v=await zA(r,l);return d===((o=m.offset)==null?void 0:o.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:u+v.x,y:f+v.y,data:{...v,placement:d}}}}},kA=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(r){const{x:o,y:i,placement:u}=r,{mainAxis:f=!0,crossAxis:d=!1,limiter:m={fn:R=>{let{x:T,y:A}=R;return{x:T,y:A}}},...v}=Ln(l,r),h={x:o,y:i},b=await lo(r,v),x=sn(Un(u)),E=Pf(x);let C=h[E],N=h[x];if(f){const R=E==="y"?"top":"left",T=E==="y"?"bottom":"right",A=C+b[R],z=C-b[T];C=bf(A,C,z)}if(d){const R=x==="y"?"top":"left",T=x==="y"?"bottom":"right",A=N+b[R],z=N-b[T];N=bf(A,N,z)}const w=m.fn({...r,[E]:C,[x]:N});return{...w,data:{x:w.x-o,y:w.y-i,enabled:{[E]:f,[x]:d}}}}}},LA=function(l){return l===void 0&&(l={}),{options:l,fn(r){const{x:o,y:i,placement:u,rects:f,middlewareData:d}=r,{offset:m=0,mainAxis:v=!0,crossAxis:h=!0}=Ln(l,r),b={x:o,y:i},x=sn(u),E=Pf(x);let C=b[E],N=b[x];const w=Ln(m,r),R=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(v){const z=E==="y"?"height":"width",q=f.reference[E]-f.floating[z]+R.mainAxis,Q=f.reference[E]+f.reference[z]-R.mainAxis;C<q?C=q:C>Q&&(C=Q)}if(h){var T,A;const z=E==="y"?"width":"height",q=$y.has(Un(u)),Q=f.reference[x]-f.floating[z]+(q&&((T=d.offset)==null?void 0:T[x])||0)+(q?0:R.crossAxis),F=f.reference[x]+f.reference[z]+(q?0:((A=d.offset)==null?void 0:A[x])||0)-(q?R.crossAxis:0);N<Q?N=Q:N>F&&(N=F)}return{[E]:C,[x]:N}}}},UA=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(r){var o,i;const{placement:u,rects:f,platform:d,elements:m}=r,{apply:v=()=>{},...h}=Ln(l,r),b=await lo(r,h),x=Un(u),E=Ia(u),C=sn(u)==="y",{width:N,height:w}=f.floating;let R,T;x==="top"||x==="bottom"?(R=x,T=E===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(T=x,R=E==="end"?"top":"bottom");const A=w-b.top-b.bottom,z=N-b.left-b.right,q=hl(w-b[R],A),Q=hl(N-b[T],z),F=!r.middlewareData.shift;let Y=q,I=Q;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(I=z),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(Y=A),F&&!E){const pe=Lt(b.left,0),de=Lt(b.right,0),le=Lt(b.top,0),ue=Lt(b.bottom,0);C?I=N-2*(pe!==0||de!==0?pe+de:Lt(b.left,b.right)):Y=w-2*(le!==0||ue!==0?le+ue:Lt(b.top,b.bottom))}await v({...r,availableWidth:I,availableHeight:Y});const te=await d.getDimensions(m.floating);return N!==te.width||w!==te.height?{reset:{rects:!0}}:{}}}};function mc(){return typeof window<"u"}function Wa(l){return Py(l)?(l.nodeName||"").toLowerCase():"#document"}function Ut(l){var r;return(l==null||(r=l.ownerDocument)==null?void 0:r.defaultView)||window}function hn(l){var r;return(r=(Py(l)?l.ownerDocument:l.document)||window.document)==null?void 0:r.documentElement}function Py(l){return mc()?l instanceof Node||l instanceof Ut(l).Node:!1}function It(l){return mc()?l instanceof Element||l instanceof Ut(l).Element:!1}function dn(l){return mc()?l instanceof HTMLElement||l instanceof Ut(l).HTMLElement:!1}function Fg(l){return!mc()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Ut(l).ShadowRoot}const HA=new Set(["inline","contents"]);function uo(l){const{overflow:r,overflowX:o,overflowY:i,display:u}=Wt(l);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&!HA.has(u)}const BA=new Set(["table","td","th"]);function qA(l){return BA.has(Wa(l))}const VA=[":popover-open",":modal"];function hc(l){return VA.some(r=>{try{return l.matches(r)}catch{return!1}})}const YA=["transform","translate","scale","rotate","perspective"],GA=["transform","translate","scale","rotate","perspective","filter"],XA=["paint","layout","strict","content"];function If(l){const r=Wf(),o=It(l)?Wt(l):l;return YA.some(i=>o[i]?o[i]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||GA.some(i=>(o.willChange||"").includes(i))||XA.some(i=>(o.contain||"").includes(i))}function QA(l){let r=pl(l);for(;dn(r)&&!Xa(r);){if(If(r))return r;if(hc(r))return null;r=pl(r)}return null}function Wf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ZA=new Set(["html","body","#document"]);function Xa(l){return ZA.has(Wa(l))}function Wt(l){return Ut(l).getComputedStyle(l)}function pc(l){return It(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function pl(l){if(Wa(l)==="html")return l;const r=l.assignedSlot||l.parentNode||Fg(l)&&l.host||hn(l);return Fg(r)?r.host:r}function Jy(l){const r=pl(l);return Xa(r)?l.ownerDocument?l.ownerDocument.body:l.body:dn(r)&&uo(r)?r:Jy(r)}function ao(l,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const u=Jy(l),f=u===((i=l.ownerDocument)==null?void 0:i.body),d=Ut(u);if(f){const m=Sf(d);return r.concat(d,d.visualViewport||[],uo(u)?u:[],m&&o?ao(m):[])}return r.concat(u,ao(u,[],o))}function Sf(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function Fy(l){const r=Wt(l);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const u=dn(l),f=u?l.offsetWidth:o,d=u?l.offsetHeight:i,m=$i(o)!==f||$i(i)!==d;return m&&(o=f,i=d),{width:o,height:i,$:m}}function ed(l){return It(l)?l:l.contextElement}function Ga(l){const r=ed(l);if(!dn(r))return un(1);const o=r.getBoundingClientRect(),{width:i,height:u,$:f}=Fy(r);let d=(f?$i(o.width):o.width)/i,m=(f?$i(o.height):o.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const KA=un(0);function Iy(l){const r=Ut(l);return!Wf()||!r.visualViewport?KA:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function $A(l,r,o){return r===void 0&&(r=!1),!o||r&&o!==Ut(l)?!1:r}function Kl(l,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const u=l.getBoundingClientRect(),f=ed(l);let d=un(1);r&&(i?It(i)&&(d=Ga(i)):d=Ga(l));const m=$A(f,o,i)?Iy(f):un(0);let v=(u.left+m.x)/d.x,h=(u.top+m.y)/d.y,b=u.width/d.x,x=u.height/d.y;if(f){const E=Ut(f),C=i&&It(i)?Ut(i):i;let N=E,w=Sf(N);for(;w&&i&&C!==N;){const R=Ga(w),T=w.getBoundingClientRect(),A=Wt(w),z=T.left+(w.clientLeft+parseFloat(A.paddingLeft))*R.x,q=T.top+(w.clientTop+parseFloat(A.paddingTop))*R.y;v*=R.x,h*=R.y,b*=R.x,x*=R.y,v+=z,h+=q,N=Ut(w),w=Sf(N)}}return Ji({width:b,height:x,x:v,y:h})}function gc(l,r){const o=pc(l).scrollLeft;return r?r.left+o:Kl(hn(l)).left+o}function Wy(l,r){const o=l.getBoundingClientRect(),i=o.left+r.scrollLeft-gc(l,o),u=o.top+r.scrollTop;return{x:i,y:u}}function PA(l){let{elements:r,rect:o,offsetParent:i,strategy:u}=l;const f=u==="fixed",d=hn(i),m=r?hc(r.floating):!1;if(i===d||m&&f)return o;let v={scrollLeft:0,scrollTop:0},h=un(1);const b=un(0),x=dn(i);if((x||!x&&!f)&&((Wa(i)!=="body"||uo(d))&&(v=pc(i)),dn(i))){const C=Kl(i);h=Ga(i),b.x=C.x+i.clientLeft,b.y=C.y+i.clientTop}const E=d&&!x&&!f?Wy(d,v):un(0);return{width:o.width*h.x,height:o.height*h.y,x:o.x*h.x-v.scrollLeft*h.x+b.x+E.x,y:o.y*h.y-v.scrollTop*h.y+b.y+E.y}}function JA(l){return Array.from(l.getClientRects())}function FA(l){const r=hn(l),o=pc(l),i=l.ownerDocument.body,u=Lt(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),f=Lt(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let d=-o.scrollLeft+gc(l);const m=-o.scrollTop;return Wt(i).direction==="rtl"&&(d+=Lt(r.clientWidth,i.clientWidth)-u),{width:u,height:f,x:d,y:m}}const Ig=25;function IA(l,r){const o=Ut(l),i=hn(l),u=o.visualViewport;let f=i.clientWidth,d=i.clientHeight,m=0,v=0;if(u){f=u.width,d=u.height;const b=Wf();(!b||b&&r==="fixed")&&(m=u.offsetLeft,v=u.offsetTop)}const h=gc(i);if(h<=0){const b=i.ownerDocument,x=b.body,E=getComputedStyle(x),C=b.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,N=Math.abs(i.clientWidth-x.clientWidth-C);N<=Ig&&(f-=N)}else h<=Ig&&(f+=h);return{width:f,height:d,x:m,y:v}}const WA=new Set(["absolute","fixed"]);function eR(l,r){const o=Kl(l,!0,r==="fixed"),i=o.top+l.clientTop,u=o.left+l.clientLeft,f=dn(l)?Ga(l):un(1),d=l.clientWidth*f.x,m=l.clientHeight*f.y,v=u*f.x,h=i*f.y;return{width:d,height:m,x:v,y:h}}function Wg(l,r,o){let i;if(r==="viewport")i=IA(l,o);else if(r==="document")i=FA(hn(l));else if(It(r))i=eR(r,o);else{const u=Iy(l);i={x:r.x-u.x,y:r.y-u.y,width:r.width,height:r.height}}return Ji(i)}function e0(l,r){const o=pl(l);return o===r||!It(o)||Xa(o)?!1:Wt(o).position==="fixed"||e0(o,r)}function tR(l,r){const o=r.get(l);if(o)return o;let i=ao(l,[],!1).filter(m=>It(m)&&Wa(m)!=="body"),u=null;const f=Wt(l).position==="fixed";let d=f?pl(l):l;for(;It(d)&&!Xa(d);){const m=Wt(d),v=If(d);!v&&m.position==="fixed"&&(u=null),(f?!v&&!u:!v&&m.position==="static"&&!!u&&WA.has(u.position)||uo(d)&&!v&&e0(l,d))?i=i.filter(b=>b!==d):u=m,d=pl(d)}return r.set(l,i),i}function nR(l){let{element:r,boundary:o,rootBoundary:i,strategy:u}=l;const d=[...o==="clippingAncestors"?hc(r)?[]:tR(r,this._c):[].concat(o),i],m=d[0],v=d.reduce((h,b)=>{const x=Wg(r,b,u);return h.top=Lt(x.top,h.top),h.right=hl(x.right,h.right),h.bottom=hl(x.bottom,h.bottom),h.left=Lt(x.left,h.left),h},Wg(r,m,u));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function lR(l){const{width:r,height:o}=Fy(l);return{width:r,height:o}}function aR(l,r,o){const i=dn(r),u=hn(r),f=o==="fixed",d=Kl(l,!0,f,r);let m={scrollLeft:0,scrollTop:0};const v=un(0);function h(){v.x=gc(u)}if(i||!i&&!f)if((Wa(r)!=="body"||uo(u))&&(m=pc(r)),i){const C=Kl(r,!0,f,r);v.x=C.x+r.clientLeft,v.y=C.y+r.clientTop}else u&&h();f&&!i&&u&&h();const b=u&&!i&&!f?Wy(u,m):un(0),x=d.left+m.scrollLeft-v.x-b.x,E=d.top+m.scrollTop-v.y-b.y;return{x,y:E,width:d.width,height:d.height}}function af(l){return Wt(l).position==="static"}function ev(l,r){if(!dn(l)||Wt(l).position==="fixed")return null;if(r)return r(l);let o=l.offsetParent;return hn(l)===o&&(o=o.ownerDocument.body),o}function t0(l,r){const o=Ut(l);if(hc(l))return o;if(!dn(l)){let u=pl(l);for(;u&&!Xa(u);){if(It(u)&&!af(u))return u;u=pl(u)}return o}let i=ev(l,r);for(;i&&qA(i)&&af(i);)i=ev(i,r);return i&&Xa(i)&&af(i)&&!If(i)?o:i||QA(l)||o}const rR=async function(l){const r=this.getOffsetParent||t0,o=this.getDimensions,i=await o(l.floating);return{reference:aR(l.reference,await r(l.floating),l.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function oR(l){return Wt(l).direction==="rtl"}const iR={convertOffsetParentRelativeRectToViewportRelativeRect:PA,getDocumentElement:hn,getClippingRect:nR,getOffsetParent:t0,getElementRects:rR,getClientRects:JA,getDimensions:lR,getScale:Ga,isElement:It,isRTL:oR};function n0(l,r){return l.x===r.x&&l.y===r.y&&l.width===r.width&&l.height===r.height}function cR(l,r){let o=null,i;const u=hn(l);function f(){var m;clearTimeout(i),(m=o)==null||m.disconnect(),o=null}function d(m,v){m===void 0&&(m=!1),v===void 0&&(v=1),f();const h=l.getBoundingClientRect(),{left:b,top:x,width:E,height:C}=h;if(m||r(),!E||!C)return;const N=Hi(x),w=Hi(u.clientWidth-(b+E)),R=Hi(u.clientHeight-(x+C)),T=Hi(b),z={rootMargin:-N+"px "+-w+"px "+-R+"px "+-T+"px",threshold:Lt(0,hl(1,v))||1};let q=!0;function Q(F){const Y=F[0].intersectionRatio;if(Y!==v){if(!q)return d();Y?d(!1,Y):i=setTimeout(()=>{d(!1,1e-7)},1e3)}Y===1&&!n0(h,l.getBoundingClientRect())&&d(),q=!1}try{o=new IntersectionObserver(Q,{...z,root:u.ownerDocument})}catch{o=new IntersectionObserver(Q,z)}o.observe(l)}return d(!0),f}function sR(l,r,o,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:v=!1}=i,h=ed(l),b=u||f?[...h?ao(h):[],...ao(r)]:[];b.forEach(T=>{u&&T.addEventListener("scroll",o,{passive:!0}),f&&T.addEventListener("resize",o)});const x=h&&m?cR(h,o):null;let E=-1,C=null;d&&(C=new ResizeObserver(T=>{let[A]=T;A&&A.target===h&&C&&(C.unobserve(r),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var z;(z=C)==null||z.observe(r)})),o()}),h&&!v&&C.observe(h),C.observe(r));let N,w=v?Kl(l):null;v&&R();function R(){const T=Kl(l);w&&!n0(w,T)&&o(),w=T,N=requestAnimationFrame(R)}return o(),()=>{var T;b.forEach(A=>{u&&A.removeEventListener("scroll",o),f&&A.removeEventListener("resize",o)}),x?.(),(T=C)==null||T.disconnect(),C=null,v&&cancelAnimationFrame(N)}}const uR=DA,fR=kA,dR=MA,mR=UA,hR=jA,tv=OA,pR=LA,gR=(l,r,o)=>{const i=new Map,u={platform:iR,...o},f={...u.platform,_c:i};return _A(l,r,{...u,platform:f})};var vR=typeof document<"u",yR=function(){},Xi=vR?p.useLayoutEffect:yR;function Fi(l,r){if(l===r)return!0;if(typeof l!=typeof r)return!1;if(typeof l=="function"&&l.toString()===r.toString())return!0;let o,i,u;if(l&&r&&typeof l=="object"){if(Array.isArray(l)){if(o=l.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!Fi(l[i],r[i]))return!1;return!0}if(u=Object.keys(l),o=u.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,u[i]))return!1;for(i=o;i--!==0;){const f=u[i];if(!(f==="_owner"&&l.$$typeof)&&!Fi(l[f],r[f]))return!1}return!0}return l!==l&&r!==r}function l0(l){return typeof window>"u"?1:(l.ownerDocument.defaultView||window).devicePixelRatio||1}function nv(l,r){const o=l0(l);return Math.round(r*o)/o}function rf(l){const r=p.useRef(l);return Xi(()=>{r.current=l}),r}function bR(l){l===void 0&&(l={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:u,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:v,open:h}=l,[b,x]=p.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[E,C]=p.useState(i);Fi(E,i)||C(i);const[N,w]=p.useState(null),[R,T]=p.useState(null),A=p.useCallback(B=>{B!==F.current&&(F.current=B,w(B))},[]),z=p.useCallback(B=>{B!==Y.current&&(Y.current=B,T(B))},[]),q=f||N,Q=d||R,F=p.useRef(null),Y=p.useRef(null),I=p.useRef(b),te=v!=null,pe=rf(v),de=rf(u),le=rf(h),ue=p.useCallback(()=>{if(!F.current||!Y.current)return;const B={placement:r,strategy:o,middleware:E};de.current&&(B.platform=de.current),gR(F.current,Y.current,B).then(oe=>{const ve={...oe,isPositioned:le.current!==!1};ce.current&&!Fi(I.current,ve)&&(I.current=ve,co.flushSync(()=>{x(ve)}))})},[E,r,o,de,le]);Xi(()=>{h===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,x(B=>({...B,isPositioned:!1})))},[h]);const ce=p.useRef(!1);Xi(()=>(ce.current=!0,()=>{ce.current=!1}),[]),Xi(()=>{if(q&&(F.current=q),Q&&(Y.current=Q),q&&Q){if(pe.current)return pe.current(q,Q,ue);ue()}},[q,Q,ue,pe,te]);const se=p.useMemo(()=>({reference:F,floating:Y,setReference:A,setFloating:z}),[A,z]),D=p.useMemo(()=>({reference:q,floating:Q}),[q,Q]),X=p.useMemo(()=>{const B={position:o,left:0,top:0};if(!D.floating)return B;const oe=nv(D.floating,b.x),ve=nv(D.floating,b.y);return m?{...B,transform:"translate("+oe+"px, "+ve+"px)",...l0(D.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:oe,top:ve}},[o,m,D.floating,b.x,b.y]);return p.useMemo(()=>({...b,update:ue,refs:se,elements:D,floatingStyles:X}),[b,ue,se,D,X])}const xR=l=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:l,fn(o){const{element:i,padding:u}=typeof l=="function"?l(o):l;return i&&r(i)?i.current!=null?tv({element:i.current,padding:u}).fn(o):{}:i?tv({element:i,padding:u}).fn(o):{}}}},SR=(l,r)=>({...uR(l),options:[l,r]}),wR=(l,r)=>({...fR(l),options:[l,r]}),ER=(l,r)=>({...pR(l),options:[l,r]}),CR=(l,r)=>({...dR(l),options:[l,r]}),AR=(l,r)=>({...mR(l),options:[l,r]}),RR=(l,r)=>({...hR(l),options:[l,r]}),NR=(l,r)=>({...xR(l),options:[l,r]});var TR="Arrow",a0=p.forwardRef((l,r)=>{const{children:o,width:i=10,height:u=5,...f}=l;return y.jsx(be.svg,{...f,ref:r,width:i,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:l.asChild?o:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});a0.displayName=TR;var _R=a0;function r0(l){const[r,o]=p.useState(void 0);return dt(()=>{if(l){o({width:l.offsetWidth,height:l.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let d,m;if("borderBoxSize"in f){const v=f.borderBoxSize,h=Array.isArray(v)?v[0]:v;d=h.inlineSize,m=h.blockSize}else d=l.offsetWidth,m=l.offsetHeight;o({width:d,height:m})});return i.observe(l,{box:"border-box"}),()=>i.unobserve(l)}else o(void 0)},[l]),r}var td="Popper",[o0,vc]=gl(td),[OR,i0]=o0(td),c0=l=>{const{__scopePopper:r,children:o}=l,[i,u]=p.useState(null);return y.jsx(OR,{scope:r,anchor:i,onAnchorChange:u,children:o})};c0.displayName=td;var s0="PopperAnchor",u0=p.forwardRef((l,r)=>{const{__scopePopper:o,virtualRef:i,...u}=l,f=i0(s0,o),d=p.useRef(null),m=Ye(r,d),v=p.useRef(null);return p.useEffect(()=>{const h=v.current;v.current=i?.current||d.current,h!==v.current&&f.onAnchorChange(v.current)}),i?null:y.jsx(be.div,{...u,ref:m})});u0.displayName=s0;var nd="PopperContent",[MR,jR]=o0(nd),f0=p.forwardRef((l,r)=>{const{__scopePopper:o,side:i="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:v=!0,collisionBoundary:h=[],collisionPadding:b=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:C="optimized",onPlaced:N,...w}=l,R=i0(nd,o),[T,A]=p.useState(null),z=Ye(r,K=>A(K)),[q,Q]=p.useState(null),F=r0(q),Y=F?.width??0,I=F?.height??0,te=i+(f!=="center"?"-"+f:""),pe=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},de=Array.isArray(h)?h:[h],le=de.length>0,ue={padding:pe,boundary:de.filter(DR),altBoundary:le},{refs:ce,floatingStyles:se,placement:D,isPositioned:X,middlewareData:B}=bR({strategy:"fixed",placement:te,whileElementsMounted:(...K)=>sR(...K,{animationFrame:C==="always"}),elements:{reference:R.anchor},middleware:[SR({mainAxis:u+I,alignmentAxis:d}),v&&wR({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?ER():void 0,...ue}),v&&CR({...ue}),AR({...ue,apply:({elements:K,rects:me,availableWidth:fe,availableHeight:Se})=>{const{width:_e,height:ke}=me.reference,ht=K.floating.style;ht.setProperty("--radix-popper-available-width",`${fe}px`),ht.setProperty("--radix-popper-available-height",`${Se}px`),ht.setProperty("--radix-popper-anchor-width",`${_e}px`),ht.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),q&&NR({element:q,padding:m}),kR({arrowWidth:Y,arrowHeight:I}),E&&RR({strategy:"referenceHidden",...ue})]}),[oe,ve]=h0(D),M=Xl(N);dt(()=>{X&&M?.()},[X,M]);const O=B.arrow?.x,G=B.arrow?.y,P=B.arrow?.centerOffset!==0,[W,ee]=p.useState();return dt(()=>{T&&ee(window.getComputedStyle(T).zIndex)},[T]),y.jsx("div",{ref:ce.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:X?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:l.dir,children:y.jsx(MR,{scope:o,placedSide:oe,onArrowChange:Q,arrowX:O,arrowY:G,shouldHideArrow:P,children:y.jsx(be.div,{"data-side":oe,"data-align":ve,...w,ref:z,style:{...w.style,animation:X?void 0:"none"}})})})});f0.displayName=nd;var d0="PopperArrow",zR={top:"bottom",right:"left",bottom:"top",left:"right"},m0=p.forwardRef(function(r,o){const{__scopePopper:i,...u}=r,f=jR(d0,i),d=zR[f.placedSide];return y.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]: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:y.jsx(_R,{...u,ref:o,style:{...u.style,display:"block"}})})});m0.displayName=d0;function DR(l){return l!==null}var kR=l=>({name:"transformOrigin",options:l,fn(r){const{placement:o,rects:i,middlewareData:u}=r,d=u.arrow?.centerOffset!==0,m=d?0:l.arrowWidth,v=d?0:l.arrowHeight,[h,b]=h0(o),x={start:"0%",center:"50%",end:"100%"}[b],E=(u.arrow?.x??0)+m/2,C=(u.arrow?.y??0)+v/2;let N="",w="";return h==="bottom"?(N=d?x:`${E}px`,w=`${-v}px`):h==="top"?(N=d?x:`${E}px`,w=`${i.floating.height+v}px`):h==="right"?(N=`${-v}px`,w=d?x:`${C}px`):h==="left"&&(N=`${i.floating.width+v}px`,w=d?x:`${C}px`),{data:{x:N,y:w}}}});function h0(l){const[r,o="center"]=l.split("-");return[r,o]}var p0=c0,ld=u0,g0=f0,v0=m0,yc="Popover",[y0]=gl(yc,[vc]),fo=vc(),[LR,vl]=y0(yc),b0=l=>{const{__scopePopover:r,children:o,open:i,defaultOpen:u,onOpenChange:f,modal:d=!1}=l,m=fo(r),v=p.useRef(null),[h,b]=p.useState(!1),[x,E]=dl({prop:i,defaultProp:u??!1,onChange:f,caller:yc});return y.jsx(p0,{...m,children:y.jsx(LR,{scope:r,contentId:vt(),triggerRef:v,open:x,onOpenChange:E,onOpenToggle:p.useCallback(()=>E(C=>!C),[E]),hasCustomAnchor:h,onCustomAnchorAdd:p.useCallback(()=>b(!0),[]),onCustomAnchorRemove:p.useCallback(()=>b(!1),[]),modal:d,children:o})})};b0.displayName=yc;var x0="PopoverAnchor",UR=p.forwardRef((l,r)=>{const{__scopePopover:o,...i}=l,u=vl(x0,o),f=fo(o),{onCustomAnchorAdd:d,onCustomAnchorRemove:m}=u;return p.useEffect(()=>(d(),()=>m()),[d,m]),y.jsx(ld,{...f,...i,ref:r})});UR.displayName=x0;var S0="PopoverTrigger",w0=p.forwardRef((l,r)=>{const{__scopePopover:o,...i}=l,u=vl(S0,o),f=fo(o),d=Ye(r,u.triggerRef),m=y.jsx(be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":N0(u.open),...i,ref:d,onClick:Oe(l.onClick,u.onOpenToggle)});return u.hasCustomAnchor?m:y.jsx(ld,{asChild:!0,...f,children:m})});w0.displayName=S0;var ad="PopoverPortal",[HR,BR]=y0(ad,{forceMount:void 0}),E0=l=>{const{__scopePopover:r,forceMount:o,children:i,container:u}=l,f=vl(ad,r);return y.jsx(HR,{scope:r,forceMount:o,children:y.jsx(Fl,{present:o||f.open,children:y.jsx(cc,{asChild:!0,container:u,children:i})})})};E0.displayName=ad;var Qa="PopoverContent",C0=p.forwardRef((l,r)=>{const o=BR(Qa,l.__scopePopover),{forceMount:i=o.forceMount,...u}=l,f=vl(Qa,l.__scopePopover);return y.jsx(Fl,{present:i||f.open,children:f.modal?y.jsx(VR,{...u,ref:r}):y.jsx(YR,{...u,ref:r})})});C0.displayName=Qa;var qR=Yl("PopoverContent.RemoveScroll"),VR=p.forwardRef((l,r)=>{const o=vl(Qa,l.__scopePopover),i=p.useRef(null),u=Ye(r,i),f=p.useRef(!1);return p.useEffect(()=>{const d=i.current;if(d)return Xf(d)},[]),y.jsx(uc,{as:qR,allowPinchZoom:!0,children:y.jsx(A0,{...l,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(l.onCloseAutoFocus,d=>{d.preventDefault(),f.current||o.triggerRef.current?.focus()}),onPointerDownOutside:Oe(l.onPointerDownOutside,d=>{const m=d.detail.originalEvent,v=m.button===0&&m.ctrlKey===!0,h=m.button===2||v;f.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:Oe(l.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})}),YR=p.forwardRef((l,r)=>{const o=vl(Qa,l.__scopePopover),i=p.useRef(!1),u=p.useRef(!1);return y.jsx(A0,{...l,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{l.onCloseAutoFocus?.(f),f.defaultPrevented||(i.current||o.triggerRef.current?.focus(),f.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:f=>{l.onInteractOutside?.(f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const d=f.target;o.triggerRef.current?.contains(d)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),A0=p.forwardRef((l,r)=>{const{__scopePopover:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:f,disableOutsidePointerEvents:d,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:h,onInteractOutside:b,...x}=l,E=vl(Qa,o),C=fo(o);return Gf(),y.jsx(ic,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:f,children:y.jsx(oc,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:b,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:h,onDismiss:()=>E.onOpenChange(!1),children:y.jsx(g0,{"data-state":N0(E.open),role:"dialog",id:E.contentId,...C,...x,ref:r,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),R0="PopoverClose",GR=p.forwardRef((l,r)=>{const{__scopePopover:o,...i}=l,u=vl(R0,o);return y.jsx(be.button,{type:"button",...i,ref:r,onClick:Oe(l.onClick,()=>u.onOpenChange(!1))})});GR.displayName=R0;var XR="PopoverArrow",QR=p.forwardRef((l,r)=>{const{__scopePopover:o,...i}=l,u=fo(o);return y.jsx(v0,{...u,...i,ref:r})});QR.displayName=XR;function N0(l){return l?"open":"closed"}var ZR=b0,KR=w0,$R=E0,PR=C0;function JR({...l}){return y.jsx(ZR,{"data-slot":"popover",...l})}function FR({...l}){return y.jsx(KR,{"data-slot":"popover-trigger",...l})}function IR({className:l,align:r="center",sideOffset:o=4,...i}){return y.jsx($R,{children:y.jsx(PR,{"data-slot":"popover-content",align:r,sideOffset:o,className:De("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",l),...i})})}function WR({baseUrl:l,selectedAgent:r,onAgentChange:o,onAgentDataChange:i}){const[u,f]=p.useState([]),[d,m]=p.useState(!1),[v,h]=p.useState(null),[b,x]=p.useState(!1),E=p.useRef(!1);p.useEffect(()=>{if(!l){f([]),E.current=!1;return}(async()=>{m(!0),h(null);try{const w=await fetch(`${l}/api/agents`);if(!w.ok)throw new Error(`Failed to fetch agents: ${w.statusText}`);const A=(await w.json()).agents.map(z=>({id:z.name,name:z.name,settings:z.settings})).sort((z,q)=>z.name.localeCompare(q.name));f(A),!r&&A.length>0&&!E.current&&(o(A[0].id),E.current=!0)}catch(w){const R=w instanceof Error?w.message:"Failed to load agents";h(R),f([]),E.current=!1}finally{m(!1)}})()},[l]);const C=u.find(N=>N.id===r);return p.useEffect(()=>{i&&i(C||null)},[C,i]),y.jsxs("div",{className:"space-y-2",children:[y.jsx(on,{htmlFor:"agent-select",children:"Agent"}),v&&y.jsx("p",{className:"text-xs text-destructive",children:v}),y.jsxs(JR,{open:b,onOpenChange:x,children:[y.jsx(FR,{asChild:!0,children:y.jsxs(nt,{id:"agent-select",variant:"outline",role:"combobox","aria-expanded":b,className:"w-full justify-between",disabled:d||u.length===0,children:[C?.name||r||(d?"Loading agents...":"Select an agent"),y.jsx(dE,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),y.jsx(IR,{className:"w-[--radix-popover-trigger-width] p-0",children:y.jsxs(dA,{children:[y.jsx(mA,{placeholder:"Search agents..."}),y.jsxs(hA,{children:[y.jsx(pA,{children:"No agents found."}),y.jsx(gA,{children:u.map(N=>y.jsxs(vA,{value:N.name,onSelect:()=>{o(N.id===r?"":N.id),x(!1)},children:[y.jsx(Gl,{className:De("mr-2 h-4 w-4",r===N.id?"opacity-100":"opacity-0")}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{children:N.name}),N.description&&y.jsx("span",{className:"text-xs text-muted-foreground",children:N.description})]})]},N.id))})]})]})})]})]})}function T0({className:l,type:r,...o}){return y.jsx("input",{type:r,"data-slot":"input",className:De("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",l),...o})}function _0(l){const r=p.useRef({value:l,previous:l});return p.useMemo(()=>(r.current.value!==l&&(r.current.previous=r.current.value,r.current.value=l),r.current.previous),[l])}var bc="Switch",[eN]=gl(bc),[tN,nN]=eN(bc),O0=p.forwardRef((l,r)=>{const{__scopeSwitch:o,name:i,checked:u,defaultChecked:f,required:d,disabled:m,value:v="on",onCheckedChange:h,form:b,...x}=l,[E,C]=p.useState(null),N=Ye(r,z=>C(z)),w=p.useRef(!1),R=E?b||!!E.closest("form"):!0,[T,A]=dl({prop:u,defaultProp:f??!1,onChange:h,caller:bc});return y.jsxs(tN,{scope:o,checked:T,disabled:m,children:[y.jsx(be.button,{type:"button",role:"switch","aria-checked":T,"aria-required":d,"data-state":D0(T),"data-disabled":m?"":void 0,disabled:m,value:v,...x,ref:N,onClick:Oe(l.onClick,z=>{A(q=>!q),R&&(w.current=z.isPropagationStopped(),w.current||z.stopPropagation())})}),R&&y.jsx(z0,{control:E,bubbles:!w.current,name:i,value:v,checked:T,required:d,disabled:m,form:b,style:{transform:"translateX(-100%)"}})]})});O0.displayName=bc;var M0="SwitchThumb",j0=p.forwardRef((l,r)=>{const{__scopeSwitch:o,...i}=l,u=nN(M0,o);return y.jsx(be.span,{"data-state":D0(u.checked),"data-disabled":u.disabled?"":void 0,...i,ref:r})});j0.displayName=M0;var lN="SwitchBubbleInput",z0=p.forwardRef(({__scopeSwitch:l,control:r,checked:o,bubbles:i=!0,...u},f)=>{const d=p.useRef(null),m=Ye(d,f),v=_0(o),h=r0(r);return p.useEffect(()=>{const b=d.current;if(!b)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set;if(v!==o&&C){const N=new Event("click",{bubbles:i});C.call(b,o),b.dispatchEvent(N)}},[v,o,i]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...u,tabIndex:-1,ref:m,style:{...u.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});z0.displayName=lN;function D0(l){return l?"checked":"unchecked"}var aN=O0,rN=j0;function k0({className:l,...r}){return y.jsx(aN,{"data-slot":"switch",className:De("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",l),...r,children:y.jsx(rN,{"data-slot":"switch-thumb",className:De("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}function L0(l,r=""){const o={};for(const[i,u]of Object.entries(l)){const f=r?`${r}.${i}`:i;if(u==null){o[f]=u;continue}if(typeof u=="object"&&!Array.isArray(u)&&u.constructor===Object){const m=L0(u,f);Object.assign(o,m)}else o[f]=u}return o}function oN(l){const r={};for(const[o,i]of Object.entries(l)){const u=o.split(".");let f=r;for(let d=0;d<u.length;d++){const m=u[d];d===u.length-1?f[m]=i:((!f[m]||typeof f[m]!="object"||Array.isArray(f[m]))&&(f[m]={}),f=f[m])}}return r}function iN({value:l,onChange:r}){let o={},i={},u=null;try{const m=l.trim();o=m?JSON.parse(m):{},i=L0(o)}catch(m){u=m instanceof Error?m.message:"Invalid JSON"}const f=(m,v)=>{try{const h={...i,[m]:v},b=oN(h);r(JSON.stringify(b,null,2))}catch(h){console.error("Failed to update field:",h)}};if(u)return y.jsxs(Vf,{variant:"destructive",children:[y.jsx(Bf,{className:"h-4 w-4"}),y.jsxs(Yf,{children:["Cannot parse JSON: ",u]})]});const d=Object.entries(i);return d.length===0?y.jsx("div",{className:"text-sm text-muted-foreground p-4 text-center border border-dashed rounded-md",children:"No settings defined. Switch to JSON mode to add settings."}):y.jsx("div",{className:"space-y-4",children:d.map(([m,v])=>{const h=typeof v;if(h==="boolean")return y.jsxs("div",{className:"flex items-center justify-between space-x-2",children:[y.jsx(on,{htmlFor:`field-${m}`,className:"text-sm font-medium",children:m}),y.jsx(k0,{id:`field-${m}`,checked:v,onCheckedChange:b=>f(m,b)})]},m);if(h==="number")return y.jsxs("div",{className:"space-y-2",children:[y.jsx(on,{htmlFor:`field-${m}`,className:"text-sm font-medium",children:m}),y.jsx(T0,{id:`field-${m}`,type:"number",value:v,onChange:b=>f(m,parseFloat(b.target.value)||0)})]},m);if(h==="string"){const b=v,x=no(b);return y.jsxs("div",{className:"space-y-2",children:[y.jsx(on,{htmlFor:`field-${m}`,className:"text-sm font-medium",children:m}),y.jsx(Ja,{id:`field-${m}`,value:b,onChange:E=>f(m,E.target.value),rows:3,className:"resize-y font-mono text-sm",dir:x})]},m)}return Array.isArray(v)?y.jsxs("div",{className:"space-y-2",children:[y.jsx(on,{className:"text-sm font-medium text-muted-foreground",children:m}),y.jsx("div",{className:"text-xs text-muted-foreground p-2 bg-muted rounded",children:"Arrays are not supported in form editor (use JSON mode to edit)"})]},m):y.jsxs("div",{className:"space-y-2",children:[y.jsx(on,{className:"text-sm font-medium text-muted-foreground",children:m}),y.jsxs("div",{className:"text-xs text-muted-foreground p-2 bg-muted rounded",children:["Unsupported type: ",h==="object"?"null":h," (use JSON mode to edit)"]})]},m)})})}function lv(l,[r,o]){return Math.min(o,Math.max(r,l))}var U0=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"}),cN="VisuallyHidden",sN=p.forwardRef((l,r)=>y.jsx(be.span,{...l,ref:r,style:{...U0,...l.style}}));sN.displayName=cN;var uN=[" ","Enter","ArrowUp","ArrowDown"],fN=[" ","Enter"],$l="Select",[xc,Sc,dN]=Av($l),[er]=gl($l,[dN,vc]),wc=vc(),[mN,yl]=er($l),[hN,pN]=er($l),H0=l=>{const{__scopeSelect:r,children:o,open:i,defaultOpen:u,onOpenChange:f,value:d,defaultValue:m,onValueChange:v,dir:h,name:b,autoComplete:x,disabled:E,required:C,form:N}=l,w=wc(r),[R,T]=p.useState(null),[A,z]=p.useState(null),[q,Q]=p.useState(!1),F=Mv(h),[Y,I]=dl({prop:i,defaultProp:u??!1,onChange:f,caller:$l}),[te,pe]=dl({prop:d,defaultProp:m,onChange:v,caller:$l}),de=p.useRef(null),le=R?N||!!R.closest("form"):!0,[ue,ce]=p.useState(new Set),se=Array.from(ue).map(D=>D.props.value).join(";");return y.jsx(p0,{...w,children:y.jsxs(mN,{required:C,scope:r,trigger:R,onTriggerChange:T,valueNode:A,onValueNodeChange:z,valueNodeHasChildren:q,onValueNodeHasChildrenChange:Q,contentId:vt(),value:te,onValueChange:pe,open:Y,onOpenChange:I,dir:F,triggerPointerDownPosRef:de,disabled:E,children:[y.jsx(xc.Provider,{scope:r,children:y.jsx(hN,{scope:l.__scopeSelect,onNativeOptionAdd:p.useCallback(D=>{ce(X=>new Set(X).add(D))},[]),onNativeOptionRemove:p.useCallback(D=>{ce(X=>{const B=new Set(X);return B.delete(D),B})},[]),children:o})}),le?y.jsxs(ob,{"aria-hidden":!0,required:C,tabIndex:-1,name:b,autoComplete:x,value:te,onChange:D=>pe(D.target.value),disabled:E,form:N,children:[te===void 0?y.jsx("option",{value:""}):null,Array.from(ue)]},se):null]})})};H0.displayName=$l;var B0="SelectTrigger",q0=p.forwardRef((l,r)=>{const{__scopeSelect:o,disabled:i=!1,...u}=l,f=wc(o),d=yl(B0,o),m=d.disabled||i,v=Ye(r,d.onTriggerChange),h=Sc(o),b=p.useRef("touch"),[x,E,C]=cb(w=>{const R=h().filter(z=>!z.disabled),T=R.find(z=>z.value===d.value),A=sb(R,w,T);A!==void 0&&d.onValueChange(A.value)}),N=w=>{m||(d.onOpenChange(!0),C()),w&&(d.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return y.jsx(ld,{asChild:!0,...f,children:y.jsx(be.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":ib(d.value)?"":void 0,...u,ref:v,onClick:Oe(u.onClick,w=>{w.currentTarget.focus(),b.current!=="mouse"&&N(w)}),onPointerDown:Oe(u.onPointerDown,w=>{b.current=w.pointerType;const R=w.target;R.hasPointerCapture(w.pointerId)&&R.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(N(w),w.preventDefault())}),onKeyDown:Oe(u.onKeyDown,w=>{const R=x.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&E(w.key),!(R&&w.key===" ")&&uN.includes(w.key)&&(N(),w.preventDefault())})})})});q0.displayName=B0;var V0="SelectValue",Y0=p.forwardRef((l,r)=>{const{__scopeSelect:o,className:i,style:u,children:f,placeholder:d="",...m}=l,v=yl(V0,o),{onValueNodeHasChildrenChange:h}=v,b=f!==void 0,x=Ye(r,v.onValueNodeChange);return dt(()=>{h(b)},[h,b]),y.jsx(be.span,{...m,ref:x,style:{pointerEvents:"none"},children:ib(v.value)?y.jsx(y.Fragment,{children:d}):f})});Y0.displayName=V0;var gN="SelectIcon",G0=p.forwardRef((l,r)=>{const{__scopeSelect:o,children:i,...u}=l;return y.jsx(be.span,{"aria-hidden":!0,...u,ref:r,children:i||"▼"})});G0.displayName=gN;var vN="SelectPortal",X0=l=>y.jsx(cc,{asChild:!0,...l});X0.displayName=vN;var Pl="SelectContent",Q0=p.forwardRef((l,r)=>{const o=yl(Pl,l.__scopeSelect),[i,u]=p.useState();if(dt(()=>{u(new DocumentFragment)},[]),!o.open){const f=i;return f?co.createPortal(y.jsx(Z0,{scope:l.__scopeSelect,children:y.jsx(xc.Slot,{scope:l.__scopeSelect,children:y.jsx("div",{children:l.children})})}),f):null}return y.jsx(K0,{...l,ref:r})});Q0.displayName=Pl;var Ft=10,[Z0,bl]=er(Pl),yN="SelectContentImpl",bN=Yl("SelectContent.RemoveScroll"),K0=p.forwardRef((l,r)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:f,onPointerDownOutside:d,side:m,sideOffset:v,align:h,alignOffset:b,arrowPadding:x,collisionBoundary:E,collisionPadding:C,sticky:N,hideWhenDetached:w,avoidCollisions:R,...T}=l,A=yl(Pl,o),[z,q]=p.useState(null),[Q,F]=p.useState(null),Y=Ye(r,K=>q(K)),[I,te]=p.useState(null),[pe,de]=p.useState(null),le=Sc(o),[ue,ce]=p.useState(!1),se=p.useRef(!1);p.useEffect(()=>{if(z)return Xf(z)},[z]),Gf();const D=p.useCallback(K=>{const[me,...fe]=le().map(ke=>ke.ref.current),[Se]=fe.slice(-1),_e=document.activeElement;for(const ke of K)if(ke===_e||(ke?.scrollIntoView({block:"nearest"}),ke===me&&Q&&(Q.scrollTop=0),ke===Se&&Q&&(Q.scrollTop=Q.scrollHeight),ke?.focus(),document.activeElement!==_e))return},[le,Q]),X=p.useCallback(()=>D([I,z]),[D,I,z]);p.useEffect(()=>{ue&&X()},[ue,X]);const{onOpenChange:B,triggerPointerDownPosRef:oe}=A;p.useEffect(()=>{if(z){let K={x:0,y:0};const me=Se=>{K={x:Math.abs(Math.round(Se.pageX)-(oe.current?.x??0)),y:Math.abs(Math.round(Se.pageY)-(oe.current?.y??0))}},fe=Se=>{K.x<=10&&K.y<=10?Se.preventDefault():z.contains(Se.target)||B(!1),document.removeEventListener("pointermove",me),oe.current=null};return oe.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",fe,{capture:!0})}}},[z,B,oe]),p.useEffect(()=>{const K=()=>B(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[B]);const[ve,M]=cb(K=>{const me=le().filter(_e=>!_e.disabled),fe=me.find(_e=>_e.ref.current===document.activeElement),Se=sb(me,K,fe);Se&&setTimeout(()=>Se.ref.current.focus())}),O=p.useCallback((K,me,fe)=>{const Se=!se.current&&!fe;(A.value!==void 0&&A.value===me||Se)&&(te(K),Se&&(se.current=!0))},[A.value]),G=p.useCallback(()=>z?.focus(),[z]),P=p.useCallback((K,me,fe)=>{const Se=!se.current&&!fe;(A.value!==void 0&&A.value===me||Se)&&de(K)},[A.value]),W=i==="popper"?wf:$0,ee=W===wf?{side:m,sideOffset:v,align:h,alignOffset:b,arrowPadding:x,collisionBoundary:E,collisionPadding:C,sticky:N,hideWhenDetached:w,avoidCollisions:R}:{};return y.jsx(Z0,{scope:o,content:z,viewport:Q,onViewportChange:F,itemRefCallback:O,selectedItem:I,onItemLeave:G,itemTextRefCallback:P,focusSelectedItem:X,selectedItemText:pe,position:i,isPositioned:ue,searchRef:ve,children:y.jsx(uc,{as:bN,allowPinchZoom:!0,children:y.jsx(ic,{asChild:!0,trapped:A.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:Oe(u,K=>{A.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:y.jsx(oc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:y.jsx(W,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:K=>K.preventDefault(),...T,...ee,onPlaced:()=>ce(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:Oe(T.onKeyDown,K=>{const me=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!me&&K.key.length===1&&M(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let Se=le().filter(_e=>!_e.disabled).map(_e=>_e.ref.current);if(["ArrowUp","End"].includes(K.key)&&(Se=Se.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const _e=K.target,ke=Se.indexOf(_e);Se=Se.slice(ke+1)}setTimeout(()=>D(Se)),K.preventDefault()}})})})})})})});K0.displayName=yN;var xN="SelectItemAlignedPosition",$0=p.forwardRef((l,r)=>{const{__scopeSelect:o,onPlaced:i,...u}=l,f=yl(Pl,o),d=bl(Pl,o),[m,v]=p.useState(null),[h,b]=p.useState(null),x=Ye(r,Y=>b(Y)),E=Sc(o),C=p.useRef(!1),N=p.useRef(!0),{viewport:w,selectedItem:R,selectedItemText:T,focusSelectedItem:A}=d,z=p.useCallback(()=>{if(f.trigger&&f.valueNode&&m&&h&&w&&R&&T){const Y=f.trigger.getBoundingClientRect(),I=h.getBoundingClientRect(),te=f.valueNode.getBoundingClientRect(),pe=T.getBoundingClientRect();if(f.dir!=="rtl"){const _e=pe.left-I.left,ke=te.left-_e,ht=Y.left-ke,pt=Y.width+ht,xl=Math.max(pt,I.width),Sl=window.innerWidth-Ft,tr=lv(ke,[Ft,Math.max(Ft,Sl-xl)]);m.style.minWidth=pt+"px",m.style.left=tr+"px"}else{const _e=I.right-pe.right,ke=window.innerWidth-te.right-_e,ht=window.innerWidth-Y.right-ke,pt=Y.width+ht,xl=Math.max(pt,I.width),Sl=window.innerWidth-Ft,tr=lv(ke,[Ft,Math.max(Ft,Sl-xl)]);m.style.minWidth=pt+"px",m.style.right=tr+"px"}const de=E(),le=window.innerHeight-Ft*2,ue=w.scrollHeight,ce=window.getComputedStyle(h),se=parseInt(ce.borderTopWidth,10),D=parseInt(ce.paddingTop,10),X=parseInt(ce.borderBottomWidth,10),B=parseInt(ce.paddingBottom,10),oe=se+D+ue+B+X,ve=Math.min(R.offsetHeight*5,oe),M=window.getComputedStyle(w),O=parseInt(M.paddingTop,10),G=parseInt(M.paddingBottom,10),P=Y.top+Y.height/2-Ft,W=le-P,ee=R.offsetHeight/2,K=R.offsetTop+ee,me=se+D+K,fe=oe-me;if(me<=P){const _e=de.length>0&&R===de[de.length-1].ref.current;m.style.bottom="0px";const ke=h.clientHeight-w.offsetTop-w.offsetHeight,ht=Math.max(W,ee+(_e?G:0)+ke+X),pt=me+ht;m.style.height=pt+"px"}else{const _e=de.length>0&&R===de[0].ref.current;m.style.top="0px";const ht=Math.max(P,se+w.offsetTop+(_e?O:0)+ee)+fe;m.style.height=ht+"px",w.scrollTop=me-P+w.offsetTop}m.style.margin=`${Ft}px 0`,m.style.minHeight=ve+"px",m.style.maxHeight=le+"px",i?.(),requestAnimationFrame(()=>C.current=!0)}},[E,f.trigger,f.valueNode,m,h,w,R,T,f.dir,i]);dt(()=>z(),[z]);const[q,Q]=p.useState();dt(()=>{h&&Q(window.getComputedStyle(h).zIndex)},[h]);const F=p.useCallback(Y=>{Y&&N.current===!0&&(z(),A?.(),N.current=!1)},[z,A]);return y.jsx(wN,{scope:o,contentWrapper:m,shouldExpandOnScrollRef:C,onScrollButtonChange:F,children:y.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:y.jsx(be.div,{...u,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});$0.displayName=xN;var SN="SelectPopperPosition",wf=p.forwardRef((l,r)=>{const{__scopeSelect:o,align:i="start",collisionPadding:u=Ft,...f}=l,d=wc(o);return y.jsx(g0,{...d,...f,ref:r,align:i,collisionPadding:u,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});wf.displayName=SN;var[wN,rd]=er(Pl,{}),Ef="SelectViewport",P0=p.forwardRef((l,r)=>{const{__scopeSelect:o,nonce:i,...u}=l,f=bl(Ef,o),d=rd(Ef,o),m=Ye(r,f.onViewportChange),v=p.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),y.jsx(xc.Slot,{scope:o,children:y.jsx(be.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:Oe(u.onScroll,h=>{const b=h.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:E}=d;if(E?.current&&x){const C=Math.abs(v.current-b.scrollTop);if(C>0){const N=window.innerHeight-Ft*2,w=parseFloat(x.style.minHeight),R=parseFloat(x.style.height),T=Math.max(w,R);if(T<N){const A=T+C,z=Math.min(N,A),q=A-z;x.style.height=z+"px",x.style.bottom==="0px"&&(b.scrollTop=q>0?q:0,x.style.justifyContent="flex-end")}}}v.current=b.scrollTop})})})]})});P0.displayName=Ef;var J0="SelectGroup",[EN,CN]=er(J0),AN=p.forwardRef((l,r)=>{const{__scopeSelect:o,...i}=l,u=vt();return y.jsx(EN,{scope:o,id:u,children:y.jsx(be.div,{role:"group","aria-labelledby":u,...i,ref:r})})});AN.displayName=J0;var F0="SelectLabel",RN=p.forwardRef((l,r)=>{const{__scopeSelect:o,...i}=l,u=CN(F0,o);return y.jsx(be.div,{id:u.id,...i,ref:r})});RN.displayName=F0;var Ii="SelectItem",[NN,I0]=er(Ii),W0=p.forwardRef((l,r)=>{const{__scopeSelect:o,value:i,disabled:u=!1,textValue:f,...d}=l,m=yl(Ii,o),v=bl(Ii,o),h=m.value===i,[b,x]=p.useState(f??""),[E,C]=p.useState(!1),N=Ye(r,A=>v.itemRefCallback?.(A,i,u)),w=vt(),R=p.useRef("touch"),T=()=>{u||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(NN,{scope:o,value:i,disabled:u,textId:w,isSelected:h,onItemTextChange:p.useCallback(A=>{x(z=>z||(A?.textContent??"").trim())},[]),children:y.jsx(xc.ItemSlot,{scope:o,value:i,disabled:u,textValue:b,children:y.jsx(be.div,{role:"option","aria-labelledby":w,"data-highlighted":E?"":void 0,"aria-selected":h&&E,"data-state":h?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...d,ref:N,onFocus:Oe(d.onFocus,()=>C(!0)),onBlur:Oe(d.onBlur,()=>C(!1)),onClick:Oe(d.onClick,()=>{R.current!=="mouse"&&T()}),onPointerUp:Oe(d.onPointerUp,()=>{R.current==="mouse"&&T()}),onPointerDown:Oe(d.onPointerDown,A=>{R.current=A.pointerType}),onPointerMove:Oe(d.onPointerMove,A=>{R.current=A.pointerType,u?v.onItemLeave?.():R.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Oe(d.onPointerLeave,A=>{A.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:Oe(d.onKeyDown,A=>{v.searchRef?.current!==""&&A.key===" "||(fN.includes(A.key)&&T(),A.key===" "&&A.preventDefault())})})})})});W0.displayName=Ii;var Wr="SelectItemText",eb=p.forwardRef((l,r)=>{const{__scopeSelect:o,className:i,style:u,...f}=l,d=yl(Wr,o),m=bl(Wr,o),v=I0(Wr,o),h=pN(Wr,o),[b,x]=p.useState(null),E=Ye(r,T=>x(T),v.onItemTextChange,T=>m.itemTextRefCallback?.(T,v.value,v.disabled)),C=b?.textContent,N=p.useMemo(()=>y.jsx("option",{value:v.value,disabled:v.disabled,children:C},v.value),[v.disabled,v.value,C]),{onNativeOptionAdd:w,onNativeOptionRemove:R}=h;return dt(()=>(w(N),()=>R(N)),[w,R,N]),y.jsxs(y.Fragment,{children:[y.jsx(be.span,{id:v.textId,...f,ref:E}),v.isSelected&&d.valueNode&&!d.valueNodeHasChildren?co.createPortal(f.children,d.valueNode):null]})});eb.displayName=Wr;var tb="SelectItemIndicator",nb=p.forwardRef((l,r)=>{const{__scopeSelect:o,...i}=l;return I0(tb,o).isSelected?y.jsx(be.span,{"aria-hidden":!0,...i,ref:r}):null});nb.displayName=tb;var Cf="SelectScrollUpButton",lb=p.forwardRef((l,r)=>{const o=bl(Cf,l.__scopeSelect),i=rd(Cf,l.__scopeSelect),[u,f]=p.useState(!1),d=Ye(r,i.onScrollButtonChange);return dt(()=>{if(o.viewport&&o.isPositioned){let m=function(){const h=v.scrollTop>0;f(h)};const v=o.viewport;return m(),v.addEventListener("scroll",m),()=>v.removeEventListener("scroll",m)}},[o.viewport,o.isPositioned]),u?y.jsx(rb,{...l,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:v}=o;m&&v&&(m.scrollTop=m.scrollTop-v.offsetHeight)}}):null});lb.displayName=Cf;var Af="SelectScrollDownButton",ab=p.forwardRef((l,r)=>{const o=bl(Af,l.__scopeSelect),i=rd(Af,l.__scopeSelect),[u,f]=p.useState(!1),d=Ye(r,i.onScrollButtonChange);return dt(()=>{if(o.viewport&&o.isPositioned){let m=function(){const h=v.scrollHeight-v.clientHeight,b=Math.ceil(v.scrollTop)<h;f(b)};const v=o.viewport;return m(),v.addEventListener("scroll",m),()=>v.removeEventListener("scroll",m)}},[o.viewport,o.isPositioned]),u?y.jsx(rb,{...l,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:v}=o;m&&v&&(m.scrollTop=m.scrollTop+v.offsetHeight)}}):null});ab.displayName=Af;var rb=p.forwardRef((l,r)=>{const{__scopeSelect:o,onAutoScroll:i,...u}=l,f=bl("SelectScrollButton",o),d=p.useRef(null),m=Sc(o),v=p.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return p.useEffect(()=>()=>v(),[v]),dt(()=>{m().find(b=>b.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[m]),y.jsx(be.div,{"aria-hidden":!0,...u,ref:r,style:{flexShrink:0,...u.style},onPointerDown:Oe(u.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(i,50))}),onPointerMove:Oe(u.onPointerMove,()=>{f.onItemLeave?.(),d.current===null&&(d.current=window.setInterval(i,50))}),onPointerLeave:Oe(u.onPointerLeave,()=>{v()})})}),TN="SelectSeparator",_N=p.forwardRef((l,r)=>{const{__scopeSelect:o,...i}=l;return y.jsx(be.div,{"aria-hidden":!0,...i,ref:r})});_N.displayName=TN;var Rf="SelectArrow",ON=p.forwardRef((l,r)=>{const{__scopeSelect:o,...i}=l,u=wc(o),f=yl(Rf,o),d=bl(Rf,o);return f.open&&d.position==="popper"?y.jsx(v0,{...u,...i,ref:r}):null});ON.displayName=Rf;var MN="SelectBubbleInput",ob=p.forwardRef(({__scopeSelect:l,value:r,...o},i)=>{const u=p.useRef(null),f=Ye(i,u),d=_0(r);return p.useEffect(()=>{const m=u.current;if(!m)return;const v=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(v,"value").set;if(d!==r&&b){const x=new Event("change",{bubbles:!0});b.call(m,r),m.dispatchEvent(x)}},[d,r]),y.jsx(be.select,{...o,style:{...U0,...o.style},ref:f,defaultValue:r})});ob.displayName=MN;function ib(l){return l===""||l===void 0}function cb(l){const r=Xl(l),o=p.useRef(""),i=p.useRef(0),u=p.useCallback(d=>{const m=o.current+d;r(m),(function v(h){o.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>v(""),1e3))})(m)},[r]),f=p.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,u,f]}function sb(l,r,o){const u=r.length>1&&Array.from(r).every(h=>h===r[0])?r[0]:r,f=o?l.indexOf(o):-1;let d=jN(l,Math.max(f,0));u.length===1&&(d=d.filter(h=>h!==o));const v=d.find(h=>h.textValue.toLowerCase().startsWith(u.toLowerCase()));return v!==o?v:void 0}function jN(l,r){return l.map((o,i)=>l[(r+i)%l.length])}var zN=H0,DN=q0,kN=Y0,LN=G0,UN=X0,HN=Q0,BN=P0,qN=W0,VN=eb,YN=nb,GN=lb,XN=ab;function QN({...l}){return y.jsx(zN,{"data-slot":"select",...l})}function ZN({...l}){return y.jsx(kN,{"data-slot":"select-value",...l})}function KN({className:l,size:r="default",children:o,...i}){return y.jsxs(DN,{"data-slot":"select-trigger","data-size":r,className:De("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),...i,children:[o,y.jsx(LN,{asChild:!0,children:y.jsx(rc,{className:"size-4 opacity-50"})})]})}function $N({className:l,children:r,position:o="popper",align:i="center",...u}){return y.jsx(UN,{children:y.jsxs(HN,{"data-slot":"select-content",className:De("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",l),position:o,align:i,...u,children:[y.jsx(JN,{}),y.jsx(BN,{className:De("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),y.jsx(FN,{})]})})}function PN({className:l,children:r,...o}){return y.jsxs(qN,{"data-slot":"select-item",className:De("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",l),...o,children:[y.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:y.jsx(YN,{children:y.jsx(Gl,{className:"size-4"})})}),y.jsx(VN,{children:r})]})}function JN({className:l,...r}){return y.jsx(GN,{"data-slot":"select-scroll-up-button",className:De("flex cursor-default items-center justify-center py-1",l),...r,children:y.jsx(uE,{className:"size-4"})})}function FN({className:l,...r}){return y.jsx(XN,{"data-slot":"select-scroll-down-button",className:De("flex cursor-default items-center justify-center py-1",l),...r,children:y.jsx(rc,{className:"size-4"})})}function IN({settings:l,onUpdateSetting:r}){const[o,i]=p.useState(null),[u,f]=p.useState(""),[d,m]=p.useState(null),[v,h]=p.useState(!1),[b,x]=p.useState(""),E=R=>{if(f(R),o){const T=o.settings.find(A=>A.name===R);if(T&&T.data){const A=JSON.stringify(T.data,null,2);r("settings",A)}}},C=()=>{try{const R=l.settings.trim();R&&JSON.parse(R),m(null),x(l.settings),h(!0)}catch(R){m(R instanceof Error?R.message:"Invalid JSON")}},N=()=>{r("settings",b),h(!1)},w=()=>{x(""),h(!1)};return y.jsxs("div",{className:"w-80 border-l border-border/50 bg-sidebar p-6 overflow-y-auto",children:[y.jsx("h2",{className:"text-xl font-bold bg-gradient-to-r from-primary via-purple-500 to-violet-500 bg-clip-text text-transparent mb-6",children:"Run Settings"}),y.jsxs("div",{className:"space-y-6",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx(on,{htmlFor:"baseUrl",children:"Base URL"}),y.jsx(T0,{id:"baseUrl",type:"text",value:l.baseUrl,onChange:R=>r("baseUrl",R.target.value),placeholder:"http://localhost:8765",className:"font-mono text-sm"}),y.jsx("p",{className:"text-xs text-muted-foreground",children:"API server endpoint"})]}),y.jsx(WR,{baseUrl:l.baseUrl,selectedAgent:l.agent,onAgentChange:R=>r("agent",R),onAgentDataChange:i}),y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx(on,{htmlFor:"force-human-approval",children:"Force Human Approval"}),y.jsx(k0,{id:"force-human-approval",checked:l.forceHumanApproval,onCheckedChange:R=>r("forceHumanApproval",R)})]}),y.jsx("p",{className:"text-xs text-muted-foreground",children:"When enabled, you'll need to manually approve each tool call before execution"})]}),o&&o.settings.length>0&&y.jsxs("div",{className:"space-y-2",children:[y.jsx(on,{htmlFor:"scenario-select",children:"Select Scenario"}),y.jsxs(QN,{value:u,onValueChange:E,children:[y.jsx(KN,{id:"scenario-select",children:y.jsx(ZN,{placeholder:"Choose a scenario..."})}),y.jsx($N,{children:o.settings.map(R=>y.jsx(PN,{value:R.name,children:R.name},R.name))})]}),y.jsx("p",{className:"text-xs text-muted-foreground",children:"Select a scenario to auto-fill the JSON below"})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx(on,{htmlFor:"settings",children:"Agent Settings"}),y.jsxs(nt,{variant:"ghost",size:"sm",onClick:C,className:"h-8 px-3 text-xs",title:"Open form editor in modal",children:[y.jsx(xE,{className:"h-3.5 w-3.5 mr-1.5"}),"Open Form Editor"]})]}),d&&y.jsxs(Vf,{variant:"destructive",children:[y.jsx(Bf,{className:"h-4 w-4"}),y.jsxs(Yf,{children:["Invalid JSON: ",d]})]}),y.jsx(Ja,{id:"settings",value:l.settings,onChange:R=>{r("settings",R.target.value),m(null)},placeholder:"{}",rows:8,className:"font-mono text-sm max-h-96 overflow-y-auto"}),y.jsx("p",{className:"text-xs text-muted-foreground",children:"JSON object with agent-specific configuration"})]})]}),y.jsx(aA,{open:v,onOpenChange:h,children:y.jsxs(iA,{className:"max-w-2xl",children:[y.jsxs(cA,{children:[y.jsx(uA,{children:"Edit Settings"}),y.jsx(fA,{children:"Modify agent settings using form fields. Changes will be applied when you click Save."})]}),y.jsx("div",{className:"max-h-[60vh] overflow-y-auto pr-2",children:y.jsx(iN,{value:b,onChange:x})}),y.jsxs(sA,{children:[y.jsx(nt,{variant:"outline",onClick:w,children:"Cancel"}),y.jsx(nt,{onClick:N,children:"Save Changes"})]})]})})]})}function WN(){const[l,r]=p.useState(!1);p.useEffect(()=>{const f=localStorage.getItem("theme")==="dark";r(f),o(f)},[]);const o=u=>{u?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},i=()=>{const u=!l;r(u),localStorage.setItem("theme",u?"dark":"light"),o(u)};return y.jsx(nt,{onClick:i,variant:"ghost",size:"sm",className:"hover:bg-accent/50 transition-all duration-200 hover:scale-105","aria-label":"Toggle theme",children:l?y.jsx(CE,{className:"h-5 w-5 text-primary"}):y.jsx(vE,{className:"h-5 w-5 text-primary"})})}const of=l=>({baseUrl:l,abortController:new AbortController}),cf=async function*(l,r){const o=await fetch(`${l.baseUrl}/api/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r),signal:l.abortController.signal});if(!o.ok)throw new Error(`API request failed: ${o.statusText}`);if(!o.body)throw new Error("Response body is null");const i=o.body.getReader(),u=new TextDecoder;try{for(;;){const{done:f,value:d}=await i.read();if(f)break;const v=u.decode(d,{stream:!0}).split(`
`).filter(h=>h.trim());for(const h of v)try{yield JSON.parse(h)}catch{}}}finally{i.releaseLock()}};function od(l){if(l.length===0)return null;const r=l[l.length-1];return r.kind!=="response"?null:r}function ub(l,r){return[...l.slice(0,-1),r]}function av(l,r,o){const i=od(l);if(!i)return l;const u=[...i.parts],f=u.findIndex(d=>d.part_kind===r);return f>=0?u[f]=o(u[f]):u.push(o()),ub(l,{...i,parts:u})}function rv(l,r){const o=od(l);if(!o)return l;const i=[...o.parts,r];return ub(l,{...o,parts:i})}function eT(l,r){const o=od(l);return o?o.parts.some(r):!1}function tT(l,r,o){const i=[];if(l.forEach((x,E)=>{x.parts.forEach((C,N)=>{i.push({part:C,messageIndex:E,partIndex:N})})}),r<0||r>=i.length)return l;const f=i[r].part;let d;if(f.part_kind==="user-prompt")d={...f,content:o};else if(f.part_kind==="tool-return")d={...f,content:o};else return l;const m=i.slice(0,r+1);m[r]={...m[r],part:d};const v=[];let h=-1,b=[];return m.forEach((x,E)=>{x.messageIndex!==h?(h>=0&&b.length>0&&v.push({...l[h],parts:b}),h=x.messageIndex,b=[x.part]):b.push(x.part),E===m.length-1&&v.push({...l[h],parts:b})}),v}function nT(){const l=p.useRef(new Map),r=p.useCallback(async({stream:i,abortControllerRef:u,setMessages:f,onToolApprovalRequest:d,onAwaitingApprovals:m,onError:v})=>{let h="",b="";const x=l.current,E=A=>{h+=A,f(z=>av(z,"text",()=>({part_kind:"text",content:h})))},C=A=>{b+=A,f(z=>av(z,"thinking",()=>({part_kind:"thinking",content:b})))},N=(A,z,q)=>{x.set(A,{tool_call_id:A,tool_name:z,args:q,isExecuting:!0}),f(Q=>eT(Q,F=>F.part_kind==="tool-call"&&F.tool_call_id===A)?Q:rv(Q,{part_kind:"tool-call",tool_name:z,tool_call_id:A,args:q}))},w=(A,z)=>{const q=x.get(A);q&&x.set(A,{...q,result:z,isExecuting:!1}),f(Q=>rv(Q,{part_kind:"tool-return",tool_name:q?.tool_name||"",content:z,tool_call_id:A,timestamp:new Date().toISOString()}))},R=(A,z,q)=>{x.set(A,{tool_call_id:A,tool_name:z,args:q,isExecuting:!1}),d?.(A,z,q)},T=A=>{try{const z=A.map(q=>q);f(z)}catch(z){console.error("Failed to parse message history:",z)}};for await(const A of i){if(u.current?.signal.aborted)throw new Error("Request cancelled");switch(A.type){case"text_delta":E(A.delta);break;case"thinking_delta":C(A.delta);break;case"tool_call_executing":N(A.tool_call_id,A.tool_name,A.arguments);break;case"tool_result":w(A.tool_call_id,A.result);break;case"tool_approval_request":R(A.tool_call_id,A.tool_name,A.arguments);break;case"message_history":T(A.message_history);break;case"error":console.error("Stream error:",A.error),v?.(A.error);break;case"done":if(A.status==="pending_approval")return m?.(),{completed:!1,pendingApproval:!0};break}}return{completed:!0,pendingApproval:!1}},[]),o=p.useCallback(()=>{l.current.clear()},[]);return{processStream:r,toolCallsMap:l.current,clearToolCallsMap:o}}function lT(){const[l,r]=p.useState([]),[o,i]=p.useState({calls:{},approvals:{}}),u=p.useCallback((b,x,E)=>{r(C=>[...C,{tool_call_id:b,tool_name:x,arguments:E,status:"pending"}])},[]),f=p.useCallback(b=>{r(x=>x.map(E=>E.tool_call_id===b?{...E,status:"approved"}:E)),i(x=>({...x,approvals:{...x.approvals,[b]:!0}}))},[]),d=p.useCallback(b=>{r(x=>x.map(E=>E.tool_call_id===b?{...E,status:"rejected"}:E)),i(x=>({...x,approvals:{...x.approvals,[b]:!1}}))},[]),m=p.useCallback((b,x)=>{r(E=>E.map(C=>C.tool_call_id===b?{...C,status:"mocked",mockValue:x}:C)),i(E=>({calls:{...E.calls,[b]:x},approvals:{...E.approvals,[b]:!0}}))},[]),v=p.useCallback(()=>{r([]),i({calls:{},approvals:{}})},[]),h=l.length>0&&l.every(b=>b.status!=="pending");return{pendingTools:l,decisions:o,addPendingTool:u,handleApprove:f,handleReject:d,handleMock:m,clearPendingTools:v,allHandled:h}}function aT(){const[l,r]=p.useState([]),[o,i]=p.useState(!1),[u,f]=p.useState(null),[d,m]=p.useState(!1),v=p.useRef(null),h=p.useRef(null),{processStream:b,toolCallsMap:x,clearToolCallsMap:E}=nT(),{pendingTools:C,decisions:N,addPendingTool:w,handleApprove:R,handleReject:T,handleMock:A,clearPendingTools:z,allHandled:q}=lT(),Q=p.useCallback(async(de,le,ue)=>{if(!de.trim()||!le.agent){f("Please enter a message and select an agent");return}f(null),i(!0);let ce=l;if(!ue){const se={kind:"request",parts:[{part_kind:"user-prompt",content:de,timestamp:new Date().toISOString()}]};r(X=>[...X,se]),ce=l.concat(se);const D={kind:"response",parts:[]};r(X=>[...X,D])}try{const se=of(le.baseUrl);h.current=se;let D={};try{D=JSON.parse(le.settings||"{}")}catch{}const X=cf(se,{agent:le.agent,messages:ce,settings:D,stream:!0,use_tools:le.forceHumanApproval?"request_approval":"auto",deferred_tool_results:ue});if((await b({stream:X,abortControllerRef:v,setMessages:r,onToolApprovalRequest:w,onAwaitingApprovals:()=>m(!0),onError:f})).pendingApproval)return}catch(se){const D=se instanceof Error?se.message:"An error occurred";f(D),ue||r(X=>X.slice(0,-1))}finally{i(!1),h.current=null,v.current=null}},[l,b,w]),F=p.useCallback(async de=>{if(!q){f("Please handle all pending tool approvals");return}f(null),i(!0),m(!1);try{const le=of(de.baseUrl);h.current=le;let ue={};try{ue=JSON.parse(de.settings||"{}")}catch{}const ce=cf(le,{agent:de.agent,messages:l,settings:ue,stream:!0,use_tools:de.forceHumanApproval?"request_approval":"auto",deferred_tool_results:N});if(z(),(await b({stream:ce,abortControllerRef:v,setMessages:r,onToolApprovalRequest:w,onAwaitingApprovals:()=>m(!0),onError:f})).pendingApproval)return}catch(le){const ue=le instanceof Error?le.message:"An error occurred";f(ue)}finally{i(!1),h.current=null,v.current=null}},[l,N,q,z,b,w]),Y=p.useCallback(()=>{r([]),f(null),m(!1),z(),E()},[z,E]),I=p.useCallback(()=>{v.current&&v.current.abort(),h.current&&h.current.abortController.abort()},[]),te=p.useCallback(async(de,le,ue)=>{if(!ue.agent){f("Please select an agent");return}f(null),i(!0);const ce=tT(l,de,le);r(ce);const se={kind:"response",parts:[]};r(D=>[...D,se]);try{const D=of(ue.baseUrl);h.current=D;let X={};try{X=JSON.parse(ue.settings||"{}")}catch{}const B=cf(D,{agent:ue.agent,messages:ce,settings:X,stream:!0,use_tools:ue.forceHumanApproval?"request_approval":"auto"});if((await b({stream:B,abortControllerRef:v,setMessages:r,onToolApprovalRequest:w,onAwaitingApprovals:()=>m(!0),onError:f})).pendingApproval)return}catch(D){const X=D instanceof Error?D.message:"An error occurred";f(X),r(B=>B.slice(0,-1))}finally{i(!1),h.current=null,v.current=null}},[l,b,w]),pe=p.useCallback(async(de,le,ue)=>{f("Tool response functionality not yet implemented for new message format")},[]);return{messages:l,isLoading:o,error:u,awaitingApprovals:d,pendingTools:C,allHandled:q,toolCallsMap:x,sendMessage:Q,clearMessages:Y,cancelRequest:I,continueWithApprovals:F,handleApprove:R,handleReject:T,handleMock:A,editPart:te,submitToolResponses:pe}}const rT={baseUrl:window.location.origin,agent:"",settings:"{}",forceHumanApproval:!1};function oT(){const[l,r]=p.useState(rT),o=p.useCallback((u,f)=>{r(d=>({...d,[u]:f}))},[]),i=p.useCallback(u=>{r(f=>({...f,...u}))},[]);return{settings:l,updateSetting:o,updateSettings:i}}function iT(){const{settings:l,updateSetting:r}=oT(),{messages:o,isLoading:i,error:u,awaitingApprovals:f,pendingTools:d,allHandled:m,toolCallsMap:v,sendMessage:h,clearMessages:b,cancelRequest:x,continueWithApprovals:E,handleApprove:C,handleReject:N,handleMock:w,editPart:R}=aT(),T=q=>{h(q,l)},A=()=>{E(l)},z=(q,Q)=>{R(q,Q,l)};return y.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[y.jsx("header",{className:"sticky top-0 z-10 bg-card border-b border-border/50 px-8 py-5 shadow-sm",children:y.jsxs("div",{className:"flex items-center justify-between max-w-[1800px] mx-auto",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-2xl font-bold bg-gradient-to-r from-primary via-purple-500 to-violet-500 bg-clip-text text-transparent",children:"Agent Playbook"}),y.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"Interactive testing for pydantic-ai agents"})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(WN,{}),y.jsx(nt,{onClick:b,variant:"outline",size:"sm",className:"hover:bg-accent/50 transition-all duration-200 hover:scale-105",children:"New Chat"})]})]})}),y.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[y.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[y.jsx(gC,{messages:o,error:u,isLoading:i,awaitingApprovals:f,pendingTools:d,allHandled:m,toolCallsMap:v,onContinueWithApprovals:A,onApprove:C,onReject:N,onMock:w,onEdit:z}),y.jsx(vC,{onSend:T,isLoading:i,onCancel:x})]}),y.jsx(IN,{settings:l,onUpdateSetting:r})]})]})}function cT(){return y.jsx("div",{className:"min-h-screen bg-gradient-to-br from-purple-50 to-pink-100 flex items-center justify-center p-4",children:y.jsxs("div",{className:"max-w-2xl w-full bg-white rounded-2xl shadow-xl p-8",children:[y.jsx("h1",{className:"text-4xl font-bold text-gray-800 mb-4",children:"About"}),y.jsx("p",{className:"text-lg text-gray-600 mb-4",children:"This project is built with the following technologies:"}),y.jsxs("ul",{className:"list-disc list-inside text-gray-700 space-y-2 mb-6",children:[y.jsx("li",{children:"React 19 - UI library"}),y.jsx("li",{children:"TypeScript - Type safety"}),y.jsx("li",{children:"Vite - Build tool"}),y.jsx("li",{children:"Tailwind CSS v4 - Styling"}),y.jsx("li",{children:"React Router - Navigation"}),y.jsx("li",{children:"ESLint & Prettier - Code quality"})]}),y.jsx(tc,{to:"/",className:"inline-block px-6 py-3 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors",children:"Back Home"})]})})}function sT(){return y.jsx("div",{className:"min-h-screen bg-gradient-to-br from-red-50 to-orange-100 flex items-center justify-center p-4",children:y.jsxs("div",{className:"max-w-2xl w-full bg-white rounded-2xl shadow-xl p-8 text-center",children:[y.jsx("h1",{className:"text-6xl font-bold text-gray-800 mb-4",children:"404"}),y.jsx("p",{className:"text-2xl text-gray-600 mb-6",children:"Page Not Found"}),y.jsx("p",{className:"text-gray-500 mb-8",children:"The page you are looking for does not exist."}),y.jsx(tc,{to:"/",className:"inline-block px-6 py-3 bg-orange-600 text-white rounded-lg hover:bg-orange-700 transition-colors",children:"Go Home"})]})})}function uT(){return y.jsx(nw,{children:y.jsxs(zS,{children:[y.jsx(Bi,{path:"/",element:y.jsx(iT,{})}),y.jsx(Bi,{path:"/about",element:y.jsx(cT,{})}),y.jsx(Bi,{path:"*",element:y.jsx(sT,{})})]})})}Y1.createRoot(document.getElementById("root")).render(y.jsx(p.StrictMode,{children:y.jsx(uT,{})}));
