function _1(n,r){for(var s=0;s<r.length;s++){const i=r[s];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(i,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(n,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 s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function i(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();function J0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tc={exports:{}},Bl={};/**
 * @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 Fp;function z1(){if(Fp)return Bl;Fp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(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 h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:n,type:i,key:d,ref:u!==void 0?u:null,props:f}}return Bl.Fragment=r,Bl.jsx=s,Bl.jsxs=s,Bl}var Kp;function U1(){return Kp||(Kp=1,Tc.exports=z1()),Tc.exports}var p=U1(),Nc={exports:{}},ce={};/**
 * @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 Zp;function k1(){if(Zp)return ce;Zp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=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"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.iterator;function S(O){return O===null||typeof O!="object"?null:(O=E&&O[E]||O["@@iterator"],typeof O=="function"?O:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,R={};function T(O,Y,$){this.props=O,this.context=Y,this.refs=R,this.updater=$||A}T.prototype.isReactComponent={},T.prototype.setState=function(O,Y){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Y,"setState")},T.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function N(){}N.prototype=T.prototype;function _(O,Y,$){this.props=O,this.context=Y,this.refs=R,this.updater=$||A}var H=_.prototype=new N;H.constructor=_,w(H,T.prototype),H.isPureReactComponent=!0;var V=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},ee=Object.prototype.hasOwnProperty;function X(O,Y,$,K,ne,xe){return $=xe.ref,{$$typeof:n,type:O,key:Y,ref:$!==void 0?$:null,props:xe}}function Z(O,Y){return X(O.type,Y,void 0,void 0,void 0,O.props)}function I(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function se(O){var Y={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function($){return Y[$]})}var be=/\/+/g;function ie(O,Y){return typeof O=="object"&&O!==null&&O.key!=null?se(""+O.key):Y.toString(36)}function Mt(){}function yt(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(Mt,Mt):(O.status="pending",O.then(function(Y){O.status==="pending"&&(O.status="fulfilled",O.value=Y)},function(Y){O.status==="pending"&&(O.status="rejected",O.reason=Y)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function qe(O,Y,$,K,ne){var xe=typeof O;(xe==="undefined"||xe==="boolean")&&(O=null);var oe=!1;if(O===null)oe=!0;else switch(xe){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(O.$$typeof){case n:case r:oe=!0;break;case b:return oe=O._init,qe(oe(O._payload),Y,$,K,ne)}}if(oe)return ne=ne(O),oe=K===""?"."+ie(O,0):K,V(ne)?($="",oe!=null&&($=oe.replace(be,"$&/")+"/"),qe(ne,Y,$,"",function(Dn){return Dn})):ne!=null&&(I(ne)&&(ne=Z(ne,$+(ne.key==null||O&&O.key===ne.key?"":(""+ne.key).replace(be,"$&/")+"/")+oe)),Y.push(ne)),1;oe=0;var bt=K===""?".":K+":";if(V(O))for(var _e=0;_e<O.length;_e++)K=O[_e],xe=bt+ie(K,_e),oe+=qe(K,Y,$,xe,ne);else if(_e=S(O),typeof _e=="function")for(O=_e.call(O),_e=0;!(K=O.next()).done;)K=K.value,xe=bt+ie(K,_e++),oe+=qe(K,Y,$,xe,ne);else if(xe==="object"){if(typeof O.then=="function")return qe(yt(O),Y,$,K,ne);throw Y=String(O),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return oe}function B(O,Y,$){if(O==null)return O;var K=[],ne=0;return qe(O,K,"","",function(xe){return Y.call($,xe,ne++)}),K}function F(O){if(O._status===-1){var Y=O._result;Y=Y(),Y.then(function($){(O._status===0||O._status===-1)&&(O._status=1,O._result=$)},function($){(O._status===0||O._status===-1)&&(O._status=2,O._result=$)}),O._status===-1&&(O._status=0,O._result=Y)}if(O._status===1)return O._result.default;throw O._result}var te=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function ye(){}return ce.Children={map:B,forEach:function(O,Y,$){B(O,function(){Y.apply(this,arguments)},$)},count:function(O){var Y=0;return B(O,function(){Y++}),Y},toArray:function(O){return B(O,function(Y){return Y})||[]},only:function(O){if(!I(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},ce.Component=T,ce.Fragment=s,ce.Profiler=u,ce.PureComponent=_,ce.StrictMode=i,ce.Suspense=v,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ce.__COMPILER_RUNTIME={__proto__:null,c:function(O){return P.H.useMemoCache(O)}},ce.cache=function(O){return function(){return O.apply(null,arguments)}},ce.cloneElement=function(O,Y,$){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var K=w({},O.props),ne=O.key,xe=void 0;if(Y!=null)for(oe in Y.ref!==void 0&&(xe=void 0),Y.key!==void 0&&(ne=""+Y.key),Y)!ee.call(Y,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&Y.ref===void 0||(K[oe]=Y[oe]);var oe=arguments.length-2;if(oe===1)K.children=$;else if(1<oe){for(var bt=Array(oe),_e=0;_e<oe;_e++)bt[_e]=arguments[_e+2];K.children=bt}return X(O.type,ne,void 0,void 0,xe,K)},ce.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},ce.createElement=function(O,Y,$){var K,ne={},xe=null;if(Y!=null)for(K in Y.key!==void 0&&(xe=""+Y.key),Y)ee.call(Y,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(ne[K]=Y[K]);var oe=arguments.length-2;if(oe===1)ne.children=$;else if(1<oe){for(var bt=Array(oe),_e=0;_e<oe;_e++)bt[_e]=arguments[_e+2];ne.children=bt}if(O&&O.defaultProps)for(K in oe=O.defaultProps,oe)ne[K]===void 0&&(ne[K]=oe[K]);return X(O,xe,void 0,void 0,null,ne)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(O){return{$$typeof:h,render:O}},ce.isValidElement=I,ce.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:F}},ce.memo=function(O,Y){return{$$typeof:m,type:O,compare:Y===void 0?null:Y}},ce.startTransition=function(O){var Y=P.T,$={};P.T=$;try{var K=O(),ne=P.S;ne!==null&&ne($,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(ye,te)}catch(xe){te(xe)}finally{P.T=Y}},ce.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ce.use=function(O){return P.H.use(O)},ce.useActionState=function(O,Y,$){return P.H.useActionState(O,Y,$)},ce.useCallback=function(O,Y){return P.H.useCallback(O,Y)},ce.useContext=function(O){return P.H.useContext(O)},ce.useDebugValue=function(){},ce.useDeferredValue=function(O,Y){return P.H.useDeferredValue(O,Y)},ce.useEffect=function(O,Y,$){var K=P.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return K.useEffect(O,Y)},ce.useId=function(){return P.H.useId()},ce.useImperativeHandle=function(O,Y,$){return P.H.useImperativeHandle(O,Y,$)},ce.useInsertionEffect=function(O,Y){return P.H.useInsertionEffect(O,Y)},ce.useLayoutEffect=function(O,Y){return P.H.useLayoutEffect(O,Y)},ce.useMemo=function(O,Y){return P.H.useMemo(O,Y)},ce.useOptimistic=function(O,Y){return P.H.useOptimistic(O,Y)},ce.useReducer=function(O,Y,$){return P.H.useReducer(O,Y,$)},ce.useRef=function(O){return P.H.useRef(O)},ce.useState=function(O){return P.H.useState(O)},ce.useSyncExternalStore=function(O,Y,$){return P.H.useSyncExternalStore(O,Y,$)},ce.useTransition=function(){return P.H.useTransition()},ce.version="19.1.0",ce}var $p;function pf(){return $p||($p=1,Nc.exports=k1()),Nc.exports}var y=pf();const ra=J0(y),L1=_1({__proto__:null,default:ra},[y]);var Ac={exports:{}},Hl={},Oc={exports:{}},jc={};/**
 * @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 Jp;function B1(){return Jp||(Jp=1,function(n){function r(B,F){var te=B.length;B.push(F);e:for(;0<te;){var ye=te-1>>>1,O=B[ye];if(0<u(O,F))B[ye]=F,B[te]=O,te=ye;else break e}}function s(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var F=B[0],te=B.pop();if(te!==F){B[0]=te;e:for(var ye=0,O=B.length,Y=O>>>1;ye<Y;){var $=2*(ye+1)-1,K=B[$],ne=$+1,xe=B[ne];if(0>u(K,te))ne<O&&0>u(xe,K)?(B[ye]=xe,B[ne]=te,ye=ne):(B[ye]=K,B[$]=te,ye=$);else if(ne<O&&0>u(xe,te))B[ye]=xe,B[ne]=te,ye=ne;else break e}}return F}function u(B,F){var te=B.sortIndex-F.sortIndex;return te!==0?te:B.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var v=[],m=[],b=1,E=null,S=3,A=!1,w=!1,R=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function V(B){for(var F=s(m);F!==null;){if(F.callback===null)i(m);else if(F.startTime<=B)i(m),F.sortIndex=F.expirationTime,r(v,F);else break;F=s(m)}}function P(B){if(R=!1,V(B),!w)if(s(v)!==null)w=!0,ee||(ee=!0,ie());else{var F=s(m);F!==null&&qe(P,F.startTime-B)}}var ee=!1,X=-1,Z=5,I=-1;function se(){return T?!0:!(n.unstable_now()-I<Z)}function be(){if(T=!1,ee){var B=n.unstable_now();I=B;var F=!0;try{e:{w=!1,R&&(R=!1,_(X),X=-1),A=!0;var te=S;try{t:{for(V(B),E=s(v);E!==null&&!(E.expirationTime>B&&se());){var ye=E.callback;if(typeof ye=="function"){E.callback=null,S=E.priorityLevel;var O=ye(E.expirationTime<=B);if(B=n.unstable_now(),typeof O=="function"){E.callback=O,V(B),F=!0;break t}E===s(v)&&i(v),V(B)}else i(v);E=s(v)}if(E!==null)F=!0;else{var Y=s(m);Y!==null&&qe(P,Y.startTime-B),F=!1}}break e}finally{E=null,S=te,A=!1}F=void 0}}finally{F?ie():ee=!1}}}var ie;if(typeof H=="function")ie=function(){H(be)};else if(typeof MessageChannel<"u"){var Mt=new MessageChannel,yt=Mt.port2;Mt.port1.onmessage=be,ie=function(){yt.postMessage(null)}}else ie=function(){N(be,0)};function qe(B,F){X=N(function(){B(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(B){switch(S){case 1:case 2:case 3:var F=3;break;default:F=S}var te=S;S=F;try{return B()}finally{S=te}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(B,F){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var te=S;S=B;try{return F()}finally{S=te}},n.unstable_scheduleCallback=function(B,F,te){var ye=n.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ye+te:ye):te=ye,B){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=te+O,B={id:b++,callback:F,priorityLevel:B,startTime:te,expirationTime:O,sortIndex:-1},te>ye?(B.sortIndex=te,r(m,B),s(v)===null&&B===s(m)&&(R?(_(X),X=-1):R=!0,qe(P,te-ye))):(B.sortIndex=O,r(v,B),w||A||(w=!0,ee||(ee=!0,ie()))),B},n.unstable_shouldYield=se,n.unstable_wrapCallback=function(B){var F=S;return function(){var te=S;S=F;try{return B.apply(this,arguments)}finally{S=te}}}}(jc)),jc}var Ip;function H1(){return Ip||(Ip=1,Oc.exports=B1()),Oc.exports}var Dc={exports:{}},st={};/**
 * @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 Wp;function q1(){if(Wp)return st;Wp=1;var n=pf();function r(v){var m="https://react.dev/errors/"+v;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var i={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(v,m,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:v,containerInfo:m,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,m){if(v==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,st.createPortal=function(v,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(r(299));return f(v,m,null,b)},st.flushSync=function(v){var m=d.T,b=i.p;try{if(d.T=null,i.p=2,v)return v()}finally{d.T=m,i.p=b,i.d.f()}},st.preconnect=function(v,m){typeof v=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(v,m))},st.prefetchDNS=function(v){typeof v=="string"&&i.d.D(v)},st.preinit=function(v,m){if(typeof v=="string"&&m&&typeof m.as=="string"){var b=m.as,E=h(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,A=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?i.d.S(v,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:E,integrity:S,fetchPriority:A}):b==="script"&&i.d.X(v,{crossOrigin:E,integrity:S,fetchPriority:A,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},st.preinitModule=function(v,m){if(typeof v=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=h(m.as,m.crossOrigin);i.d.M(v,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(v)},st.preload=function(v,m){if(typeof v=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,E=h(b,m.crossOrigin);i.d.L(v,b,{crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},st.preloadModule=function(v,m){if(typeof v=="string")if(m){var b=h(m.as,m.crossOrigin);i.d.m(v,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(v)},st.requestFormReset=function(v){i.d.r(v)},st.unstable_batchedUpdates=function(v,m){return v(m)},st.useFormState=function(v,m,b){return d.H.useFormState(v,m,b)},st.useFormStatus=function(){return d.H.useHostTransitionStatus()},st.version="19.1.0",st}var e0;function I0(){if(e0)return Dc.exports;e0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Dc.exports=q1(),Dc.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 t0;function G1(){if(t0)return Hl;t0=1;var n=H1(),r=pf(),s=I0();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a: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 h(e){if(f(e)!==e)throw Error(i(188))}function v(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return h(o),e;if(c===l)return h(o),t;c=c.sibling}throw Error(i(188))}if(a.return!==l.return)a=o,l=c;else{for(var g=!1,x=o.child;x;){if(x===a){g=!0,a=o,l=c;break}if(x===l){g=!0,l=o,a=c;break}x=x.sibling}if(!g){for(x=c.child;x;){if(x===a){g=!0,a=c,l=o;break}if(x===l){g=!0,l=c,a=o;break}x=x.sibling}if(!g)throw Error(i(189))}}if(a.alternate!==l)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),_=Symbol.for("react.consumer"),H=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),be=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=be&&e[be]||e["@@iterator"],typeof e=="function"?e:null)}var Mt=Symbol.for("react.client.reference");function yt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Mt?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 P:return"Suspense";case ee:return"SuspenseList";case I:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case H:return(e.displayName||"Context")+".Provider";case _:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:yt(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return yt(e(t))}catch{}}return null}var qe=Array.isArray,B=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ye=[],O=-1;function Y(e){return{current:e}}function $(e){0>O||(e.current=ye[O],ye[O]=null,O--)}function K(e,t){O++,ye[O]=e.current,e.current=t}var ne=Y(null),xe=Y(null),oe=Y(null),bt=Y(null);function _e(e,t){switch(K(oe,t),K(xe,e),K(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sp(t),e=Ep(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ne),K(ne,e)}function Dn(){$(ne),$(xe),$(oe)}function co(e){e.memoizedState!==null&&K(bt,e);var t=ne.current,a=Ep(t,e.type);t!==a&&(K(xe,e),K(ne,a))}function ns(e){xe.current===e&&($(ne),$(xe)),bt.current===e&&($(bt),_l._currentValue=te)}var fo=Object.prototype.hasOwnProperty,ho=n.unstable_scheduleCallback,mo=n.unstable_cancelCallback,fb=n.unstable_shouldYield,db=n.unstable_requestPaint,Jt=n.unstable_now,hb=n.unstable_getCurrentPriorityLevel,td=n.unstable_ImmediatePriority,nd=n.unstable_UserBlockingPriority,as=n.unstable_NormalPriority,mb=n.unstable_LowPriority,ad=n.unstable_IdlePriority,pb=n.log,vb=n.unstable_setDisableYieldValue,Gr=null,xt=null;function Mn(e){if(typeof pb=="function"&&vb(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Gr,e)}catch{}}var St=Math.clz32?Math.clz32:bb,gb=Math.log,yb=Math.LN2;function bb(e){return e>>>=0,e===0?32:31-(gb(e)/yb|0)|0}var rs=256,ls=4194304;function fa(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 ss(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?o=fa(l):(g&=x,g!==0?o=fa(g):a||(a=x&~e,a!==0&&(o=fa(a))))):(x=l&~c,x!==0?o=fa(x):g!==0?o=fa(g):a||(a=l&~e,a!==0&&(o=fa(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function Pr(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 rd(){var e=rs;return rs<<=1,(rs&4194048)===0&&(rs=256),e}function ld(){var e=ls;return ls<<=1,(ls&62914560)===0&&(ls=4194304),e}function po(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Sb(e,t,a,l,o,c){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var x=e.entanglements,C=e.expirationTimes,z=e.hiddenUpdates;for(a=g&~a;0<a;){var q=31-St(a),Q=1<<q;x[q]=0,C[q]=-1;var U=z[q];if(U!==null)for(z[q]=null,q=0;q<U.length;q++){var k=U[q];k!==null&&(k.lane&=-536870913)}a&=~Q}l!==0&&sd(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function sd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-St(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function id(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-St(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function vo(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 go(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function od(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Gp(e.type))}function Eb(e,t){var a=F.p;try{return F.p=e,t()}finally{F.p=a}}var _n=Math.random().toString(36).slice(2),rt="__reactFiber$"+_n,ft="__reactProps$"+_n,qa="__reactContainer$"+_n,yo="__reactEvents$"+_n,wb="__reactListeners$"+_n,Rb="__reactHandles$"+_n,ud="__reactResources$"+_n,Qr="__reactMarker$"+_n;function bo(e){delete e[rt],delete e[ft],delete e[yo],delete e[wb],delete e[Rb]}function Ga(e){var t=e[rt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[qa]||a[rt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Tp(e);e!==null;){if(a=e[rt])return a;e=Tp(e)}return t}e=a,a=e.parentNode}return null}function Pa(e){if(e=e[rt]||e[qa]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Vr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ya(e){var t=e[ud];return t||(t=e[ud]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[Qr]=!0}var cd=new Set,fd={};function da(e,t){Qa(e,t),Qa(e+"Capture",t)}function Qa(e,t){for(fd[e]=t,e=0;e<t.length;e++)cd.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]*$"),dd={},hd={};function Tb(e){return fo.call(hd,e)?!0:fo.call(dd,e)?!1:Cb.test(e)?hd[e]=!0:(dd[e]=!0,!1)}function is(e,t,a){if(Tb(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function os(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function fn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}var xo,md;function Va(e){if(xo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);xo=t&&t[1]||"",md=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+xo+e+md}var So=!1;function Eo(e,t){if(!e||So)return"";So=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(k){var U=k}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(k){U=k}e.call(Q.prototype)}}else{try{throw Error()}catch(k){U=k}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(k){if(k&&U&&typeof k.stack=="string")return[k.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),g=c[0],x=c[1];if(g&&x){var C=g.split(`
`),z=x.split(`
`);for(o=l=0;l<C.length&&!C[l].includes("DetermineComponentFrameRoot");)l++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(l===C.length||o===z.length)for(l=C.length-1,o=z.length-1;1<=l&&0<=o&&C[l]!==z[o];)o--;for(;1<=l&&0<=o;l--,o--)if(C[l]!==z[o]){if(l!==1||o!==1)do if(l--,o--,0>o||C[l]!==z[o]){var q=`
`+C[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=o);break}}}finally{So=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Va(a):""}function Nb(e){switch(e.tag){case 26:case 27:case 5:return Va(e.type);case 16:return Va("Lazy");case 13:return Va("Suspense");case 19:return Va("SuspenseList");case 0:case 15:return Eo(e.type,!1);case 11:return Eo(e.type.render,!1);case 1:return Eo(e.type,!0);case 31:return Va("Activity");default:return""}}function pd(e){try{var t="";do t+=Nb(e),e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ab(e){var t=vd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(g){l=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function us(e){e._valueTracker||(e._valueTracker=Ab(e))}function gd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=vd(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function cs(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 Ob=/[\n"\\]/g;function zt(e){return e.replace(Ob,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function wo(e,t,a,l,o,c,g,x){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=""+_t(t)):e.value!==""+_t(t)&&(e.value=""+_t(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Ro(e,g,_t(t)):a!=null?Ro(e,g,_t(a)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+_t(x):e.removeAttribute("name")}function yd(e,t,a,l,o,c,g,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;a=a!=null?""+_t(a):"",t=t!=null?""+_t(t):a,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Ro(e,t,a){t==="number"&&cs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Xa(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+_t(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function bd(e,t,a){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+_t(a):""}function xd(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(i(92));if(qe(l)){if(1<l.length)throw Error(i(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=_t(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Fa(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var jb=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 Sd(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||jb.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Ed(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&a[o]!==l&&Sd(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&Sd(e,c,t[c])}function Co(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 Db=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"]]),Mb=/^[\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 fs(e){return Mb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var To=null;function No(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ka=null,Za=null;function wd(e){var t=Pa(e);if(t&&(e=t.stateNode)){var a=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(wo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[ft]||null;if(!o)throw Error(i(90));wo(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&gd(l)}break e;case"textarea":bd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Xa(e,!!a.multiple,t,!1)}}}var Ao=!1;function Rd(e,t,a){if(Ao)return e(t,a);Ao=!0;try{var l=e(t);return l}finally{if(Ao=!1,(Ka!==null||Za!==null)&&($s(),Ka&&(t=Ka,e=Za,Za=Ka=null,wd(t),e)))for(t=0;t<e.length;t++)wd(e[t])}}function Xr(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ft]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oo=!1;if(dn)try{var Fr={};Object.defineProperty(Fr,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{Oo=!1}var zn=null,jo=null,ds=null;function Cd(){if(ds)return ds;var e,t=jo,a=t.length,l,o="value"in zn?zn.value:zn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var g=a-e;for(l=1;l<=g&&t[a-l]===o[c-l];l++);return ds=o.slice(e,1<l?1-l:void 0)}function hs(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 ms(){return!0}function Td(){return!1}function dt(e){function t(a,l,o,c,g){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(a=e[x],this[x]=a?a(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ms:Td,this.isPropagationStopped=Td,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}var ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ps=dt(ha),Kr=b({},ha,{view:0,detail:0}),_b=dt(Kr),Do,Mo,Zr,vs=b({},Kr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zo,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!==Zr&&(Zr&&e.type==="mousemove"?(Do=e.screenX-Zr.screenX,Mo=e.screenY-Zr.screenY):Mo=Do=0,Zr=e),Do)},movementY:function(e){return"movementY"in e?e.movementY:Mo}}),Nd=dt(vs),zb=b({},vs,{dataTransfer:0}),Ub=dt(zb),kb=b({},Kr,{relatedTarget:0}),_o=dt(kb),Lb=b({},ha,{animationName:0,elapsedTime:0,pseudoElement:0}),Bb=dt(Lb),Hb=b({},ha,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qb=dt(Hb),Gb=b({},ha,{data:0}),Ad=dt(Gb),Pb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yb={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"},Qb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qb[e])?!!t[e]:!1}function zo(){return Vb}var Xb=b({},Kr,{key:function(e){if(e.key){var t=Pb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Yb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zo,charCode:function(e){return e.type==="keypress"?hs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fb=dt(Xb),Kb=b({},vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Od=dt(Kb),Zb=b({},Kr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zo}),$b=dt(Zb),Jb=b({},ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ib=dt(Jb),Wb=b({},vs,{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}),ex=dt(Wb),tx=b({},ha,{newState:0,oldState:0}),nx=dt(tx),ax=[9,13,27,32],Uo=dn&&"CompositionEvent"in window,$r=null;dn&&"documentMode"in document&&($r=document.documentMode);var rx=dn&&"TextEvent"in window&&!$r,jd=dn&&(!Uo||$r&&8<$r&&11>=$r),Dd=" ",Md=!1;function _d(e,t){switch(e){case"keyup":return ax.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $a=!1;function lx(e,t){switch(e){case"compositionend":return zd(t);case"keypress":return t.which!==32?null:(Md=!0,Dd);case"textInput":return e=t.data,e===Dd&&Md?null:e;default:return null}}function sx(e,t){if($a)return e==="compositionend"||!Uo&&_d(e,t)?(e=Cd(),ds=jo=zn=null,$a=!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 jd&&t.locale!=="ko"?null:t.data;default:return null}}var ix={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 Ud(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ix[e.type]:t==="textarea"}function kd(e,t,a,l){Ka?Za?Za.push(l):Za=[l]:Ka=l,t=ni(t,"onChange"),0<t.length&&(a=new ps("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Jr=null,Ir=null;function ox(e){vp(e,0)}function gs(e){var t=Vr(e);if(gd(t))return e}function Ld(e,t){if(e==="change")return t}var Bd=!1;if(dn){var ko;if(dn){var Lo="oninput"in document;if(!Lo){var Hd=document.createElement("div");Hd.setAttribute("oninput","return;"),Lo=typeof Hd.oninput=="function"}ko=Lo}else ko=!1;Bd=ko&&(!document.documentMode||9<document.documentMode)}function qd(){Jr&&(Jr.detachEvent("onpropertychange",Gd),Ir=Jr=null)}function Gd(e){if(e.propertyName==="value"&&gs(Ir)){var t=[];kd(t,Ir,e,No(e)),Rd(ox,t)}}function ux(e,t,a){e==="focusin"?(qd(),Jr=t,Ir=a,Jr.attachEvent("onpropertychange",Gd)):e==="focusout"&&qd()}function cx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gs(Ir)}function fx(e,t){if(e==="click")return gs(t)}function dx(e,t){if(e==="input"||e==="change")return gs(t)}function hx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:hx;function Wr(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!fo.call(t,o)||!Et(e[o],t[o]))return!1}return!0}function Pd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yd(e,t){var a=Pd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Pd(a)}}function Qd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=cs(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=cs(e.document)}return t}function Bo(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 mx=dn&&"documentMode"in document&&11>=document.documentMode,Ja=null,Ho=null,el=null,qo=!1;function Xd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;qo||Ja==null||Ja!==cs(l)||(l=Ja,"selectionStart"in l&&Bo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),el&&Wr(el,l)||(el=l,l=ni(Ho,"onSelect"),0<l.length&&(t=new ps("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Ja)))}function ma(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ia={animationend:ma("Animation","AnimationEnd"),animationiteration:ma("Animation","AnimationIteration"),animationstart:ma("Animation","AnimationStart"),transitionrun:ma("Transition","TransitionRun"),transitionstart:ma("Transition","TransitionStart"),transitioncancel:ma("Transition","TransitionCancel"),transitionend:ma("Transition","TransitionEnd")},Go={},Fd={};dn&&(Fd=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function pa(e){if(Go[e])return Go[e];if(!Ia[e])return e;var t=Ia[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Fd)return Go[e]=t[a];return e}var Kd=pa("animationend"),Zd=pa("animationiteration"),$d=pa("animationstart"),px=pa("transitionrun"),vx=pa("transitionstart"),gx=pa("transitioncancel"),Jd=pa("transitionend"),Id=new Map,Po="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(" ");Po.push("scrollEnd");function Vt(e,t){Id.set(e,t),da(t,[e])}var Wd=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var a=Wd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:pd(t)},Wd.set(e,t),t)}return{value:e,source:t,stack:pd(t)}}var kt=[],Wa=0,Yo=0;function ys(){for(var e=Wa,t=Yo=Wa=0;t<e;){var a=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var o=kt[t];kt[t++]=null;var c=kt[t];if(kt[t++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}c!==0&&eh(a,o,c)}}function bs(e,t,a,l){kt[Wa++]=e,kt[Wa++]=t,kt[Wa++]=a,kt[Wa++]=l,Yo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Qo(e,t,a,l){return bs(e,t,a,l),xs(e)}function er(e,t){return bs(e,null,null,t),xs(e)}function eh(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-St(a),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=a|536870912),c):null}function xs(e){if(50<Cl)throw Cl=0,$u=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var tr={};function yx(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,a,l){return new yx(e,t,a,l)}function Vo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hn(e,t){var a=e.alternate;return a===null?(a=wt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function th(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ss(e,t,a,l,o,c){var g=0;if(l=e,typeof e=="function")Vo(e)&&(g=1);else if(typeof e=="string")g=x1(e,a,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case I:return e=wt(31,a,t,o),e.elementType=I,e.lanes=c,e;case w:return va(a.children,o,c,t);case R:g=8,o|=24;break;case T:return e=wt(12,a,t,o|2),e.elementType=T,e.lanes=c,e;case P:return e=wt(13,a,t,o),e.elementType=P,e.lanes=c,e;case ee:return e=wt(19,a,t,o),e.elementType=ee,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:case H:g=10;break e;case _:g=9;break e;case V:g=11;break e;case X:g=14;break e;case Z:g=16,l=null;break e}g=29,a=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=wt(g,a,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function va(e,t,a,l){return e=wt(7,e,l,t),e.lanes=a,e}function Xo(e,t,a){return e=wt(6,e,null,t),e.lanes=a,e}function Fo(e,t,a){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var nr=[],ar=0,Es=null,ws=0,Lt=[],Bt=0,ga=null,mn=1,pn="";function ya(e,t){nr[ar++]=ws,nr[ar++]=Es,Es=e,ws=t}function nh(e,t,a){Lt[Bt++]=mn,Lt[Bt++]=pn,Lt[Bt++]=ga,ga=e;var l=mn;e=pn;var o=32-St(l)-1;l&=~(1<<o),a+=1;var c=32-St(t)+o;if(30<c){var g=o-o%5;c=(l&(1<<g)-1).toString(32),l>>=g,o-=g,mn=1<<32-St(t)+o|a<<o|l,pn=c+e}else mn=1<<c|a<<o|l,pn=e}function Ko(e){e.return!==null&&(ya(e,1),nh(e,1,0))}function Zo(e){for(;e===Es;)Es=nr[--ar],nr[ar]=null,ws=nr[--ar],nr[ar]=null;for(;e===ga;)ga=Lt[--Bt],Lt[Bt]=null,pn=Lt[--Bt],Lt[Bt]=null,mn=Lt[--Bt],Lt[Bt]=null}var ot=null,Le=null,we=!1,ba=null,It=!1,$o=Error(i(519));function xa(e){var t=Error(i(418,""));throw al(Ut(t,e)),$o}function ah(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[rt]=e,t[ft]=l,a){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(a=0;a<Nl.length;a++)pe(Nl[a],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),yd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),us(t);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),xd(t,l.value,l.defaultValue,l.children),us(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||xp(t.textContent,a)?(l.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),l.onScroll!=null&&pe("scroll",t),l.onScrollEnd!=null&&pe("scrollend",t),l.onClick!=null&&(t.onclick=ai),t=!0):t=!1,t||xa(e)}function rh(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 13:It=!1;return;case 27:case 3:It=!0;return;default:ot=ot.return}}function tl(e){if(e!==ot)return!1;if(!we)return rh(e),we=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||dc(e.type,e.memoizedProps)),a=!a),a&&Le&&xa(e),rh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Le=Ft(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Le=null}}else t===27?(t=Le,$n(e.type)?(e=vc,vc=null,Le=e):Le=t):Le=ot?Ft(e.stateNode.nextSibling):null;return!0}function nl(){Le=ot=null,we=!1}function lh(){var e=ba;return e!==null&&(pt===null?pt=e:pt.push.apply(pt,e),ba=null),e}function al(e){ba===null?ba=[e]:ba.push(e)}var Jo=Y(null),Sa=null,vn=null;function Un(e,t,a){K(Jo,t._currentValue),t._currentValue=a}function gn(e){e._currentValue=Jo.current,$(Jo)}function Io(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Wo(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var g=o.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=o;for(var C=0;C<t.length;C++)if(x.context===t[C]){c.lanes|=a,x=c.alternate,x!==null&&(x.lanes|=a),Io(c.return,a,e),l||(g=null);break e}c=x.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(i(341));g.lanes|=a,c=g.alternate,c!==null&&(c.lanes|=a),Io(g,a,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function rl(e,t,a,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(i(387));if(g=g.memoizedProps,g!==null){var x=o.type;Et(o.pendingProps.value,g.value)||(e!==null?e.push(x):e=[x])}}else if(o===bt.current){if(g=o.alternate,g===null)throw Error(i(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(_l):e=[_l])}o=o.return}e!==null&&Wo(t,e,a,l),t.flags|=262144}function Rs(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ea(e){Sa=e,vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return sh(Sa,e)}function Cs(e,t){return Sa===null&&Ea(e),sh(e,t)}function sh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},vn===null){if(e===null)throw Error(i(308));vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vn=vn.next=t;return a}var bx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},xx=n.unstable_scheduleCallback,Sx=n.unstable_NormalPriority,Fe={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function eu(){return{controller:new bx,data:new Map,refCount:0}}function ll(e){e.refCount--,e.refCount===0&&xx(Sx,function(){e.controller.abort()})}var sl=null,tu=0,rr=0,lr=null;function Ex(e,t){if(sl===null){var a=sl=[];tu=0,rr=ac(),lr={status:"pending",value:void 0,then:function(l){a.push(l)}}}return tu++,t.then(ih,ih),t}function ih(){if(--tu===0&&sl!==null){lr!==null&&(lr.status="fulfilled");var e=sl;sl=null,rr=0,lr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wx(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var oh=B.S;B.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ex(e,t),oh!==null&&oh(e,t)};var wa=Y(null);function nu(){var e=wa.current;return e!==null?e:De.pooledCache}function Ts(e,t){t===null?K(wa,wa.current):K(wa,t.pool)}function uh(){var e=nu();return e===null?null:{parent:Fe._currentValue,pool:e}}var il=Error(i(460)),ch=Error(i(474)),Ns=Error(i(542)),au={then:function(){}};function fh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function As(){}function dh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(As,As),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mh(e),e;default:if(typeof t.status=="string")t.then(As,As);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mh(e),e}throw ol=t,il}}var ol=null;function hh(){if(ol===null)throw Error(i(459));var e=ol;return ol=null,e}function mh(e){if(e===il||e===Ns)throw Error(i(483))}var kn=!1;function ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lu(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 Ln(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Bn(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ce&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=xs(e),eh(e,null,a),t}return bs(e,l,t,a),xs(e)}function ul(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,id(e,a)}}function su(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var iu=!1;function cl(){if(iu){var e=lr;if(e!==null)throw e}}function fl(e,t,a,l){iu=!1;var o=e.updateQueue;kn=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var C=x,z=C.next;C.next=null,g===null?c=z:g.next=z,g=C;var q=e.alternate;q!==null&&(q=q.updateQueue,x=q.lastBaseUpdate,x!==g&&(x===null?q.firstBaseUpdate=z:x.next=z,q.lastBaseUpdate=C))}if(c!==null){var Q=o.baseState;g=0,q=z=C=null,x=c;do{var U=x.lane&-536870913,k=U!==x.lane;if(k?(ge&U)===U:(l&U)===U){U!==0&&U===rr&&(iu=!0),q!==null&&(q=q.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var le=e,ae=x;U=t;var Oe=a;switch(ae.tag){case 1:if(le=ae.payload,typeof le=="function"){Q=le.call(Oe,Q,U);break e}Q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ae.payload,U=typeof le=="function"?le.call(Oe,Q,U):le,U==null)break e;Q=b({},Q,U);break e;case 2:kn=!0}}U=x.callback,U!==null&&(e.flags|=64,k&&(e.flags|=8192),k=o.callbacks,k===null?o.callbacks=[U]:k.push(U))}else k={lane:U,tag:x.tag,payload:x.payload,callback:x.callback,next:null},q===null?(z=q=k,C=Q):q=q.next=k,g|=U;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;k=x,x=k.next,k.next=null,o.lastBaseUpdate=k,o.shared.pending=null}}while(!0);q===null&&(C=Q),o.baseState=C,o.firstBaseUpdate=z,o.lastBaseUpdate=q,c===null&&(o.shared.lanes=0),Xn|=g,e.lanes=g,e.memoizedState=Q}}function ph(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function vh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ph(a[e],t)}var sr=Y(null),Os=Y(0);function gh(e,t){e=Rn,K(Os,e),K(sr,t),Rn=e|t.baseLanes}function ou(){K(Os,Rn),K(sr,sr.current)}function uu(){Rn=Os.current,$(sr),$(Os)}var Hn=0,de=null,Ne=null,Qe=null,js=!1,ir=!1,Ra=!1,Ds=0,dl=0,or=null,Rx=0;function Ge(){throw Error(i(321))}function cu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Et(e[a],t[a]))return!1;return!0}function fu(e,t,a,l,o,c){return Hn=c,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?em:tm,Ra=!1,c=a(l,o),Ra=!1,ir&&(c=bh(t,a,l,o)),yh(e),c}function yh(e){B.H=Ls;var t=Ne!==null&&Ne.next!==null;if(Hn=0,Qe=Ne=de=null,js=!1,dl=0,or=null,t)throw Error(i(300));e===null||Ie||(e=e.dependencies,e!==null&&Rs(e)&&(Ie=!0))}function bh(e,t,a,l){de=e;var o=0;do{if(ir&&(or=null),dl=0,ir=!1,25<=o)throw Error(i(301));if(o+=1,Qe=Ne=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}B.H=Dx,c=t(a,l)}while(ir);return c}function Cx(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?hl(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(de.flags|=1024),t}function du(){var e=Ds!==0;return Ds=0,e}function hu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function mu(e){if(js){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}js=!1}Hn=0,Qe=Ne=de=null,ir=!1,dl=Ds=0,or=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?de.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ve(){if(Ne===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Qe===null?de.memoizedState:Qe.next;if(t!==null)Qe=t,Ne=e;else{if(e===null)throw de.alternate===null?Error(i(467)):Error(i(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Qe===null?de.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function pu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hl(e){var t=dl;return dl+=1,or===null&&(or=[]),e=dh(or,e,t),t=de,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?em:tm),e}function Ms(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return hl(e);if(e.$$typeof===H)return lt(e)}throw Error(i(438,String(e)))}function vu(e){var t=null,a=de.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=de.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=pu(),de.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=se;return t.index++,a}function yn(e,t){return typeof t=="function"?t(e):t}function _s(e){var t=Ve();return gu(t,Ne,e)}function gu(e,t,a){var l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=a;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var g=o.next;o.next=c.next,c.next=g}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var x=g=null,C=null,z=t,q=!1;do{var Q=z.lane&-536870913;if(Q!==z.lane?(ge&Q)===Q:(Hn&Q)===Q){var U=z.revertLane;if(U===0)C!==null&&(C=C.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Q===rr&&(q=!0);else if((Hn&U)===U){z=z.next,U===rr&&(q=!0);continue}else Q={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},C===null?(x=C=Q,g=c):C=C.next=Q,de.lanes|=U,Xn|=U;Q=z.action,Ra&&a(c,Q),c=z.hasEagerState?z.eagerState:a(c,Q)}else U={lane:Q,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},C===null?(x=C=U,g=c):C=C.next=U,de.lanes|=Q,Xn|=Q;z=z.next}while(z!==null&&z!==t);if(C===null?g=c:C.next=x,!Et(c,e.memoizedState)&&(Ie=!0,q&&(a=lr,a!==null)))throw a;e.memoizedState=c,e.baseState=g,e.baseQueue=C,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function yu(e){var t=Ve(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var g=o=o.next;do c=e(c,g.action),g=g.next;while(g!==o);Et(c,t.memoizedState)||(Ie=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function xh(e,t,a){var l=de,o=Ve(),c=we;if(c){if(a===void 0)throw Error(i(407));a=a()}else a=t();var g=!Et((Ne||o).memoizedState,a);g&&(o.memoizedState=a,Ie=!0),o=o.queue;var x=wh.bind(null,l,o,e);if(ml(2048,8,x,[e]),o.getSnapshot!==t||g||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,ur(9,zs(),Eh.bind(null,l,o,a,t),null),De===null)throw Error(i(349));c||(Hn&124)!==0||Sh(l,t,a)}return a}function Sh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=de.updateQueue,t===null?(t=pu(),de.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Eh(e,t,a,l){t.value=a,t.getSnapshot=l,Rh(t)&&Ch(e)}function wh(e,t,a){return a(function(){Rh(t)&&Ch(e)})}function Rh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Et(e,a)}catch{return!0}}function Ch(e){var t=er(e,2);t!==null&&At(t,e,2)}function bu(e){var t=ht();if(typeof e=="function"){var a=e;if(e=a(),Ra){Mn(!0);try{a()}finally{Mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:e},t}function Th(e,t,a,l){return e.baseState=a,gu(e,Ne,typeof l=="function"?l:yn)}function Tx(e,t,a,l,o){if(ks(e))throw Error(i(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};B.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,Nh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Nh(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=B.T,g={};B.T=g;try{var x=a(o,l),C=B.S;C!==null&&C(g,x),Ah(e,t,x)}catch(z){xu(e,t,z)}finally{B.T=c}}else try{c=a(o,l),Ah(e,t,c)}catch(z){xu(e,t,z)}}function Ah(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Oh(e,t,l)},function(l){return xu(e,t,l)}):Oh(e,t,a)}function Oh(e,t,a){t.status="fulfilled",t.value=a,jh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Nh(e,a)))}function xu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,jh(t),t=t.next;while(t!==l)}e.action=null}function jh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Dh(e,t){return t}function Mh(e,t){if(we){var a=De.formState;if(a!==null){e:{var l=de;if(we){if(Le){t:{for(var o=Le,c=It;o.nodeType!==8;){if(!c){o=null;break t}if(o=Ft(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Le=Ft(o.nextSibling),l=o.data==="F!";break e}}xa(l)}l=!1}l&&(t=a[0])}}return a=ht(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dh,lastRenderedState:t},a.queue=l,a=Jh.bind(null,de,l),l.dispatch=a,l=bu(!1),c=Cu.bind(null,de,!1,l.queue),l=ht(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=Tx.bind(null,de,o,c,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function _h(e){var t=Ve();return zh(t,Ne,e)}function zh(e,t,a){if(t=gu(e,t,Dh)[0],e=_s(yn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=hl(t)}catch(g){throw g===il?Ns:g}else l=t;t=Ve();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(de.flags|=2048,ur(9,zs(),Nx.bind(null,o,a),null)),[l,c,e]}function Nx(e,t){e.action=t}function Uh(e){var t=Ve(),a=Ne;if(a!==null)return zh(t,a,e);Ve(),t=t.memoizedState,a=Ve();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function ur(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=de.updateQueue,t===null&&(t=pu(),de.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function zs(){return{destroy:void 0,resource:void 0}}function kh(){return Ve().memoizedState}function Us(e,t,a,l){var o=ht();l=l===void 0?null:l,de.flags|=e,o.memoizedState=ur(1|t,zs(),a,l)}function ml(e,t,a,l){var o=Ve();l=l===void 0?null:l;var c=o.memoizedState.inst;Ne!==null&&l!==null&&cu(l,Ne.memoizedState.deps)?o.memoizedState=ur(t,c,a,l):(de.flags|=e,o.memoizedState=ur(1|t,c,a,l))}function Lh(e,t){Us(8390656,8,e,t)}function Bh(e,t){ml(2048,8,e,t)}function Hh(e,t){return ml(4,2,e,t)}function qh(e,t){return ml(4,4,e,t)}function Gh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ph(e,t,a){a=a!=null?a.concat([e]):null,ml(4,4,Gh.bind(null,t,e),a)}function Su(){}function Yh(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&cu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Qh(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&cu(t,l[1]))return l[0];if(l=e(),Ra){Mn(!0);try{e()}finally{Mn(!1)}}return a.memoizedState=[l,t],l}function Eu(e,t,a){return a===void 0||(Hn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Fm(),de.lanes|=e,Xn|=e,a)}function Vh(e,t,a,l){return Et(a,t)?a:sr.current!==null?(e=Eu(e,a,l),Et(e,t)||(Ie=!0),e):(Hn&42)===0?(Ie=!0,e.memoizedState=a):(e=Fm(),de.lanes|=e,Xn|=e,t)}function Xh(e,t,a,l,o){var c=F.p;F.p=c!==0&&8>c?c:8;var g=B.T,x={};B.T=x,Cu(e,!1,t,a);try{var C=o(),z=B.S;if(z!==null&&z(x,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var q=wx(C,l);pl(e,t,q,Nt(e))}else pl(e,t,l,Nt(e))}catch(Q){pl(e,t,{then:function(){},status:"rejected",reason:Q},Nt())}finally{F.p=c,B.T=g}}function Ax(){}function wu(e,t,a,l){if(e.tag!==5)throw Error(i(476));var o=Fh(e).queue;Xh(e,o,t,te,a===null?Ax:function(){return Kh(e),a(l)})}function Fh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:te},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Kh(e){var t=Fh(e).next.queue;pl(e,t,{},Nt())}function Ru(){return lt(_l)}function Zh(){return Ve().memoizedState}function $h(){return Ve().memoizedState}function Ox(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=Ln(a);var l=Bn(t,e,a);l!==null&&(At(l,t,a),ul(l,t,a)),t={cache:eu()},e.payload=t;return}t=t.return}}function jx(e,t,a){var l=Nt();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},ks(e)?Ih(t,a):(a=Qo(e,t,a,l),a!==null&&(At(a,e,l),Wh(a,t,l)))}function Jh(e,t,a){var l=Nt();pl(e,t,a,l)}function pl(e,t,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(ks(e))Ih(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,x=c(g,a);if(o.hasEagerState=!0,o.eagerState=x,Et(x,g))return bs(e,t,o,0),De===null&&ys(),!1}catch{}finally{}if(a=Qo(e,t,o,l),a!==null)return At(a,e,l),Wh(a,t,l),!0}return!1}function Cu(e,t,a,l){if(l={lane:2,revertLane:ac(),action:l,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(i(479))}else t=Qo(e,a,l,2),t!==null&&At(t,e,2)}function ks(e){var t=e.alternate;return e===de||t!==null&&t===de}function Ih(e,t){ir=js=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Wh(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,id(e,a)}}var Ls={readContext:lt,use:Ms,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge},em={readContext:lt,use:Ms,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Lh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Us(4194308,4,Gh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Us(4194308,4,e,t)},useInsertionEffect:function(e,t){Us(4,2,e,t)},useMemo:function(e,t){var a=ht();t=t===void 0?null:t;var l=e();if(Ra){Mn(!0);try{e()}finally{Mn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ht();if(a!==void 0){var o=a(t);if(Ra){Mn(!0);try{a(t)}finally{Mn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=jx.bind(null,de,e),[l.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=bu(e);var t=e.queue,a=Jh.bind(null,de,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Su,useDeferredValue:function(e,t){var a=ht();return Eu(a,e,t)},useTransition:function(){var e=bu(!1);return e=Xh.bind(null,de,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=de,o=ht();if(we){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),De===null)throw Error(i(349));(ge&124)!==0||Sh(l,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Lh(wh.bind(null,l,c,e),[e]),l.flags|=2048,ur(9,zs(),Eh.bind(null,l,c,a,t),null),a},useId:function(){var e=ht(),t=De.identifierPrefix;if(we){var a=pn,l=mn;a=(l&~(1<<32-St(l)-1)).toString(32)+a,t="«"+t+"R"+a,a=Ds++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=Rx++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Ru,useFormState:Mh,useActionState:Mh,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Cu.bind(null,de,!0,a),a.dispatch=t,[e,t]},useMemoCache:vu,useCacheRefresh:function(){return ht().memoizedState=Ox.bind(null,de)}},tm={readContext:lt,use:Ms,useCallback:Yh,useContext:lt,useEffect:Bh,useImperativeHandle:Ph,useInsertionEffect:Hh,useLayoutEffect:qh,useMemo:Qh,useReducer:_s,useRef:kh,useState:function(){return _s(yn)},useDebugValue:Su,useDeferredValue:function(e,t){var a=Ve();return Vh(a,Ne.memoizedState,e,t)},useTransition:function(){var e=_s(yn)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:hl(e),t]},useSyncExternalStore:xh,useId:Zh,useHostTransitionStatus:Ru,useFormState:_h,useActionState:_h,useOptimistic:function(e,t){var a=Ve();return Th(a,Ne,e,t)},useMemoCache:vu,useCacheRefresh:$h},Dx={readContext:lt,use:Ms,useCallback:Yh,useContext:lt,useEffect:Bh,useImperativeHandle:Ph,useInsertionEffect:Hh,useLayoutEffect:qh,useMemo:Qh,useReducer:yu,useRef:kh,useState:function(){return yu(yn)},useDebugValue:Su,useDeferredValue:function(e,t){var a=Ve();return Ne===null?Eu(a,e,t):Vh(a,Ne.memoizedState,e,t)},useTransition:function(){var e=yu(yn)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:hl(e),t]},useSyncExternalStore:xh,useId:Zh,useHostTransitionStatus:Ru,useFormState:Uh,useActionState:Uh,useOptimistic:function(e,t){var a=Ve();return Ne!==null?Th(a,Ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:vu,useCacheRefresh:$h},cr=null,vl=0;function Bs(e){var t=vl;return vl+=1,cr===null&&(cr=[]),dh(cr,e,t)}function gl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hs(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 nm(e){var t=e._init;return t(e._payload)}function am(e){function t(D,j){if(e){var M=D.deletions;M===null?(D.deletions=[j],D.flags|=16):M.push(j)}}function a(D,j){if(!e)return null;for(;j!==null;)t(D,j),j=j.sibling;return null}function l(D){for(var j=new Map;D!==null;)D.key!==null?j.set(D.key,D):j.set(D.index,D),D=D.sibling;return j}function o(D,j){return D=hn(D,j),D.index=0,D.sibling=null,D}function c(D,j,M){return D.index=M,e?(M=D.alternate,M!==null?(M=M.index,M<j?(D.flags|=67108866,j):M):(D.flags|=67108866,j)):(D.flags|=1048576,j)}function g(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function x(D,j,M,G){return j===null||j.tag!==6?(j=Xo(M,D.mode,G),j.return=D,j):(j=o(j,M),j.return=D,j)}function C(D,j,M,G){var J=M.type;return J===w?q(D,j,M.props.children,G,M.key):j!==null&&(j.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Z&&nm(J)===j.type)?(j=o(j,M.props),gl(j,M),j.return=D,j):(j=Ss(M.type,M.key,M.props,null,D.mode,G),gl(j,M),j.return=D,j)}function z(D,j,M,G){return j===null||j.tag!==4||j.stateNode.containerInfo!==M.containerInfo||j.stateNode.implementation!==M.implementation?(j=Fo(M,D.mode,G),j.return=D,j):(j=o(j,M.children||[]),j.return=D,j)}function q(D,j,M,G,J){return j===null||j.tag!==7?(j=va(M,D.mode,G,J),j.return=D,j):(j=o(j,M),j.return=D,j)}function Q(D,j,M){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Xo(""+j,D.mode,M),j.return=D,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case S:return M=Ss(j.type,j.key,j.props,null,D.mode,M),gl(M,j),M.return=D,M;case A:return j=Fo(j,D.mode,M),j.return=D,j;case Z:var G=j._init;return j=G(j._payload),Q(D,j,M)}if(qe(j)||ie(j))return j=va(j,D.mode,M,null),j.return=D,j;if(typeof j.then=="function")return Q(D,Bs(j),M);if(j.$$typeof===H)return Q(D,Cs(D,j),M);Hs(D,j)}return null}function U(D,j,M,G){var J=j!==null?j.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return J!==null?null:x(D,j,""+M,G);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case S:return M.key===J?C(D,j,M,G):null;case A:return M.key===J?z(D,j,M,G):null;case Z:return J=M._init,M=J(M._payload),U(D,j,M,G)}if(qe(M)||ie(M))return J!==null?null:q(D,j,M,G,null);if(typeof M.then=="function")return U(D,j,Bs(M),G);if(M.$$typeof===H)return U(D,j,Cs(D,M),G);Hs(D,M)}return null}function k(D,j,M,G,J){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return D=D.get(M)||null,x(j,D,""+G,J);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return D=D.get(G.key===null?M:G.key)||null,C(j,D,G,J);case A:return D=D.get(G.key===null?M:G.key)||null,z(j,D,G,J);case Z:var he=G._init;return G=he(G._payload),k(D,j,M,G,J)}if(qe(G)||ie(G))return D=D.get(M)||null,q(j,D,G,J,null);if(typeof G.then=="function")return k(D,j,M,Bs(G),J);if(G.$$typeof===H)return k(D,j,M,Cs(j,G),J);Hs(j,G)}return null}function le(D,j,M,G){for(var J=null,he=null,W=j,re=j=0,et=null;W!==null&&re<M.length;re++){W.index>re?(et=W,W=null):et=W.sibling;var Se=U(D,W,M[re],G);if(Se===null){W===null&&(W=et);break}e&&W&&Se.alternate===null&&t(D,W),j=c(Se,j,re),he===null?J=Se:he.sibling=Se,he=Se,W=et}if(re===M.length)return a(D,W),we&&ya(D,re),J;if(W===null){for(;re<M.length;re++)W=Q(D,M[re],G),W!==null&&(j=c(W,j,re),he===null?J=W:he.sibling=W,he=W);return we&&ya(D,re),J}for(W=l(W);re<M.length;re++)et=k(W,D,re,M[re],G),et!==null&&(e&&et.alternate!==null&&W.delete(et.key===null?re:et.key),j=c(et,j,re),he===null?J=et:he.sibling=et,he=et);return e&&W.forEach(function(ta){return t(D,ta)}),we&&ya(D,re),J}function ae(D,j,M,G){if(M==null)throw Error(i(151));for(var J=null,he=null,W=j,re=j=0,et=null,Se=M.next();W!==null&&!Se.done;re++,Se=M.next()){W.index>re?(et=W,W=null):et=W.sibling;var ta=U(D,W,Se.value,G);if(ta===null){W===null&&(W=et);break}e&&W&&ta.alternate===null&&t(D,W),j=c(ta,j,re),he===null?J=ta:he.sibling=ta,he=ta,W=et}if(Se.done)return a(D,W),we&&ya(D,re),J;if(W===null){for(;!Se.done;re++,Se=M.next())Se=Q(D,Se.value,G),Se!==null&&(j=c(Se,j,re),he===null?J=Se:he.sibling=Se,he=Se);return we&&ya(D,re),J}for(W=l(W);!Se.done;re++,Se=M.next())Se=k(W,D,re,Se.value,G),Se!==null&&(e&&Se.alternate!==null&&W.delete(Se.key===null?re:Se.key),j=c(Se,j,re),he===null?J=Se:he.sibling=Se,he=Se);return e&&W.forEach(function(M1){return t(D,M1)}),we&&ya(D,re),J}function Oe(D,j,M,G){if(typeof M=="object"&&M!==null&&M.type===w&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case S:e:{for(var J=M.key;j!==null;){if(j.key===J){if(J=M.type,J===w){if(j.tag===7){a(D,j.sibling),G=o(j,M.props.children),G.return=D,D=G;break e}}else if(j.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Z&&nm(J)===j.type){a(D,j.sibling),G=o(j,M.props),gl(G,M),G.return=D,D=G;break e}a(D,j);break}else t(D,j);j=j.sibling}M.type===w?(G=va(M.props.children,D.mode,G,M.key),G.return=D,D=G):(G=Ss(M.type,M.key,M.props,null,D.mode,G),gl(G,M),G.return=D,D=G)}return g(D);case A:e:{for(J=M.key;j!==null;){if(j.key===J)if(j.tag===4&&j.stateNode.containerInfo===M.containerInfo&&j.stateNode.implementation===M.implementation){a(D,j.sibling),G=o(j,M.children||[]),G.return=D,D=G;break e}else{a(D,j);break}else t(D,j);j=j.sibling}G=Fo(M,D.mode,G),G.return=D,D=G}return g(D);case Z:return J=M._init,M=J(M._payload),Oe(D,j,M,G)}if(qe(M))return le(D,j,M,G);if(ie(M)){if(J=ie(M),typeof J!="function")throw Error(i(150));return M=J.call(M),ae(D,j,M,G)}if(typeof M.then=="function")return Oe(D,j,Bs(M),G);if(M.$$typeof===H)return Oe(D,j,Cs(D,M),G);Hs(D,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,j!==null&&j.tag===6?(a(D,j.sibling),G=o(j,M),G.return=D,D=G):(a(D,j),G=Xo(M,D.mode,G),G.return=D,D=G),g(D)):a(D,j)}return function(D,j,M,G){try{vl=0;var J=Oe(D,j,M,G);return cr=null,J}catch(W){if(W===il||W===Ns)throw W;var he=wt(29,W,null,D.mode);return he.lanes=G,he.return=D,he}finally{}}}var fr=am(!0),rm=am(!1),Ht=Y(null),Wt=null;function qn(e){var t=e.alternate;K(Ke,Ke.current&1),K(Ht,e),Wt===null&&(t===null||sr.current!==null||t.memoizedState!==null)&&(Wt=e)}function lm(e){if(e.tag===22){if(K(Ke,Ke.current),K(Ht,e),Wt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Wt=e)}}else Gn()}function Gn(){K(Ke,Ke.current),K(Ht,Ht.current)}function bn(e){$(Ht),Wt===e&&(Wt=null),$(Ke)}var Ke=Y(0);function qs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||pc(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Tu(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Nu={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Nt(),o=Ln(l);o.payload=t,a!=null&&(o.callback=a),t=Bn(e,o,l),t!==null&&(At(t,e,l),ul(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Nt(),o=Ln(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Bn(e,o,l),t!==null&&(At(t,e,l),ul(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),l=Ln(a);l.tag=2,t!=null&&(l.callback=t),t=Bn(e,l,a),t!==null&&(At(t,e,a),ul(t,e,a))}};function sm(e,t,a,l,o,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,g):t.prototype&&t.prototype.isPureReactComponent?!Wr(a,l)||!Wr(o,c):!0}function im(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Nu.enqueueReplaceState(t,t.state,null)}function Ca(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Gs=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)};function om(e){Gs(e)}function um(e){console.error(e)}function cm(e){Gs(e)}function Ps(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function fm(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Au(e,t,a){return a=Ln(a),a.tag=3,a.payload={element:null},a.callback=function(){Ps(e,t)},a}function dm(e){return e=Ln(e),e.tag=3,e}function hm(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){fm(t,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){fm(t,a,l),typeof o!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function Mx(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&rl(t,a,o,!0),a=Ht.current,a!==null){switch(a.tag){case 13:return Wt===null?Iu():a.alternate===null&&Be===0&&(Be=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===au?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),ec(e,l,o)),!1;case 22:return a.flags|=65536,l===au?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),ec(e,l,o)),!1}throw Error(i(435,a.tag))}return ec(e,l,o),Iu(),!1}if(we)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==$o&&(e=Error(i(422),{cause:l}),al(Ut(e,a)))):(l!==$o&&(t=Error(i(423),{cause:l}),al(Ut(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Ut(l,a),o=Au(e.stateNode,l,o),su(e,o),Be!==4&&(Be=2)),!1;var c=Error(i(520),{cause:l});if(c=Ut(c,a),Rl===null?Rl=[c]:Rl.push(c),Be!==4&&(Be=2),t===null)return!0;l=Ut(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Au(a.stateNode,l,e),su(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Fn===null||!Fn.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=dm(o),hm(o,e,a,l),su(a,o),!1}a=a.return}while(a!==null);return!1}var mm=Error(i(461)),Ie=!1;function tt(e,t,a,l){t.child=e===null?rm(t,null,a,l):fr(t,e.child,a,l)}function pm(e,t,a,l,o){a=a.render;var c=t.ref;if("ref"in l){var g={};for(var x in l)x!=="ref"&&(g[x]=l[x])}else g=l;return Ea(t),l=fu(e,t,a,g,c,o),x=du(),e!==null&&!Ie?(hu(e,t,o),xn(e,t,o)):(we&&x&&Ko(t),t.flags|=1,tt(e,t,l,o),t.child)}function vm(e,t,a,l,o){if(e===null){var c=a.type;return typeof c=="function"&&!Vo(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,gm(e,t,c,l,o)):(e=Ss(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ku(e,o)){var g=c.memoizedProps;if(a=a.compare,a=a!==null?a:Wr,a(g,l)&&e.ref===t.ref)return xn(e,t,o)}return t.flags|=1,e=hn(c,l),e.ref=t.ref,e.return=t,t.child=e}function gm(e,t,a,l,o){if(e!==null){var c=e.memoizedProps;if(Wr(c,l)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=l=c,ku(e,o))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,xn(e,t,o)}return Ou(e,t,a,l,o)}function ym(e,t,a){var l=t.pendingProps,o=l.children,c=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=c!==null?c.baseLanes|a:a,e!==null){for(o=t.child=e.child,c=0;o!==null;)c=c|o.lanes|o.childLanes,o=o.sibling;t.childLanes=c&~l}else t.childLanes=0,t.child=null;return bm(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ts(t,c!==null?c.cachePool:null),c!==null?gh(t,c):ou(),lm(t);else return t.lanes=t.childLanes=536870912,bm(e,t,c!==null?c.baseLanes|a:a,a)}else c!==null?(Ts(t,c.cachePool),gh(t,c),Gn(),t.memoizedState=null):(e!==null&&Ts(t,null),ou(),Gn());return tt(e,t,o,a),t.child}function bm(e,t,a,l){var o=nu();return o=o===null?null:{parent:Fe._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Ts(t,null),ou(),lm(t),e!==null&&rl(e,t,l,!0),null}function Ys(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Ou(e,t,a,l,o){return Ea(t),a=fu(e,t,a,l,void 0,o),l=du(),e!==null&&!Ie?(hu(e,t,o),xn(e,t,o)):(we&&l&&Ko(t),t.flags|=1,tt(e,t,a,o),t.child)}function xm(e,t,a,l,o,c){return Ea(t),t.updateQueue=null,a=bh(t,l,a,o),yh(e),l=du(),e!==null&&!Ie?(hu(e,t,c),xn(e,t,c)):(we&&l&&Ko(t),t.flags|=1,tt(e,t,a,c),t.child)}function Sm(e,t,a,l,o){if(Ea(t),t.stateNode===null){var c=tr,g=a.contextType;typeof g=="object"&&g!==null&&(c=lt(g)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Nu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},ru(t),g=a.contextType,c.context=typeof g=="object"&&g!==null?lt(g):tr,c.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Tu(t,a,g,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Nu.enqueueReplaceState(c,c.state,null),fl(t,l,c,o),cl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,C=Ca(a,x);c.props=C;var z=c.context,q=a.contextType;g=tr,typeof q=="object"&&q!==null&&(g=lt(q));var Q=a.getDerivedStateFromProps;q=typeof Q=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||z!==g)&&im(t,c,l,g),kn=!1;var U=t.memoizedState;c.state=U,fl(t,l,c,o),cl(),z=t.memoizedState,x||U!==z||kn?(typeof Q=="function"&&(Tu(t,a,Q,l),z=t.memoizedState),(C=kn||sm(t,a,C,l,U,z,g))?(q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),c.props=l,c.state=z,c.context=g,l=C):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,lu(e,t),g=t.memoizedProps,q=Ca(a,g),c.props=q,Q=t.pendingProps,U=c.context,z=a.contextType,C=tr,typeof z=="object"&&z!==null&&(C=lt(z)),x=a.getDerivedStateFromProps,(z=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==Q||U!==C)&&im(t,c,l,C),kn=!1,U=t.memoizedState,c.state=U,fl(t,l,c,o),cl();var k=t.memoizedState;g!==Q||U!==k||kn||e!==null&&e.dependencies!==null&&Rs(e.dependencies)?(typeof x=="function"&&(Tu(t,a,x,l),k=t.memoizedState),(q=kn||sm(t,a,q,l,U,k,C)||e!==null&&e.dependencies!==null&&Rs(e.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,k,C),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,k,C)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=k),c.props=l,c.state=k,c.context=C,l=q):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Ys(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=fr(t,e.child,null,o),t.child=fr(t,null,a,o)):tt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=xn(e,t,o),e}function Em(e,t,a,l){return nl(),t.flags|=256,tt(e,t,a,l),t.child}var ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Du(e){return{baseLanes:e,cachePool:uh()}}function Mu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=qt),e}function wm(e,t,a){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(o?qn(t):Gn(),we){var x=Le,C;if(C=x){e:{for(C=x,x=It;C.nodeType!==8;){if(!x){x=null;break e}if(C=Ft(C.nextSibling),C===null){x=null;break e}}x=C}x!==null?(t.memoizedState={dehydrated:x,treeContext:ga!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},C=wt(18,null,null,0),C.stateNode=x,C.return=t,t.child=C,ot=t,Le=null,C=!0):C=!1}C||xa(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return pc(x)?t.lanes=32:t.lanes=536870912,null;bn(t)}return x=l.children,l=l.fallback,o?(Gn(),o=t.mode,x=Qs({mode:"hidden",children:x},o),l=va(l,o,a,null),x.return=t,l.return=t,x.sibling=l,t.child=x,o=t.child,o.memoizedState=Du(a),o.childLanes=Mu(e,g,a),t.memoizedState=ju,l):(qn(t),_u(t,x))}if(C=e.memoizedState,C!==null&&(x=C.dehydrated,x!==null)){if(c)t.flags&256?(qn(t),t.flags&=-257,t=zu(e,t,a)):t.memoizedState!==null?(Gn(),t.child=e.child,t.flags|=128,t=null):(Gn(),o=l.fallback,x=t.mode,l=Qs({mode:"visible",children:l.children},x),o=va(o,x,a,null),o.flags|=2,l.return=t,o.return=t,l.sibling=o,t.child=l,fr(t,e.child,null,a),l=t.child,l.memoizedState=Du(a),l.childLanes=Mu(e,g,a),t.memoizedState=ju,t=o);else if(qn(t),pc(x)){if(g=x.nextSibling&&x.nextSibling.dataset,g)var z=g.dgst;g=z,l=Error(i(419)),l.stack="",l.digest=g,al({value:l,source:null,stack:null}),t=zu(e,t,a)}else if(Ie||rl(e,t,a,!1),g=(a&e.childLanes)!==0,Ie||g){if(g=De,g!==null&&(l=a&-a,l=(l&42)!==0?1:vo(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==C.retryLane))throw C.retryLane=l,er(e,l),At(g,e,l),mm;x.data==="$?"||Iu(),t=zu(e,t,a)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Le=Ft(x.nextSibling),ot=t,we=!0,ba=null,It=!1,e!==null&&(Lt[Bt++]=mn,Lt[Bt++]=pn,Lt[Bt++]=ga,mn=e.id,pn=e.overflow,ga=t),t=_u(t,l.children),t.flags|=4096);return t}return o?(Gn(),o=l.fallback,x=t.mode,C=e.child,z=C.sibling,l=hn(C,{mode:"hidden",children:l.children}),l.subtreeFlags=C.subtreeFlags&65011712,z!==null?o=hn(z,o):(o=va(o,x,a,null),o.flags|=2),o.return=t,l.return=t,l.sibling=o,t.child=l,l=o,o=t.child,x=e.child.memoizedState,x===null?x=Du(a):(C=x.cachePool,C!==null?(z=Fe._currentValue,C=C.parent!==z?{parent:z,pool:z}:C):C=uh(),x={baseLanes:x.baseLanes|a,cachePool:C}),o.memoizedState=x,o.childLanes=Mu(e,g,a),t.memoizedState=ju,l):(qn(t),a=e.child,e=a.sibling,a=hn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function _u(e,t){return t=Qs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qs(e,t){return e=wt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function zu(e,t,a){return fr(t,e.child,null,a),e=_u(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rm(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Io(e.return,t,a)}function Uu(e,t,a,l,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=o)}function Cm(e,t,a){var l=t.pendingProps,o=l.revealOrder,c=l.tail;if(tt(e,t,l.children,a),l=Ke.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rm(e,a,t);else if(e.tag===19)Rm(e,a,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}l&=1}switch(K(Ke,l),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&qs(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Uu(t,!1,o,a,c);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&qs(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Uu(t,!0,a,null,c);break;case"together":Uu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Xn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(rl(e,t,a,!1),(a&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,a=hn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=hn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Rs(e)))}function _x(e,t,a){switch(t.tag){case 3:_e(t,t.stateNode.containerInfo),Un(t,Fe,e.memoizedState.cache),nl();break;case 27:case 5:co(t);break;case 4:_e(t,t.stateNode.containerInfo);break;case 10:Un(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(qn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?wm(e,t,a):(qn(t),e=xn(e,t,a),e!==null?e.sibling:null);qn(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(rl(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return Cm(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(Ke,Ke.current),l)break;return null;case 22:case 23:return t.lanes=0,ym(e,t,a);case 24:Un(t,Fe,e.memoizedState.cache)}return xn(e,t,a)}function Tm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!ku(e,a)&&(t.flags&128)===0)return Ie=!1,_x(e,t,a);Ie=(e.flags&131072)!==0}else Ie=!1,we&&(t.flags&1048576)!==0&&nh(t,ws,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,o=l._init;if(l=o(l._payload),t.type=l,typeof l=="function")Vo(l)?(e=Ca(l,e),t.tag=1,t=Sm(null,t,l,e,a)):(t.tag=0,t=Ou(null,t,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===V){t.tag=11,t=pm(null,t,l,e,a);break e}else if(o===X){t.tag=14,t=vm(null,t,l,e,a);break e}}throw t=yt(l)||l,Error(i(306,t,""))}}return t;case 0:return Ou(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=Ca(l,t.pendingProps),Sm(e,t,l,o,a);case 3:e:{if(_e(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,lu(e,t),fl(t,l,null,a);var g=t.memoizedState;if(l=g.cache,Un(t,Fe,l),l!==c.cache&&Wo(t,[Fe],a,!0),cl(),l=g.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Em(e,t,l,a);break e}else if(l!==o){o=Ut(Error(i(424)),t),al(o),t=Em(e,t,l,a);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(Le=Ft(e.firstChild),ot=t,we=!0,ba=null,It=!0,a=rm(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(nl(),l===o){t=xn(e,t,a);break e}tt(e,t,l,a)}t=t.child}return t;case 26:return Ys(e,t),e===null?(a=jp(t.type,null,t.pendingProps,null))?t.memoizedState=a:we||(a=t.type,e=t.pendingProps,l=ri(oe.current).createElement(a),l[rt]=t,l[ft]=e,at(l,a,e),Je(l),t.stateNode=l):t.memoizedState=jp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return co(t),e===null&&we&&(l=t.stateNode=Np(t.type,t.pendingProps,oe.current),ot=t,It=!0,o=Le,$n(t.type)?(vc=o,Le=Ft(l.firstChild)):Le=o),tt(e,t,t.pendingProps.children,a),Ys(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((o=l=Le)&&(l=i1(l,t.type,t.pendingProps,It),l!==null?(t.stateNode=l,ot=t,Le=Ft(l.firstChild),It=!1,o=!0):o=!1),o||xa(t)),co(t),o=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,l=c.children,dc(o,c)?l=null:g!==null&&dc(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=fu(e,t,Cx,null,null,a),_l._currentValue=o),Ys(e,t),tt(e,t,l,a),t.child;case 6:return e===null&&we&&((e=a=Le)&&(a=o1(a,t.pendingProps,It),a!==null?(t.stateNode=a,ot=t,Le=null,e=!0):e=!1),e||xa(t)),null;case 13:return wm(e,t,a);case 4:return _e(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=fr(t,null,l,a):tt(e,t,l,a),t.child;case 11:return pm(e,t,t.type,t.pendingProps,a);case 7:return tt(e,t,t.pendingProps,a),t.child;case 8:return tt(e,t,t.pendingProps.children,a),t.child;case 12:return tt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Un(t,t.type,l.value),tt(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Ea(t),o=lt(o),l=l(o),t.flags|=1,tt(e,t,l,a),t.child;case 14:return vm(e,t,t.type,t.pendingProps,a);case 15:return gm(e,t,t.type,t.pendingProps,a);case 19:return Cm(e,t,a);case 31:return l=t.pendingProps,a=t.mode,l={mode:l.mode,children:l.children},e===null?(a=Qs(l,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=hn(e.child,l),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return ym(e,t,a);case 24:return Ea(t),l=lt(Fe),e===null?(o=nu(),o===null&&(o=De,c=eu(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:l,cache:o},ru(t),Un(t,Fe,o)):((e.lanes&a)!==0&&(lu(e,t),fl(t,null,null,a),cl()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Un(t,Fe,l)):(l=c.cache,Un(t,Fe,l),l!==o.cache&&Wo(t,[Fe],a,!0))),tt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Sn(e){e.flags|=4}function Nm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Up(t)){if(t=Ht.current,t!==null&&((ge&4194048)===ge?Wt!==null:(ge&62914560)!==ge&&(ge&536870912)===0||t!==Wt))throw ol=au,ch;e.flags|=8192}}function Vs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ld():536870912,e.lanes|=t,pr|=t)}function yl(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function zx(e,t,a){var l=t.pendingProps;switch(Zo(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),gn(Fe),Dn(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(tl(t)?Sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,lh())),Ue(t),null;case 26:return a=t.memoizedState,e===null?(Sn(t),a!==null?(Ue(t),Nm(t,a)):(Ue(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Sn(t),Ue(t),Nm(t,a)):(Ue(t),t.flags&=-16777217):(e.memoizedProps!==l&&Sn(t),Ue(t),t.flags&=-16777217),null;case 27:ns(t),a=oe.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ue(t),null}e=ne.current,tl(t)?ah(t):(e=Np(o,l,a),t.stateNode=e,Sn(t))}return Ue(t),null;case 5:if(ns(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return Ue(t),null}if(e=ne.current,tl(t))ah(t);else{switch(o=ri(oe.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}e[rt]=t,e[ft]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(at(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Sn(t)}}return Ue(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=oe.current,tl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=ot,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[rt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||xp(e.nodeValue,a)),e||xa(t)}else e=ri(e).createTextNode(l),e[rt]=t,t.stateNode=e}return Ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=tl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(i(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));o[rt]=t}else nl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),o=!1}else o=lh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(bn(t),t):(bn(t),null)}if(bn(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var c=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Vs(t,t.updateQueue),Ue(t),null;case 4:return Dn(),e===null&&ic(t.stateNode.containerInfo),Ue(t),null;case 10:return gn(t.type),Ue(t),null;case 19:if($(Ke),o=t.memoizedState,o===null)return Ue(t),null;if(l=(t.flags&128)!==0,c=o.rendering,c===null)if(l)yl(o,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=qs(e),c!==null){for(t.flags|=128,yl(o,!1),e=c.updateQueue,t.updateQueue=e,Vs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)th(a,e),a=a.sibling;return K(Ke,Ke.current&1|2),t.child}e=e.sibling}o.tail!==null&&Jt()>Ks&&(t.flags|=128,l=!0,yl(o,!1),t.lanes=4194304)}else{if(!l)if(e=qs(c),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Vs(t,e),yl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!c.alternate&&!we)return Ue(t),null}else 2*Jt()-o.renderingStartTime>Ks&&a!==536870912&&(t.flags|=128,l=!0,yl(o,!1),t.lanes=4194304);o.isBackwards?(c.sibling=t.child,t.child=c):(e=o.last,e!==null?e.sibling=c:t.child=c,o.last=c)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Jt(),t.sibling=null,e=Ke.current,K(Ke,l?e&1|2:e&1),t):(Ue(t),null);case 22:case 23:return bn(t),uu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),a=t.updateQueue,a!==null&&Vs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&$(wa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),gn(Fe),Ue(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Ux(e,t){switch(Zo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gn(Fe),Dn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ns(t),null;case 13:if(bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(Ke),null;case 4:return Dn(),null;case 10:return gn(t.type),null;case 22:case 23:return bn(t),uu(),e!==null&&$(wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gn(Fe),null;case 25:return null;default:return null}}function Am(e,t){switch(Zo(t),t.tag){case 3:gn(Fe),Dn();break;case 26:case 27:case 5:ns(t);break;case 4:Dn();break;case 13:bn(t);break;case 19:$(Ke);break;case 10:gn(t.type);break;case 22:case 23:bn(t),uu(),e!==null&&$(wa);break;case 24:gn(Fe)}}function bl(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var c=a.create,g=a.inst;l=c(),g.destroy=l}a=a.next}while(a!==o)}}catch(x){je(t,t.return,x)}}function Pn(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var g=l.inst,x=g.destroy;if(x!==void 0){g.destroy=void 0,o=t;var C=a,z=x;try{z()}catch(q){je(o,C,q)}}}l=l.next}while(l!==c)}}catch(q){je(t,t.return,q)}}function Om(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{vh(t,a)}catch(l){je(e,e.return,l)}}}function jm(e,t,a){a.props=Ca(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){je(e,t,l)}}function xl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){je(e,t,o)}}function en(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){je(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){je(e,t,o)}else a.current=null}function Dm(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){je(e,e.return,o)}}function Lu(e,t,a){try{var l=e.stateNode;n1(l,e.type,a,t),l[ft]=t}catch(o){je(e,e.return,o)}}function Mm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$n(e.type)||e.tag===4}function Bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mm(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&&$n(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 Hu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ai));else if(l!==4&&(l===27&&$n(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Hu(e,t,a),e=e.sibling;e!==null;)Hu(e,t,a),e=e.sibling}function Xs(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&$n(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Xs(e,t,a),e=e.sibling;e!==null;)Xs(e,t,a),e=e.sibling}function _m(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);at(t,l,a),t[rt]=e,t[ft]=a}catch(c){je(e,e.return,c)}}var En=!1,Pe=!1,qu=!1,zm=typeof WeakSet=="function"?WeakSet:Set,We=null;function kx(e,t){if(e=e.containerInfo,cc=ci,e=Vd(e),Bo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var g=0,x=-1,C=-1,z=0,q=0,Q=e,U=null;t:for(;;){for(var k;Q!==a||o!==0&&Q.nodeType!==3||(x=g+o),Q!==c||l!==0&&Q.nodeType!==3||(C=g+l),Q.nodeType===3&&(g+=Q.nodeValue.length),(k=Q.firstChild)!==null;)U=Q,Q=k;for(;;){if(Q===e)break t;if(U===a&&++z===o&&(x=g),U===c&&++q===l&&(C=g),(k=Q.nextSibling)!==null)break;Q=U,U=Q.parentNode}Q=k}a=x===-1||C===-1?null:{start:x,end:C}}else a=null}a=a||{start:0,end:0}}else a=null;for(fc={focusedElem:e,selectionRange:a},ci=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var le=Ca(a.type,o,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(le,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ae){je(a,a.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)mc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":mc(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,We=e;break}We=t.return}}function Um(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Yn(e,a),l&4&&bl(5,a);break;case 1:if(Yn(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(g){je(a,a.return,g)}else{var o=Ca(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){je(a,a.return,g)}}l&64&&Om(a),l&512&&xl(a,a.return);break;case 3:if(Yn(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{vh(e,t)}catch(g){je(a,a.return,g)}}break;case 27:t===null&&l&4&&_m(a);case 26:case 5:Yn(e,a),t===null&&l&4&&Dm(a),l&512&&xl(a,a.return);break;case 12:Yn(e,a);break;case 13:Yn(e,a),l&4&&Bm(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Vx.bind(null,a),u1(e,a))));break;case 22:if(l=a.memoizedState!==null||En,!l){t=t!==null&&t.memoizedState!==null||Pe,o=En;var c=Pe;En=l,(Pe=t)&&!c?Qn(e,a,(a.subtreeFlags&8772)!==0):Yn(e,a),En=o,Pe=c}break;case 30:break;default:Yn(e,a)}}function km(e){var t=e.alternate;t!==null&&(e.alternate=null,km(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&bo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ze=null,mt=!1;function wn(e,t,a){for(a=a.child;a!==null;)Lm(e,t,a),a=a.sibling}function Lm(e,t,a){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Gr,a)}catch{}switch(a.tag){case 26:Pe||en(a,t),wn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Pe||en(a,t);var l=ze,o=mt;$n(a.type)&&(ze=a.stateNode,mt=!1),wn(e,t,a),Ol(a.stateNode),ze=l,mt=o;break;case 5:Pe||en(a,t);case 6:if(l=ze,o=mt,ze=null,wn(e,t,a),ze=l,mt=o,ze!==null)if(mt)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(a.stateNode)}catch(c){je(a,t,c)}else try{ze.removeChild(a.stateNode)}catch(c){je(a,t,c)}break;case 18:ze!==null&&(mt?(e=ze,Cp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ll(e)):Cp(ze,a.stateNode));break;case 4:l=ze,o=mt,ze=a.stateNode.containerInfo,mt=!0,wn(e,t,a),ze=l,mt=o;break;case 0:case 11:case 14:case 15:Pe||Pn(2,a,t),Pe||Pn(4,a,t),wn(e,t,a);break;case 1:Pe||(en(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&jm(a,t,l)),wn(e,t,a);break;case 21:wn(e,t,a);break;case 22:Pe=(l=Pe)||a.memoizedState!==null,wn(e,t,a),Pe=l;break;default:wn(e,t,a)}}function Bm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ll(e)}catch(a){je(t,t.return,a)}}function Lx(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zm),t;default:throw Error(i(435,e.tag))}}function Gu(e,t){var a=Lx(e);t.forEach(function(l){var o=Xx.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function Rt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],c=e,g=t,x=g;e:for(;x!==null;){switch(x.tag){case 27:if($n(x.type)){ze=x.stateNode,mt=!1;break e}break;case 5:ze=x.stateNode,mt=!1;break e;case 3:case 4:ze=x.stateNode.containerInfo,mt=!0;break e}x=x.return}if(ze===null)throw Error(i(160));Lm(c,g,o),ze=null,mt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Hm(t,e),t=t.sibling}var Xt=null;function Hm(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Rt(t,e),Ct(e),l&4&&(Pn(3,e,e.return),bl(3,e),Pn(5,e,e.return));break;case 1:Rt(t,e),Ct(e),l&512&&(Pe||a===null||en(a,a.return)),l&64&&En&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Xt;if(Rt(t,e),Ct(e),l&512&&(Pe||a===null||en(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Qr]||c[rt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),at(c,l,a),c[rt]=e,Je(c),l=c;break e;case"link":var g=_p("link","href",o).get(l+(a.href||""));if(g){for(var x=0;x<g.length;x++)if(c=g[x],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(x,1);break t}}c=o.createElement(l),at(c,l,a),o.head.appendChild(c);break;case"meta":if(g=_p("meta","content",o).get(l+(a.content||""))){for(x=0;x<g.length;x++)if(c=g[x],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(x,1);break t}}c=o.createElement(l),at(c,l,a),o.head.appendChild(c);break;default:throw Error(i(468,l))}c[rt]=e,Je(c),l=c}e.stateNode=l}else zp(o,e.type,e.stateNode);else e.stateNode=Mp(o,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?zp(o,e.type,e.stateNode):Mp(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Lu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Rt(t,e),Ct(e),l&512&&(Pe||a===null||en(a,a.return)),a!==null&&l&4&&Lu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Rt(t,e),Ct(e),l&512&&(Pe||a===null||en(a,a.return)),e.flags&32){o=e.stateNode;try{Fa(o,"")}catch(k){je(e,e.return,k)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Lu(e,o,a!==null?a.memoizedProps:o)),l&1024&&(qu=!0);break;case 6:if(Rt(t,e),Ct(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(k){je(e,e.return,k)}}break;case 3:if(ii=null,o=Xt,Xt=li(t.containerInfo),Rt(t,e),Xt=o,Ct(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ll(t.containerInfo)}catch(k){je(e,e.return,k)}qu&&(qu=!1,qm(e));break;case 4:l=Xt,Xt=li(e.stateNode.containerInfo),Rt(t,e),Ct(e),Xt=l;break;case 12:Rt(t,e),Ct(e);break;case 13:Rt(t,e),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Fu=Jt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Gu(e,l)));break;case 22:o=e.memoizedState!==null;var C=a!==null&&a.memoizedState!==null,z=En,q=Pe;if(En=z||o,Pe=q||C,Rt(t,e),Pe=q,En=z,Ct(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||C||En||Pe||Ta(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){C=a=t;try{if(c=C.stateNode,o)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{x=C.stateNode;var Q=C.memoizedProps.style,U=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;x.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(k){je(C,C.return,k)}}}else if(t.tag===6){if(a===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(k){je(C,C.return,k)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Gu(e,a))));break;case 19:Rt(t,e),Ct(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Gu(e,l)));break;case 30:break;case 21:break;default:Rt(t,e),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Mm(l)){a=l;break}l=l.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var o=a.stateNode,c=Bu(e);Xs(e,c,o);break;case 5:var g=a.stateNode;a.flags&32&&(Fa(g,""),a.flags&=-33);var x=Bu(e);Xs(e,x,g);break;case 3:case 4:var C=a.stateNode.containerInfo,z=Bu(e);Hu(e,z,C);break;default:throw Error(i(161))}}catch(q){je(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Um(e,t.alternate,t),t=t.sibling}function Ta(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pn(4,t,t.return),Ta(t);break;case 1:en(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&jm(t,t.return,a),Ta(t);break;case 27:Ol(t.stateNode);case 26:case 5:en(t,t.return),Ta(t);break;case 22:t.memoizedState===null&&Ta(t);break;case 30:Ta(t);break;default:Ta(t)}e=e.sibling}}function Qn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:Qn(o,c,a),bl(4,c);break;case 1:if(Qn(o,c,a),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){je(l,l.return,z)}if(l=c,o=l.updateQueue,o!==null){var x=l.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)ph(C[o],x)}catch(z){je(l,l.return,z)}}a&&g&64&&Om(c),xl(c,c.return);break;case 27:_m(c);case 26:case 5:Qn(o,c,a),a&&l===null&&g&4&&Dm(c),xl(c,c.return);break;case 12:Qn(o,c,a);break;case 13:Qn(o,c,a),a&&g&4&&Bm(o,c);break;case 22:c.memoizedState===null&&Qn(o,c,a),xl(c,c.return);break;case 30:break;default:Qn(o,c,a)}t=t.sibling}}function Pu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ll(a))}function Yu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ll(e))}function tn(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gm(e,t,a,l),t=t.sibling}function Gm(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tn(e,t,a,l),o&2048&&bl(9,t);break;case 1:tn(e,t,a,l);break;case 3:tn(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ll(e)));break;case 12:if(o&2048){tn(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,x=c.onPostCommit;typeof x=="function"&&x(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){je(t,t.return,C)}}else tn(e,t,a,l);break;case 13:tn(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?tn(e,t,a,l):Sl(e,t):c._visibility&2?tn(e,t,a,l):(c._visibility|=2,dr(e,t,a,l,(t.subtreeFlags&10256)!==0)),o&2048&&Pu(g,t);break;case 24:tn(e,t,a,l),o&2048&&Yu(t.alternate,t);break;default:tn(e,t,a,l)}}function dr(e,t,a,l,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,g=t,x=a,C=l,z=g.flags;switch(g.tag){case 0:case 11:case 15:dr(c,g,x,C,o),bl(8,g);break;case 23:break;case 22:var q=g.stateNode;g.memoizedState!==null?q._visibility&2?dr(c,g,x,C,o):Sl(c,g):(q._visibility|=2,dr(c,g,x,C,o)),o&&z&2048&&Pu(g.alternate,g);break;case 24:dr(c,g,x,C,o),o&&z&2048&&Yu(g.alternate,g);break;default:dr(c,g,x,C,o)}t=t.sibling}}function Sl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:Sl(a,l),o&2048&&Pu(l.alternate,l);break;case 24:Sl(a,l),o&2048&&Yu(l.alternate,l);break;default:Sl(a,l)}t=t.sibling}}var El=8192;function hr(e){if(e.subtreeFlags&El)for(e=e.child;e!==null;)Pm(e),e=e.sibling}function Pm(e){switch(e.tag){case 26:hr(e),e.flags&El&&e.memoizedState!==null&&E1(Xt,e.memoizedState,e.memoizedProps);break;case 5:hr(e);break;case 3:case 4:var t=Xt;Xt=li(e.stateNode.containerInfo),hr(e),Xt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=El,El=16777216,hr(e),El=t):hr(e));break;default:hr(e)}}function Ym(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 wl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];We=l,Vm(l,e)}Ym(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qm(e),e=e.sibling}function Qm(e){switch(e.tag){case 0:case 11:case 15:wl(e),e.flags&2048&&Pn(9,e,e.return);break;case 3:wl(e);break;case 12:wl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fs(e)):wl(e);break;default:wl(e)}}function Fs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];We=l,Vm(l,e)}Ym(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pn(8,t,t.return),Fs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Fs(t));break;default:Fs(t)}e=e.sibling}}function Vm(e,t){for(;We!==null;){var a=We;switch(a.tag){case 0:case 11:case 15:Pn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ll(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,We=l;else e:for(a=e;We!==null;){l=We;var o=l.sibling,c=l.return;if(km(l),l===a){We=null;break e}if(o!==null){o.return=c,We=o;break e}We=c}}}var Bx={getCacheForType:function(e){var t=lt(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},Hx=typeof WeakMap=="function"?WeakMap:Map,Ce=0,De=null,me=null,ge=0,Te=0,Tt=null,Vn=!1,mr=!1,Qu=!1,Rn=0,Be=0,Xn=0,Na=0,Vu=0,qt=0,pr=0,Rl=null,pt=null,Xu=!1,Fu=0,Ks=1/0,Zs=null,Fn=null,nt=0,Kn=null,vr=null,gr=0,Ku=0,Zu=null,Xm=null,Cl=0,$u=null;function Nt(){if((Ce&2)!==0&&ge!==0)return ge&-ge;if(B.T!==null){var e=rr;return e!==0?e:ac()}return od()}function Fm(){qt===0&&(qt=(ge&536870912)===0||we?rd():536870912);var e=Ht.current;return e!==null&&(e.flags|=32),qt}function At(e,t,a){(e===De&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(yr(e,0),Zn(e,ge,qt,!1)),Yr(e,a),((Ce&2)===0||e!==De)&&(e===De&&((Ce&2)===0&&(Na|=a),Be===4&&Zn(e,ge,qt,!1)),nn(e))}function Km(e,t,a){if((Ce&6)!==0)throw Error(i(327));var l=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Pr(e,t),o=l?Px(e,t):Wu(e,t,!0),c=l;do{if(o===0){mr&&!l&&Zn(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!qx(a)){o=Wu(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var x=e;o=Rl;var C=x.current.memoizedState.isDehydrated;if(C&&(yr(x,g).flags|=256),g=Wu(x,g,!1),g!==2){if(Qu&&!C){x.errorRecoveryDisabledLanes|=c,Na|=c,o=4;break e}c=pt,pt=o,c!==null&&(pt===null?pt=c:pt.push.apply(pt,c))}o=g}if(c=!1,o!==2)continue}}if(o===1){yr(e,0),Zn(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Zn(l,t,qt,!Vn);break e;case 2:pt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(o=Fu+300-Jt(),10<o)){if(Zn(l,t,qt,!Vn),ss(l,0,!0)!==0)break e;l.timeoutHandle=wp(Zm.bind(null,l,a,pt,Zs,Xu,t,qt,Na,pr,Vn,c,2,-0,0),o);break e}Zm(l,a,pt,Zs,Xu,t,qt,Na,pr,Vn,c,0,-0,0)}}break}while(!0);nn(e)}function Zm(e,t,a,l,o,c,g,x,C,z,q,Q,U,k){if(e.timeoutHandle=-1,Q=t.subtreeFlags,(Q&8192||(Q&16785408)===16785408)&&(Ml={stylesheets:null,count:0,unsuspend:S1},Pm(t),Q=w1(),Q!==null)){e.cancelPendingCommit=Q(np.bind(null,e,t,c,a,l,o,g,x,C,q,1,U,k)),Zn(e,c,g,!z);return}np(e,t,c,a,l,o,g,x,C)}function qx(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],c=o.getSnapshot;o=o.value;try{if(!Et(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Zn(e,t,a,l){t&=~Vu,t&=~Na,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-St(o),g=1<<c;l[c]=-1,o&=~g}a!==0&&sd(e,a,t)}function $s(){return(Ce&6)===0?(Tl(0),!1):!0}function Ju(){if(me!==null){if(Te===0)var e=me.return;else e=me,vn=Sa=null,mu(e),cr=null,vl=0,e=me;for(;e!==null;)Am(e.alternate,e),e=e.return;me=null}}function yr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,r1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ju(),De=e,me=a=hn(e.current,null),ge=t,Te=0,Tt=null,Vn=!1,mr=Pr(e,t),Qu=!1,pr=qt=Vu=Na=Xn=Be=0,pt=Rl=null,Xu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-St(l),c=1<<o;t|=e[o],l&=~c}return Rn=t,ys(),a}function $m(e,t){de=null,B.H=Ls,t===il||t===Ns?(t=hh(),Te=3):t===ch?(t=hh(),Te=4):Te=t===mm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tt=t,me===null&&(Be=1,Ps(e,Ut(t,e.current)))}function Jm(){var e=B.H;return B.H=Ls,e===null?Ls:e}function Im(){var e=B.A;return B.A=Bx,e}function Iu(){Be=4,Vn||(ge&4194048)!==ge&&Ht.current!==null||(mr=!0),(Xn&134217727)===0&&(Na&134217727)===0||De===null||Zn(De,ge,qt,!1)}function Wu(e,t,a){var l=Ce;Ce|=2;var o=Jm(),c=Im();(De!==e||ge!==t)&&(Zs=null,yr(e,t)),t=!1;var g=Be;e:do try{if(Te!==0&&me!==null){var x=me,C=Tt;switch(Te){case 8:Ju(),g=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var z=Te;if(Te=0,Tt=null,br(e,x,C,z),a&&mr){g=0;break e}break;default:z=Te,Te=0,Tt=null,br(e,x,C,z)}}Gx(),g=Be;break}catch(q){$m(e,q)}while(!0);return t&&e.shellSuspendCounter++,vn=Sa=null,Ce=l,B.H=o,B.A=c,me===null&&(De=null,ge=0,ys()),g}function Gx(){for(;me!==null;)Wm(me)}function Px(e,t){var a=Ce;Ce|=2;var l=Jm(),o=Im();De!==e||ge!==t?(Zs=null,Ks=Jt()+500,yr(e,t)):mr=Pr(e,t);e:do try{if(Te!==0&&me!==null){t=me;var c=Tt;t:switch(Te){case 1:Te=0,Tt=null,br(e,t,c,1);break;case 2:case 9:if(fh(c)){Te=0,Tt=null,ep(t);break}t=function(){Te!==2&&Te!==9||De!==e||(Te=7),nn(e)},c.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:fh(c)?(Te=0,Tt=null,ep(t)):(Te=0,Tt=null,br(e,t,c,7));break;case 5:var g=null;switch(me.tag){case 26:g=me.memoizedState;case 5:case 27:var x=me;if(!g||Up(g)){Te=0,Tt=null;var C=x.sibling;if(C!==null)me=C;else{var z=x.return;z!==null?(me=z,Js(z)):me=null}break t}}Te=0,Tt=null,br(e,t,c,5);break;case 6:Te=0,Tt=null,br(e,t,c,6);break;case 8:Ju(),Be=6;break e;default:throw Error(i(462))}}Yx();break}catch(q){$m(e,q)}while(!0);return vn=Sa=null,B.H=l,B.A=o,Ce=a,me!==null?0:(De=null,ge=0,ys(),Be)}function Yx(){for(;me!==null&&!fb();)Wm(me)}function Wm(e){var t=Tm(e.alternate,e,Rn);e.memoizedProps=e.pendingProps,t===null?Js(e):me=t}function ep(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=xm(a,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=xm(a,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:mu(t);default:Am(a,t),t=me=th(t,Rn),t=Tm(a,t,Rn)}e.memoizedProps=e.pendingProps,t===null?Js(e):me=t}function br(e,t,a,l){vn=Sa=null,mu(t),cr=null,vl=0;var o=t.return;try{if(Mx(e,o,t,a,ge)){Be=1,Ps(e,Ut(a,e.current)),me=null;return}}catch(c){if(o!==null)throw me=o,c;Be=1,Ps(e,Ut(a,e.current)),me=null;return}t.flags&32768?(we||l===1?e=!0:mr||(ge&536870912)!==0?e=!1:(Vn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ht.current,l!==null&&l.tag===13&&(l.flags|=16384))),tp(t,e)):Js(t)}function Js(e){var t=e;do{if((t.flags&32768)!==0){tp(t,Vn);return}e=t.return;var a=zx(t.alternate,t,Rn);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);Be===0&&(Be=5)}function tp(e,t){do{var a=Ux(e.alternate,e);if(a!==null){a.flags&=32767,me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=a}while(e!==null);Be=6,me=null}function np(e,t,a,l,o,c,g,x,C){e.cancelPendingCommit=null;do Is();while(nt!==0);if((Ce&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(c=t.lanes|t.childLanes,c|=Yo,Sb(e,a,c,g,x,C),e===De&&(me=De=null,ge=0),vr=t,Kn=e,gr=a,Ku=c,Zu=o,Xm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Fx(as,function(){return ip(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null,o=F.p,F.p=2,g=Ce,Ce|=4;try{kx(e,t,a)}finally{Ce=g,F.p=o,B.T=l}}nt=1,ap(),rp(),lp()}}function ap(){if(nt===1){nt=0;var e=Kn,t=vr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null;var l=F.p;F.p=2;var o=Ce;Ce|=4;try{Hm(t,e);var c=fc,g=Vd(e.containerInfo),x=c.focusedElem,C=c.selectionRange;if(g!==x&&x&&x.ownerDocument&&Qd(x.ownerDocument.documentElement,x)){if(C!==null&&Bo(x)){var z=C.start,q=C.end;if(q===void 0&&(q=z),"selectionStart"in x)x.selectionStart=z,x.selectionEnd=Math.min(q,x.value.length);else{var Q=x.ownerDocument||document,U=Q&&Q.defaultView||window;if(U.getSelection){var k=U.getSelection(),le=x.textContent.length,ae=Math.min(C.start,le),Oe=C.end===void 0?ae:Math.min(C.end,le);!k.extend&&ae>Oe&&(g=Oe,Oe=ae,ae=g);var D=Yd(x,ae),j=Yd(x,Oe);if(D&&j&&(k.rangeCount!==1||k.anchorNode!==D.node||k.anchorOffset!==D.offset||k.focusNode!==j.node||k.focusOffset!==j.offset)){var M=Q.createRange();M.setStart(D.node,D.offset),k.removeAllRanges(),ae>Oe?(k.addRange(M),k.extend(j.node,j.offset)):(M.setEnd(j.node,j.offset),k.addRange(M))}}}}for(Q=[],k=x;k=k.parentNode;)k.nodeType===1&&Q.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var G=Q[x];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}ci=!!cc,fc=cc=null}finally{Ce=o,F.p=l,B.T=a}}e.current=t,nt=2}}function rp(){if(nt===2){nt=0;var e=Kn,t=vr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=B.T,B.T=null;var l=F.p;F.p=2;var o=Ce;Ce|=4;try{Um(e,t.alternate,t)}finally{Ce=o,F.p=l,B.T=a}}nt=3}}function lp(){if(nt===4||nt===3){nt=0,db();var e=Kn,t=vr,a=gr,l=Xm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,vr=Kn=null,sp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Fn=null),go(a),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Gr,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=B.T,o=F.p,F.p=2,B.T=null;try{for(var c=e.onRecoverableError,g=0;g<l.length;g++){var x=l[g];c(x.value,{componentStack:x.stack})}}finally{B.T=t,F.p=o}}(gr&3)!==0&&Is(),nn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===$u?Cl++:(Cl=0,$u=e):Cl=0,Tl(0)}}function sp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ll(t)))}function Is(e){return ap(),rp(),lp(),ip()}function ip(){if(nt!==5)return!1;var e=Kn,t=Ku;Ku=0;var a=go(gr),l=B.T,o=F.p;try{F.p=32>a?32:a,B.T=null,a=Zu,Zu=null;var c=Kn,g=gr;if(nt=0,vr=Kn=null,gr=0,(Ce&6)!==0)throw Error(i(331));var x=Ce;if(Ce|=4,Qm(c.current),Gm(c,c.current,g,a),Ce=x,Tl(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Gr,c)}catch{}return!0}finally{F.p=o,B.T=l,sp(e,t)}}function op(e,t,a){t=Ut(a,t),t=Au(e.stateNode,t,2),e=Bn(e,t,2),e!==null&&(Yr(e,2),nn(e))}function je(e,t,a){if(e.tag===3)op(e,e,a);else for(;t!==null;){if(t.tag===3){op(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Fn===null||!Fn.has(l))){e=Ut(a,e),a=dm(2),l=Bn(t,a,2),l!==null&&(hm(a,l,t,e),Yr(l,2),nn(l));break}}t=t.return}}function ec(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Hx;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(Qu=!0,o.add(a),e=Qx.bind(null,e,t,a),t.then(e,e))}function Qx(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,De===e&&(ge&a)===a&&(Be===4||Be===3&&(ge&62914560)===ge&&300>Jt()-Fu?(Ce&2)===0&&yr(e,0):Vu|=a,pr===ge&&(pr=0)),nn(e)}function up(e,t){t===0&&(t=ld()),e=er(e,t),e!==null&&(Yr(e,t),nn(e))}function Vx(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),up(e,a)}function Xx(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(t),up(e,a)}function Fx(e,t){return ho(e,t)}var Ws=null,xr=null,tc=!1,ei=!1,nc=!1,Aa=0;function nn(e){e!==xr&&e.next===null&&(xr===null?Ws=xr=e:xr=xr.next=e),ei=!0,tc||(tc=!0,Zx())}function Tl(e,t){if(!nc&&ei){nc=!0;do for(var a=!1,l=Ws;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var g=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-St(42|e)+1)-1,c&=o&~(g&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,hp(l,c))}else c=ge,c=ss(l,l===De?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Pr(l,c)||(a=!0,hp(l,c));l=l.next}while(a);nc=!1}}function Kx(){cp()}function cp(){ei=tc=!1;var e=0;Aa!==0&&(a1()&&(e=Aa),Aa=0);for(var t=Jt(),a=null,l=Ws;l!==null;){var o=l.next,c=fp(l,t);c===0?(l.next=null,a===null?Ws=o:a.next=o,o===null&&(xr=a)):(a=l,(e!==0||(c&3)!==0)&&(ei=!0)),l=o}Tl(e)}function fp(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-St(c),x=1<<g,C=o[g];C===-1?((x&a)===0||(x&l)!==0)&&(o[g]=xb(x,t)):C<=t&&(e.expiredLanes|=x),c&=~x}if(t=De,a=ge,a=ss(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&mo(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Pr(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&mo(l),go(a)){case 2:case 8:a=nd;break;case 32:a=as;break;case 268435456:a=ad;break;default:a=as}return l=dp.bind(null,e),a=ho(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&mo(l),e.callbackPriority=2,e.callbackNode=null,2}function dp(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Is()&&e.callbackNode!==a)return null;var l=ge;return l=ss(e,e===De?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Km(e,l,t),fp(e,Jt()),e.callbackNode!=null&&e.callbackNode===a?dp.bind(null,e):null)}function hp(e,t){if(Is())return null;Km(e,t,!0)}function Zx(){l1(function(){(Ce&6)!==0?ho(td,Kx):cp()})}function ac(){return Aa===0&&(Aa=rd()),Aa}function mp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fs(""+e)}function pp(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function $x(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var c=mp((o[ft]||null).action),g=l.submitter;g&&(t=(t=g[ft]||null)?mp(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var x=new ps("action","action",null,l,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Aa!==0){var C=g?pp(o,g):new FormData(o);wu(a,{pending:!0,data:C,method:o.method,action:c},null,C)}}else typeof c=="function"&&(x.preventDefault(),C=g?pp(o,g):new FormData(o),wu(a,{pending:!0,data:C,method:o.method,action:c},c,C))},currentTarget:o}]})}}for(var rc=0;rc<Po.length;rc++){var lc=Po[rc],Jx=lc.toLowerCase(),Ix=lc[0].toUpperCase()+lc.slice(1);Vt(Jx,"on"+Ix)}Vt(Kd,"onAnimationEnd"),Vt(Zd,"onAnimationIteration"),Vt($d,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(px,"onTransitionRun"),Vt(vx,"onTransitionStart"),Vt(gx,"onTransitionCancel"),Vt(Jd,"onTransitionEnd"),Qa("onMouseEnter",["mouseout","mouseover"]),Qa("onMouseLeave",["mouseout","mouseover"]),Qa("onPointerEnter",["pointerout","pointerover"]),Qa("onPointerLeave",["pointerout","pointerover"]),da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),da("onBeforeInput",["compositionend","keypress","textInput","paste"]),da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nl="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(" "),Wx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nl));function vp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var g=l.length-1;0<=g;g--){var x=l[g],C=x.instance,z=x.currentTarget;if(x=x.listener,C!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=z;try{c(o)}catch(q){Gs(q)}o.currentTarget=null,c=C}else for(g=0;g<l.length;g++){if(x=l[g],C=x.instance,z=x.currentTarget,x=x.listener,C!==c&&o.isPropagationStopped())break e;c=x,o.currentTarget=z;try{c(o)}catch(q){Gs(q)}o.currentTarget=null,c=C}}}}function pe(e,t){var a=t[yo];a===void 0&&(a=t[yo]=new Set);var l=e+"__bubble";a.has(l)||(gp(t,e,2,!1),a.add(l))}function sc(e,t,a){var l=0;t&&(l|=4),gp(a,e,l,t)}var ti="_reactListening"+Math.random().toString(36).slice(2);function ic(e){if(!e[ti]){e[ti]=!0,cd.forEach(function(a){a!=="selectionchange"&&(Wx.has(a)||sc(a,!1,e),sc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ti]||(t[ti]=!0,sc("selectionchange",!1,t))}}function gp(e,t,a,l){switch(Gp(t)){case 2:var o=T1;break;case 8:o=N1;break;default:o=Sc}a=o.bind(null,t,a,e),o=void 0,!Oo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function oc(e,t,a,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var x=l.stateNode.containerInfo;if(x===o)break;if(g===4)for(g=l.return;g!==null;){var C=g.tag;if((C===3||C===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;x!==null;){if(g=Ga(x),g===null)return;if(C=g.tag,C===5||C===6||C===26||C===27){l=c=g;continue e}x=x.parentNode}}l=l.return}Rd(function(){var z=c,q=No(a),Q=[];e:{var U=Id.get(e);if(U!==void 0){var k=ps,le=e;switch(e){case"keypress":if(hs(a)===0)break e;case"keydown":case"keyup":k=Fb;break;case"focusin":le="focus",k=_o;break;case"focusout":le="blur",k=_o;break;case"beforeblur":case"afterblur":k=_o;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Ub;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=$b;break;case Kd:case Zd:case $d:k=Bb;break;case Jd:k=Ib;break;case"scroll":case"scrollend":k=_b;break;case"wheel":k=ex;break;case"copy":case"cut":case"paste":k=qb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Od;break;case"toggle":case"beforetoggle":k=nx}var ae=(t&4)!==0,Oe=!ae&&(e==="scroll"||e==="scrollend"),D=ae?U!==null?U+"Capture":null:U;ae=[];for(var j=z,M;j!==null;){var G=j;if(M=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||M===null||D===null||(G=Xr(j,D),G!=null&&ae.push(Al(j,G,M))),Oe)break;j=j.return}0<ae.length&&(U=new k(U,le,null,a,q),Q.push({event:U,listeners:ae}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",U&&a!==To&&(le=a.relatedTarget||a.fromElement)&&(Ga(le)||le[qa]))break e;if((k||U)&&(U=q.window===q?q:(U=q.ownerDocument)?U.defaultView||U.parentWindow:window,k?(le=a.relatedTarget||a.toElement,k=z,le=le?Ga(le):null,le!==null&&(Oe=f(le),ae=le.tag,le!==Oe||ae!==5&&ae!==27&&ae!==6)&&(le=null)):(k=null,le=z),k!==le)){if(ae=Nd,G="onMouseLeave",D="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Od,G="onPointerLeave",D="onPointerEnter",j="pointer"),Oe=k==null?U:Vr(k),M=le==null?U:Vr(le),U=new ae(G,j+"leave",k,a,q),U.target=Oe,U.relatedTarget=M,G=null,Ga(q)===z&&(ae=new ae(D,j+"enter",le,a,q),ae.target=M,ae.relatedTarget=Oe,G=ae),Oe=G,k&&le)t:{for(ae=k,D=le,j=0,M=ae;M;M=Sr(M))j++;for(M=0,G=D;G;G=Sr(G))M++;for(;0<j-M;)ae=Sr(ae),j--;for(;0<M-j;)D=Sr(D),M--;for(;j--;){if(ae===D||D!==null&&ae===D.alternate)break t;ae=Sr(ae),D=Sr(D)}ae=null}else ae=null;k!==null&&yp(Q,U,k,ae,!1),le!==null&&Oe!==null&&yp(Q,Oe,le,ae,!0)}}e:{if(U=z?Vr(z):window,k=U.nodeName&&U.nodeName.toLowerCase(),k==="select"||k==="input"&&U.type==="file")var J=Ld;else if(Ud(U))if(Bd)J=dx;else{J=cx;var he=ux}else k=U.nodeName,!k||k.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?z&&Co(z.elementType)&&(J=Ld):J=fx;if(J&&(J=J(e,z))){kd(Q,J,a,q);break e}he&&he(e,U,z),e==="focusout"&&z&&U.type==="number"&&z.memoizedProps.value!=null&&Ro(U,"number",U.value)}switch(he=z?Vr(z):window,e){case"focusin":(Ud(he)||he.contentEditable==="true")&&(Ja=he,Ho=z,el=null);break;case"focusout":el=Ho=Ja=null;break;case"mousedown":qo=!0;break;case"contextmenu":case"mouseup":case"dragend":qo=!1,Xd(Q,a,q);break;case"selectionchange":if(mx)break;case"keydown":case"keyup":Xd(Q,a,q)}var W;if(Uo)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else $a?_d(e,a)&&(re="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(re="onCompositionStart");re&&(jd&&a.locale!=="ko"&&($a||re!=="onCompositionStart"?re==="onCompositionEnd"&&$a&&(W=Cd()):(zn=q,jo="value"in zn?zn.value:zn.textContent,$a=!0)),he=ni(z,re),0<he.length&&(re=new Ad(re,e,null,a,q),Q.push({event:re,listeners:he}),W?re.data=W:(W=zd(a),W!==null&&(re.data=W)))),(W=rx?lx(e,a):sx(e,a))&&(re=ni(z,"onBeforeInput"),0<re.length&&(he=new Ad("onBeforeInput","beforeinput",null,a,q),Q.push({event:he,listeners:re}),he.data=W)),$x(Q,e,z,a,q)}vp(Q,t)})}function Al(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ni(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Xr(e,a),o!=null&&l.unshift(Al(e,o,c)),o=Xr(e,t),o!=null&&l.push(Al(e,o,c))),e.tag===3)return l;e=e.return}return[]}function Sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function yp(e,t,a,l,o){for(var c=t._reactName,g=[];a!==null&&a!==l;){var x=a,C=x.alternate,z=x.stateNode;if(x=x.tag,C!==null&&C===l)break;x!==5&&x!==26&&x!==27||z===null||(C=z,o?(z=Xr(a,c),z!=null&&g.unshift(Al(a,z,C))):o||(z=Xr(a,c),z!=null&&g.push(Al(a,z,C)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var e1=/\r\n?/g,t1=/\u0000|\uFFFD/g;function bp(e){return(typeof e=="string"?e:""+e).replace(e1,`
`).replace(t1,"")}function xp(e,t){return t=bp(t),bp(e)===t}function ai(){}function Ae(e,t,a,l,o,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Fa(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Fa(e,""+l);break;case"className":os(e,"class",l);break;case"tabIndex":os(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":os(e,a,l);break;case"style":Ed(e,l,c);break;case"data":if(t!=="object"){os(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=fs(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ae(e,t,"name",o.name,o,null),Ae(e,t,"formEncType",o.formEncType,o,null),Ae(e,t,"formMethod",o.formMethod,o,null),Ae(e,t,"formTarget",o.formTarget,o,null)):(Ae(e,t,"encType",o.encType,o,null),Ae(e,t,"method",o.method,o,null),Ae(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=fs(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ai);break;case"onScroll":l!=null&&pe("scroll",e);break;case"onScrollEnd":l!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=fs(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":pe("beforetoggle",e),pe("toggle",e),is(e,"popover",l);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":is(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Db.get(a)||a,is(e,a,l))}}function uc(e,t,a,l,o,c){switch(a){case"style":Ed(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Fa(e,l):(typeof l=="number"||typeof l=="bigint")&&Fa(e,""+l);break;case"onScroll":l!=null&&pe("scroll",e);break;case"onScrollEnd":l!=null&&pe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ai);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[ft]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):is(e,a,l)}}}function at(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var l=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var g=a[c];if(g!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ae(e,t,c,g,a,null)}}o&&Ae(e,t,"srcSet",a.srcSet,a,null),l&&Ae(e,t,"src",a.src,a,null);return;case"input":pe("invalid",e);var x=c=g=o=null,C=null,z=null;for(l in a)if(a.hasOwnProperty(l)){var q=a[l];if(q!=null)switch(l){case"name":o=q;break;case"type":g=q;break;case"checked":C=q;break;case"defaultChecked":z=q;break;case"value":c=q;break;case"defaultValue":x=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:Ae(e,t,l,q,a,null)}}yd(e,c,x,C,z,g,o,!1),us(e);return;case"select":pe("invalid",e),l=g=c=null;for(o in a)if(a.hasOwnProperty(o)&&(x=a[o],x!=null))switch(o){case"value":c=x;break;case"defaultValue":g=x;break;case"multiple":l=x;default:Ae(e,t,o,x,a,null)}t=c,a=g,e.multiple=!!l,t!=null?Xa(e,!!l,t,!1):a!=null&&Xa(e,!!l,a,!0);return;case"textarea":pe("invalid",e),c=o=l=null;for(g in a)if(a.hasOwnProperty(g)&&(x=a[g],x!=null))switch(g){case"value":l=x;break;case"defaultValue":o=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(i(91));break;default:Ae(e,t,g,x,a,null)}xd(e,l,o,c),us(e);return;case"option":for(C in a)if(a.hasOwnProperty(C)&&(l=a[C],l!=null))switch(C){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ae(e,t,C,l,a,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(l=0;l<Nl.length;l++)pe(Nl[l],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ae(e,t,z,l,a,null)}return;default:if(Co(t)){for(q in a)a.hasOwnProperty(q)&&(l=a[q],l!==void 0&&uc(e,t,q,l,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(l=a[x],l!=null&&Ae(e,t,x,l,a,null))}function n1(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,g=null,x=null,C=null,z=null,q=null;for(k in a){var Q=a[k];if(a.hasOwnProperty(k)&&Q!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":C=Q;default:l.hasOwnProperty(k)||Ae(e,t,k,null,l,Q)}}for(var U in l){var k=l[U];if(Q=a[U],l.hasOwnProperty(U)&&(k!=null||Q!=null))switch(U){case"type":c=k;break;case"name":o=k;break;case"checked":z=k;break;case"defaultChecked":q=k;break;case"value":g=k;break;case"defaultValue":x=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(i(137,t));break;default:k!==Q&&Ae(e,t,U,k,l,Q)}}wo(e,g,x,C,z,q,c,o);return;case"select":k=g=x=U=null;for(c in a)if(C=a[c],a.hasOwnProperty(c)&&C!=null)switch(c){case"value":break;case"multiple":k=C;default:l.hasOwnProperty(c)||Ae(e,t,c,null,l,C)}for(o in l)if(c=l[o],C=a[o],l.hasOwnProperty(o)&&(c!=null||C!=null))switch(o){case"value":U=c;break;case"defaultValue":x=c;break;case"multiple":g=c;default:c!==C&&Ae(e,t,o,c,l,C)}t=x,a=g,l=k,U!=null?Xa(e,!!a,U,!1):!!l!=!!a&&(t!=null?Xa(e,!!a,t,!0):Xa(e,!!a,a?[]:"",!1));return;case"textarea":k=U=null;for(x in a)if(o=a[x],a.hasOwnProperty(x)&&o!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ae(e,t,x,null,l,o)}for(g in l)if(o=l[g],c=a[g],l.hasOwnProperty(g)&&(o!=null||c!=null))switch(g){case"value":U=o;break;case"defaultValue":k=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(i(91));break;default:o!==c&&Ae(e,t,g,o,l,c)}bd(e,U,k);return;case"option":for(var le in a)if(U=a[le],a.hasOwnProperty(le)&&U!=null&&!l.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:Ae(e,t,le,null,l,U)}for(C in l)if(U=l[C],k=a[C],l.hasOwnProperty(C)&&U!==k&&(U!=null||k!=null))switch(C){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ae(e,t,C,U,l,k)}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 ae in a)U=a[ae],a.hasOwnProperty(ae)&&U!=null&&!l.hasOwnProperty(ae)&&Ae(e,t,ae,null,l,U);for(z in l)if(U=l[z],k=a[z],l.hasOwnProperty(z)&&U!==k&&(U!=null||k!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(i(137,t));break;default:Ae(e,t,z,U,l,k)}return;default:if(Co(t)){for(var Oe in a)U=a[Oe],a.hasOwnProperty(Oe)&&U!==void 0&&!l.hasOwnProperty(Oe)&&uc(e,t,Oe,void 0,l,U);for(q in l)U=l[q],k=a[q],!l.hasOwnProperty(q)||U===k||U===void 0&&k===void 0||uc(e,t,q,U,l,k);return}}for(var D in a)U=a[D],a.hasOwnProperty(D)&&U!=null&&!l.hasOwnProperty(D)&&Ae(e,t,D,null,l,U);for(Q in l)U=l[Q],k=a[Q],!l.hasOwnProperty(Q)||U===k||U==null&&k==null||Ae(e,t,Q,U,l,k)}var cc=null,fc=null;function ri(e){return e.nodeType===9?e:e.ownerDocument}function Sp(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 Ep(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 dc(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 hc=null;function a1(){var e=window.event;return e&&e.type==="popstate"?e===hc?!1:(hc=e,!0):(hc=null,!1)}var wp=typeof setTimeout=="function"?setTimeout:void 0,r1=typeof clearTimeout=="function"?clearTimeout:void 0,Rp=typeof Promise=="function"?Promise:void 0,l1=typeof queueMicrotask=="function"?queueMicrotask:typeof Rp<"u"?function(e){return Rp.resolve(null).then(e).catch(s1)}:wp;function s1(e){setTimeout(function(){throw e})}function $n(e){return e==="head"}function Cp(e,t){var a=t,l=0,o=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(0<l&&8>l){a=l;var g=e.ownerDocument;if(a&1&&Ol(g.documentElement),a&2&&Ol(g.body),a&4)for(a=g.head,Ol(a),g=a.firstChild;g;){var x=g.nextSibling,C=g.nodeName;g[Qr]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=x}}if(o===0){e.removeChild(c),Ll(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=c}while(a);Ll(t)}function mc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":mc(a),bo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function i1(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Qr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function o1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ft(e.nextSibling),e===null))return null;return e}function pc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function u1(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ft(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var vc=null;function Tp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function Np(e,t,a){switch(t=ri(a),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 Ol(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bo(e)}var Gt=new Map,Ap=new Set;function li(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cn=F.d;F.d={f:c1,r:f1,D:d1,C:h1,L:m1,m:p1,X:g1,S:v1,M:y1};function c1(){var e=Cn.f(),t=$s();return e||t}function f1(e){var t=Pa(e);t!==null&&t.tag===5&&t.type==="form"?Kh(t):Cn.r(e)}var Er=typeof document>"u"?null:document;function Op(e,t,a){var l=Er;if(l&&typeof t=="string"&&t){var o=zt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Ap.has(o)||(Ap.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),at(t,"link",e),Je(t),l.head.appendChild(t)))}}function d1(e){Cn.D(e),Op("dns-prefetch",e,null)}function h1(e,t){Cn.C(e,t),Op("preconnect",e,t)}function m1(e,t,a){Cn.L(e,t,a);var l=Er;if(l&&e&&t){var o='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+zt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+zt(a.imageSizes)+'"]')):o+='[href="'+zt(e)+'"]';var c=o;switch(t){case"style":c=wr(e);break;case"script":c=Rr(e)}Gt.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Gt.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(jl(c))||t==="script"&&l.querySelector(Dl(c))||(t=l.createElement("link"),at(t,"link",e),Je(t),l.head.appendChild(t)))}}function p1(e,t){Cn.m(e,t);var a=Er;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+zt(l)+'"][href="'+zt(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Rr(e)}if(!Gt.has(c)&&(e=b({rel:"modulepreload",href:e},t),Gt.set(c,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Dl(c)))return}l=a.createElement("link"),at(l,"link",e),Je(l),a.head.appendChild(l)}}}function v1(e,t,a){Cn.S(e,t,a);var l=Er;if(l&&e){var o=Ya(l).hoistableStyles,c=wr(e);t=t||"default";var g=o.get(c);if(!g){var x={loading:0,preload:null};if(g=l.querySelector(jl(c)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Gt.get(c))&&gc(e,a);var C=g=l.createElement("link");Je(C),at(C,"link",e),C._p=new Promise(function(z,q){C.onload=z,C.onerror=q}),C.addEventListener("load",function(){x.loading|=1}),C.addEventListener("error",function(){x.loading|=2}),x.loading|=4,si(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:x},o.set(c,g)}}}function g1(e,t){Cn.X(e,t);var a=Er;if(a&&e){var l=Ya(a).hoistableScripts,o=Rr(e),c=l.get(o);c||(c=a.querySelector(Dl(o)),c||(e=b({src:e,async:!0},t),(t=Gt.get(o))&&yc(e,t),c=a.createElement("script"),Je(c),at(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function y1(e,t){Cn.M(e,t);var a=Er;if(a&&e){var l=Ya(a).hoistableScripts,o=Rr(e),c=l.get(o);c||(c=a.querySelector(Dl(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=Gt.get(o))&&yc(e,t),c=a.createElement("script"),Je(c),at(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function jp(e,t,a,l){var o=(o=oe.current)?li(o):null;if(!o)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=wr(a.href),a=Ya(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=wr(a.href);var c=Ya(o).hoistableStyles,g=c.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=o.querySelector(jl(e)))&&!c._p&&(g.instance=c,g.state.loading=5),Gt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Gt.set(e,a),c||b1(o,e,a,g.state))),t&&l===null)throw Error(i(528,""));return g}if(t&&l!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Rr(a),a=Ya(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function wr(e){return'href="'+zt(e)+'"'}function jl(e){return'link[rel="stylesheet"]['+e+"]"}function Dp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function b1(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),at(t,"link",a),Je(t),e.head.appendChild(t))}function Rr(e){return'[src="'+zt(e)+'"]'}function Dl(e){return"script[async]"+e}function Mp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+zt(a.href)+'"]');if(l)return t.instance=l,Je(l),l;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Je(l),at(l,"style",o),si(l,a.precedence,e),t.instance=l;case"stylesheet":o=wr(a.href);var c=e.querySelector(jl(o));if(c)return t.state.loading|=4,t.instance=c,Je(c),c;l=Dp(a),(o=Gt.get(o))&&gc(l,o),c=(e.ownerDocument||e).createElement("link"),Je(c);var g=c;return g._p=new Promise(function(x,C){g.onload=x,g.onerror=C}),at(c,"link",l),t.state.loading|=4,si(c,a.precedence,e),t.instance=c;case"script":return c=Rr(a.src),(o=e.querySelector(Dl(c)))?(t.instance=o,Je(o),o):(l=a,(o=Gt.get(c))&&(l=b({},a),yc(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),Je(o),at(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,si(l,a.precedence,e));return t.instance}function si(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,g=0;g<l.length;g++){var x=l[g];if(x.dataset.precedence===t)c=x;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ii=null;function _p(e,t,a){if(ii===null){var l=new Map,o=ii=new Map;o.set(a,l)}else o=ii,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[Qr]||c[rt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var x=l.get(g);x?x.push(c):l.set(g,[c])}}return l}function zp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function x1(e,t,a){if(a===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 Up(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Ml=null;function S1(){}function E1(e,t,a){if(Ml===null)throw Error(i(475));var l=Ml;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=wr(a.href),c=e.querySelector(jl(o));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=oi.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=c,Je(c);return}c=e.ownerDocument||e,a=Dp(a),(o=Gt.get(o))&&gc(a,o),c=c.createElement("link"),Je(c);var g=c;g._p=new Promise(function(x,C){g.onload=x,g.onerror=C}),at(c,"link",a),t.instance=c}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=oi.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function w1(){if(Ml===null)throw Error(i(475));var e=Ml;return e.stylesheets&&e.count===0&&bc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&bc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function oi(){if(this.count--,this.count===0){if(this.stylesheets)bc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ui=null;function bc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ui=new Map,t.forEach(R1,e),ui=null,oi.call(e))}function R1(e,t){if(!(t.state.loading&4)){var a=ui.get(e);if(a)var l=a.get(null);else{a=new Map,ui.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var g=o[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}o=t.instance,g=o.getAttribute("data-precedence"),c=a.get(g)||l,c===l&&a.set(null,o),a.set(g,o),this.count++,l=oi.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var _l={$$typeof:H,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function C1(e,t,a,l,o,c,g,x){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=po(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.hiddenUpdates=po(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function kp(e,t,a,l,o,c,g,x,C,z,q,Q){return e=new C1(e,t,a,g,x,C,z,Q),t=1,c===!0&&(t|=24),c=wt(3,null,null,t),e.current=c,c.stateNode=e,t=eu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},ru(c),e}function Lp(e){return e?(e=tr,e):tr}function Bp(e,t,a,l,o,c){o=Lp(o),l.context===null?l.context=o:l.pendingContext=o,l=Ln(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Bn(e,l,t),a!==null&&(At(a,e,t),ul(a,e,t))}function Hp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function xc(e,t){Hp(e,t),(e=e.alternate)&&Hp(e,t)}function qp(e){if(e.tag===13){var t=er(e,67108864);t!==null&&At(t,e,67108864),xc(e,67108864)}}var ci=!0;function T1(e,t,a,l){var o=B.T;B.T=null;var c=F.p;try{F.p=2,Sc(e,t,a,l)}finally{F.p=c,B.T=o}}function N1(e,t,a,l){var o=B.T;B.T=null;var c=F.p;try{F.p=8,Sc(e,t,a,l)}finally{F.p=c,B.T=o}}function Sc(e,t,a,l){if(ci){var o=Ec(l);if(o===null)oc(e,t,l,fi,a),Pp(e,l);else if(O1(o,e,t,a,l))l.stopPropagation();else if(Pp(e,l),t&4&&-1<A1.indexOf(e)){for(;o!==null;){var c=Pa(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=fa(c.pendingLanes);if(g!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;g;){var C=1<<31-St(g);x.entanglements[1]|=C,g&=~C}nn(c),(Ce&6)===0&&(Ks=Jt()+500,Tl(0))}}break;case 13:x=er(c,2),x!==null&&At(x,c,2),$s(),xc(c,2)}if(c=Ec(l),c===null&&oc(e,t,l,fi,a),c===o)break;o=c}o!==null&&l.stopPropagation()}else oc(e,t,l,null,a)}}function Ec(e){return e=No(e),wc(e)}var fi=null;function wc(e){if(fi=null,e=Ga(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fi=e,null}function Gp(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(hb()){case td:return 2;case nd:return 8;case as:case mb:return 32;case ad:return 268435456;default:return 32}default:return 32}}var Rc=!1,Jn=null,In=null,Wn=null,zl=new Map,Ul=new Map,ea=[],A1="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 Pp(e,t){switch(e){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":zl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(t.pointerId)}}function kl(e,t,a,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Pa(t),t!==null&&qp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function O1(e,t,a,l,o){switch(t){case"focusin":return Jn=kl(Jn,e,t,a,l,o),!0;case"dragenter":return In=kl(In,e,t,a,l,o),!0;case"mouseover":return Wn=kl(Wn,e,t,a,l,o),!0;case"pointerover":var c=o.pointerId;return zl.set(c,kl(zl.get(c)||null,e,t,a,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Ul.set(c,kl(Ul.get(c)||null,e,t,a,l,o)),!0}return!1}function Yp(e){var t=Ga(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Eb(e.priority,function(){if(a.tag===13){var l=Nt();l=vo(l);var o=er(a,l);o!==null&&At(o,a,l),xc(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function di(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ec(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);To=l,a.target.dispatchEvent(l),To=null}else return t=Pa(a),t!==null&&qp(t),e.blockedOn=a,!1;t.shift()}return!0}function Qp(e,t,a){di(e)&&a.delete(t)}function j1(){Rc=!1,Jn!==null&&di(Jn)&&(Jn=null),In!==null&&di(In)&&(In=null),Wn!==null&&di(Wn)&&(Wn=null),zl.forEach(Qp),Ul.forEach(Qp)}function hi(e,t){e.blockedOn===t&&(e.blockedOn=null,Rc||(Rc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,j1)))}var mi=null;function Vp(e){mi!==e&&(mi=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){mi===e&&(mi=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(wc(l||a)===null)continue;break}var c=Pa(a);c!==null&&(e.splice(t,3),t-=3,wu(c,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ll(e){function t(C){return hi(C,e)}Jn!==null&&hi(Jn,e),In!==null&&hi(In,e),Wn!==null&&hi(Wn,e),zl.forEach(t),Ul.forEach(t);for(var a=0;a<ea.length;a++){var l=ea[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ea.length&&(a=ea[0],a.blockedOn===null);)Yp(a),a.blockedOn===null&&ea.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],c=a[l+1],g=o[ft]||null;if(typeof c=="function")g||Vp(a);else if(g){var x=null;if(c&&c.hasAttribute("formAction")){if(o=c,g=c[ft]||null)x=g.formAction;else if(wc(o)!==null)continue}else x=g.action;typeof x=="function"?a[l+1]=x:(a.splice(l,3),l-=3),Vp(a)}}}function Cc(e){this._internalRoot=e}pi.prototype.render=Cc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,l=Nt();Bp(a,l,e,t,null,null)},pi.prototype.unmount=Cc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bp(e.current,2,null,e,null,null),$s(),t[qa]=null}};function pi(e){this._internalRoot=e}pi.prototype.unstable_scheduleHydration=function(e){if(e){var t=od();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ea.length&&t!==0&&t<ea[a].priority;a++);ea.splice(a,0,e),a===0&&Yp(e)}};var Xp=r.version;if(Xp!=="19.1.0")throw Error(i(527,Xp,"19.1.0"));F.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=v(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var D1={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vi.isDisabled&&vi.supportsFiber)try{Gr=vi.inject(D1),xt=vi}catch{}}return Hl.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,l="",o=om,c=um,g=cm,x=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(x=t.unstable_transitionCallbacks)),t=kp(e,1,!1,null,null,a,l,o,c,g,x,null),e[qa]=t.current,ic(e),new Cc(t)},Hl.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var l=!1,o="",c=om,g=um,x=cm,C=null,z=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(C=a.unstable_transitionCallbacks),a.formState!==void 0&&(z=a.formState)),t=kp(e,1,!0,t,a??null,l,o,c,g,x,C,z),t.context=Lp(null),a=t.current,l=Nt(),l=vo(l),o=Ln(l),o.callback=null,Bn(a,o,l),a=l,t.current.lanes=a,Yr(t,a),nn(t),e[qa]=t.current,ic(e),new pi(t)},Hl.version="19.1.0",Hl}var n0;function P1(){if(n0)return Ac.exports;n0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Ac.exports=G1(),Ac.exports}var Y1=P1();function W0(n,r){return function(){return n.apply(r,arguments)}}const{toString:Q1}=Object.prototype,{getPrototypeOf:vf}=Object,{iterator:Pi,toStringTag:ev}=Symbol,Yi=(n=>r=>{const s=Q1.call(r);return n[s]||(n[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=n=>(n=n.toLowerCase(),r=>Yi(r)===n),Qi=n=>r=>typeof r===n,{isArray:_r}=Array,Vl=Qi("undefined");function V1(n){return n!==null&&!Vl(n)&&n.constructor!==null&&!Vl(n.constructor)&&vt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const tv=Zt("ArrayBuffer");function X1(n){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&tv(n.buffer),r}const F1=Qi("string"),vt=Qi("function"),nv=Qi("number"),Vi=n=>n!==null&&typeof n=="object",K1=n=>n===!0||n===!1,Ri=n=>{if(Yi(n)!=="object")return!1;const r=vf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(ev in n)&&!(Pi in n)},Z1=Zt("Date"),$1=Zt("File"),J1=Zt("Blob"),I1=Zt("FileList"),W1=n=>Vi(n)&&vt(n.pipe),eS=n=>{let r;return n&&(typeof FormData=="function"&&n instanceof FormData||vt(n.append)&&((r=Yi(n))==="formdata"||r==="object"&&vt(n.toString)&&n.toString()==="[object FormData]"))},tS=Zt("URLSearchParams"),[nS,aS,rS,lS]=["ReadableStream","Request","Response","Headers"].map(Zt),sS=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $l(n,r,{allOwnKeys:s=!1}={}){if(n===null||typeof n>"u")return;let i,u;if(typeof n!="object"&&(n=[n]),_r(n))for(i=0,u=n.length;i<u;i++)r.call(null,n[i],i,n);else{const f=s?Object.getOwnPropertyNames(n):Object.keys(n),d=f.length;let h;for(i=0;i<d;i++)h=f[i],r.call(null,n[h],h,n)}}function av(n,r){r=r.toLowerCase();const s=Object.keys(n);let i=s.length,u;for(;i-- >0;)if(u=s[i],r===u.toLowerCase())return u;return null}const ja=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rv=n=>!Vl(n)&&n!==ja;function Zc(){const{caseless:n}=rv(this)&&this||{},r={},s=(i,u)=>{const f=n&&av(r,u)||u;Ri(r[f])&&Ri(i)?r[f]=Zc(r[f],i):Ri(i)?r[f]=Zc({},i):_r(i)?r[f]=i.slice():r[f]=i};for(let i=0,u=arguments.length;i<u;i++)arguments[i]&&$l(arguments[i],s);return r}const iS=(n,r,s,{allOwnKeys:i}={})=>($l(r,(u,f)=>{s&&vt(u)?n[f]=W0(u,s):n[f]=u},{allOwnKeys:i}),n),oS=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),uS=(n,r,s,i)=>{n.prototype=Object.create(r.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:r.prototype}),s&&Object.assign(n.prototype,s)},cS=(n,r,s,i)=>{let u,f,d;const h={};if(r=r||{},n==null)return r;do{for(u=Object.getOwnPropertyNames(n),f=u.length;f-- >0;)d=u[f],(!i||i(d,n,r))&&!h[d]&&(r[d]=n[d],h[d]=!0);n=s!==!1&&vf(n)}while(n&&(!s||s(n,r))&&n!==Object.prototype);return r},fS=(n,r,s)=>{n=String(n),(s===void 0||s>n.length)&&(s=n.length),s-=r.length;const i=n.indexOf(r,s);return i!==-1&&i===s},dS=n=>{if(!n)return null;if(_r(n))return n;let r=n.length;if(!nv(r))return null;const s=new Array(r);for(;r-- >0;)s[r]=n[r];return s},hS=(n=>r=>n&&r instanceof n)(typeof Uint8Array<"u"&&vf(Uint8Array)),mS=(n,r)=>{const i=(n&&n[Pi]).call(n);let u;for(;(u=i.next())&&!u.done;){const f=u.value;r.call(n,f[0],f[1])}},pS=(n,r)=>{let s;const i=[];for(;(s=n.exec(r))!==null;)i.push(s);return i},vS=Zt("HTMLFormElement"),gS=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,i,u){return i.toUpperCase()+u}),a0=(({hasOwnProperty:n})=>(r,s)=>n.call(r,s))(Object.prototype),yS=Zt("RegExp"),lv=(n,r)=>{const s=Object.getOwnPropertyDescriptors(n),i={};$l(s,(u,f)=>{let d;(d=r(u,f,n))!==!1&&(i[f]=d||u)}),Object.defineProperties(n,i)},bS=n=>{lv(n,(r,s)=>{if(vt(n)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const i=n[s];if(vt(i)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},xS=(n,r)=>{const s={},i=u=>{u.forEach(f=>{s[f]=!0})};return _r(n)?i(n):i(String(n).split(r)),s},SS=()=>{},ES=(n,r)=>n!=null&&Number.isFinite(n=+n)?n:r;function wS(n){return!!(n&&vt(n.append)&&n[ev]==="FormData"&&n[Pi])}const RS=n=>{const r=new Array(10),s=(i,u)=>{if(Vi(i)){if(r.indexOf(i)>=0)return;if(!("toJSON"in i)){r[u]=i;const f=_r(i)?[]:{};return $l(i,(d,h)=>{const v=s(d,u+1);!Vl(v)&&(f[h]=v)}),r[u]=void 0,f}}return i};return s(n,0)},CS=Zt("AsyncFunction"),TS=n=>n&&(Vi(n)||vt(n))&&vt(n.then)&&vt(n.catch),sv=((n,r)=>n?setImmediate:r?((s,i)=>(ja.addEventListener("message",({source:u,data:f})=>{u===ja&&f===s&&i.length&&i.shift()()},!1),u=>{i.push(u),ja.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",vt(ja.postMessage)),NS=typeof queueMicrotask<"u"?queueMicrotask.bind(ja):typeof process<"u"&&process.nextTick||sv,AS=n=>n!=null&&vt(n[Pi]),L={isArray:_r,isArrayBuffer:tv,isBuffer:V1,isFormData:eS,isArrayBufferView:X1,isString:F1,isNumber:nv,isBoolean:K1,isObject:Vi,isPlainObject:Ri,isReadableStream:nS,isRequest:aS,isResponse:rS,isHeaders:lS,isUndefined:Vl,isDate:Z1,isFile:$1,isBlob:J1,isRegExp:yS,isFunction:vt,isStream:W1,isURLSearchParams:tS,isTypedArray:hS,isFileList:I1,forEach:$l,merge:Zc,extend:iS,trim:sS,stripBOM:oS,inherits:uS,toFlatObject:cS,kindOf:Yi,kindOfTest:Zt,endsWith:fS,toArray:dS,forEachEntry:mS,matchAll:pS,isHTMLForm:vS,hasOwnProperty:a0,hasOwnProp:a0,reduceDescriptors:lv,freezeMethods:bS,toObjectSet:xS,toCamelCase:gS,noop:SS,toFiniteNumber:ES,findKey:av,global:ja,isContextDefined:rv,isSpecCompliantForm:wS,toJSONObject:RS,isAsyncFn:CS,isThenable:TS,setImmediate:sv,asap:NS,isIterable:AS};function ue(n,r,s,i,u){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",r&&(this.code=r),s&&(this.config=s),i&&(this.request=i),u&&(this.response=u,this.status=u.status?u.status:null)}L.inherits(ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.status}}});const iv=ue.prototype,ov={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{ov[n]={value:n}});Object.defineProperties(ue,ov);Object.defineProperty(iv,"isAxiosError",{value:!0});ue.from=(n,r,s,i,u,f)=>{const d=Object.create(iv);return L.toFlatObject(n,d,function(v){return v!==Error.prototype},h=>h!=="isAxiosError"),ue.call(d,n.message,r,s,i,u),d.cause=n,d.name=n.name,f&&Object.assign(d,f),d};const OS=null;function $c(n){return L.isPlainObject(n)||L.isArray(n)}function uv(n){return L.endsWith(n,"[]")?n.slice(0,-2):n}function r0(n,r,s){return n?n.concat(r).map(function(u,f){return u=uv(u),!s&&f?"["+u+"]":u}).join(s?".":""):r}function jS(n){return L.isArray(n)&&!n.some($c)}const DS=L.toFlatObject(L,{},null,function(r){return/^is[A-Z]/.test(r)});function Xi(n,r,s){if(!L.isObject(n))throw new TypeError("target must be an object");r=r||new FormData,s=L.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,T){return!L.isUndefined(T[R])});const i=s.metaTokens,u=s.visitor||b,f=s.dots,d=s.indexes,v=(s.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(r);if(!L.isFunction(u))throw new TypeError("visitor must be a function");function m(w){if(w===null)return"";if(L.isDate(w))return w.toISOString();if(L.isBoolean(w))return w.toString();if(!v&&L.isBlob(w))throw new ue("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(w)||L.isTypedArray(w)?v&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function b(w,R,T){let N=w;if(w&&!T&&typeof w=="object"){if(L.endsWith(R,"{}"))R=i?R:R.slice(0,-2),w=JSON.stringify(w);else if(L.isArray(w)&&jS(w)||(L.isFileList(w)||L.endsWith(R,"[]"))&&(N=L.toArray(w)))return R=uv(R),N.forEach(function(H,V){!(L.isUndefined(H)||H===null)&&r.append(d===!0?r0([R],V,f):d===null?R:R+"[]",m(H))}),!1}return $c(w)?!0:(r.append(r0(T,R,f),m(w)),!1)}const E=[],S=Object.assign(DS,{defaultVisitor:b,convertValue:m,isVisitable:$c});function A(w,R){if(!L.isUndefined(w)){if(E.indexOf(w)!==-1)throw Error("Circular reference detected in "+R.join("."));E.push(w),L.forEach(w,function(N,_){(!(L.isUndefined(N)||N===null)&&u.call(r,N,L.isString(_)?_.trim():_,R,S))===!0&&A(N,R?R.concat(_):[_])}),E.pop()}}if(!L.isObject(n))throw new TypeError("data must be an object");return A(n),r}function l0(n){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function gf(n,r){this._pairs=[],n&&Xi(n,this,r)}const cv=gf.prototype;cv.append=function(r,s){this._pairs.push([r,s])};cv.toString=function(r){const s=r?function(i){return r.call(this,i,l0)}:l0;return this._pairs.map(function(u){return s(u[0])+"="+s(u[1])},"").join("&")};function MS(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fv(n,r,s){if(!r)return n;const i=s&&s.encode||MS;L.isFunction(s)&&(s={serialize:s});const u=s&&s.serialize;let f;if(u?f=u(r,s):f=L.isURLSearchParams(r)?r.toString():new gf(r,s).toString(i),f){const d=n.indexOf("#");d!==-1&&(n=n.slice(0,d)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}class s0{constructor(){this.handlers=[]}use(r,s,i){return this.handlers.push({fulfilled:r,rejected:s,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){L.forEach(this.handlers,function(i){i!==null&&r(i)})}}const dv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_S=typeof URLSearchParams<"u"?URLSearchParams:gf,zS=typeof FormData<"u"?FormData:null,US=typeof Blob<"u"?Blob:null,kS={isBrowser:!0,classes:{URLSearchParams:_S,FormData:zS,Blob:US},protocols:["http","https","file","blob","url","data"]},yf=typeof window<"u"&&typeof document<"u",Jc=typeof navigator=="object"&&navigator||void 0,LS=yf&&(!Jc||["ReactNative","NativeScript","NS"].indexOf(Jc.product)<0),BS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",HS=yf&&window.location.href||"http://localhost",qS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yf,hasStandardBrowserEnv:LS,hasStandardBrowserWebWorkerEnv:BS,navigator:Jc,origin:HS},Symbol.toStringTag,{value:"Module"})),it={...qS,...kS};function GS(n,r){return Xi(n,new it.classes.URLSearchParams,Object.assign({visitor:function(s,i,u,f){return it.isNode&&L.isBuffer(s)?(this.append(i,s.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},r))}function PS(n){return L.matchAll(/\w+|\[(\w*)]/g,n).map(r=>r[0]==="[]"?"":r[1]||r[0])}function YS(n){const r={},s=Object.keys(n);let i;const u=s.length;let f;for(i=0;i<u;i++)f=s[i],r[f]=n[f];return r}function hv(n){function r(s,i,u,f){let d=s[f++];if(d==="__proto__")return!0;const h=Number.isFinite(+d),v=f>=s.length;return d=!d&&L.isArray(u)?u.length:d,v?(L.hasOwnProp(u,d)?u[d]=[u[d],i]:u[d]=i,!h):((!u[d]||!L.isObject(u[d]))&&(u[d]=[]),r(s,i,u[d],f)&&L.isArray(u[d])&&(u[d]=YS(u[d])),!h)}if(L.isFormData(n)&&L.isFunction(n.entries)){const s={};return L.forEachEntry(n,(i,u)=>{r(PS(i),u,s,0)}),s}return null}function QS(n,r,s){if(L.isString(n))try{return(r||JSON.parse)(n),L.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(s||JSON.stringify)(n)}const Jl={transitional:dv,adapter:["xhr","http","fetch"],transformRequest:[function(r,s){const i=s.getContentType()||"",u=i.indexOf("application/json")>-1,f=L.isObject(r);if(f&&L.isHTMLForm(r)&&(r=new FormData(r)),L.isFormData(r))return u?JSON.stringify(hv(r)):r;if(L.isArrayBuffer(r)||L.isBuffer(r)||L.isStream(r)||L.isFile(r)||L.isBlob(r)||L.isReadableStream(r))return r;if(L.isArrayBufferView(r))return r.buffer;if(L.isURLSearchParams(r))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let h;if(f){if(i.indexOf("application/x-www-form-urlencoded")>-1)return GS(r,this.formSerializer).toString();if((h=L.isFileList(r))||i.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return Xi(h?{"files[]":r}:r,v&&new v,this.formSerializer)}}return f||u?(s.setContentType("application/json",!1),QS(r)):r}],transformResponse:[function(r){const s=this.transitional||Jl.transitional,i=s&&s.forcedJSONParsing,u=this.responseType==="json";if(L.isResponse(r)||L.isReadableStream(r))return r;if(r&&L.isString(r)&&(i&&!this.responseType||u)){const d=!(s&&s.silentJSONParsing)&&u;try{return JSON.parse(r)}catch(h){if(d)throw h.name==="SyntaxError"?ue.from(h,ue.ERR_BAD_RESPONSE,this,null,this.response):h}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],n=>{Jl.headers[n]={}});const VS=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),XS=n=>{const r={};let s,i,u;return n&&n.split(`
`).forEach(function(d){u=d.indexOf(":"),s=d.substring(0,u).trim().toLowerCase(),i=d.substring(u+1).trim(),!(!s||r[s]&&VS[s])&&(s==="set-cookie"?r[s]?r[s].push(i):r[s]=[i]:r[s]=r[s]?r[s]+", "+i:i)}),r},i0=Symbol("internals");function ql(n){return n&&String(n).trim().toLowerCase()}function Ci(n){return n===!1||n==null?n:L.isArray(n)?n.map(Ci):String(n)}function FS(n){const r=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=s.exec(n);)r[i[1]]=i[2];return r}const KS=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Mc(n,r,s,i,u){if(L.isFunction(i))return i.call(this,r,s);if(u&&(r=s),!!L.isString(r)){if(L.isString(i))return r.indexOf(i)!==-1;if(L.isRegExp(i))return i.test(r)}}function ZS(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,s,i)=>s.toUpperCase()+i)}function $S(n,r){const s=L.toCamelCase(" "+r);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+s,{value:function(u,f,d){return this[i].call(this,r,u,f,d)},configurable:!0})})}let gt=class{constructor(r){r&&this.set(r)}set(r,s,i){const u=this;function f(h,v,m){const b=ql(v);if(!b)throw new Error("header name must be a non-empty string");const E=L.findKey(u,b);(!E||u[E]===void 0||m===!0||m===void 0&&u[E]!==!1)&&(u[E||v]=Ci(h))}const d=(h,v)=>L.forEach(h,(m,b)=>f(m,b,v));if(L.isPlainObject(r)||r instanceof this.constructor)d(r,s);else if(L.isString(r)&&(r=r.trim())&&!KS(r))d(XS(r),s);else if(L.isObject(r)&&L.isIterable(r)){let h={},v,m;for(const b of r){if(!L.isArray(b))throw TypeError("Object iterator must return a key-value pair");h[m=b[0]]=(v=h[m])?L.isArray(v)?[...v,b[1]]:[v,b[1]]:b[1]}d(h,s)}else r!=null&&f(s,r,i);return this}get(r,s){if(r=ql(r),r){const i=L.findKey(this,r);if(i){const u=this[i];if(!s)return u;if(s===!0)return FS(u);if(L.isFunction(s))return s.call(this,u,i);if(L.isRegExp(s))return s.exec(u);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,s){if(r=ql(r),r){const i=L.findKey(this,r);return!!(i&&this[i]!==void 0&&(!s||Mc(this,this[i],i,s)))}return!1}delete(r,s){const i=this;let u=!1;function f(d){if(d=ql(d),d){const h=L.findKey(i,d);h&&(!s||Mc(i,i[h],h,s))&&(delete i[h],u=!0)}}return L.isArray(r)?r.forEach(f):f(r),u}clear(r){const s=Object.keys(this);let i=s.length,u=!1;for(;i--;){const f=s[i];(!r||Mc(this,this[f],f,r,!0))&&(delete this[f],u=!0)}return u}normalize(r){const s=this,i={};return L.forEach(this,(u,f)=>{const d=L.findKey(i,f);if(d){s[d]=Ci(u),delete s[f];return}const h=r?ZS(f):String(f).trim();h!==f&&delete s[f],s[h]=Ci(u),i[h]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const s=Object.create(null);return L.forEach(this,(i,u)=>{i!=null&&i!==!1&&(s[u]=r&&L.isArray(i)?i.join(", "):i)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,s])=>r+": "+s).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...s){const i=new this(r);return s.forEach(u=>i.set(u)),i}static accessor(r){const i=(this[i0]=this[i0]={accessors:{}}).accessors,u=this.prototype;function f(d){const h=ql(d);i[h]||($S(u,d),i[h]=!0)}return L.isArray(r)?r.forEach(f):f(r),this}};gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(gt.prototype,({value:n},r)=>{let s=r[0].toUpperCase()+r.slice(1);return{get:()=>n,set(i){this[s]=i}}});L.freezeMethods(gt);function _c(n,r){const s=this||Jl,i=r||s,u=gt.from(i.headers);let f=i.data;return L.forEach(n,function(h){f=h.call(s,f,u.normalize(),r?r.status:void 0)}),u.normalize(),f}function mv(n){return!!(n&&n.__CANCEL__)}function zr(n,r,s){ue.call(this,n??"canceled",ue.ERR_CANCELED,r,s),this.name="CanceledError"}L.inherits(zr,ue,{__CANCEL__:!0});function pv(n,r,s){const i=s.config.validateStatus;!s.status||!i||i(s.status)?n(s):r(new ue("Request failed with status code "+s.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function JS(n){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return r&&r[1]||""}function IS(n,r){n=n||10;const s=new Array(n),i=new Array(n);let u=0,f=0,d;return r=r!==void 0?r:1e3,function(v){const m=Date.now(),b=i[f];d||(d=m),s[u]=v,i[u]=m;let E=f,S=0;for(;E!==u;)S+=s[E++],E=E%n;if(u=(u+1)%n,u===f&&(f=(f+1)%n),m-d<r)return;const A=b&&m-b;return A?Math.round(S*1e3/A):void 0}}function WS(n,r){let s=0,i=1e3/r,u,f;const d=(m,b=Date.now())=>{s=b,u=null,f&&(clearTimeout(f),f=null),n.apply(null,m)};return[(...m)=>{const b=Date.now(),E=b-s;E>=i?d(m,b):(u=m,f||(f=setTimeout(()=>{f=null,d(u)},i-E)))},()=>u&&d(u)]}const Mi=(n,r,s=3)=>{let i=0;const u=IS(50,250);return WS(f=>{const d=f.loaded,h=f.lengthComputable?f.total:void 0,v=d-i,m=u(v),b=d<=h;i=d;const E={loaded:d,total:h,progress:h?d/h:void 0,bytes:v,rate:m||void 0,estimated:m&&h&&b?(h-d)/m:void 0,event:f,lengthComputable:h!=null,[r?"download":"upload"]:!0};n(E)},s)},o0=(n,r)=>{const s=n!=null;return[i=>r[0]({lengthComputable:s,total:n,loaded:i}),r[1]]},u0=n=>(...r)=>L.asap(()=>n(...r)),eE=it.hasStandardBrowserEnv?((n,r)=>s=>(s=new URL(s,it.origin),n.protocol===s.protocol&&n.host===s.host&&(r||n.port===s.port)))(new URL(it.origin),it.navigator&&/(msie|trident)/i.test(it.navigator.userAgent)):()=>!0,tE=it.hasStandardBrowserEnv?{write(n,r,s,i,u,f){const d=[n+"="+encodeURIComponent(r)];L.isNumber(s)&&d.push("expires="+new Date(s).toGMTString()),L.isString(i)&&d.push("path="+i),L.isString(u)&&d.push("domain="+u),f===!0&&d.push("secure"),document.cookie=d.join("; ")},read(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nE(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function aE(n,r){return r?n.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):n}function vv(n,r,s){let i=!nE(r);return n&&(i||s==!1)?aE(n,r):r}const c0=n=>n instanceof gt?{...n}:n;function Ma(n,r){r=r||{};const s={};function i(m,b,E,S){return L.isPlainObject(m)&&L.isPlainObject(b)?L.merge.call({caseless:S},m,b):L.isPlainObject(b)?L.merge({},b):L.isArray(b)?b.slice():b}function u(m,b,E,S){if(L.isUndefined(b)){if(!L.isUndefined(m))return i(void 0,m,E,S)}else return i(m,b,E,S)}function f(m,b){if(!L.isUndefined(b))return i(void 0,b)}function d(m,b){if(L.isUndefined(b)){if(!L.isUndefined(m))return i(void 0,m)}else return i(void 0,b)}function h(m,b,E){if(E in r)return i(m,b);if(E in n)return i(void 0,m)}const v={url:f,method:f,data:f,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:h,headers:(m,b,E)=>u(c0(m),c0(b),E,!0)};return L.forEach(Object.keys(Object.assign({},n,r)),function(b){const E=v[b]||u,S=E(n[b],r[b],b);L.isUndefined(S)&&E!==h||(s[b]=S)}),s}const gv=n=>{const r=Ma({},n);let{data:s,withXSRFToken:i,xsrfHeaderName:u,xsrfCookieName:f,headers:d,auth:h}=r;r.headers=d=gt.from(d),r.url=fv(vv(r.baseURL,r.url,r.allowAbsoluteUrls),n.params,n.paramsSerializer),h&&d.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):"")));let v;if(L.isFormData(s)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((v=d.getContentType())!==!1){const[m,...b]=v?v.split(";").map(E=>E.trim()).filter(Boolean):[];d.setContentType([m||"multipart/form-data",...b].join("; "))}}if(it.hasStandardBrowserEnv&&(i&&L.isFunction(i)&&(i=i(r)),i||i!==!1&&eE(r.url))){const m=u&&f&&tE.read(f);m&&d.set(u,m)}return r},rE=typeof XMLHttpRequest<"u",lE=rE&&function(n){return new Promise(function(s,i){const u=gv(n);let f=u.data;const d=gt.from(u.headers).normalize();let{responseType:h,onUploadProgress:v,onDownloadProgress:m}=u,b,E,S,A,w;function R(){A&&A(),w&&w(),u.cancelToken&&u.cancelToken.unsubscribe(b),u.signal&&u.signal.removeEventListener("abort",b)}let T=new XMLHttpRequest;T.open(u.method.toUpperCase(),u.url,!0),T.timeout=u.timeout;function N(){if(!T)return;const H=gt.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),P={data:!h||h==="text"||h==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:H,config:n,request:T};pv(function(X){s(X),R()},function(X){i(X),R()},P),T=null}"onloadend"in T?T.onloadend=N:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(N)},T.onabort=function(){T&&(i(new ue("Request aborted",ue.ECONNABORTED,n,T)),T=null)},T.onerror=function(){i(new ue("Network Error",ue.ERR_NETWORK,n,T)),T=null},T.ontimeout=function(){let V=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const P=u.transitional||dv;u.timeoutErrorMessage&&(V=u.timeoutErrorMessage),i(new ue(V,P.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,n,T)),T=null},f===void 0&&d.setContentType(null),"setRequestHeader"in T&&L.forEach(d.toJSON(),function(V,P){T.setRequestHeader(P,V)}),L.isUndefined(u.withCredentials)||(T.withCredentials=!!u.withCredentials),h&&h!=="json"&&(T.responseType=u.responseType),m&&([S,w]=Mi(m,!0),T.addEventListener("progress",S)),v&&T.upload&&([E,A]=Mi(v),T.upload.addEventListener("progress",E),T.upload.addEventListener("loadend",A)),(u.cancelToken||u.signal)&&(b=H=>{T&&(i(!H||H.type?new zr(null,n,T):H),T.abort(),T=null)},u.cancelToken&&u.cancelToken.subscribe(b),u.signal&&(u.signal.aborted?b():u.signal.addEventListener("abort",b)));const _=JS(u.url);if(_&&it.protocols.indexOf(_)===-1){i(new ue("Unsupported protocol "+_+":",ue.ERR_BAD_REQUEST,n));return}T.send(f||null)})},sE=(n,r)=>{const{length:s}=n=n?n.filter(Boolean):[];if(r||s){let i=new AbortController,u;const f=function(m){if(!u){u=!0,h();const b=m instanceof Error?m:this.reason;i.abort(b instanceof ue?b:new zr(b instanceof Error?b.message:b))}};let d=r&&setTimeout(()=>{d=null,f(new ue(`timeout ${r} of ms exceeded`,ue.ETIMEDOUT))},r);const h=()=>{n&&(d&&clearTimeout(d),d=null,n.forEach(m=>{m.unsubscribe?m.unsubscribe(f):m.removeEventListener("abort",f)}),n=null)};n.forEach(m=>m.addEventListener("abort",f));const{signal:v}=i;return v.unsubscribe=()=>L.asap(h),v}},iE=function*(n,r){let s=n.byteLength;if(s<r){yield n;return}let i=0,u;for(;i<s;)u=i+r,yield n.slice(i,u),i=u},oE=async function*(n,r){for await(const s of uE(n))yield*iE(s,r)},uE=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const r=n.getReader();try{for(;;){const{done:s,value:i}=await r.read();if(s)break;yield i}}finally{await r.cancel()}},f0=(n,r,s,i)=>{const u=oE(n,r);let f=0,d,h=v=>{d||(d=!0,i&&i(v))};return new ReadableStream({async pull(v){try{const{done:m,value:b}=await u.next();if(m){h(),v.close();return}let E=b.byteLength;if(s){let S=f+=E;s(S)}v.enqueue(new Uint8Array(b))}catch(m){throw h(m),m}},cancel(v){return h(v),u.return()}},{highWaterMark:2})},Fi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yv=Fi&&typeof ReadableStream=="function",cE=Fi&&(typeof TextEncoder=="function"?(n=>r=>n.encode(r))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),bv=(n,...r)=>{try{return!!n(...r)}catch{return!1}},fE=yv&&bv(()=>{let n=!1;const r=new Request(it.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!r}),d0=64*1024,Ic=yv&&bv(()=>L.isReadableStream(new Response("").body)),_i={stream:Ic&&(n=>n.body)};Fi&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!_i[r]&&(_i[r]=L.isFunction(n[r])?s=>s[r]():(s,i)=>{throw new ue(`Response type '${r}' is not supported`,ue.ERR_NOT_SUPPORT,i)})})})(new Response);const dE=async n=>{if(n==null)return 0;if(L.isBlob(n))return n.size;if(L.isSpecCompliantForm(n))return(await new Request(it.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(L.isArrayBufferView(n)||L.isArrayBuffer(n))return n.byteLength;if(L.isURLSearchParams(n)&&(n=n+""),L.isString(n))return(await cE(n)).byteLength},hE=async(n,r)=>{const s=L.toFiniteNumber(n.getContentLength());return s??dE(r)},mE=Fi&&(async n=>{let{url:r,method:s,data:i,signal:u,cancelToken:f,timeout:d,onDownloadProgress:h,onUploadProgress:v,responseType:m,headers:b,withCredentials:E="same-origin",fetchOptions:S}=gv(n);m=m?(m+"").toLowerCase():"text";let A=sE([u,f&&f.toAbortSignal()],d),w;const R=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let T;try{if(v&&fE&&s!=="get"&&s!=="head"&&(T=await hE(b,i))!==0){let P=new Request(r,{method:"POST",body:i,duplex:"half"}),ee;if(L.isFormData(i)&&(ee=P.headers.get("content-type"))&&b.setContentType(ee),P.body){const[X,Z]=o0(T,Mi(u0(v)));i=f0(P.body,d0,X,Z)}}L.isString(E)||(E=E?"include":"omit");const N="credentials"in Request.prototype;w=new Request(r,{...S,signal:A,method:s.toUpperCase(),headers:b.normalize().toJSON(),body:i,duplex:"half",credentials:N?E:void 0});let _=await fetch(w,S);const H=Ic&&(m==="stream"||m==="response");if(Ic&&(h||H&&R)){const P={};["status","statusText","headers"].forEach(I=>{P[I]=_[I]});const ee=L.toFiniteNumber(_.headers.get("content-length")),[X,Z]=h&&o0(ee,Mi(u0(h),!0))||[];_=new Response(f0(_.body,d0,X,()=>{Z&&Z(),R&&R()}),P)}m=m||"text";let V=await _i[L.findKey(_i,m)||"text"](_,n);return!H&&R&&R(),await new Promise((P,ee)=>{pv(P,ee,{data:V,headers:gt.from(_.headers),status:_.status,statusText:_.statusText,config:n,request:w})})}catch(N){throw R&&R(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,n,w),{cause:N.cause||N}):ue.from(N,N&&N.code,n,w)}}),Wc={http:OS,xhr:lE,fetch:mE};L.forEach(Wc,(n,r)=>{if(n){try{Object.defineProperty(n,"name",{value:r})}catch{}Object.defineProperty(n,"adapterName",{value:r})}});const h0=n=>`- ${n}`,pE=n=>L.isFunction(n)||n===null||n===!1,xv={getAdapter:n=>{n=L.isArray(n)?n:[n];const{length:r}=n;let s,i;const u={};for(let f=0;f<r;f++){s=n[f];let d;if(i=s,!pE(s)&&(i=Wc[(d=String(s)).toLowerCase()],i===void 0))throw new ue(`Unknown adapter '${d}'`);if(i)break;u[d||"#"+f]=i}if(!i){const f=Object.entries(u).map(([h,v])=>`adapter ${h} `+(v===!1?"is not supported by the environment":"is not available in the build"));let d=r?f.length>1?`since :
`+f.map(h0).join(`
`):" "+h0(f[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:Wc};function zc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new zr(null,n)}function m0(n){return zc(n),n.headers=gt.from(n.headers),n.data=_c.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),xv.getAdapter(n.adapter||Jl.adapter)(n).then(function(i){return zc(n),i.data=_c.call(n,n.transformResponse,i),i.headers=gt.from(i.headers),i},function(i){return mv(i)||(zc(n),i&&i.response&&(i.response.data=_c.call(n,n.transformResponse,i.response),i.response.headers=gt.from(i.response.headers))),Promise.reject(i)})}const Sv="1.10.0",Ki={};["object","boolean","number","function","string","symbol"].forEach((n,r)=>{Ki[n]=function(i){return typeof i===n||"a"+(r<1?"n ":" ")+n}});const p0={};Ki.transitional=function(r,s,i){function u(f,d){return"[Axios v"+Sv+"] Transitional option '"+f+"'"+d+(i?". "+i:"")}return(f,d,h)=>{if(r===!1)throw new ue(u(d," has been removed"+(s?" in "+s:"")),ue.ERR_DEPRECATED);return s&&!p0[d]&&(p0[d]=!0,console.warn(u(d," has been deprecated since v"+s+" and will be removed in the near future"))),r?r(f,d,h):!0}};Ki.spelling=function(r){return(s,i)=>(console.warn(`${i} is likely a misspelling of ${r}`),!0)};function vE(n,r,s){if(typeof n!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let u=i.length;for(;u-- >0;){const f=i[u],d=r[f];if(d){const h=n[f],v=h===void 0||d(h,f,n);if(v!==!0)throw new ue("option "+f+" must be "+v,ue.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new ue("Unknown option "+f,ue.ERR_BAD_OPTION)}}const Ti={assertOptions:vE,validators:Ki},an=Ti.validators;let Da=class{constructor(r){this.defaults=r||{},this.interceptors={request:new s0,response:new s0}}async request(r,s){try{return await this._request(r,s)}catch(i){if(i instanceof Error){let u={};Error.captureStackTrace?Error.captureStackTrace(u):u=new Error;const f=u.stack?u.stack.replace(/^.+\n/,""):"";try{i.stack?f&&!String(i.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+f):i.stack=f}catch{}}throw i}}_request(r,s){typeof r=="string"?(s=s||{},s.url=r):s=r||{},s=Ma(this.defaults,s);const{transitional:i,paramsSerializer:u,headers:f}=s;i!==void 0&&Ti.assertOptions(i,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1),u!=null&&(L.isFunction(u)?s.paramsSerializer={serialize:u}:Ti.assertOptions(u,{encode:an.function,serialize:an.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Ti.assertOptions(s,{baseUrl:an.spelling("baseURL"),withXsrfToken:an.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let d=f&&L.merge(f.common,f[s.method]);f&&L.forEach(["delete","get","head","post","put","patch","common"],w=>{delete f[w]}),s.headers=gt.concat(d,f);const h=[];let v=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(s)===!1||(v=v&&R.synchronous,h.unshift(R.fulfilled,R.rejected))});const m=[];this.interceptors.response.forEach(function(R){m.push(R.fulfilled,R.rejected)});let b,E=0,S;if(!v){const w=[m0.bind(this),void 0];for(w.unshift.apply(w,h),w.push.apply(w,m),S=w.length,b=Promise.resolve(s);E<S;)b=b.then(w[E++],w[E++]);return b}S=h.length;let A=s;for(E=0;E<S;){const w=h[E++],R=h[E++];try{A=w(A)}catch(T){R.call(this,T);break}}try{b=m0.call(this,A)}catch(w){return Promise.reject(w)}for(E=0,S=m.length;E<S;)b=b.then(m[E++],m[E++]);return b}getUri(r){r=Ma(this.defaults,r);const s=vv(r.baseURL,r.url,r.allowAbsoluteUrls);return fv(s,r.params,r.paramsSerializer)}};L.forEach(["delete","get","head","options"],function(r){Da.prototype[r]=function(s,i){return this.request(Ma(i||{},{method:r,url:s,data:(i||{}).data}))}});L.forEach(["post","put","patch"],function(r){function s(i){return function(f,d,h){return this.request(Ma(h||{},{method:r,headers:i?{"Content-Type":"multipart/form-data"}:{},url:f,data:d}))}}Da.prototype[r]=s(),Da.prototype[r+"Form"]=s(!0)});let gE=class Ev{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(f){s=f});const i=this;this.promise.then(u=>{if(!i._listeners)return;let f=i._listeners.length;for(;f-- >0;)i._listeners[f](u);i._listeners=null}),this.promise.then=u=>{let f;const d=new Promise(h=>{i.subscribe(h),f=h}).then(u);return d.cancel=function(){i.unsubscribe(f)},d},r(function(f,d,h){i.reason||(i.reason=new zr(f,d,h),s(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const s=this._listeners.indexOf(r);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const r=new AbortController,s=i=>{r.abort(i)};return this.subscribe(s),r.signal.unsubscribe=()=>this.unsubscribe(s),r.signal}static source(){let r;return{token:new Ev(function(u){r=u}),cancel:r}}};function yE(n){return function(s){return n.apply(null,s)}}function bE(n){return L.isObject(n)&&n.isAxiosError===!0}const ef={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ef).forEach(([n,r])=>{ef[r]=n});function wv(n){const r=new Da(n),s=W0(Da.prototype.request,r);return L.extend(s,Da.prototype,r,{allOwnKeys:!0}),L.extend(s,r,null,{allOwnKeys:!0}),s.create=function(u){return wv(Ma(n,u))},s}const He=wv(Jl);He.Axios=Da;He.CanceledError=zr;He.CancelToken=gE;He.isCancel=mv;He.VERSION=Sv;He.toFormData=Xi;He.AxiosError=ue;He.Cancel=He.CanceledError;He.all=function(r){return Promise.all(r)};He.spread=yE;He.isAxiosError=bE;He.mergeConfig=Ma;He.AxiosHeaders=gt;He.formToJSON=n=>hv(L.isHTMLForm(n)?new FormData(n):n);He.getAdapter=xv.getAdapter;He.HttpStatusCode=ef;He.default=He;const{Axios:aA,AxiosError:rA,CanceledError:lA,isCancel:sA,CancelToken:iA,VERSION:oA,all:uA,Cancel:cA,isAxiosError:fA,spread:dA,toFormData:hA,AxiosHeaders:mA,HttpStatusCode:pA,formToJSON:vA,getAdapter:gA,mergeConfig:yA}=He,xE="https://e6fa290c-221f-4835-bd24-9b907857f27b.mock.pstmn.io",Ur=He.create({baseURL:xE,headers:{"Content-Type":"application/json"}});Ur.interceptors.response.use(n=>n.status===200?(console.log("API Response:",n.data),n.data):(n.status>=400&&n.status<500?console.warn("API Client Error:",n.data):console.warn("API Response Warning:",n),n),n=>(n.response?console.error("API Error:",n.response.data):n.request?console.error("API No Response:",n.request):console.error("API Error Message:",n.message),Promise.reject(n)));const Zi="ZYLO_TOKEN_STORAGE_KEY",SE="https://api.zylosystems.com/",sn=He.create({baseURL:SE,headers:{"Content-Type":"application/json"}});sn.interceptors.request.use(n=>{const r=localStorage.getItem(Zi);return r&&(n.headers.Authorization=`Bearer ${r}`),n});sn.interceptors.response.use(n=>n.status===200?(console.log("API Response:",n.data),n.data):(n.status>=400&&n.status<500?console.warn("API Client Error:",n.data):console.warn("API Response Warning:",n),n),n=>(n.response?console.error("API Error:",n.response.data):n.request?console.error("API No Response:",n.request):console.error("API Error Message:",n.message),Promise.reject(n)));const EE=()=>localStorage.getItem(Zi),Rv=n=>{localStorage.setItem(Zi,n),sn.defaults.headers.common.Authorization=`Bearer ${n}`},wE=()=>{localStorage.removeItem(Zi),delete sn.defaults.headers.common.Authorization};var kr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_a=typeof window>"u"||"Deno"in globalThis;function ut(){}function RE(n,r){return typeof n=="function"?n(r):n}function tf(n){return typeof n=="number"&&n>=0&&n!==1/0}function Cv(n,r){return Math.max(n+(r||0)-Date.now(),0)}function ua(n,r){return typeof n=="function"?n(r):n}function Kt(n,r){return typeof n=="function"?n(r):n}function v0(n,r){const{type:s="all",exact:i,fetchStatus:u,predicate:f,queryKey:d,stale:h}=n;if(d){if(i){if(r.queryHash!==bf(d,r.options))return!1}else if(!Xl(r.queryKey,d))return!1}if(s!=="all"){const v=r.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof h=="boolean"&&r.isStale()!==h||u&&u!==r.state.fetchStatus||f&&!f(r))}function g0(n,r){const{exact:s,status:i,predicate:u,mutationKey:f}=n;if(f){if(!r.options.mutationKey)return!1;if(s){if(za(r.options.mutationKey)!==za(f))return!1}else if(!Xl(r.options.mutationKey,f))return!1}return!(i&&r.state.status!==i||u&&!u(r))}function bf(n,r){return(r?.queryKeyHashFn||za)(n)}function za(n){return JSON.stringify(n,(r,s)=>nf(s)?Object.keys(s).sort().reduce((i,u)=>(i[u]=s[u],i),{}):s)}function Xl(n,r){return n===r?!0:typeof n!=typeof r?!1:n&&r&&typeof n=="object"&&typeof r=="object"?Object.keys(r).every(s=>Xl(n[s],r[s])):!1}function Tv(n,r){if(n===r)return n;const s=y0(n)&&y0(r);if(s||nf(n)&&nf(r)){const i=s?n:Object.keys(n),u=i.length,f=s?r:Object.keys(r),d=f.length,h=s?[]:{},v=new Set(i);let m=0;for(let b=0;b<d;b++){const E=s?b:f[b];(!s&&v.has(E)||s)&&n[E]===void 0&&r[E]===void 0?(h[E]=void 0,m++):(h[E]=Tv(n[E],r[E]),h[E]===n[E]&&n[E]!==void 0&&m++)}return u===d&&m===u?n:h}return r}function zi(n,r){if(!r||Object.keys(n).length!==Object.keys(r).length)return!1;for(const s in n)if(n[s]!==r[s])return!1;return!0}function y0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function nf(n){if(!b0(n))return!1;const r=n.constructor;if(r===void 0)return!0;const s=r.prototype;return!(!b0(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function b0(n){return Object.prototype.toString.call(n)==="[object Object]"}function CE(n){return new Promise(r=>{setTimeout(r,n)})}function af(n,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,r):s.structuralSharing!==!1?Tv(n,r):r}function TE(n,r,s=0){const i=[...n,r];return s&&i.length>s?i.slice(1):i}function NE(n,r,s=0){const i=[r,...n];return s&&i.length>s?i.slice(0,-1):i}var xf=Symbol();function Nv(n,r){return!n.queryFn&&r?.initialPromise?()=>r.initialPromise:!n.queryFn||n.queryFn===xf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Av(n,r){return typeof n=="function"?n(...r):!!n}var AE=class extends kr{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!_a&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Sf=new AE,OE=class extends kr{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!_a&&window.addEventListener){const r=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#t}},Ui=new OE;function rf(){let n,r;const s=new Promise((u,f)=>{n=u,r=f});s.status="pending",s.catch(()=>{});function i(u){Object.assign(s,u),delete s.resolve,delete s.reject}return s.resolve=u=>{i({status:"fulfilled",value:u}),n(u)},s.reject=u=>{i({status:"rejected",reason:u}),r(u)},s}function jE(n){return Math.min(1e3*2**n,3e4)}function Ov(n){return(n??"online")==="online"?Ui.isOnline():!0}var jv=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Uc(n){return n instanceof jv}function Dv(n){let r=!1,s=0,i=!1,u;const f=rf(),d=R=>{i||(S(new jv(R)),n.abort?.())},h=()=>{r=!0},v=()=>{r=!1},m=()=>Sf.isFocused()&&(n.networkMode==="always"||Ui.isOnline())&&n.canRun(),b=()=>Ov(n.networkMode)&&n.canRun(),E=R=>{i||(i=!0,n.onSuccess?.(R),u?.(),f.resolve(R))},S=R=>{i||(i=!0,n.onError?.(R),u?.(),f.reject(R))},A=()=>new Promise(R=>{u=T=>{(i||m())&&R(T)},n.onPause?.()}).then(()=>{u=void 0,i||n.onContinue?.()}),w=()=>{if(i)return;let R;const T=s===0?n.initialPromise:void 0;try{R=T??n.fn()}catch(N){R=Promise.reject(N)}Promise.resolve(R).then(E).catch(N=>{if(i)return;const _=n.retry??(_a?0:3),H=n.retryDelay??jE,V=typeof H=="function"?H(s,N):H,P=_===!0||typeof _=="number"&&s<_||typeof _=="function"&&_(s,N);if(r||!P){S(N);return}s++,n.onFail?.(s,N),CE(V).then(()=>m()?void 0:A()).then(()=>{r?S(N):w()})})};return{promise:f,cancel:d,continue:()=>(u?.(),f),cancelRetry:h,continueRetry:v,canStart:b,start:()=>(b()?w():A().then(w),f)}}var DE=n=>setTimeout(n,0);function ME(){let n=[],r=0,s=h=>{h()},i=h=>{h()},u=DE;const f=h=>{r?n.push(h):u(()=>{s(h)})},d=()=>{const h=n;n=[],h.length&&u(()=>{i(()=>{h.forEach(v=>{s(v)})})})};return{batch:h=>{let v;r++;try{v=h()}finally{r--,r||d()}return v},batchCalls:h=>(...v)=>{f(()=>{h(...v)})},schedule:f,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{i=h},setScheduler:h=>{u=h}}}var Ze=ME(),Mv=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),tf(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(_a?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},_E=class extends Mv{#t;#e;#n;#a;#r;#s;#i;constructor(n){super(),this.#i=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=zE(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,r){const s=af(this.state.data,n,this.options);return this.#l({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(n,r){this.#l({type:"setState",state:n,setStateOptions:r})}cancel(n){const r=this.#r?.promise;return this.#r?.cancel(n),r?r.then(ut).catch(ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>Kt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ua(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Cv(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(this.#r&&(this.#i?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}fetch(n,r){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const v=this.observers.find(m=>m.options.queryFn);v&&this.setOptions(v.options)}const s=new AbortController,i=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(this.#i=!0,s.signal)})},u=()=>{const v=Nv(this.options,r),b=(()=>{const E={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(E),E})();return this.#i=!1,this.options.persister?this.options.persister(v,b,this):v(b)},d=(()=>{const v={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:u};return i(v),v})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#l({type:"fetch",meta:d.fetchOptions?.meta});const h=v=>{Uc(v)&&v.silent||this.#l({type:"error",error:v}),Uc(v)||(this.#n.config.onError?.(v,this),this.#n.config.onSettled?.(this.state.data,v,this)),this.scheduleGc()};return this.#r=Dv({initialPromise:r?.initialPromise,fn:d.fetchFn,abort:s.abort.bind(s),onSuccess:v=>{if(v===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(v)}catch(m){h(m);return}this.#n.config.onSuccess?.(v,this),this.#n.config.onSettled?.(v,this.state.error,this),this.scheduleGc()},onError:h,onFail:(v,m)=>{this.#l({type:"failed",failureCount:v,error:m})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}),this.#r.start()}#l(n){const r=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,..._v(s.data,this.options),fetchMeta:n.meta??null};case"success":return this.#e=void 0,{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=n.error;return Uc(i)&&i.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=r(this.state),Ze.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function _v(n,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ov(r.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function zE(n){const r=typeof n.initialData=="function"?n.initialData():n.initialData,s=r!==void 0,i=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var UE=class extends kr{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,r,s){const i=r.queryKey,u=r.queryHash??bf(i,r);let f=this.get(u);return f||(f=new _E({client:n,queryKey:i,queryHash:u,options:n.defaultQueryOptions(r),state:s,defaultOptions:n.getQueryDefaults(i)}),this.add(f)),f}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=this.#t.get(n.queryHash);r&&(n.destroy(),r===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ze.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const r={exact:!0,...n};return this.getAll().find(s=>v0(r,s))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(s=>v0(n,s)):r}notify(n){Ze.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},kE=class extends Mv{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||zv(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(r=>r!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const r=()=>{this.#a({type:"continue"})};this.#n=Dv({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(u,f)=>{this.#a({type:"failed",failureCount:u,error:f})},onPause:()=>{this.#a({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",i=!this.#n.canStart();try{if(s)r();else{this.#a({type:"pending",variables:n,isPaused:i}),await this.#e.config.onMutate?.(n,this);const f=await this.options.onMutate?.(n);f!==this.state.context&&this.#a({type:"pending",context:f,variables:n,isPaused:i})}const u=await this.#n.start();return await this.#e.config.onSuccess?.(u,n,this.state.context,this),await this.options.onSuccess?.(u,n,this.state.context),await this.#e.config.onSettled?.(u,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(u,null,n,this.state.context),this.#a({type:"success",data:u}),u}catch(u){try{throw await this.#e.config.onError?.(u,n,this.state.context,this),await this.options.onError?.(u,n,this.state.context),await this.#e.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,u,n,this.state.context),u}finally{this.#a({type:"error",error:u})}}finally{this.#e.runNext(this)}}#a(n){const r=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ze.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function zv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var LE=class extends kr{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,r,s){const i=new kE({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(r),state:s});return this.add(i),i}add(n){this.#t.add(n);const r=gi(n);if(typeof r=="string"){const s=this.#e.get(r);s?s.push(n):this.#e.set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const r=gi(n);if(typeof r=="string"){const s=this.#e.get(r);if(s)if(s.length>1){const i=s.indexOf(n);i!==-1&&s.splice(i,1)}else s[0]===n&&this.#e.delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=gi(n);if(typeof r=="string"){const i=this.#e.get(r)?.find(u=>u.state.status==="pending");return!i||i===n}else return!0}runNext(n){const r=gi(n);return typeof r=="string"?this.#e.get(r)?.find(i=>i!==n&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ze.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const r={exact:!0,...n};return this.getAll().find(s=>g0(r,s))}findAll(n={}){return this.getAll().filter(r=>g0(n,r))}notify(n){Ze.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return Ze.batch(()=>Promise.all(n.map(r=>r.continue().catch(ut))))}};function gi(n){return n.options.scope?.id}function x0(n){return{onFetch:(r,s)=>{const i=r.options,u=r.fetchOptions?.meta?.fetchMore?.direction,f=r.state.data?.pages||[],d=r.state.data?.pageParams||[];let h={pages:[],pageParams:[]},v=0;const m=async()=>{let b=!1;const E=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(r.signal.aborted?b=!0:r.signal.addEventListener("abort",()=>{b=!0}),r.signal)})},S=Nv(r.options,r.fetchOptions),A=async(w,R,T)=>{if(b)return Promise.reject();if(R==null&&w.pages.length)return Promise.resolve(w);const _=(()=>{const ee={client:r.client,queryKey:r.queryKey,pageParam:R,direction:T?"backward":"forward",meta:r.options.meta};return E(ee),ee})(),H=await S(_),{maxPages:V}=r.options,P=T?NE:TE;return{pages:P(w.pages,H,V),pageParams:P(w.pageParams,R,V)}};if(u&&f.length){const w=u==="backward",R=w?BE:S0,T={pages:f,pageParams:d},N=R(i,T);h=await A(T,N,w)}else{const w=n??f.length;do{const R=v===0?d[0]??i.initialPageParam:S0(i,h);if(v>0&&R==null)break;h=await A(h,R),v++}while(v<w)}return h};r.options.persister?r.fetchFn=()=>r.options.persister?.(m,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s):r.fetchFn=m}}}function S0(n,{pages:r,pageParams:s}){const i=r.length-1;return r.length>0?n.getNextPageParam(r[i],r,s[i],s):void 0}function BE(n,{pages:r,pageParams:s}){return r.length>0?n.getPreviousPageParam?.(r[0],r,s[0],s):void 0}var HE=class{#t;#e;#n;#a;#r;#s;#i;#l;constructor(n={}){this.#t=n.queryCache||new UE,this.#e=n.mutationCache||new LE,this.#n=n.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#i=Sf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#l=Ui.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#i?.(),this.#i=void 0,this.#l?.(),this.#l=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const r=this.defaultQueryOptions({queryKey:n});return this.#t.get(r.queryHash)?.state.data}ensureQueryData(n){const r=this.defaultQueryOptions(n),s=this.#t.build(this,r),i=s.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(ua(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:r,state:s})=>{const i=s.data;return[r,i]})}setQueryData(n,r,s){const i=this.defaultQueryOptions({queryKey:n}),f=this.#t.get(i.queryHash)?.state.data,d=RE(r,f);if(d!==void 0)return this.#t.build(this,i).setData(d,{...s,manual:!0})}setQueriesData(n,r,s){return Ze.batch(()=>this.#t.findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,r,s)]))}getQueryState(n){const r=this.defaultQueryOptions({queryKey:n});return this.#t.get(r.queryHash)?.state}removeQueries(n){const r=this.#t;Ze.batch(()=>{r.findAll(n).forEach(s=>{r.remove(s)})})}resetQueries(n,r){const s=this.#t;return Ze.batch(()=>(s.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},r)))}cancelQueries(n,r={}){const s={revert:!0,...r},i=Ze.batch(()=>this.#t.findAll(n).map(u=>u.cancel(s)));return Promise.all(i).then(ut).catch(ut)}invalidateQueries(n,r={}){return Ze.batch(()=>(this.#t.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},r)))}refetchQueries(n,r={}){const s={...r,cancelRefetch:r.cancelRefetch??!0},i=Ze.batch(()=>this.#t.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,s);return s.throwOnError||(f=f.catch(ut)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(i).then(ut)}fetchQuery(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const s=this.#t.build(this,r);return s.isStaleByTime(ua(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ut).catch(ut)}fetchInfiniteQuery(n){return n.behavior=x0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ut).catch(ut)}ensureInfiniteQueryData(n){return n.behavior=x0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ui.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,r){this.#a.set(za(n),{queryKey:n,defaultOptions:r})}getQueryDefaults(n){const r=[...this.#a.values()],s={};return r.forEach(i=>{Xl(n,i.queryKey)&&Object.assign(s,i.defaultOptions)}),s}setMutationDefaults(n,r){this.#r.set(za(n),{mutationKey:n,defaultOptions:r})}getMutationDefaults(n){const r=[...this.#r.values()],s={};return r.forEach(i=>{Xl(n,i.mutationKey)&&Object.assign(s,i.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const r={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return r.queryHash||(r.queryHash=bf(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===xf&&(r.enabled=!1),r}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},qE=class extends kr{constructor(n,r){super(),this.options=r,this.#t=n,this.#l=null,this.#i=rf(),this.options.experimental_prefetchInRender||this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#s;#i;#l;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),E0(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lf(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lf(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const r=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#e.setOptions(this.options),r._defaulted&&!zi(this.options,r)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&w0(this.#e,s,this.options,r)&&this.#f(),this.updateResult(),i&&(this.#e!==s||Kt(this.options.enabled,this.#e)!==Kt(r.enabled,this.#e)||ua(this.options.staleTime,this.#e)!==ua(r.staleTime,this.#e))&&this.#v();const u=this.#g();i&&(this.#e!==s||Kt(this.options.enabled,this.#e)!==Kt(r.enabled,this.#e)||u!==this.#o)&&this.#y(u)}getOptimisticResult(n){const r=this.#t.getQueryCache().build(this.#t,n),s=this.createResult(r,n);return PE(this,s)&&(this.#a=s,this.#s=this.options,this.#r=this.#e.state),s}getCurrentResult(){return this.#a}trackResult(n,r){return new Proxy(n,{get:(s,i)=>(this.trackProp(i),r?.(i),Reflect.get(s,i))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=this.#t.defaultQueryOptions(n),s=this.#t.getQueryCache().build(this.#t,r);return s.fetch().then(()=>this.createResult(s,r))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#E();let r=this.#e.fetch(this.options,n);return n?.throwOnError||(r=r.catch(ut)),r}#v(){this.#x();const n=ua(this.options.staleTime,this.#e);if(_a||this.#a.isStale||!tf(n))return;const s=Cv(this.#a.dataUpdatedAt,n)+1;this.#u=setTimeout(()=>{this.#a.isStale||this.updateResult()},s)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#o=n,!(_a||Kt(this.options.enabled,this.#e)===!1||!tf(this.#o)||this.#o===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||Sf.isFocused())&&this.#f()},this.#o))}#b(){this.#v(),this.#y(this.#g())}#x(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,r){const s=this.#e,i=this.options,u=this.#a,f=this.#r,d=this.#s,v=n!==s?n.state:this.#n,{state:m}=n;let b={...m},E=!1,S;if(r._optimisticResults){const Z=this.hasListeners(),I=!Z&&E0(n,r),se=Z&&w0(n,s,r,i);(I||se)&&(b={...b,..._v(m.data,n.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:A,errorUpdatedAt:w,status:R}=b;S=b.data;let T=!1;if(r.placeholderData!==void 0&&S===void 0&&R==="pending"){let Z;u?.isPlaceholderData&&r.placeholderData===d?.placeholderData?(Z=u.data,T=!0):Z=typeof r.placeholderData=="function"?r.placeholderData(this.#h?.state.data,this.#h):r.placeholderData,Z!==void 0&&(R="success",S=af(u?.data,Z,r),E=!0)}if(r.select&&S!==void 0&&!T)if(u&&S===f?.data&&r.select===this.#p)S=this.#d;else try{this.#p=r.select,S=r.select(S),S=af(u?.data,S,r),this.#d=S,this.#l=null}catch(Z){this.#l=Z}this.#l&&(A=this.#l,S=this.#d,w=Date.now(),R="error");const N=b.fetchStatus==="fetching",_=R==="pending",H=R==="error",V=_&&N,P=S!==void 0,X={status:R,fetchStatus:b.fetchStatus,isPending:_,isSuccess:R==="success",isError:H,isInitialLoading:V,isLoading:V,data:S,dataUpdatedAt:b.dataUpdatedAt,error:A,errorUpdatedAt:w,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>v.dataUpdateCount||b.errorUpdateCount>v.errorUpdateCount,isFetching:N,isRefetching:N&&!_,isLoadingError:H&&!P,isPaused:b.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:H&&P,isStale:Ef(n,r),refetch:this.refetch,promise:this.#i};if(this.options.experimental_prefetchInRender){const Z=be=>{X.status==="error"?be.reject(X.error):X.data!==void 0&&be.resolve(X.data)},I=()=>{const be=this.#i=X.promise=rf();Z(be)},se=this.#i;switch(se.status){case"pending":n.queryHash===s.queryHash&&Z(se);break;case"fulfilled":(X.status==="error"||X.data!==se.value)&&I();break;case"rejected":(X.status!=="error"||X.error!==se.reason)&&I();break}}return X}updateResult(){const n=this.#a,r=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#s=this.options,this.#r.data!==void 0&&(this.#h=this.#e),zi(r,n))return;this.#a=r;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,u=typeof i=="function"?i():i;if(u==="all"||!u&&!this.#m.size)return!0;const f=new Set(u??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#a).some(d=>{const h=d;return this.#a[h]!==n[h]&&f.has(h)})};this.#w({listeners:s()})}#E(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const r=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(r?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){Ze.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function GE(n,r){return Kt(r.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&r.retryOnMount===!1)}function E0(n,r){return GE(n,r)||n.state.data!==void 0&&lf(n,r,r.refetchOnMount)}function lf(n,r,s){if(Kt(r.enabled,n)!==!1&&ua(r.staleTime,n)!=="static"){const i=typeof s=="function"?s(n):s;return i==="always"||i!==!1&&Ef(n,r)}return!1}function w0(n,r,s,i){return(n!==r||Kt(i.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Ef(n,s)}function Ef(n,r){return Kt(r.enabled,n)!==!1&&n.isStaleByTime(ua(r.staleTime,n))}function PE(n,r){return!zi(n.getCurrentResult(),r)}var YE=class extends kr{#t;#e=void 0;#n;#a;constructor(r,s){super(),this.#t=r,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const s=this.options;this.options=this.#t.defaultMutationOptions(r),zi(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&za(s.mutationKey)!==za(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(r){this.#r(),this.#s(r)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#s()}mutate(r,s){return this.#a=s,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(r)}#r(){const r=this.#n?.state??zv();this.#e={...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}}#s(r){Ze.batch(()=>{if(this.#a&&this.hasListeners()){const s=this.#e.variables,i=this.#e.context;r?.type==="success"?(this.#a.onSuccess?.(r.data,s,i),this.#a.onSettled?.(r.data,null,s,i)):r?.type==="error"&&(this.#a.onError?.(r.error,s,i),this.#a.onSettled?.(void 0,r.error,s,i))}this.listeners.forEach(s=>{s(this.#e)})})}},Uv=y.createContext(void 0),kv=n=>{const r=y.useContext(Uv);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},QE=({client:n,children:r})=>(y.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),p.jsx(Uv.Provider,{value:n,children:r})),Lv=y.createContext(!1),VE=()=>y.useContext(Lv);Lv.Provider;function XE(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var FE=y.createContext(XE()),KE=()=>y.useContext(FE),ZE=(n,r)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(r.isReset()||(n.retryOnMount=!1))},$E=n=>{y.useEffect(()=>{n.clearReset()},[n])},JE=({result:n,errorResetBoundary:r,throwOnError:s,query:i,suspense:u})=>n.isError&&!r.isReset()&&!n.isFetching&&i&&(u&&n.data===void 0||Av(s,[n.error,i])),IE=n=>{if(n.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...i)=>r(s(...i)):r(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},WE=(n,r)=>n.isLoading&&n.isFetching&&!r,ew=(n,r)=>n?.suspense&&r.isPending,R0=(n,r,s)=>r.fetchOptimistic(n).catch(()=>{s.clearReset()});function tw(n,r,s){const i=VE(),u=KE(),f=kv(),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=i?"isRestoring":"optimistic",IE(d),ZE(d,u),$E(u);const h=!f.getQueryCache().get(d.queryHash),[v]=y.useState(()=>new r(f,d)),m=v.getOptimisticResult(d),b=!i&&n.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(E=>{const S=b?v.subscribe(Ze.batchCalls(E)):ut;return v.updateResult(),S},[v,b]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),y.useEffect(()=>{v.setOptions(d)},[d,v]),ew(d,m))throw R0(d,v,u);if(JE({result:m,errorResetBoundary:u,throwOnError:d.throwOnError,query:f.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,m),d.experimental_prefetchInRender&&!_a&&WE(m,i)&&(h?R0(d,v,u):f.getQueryCache().get(d.queryHash)?.promise)?.catch(ut).finally(()=>{v.updateResult()}),d.notifyOnChangeProps?m:v.trackResult(m)}function Il(n,r){return tw(n,qE)}function $i(n,r){const s=kv(),[i]=y.useState(()=>new YE(s,n));y.useEffect(()=>{i.setOptions(n)},[i,n]);const u=y.useSyncExternalStore(y.useCallback(d=>i.subscribe(Ze.batchCalls(d)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),f=y.useCallback((d,h)=>{i.mutate(d,h).catch(ut)},[i]);if(u.error&&Av(i.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}const Bv=new HE;var nw=function(){return null};const aw=({children:n})=>p.jsxs(QE,{client:Bv,children:[n,p.jsx(nw,{initialIsOpen:!1})]});var Gl={},C0;function rw(){if(C0)return Gl;C0=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.parse=d,Gl.serialize=m;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,r=/^[\u0021-\u003A\u003C-\u007E]*$/,s=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,f=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function d(S,A){const w=new f,R=S.length;if(R<2)return w;const T=A?.decode||b;let N=0;do{const _=S.indexOf("=",N);if(_===-1)break;const H=S.indexOf(";",N),V=H===-1?R:H;if(_>V){N=S.lastIndexOf(";",_-1)+1;continue}const P=h(S,N,_),ee=v(S,_,P),X=S.slice(P,ee);if(w[X]===void 0){let Z=h(S,_+1,V),I=v(S,V,Z);const se=T(S.slice(Z,I));w[X]=se}N=V+1}while(N<R);return w}function h(S,A,w){do{const R=S.charCodeAt(A);if(R!==32&&R!==9)return A}while(++A<w);return w}function v(S,A,w){for(;A>w;){const R=S.charCodeAt(--A);if(R!==32&&R!==9)return A+1}return w}function m(S,A,w){const R=w?.encode||encodeURIComponent;if(!n.test(S))throw new TypeError(`argument name is invalid: ${S}`);const T=R(A);if(!r.test(T))throw new TypeError(`argument val is invalid: ${A}`);let N=S+"="+T;if(!w)return N;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);N+="; Max-Age="+w.maxAge}if(w.domain){if(!s.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);N+="; Domain="+w.domain}if(w.path){if(!i.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);N+="; Path="+w.path}if(w.expires){if(!E(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);N+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(N+="; HttpOnly"),w.secure&&(N+="; Secure"),w.partitioned&&(N+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":N+="; Priority=Low";break;case"medium":N+="; Priority=Medium";break;case"high":N+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":N+="; SameSite=Strict";break;case"lax":N+="; SameSite=Lax";break;case"none":N+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return N}function b(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function E(S){return u.call(S)==="[object Date]"}return Gl}rw();var T0="popstate";function lw(n={}){function r(i,u){let{pathname:f,search:d,hash:h}=i.location;return sf("",{pathname:f,search:d,hash:h},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function s(i,u){return typeof u=="string"?u:Fl(u)}return iw(r,s,null,n)}function ke(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function ln(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function sw(){return Math.random().toString(36).substring(2,10)}function N0(n,r){return{usr:n.state,key:n.key,idx:r}}function sf(n,r,s=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Lr(r):r,state:s,key:r&&r.key||i||sw()}}function Fl({pathname:n="/",search:r="",hash:s=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Lr(n){let r={};if(n){let s=n.indexOf("#");s>=0&&(r.hash=n.substring(s),n=n.substring(0,s));let i=n.indexOf("?");i>=0&&(r.search=n.substring(i),n=n.substring(0,i)),n&&(r.pathname=n)}return r}function iw(n,r,s,i={}){let{window:u=document.defaultView,v5Compat:f=!1}=i,d=u.history,h="POP",v=null,m=b();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function b(){return(d.state||{idx:null}).idx}function E(){h="POP";let T=b(),N=T==null?null:T-m;m=T,v&&v({action:h,location:R.location,delta:N})}function S(T,N){h="PUSH";let _=sf(R.location,T,N);m=b()+1;let H=N0(_,m),V=R.createHref(_);try{d.pushState(H,"",V)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;u.location.assign(V)}f&&v&&v({action:h,location:R.location,delta:1})}function A(T,N){h="REPLACE";let _=sf(R.location,T,N);m=b();let H=N0(_,m),V=R.createHref(_);d.replaceState(H,"",V),f&&v&&v({action:h,location:R.location,delta:0})}function w(T){return ow(T)}let R={get action(){return h},get location(){return n(u,d)},listen(T){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(T0,E),v=T,()=>{u.removeEventListener(T0,E),v=null}},createHref(T){return r(u,T)},createURL:w,encodeLocation(T){let N=w(T);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:S,replace:A,go(T){return d.go(T)}};return R}function ow(n,r=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),ke(s,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Fl(n);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=s+i),new URL(i,s)}function Hv(n,r,s="/"){return uw(n,r,s,!1)}function uw(n,r,s,i){let u=typeof r=="string"?Lr(r):r,f=On(u.pathname||"/",s);if(f==null)return null;let d=qv(n);cw(d);let h=null;for(let v=0;h==null&&v<d.length;++v){let m=Sw(f);h=bw(d[v],m,i)}return h}function qv(n,r=[],s=[],i=""){let u=(f,d,h)=>{let v={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};v.relativePath.startsWith("/")&&(ke(v.relativePath.startsWith(i),`Absolute route path "${v.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(i.length));let m=Nn([i,v.relativePath]),b=s.concat(v);f.children&&f.children.length>0&&(ke(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),qv(f.children,r,b,m)),!(f.path==null&&!f.index)&&r.push({path:m,score:gw(m,f.index),routesMeta:b})};return n.forEach((f,d)=>{if(f.path===""||!f.path?.includes("?"))u(f,d);else for(let h of Gv(f.path))u(f,d,h)}),r}function Gv(n){let r=n.split("/");if(r.length===0)return[];let[s,...i]=r,u=s.endsWith("?"),f=s.replace(/\?$/,"");if(i.length===0)return u?[f,""]:[f];let d=Gv(i.join("/")),h=[];return h.push(...d.map(v=>v===""?f:[f,v].join("/"))),u&&h.push(...d),h.map(v=>n.startsWith("/")&&v===""?"/":v)}function cw(n){n.sort((r,s)=>r.score!==s.score?s.score-r.score:yw(r.routesMeta.map(i=>i.childrenIndex),s.routesMeta.map(i=>i.childrenIndex)))}var fw=/^:[\w-]+$/,dw=3,hw=2,mw=1,pw=10,vw=-2,A0=n=>n==="*";function gw(n,r){let s=n.split("/"),i=s.length;return s.some(A0)&&(i+=vw),r&&(i+=hw),s.filter(u=>!A0(u)).reduce((u,f)=>u+(fw.test(f)?dw:f===""?mw:pw),i)}function yw(n,r){return n.length===r.length&&n.slice(0,-1).every((i,u)=>i===r[u])?n[n.length-1]-r[r.length-1]:0}function bw(n,r,s=!1){let{routesMeta:i}=n,u={},f="/",d=[];for(let h=0;h<i.length;++h){let v=i[h],m=h===i.length-1,b=f==="/"?r:r.slice(f.length)||"/",E=ki({path:v.relativePath,caseSensitive:v.caseSensitive,end:m},b),S=v.route;if(!E&&m&&s&&!i[i.length-1].route.index&&(E=ki({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!E)return null;Object.assign(u,E.params),d.push({params:u,pathname:Nn([f,E.pathname]),pathnameBase:Cw(Nn([f,E.pathnameBase])),route:S}),E.pathnameBase!=="/"&&(f=Nn([f,E.pathnameBase]))}return d}function ki(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,i]=xw(n.path,n.caseSensitive,n.end),u=r.match(s);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:i.reduce((m,{paramName:b,isOptional:E},S)=>{if(b==="*"){let w=h[S]||"";d=f.slice(0,f.length-w.length).replace(/(.)\/+$/,"$1")}const A=h[S];return E&&!A?m[b]=void 0:m[b]=(A||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:d,pattern:n}}function xw(n,r=!1,s=!0){ln(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,v)=>(i.push({paramName:h,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,r?void 0:"i"),i]}function Sw(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return ln(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function On(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let s=r.endsWith("/")?r.length-1:r.length,i=n.charAt(s);return i&&i!=="/"?null:n.slice(s)||"/"}function Ew(n,r="/"){let{pathname:s,search:i="",hash:u=""}=typeof n=="string"?Lr(n):n;return{pathname:s?s.startsWith("/")?s:ww(s,r):r,search:Tw(i),hash:Nw(u)}}function ww(n,r){let s=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?s.length>1&&s.pop():u!=="."&&s.push(u)}),s.length>1?s.join("/"):"/"}function kc(n,r,s,i){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(i)}].  Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Rw(n){return n.filter((r,s)=>s===0||r.route.path&&r.route.path.length>0)}function Pv(n){let r=Rw(n);return r.map((s,i)=>i===r.length-1?s.pathname:s.pathnameBase)}function Yv(n,r,s,i=!1){let u;typeof n=="string"?u=Lr(n):(u={...n},ke(!u.pathname||!u.pathname.includes("?"),kc("?","pathname","search",u)),ke(!u.pathname||!u.pathname.includes("#"),kc("#","pathname","hash",u)),ke(!u.search||!u.search.includes("#"),kc("#","search","hash",u)));let f=n===""||u.pathname==="",d=f?"/":u.pathname,h;if(d==null)h=s;else{let E=r.length-1;if(!i&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),E-=1;u.pathname=S.join("/")}h=E>=0?r[E]:"/"}let v=Ew(u,h),m=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&s.endsWith("/");return!v.pathname.endsWith("/")&&(m||b)&&(v.pathname+="/"),v}var Nn=n=>n.join("/").replace(/\/\/+/g,"/"),Cw=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Tw=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Nw=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Aw(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Qv=["POST","PUT","PATCH","DELETE"];new Set(Qv);var Ow=["GET",...Qv];new Set(Ow);var Br=y.createContext(null);Br.displayName="DataRouter";var Ji=y.createContext(null);Ji.displayName="DataRouterState";var Vv=y.createContext({isTransitioning:!1});Vv.displayName="ViewTransition";var jw=y.createContext(new Map);jw.displayName="Fetchers";var Dw=y.createContext(null);Dw.displayName="Await";var on=y.createContext(null);on.displayName="Navigation";var Wl=y.createContext(null);Wl.displayName="Location";var jn=y.createContext({outlet:null,matches:[],isDataRoute:!1});jn.displayName="Route";var wf=y.createContext(null);wf.displayName="RouteError";function Mw(n,{relative:r}={}){ke(es(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:i}=y.useContext(on),{hash:u,pathname:f,search:d}=ts(n,{relative:r}),h=f;return s!=="/"&&(h=f==="/"?s:Nn([s,f])),i.createHref({pathname:h,search:d,hash:u})}function es(){return y.useContext(Wl)!=null}function Ba(){return ke(es(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Wl).location}var Xv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Fv(n){y.useContext(on).static||y.useLayoutEffect(n)}function Ii(){let{isDataRoute:n}=y.useContext(jn);return n?Vw():_w()}function _w(){ke(es(),"useNavigate() may be used only in the context of a <Router> component.");let n=y.useContext(Br),{basename:r,navigator:s}=y.useContext(on),{matches:i}=y.useContext(jn),{pathname:u}=Ba(),f=JSON.stringify(Pv(i)),d=y.useRef(!1);return Fv(()=>{d.current=!0}),y.useCallback((v,m={})=>{if(ln(d.current,Xv),!d.current)return;if(typeof v=="number"){s.go(v);return}let b=Yv(v,JSON.parse(f),u,m.relative==="path");n==null&&r!=="/"&&(b.pathname=b.pathname==="/"?r:Nn([r,b.pathname])),(m.replace?s.replace:s.push)(b,m.state,m)},[r,s,f,u,n])}y.createContext(null);function ts(n,{relative:r}={}){let{matches:s}=y.useContext(jn),{pathname:i}=Ba(),u=JSON.stringify(Pv(s));return y.useMemo(()=>Yv(n,JSON.parse(u),i,r==="path"),[n,u,i,r])}function zw(n,r){return Kv(n,r)}function Kv(n,r,s,i){ke(es(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=y.useContext(on),{matches:f}=y.useContext(jn),d=f[f.length-1],h=d?d.params:{},v=d?d.pathname:"/",m=d?d.pathnameBase:"/",b=d&&d.route;{let N=b&&b.path||"";Zv(v,!b||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${N}">) 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="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let E=Ba(),S;if(r){let N=typeof r=="string"?Lr(r):r;ke(m==="/"||N.pathname?.startsWith(m),`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 "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),S=N}else S=E;let A=S.pathname||"/",w=A;if(m!=="/"){let N=m.replace(/^\//,"").split("/");w="/"+A.replace(/^\//,"").split("/").slice(N.length).join("/")}let R=Hv(n,{pathname:w});ln(b||R!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),ln(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 "${S.pathname}${S.search}${S.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=Hw(R&&R.map(N=>Object.assign({},N,{params:Object.assign({},h,N.params),pathname:Nn([m,u.encodeLocation?u.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:Nn([m,u.encodeLocation?u.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),f,s,i);return r&&T?y.createElement(Wl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},T):T}function Uw(){let n=Qw(),r=Aw(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.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:",n),d=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:f},"ErrorBoundary")," or"," ",y.createElement("code",{style:f},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},r),s?y.createElement("pre",{style:u},s):null,d)}var kw=y.createElement(Uw,null),Lw=class extends y.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){console.error("React Router caught the following error during render",n,r)}render(){return this.state.error!==void 0?y.createElement(jn.Provider,{value:this.props.routeContext},y.createElement(wf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Bw({routeContext:n,match:r,children:s}){let i=y.useContext(Br);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),y.createElement(jn.Provider,{value:n},s)}function Hw(n,r=[],s=null,i=null){if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(r.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let u=n,f=s?.errors;if(f!=null){let v=u.findIndex(m=>m.route.id&&f?.[m.route.id]!==void 0);ke(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,v+1))}let d=!1,h=-1;if(s)for(let v=0;v<u.length;v++){let m=u[v];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=v),m.route.id){let{loaderData:b,errors:E}=s,S=m.route.loader&&!b.hasOwnProperty(m.route.id)&&(!E||E[m.route.id]===void 0);if(m.route.lazy||S){d=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((v,m,b)=>{let E,S=!1,A=null,w=null;s&&(E=f&&m.route.id?f[m.route.id]:void 0,A=m.route.errorElement||kw,d&&(h<0&&b===0?(Zv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,w=null):h===b&&(S=!0,w=m.route.hydrateFallbackElement||null)));let R=r.concat(u.slice(0,b+1)),T=()=>{let N;return E?N=A:S?N=w:m.route.Component?N=y.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=v,y.createElement(Bw,{match:m,routeContext:{outlet:v,matches:R,isDataRoute:s!=null},children:N})};return s&&(m.route.ErrorBoundary||m.route.errorElement||b===0)?y.createElement(Lw,{location:s.location,revalidation:s.revalidation,component:A,error:E,children:T(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):T()},null)}function Rf(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function qw(n){let r=y.useContext(Br);return ke(r,Rf(n)),r}function Gw(n){let r=y.useContext(Ji);return ke(r,Rf(n)),r}function Pw(n){let r=y.useContext(jn);return ke(r,Rf(n)),r}function Cf(n){let r=Pw(n),s=r.matches[r.matches.length-1];return ke(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function Yw(){return Cf("useRouteId")}function Qw(){let n=y.useContext(wf),r=Gw("useRouteError"),s=Cf("useRouteError");return n!==void 0?n:r.errors?.[s]}function Vw(){let{router:n}=qw("useNavigate"),r=Cf("useNavigate"),s=y.useRef(!1);return Fv(()=>{s.current=!0}),y.useCallback(async(u,f={})=>{ln(s.current,Xv),s.current&&(typeof u=="number"?n.navigate(u):await n.navigate(u,{fromRouteId:r,...f}))},[n,r])}var O0={};function Zv(n,r,s){!r&&!O0[n]&&(O0[n]=!0,ln(!1,s))}y.memo(Xw);function Xw({routes:n,future:r,state:s}){return Kv(n,void 0,s,r)}function Ni(n){ke(!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 Fw({basename:n="/",children:r=null,location:s,navigationType:i="POP",navigator:u,static:f=!1}){ke(!es(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),h=y.useMemo(()=>({basename:d,navigator:u,static:f,future:{}}),[d,u,f]);typeof s=="string"&&(s=Lr(s));let{pathname:v="/",search:m="",hash:b="",state:E=null,key:S="default"}=s,A=y.useMemo(()=>{let w=On(v,d);return w==null?null:{location:{pathname:w,search:m,hash:b,state:E,key:S},navigationType:i}},[d,v,m,b,E,S,i]);return ln(A!=null,`<Router basename="${d}"> is not able to match the URL "${v}${m}${b}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:y.createElement(on.Provider,{value:h},y.createElement(Wl.Provider,{children:r,value:A}))}function Kw({children:n,location:r}){return zw(of(n),r)}function of(n,r=[]){let s=[];return y.Children.forEach(n,(i,u)=>{if(!y.isValidElement(i))return;let f=[...r,u];if(i.type===y.Fragment){s.push.apply(s,of(i.props.children,f));return}ke(i.type===Ni,`[${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>`),ke(!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,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=of(i.props.children,f)),s.push(d)}),s}var Ai="get",Oi="application/x-www-form-urlencoded";function Wi(n){return n!=null&&typeof n.tagName=="string"}function Zw(n){return Wi(n)&&n.tagName.toLowerCase()==="button"}function $w(n){return Wi(n)&&n.tagName.toLowerCase()==="form"}function Jw(n){return Wi(n)&&n.tagName.toLowerCase()==="input"}function Iw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Ww(n,r){return n.button===0&&(!r||r==="_self")&&!Iw(n)}var yi=null;function e2(){if(yi===null)try{new FormData(document.createElement("form"),0),yi=!1}catch{yi=!0}return yi}var t2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lc(n){return n!=null&&!t2.has(n)?(ln(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Oi}"`),null):n}function n2(n,r){let s,i,u,f,d;if($w(n)){let h=n.getAttribute("action");i=h?On(h,r):null,s=n.getAttribute("method")||Ai,u=Lc(n.getAttribute("enctype"))||Oi,f=new FormData(n)}else if(Zw(n)||Jw(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=n.getAttribute("formaction")||h.getAttribute("action");if(i=v?On(v,r):null,s=n.getAttribute("formmethod")||h.getAttribute("method")||Ai,u=Lc(n.getAttribute("formenctype"))||Lc(h.getAttribute("enctype"))||Oi,f=new FormData(h,n),!e2()){let{name:m,type:b,value:E}=n;if(b==="image"){let S=m?`${m}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else m&&f.append(m,E)}}else{if(Wi(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Ai,i=null,u=Oi,d=n}return f&&u==="text/plain"&&(d=f,f=void 0),{action:i,method:s.toLowerCase(),encType:u,formData:f,body:d}}function Tf(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}async function a2(n,r){if(n.id in r)return r[n.id];try{let s=await import(n.module);return r[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function r2(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function l2(n,r,s){let i=await Promise.all(n.map(async u=>{let f=r.routes[u.route.id];if(f){let d=await a2(f,s);return d.links?d.links():[]}return[]}));return u2(i.flat(1).filter(r2).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function j0(n,r,s,i,u,f){let d=(v,m)=>s[m]?v.route.id!==s[m].route.id:!0,h=(v,m)=>s[m].pathname!==v.pathname||s[m].route.path?.endsWith("*")&&s[m].params["*"]!==v.params["*"];return f==="assets"?r.filter((v,m)=>d(v,m)||h(v,m)):f==="data"?r.filter((v,m)=>{let b=i.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(d(v,m)||h(v,m))return!0;if(v.route.shouldRevalidate){let E=v.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:s[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function s2(n,r,{includeHydrateFallback:s}={}){return i2(n.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)),s&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function i2(n){return[...new Set(n)]}function o2(n){let r={},s=Object.keys(n).sort();for(let i of s)r[i]=n[i];return r}function u2(n,r){let s=new Set;return new Set(r),n.reduce((i,u)=>{let f=JSON.stringify(o2(u));return s.has(f)||(s.add(f),i.push({key:f,link:u})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var c2=new Set([100,101,204,205]);function f2(n,r){let s=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s.pathname==="/"?s.pathname="_root.data":r&&On(s.pathname,r)==="/"?s.pathname=`${r.replace(/\/$/,"")}/_root.data`:s.pathname=`${s.pathname.replace(/\/$/,"")}.data`,s}function $v(){let n=y.useContext(Br);return Tf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function d2(){let n=y.useContext(Ji);return Tf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Nf=y.createContext(void 0);Nf.displayName="FrameworkContext";function Jv(){let n=y.useContext(Nf);return Tf(n,"You must render this element inside a <HydratedRouter> element"),n}function h2(n,r){let s=y.useContext(Nf),[i,u]=y.useState(!1),[f,d]=y.useState(!1),{onFocus:h,onBlur:v,onMouseEnter:m,onMouseLeave:b,onTouchStart:E}=r,S=y.useRef(null);y.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let R=N=>{N.forEach(_=>{d(_.isIntersecting)})},T=new IntersectionObserver(R,{threshold:.5});return S.current&&T.observe(S.current),()=>{T.disconnect()}}},[n]),y.useEffect(()=>{if(i){let R=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(R)}}},[i]);let A=()=>{u(!0)},w=()=>{u(!1),d(!1)};return s?n!=="intent"?[f,S,{}]:[f,S,{onFocus:Pl(h,A),onBlur:Pl(v,w),onMouseEnter:Pl(m,A),onMouseLeave:Pl(b,w),onTouchStart:Pl(E,A)}]:[!1,S,{}]}function Pl(n,r){return s=>{n&&n(s),s.defaultPrevented||r(s)}}function m2({page:n,...r}){let{router:s}=$v(),i=y.useMemo(()=>Hv(s.routes,n,s.basename),[s.routes,n,s.basename]);return i?y.createElement(v2,{page:n,matches:i,...r}):null}function p2(n){let{manifest:r,routeModules:s}=Jv(),[i,u]=y.useState([]);return y.useEffect(()=>{let f=!1;return l2(n,r,s).then(d=>{f||u(d)}),()=>{f=!0}},[n,r,s]),i}function v2({page:n,matches:r,...s}){let i=Ba(),{manifest:u,routeModules:f}=Jv(),{basename:d}=$v(),{loaderData:h,matches:v}=d2(),m=y.useMemo(()=>j0(n,r,v,u,i,"data"),[n,r,v,u,i]),b=y.useMemo(()=>j0(n,r,v,u,i,"assets"),[n,r,v,u,i]),E=y.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let w=new Set,R=!1;if(r.forEach(N=>{let _=u.routes[N.route.id];!_||!_.hasLoader||(!m.some(H=>H.route.id===N.route.id)&&N.route.id in h&&f[N.route.id]?.shouldRevalidate||_.hasClientLoader?R=!0:w.add(N.route.id))}),w.size===0)return[];let T=f2(n,d);return R&&w.size>0&&T.searchParams.set("_routes",r.filter(N=>w.has(N.route.id)).map(N=>N.route.id).join(",")),[T.pathname+T.search]},[d,h,i,u,m,r,n,f]),S=y.useMemo(()=>s2(b,u),[b,u]),A=p2(b);return y.createElement(y.Fragment,null,E.map(w=>y.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...s})),S.map(w=>y.createElement("link",{key:w,rel:"modulepreload",href:w,...s})),A.map(({key:w,link:R})=>y.createElement("link",{key:w,...R})))}function g2(...n){return r=>{n.forEach(s=>{typeof s=="function"?s(r):s!=null&&(s.current=r)})}}var Iv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Iv&&(window.__reactRouterVersion="7.6.3")}catch{}function y2({basename:n,children:r,window:s}){let i=y.useRef();i.current==null&&(i.current=lw({window:s,v5Compat:!0}));let u=i.current,[f,d]=y.useState({action:u.action,location:u.location}),h=y.useCallback(v=>{y.startTransition(()=>d(v))},[d]);return y.useLayoutEffect(()=>u.listen(h),[u,h]),y.createElement(Fw,{basename:n,children:r,location:f.location,navigationType:f.action,navigator:u})}var Wv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eg=y.forwardRef(function({onClick:r,discover:s="render",prefetch:i="none",relative:u,reloadDocument:f,replace:d,state:h,target:v,to:m,preventScrollReset:b,viewTransition:E,...S},A){let{basename:w}=y.useContext(on),R=typeof m=="string"&&Wv.test(m),T,N=!1;if(typeof m=="string"&&R&&(T=m,Iv))try{let I=new URL(window.location.href),se=m.startsWith("//")?new URL(I.protocol+m):new URL(m),be=On(se.pathname,w);se.origin===I.origin&&be!=null?m=be+se.search+se.hash:N=!0}catch{ln(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let _=Mw(m,{relative:u}),[H,V,P]=h2(i,S),ee=E2(m,{replace:d,state:h,target:v,preventScrollReset:b,relative:u,viewTransition:E});function X(I){r&&r(I),I.defaultPrevented||ee(I)}let Z=y.createElement("a",{...S,...P,href:T||_,onClick:N||f?r:X,ref:g2(A,V),target:v,"data-discover":!R&&s==="render"?"true":void 0});return H&&!R?y.createElement(y.Fragment,null,Z,y.createElement(m2,{page:_})):Z});eg.displayName="Link";var b2=y.forwardRef(function({"aria-current":r="page",caseSensitive:s=!1,className:i="",end:u=!1,style:f,to:d,viewTransition:h,children:v,...m},b){let E=ts(d,{relative:m.relative}),S=Ba(),A=y.useContext(Ji),{navigator:w,basename:R}=y.useContext(on),T=A!=null&&N2(E)&&h===!0,N=w.encodeLocation?w.encodeLocation(E).pathname:E.pathname,_=S.pathname,H=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;s||(_=_.toLowerCase(),H=H?H.toLowerCase():null,N=N.toLowerCase()),H&&R&&(H=On(H,R)||H);const V=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let P=_===N||!u&&_.startsWith(N)&&_.charAt(V)==="/",ee=H!=null&&(H===N||!u&&H.startsWith(N)&&H.charAt(N.length)==="/"),X={isActive:P,isPending:ee,isTransitioning:T},Z=P?r:void 0,I;typeof i=="function"?I=i(X):I=[i,P?"active":null,ee?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let se=typeof f=="function"?f(X):f;return y.createElement(eg,{...m,"aria-current":Z,className:I,ref:b,style:se,to:d,viewTransition:h},typeof v=="function"?v(X):v)});b2.displayName="NavLink";var x2=y.forwardRef(({discover:n="render",fetcherKey:r,navigate:s,reloadDocument:i,replace:u,state:f,method:d=Ai,action:h,onSubmit:v,relative:m,preventScrollReset:b,viewTransition:E,...S},A)=>{let w=C2(),R=T2(h,{relative:m}),T=d.toLowerCase()==="get"?"get":"post",N=typeof h=="string"&&Wv.test(h),_=H=>{if(v&&v(H),H.defaultPrevented)return;H.preventDefault();let V=H.nativeEvent.submitter,P=V?.getAttribute("formmethod")||d;w(V||H.currentTarget,{fetcherKey:r,method:P,navigate:s,replace:u,state:f,relative:m,preventScrollReset:b,viewTransition:E})};return y.createElement("form",{ref:A,method:T,action:R,onSubmit:i?v:_,...S,"data-discover":!N&&n==="render"?"true":void 0})});x2.displayName="Form";function S2(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function tg(n){let r=y.useContext(Br);return ke(r,S2(n)),r}function E2(n,{target:r,replace:s,state:i,preventScrollReset:u,relative:f,viewTransition:d}={}){let h=Ii(),v=Ba(),m=ts(n,{relative:f});return y.useCallback(b=>{if(Ww(b,r)){b.preventDefault();let E=s!==void 0?s:Fl(v)===Fl(m);h(n,{replace:E,state:i,preventScrollReset:u,relative:f,viewTransition:d})}},[v,h,m,s,i,r,n,u,f,d])}var w2=0,R2=()=>`__${String(++w2)}__`;function C2(){let{router:n}=tg("useSubmit"),{basename:r}=y.useContext(on),s=Yw();return y.useCallback(async(i,u={})=>{let{action:f,method:d,encType:h,formData:v,body:m}=n2(i,r);if(u.navigate===!1){let b=u.fetcherKey||R2();await n.fetch(b,s,u.action||f,{preventScrollReset:u.preventScrollReset,formData:v,body:m,formMethod:u.method||d,formEncType:u.encType||h,flushSync:u.flushSync})}else await n.navigate(u.action||f,{preventScrollReset:u.preventScrollReset,formData:v,body:m,formMethod:u.method||d,formEncType:u.encType||h,replace:u.replace,state:u.state,fromRouteId:s,flushSync:u.flushSync,viewTransition:u.viewTransition})},[n,r,s])}function T2(n,{relative:r}={}){let{basename:s}=y.useContext(on),i=y.useContext(jn);ke(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),f={...ts(n||".",{relative:r})},d=Ba();if(n==null){f.search=d.search;let h=new URLSearchParams(f.search),v=h.getAll("index");if(v.some(b=>b==="")){h.delete("index"),v.filter(E=>E).forEach(E=>h.append("index",E));let b=h.toString();f.search=b?`?${b}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:Nn([s,f.pathname])),Fl(f)}function N2(n,r={}){let s=y.useContext(Vv);ke(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=tg("useViewTransitionState"),u=ts(n,{relative:r.relative});if(!s.isTransitioning)return!1;let f=On(s.currentLocation.pathname,i)||s.currentLocation.pathname,d=On(s.nextLocation.pathname,i)||s.nextLocation.pathname;return ki(u.pathname,d)!=null||ki(u.pathname,f)!=null}[...c2];var ng=I0();const A2=J0(ng);function ag(n){var r,s,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r<u;r++)n[r]&&(s=ag(n[r]))&&(i&&(i+=" "),i+=s)}else for(s in n)n[s]&&(i&&(i+=" "),i+=s);return i}function rg(){for(var n,r,s=0,i="",u=arguments.length;s<u;s++)(n=arguments[s])&&(r=ag(n))&&(i&&(i+=" "),i+=r);return i}const D0=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,M0=rg,Af=(n,r)=>s=>{var i;if(r?.variants==null)return M0(n,s?.class,s?.className);const{variants:u,defaultVariants:f}=r,d=Object.keys(u).map(m=>{const b=s?.[m],E=f?.[m];if(b===null)return null;const S=D0(b)||D0(E);return u[m][S]}),h=s&&Object.entries(s).reduce((m,b)=>{let[E,S]=b;return S===void 0||(m[E]=S),m},{}),v=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((m,b)=>{let{class:E,className:S,...A}=b;return Object.entries(A).every(w=>{let[R,T]=w;return Array.isArray(T)?T.includes({...f,...h}[R]):{...f,...h}[R]===T})?[...m,E,S]:m},[]);return M0(n,d,v,s?.class,s?.className)},Of="-",O2=n=>{const r=D2(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:d=>{const h=d.split(Of);return h[0]===""&&h.length!==1&&h.shift(),lg(h,r)||j2(d)},getConflictingClassGroupIds:(d,h)=>{const v=s[d]||[];return h&&i[d]?[...v,...i[d]]:v}}},lg=(n,r)=>{if(n.length===0)return r.classGroupId;const s=n[0],i=r.nextPart.get(s),u=i?lg(n.slice(1),i):void 0;if(u)return u;if(r.validators.length===0)return;const f=n.join(Of);return r.validators.find(({validator:d})=>d(f))?.classGroupId},_0=/^\[(.+)\]$/,j2=n=>{if(_0.test(n)){const r=_0.exec(n)[1],s=r?.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},D2=n=>{const{theme:r,prefix:s}=n,i={nextPart:new Map,validators:[]};return _2(Object.entries(n.classGroups),s).forEach(([f,d])=>{uf(d,i,f,r)}),i},uf=(n,r,s,i)=>{n.forEach(u=>{if(typeof u=="string"){const f=u===""?r:z0(r,u);f.classGroupId=s;return}if(typeof u=="function"){if(M2(u)){uf(u(i),r,s,i);return}r.validators.push({validator:u,classGroupId:s});return}Object.entries(u).forEach(([f,d])=>{uf(d,z0(r,f),s,i)})})},z0=(n,r)=>{let s=n;return r.split(Of).forEach(i=>{s.nextPart.has(i)||s.nextPart.set(i,{nextPart:new Map,validators:[]}),s=s.nextPart.get(i)}),s},M2=n=>n.isThemeGetter,_2=(n,r)=>r?n.map(([s,i])=>{const u=i.map(f=>typeof f=="string"?r+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([d,h])=>[r+d,h])):f);return[s,u]}):n,z2=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,i=new Map;const u=(f,d)=>{s.set(f,d),r++,r>n&&(r=0,i=s,s=new Map)};return{get(f){let d=s.get(f);if(d!==void 0)return d;if((d=i.get(f))!==void 0)return u(f,d),d},set(f,d){s.has(f)?s.set(f,d):u(f,d)}}},sg="!",U2=n=>{const{separator:r,experimentalParseClassName:s}=n,i=r.length===1,u=r[0],f=r.length,d=h=>{const v=[];let m=0,b=0,E;for(let T=0;T<h.length;T++){let N=h[T];if(m===0){if(N===u&&(i||h.slice(T,T+f)===r)){v.push(h.slice(b,T)),b=T+f;continue}if(N==="/"){E=T;continue}}N==="["?m++:N==="]"&&m--}const S=v.length===0?h:h.substring(b),A=S.startsWith(sg),w=A?S.substring(1):S,R=E&&E>b?E-b:void 0;return{modifiers:v,hasImportantModifier:A,baseClassName:w,maybePostfixModifierPosition:R}};return s?h=>s({className:h,parseClassName:d}):d},k2=n=>{if(n.length<=1)return n;const r=[];let s=[];return n.forEach(i=>{i[0]==="["?(r.push(...s.sort(),i),s=[]):s.push(i)}),r.push(...s.sort()),r},L2=n=>({cache:z2(n.cacheSize),parseClassName:U2(n),...O2(n)}),B2=/\s+/,H2=(n,r)=>{const{parseClassName:s,getClassGroupId:i,getConflictingClassGroupIds:u}=r,f=[],d=n.trim().split(B2);let h="";for(let v=d.length-1;v>=0;v-=1){const m=d[v],{modifiers:b,hasImportantModifier:E,baseClassName:S,maybePostfixModifierPosition:A}=s(m);let w=!!A,R=i(w?S.substring(0,A):S);if(!R){if(!w){h=m+(h.length>0?" "+h:h);continue}if(R=i(S),!R){h=m+(h.length>0?" "+h:h);continue}w=!1}const T=k2(b).join(":"),N=E?T+sg:T,_=N+R;if(f.includes(_))continue;f.push(_);const H=u(R,w);for(let V=0;V<H.length;++V){const P=H[V];f.push(N+P)}h=m+(h.length>0?" "+h:h)}return h};function q2(){let n=0,r,s,i="";for(;n<arguments.length;)(r=arguments[n++])&&(s=ig(r))&&(i&&(i+=" "),i+=s);return i}const ig=n=>{if(typeof n=="string")return n;let r,s="";for(let i=0;i<n.length;i++)n[i]&&(r=ig(n[i]))&&(s&&(s+=" "),s+=r);return s};function G2(n,...r){let s,i,u,f=d;function d(v){const m=r.reduce((b,E)=>E(b),n());return s=L2(m),i=s.cache.get,u=s.cache.set,f=h,h(v)}function h(v){const m=i(v);if(m)return m;const b=H2(v,s);return u(v,b),b}return function(){return f(q2.apply(null,arguments))}}const Me=n=>{const r=s=>s[n]||[];return r.isThemeGetter=!0,r},og=/^\[(?:([a-z-]+):)?(.+)\]$/i,P2=/^\d+\/\d+$/,Y2=new Set(["px","full","screen"]),Q2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V2=/\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$/,X2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,F2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=n=>Ar(n)||Y2.has(n)||P2.test(n),na=n=>Hr(n,"length",nR),Ar=n=>!!n&&!Number.isNaN(Number(n)),Bc=n=>Hr(n,"number",Ar),Yl=n=>!!n&&Number.isInteger(Number(n)),Z2=n=>n.endsWith("%")&&Ar(n.slice(0,-1)),fe=n=>og.test(n),aa=n=>Q2.test(n),$2=new Set(["length","size","percentage"]),J2=n=>Hr(n,$2,ug),I2=n=>Hr(n,"position",ug),W2=new Set(["image","url"]),eR=n=>Hr(n,W2,rR),tR=n=>Hr(n,"",aR),Ql=()=>!0,Hr=(n,r,s)=>{const i=og.exec(n);return i?i[1]?typeof r=="string"?i[1]===r:r.has(i[1]):s(i[2]):!1},nR=n=>V2.test(n)&&!X2.test(n),ug=()=>!1,aR=n=>F2.test(n),rR=n=>K2.test(n),lR=()=>{const n=Me("colors"),r=Me("spacing"),s=Me("blur"),i=Me("brightness"),u=Me("borderColor"),f=Me("borderRadius"),d=Me("borderSpacing"),h=Me("borderWidth"),v=Me("contrast"),m=Me("grayscale"),b=Me("hueRotate"),E=Me("invert"),S=Me("gap"),A=Me("gradientColorStops"),w=Me("gradientColorStopPositions"),R=Me("inset"),T=Me("margin"),N=Me("opacity"),_=Me("padding"),H=Me("saturate"),V=Me("scale"),P=Me("sepia"),ee=Me("skew"),X=Me("space"),Z=Me("translate"),I=()=>["auto","contain","none"],se=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto",fe,r],ie=()=>[fe,r],Mt=()=>["",Tn,na],yt=()=>["auto",Ar,fe],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],ye=()=>["","0",fe],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Ar,fe];return{cacheSize:500,separator:":",theme:{colors:[Ql],spacing:[Tn,na],blur:["none","",aa,fe],brightness:Y(),borderColor:[n],borderRadius:["none","","full",aa,fe],borderSpacing:ie(),borderWidth:Mt(),contrast:Y(),grayscale:ye(),hueRotate:Y(),invert:ye(),gap:ie(),gradientColorStops:[n],gradientColorStopPositions:[Z2,na],inset:be(),margin:be(),opacity:Y(),padding:ie(),saturate:Y(),scale:Y(),sepia:ye(),skew:Y(),space:ie(),translate:ie()},classGroups:{aspect:[{aspect:["auto","square","video",fe]}],container:["container"],columns:[{columns:[aa]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...qe(),fe]}],overflow:[{overflow:se()}],"overflow-x":[{"overflow-x":se()}],"overflow-y":[{"overflow-y":se()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Yl,fe]}],basis:[{basis:be()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fe]}],grow:[{grow:ye()}],shrink:[{shrink:ye()}],order:[{order:["first","last","none",Yl,fe]}],"grid-cols":[{"grid-cols":[Ql]}],"col-start-end":[{col:["auto",{span:["full",Yl,fe]},fe]}],"col-start":[{"col-start":yt()}],"col-end":[{"col-end":yt()}],"grid-rows":[{"grid-rows":[Ql]}],"row-start-end":[{row:["auto",{span:[Yl,fe]},fe]}],"row-start":[{"row-start":yt()}],"row-end":[{"row-end":yt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fe]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",fe,r]}],"min-w":[{"min-w":[fe,r,"min","max","fit"]}],"max-w":[{"max-w":[fe,r,"none","full","min","max","fit","prose",{screen:[aa]},aa]}],h:[{h:[fe,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[fe,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[fe,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[fe,r,"auto","min","max","fit"]}],"font-size":[{text:["base",aa,na]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bc]}],"font-family":[{font:[Ql]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",fe]}],"line-clamp":[{"line-clamp":["none",Ar,Bc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,fe]}],"list-image":[{"list-image":["none",fe]}],"list-style-type":[{list:["none","disc","decimal",fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,na]}],"underline-offset":[{"underline-offset":["auto",Tn,fe]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ie()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),I2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",J2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eR]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:B()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Tn,fe]}],"outline-w":[{outline:[Tn,na]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:Mt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[Tn,na]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",aa,tR]}],"shadow-color":[{shadow:[Ql]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[i]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",aa,fe]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[E]}],saturate:[{saturate:[H]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[E]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",fe]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",fe]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[Yl,fe]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"skew-x":[{"skew-x":[ee]}],"skew-y":[{"skew-y":[ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",fe]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ie()}],"scroll-mx":[{"scroll-mx":ie()}],"scroll-my":[{"scroll-my":ie()}],"scroll-ms":[{"scroll-ms":ie()}],"scroll-me":[{"scroll-me":ie()}],"scroll-mt":[{"scroll-mt":ie()}],"scroll-mr":[{"scroll-mr":ie()}],"scroll-mb":[{"scroll-mb":ie()}],"scroll-ml":[{"scroll-ml":ie()}],"scroll-p":[{"scroll-p":ie()}],"scroll-px":[{"scroll-px":ie()}],"scroll-py":[{"scroll-py":ie()}],"scroll-ps":[{"scroll-ps":ie()}],"scroll-pe":[{"scroll-pe":ie()}],"scroll-pt":[{"scroll-pt":ie()}],"scroll-pr":[{"scroll-pr":ie()}],"scroll-pb":[{"scroll-pb":ie()}],"scroll-pl":[{"scroll-pl":ie()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fe]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[Tn,na,Bc]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},sR=G2(lR);function ve(...n){return sR(rg(n))}const iR=Af("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function An({className:n,variant:r,...s}){return p.jsx("div",{className:ve(iR({variant:r}),n),...s})}function U0(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function cg(...n){return r=>{let s=!1;const i=n.map(u=>{const f=U0(u,r);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<i.length;u++){const f=i[u];typeof f=="function"?f():U0(n[u],null)}}}}function Ye(...n){return y.useCallback(cg(...n),n)}var Dr=y.forwardRef((n,r)=>{const{children:s,...i}=n,u=y.Children.toArray(s),f=u.find(uR);if(f){const d=f.props.children,h=u.map(v=>v===f?y.Children.count(d)>1?y.Children.only(null):y.isValidElement(d)?d.props.children:null:v);return p.jsx(cf,{...i,ref:r,children:y.isValidElement(d)?y.cloneElement(d,void 0,h):null})}return p.jsx(cf,{...i,ref:r,children:s})});Dr.displayName="Slot";var cf=y.forwardRef((n,r)=>{const{children:s,...i}=n;if(y.isValidElement(s)){const u=fR(s);return y.cloneElement(s,{...cR(i,s.props),ref:r?cg(r,u):u})}return y.Children.count(s)>1?y.Children.only(null):null});cf.displayName="SlotClone";var oR=({children:n})=>p.jsx(p.Fragment,{children:n});function uR(n){return y.isValidElement(n)&&n.type===oR}function cR(n,r){const s={...r};for(const i in r){const u=n[i],f=r[i];/^on[A-Z]/.test(i)?u&&f?s[i]=(...h)=>{f(...h),u(...h)}:u&&(s[i]=u):i==="style"?s[i]={...u,...f}:i==="className"&&(s[i]=[u,f].filter(Boolean).join(" "))}return{...n,...s}}function fR(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}const dR=Af("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0  hover:cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Xe=y.forwardRef(({className:n,variant:r,size:s,asChild:i=!1,...u},f)=>{const d=i?Dr:"button";return p.jsx(d,{className:ve(dR({variant:r,size:s,className:n})),ref:f,...u})});Xe.displayName="Button";const Ot=y.forwardRef(({className:n,...r},s)=>p.jsx("div",{ref:s,className:ve("rounded-lg border bg-card text-card-foreground shadow-sm",n),...r}));Ot.displayName="Card";const jt=y.forwardRef(({className:n,...r},s)=>p.jsx("div",{ref:s,className:ve("flex flex-col space-y-1.5 p-6",n),...r}));jt.displayName="CardHeader";const Dt=y.forwardRef(({className:n,...r},s)=>p.jsx("div",{ref:s,className:ve("text-2xl font-semibold leading-none tracking-tight",n),...r}));Dt.displayName="CardTitle";const Li=y.forwardRef(({className:n,...r},s)=>p.jsx("div",{ref:s,className:ve("text-sm text-muted-foreground",n),...r}));Li.displayName="CardDescription";const Pt=y.forwardRef(({className:n,...r},s)=>p.jsx("div",{ref:s,className:ve("p-6 pt-0",n),...r}));Pt.displayName="CardContent";const hR=y.forwardRef(({className:n,...r},s)=>p.jsx("div",{ref:s,className:ve("flex items-center p-6 pt-0",n),...r}));hR.displayName="CardFooter";var mR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ee=mR.reduce((n,r)=>{const s=y.forwardRef((i,u)=>{const{asChild:f,...d}=i,h=f?Dr:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(h,{...d,ref:u})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function pR(n,r){n&&ng.flushSync(()=>n.dispatchEvent(r))}var Ua=globalThis?.document?y.useLayoutEffect:()=>{};function vR(n,r){return y.useReducer((s,i)=>r[s][i]??s,n)}var Yt=n=>{const{present:r,children:s}=n,i=gR(r),u=typeof s=="function"?s({present:i.isPresent}):y.Children.only(s),f=Ye(i.ref,yR(u));return typeof s=="function"||i.isPresent?y.cloneElement(u,{ref:f}):null};Yt.displayName="Presence";function gR(n){const[r,s]=y.useState(),i=y.useRef({}),u=y.useRef(n),f=y.useRef("none"),d=n?"mounted":"unmounted",[h,v]=vR(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const m=bi(i.current);f.current=h==="mounted"?m:"none"},[h]),Ua(()=>{const m=i.current,b=u.current;if(b!==n){const S=f.current,A=bi(m);n?v("MOUNT"):A==="none"||m?.display==="none"?v("UNMOUNT"):v(b&&S!==A?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,v]),Ua(()=>{if(r){let m;const b=r.ownerDocument.defaultView??window,E=A=>{const R=bi(i.current).includes(A.animationName);if(A.target===r&&R&&(v("ANIMATION_END"),!u.current)){const T=r.style.animationFillMode;r.style.animationFillMode="forwards",m=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=T)})}},S=A=>{A.target===r&&(f.current=bi(i.current))};return r.addEventListener("animationstart",S),r.addEventListener("animationcancel",E),r.addEventListener("animationend",E),()=>{b.clearTimeout(m),r.removeEventListener("animationstart",S),r.removeEventListener("animationcancel",E),r.removeEventListener("animationend",E)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:y.useCallback(m=>{m&&(i.current=getComputedStyle(m)),s(m)},[])}}function bi(n){return n?.animationName||"none"}function yR(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function bR(n,r){const s=y.createContext(r),i=f=>{const{children:d,...h}=f,v=y.useMemo(()=>h,Object.values(h));return p.jsx(s.Provider,{value:v,children:d})};i.displayName=n+"Provider";function u(f){const d=y.useContext(s);if(d)return d;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[i,u]}function un(n,r=[]){let s=[];function i(f,d){const h=y.createContext(d),v=s.length;s=[...s,d];const m=E=>{const{scope:S,children:A,...w}=E,R=S?.[n]?.[v]||h,T=y.useMemo(()=>w,Object.values(w));return p.jsx(R.Provider,{value:T,children:A})};m.displayName=f+"Provider";function b(E,S){const A=S?.[n]?.[v]||h,w=y.useContext(A);if(w)return w;if(d!==void 0)return d;throw new Error(`\`${E}\` must be used within \`${f}\``)}return[m,b]}const u=()=>{const f=s.map(d=>y.createContext(d));return function(h){const v=h?.[n]||f;return y.useMemo(()=>({[`__scope${n}`]:{...h,[n]:v}}),[h,v])}};return u.scopeName=n,[i,xR(u,...r)]}function xR(...n){const r=n[0];if(n.length===1)return r;const s=()=>{const i=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const d=i.reduce((h,{useScope:v,scopeName:m})=>{const E=v(f)[`__scope${m}`];return{...h,...E}},{});return y.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return s.scopeName=r.scopeName,s}function ct(n){const r=y.useRef(n);return y.useEffect(()=>{r.current=n}),y.useMemo(()=>(...s)=>r.current?.(...s),[])}var SR=y.createContext(void 0);function eo(n){const r=y.useContext(SR);return n||r||"ltr"}function ER(n,[r,s]){return Math.min(s,Math.max(r,n))}function Re(n,r,{checkForDefaultPrevented:s=!0}={}){return function(u){if(n?.(u),s===!1||!u.defaultPrevented)return r?.(u)}}function wR(n,r){return y.useReducer((s,i)=>r[s][i]??s,n)}var jf="ScrollArea",[fg,xA]=un(jf),[RR,Qt]=fg(jf),dg=y.forwardRef((n,r)=>{const{__scopeScrollArea:s,type:i="hover",dir:u,scrollHideDelay:f=600,...d}=n,[h,v]=y.useState(null),[m,b]=y.useState(null),[E,S]=y.useState(null),[A,w]=y.useState(null),[R,T]=y.useState(null),[N,_]=y.useState(0),[H,V]=y.useState(0),[P,ee]=y.useState(!1),[X,Z]=y.useState(!1),I=Ye(r,be=>v(be)),se=eo(u);return p.jsx(RR,{scope:s,type:i,dir:se,scrollHideDelay:f,scrollArea:h,viewport:m,onViewportChange:b,content:E,onContentChange:S,scrollbarX:A,onScrollbarXChange:w,scrollbarXEnabled:P,onScrollbarXEnabledChange:ee,scrollbarY:R,onScrollbarYChange:T,scrollbarYEnabled:X,onScrollbarYEnabledChange:Z,onCornerWidthChange:_,onCornerHeightChange:V,children:p.jsx(Ee.div,{dir:se,...d,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":H+"px",...n.style}})})});dg.displayName=jf;var hg="ScrollAreaViewport",mg=y.forwardRef((n,r)=>{const{__scopeScrollArea:s,children:i,nonce:u,...f}=n,d=Qt(hg,s),h=y.useRef(null),v=Ye(r,h,d.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:u}),p.jsx(Ee.div,{"data-radix-scroll-area-viewport":"",...f,ref:v,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...n.style},children:p.jsx("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});mg.displayName=hg;var cn="ScrollAreaScrollbar",Df=y.forwardRef((n,r)=>{const{forceMount:s,...i}=n,u=Qt(cn,n.__scopeScrollArea),{onScrollbarXEnabledChange:f,onScrollbarYEnabledChange:d}=u,h=n.orientation==="horizontal";return y.useEffect(()=>(h?f(!0):d(!0),()=>{h?f(!1):d(!1)}),[h,f,d]),u.type==="hover"?p.jsx(CR,{...i,ref:r,forceMount:s}):u.type==="scroll"?p.jsx(TR,{...i,ref:r,forceMount:s}):u.type==="auto"?p.jsx(pg,{...i,ref:r,forceMount:s}):u.type==="always"?p.jsx(Mf,{...i,ref:r}):null});Df.displayName=cn;var CR=y.forwardRef((n,r)=>{const{forceMount:s,...i}=n,u=Qt(cn,n.__scopeScrollArea),[f,d]=y.useState(!1);return y.useEffect(()=>{const h=u.scrollArea;let v=0;if(h){const m=()=>{window.clearTimeout(v),d(!0)},b=()=>{v=window.setTimeout(()=>d(!1),u.scrollHideDelay)};return h.addEventListener("pointerenter",m),h.addEventListener("pointerleave",b),()=>{window.clearTimeout(v),h.removeEventListener("pointerenter",m),h.removeEventListener("pointerleave",b)}}},[u.scrollArea,u.scrollHideDelay]),p.jsx(Yt,{present:s||f,children:p.jsx(pg,{"data-state":f?"visible":"hidden",...i,ref:r})})}),TR=y.forwardRef((n,r)=>{const{forceMount:s,...i}=n,u=Qt(cn,n.__scopeScrollArea),f=n.orientation==="horizontal",d=no(()=>v("SCROLL_END"),100),[h,v]=wR("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(h==="idle"){const m=window.setTimeout(()=>v("HIDE"),u.scrollHideDelay);return()=>window.clearTimeout(m)}},[h,u.scrollHideDelay,v]),y.useEffect(()=>{const m=u.viewport,b=f?"scrollLeft":"scrollTop";if(m){let E=m[b];const S=()=>{const A=m[b];E!==A&&(v("SCROLL"),d()),E=A};return m.addEventListener("scroll",S),()=>m.removeEventListener("scroll",S)}},[u.viewport,f,v,d]),p.jsx(Yt,{present:s||h!=="hidden",children:p.jsx(Mf,{"data-state":h==="hidden"?"hidden":"visible",...i,ref:r,onPointerEnter:Re(n.onPointerEnter,()=>v("POINTER_ENTER")),onPointerLeave:Re(n.onPointerLeave,()=>v("POINTER_LEAVE"))})})}),pg=y.forwardRef((n,r)=>{const s=Qt(cn,n.__scopeScrollArea),{forceMount:i,...u}=n,[f,d]=y.useState(!1),h=n.orientation==="horizontal",v=no(()=>{if(s.viewport){const m=s.viewport.offsetWidth<s.viewport.scrollWidth,b=s.viewport.offsetHeight<s.viewport.scrollHeight;d(h?m:b)}},10);return Mr(s.viewport,v),Mr(s.content,v),p.jsx(Yt,{present:i||f,children:p.jsx(Mf,{"data-state":f?"visible":"hidden",...u,ref:r})})}),Mf=y.forwardRef((n,r)=>{const{orientation:s="vertical",...i}=n,u=Qt(cn,n.__scopeScrollArea),f=y.useRef(null),d=y.useRef(0),[h,v]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=xg(h.viewport,h.content),b={...i,sizes:h,onSizesChange:v,hasThumb:m>0&&m<1,onThumbChange:S=>f.current=S,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:S=>d.current=S};function E(S,A){return MR(S,d.current,h,A)}return s==="horizontal"?p.jsx(NR,{...b,ref:r,onThumbPositionChange:()=>{if(u.viewport&&f.current){const S=u.viewport.scrollLeft,A=k0(S,h,u.dir);f.current.style.transform=`translate3d(${A}px, 0, 0)`}},onWheelScroll:S=>{u.viewport&&(u.viewport.scrollLeft=S)},onDragScroll:S=>{u.viewport&&(u.viewport.scrollLeft=E(S,u.dir))}}):s==="vertical"?p.jsx(AR,{...b,ref:r,onThumbPositionChange:()=>{if(u.viewport&&f.current){const S=u.viewport.scrollTop,A=k0(S,h);f.current.style.transform=`translate3d(0, ${A}px, 0)`}},onWheelScroll:S=>{u.viewport&&(u.viewport.scrollTop=S)},onDragScroll:S=>{u.viewport&&(u.viewport.scrollTop=E(S))}}):null}),NR=y.forwardRef((n,r)=>{const{sizes:s,onSizesChange:i,...u}=n,f=Qt(cn,n.__scopeScrollArea),[d,h]=y.useState(),v=y.useRef(null),m=Ye(r,v,f.onScrollbarXChange);return y.useEffect(()=>{v.current&&h(getComputedStyle(v.current))},[v]),p.jsx(gg,{"data-orientation":"horizontal",...u,ref:m,sizes:s,style:{bottom:0,left:f.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:f.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":to(s)+"px",...n.style},onThumbPointerDown:b=>n.onThumbPointerDown(b.x),onDragScroll:b=>n.onDragScroll(b.x),onWheelScroll:(b,E)=>{if(f.viewport){const S=f.viewport.scrollLeft+b.deltaX;n.onWheelScroll(S),Eg(S,E)&&b.preventDefault()}},onResize:()=>{v.current&&f.viewport&&d&&i({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:v.current.clientWidth,paddingStart:Hi(d.paddingLeft),paddingEnd:Hi(d.paddingRight)}})}})}),AR=y.forwardRef((n,r)=>{const{sizes:s,onSizesChange:i,...u}=n,f=Qt(cn,n.__scopeScrollArea),[d,h]=y.useState(),v=y.useRef(null),m=Ye(r,v,f.onScrollbarYChange);return y.useEffect(()=>{v.current&&h(getComputedStyle(v.current))},[v]),p.jsx(gg,{"data-orientation":"vertical",...u,ref:m,sizes:s,style:{top:0,right:f.dir==="ltr"?0:void 0,left:f.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":to(s)+"px",...n.style},onThumbPointerDown:b=>n.onThumbPointerDown(b.y),onDragScroll:b=>n.onDragScroll(b.y),onWheelScroll:(b,E)=>{if(f.viewport){const S=f.viewport.scrollTop+b.deltaY;n.onWheelScroll(S),Eg(S,E)&&b.preventDefault()}},onResize:()=>{v.current&&f.viewport&&d&&i({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:v.current.clientHeight,paddingStart:Hi(d.paddingTop),paddingEnd:Hi(d.paddingBottom)}})}})}),[OR,vg]=fg(cn),gg=y.forwardRef((n,r)=>{const{__scopeScrollArea:s,sizes:i,hasThumb:u,onThumbChange:f,onThumbPointerUp:d,onThumbPointerDown:h,onThumbPositionChange:v,onDragScroll:m,onWheelScroll:b,onResize:E,...S}=n,A=Qt(cn,s),[w,R]=y.useState(null),T=Ye(r,I=>R(I)),N=y.useRef(null),_=y.useRef(""),H=A.viewport,V=i.content-i.viewport,P=ct(b),ee=ct(v),X=no(E,10);function Z(I){if(N.current){const se=I.clientX-N.current.left,be=I.clientY-N.current.top;m({x:se,y:be})}}return y.useEffect(()=>{const I=se=>{const be=se.target;w?.contains(be)&&P(se,V)};return document.addEventListener("wheel",I,{passive:!1}),()=>document.removeEventListener("wheel",I,{passive:!1})},[H,w,V,P]),y.useEffect(ee,[i,ee]),Mr(w,X),Mr(A.content,X),p.jsx(OR,{scope:s,scrollbar:w,hasThumb:u,onThumbChange:ct(f),onThumbPointerUp:ct(d),onThumbPositionChange:ee,onThumbPointerDown:ct(h),children:p.jsx(Ee.div,{...S,ref:T,style:{position:"absolute",...S.style},onPointerDown:Re(n.onPointerDown,I=>{I.button===0&&(I.target.setPointerCapture(I.pointerId),N.current=w.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",A.viewport&&(A.viewport.style.scrollBehavior="auto"),Z(I))}),onPointerMove:Re(n.onPointerMove,Z),onPointerUp:Re(n.onPointerUp,I=>{const se=I.target;se.hasPointerCapture(I.pointerId)&&se.releasePointerCapture(I.pointerId),document.body.style.webkitUserSelect=_.current,A.viewport&&(A.viewport.style.scrollBehavior=""),N.current=null})})})}),Bi="ScrollAreaThumb",yg=y.forwardRef((n,r)=>{const{forceMount:s,...i}=n,u=vg(Bi,n.__scopeScrollArea);return p.jsx(Yt,{present:s||u.hasThumb,children:p.jsx(jR,{ref:r,...i})})}),jR=y.forwardRef((n,r)=>{const{__scopeScrollArea:s,style:i,...u}=n,f=Qt(Bi,s),d=vg(Bi,s),{onThumbPositionChange:h}=d,v=Ye(r,E=>d.onThumbChange(E)),m=y.useRef(void 0),b=no(()=>{m.current&&(m.current(),m.current=void 0)},100);return y.useEffect(()=>{const E=f.viewport;if(E){const S=()=>{if(b(),!m.current){const A=_R(E,h);m.current=A,h()}};return h(),E.addEventListener("scroll",S),()=>E.removeEventListener("scroll",S)}},[f.viewport,b,h]),p.jsx(Ee.div,{"data-state":d.hasThumb?"visible":"hidden",...u,ref:v,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:Re(n.onPointerDownCapture,E=>{const A=E.target.getBoundingClientRect(),w=E.clientX-A.left,R=E.clientY-A.top;d.onThumbPointerDown({x:w,y:R})}),onPointerUp:Re(n.onPointerUp,d.onThumbPointerUp)})});yg.displayName=Bi;var _f="ScrollAreaCorner",bg=y.forwardRef((n,r)=>{const s=Qt(_f,n.__scopeScrollArea),i=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&i?p.jsx(DR,{...n,ref:r}):null});bg.displayName=_f;var DR=y.forwardRef((n,r)=>{const{__scopeScrollArea:s,...i}=n,u=Qt(_f,s),[f,d]=y.useState(0),[h,v]=y.useState(0),m=!!(f&&h);return Mr(u.scrollbarX,()=>{const b=u.scrollbarX?.offsetHeight||0;u.onCornerHeightChange(b),v(b)}),Mr(u.scrollbarY,()=>{const b=u.scrollbarY?.offsetWidth||0;u.onCornerWidthChange(b),d(b)}),m?p.jsx(Ee.div,{...i,ref:r,style:{width:f,height:h,position:"absolute",right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function Hi(n){return n?parseInt(n,10):0}function xg(n,r){const s=n/r;return isNaN(s)?0:s}function to(n){const r=xg(n.viewport,n.content),s=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-s)*r;return Math.max(i,18)}function MR(n,r,s,i="ltr"){const u=to(s),f=u/2,d=r||f,h=u-d,v=s.scrollbar.paddingStart+d,m=s.scrollbar.size-s.scrollbar.paddingEnd-h,b=s.content-s.viewport,E=i==="ltr"?[0,b]:[b*-1,0];return Sg([v,m],E)(n)}function k0(n,r,s="ltr"){const i=to(r),u=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,f=r.scrollbar.size-u,d=r.content-r.viewport,h=f-i,v=s==="ltr"?[0,d]:[d*-1,0],m=ER(n,v);return Sg([0,d],[0,h])(m)}function Sg(n,r){return s=>{if(n[0]===n[1]||r[0]===r[1])return r[0];const i=(r[1]-r[0])/(n[1]-n[0]);return r[0]+i*(s-n[0])}}function Eg(n,r){return n>0&&n<r}var _R=(n,r=()=>{})=>{let s={left:n.scrollLeft,top:n.scrollTop},i=0;return function u(){const f={left:n.scrollLeft,top:n.scrollTop},d=s.left!==f.left,h=s.top!==f.top;(d||h)&&r(),s=f,i=window.requestAnimationFrame(u)}(),()=>window.cancelAnimationFrame(i)};function no(n,r){const s=ct(n),i=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(i.current),[]),y.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(s,r)},[s,r])}function Mr(n,r){const s=ct(r);Ua(()=>{let i=0;if(n){const u=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(s)});return u.observe(n),()=>{window.cancelAnimationFrame(i),u.unobserve(n)}}},[n,s])}var wg=dg,zR=mg,UR=bg;const ka=y.forwardRef(({className:n,children:r,...s},i)=>p.jsxs(wg,{ref:i,className:ve("relative overflow-hidden",n),...s,children:[p.jsx(zR,{className:"h-full w-full rounded-[inherit]",children:r}),p.jsx(Rg,{}),p.jsx(UR,{})]}));ka.displayName=wg.displayName;const Rg=y.forwardRef(({className:n,orientation:r="vertical",...s},i)=>p.jsx(Df,{ref:i,orientation:r,className:ve("flex touch-none select-none transition-colors",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",n),...s,children:p.jsx(yg,{className:"relative flex-1 rounded-full bg-border"})}));Rg.displayName=Df.displayName;/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cg=(...n)=>n.filter((r,s,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===s).join(" ").trim();/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var LR={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.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BR=y.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:u="",children:f,iconNode:d,...h},v)=>y.createElement("svg",{ref:v,...LR,width:r,height:r,stroke:n,strokeWidth:i?Number(s)*24/Number(r):s,className:Cg("lucide",u),...h},[...d.map(([m,b])=>y.createElement(m,b)),...Array.isArray(f)?f:[f]]));/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $e=(n,r)=>{const s=y.forwardRef(({className:i,...u},f)=>y.createElement(BR,{ref:f,iconNode:r,className:Cg(`lucide-${kR(n)}`,i),...u}));return s.displayName=`${n}`,s};/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HR=$e("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qR=$e("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GR=$e("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const PR=$e("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YR=$e("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QR=$e("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hc=$e("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qc=$e("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VR=$e("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XR=$e("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FR=$e("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KR=$e("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZR=$e("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $R=$e("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tg=$e("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L0=$e("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ff=$e("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JR=$e("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.454.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IR=$e("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),zf=y.forwardRef(({className:n,...r},s)=>p.jsx("div",{className:"relative w-full overflow-auto",children:p.jsx("table",{ref:s,className:ve("w-full caption-bottom text-sm",n),...r})}));zf.displayName="Table";const Uf=y.forwardRef(({className:n,...r},s)=>p.jsx("thead",{ref:s,className:ve("[&_tr]:border-b",n),...r}));Uf.displayName="TableHeader";const kf=y.forwardRef(({className:n,...r},s)=>p.jsx("tbody",{ref:s,className:ve("[&_tr:last-child]:border-0",n),...r}));kf.displayName="TableBody";const WR=y.forwardRef(({className:n,...r},s)=>p.jsx("tfoot",{ref:s,className:ve("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n),...r}));WR.displayName="TableFooter";const Kl=y.forwardRef(({className:n,...r},s)=>p.jsx("tr",{ref:s,className:ve("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n),...r}));Kl.displayName="TableRow";const sa=y.forwardRef(({className:n,...r},s)=>p.jsx("th",{ref:s,className:ve("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",n),...r}));sa.displayName="TableHead";const ia=y.forwardRef(({className:n,...r},s)=>p.jsx("td",{ref:s,className:ve("p-4 align-middle [&:has([role=checkbox])]:pr-0",n),...r}));ia.displayName="TableCell";const eC=y.forwardRef(({className:n,...r},s)=>p.jsx("caption",{ref:s,className:ve("mt-4 text-sm text-muted-foreground",n),...r}));eC.displayName="TableCaption";const tC=async n=>(await Ur.get(`/errors?operationId=${n}`)).data,qr={schemas:()=>["schemas"],schemaByName:n=>["schema",n],operations:()=>["operations"],operationByPath:(n,r)=>["operation",n,r],errorsByOperationId:n=>["errors",n],testCasesByOperationId:n=>["testcases",n],health:()=>["health"],me:()=>["me"]},nC=n=>Il({queryKey:qr.errorsByOperationId(n),queryFn:()=>tC(n),enabled:!!n}),aC=({operationId:n})=>{const{data:r,isLoading:s,error:i}=nC(n);return s?p.jsxs(Ot,{className:"border shadow-xl bg-white/80 dark:bg-slate-900/80 backdrop-blur-sm border-white/20 dark:border-slate-700/20",children:[p.jsx(jt,{className:"pb-3",children:p.jsx(Dt,{className:"text-base text-transparent bg-gradient-to-r from-red-600 to-rose-600 bg-clip-text",children:"Error Codes"})}),p.jsx(Pt,{children:p.jsx("div",{className:"text-center text-slate-500 dark:text-slate-400",children:"Loading error codes..."})})]}):i?p.jsxs(Ot,{className:"border shadow-xl bg-white/80 dark:bg-slate-900/80 backdrop-blur-sm border-white/20 dark:border-slate-700/20",children:[p.jsx(jt,{className:"pb-3",children:p.jsx(Dt,{className:"text-base text-transparent bg-gradient-to-r from-red-600 to-rose-600 bg-clip-text",children:"Error Codes"})}),p.jsx(Pt,{children:p.jsxs("div",{className:"text-center text-red-500",children:["Error loading error codes: ",i.message]})})]}):p.jsxs(Ot,{className:"border shadow-xl bg-white/80 dark:bg-slate-900/80 backdrop-blur-sm border-white/20 dark:border-slate-700/20",children:[p.jsx(jt,{className:"pb-3",children:p.jsx(Dt,{className:"text-base text-transparent bg-gradient-to-r from-red-600 to-rose-600 bg-clip-text",children:"Error Codes"})}),p.jsx(Pt,{children:p.jsxs(zf,{children:[p.jsx(Uf,{children:p.jsxs(Kl,{children:[p.jsx(sa,{className:"h-8 text-xs text-slate-600 dark:text-slate-300",children:"Error Code"}),p.jsx(sa,{className:"h-8 text-xs text-slate-600 dark:text-slate-300",children:"Message"})]})}),p.jsx(kf,{children:r?.map(u=>p.jsxs(Kl,{className:"h-8 transition-colors hover:bg-red-50/50 dark:hover:bg-red-950/10",children:[p.jsx(ia,{className:"py-1 font-mono text-xs text-red-600 dark:text-red-400",children:u.errorCode}),p.jsx(ia,{className:"py-1 text-xs",children:u.description})]},u.errorCode))})]})})]})},rC=async()=>(await Ur.get("/zylo-docs/operation")).data,lC=async(n,r)=>(await Ur.get("/operation/by-path",{params:{path:n,method:r}})).data,Ng=()=>Il({queryKey:qr.operations(),queryFn:rC}),sC=({path:n,method:r})=>Il({queryKey:qr.operationByPath(n,r),queryFn:()=>lC(n,r),enabled:!!n}),iC=({selectedOperationId:n,setSelectedOperationId:r})=>{const{data:s,isLoading:i,error:u}=Ng(),f=d=>{switch(d){case"POST":return"bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 shadow-lg";case"GET":return"bg-gradient-to-r from-blue-500 to-cyan-600 hover:from-blue-600 hover:to-cyan-700 shadow-lg";case"PUT":return"bg-gradient-to-r from-orange-500 to-amber-600 hover:from-orange-600 hover:to-amber-700 shadow-lg";case"DELETE":return"bg-gradient-to-r from-red-500 to-rose-600 hover:from-red-600 hover:to-rose-700 shadow-lg";default:return"bg-gradient-to-r from-gray-500 to-slate-600 hover:from-gray-600 hover:to-slate-700 shadow-lg"}};return i?p.jsx("div",{className:"border-r w-72 border-white/20 bg-white/40 backdrop-blur-xl dark:bg-slate-900/40",children:p.jsx("div",{className:"p-6 text-center text-slate-500 dark:text-slate-400",children:"Loading operations..."})}):u?p.jsx("div",{className:"border-r w-72 border-white/20 bg-white/40 backdrop-blur-xl dark:bg-slate-900/40",children:p.jsxs("div",{className:"p-6 text-center text-red-500",children:["Error loading operations: ",u.message]})}):p.jsx("div",{className:"border-r w-72 border-white/20 bg-white/40 backdrop-blur-xl dark:bg-slate-900/40",children:p.jsx(ka,{className:"h-full",children:p.jsx("div",{className:"p-6",children:p.jsx("div",{className:"space-y-8",children:s?.operationGroups?.map(d=>p.jsxs("div",{children:[p.jsx("h3",{className:"mb-2 text-xs font-bold text-slate-500 dark:text-slate-300 uppercase",children:d.tag}),d.operations.map(h=>p.jsxs("div",{onClick:()=>r(h.operationId),className:`flex justify-between items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${h.operationId===n?"bg-gradient-to-r from-blue-100 to-purple-100 dark:from-blue-950/30 dark:to-purple-950/30 border border-blue-200/50 dark:border-blue-800/50 shadow-lg":"hover:bg-white/60 dark:hover:bg-slate-800/60 hover:shadow-md border border-transparent"}`,children:[p.jsx(An,{className:`text-xs font-medium text-white border-0 ${f(h.method)}`,children:h.method}),p.jsx("span",{className:"text-sm font-medium truncate",children:h.summary})]},h.operationId))]},d.tag))})})})})};function oC(n){const r=n+"CollectionProvider",[s,i]=un(r),[u,f]=s(r,{collectionRef:{current:null},itemMap:new Map}),d=A=>{const{scope:w,children:R}=A,T=ra.useRef(null),N=ra.useRef(new Map).current;return p.jsx(u,{scope:w,itemMap:N,collectionRef:T,children:R})};d.displayName=r;const h=n+"CollectionSlot",v=ra.forwardRef((A,w)=>{const{scope:R,children:T}=A,N=f(h,R),_=Ye(w,N.collectionRef);return p.jsx(Dr,{ref:_,children:T})});v.displayName=h;const m=n+"CollectionItemSlot",b="data-radix-collection-item",E=ra.forwardRef((A,w)=>{const{scope:R,children:T,...N}=A,_=ra.useRef(null),H=Ye(w,_),V=f(m,R);return ra.useEffect(()=>(V.itemMap.set(_,{ref:_,...N}),()=>void V.itemMap.delete(_))),p.jsx(Dr,{[b]:"",ref:H,children:T})});E.displayName=m;function S(A){const w=f(n+"CollectionConsumer",A);return ra.useCallback(()=>{const T=w.collectionRef.current;if(!T)return[];const N=Array.from(T.querySelectorAll(`[${b}]`));return Array.from(w.itemMap.values()).sort((V,P)=>N.indexOf(V.ref.current)-N.indexOf(P.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:d,Slot:v,ItemSlot:E},S,i]}var uC=L1.useId||(()=>{}),cC=0;function Or(n){const[r,s]=y.useState(uC());return Ua(()=>{s(i=>i??String(cC++))},[n]),r?`radix-${r}`:""}function Ha({prop:n,defaultProp:r,onChange:s=()=>{}}){const[i,u]=fC({defaultProp:r,onChange:s}),f=n!==void 0,d=f?n:i,h=ct(s),v=y.useCallback(m=>{if(f){const E=typeof m=="function"?m(n):m;E!==n&&h(E)}else u(m)},[f,n,u,h]);return[d,v]}function fC({defaultProp:n,onChange:r}){const s=y.useState(n),[i]=s,u=y.useRef(i),f=ct(r);return y.useEffect(()=>{u.current!==i&&(f(i),u.current=i)},[i,u,f]),s}var Gc="rovingFocusGroup.onEntryFocus",dC={bubbles:!1,cancelable:!0},ao="RovingFocusGroup",[df,Ag,hC]=oC(ao),[mC,ro]=un(ao,[hC]),[pC,vC]=mC(ao),Og=y.forwardRef((n,r)=>p.jsx(df.Provider,{scope:n.__scopeRovingFocusGroup,children:p.jsx(df.Slot,{scope:n.__scopeRovingFocusGroup,children:p.jsx(gC,{...n,ref:r})})}));Og.displayName=ao;var gC=y.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:s,orientation:i,loop:u=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:m,preventScrollOnEntryFocus:b=!1,...E}=n,S=y.useRef(null),A=Ye(r,S),w=eo(f),[R=null,T]=Ha({prop:d,defaultProp:h,onChange:v}),[N,_]=y.useState(!1),H=ct(m),V=Ag(s),P=y.useRef(!1),[ee,X]=y.useState(0);return y.useEffect(()=>{const Z=S.current;if(Z)return Z.addEventListener(Gc,H),()=>Z.removeEventListener(Gc,H)},[H]),p.jsx(pC,{scope:s,orientation:i,dir:w,loop:u,currentTabStopId:R,onItemFocus:y.useCallback(Z=>T(Z),[T]),onItemShiftTab:y.useCallback(()=>_(!0),[]),onFocusableItemAdd:y.useCallback(()=>X(Z=>Z+1),[]),onFocusableItemRemove:y.useCallback(()=>X(Z=>Z-1),[]),children:p.jsx(Ee.div,{tabIndex:N||ee===0?-1:0,"data-orientation":i,...E,ref:A,style:{outline:"none",...n.style},onMouseDown:Re(n.onMouseDown,()=>{P.current=!0}),onFocus:Re(n.onFocus,Z=>{const I=!P.current;if(Z.target===Z.currentTarget&&I&&!N){const se=new CustomEvent(Gc,dC);if(Z.currentTarget.dispatchEvent(se),!se.defaultPrevented){const be=V().filter(B=>B.focusable),ie=be.find(B=>B.active),Mt=be.find(B=>B.id===R),qe=[ie,Mt,...be].filter(Boolean).map(B=>B.ref.current);Mg(qe,b)}}P.current=!1}),onBlur:Re(n.onBlur,()=>_(!1))})})}),jg="RovingFocusGroupItem",Dg=y.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:s,focusable:i=!0,active:u=!1,tabStopId:f,...d}=n,h=Or(),v=f||h,m=vC(jg,s),b=m.currentTabStopId===v,E=Ag(s),{onFocusableItemAdd:S,onFocusableItemRemove:A}=m;return y.useEffect(()=>{if(i)return S(),()=>A()},[i,S,A]),p.jsx(df.ItemSlot,{scope:s,id:v,focusable:i,active:u,children:p.jsx(Ee.span,{tabIndex:b?0:-1,"data-orientation":m.orientation,...d,ref:r,onMouseDown:Re(n.onMouseDown,w=>{i?m.onItemFocus(v):w.preventDefault()}),onFocus:Re(n.onFocus,()=>m.onItemFocus(v)),onKeyDown:Re(n.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){m.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const R=xC(w,m.orientation,m.dir);if(R!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let N=E().filter(_=>_.focusable).map(_=>_.ref.current);if(R==="last")N.reverse();else if(R==="prev"||R==="next"){R==="prev"&&N.reverse();const _=N.indexOf(w.currentTarget);N=m.loop?SC(N,_+1):N.slice(_+1)}setTimeout(()=>Mg(N))}})})})});Dg.displayName=jg;var yC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bC(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function xC(n,r,s){const i=bC(n.key,s);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return yC[i]}function Mg(n,r=!1){const s=document.activeElement;for(const i of n)if(i===s||(i.focus({preventScroll:r}),document.activeElement!==s))return}function SC(n,r){return n.map((s,i)=>n[(r+i)%n.length])}var _g=Og,zg=Dg,Lf="Tabs",[EC,SA]=un(Lf,[ro]),Ug=ro(),[wC,Bf]=EC(Lf),kg=y.forwardRef((n,r)=>{const{__scopeTabs:s,value:i,onValueChange:u,defaultValue:f,orientation:d="horizontal",dir:h,activationMode:v="automatic",...m}=n,b=eo(h),[E,S]=Ha({prop:i,onChange:u,defaultProp:f});return p.jsx(wC,{scope:s,baseId:Or(),value:E,onValueChange:S,orientation:d,dir:b,activationMode:v,children:p.jsx(Ee.div,{dir:b,"data-orientation":d,...m,ref:r})})});kg.displayName=Lf;var Lg="TabsList",Bg=y.forwardRef((n,r)=>{const{__scopeTabs:s,loop:i=!0,...u}=n,f=Bf(Lg,s),d=Ug(s);return p.jsx(_g,{asChild:!0,...d,orientation:f.orientation,dir:f.dir,loop:i,children:p.jsx(Ee.div,{role:"tablist","aria-orientation":f.orientation,...u,ref:r})})});Bg.displayName=Lg;var Hg="TabsTrigger",qg=y.forwardRef((n,r)=>{const{__scopeTabs:s,value:i,disabled:u=!1,...f}=n,d=Bf(Hg,s),h=Ug(s),v=Yg(d.baseId,i),m=Qg(d.baseId,i),b=i===d.value;return p.jsx(zg,{asChild:!0,...h,focusable:!u,active:b,children:p.jsx(Ee.button,{type:"button",role:"tab","aria-selected":b,"aria-controls":m,"data-state":b?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:v,...f,ref:r,onMouseDown:Re(n.onMouseDown,E=>{!u&&E.button===0&&E.ctrlKey===!1?d.onValueChange(i):E.preventDefault()}),onKeyDown:Re(n.onKeyDown,E=>{[" ","Enter"].includes(E.key)&&d.onValueChange(i)}),onFocus:Re(n.onFocus,()=>{const E=d.activationMode!=="manual";!b&&!u&&E&&d.onValueChange(i)})})})});qg.displayName=Hg;var Gg="TabsContent",Pg=y.forwardRef((n,r)=>{const{__scopeTabs:s,value:i,forceMount:u,children:f,...d}=n,h=Bf(Gg,s),v=Yg(h.baseId,i),m=Qg(h.baseId,i),b=i===h.value,E=y.useRef(b);return y.useEffect(()=>{const S=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(S)},[]),p.jsx(Yt,{present:u||b,children:({present:S})=>p.jsx(Ee.div,{"data-state":b?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":v,hidden:!S,id:m,tabIndex:0,...d,ref:r,style:{...n.style,animationDuration:E.current?"0s":void 0},children:S&&f})})});Pg.displayName=Gg;function Yg(n,r){return`${n}-trigger-${r}`}function Qg(n,r){return`${n}-content-${r}`}var RC=kg,Vg=Bg,Xg=qg,Fg=Pg;const Hf=RC,lo=y.forwardRef(({className:n,...r},s)=>p.jsx(Vg,{ref:s,className:ve("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",n),...r}));lo.displayName=Vg.displayName;const Zl=y.forwardRef(({className:n,...r},s)=>p.jsx(Xg,{ref:s,className:ve("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",n),...r}));Zl.displayName=Xg.displayName;const qi=y.forwardRef(({className:n,...r},s)=>p.jsx(Fg,{ref:s,className:ve("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...r}));qi.displayName=Fg.displayName;const CC=({operation:n})=>{const r=n?.requestBody?.content?.["application/json"]?.schema,[s,i]=y.useState("schema");return p.jsxs(Ot,{className:"transition-all duration-300 border shadow-xl bg-white/80 dark:bg-slate-900/80 backdrop-blur-sm border-white/20 dark:border-slate-700/20 hover:shadow-2xl",children:[p.jsx(jt,{className:"pb-2",children:p.jsx("div",{className:"flex items-center justify-between",children:p.jsxs(Dt,{className:"flex items-center gap-2 text-lg text-transparent bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text",children:[p.jsx(Tg,{className:"w-5 h-5 text-blue-500"}),"Request body"]})})}),p.jsx(Pt,{className:"pt-2",children:p.jsxs(Hf,{value:s,onValueChange:i,children:[p.jsx(lo,{className:"grid w-full grid-cols-4 h-9 bg-slate-100/80 dark:bg-slate-800/80",children:p.jsx(Zl,{value:"schema",className:"text-xs data-[state=active]:bg-white data-[state=active]:shadow-sm",children:"Schema"})}),p.jsx(qi,{value:"schema",className:"mt-4",children:p.jsxs(zf,{children:[p.jsx(Uf,{children:p.jsxs(Kl,{children:[p.jsx(sa,{className:"h-8 text-slate-600 dark:text-slate-300",children:"Name"}),p.jsx(sa,{className:"h-8 text-slate-600 dark:text-slate-300",children:"Type"}),p.jsx(sa,{className:"h-8 text-slate-600 dark:text-slate-300",children:"Description"}),p.jsx(sa,{className:"h-8 text-slate-600 dark:text-slate-300",children:"Examples"}),p.jsx(sa,{className:"h-8 text-slate-600 dark:text-slate-300",children:"Required"})]})}),p.jsx(kf,{children:Object.entries(r?.properties||{}).map(([u,f])=>p.jsxs(Kl,{className:"h-10 transition-colors hover:bg-blue-50/50 dark:hover:bg-blue-950/20",children:[p.jsx(ia,{className:"py-2 font-mono text-sm text-blue-700 dark:text-blue-300",children:f.title}),p.jsx(ia,{className:"py-2 text-xs text-muted-foreground",children:f.type}),p.jsx(ia,{className:"py-2 font-mono text-sm",children:f.description}),p.jsx(ia,{className:"py-2 font-mono text-sm",children:f.examples?.join(", ")||"-"}),p.jsx(ia,{className:"py-2 font-mono text-sm",children:r?.required?.includes(u)?"*":""})]},f.title))})]})})]})})]})};var TC="Label",Kg=y.forwardRef((n,r)=>p.jsx(Ee.label,{...n,ref:r,onMouseDown:s=>{s.target.closest("button, input, select, textarea")||(n.onMouseDown?.(s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));Kg.displayName=TC;var Zg=Kg;const NC=Af("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),oa=y.forwardRef(({className:n,...r},s)=>p.jsx(Zg,{ref:s,className:ve(NC(),n),...r}));oa.displayName=Zg.displayName;function qf(n){const r=y.useRef({value:n,previous:n});return y.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}function Gf(n){const[r,s]=y.useState(void 0);return Ua(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let d,h;if("borderBoxSize"in f){const v=f.borderBoxSize,m=Array.isArray(v)?v[0]:v;d=m.inlineSize,h=m.blockSize}else d=n.offsetWidth,h=n.offsetHeight;s({width:d,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else s(void 0)},[n]),r}var Pf="Switch",[AC,EA]=un(Pf),[OC,jC]=AC(Pf),$g=y.forwardRef((n,r)=>{const{__scopeSwitch:s,name:i,checked:u,defaultChecked:f,required:d,disabled:h,value:v="on",onCheckedChange:m,form:b,...E}=n,[S,A]=y.useState(null),w=Ye(r,H=>A(H)),R=y.useRef(!1),T=S?b||!!S.closest("form"):!0,[N=!1,_]=Ha({prop:u,defaultProp:f,onChange:m});return p.jsxs(OC,{scope:s,checked:N,disabled:h,children:[p.jsx(Ee.button,{type:"button",role:"switch","aria-checked":N,"aria-required":d,"data-state":Wg(N),"data-disabled":h?"":void 0,disabled:h,value:v,...E,ref:w,onClick:Re(n.onClick,H=>{_(V=>!V),T&&(R.current=H.isPropagationStopped(),R.current||H.stopPropagation())})}),T&&p.jsx(DC,{control:S,bubbles:!R.current,name:i,value:v,checked:N,required:d,disabled:h,form:b,style:{transform:"translateX(-100%)"}})]})});$g.displayName=Pf;var Jg="SwitchThumb",Ig=y.forwardRef((n,r)=>{const{__scopeSwitch:s,...i}=n,u=jC(Jg,s);return p.jsx(Ee.span,{"data-state":Wg(u.checked),"data-disabled":u.disabled?"":void 0,...i,ref:r})});Ig.displayName=Jg;var DC=n=>{const{control:r,checked:s,bubbles:i=!0,...u}=n,f=y.useRef(null),d=qf(s),h=Gf(r);return y.useEffect(()=>{const v=f.current,m=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==s&&E){const S=new Event("click",{bubbles:i});E.call(v,s),v.dispatchEvent(S)}},[d,s,i]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...u,tabIndex:-1,ref:f,style:{...n.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Wg(n){return n?"checked":"unchecked"}var MC=$g,_C=Ig;function zC({className:n,...r}){return p.jsx(MC,{"data-slot":"switch",className:ve("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",n),...r,children:p.jsx(_C,{"data-slot":"switch-thumb",className:ve("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")})})}const UC=n=>+n<300,kC=({operation:n})=>{const r=Object.keys(n.responses),[s,i]=y.useState(r?.[0]||null),[u,f]=y.useState(!1);if(!s)return null;const{description:d,content:h}=n.responses[s],v=h?.["application/json"]?.schema,m=h?.["application/json"]?.examples,b=u?m:v;return p.jsxs(Ot,{className:"transition-all duration-300 border shadow-xl bg-white/80 dark:bg-slate-900/80 backdrop-blur-sm border-white/20 dark:border-slate-700/20 hover:shadow-2xl",children:[p.jsxs(jt,{className:"pb-2 flex flex-row justify-between items-center",children:[p.jsx("div",{className:"flex items-center justify-between",children:p.jsxs(Dt,{className:"flex items-center gap-2 text-lg text-transparent bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text",children:[p.jsx(YR,{className:"w-5 h-5 text-blue-500"}),"Response"]})}),p.jsxs("div",{className:"flex items-center space-x-2",children:[p.jsx(zC,{id:"show-example",checked:u,onCheckedChange:f}),p.jsx(oa,{htmlFor:"show-example",children:"Show Example"})]})]}),p.jsx(Pt,{className:"pt-2",children:p.jsxs(Hf,{value:s,onValueChange:i,children:[p.jsx(lo,{className:"grid w-full grid-cols-4 h-9 bg-slate-100/80 dark:bg-slate-800/80",children:r.map(E=>p.jsx(Zl,{value:E,className:"text-xs hover:cursor-pointer data-[state=active]:bg-white data-[state=active]:shadow-sm font-bold",children:p.jsx(An,{variant:"outline",className:`text-xs ${UC(+E)?`from-green-100 to-emerald-100 bg-emerald-100 text-green-700 dark:from-green-900/20 dark:to-emerald-900/20 dark:text-green-300 ${E===s?"border":""}`:"from-red-100 to-rose-100 bg-red-100 text-red-700 dark:from-red-900/20 dark:to-rose-900/20 dark:text-red-300"}`,children:E})}))}),p.jsx("div",{className:"py-2",children:d}),b&&p.jsx(LC,{data:b})]})})]})},LC=({data:n})=>p.jsx("div",{className:"p-4 border bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800 rounded-xl border-slate-200/50 dark:border-slate-700/50",children:p.jsx("pre",{className:"font-mono text-sm text-slate-700 dark:text-slate-300",children:JSON.stringify(n,null,2)})}),BC=async n=>(await Ur.get(`/testcases?operationId=${n}`)).data,HC=n=>Il({queryKey:qr.testCasesByOperationId(n),queryFn:()=>BC(n),enabled:!!n});var Yf="Radio",[qC,ey]=un(Yf),[GC,PC]=qC(Yf),ty=y.forwardRef((n,r)=>{const{__scopeRadio:s,name:i,checked:u=!1,required:f,disabled:d,value:h="on",onCheck:v,form:m,...b}=n,[E,S]=y.useState(null),A=Ye(r,T=>S(T)),w=y.useRef(!1),R=E?m||!!E.closest("form"):!0;return p.jsxs(GC,{scope:s,checked:u,disabled:d,children:[p.jsx(Ee.button,{type:"button",role:"radio","aria-checked":u,"data-state":ry(u),"data-disabled":d?"":void 0,disabled:d,value:h,...b,ref:A,onClick:Re(n.onClick,T=>{u||v?.(),R&&(w.current=T.isPropagationStopped(),w.current||T.stopPropagation())})}),R&&p.jsx(YC,{control:E,bubbles:!w.current,name:i,value:h,checked:u,required:f,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});ty.displayName=Yf;var ny="RadioIndicator",ay=y.forwardRef((n,r)=>{const{__scopeRadio:s,forceMount:i,...u}=n,f=PC(ny,s);return p.jsx(Yt,{present:i||f.checked,children:p.jsx(Ee.span,{"data-state":ry(f.checked),"data-disabled":f.disabled?"":void 0,...u,ref:r})})});ay.displayName=ny;var YC=n=>{const{control:r,checked:s,bubbles:i=!0,...u}=n,f=y.useRef(null),d=qf(s),h=Gf(r);return y.useEffect(()=>{const v=f.current,m=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==s&&E){const S=new Event("click",{bubbles:i});E.call(v,s),v.dispatchEvent(S)}},[d,s,i]),p.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:s,...u,tabIndex:-1,ref:f,style:{...n.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ry(n){return n?"checked":"unchecked"}var QC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Qf="RadioGroup",[VC,wA]=un(Qf,[ro,ey]),ly=ro(),sy=ey(),[XC,FC]=VC(Qf),iy=y.forwardRef((n,r)=>{const{__scopeRadioGroup:s,name:i,defaultValue:u,value:f,required:d=!1,disabled:h=!1,orientation:v,dir:m,loop:b=!0,onValueChange:E,...S}=n,A=ly(s),w=eo(m),[R,T]=Ha({prop:f,defaultProp:u,onChange:E});return p.jsx(XC,{scope:s,name:i,required:d,disabled:h,value:R,onValueChange:T,children:p.jsx(_g,{asChild:!0,...A,orientation:v,dir:w,loop:b,children:p.jsx(Ee.div,{role:"radiogroup","aria-required":d,"aria-orientation":v,"data-disabled":h?"":void 0,dir:w,...S,ref:r})})})});iy.displayName=Qf;var oy="RadioGroupItem",uy=y.forwardRef((n,r)=>{const{__scopeRadioGroup:s,disabled:i,...u}=n,f=FC(oy,s),d=f.disabled||i,h=ly(s),v=sy(s),m=y.useRef(null),b=Ye(r,m),E=f.value===u.value,S=y.useRef(!1);return y.useEffect(()=>{const A=R=>{QC.includes(R.key)&&(S.current=!0)},w=()=>S.current=!1;return document.addEventListener("keydown",A),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",A),document.removeEventListener("keyup",w)}},[]),p.jsx(zg,{asChild:!0,...h,focusable:!d,active:E,children:p.jsx(ty,{disabled:d,required:f.required,checked:E,...v,...u,name:f.name,ref:b,onCheck:()=>f.onValueChange(u.value),onKeyDown:Re(A=>{A.key==="Enter"&&A.preventDefault()}),onFocus:Re(u.onFocus,()=>{S.current&&m.current?.click()})})})});uy.displayName=oy;var KC="RadioGroupIndicator",cy=y.forwardRef((n,r)=>{const{__scopeRadioGroup:s,...i}=n,u=sy(s);return p.jsx(ay,{...u,...i,ref:r})});cy.displayName=KC;var fy=iy,dy=uy,ZC=cy;const hy=y.forwardRef(({className:n,...r},s)=>p.jsx(fy,{className:ve("grid gap-2",n),...r,ref:s}));hy.displayName=fy.displayName;const my=y.forwardRef(({className:n,...r},s)=>p.jsx(dy,{ref:s,className:ve("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),...r,children:p.jsx(ZC,{className:"flex items-center justify-center",children:p.jsx(QR,{className:"h-2.5 w-2.5 fill-current text-current"})})}));my.displayName=dy.displayName;var Vf="Collapsible",[$C,RA]=un(Vf),[JC,Xf]=$C(Vf),py=y.forwardRef((n,r)=>{const{__scopeCollapsible:s,open:i,defaultOpen:u,disabled:f,onOpenChange:d,...h}=n,[v=!1,m]=Ha({prop:i,defaultProp:u,onChange:d});return p.jsx(JC,{scope:s,disabled:f,contentId:Or(),open:v,onOpenToggle:y.useCallback(()=>m(b=>!b),[m]),children:p.jsx(Ee.div,{"data-state":Kf(v),"data-disabled":f?"":void 0,...h,ref:r})})});py.displayName=Vf;var vy="CollapsibleTrigger",IC=y.forwardRef((n,r)=>{const{__scopeCollapsible:s,...i}=n,u=Xf(vy,s);return p.jsx(Ee.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:Re(n.onClick,u.onOpenToggle)})});IC.displayName=vy;var Ff="CollapsibleContent",gy=y.forwardRef((n,r)=>{const{forceMount:s,...i}=n,u=Xf(Ff,n.__scopeCollapsible);return p.jsx(Yt,{present:s||u.open,children:({present:f})=>p.jsx(WC,{...i,ref:r,present:f})})});gy.displayName=Ff;var WC=y.forwardRef((n,r)=>{const{__scopeCollapsible:s,present:i,children:u,...f}=n,d=Xf(Ff,s),[h,v]=y.useState(i),m=y.useRef(null),b=Ye(r,m),E=y.useRef(0),S=E.current,A=y.useRef(0),w=A.current,R=d.open||h,T=y.useRef(R),N=y.useRef(void 0);return y.useEffect(()=>{const _=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(_)},[]),Ua(()=>{const _=m.current;if(_){N.current=N.current||{transitionDuration:_.style.transitionDuration,animationName:_.style.animationName},_.style.transitionDuration="0s",_.style.animationName="none";const H=_.getBoundingClientRect();E.current=H.height,A.current=H.width,T.current||(_.style.transitionDuration=N.current.transitionDuration,_.style.animationName=N.current.animationName),v(i)}},[d.open,i]),p.jsx(Ee.div,{"data-state":Kf(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!R,...f,ref:b,style:{"--radix-collapsible-content-height":S?`${S}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...n.style},children:R&&u})});function Kf(n){return n?"open":"closed"}var eT=py;const tT=eT,nT=gy,aT=({operationId:n,setShowTestCasesModal:r})=>{const{data:s,isLoading:i,error:u}=HC(n),[f,d]=y.useState(null),[h,v]=y.useState(null),[m,b]=y.useState(!1),E=async()=>{f&&(b(!0),v(null))};return y.useEffect(()=>{s&&s.length>0?d(s[0]):d(null)},[s]),i?p.jsxs(Ot,{className:"border shadow-xl bg-white/80 dark:bg-slate-900/80 backdrop-blur-sm border-white/20 dark:border-slate-700/20",children:[p.jsx(jt,{className:"pb-3",children:p.jsx(Dt,{className:"text-base text-transparent bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text",children:"Test cases"})}),p.jsx(Pt,{className:"space-y-2",children:p.jsx("div",{className:"text-center text-slate-500 dark:text-slate-400",children:"Loading test cases..."})})]}):u?p.jsxs(Ot,{className:"border shadow-xl bg-white/80 dark:bg-slate-900/80 backdrop-blur-sm border-white/20 dark:border-slate-700/20",children:[p.jsx(jt,{className:"pb-3",children:p.jsx(Dt,{className:"text-base text-transparent bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text",children:"Test cases"})}),p.jsx(Pt,{className:"space-y-2",children:p.jsxs("div",{className:"text-center text-red-500",children:["Error loading test cases: ",u.message]})})]}):p.jsxs(Ot,{className:"border shadow-xl bg-white/80 dark:bg-slate-900/80 backdrop-blur-sm border-white/20 dark:border-slate-700/20",children:[p.jsx(jt,{className:"pb-3",children:p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx(Dt,{className:"text-base text-transparent bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text",children:"Test cases"}),p.jsxs(Xe,{size:"sm",className:"h-8 transition-all duration-200 shadow-lg bg-gradient-to-r from-slate-700 to-slate-800 hover:from-slate-800 hover:to-slate-900 hover:shadow-xl text-white",onClick:E,disabled:!f||m,children:[p.jsx(ZR,{className:"w-3 h-3 mr-1"}),m?"Testing...":"Test"]})]})}),p.jsx(Pt,{className:"space-y-2",children:p.jsx(hy,{onValueChange:S=>{const A=s?.find(w=>w.name===S);d(A||null),v(null)},value:f?.name||"",children:s?.map(S=>p.jsxs(tT,{open:f?.name===S.name,children:[p.jsx(oa,{htmlFor:S.name,className:`flex flex-col gap-3 p-3 rounded-lg cursor-pointer transition-all duration-200 hover:bg-white/60 dark:hover:bg-slate-800/60 ${f?.name===S.name?"bg-gradient-to-r from-green-50 to-emerald-50 dark:from-green-950/20 dark:to-emerald-950/20 border border-green-200/50 dark:border-green-800/50":""}`,children:p.jsxs("div",{className:"flex items-center",children:[p.jsx(my,{value:S.name,id:S.name}),p.jsx("span",{className:"ml-2 text-sm font-medium",children:S.name})]})}),p.jsxs(nT,{className:"transition-all duration-300 ease-in-out max-h-0 overflow-hidden data-[state=open]:max-h-full",children:[p.jsx("div",{className:"p-3 mt-3 border rounded-lg bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800 border-slate-200/50 dark:border-slate-700/50",children:p.jsx("pre",{className:"font-mono text-xs text-slate-700 dark:text-slate-300",children:JSON.stringify(S.input,null,2)})}),h&&f?.name===S.name&&p.jsx("div",{className:`p-3 mt-3 border rounded-lg ${h.success?"bg-green-100 dark:bg-green-900/30 border-green-200/50 dark:border-green-800/50":"bg-red-100 dark:bg-red-900/30 border-red-200/50 dark:border-red-800/50"}`,children:p.jsx("pre",{className:"font-mono text-xs text-slate-700 dark:text-slate-300",children:JSON.stringify(h.success?h.data:h.error,null,2)})})]})]},S.name))})})]})},rT=async n=>(await sn.post("/auth/signup",n)).data,lT=async n=>(await sn.post("/auth/login",n)).data,sT=async()=>(await sn.post("/auth/logout")).data,iT=async n=>(await sn.get(`/login/${n}`,{params:{redirect_url:`${window.location.origin}/auth/callback`}})).data,oT=()=>$i({mutationFn:sT,onSuccess:()=>{wE(),Bv.invalidateQueries({queryKey:qr.me()})}}),uT=async()=>{if(!EE())throw new Error("No access token found");return(await sn.get("/user/me")).data},yy=()=>Il({queryKey:qr.me(),queryFn:uT}),by=()=>!!yy().data?.user_id,cT=()=>{const n=by(),r=Ii(),{mutateAsync:s}=oT(),i=y.useCallback(async()=>{n?(await s(),alert("logout complete"),window.location.reload()):r("/auth")},[n,s,r]);return p.jsx(Xe,{variant:"outline",size:"sm",onClick:i,className:"border-blue-200 hover:bg-blue-50 dark:hover:bg-blue-950/20 dark:border-blue-800",children:n?"Log out":"Sign Up"})},fT=n=>y.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},y.createElement("path",{d:"M17.5 10.4997L12.8334 8.74966L17.5 6.99791L19.25 2.33301L21.0017 6.99791L25.6667 8.74966L21.0017 10.4997L19.25 15.1663L17.5 10.4997ZM8.16667 19.833L2.33337 17.4997L8.16667 15.1663L10.5 9.33301L12.8334 15.1663L18.6667 17.4997L12.8334 19.833L10.5 25.6663L8.16667 19.833Z",fill:"black"})),dT=()=>$i({mutationFn:()=>Ur("/zylo-docs/api/zylo-ai",{data:{title:"Zylo AI OpenAPI Spec",version:"1.0.0",doc_type:"openapi"}})}),hT=()=>{const{mutateAsync:n,isPending:r}=dT(),s=async()=>{try{const i=await n();alert("New docs generated successfully!"+JSON.stringify(i.data)),window.location.reload()}catch(i){console.error("Error generating new docs:",i)}};return p.jsx(Xe,{variant:"outline",size:"sm",className:"border-blue-200 hover:bg-blue-50 dark:hover:bg-blue-950/20 dark:border-blue-800",onClick:s,children:r?p.jsx(FR,{className:"w-4 h-4 animate-spin"}):p.jsx(fT,{className:"w-4 h-4"})})};function mT(n,r=globalThis?.document){const s=ct(n);y.useEffect(()=>{const i=u=>{u.key==="Escape"&&s(u)};return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[s,r])}var pT="DismissableLayer",hf="dismissableLayer.update",vT="dismissableLayer.pointerDownOutside",gT="dismissableLayer.focusOutside",B0,xy=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sy=y.forwardRef((n,r)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...v}=n,m=y.useContext(xy),[b,E]=y.useState(null),S=b?.ownerDocument??globalThis?.document,[,A]=y.useState({}),w=Ye(r,X=>E(X)),R=Array.from(m.layers),[T]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),N=R.indexOf(T),_=b?R.indexOf(b):-1,H=m.layersWithOutsidePointerEventsDisabled.size>0,V=_>=N,P=xT(X=>{const Z=X.target,I=[...m.branches].some(se=>se.contains(Z));!V||I||(u?.(X),d?.(X),X.defaultPrevented||h?.())},S),ee=ST(X=>{const Z=X.target;[...m.branches].some(se=>se.contains(Z))||(f?.(X),d?.(X),X.defaultPrevented||h?.())},S);return mT(X=>{_===m.layers.size-1&&(i?.(X),!X.defaultPrevented&&h&&(X.preventDefault(),h()))},S),y.useEffect(()=>{if(b)return s&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(B0=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(b)),m.layers.add(b),H0(),()=>{s&&m.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=B0)}},[b,S,s,m]),y.useEffect(()=>()=>{b&&(m.layers.delete(b),m.layersWithOutsidePointerEventsDisabled.delete(b),H0())},[b,m]),y.useEffect(()=>{const X=()=>A({});return document.addEventListener(hf,X),()=>document.removeEventListener(hf,X)},[]),p.jsx(Ee.div,{...v,ref:w,style:{pointerEvents:H?V?"auto":"none":void 0,...n.style},onFocusCapture:Re(n.onFocusCapture,ee.onFocusCapture),onBlurCapture:Re(n.onBlurCapture,ee.onBlurCapture),onPointerDownCapture:Re(n.onPointerDownCapture,P.onPointerDownCapture)})});Sy.displayName=pT;var yT="DismissableLayerBranch",bT=y.forwardRef((n,r)=>{const s=y.useContext(xy),i=y.useRef(null),u=Ye(r,i);return y.useEffect(()=>{const f=i.current;if(f)return s.branches.add(f),()=>{s.branches.delete(f)}},[s.branches]),p.jsx(Ee.div,{...n,ref:u})});bT.displayName=yT;function xT(n,r=globalThis?.document){const s=ct(n),i=y.useRef(!1),u=y.useRef(()=>{});return y.useEffect(()=>{const f=h=>{if(h.target&&!i.current){let v=function(){Ey(vT,s,m,{discrete:!0})};const m={originalEvent:h};h.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,s]),{onPointerDownCapture:()=>i.current=!0}}function ST(n,r=globalThis?.document){const s=ct(n),i=y.useRef(!1);return y.useEffect(()=>{const u=f=>{f.target&&!i.current&&Ey(gT,s,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",u),()=>r.removeEventListener("focusin",u)},[r,s]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function H0(){const n=new CustomEvent(hf);document.dispatchEvent(n)}function Ey(n,r,s,{discrete:i}){const u=s.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});r&&u.addEventListener(n,r,{once:!0}),i?pR(u,f):u.dispatchEvent(f)}var Pc="focusScope.autoFocusOnMount",Yc="focusScope.autoFocusOnUnmount",q0={bubbles:!1,cancelable:!0},ET="FocusScope",wy=y.forwardRef((n,r)=>{const{loop:s=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...d}=n,[h,v]=y.useState(null),m=ct(u),b=ct(f),E=y.useRef(null),S=Ye(r,R=>v(R)),A=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let R=function(H){if(A.paused||!h)return;const V=H.target;h.contains(V)?E.current=V:la(E.current,{select:!0})},T=function(H){if(A.paused||!h)return;const V=H.relatedTarget;V!==null&&(h.contains(V)||la(E.current,{select:!0}))},N=function(H){if(document.activeElement===document.body)for(const P of H)P.removedNodes.length>0&&la(h)};document.addEventListener("focusin",R),document.addEventListener("focusout",T);const _=new MutationObserver(N);return h&&_.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",T),_.disconnect()}}},[i,h,A.paused]),y.useEffect(()=>{if(h){P0.add(A);const R=document.activeElement;if(!h.contains(R)){const N=new CustomEvent(Pc,q0);h.addEventListener(Pc,m),h.dispatchEvent(N),N.defaultPrevented||(wT(AT(Ry(h)),{select:!0}),document.activeElement===R&&la(h))}return()=>{h.removeEventListener(Pc,m),setTimeout(()=>{const N=new CustomEvent(Yc,q0);h.addEventListener(Yc,b),h.dispatchEvent(N),N.defaultPrevented||la(R??document.body,{select:!0}),h.removeEventListener(Yc,b),P0.remove(A)},0)}}},[h,m,b,A]);const w=y.useCallback(R=>{if(!s&&!i||A.paused)return;const T=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,N=document.activeElement;if(T&&N){const _=R.currentTarget,[H,V]=RT(_);H&&V?!R.shiftKey&&N===V?(R.preventDefault(),s&&la(H,{select:!0})):R.shiftKey&&N===H&&(R.preventDefault(),s&&la(V,{select:!0})):N===_&&R.preventDefault()}},[s,i,A.paused]);return p.jsx(Ee.div,{tabIndex:-1,...d,ref:S,onKeyDown:w})});wy.displayName=ET;function wT(n,{select:r=!1}={}){const s=document.activeElement;for(const i of n)if(la(i,{select:r}),document.activeElement!==s)return}function RT(n){const r=Ry(n),s=G0(r,n),i=G0(r.reverse(),n);return[s,i]}function Ry(n){const r=[],s=document.createTreeWalker(n,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(;s.nextNode();)r.push(s.currentNode);return r}function G0(n,r){for(const s of n)if(!CT(s,{upTo:r}))return s}function CT(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function TT(n){return n instanceof HTMLInputElement&&"select"in n}function la(n,{select:r=!1}={}){if(n&&n.focus){const s=document.activeElement;n.focus({preventScroll:!0}),n!==s&&TT(n)&&r&&n.select()}}var P0=NT();function NT(){let n=[];return{add(r){const s=n[0];r!==s&&s?.pause(),n=Y0(n,r),n.unshift(r)},remove(r){n=Y0(n,r),n[0]?.resume()}}}function Y0(n,r){const s=[...n],i=s.indexOf(r);return i!==-1&&s.splice(i,1),s}function AT(n){return n.filter(r=>r.tagName!=="A")}var OT="Portal",Cy=y.forwardRef((n,r)=>{const{container:s,...i}=n,[u,f]=y.useState(!1);Ua(()=>f(!0),[]);const d=s||u&&globalThis?.document?.body;return d?A2.createPortal(p.jsx(Ee.div,{...i,ref:r}),d):null});Cy.displayName=OT;var Qc=0;function jT(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Q0()),document.body.insertAdjacentElement("beforeend",n[1]??Q0()),Qc++,()=>{Qc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Qc--}},[])}function Q0(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var rn=function(){return rn=Object.assign||function(r){for(var s,i=1,u=arguments.length;i<u;i++){s=arguments[i];for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&(r[f]=s[f])}return r},rn.apply(this,arguments)};function Ty(n,r){var s={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.indexOf(i)<0&&(s[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(n);u<i.length;u++)r.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(n,i[u])&&(s[i[u]]=n[i[u]]);return s}function DT(n,r,s){if(s||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 n.concat(f||Array.prototype.slice.call(r))}var ji="right-scroll-bar-position",Di="width-before-scroll-bar",MT="with-scroll-bars-hidden",_T="--removed-body-scroll-bar-size";function Vc(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function zT(n,r){var s=y.useState(function(){return{value:n,callback:r,facade:{get current(){return s.value},set current(i){var u=s.value;u!==i&&(s.value=i,s.callback(i,u))}}}})[0];return s.callback=r,s.facade}var UT=typeof window<"u"?y.useLayoutEffect:y.useEffect,V0=new WeakMap;function kT(n,r){var s=zT(null,function(i){return n.forEach(function(u){return Vc(u,i)})});return UT(function(){var i=V0.get(s);if(i){var u=new Set(i),f=new Set(n),d=s.current;u.forEach(function(h){f.has(h)||Vc(h,null)}),f.forEach(function(h){u.has(h)||Vc(h,d)})}V0.set(s,n)},[n]),s}function LT(n){return n}function BT(n,r){r===void 0&&(r=LT);var s=[],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 s.length?s[s.length-1]:n},useMedium:function(f){var d=r(f,i);return s.push(d),function(){s=s.filter(function(h){return h!==d})}},assignSyncMedium:function(f){for(i=!0;s.length;){var d=s;s=[],d.forEach(f)}s={push:function(h){return f(h)},filter:function(){return s}}},assignMedium:function(f){i=!0;var d=[];if(s.length){var h=s;s=[],h.forEach(f),d=s}var v=function(){var b=d;d=[],b.forEach(f)},m=function(){return Promise.resolve().then(v)};m(),s={push:function(b){d.push(b),m()},filter:function(b){return d=d.filter(b),s}}}};return u}function HT(n){n===void 0&&(n={});var r=BT(null);return r.options=rn({async:!0,ssr:!1},n),r}var Ny=function(n){var r=n.sideCar,s=Ty(n,["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 y.createElement(i,rn({},s))};Ny.isSideCarExport=!0;function qT(n,r){return n.useMedium(r),Ny}var Ay=HT(),Xc=function(){},so=y.forwardRef(function(n,r){var s=y.useRef(null),i=y.useState({onScrollCapture:Xc,onWheelCapture:Xc,onTouchMoveCapture:Xc}),u=i[0],f=i[1],d=n.forwardProps,h=n.children,v=n.className,m=n.removeScrollBar,b=n.enabled,E=n.shards,S=n.sideCar,A=n.noRelative,w=n.noIsolation,R=n.inert,T=n.allowPinchZoom,N=n.as,_=N===void 0?"div":N,H=n.gapMode,V=Ty(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=S,ee=kT([s,r]),X=rn(rn({},V),u);return y.createElement(y.Fragment,null,b&&y.createElement(P,{sideCar:Ay,removeScrollBar:m,shards:E,noRelative:A,noIsolation:w,inert:R,setCallbacks:f,allowPinchZoom:!!T,lockRef:s,gapMode:H}),d?y.cloneElement(y.Children.only(h),rn(rn({},X),{ref:ee})):y.createElement(_,rn({},X,{className:v,ref:ee}),h))});so.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};so.classNames={fullWidth:Di,zeroRight:ji};var GT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function PT(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=GT();return r&&n.setAttribute("nonce",r),n}function YT(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function QT(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var VT=function(){var n=0,r=null;return{add:function(s){n==0&&(r=PT())&&(YT(r,s),QT(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},XT=function(){var n=VT();return function(r,s){y.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&s])}},Oy=function(){var n=XT(),r=function(s){var i=s.styles,u=s.dynamic;return n(i,u),null};return r},FT={left:0,top:0,right:0,gap:0},Fc=function(n){return parseInt(n||"",10)||0},KT=function(n){var r=window.getComputedStyle(document.body),s=r[n==="padding"?"paddingLeft":"marginLeft"],i=r[n==="padding"?"paddingTop":"marginTop"],u=r[n==="padding"?"paddingRight":"marginRight"];return[Fc(s),Fc(i),Fc(u)]},ZT=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return FT;var r=KT(n),s=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-s+r[2]-r[0])}},$T=Oy(),jr="data-scroll-locked",JT=function(n,r,s,i){var u=n.left,f=n.top,d=n.right,h=n.gap;return s===void 0&&(s="margin"),`
  .`.concat(MT,` {
   overflow: hidden `).concat(i,`;
   padding-right: `).concat(h,"px ").concat(i,`;
  }
  body[`).concat(jr,`] {
    overflow: hidden `).concat(i,`;
    overscroll-behavior: contain;
    `).concat([r&&"position: relative ".concat(i,";"),s==="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(h,"px ").concat(i,`;
    `),s==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(ji,` {
    right: `).concat(h,"px ").concat(i,`;
  }
  
  .`).concat(Di,` {
    margin-right: `).concat(h,"px ").concat(i,`;
  }
  
  .`).concat(ji," .").concat(ji,` {
    right: 0 `).concat(i,`;
  }
  
  .`).concat(Di," .").concat(Di,` {
    margin-right: 0 `).concat(i,`;
  }
  
  body[`).concat(jr,`] {
    `).concat(_T,": ").concat(h,`px;
  }
`)},X0=function(){var n=parseInt(document.body.getAttribute(jr)||"0",10);return isFinite(n)?n:0},IT=function(){y.useEffect(function(){return document.body.setAttribute(jr,(X0()+1).toString()),function(){var n=X0()-1;n<=0?document.body.removeAttribute(jr):document.body.setAttribute(jr,n.toString())}},[])},WT=function(n){var r=n.noRelative,s=n.noImportant,i=n.gapMode,u=i===void 0?"margin":i;IT();var f=y.useMemo(function(){return ZT(u)},[u]);return y.createElement($T,{styles:JT(f,!r,u,s?"":"!important")})},mf=!1;if(typeof window<"u")try{var xi=Object.defineProperty({},"passive",{get:function(){return mf=!0,!0}});window.addEventListener("test",xi,xi),window.removeEventListener("test",xi,xi)}catch{mf=!1}var Cr=mf?{passive:!1}:!1,eN=function(n){return n.tagName==="TEXTAREA"},jy=function(n,r){if(!(n instanceof Element))return!1;var s=window.getComputedStyle(n);return s[r]!=="hidden"&&!(s.overflowY===s.overflowX&&!eN(n)&&s[r]==="visible")},tN=function(n){return jy(n,"overflowY")},nN=function(n){return jy(n,"overflowX")},F0=function(n,r){var s=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=Dy(n,i);if(u){var f=My(n,i),d=f[1],h=f[2];if(d>h)return!0}i=i.parentNode}while(i&&i!==s.body);return!1},aN=function(n){var r=n.scrollTop,s=n.scrollHeight,i=n.clientHeight;return[r,s,i]},rN=function(n){var r=n.scrollLeft,s=n.scrollWidth,i=n.clientWidth;return[r,s,i]},Dy=function(n,r){return n==="v"?tN(r):nN(r)},My=function(n,r){return n==="v"?aN(r):rN(r)},lN=function(n,r){return n==="h"&&r==="rtl"?-1:1},sN=function(n,r,s,i,u){var f=lN(n,window.getComputedStyle(r).direction),d=f*i,h=s.target,v=r.contains(h),m=!1,b=d>0,E=0,S=0;do{if(!h)break;var A=My(n,h),w=A[0],R=A[1],T=A[2],N=R-T-f*w;(w||N)&&Dy(n,h)&&(E+=N,S+=w);var _=h.parentNode;h=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!v&&h!==document.body||v&&(r.contains(h)||r===h));return(b&&Math.abs(E)<1||!b&&Math.abs(S)<1)&&(m=!0),m},Si=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},K0=function(n){return[n.deltaX,n.deltaY]},Z0=function(n){return n&&"current"in n?n.current:n},iN=function(n,r){return n[0]===r[0]&&n[1]===r[1]},oN=function(n){return`
  .block-interactivity-`.concat(n,` {pointer-events: none;}
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
`)},uN=0,Tr=[];function cN(n){var r=y.useRef([]),s=y.useRef([0,0]),i=y.useRef(),u=y.useState(uN++)[0],f=y.useState(Oy)[0],d=y.useRef(n);y.useEffect(function(){d.current=n},[n]),y.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var R=DT([n.lockRef.current],(n.shards||[]).map(Z0),!0).filter(Boolean);return R.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),R.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var h=y.useCallback(function(R,T){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!d.current.allowPinchZoom;var N=Si(R),_=s.current,H="deltaX"in R?R.deltaX:_[0]-N[0],V="deltaY"in R?R.deltaY:_[1]-N[1],P,ee=R.target,X=Math.abs(H)>Math.abs(V)?"h":"v";if("touches"in R&&X==="h"&&ee.type==="range")return!1;var Z=F0(X,ee);if(!Z)return!0;if(Z?P=X:(P=X==="v"?"h":"v",Z=F0(X,ee)),!Z)return!1;if(!i.current&&"changedTouches"in R&&(H||V)&&(i.current=P),!P)return!0;var I=i.current||P;return sN(I,T,R,I==="h"?H:V)},[]),v=y.useCallback(function(R){var T=R;if(!(!Tr.length||Tr[Tr.length-1]!==f)){var N="deltaY"in T?K0(T):Si(T),_=r.current.filter(function(P){return P.name===T.type&&(P.target===T.target||T.target===P.shadowParent)&&iN(P.delta,N)})[0];if(_&&_.should){T.cancelable&&T.preventDefault();return}if(!_){var H=(d.current.shards||[]).map(Z0).filter(Boolean).filter(function(P){return P.contains(T.target)}),V=H.length>0?h(T,H[0]):!d.current.noIsolation;V&&T.cancelable&&T.preventDefault()}}},[]),m=y.useCallback(function(R,T,N,_){var H={name:R,delta:T,target:N,should:_,shadowParent:fN(N)};r.current.push(H),setTimeout(function(){r.current=r.current.filter(function(V){return V!==H})},1)},[]),b=y.useCallback(function(R){s.current=Si(R),i.current=void 0},[]),E=y.useCallback(function(R){m(R.type,K0(R),R.target,h(R,n.lockRef.current))},[]),S=y.useCallback(function(R){m(R.type,Si(R),R.target,h(R,n.lockRef.current))},[]);y.useEffect(function(){return Tr.push(f),n.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:S}),document.addEventListener("wheel",v,Cr),document.addEventListener("touchmove",v,Cr),document.addEventListener("touchstart",b,Cr),function(){Tr=Tr.filter(function(R){return R!==f}),document.removeEventListener("wheel",v,Cr),document.removeEventListener("touchmove",v,Cr),document.removeEventListener("touchstart",b,Cr)}},[]);var A=n.removeScrollBar,w=n.inert;return y.createElement(y.Fragment,null,w?y.createElement(f,{styles:oN(u)}):null,A?y.createElement(WT,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function fN(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const dN=qT(Ay,cN);var _y=y.forwardRef(function(n,r){return y.createElement(so,rn({},n,{ref:r,sideCar:dN}))});_y.classNames=so.classNames;var hN=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},Nr=new WeakMap,Ei=new WeakMap,wi={},Kc=0,zy=function(n){return n&&(n.host||zy(n.parentNode))},mN=function(n,r){return r.map(function(s){if(n.contains(s))return s;var i=zy(s);return i&&n.contains(i)?i:(console.error("aria-hidden",s,"in not contained inside",n,". Doing nothing"),null)}).filter(function(s){return!!s})},pN=function(n,r,s,i){var u=mN(r,Array.isArray(n)?n:[n]);wi[s]||(wi[s]=new WeakMap);var f=wi[s],d=[],h=new Set,v=new Set(u),m=function(E){!E||h.has(E)||(h.add(E),m(E.parentNode))};u.forEach(m);var b=function(E){!E||v.has(E)||Array.prototype.forEach.call(E.children,function(S){if(h.has(S))b(S);else try{var A=S.getAttribute(i),w=A!==null&&A!=="false",R=(Nr.get(S)||0)+1,T=(f.get(S)||0)+1;Nr.set(S,R),f.set(S,T),d.push(S),R===1&&w&&Ei.set(S,!0),T===1&&S.setAttribute(s,"true"),w||S.setAttribute(i,"true")}catch(N){console.error("aria-hidden: cannot operate on ",S,N)}})};return b(r),h.clear(),Kc++,function(){d.forEach(function(E){var S=Nr.get(E)-1,A=f.get(E)-1;Nr.set(E,S),f.set(E,A),S||(Ei.has(E)||E.removeAttribute(i),Ei.delete(E)),A||E.removeAttribute(s)}),Kc--,Kc||(Nr=new WeakMap,Nr=new WeakMap,Ei=new WeakMap,wi={})}},vN=function(n,r,s){s===void 0&&(s="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),u=hN(n);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),pN(i,u,s,"aria-hidden")):function(){return null}},Zf="Dialog",[Uy,CA]=un(Zf),[gN,$t]=Uy(Zf),ky=n=>{const{__scopeDialog:r,children:s,open:i,defaultOpen:u,onOpenChange:f,modal:d=!0}=n,h=y.useRef(null),v=y.useRef(null),[m=!1,b]=Ha({prop:i,defaultProp:u,onChange:f});return p.jsx(gN,{scope:r,triggerRef:h,contentRef:v,contentId:Or(),titleId:Or(),descriptionId:Or(),open:m,onOpenChange:b,onOpenToggle:y.useCallback(()=>b(E=>!E),[b]),modal:d,children:s})};ky.displayName=Zf;var Ly="DialogTrigger",yN=y.forwardRef((n,r)=>{const{__scopeDialog:s,...i}=n,u=$t(Ly,s),f=Ye(r,u.triggerRef);return p.jsx(Ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":If(u.open),...i,ref:f,onClick:Re(n.onClick,u.onOpenToggle)})});yN.displayName=Ly;var $f="DialogPortal",[bN,By]=Uy($f,{forceMount:void 0}),Hy=n=>{const{__scopeDialog:r,forceMount:s,children:i,container:u}=n,f=$t($f,r);return p.jsx(bN,{scope:r,forceMount:s,children:y.Children.map(i,d=>p.jsx(Yt,{present:s||f.open,children:p.jsx(Cy,{asChild:!0,container:u,children:d})}))})};Hy.displayName=$f;var Gi="DialogOverlay",qy=y.forwardRef((n,r)=>{const s=By(Gi,n.__scopeDialog),{forceMount:i=s.forceMount,...u}=n,f=$t(Gi,n.__scopeDialog);return f.modal?p.jsx(Yt,{present:i||f.open,children:p.jsx(xN,{...u,ref:r})}):null});qy.displayName=Gi;var xN=y.forwardRef((n,r)=>{const{__scopeDialog:s,...i}=n,u=$t(Gi,s);return p.jsx(_y,{as:Dr,allowPinchZoom:!0,shards:[u.contentRef],children:p.jsx(Ee.div,{"data-state":If(u.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),La="DialogContent",Gy=y.forwardRef((n,r)=>{const s=By(La,n.__scopeDialog),{forceMount:i=s.forceMount,...u}=n,f=$t(La,n.__scopeDialog);return p.jsx(Yt,{present:i||f.open,children:f.modal?p.jsx(SN,{...u,ref:r}):p.jsx(EN,{...u,ref:r})})});Gy.displayName=La;var SN=y.forwardRef((n,r)=>{const s=$t(La,n.__scopeDialog),i=y.useRef(null),u=Ye(r,s.contentRef,i);return y.useEffect(()=>{const f=i.current;if(f)return vN(f)},[]),p.jsx(Py,{...n,ref:u,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Re(n.onCloseAutoFocus,f=>{f.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:Re(n.onPointerDownOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&f.preventDefault()}),onFocusOutside:Re(n.onFocusOutside,f=>f.preventDefault())})}),EN=y.forwardRef((n,r)=>{const s=$t(La,n.__scopeDialog),i=y.useRef(!1),u=y.useRef(!1);return p.jsx(Py,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{n.onCloseAutoFocus?.(f),f.defaultPrevented||(i.current||s.triggerRef.current?.focus(),f.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:f=>{n.onInteractOutside?.(f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const d=f.target;s.triggerRef.current?.contains(d)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),Py=y.forwardRef((n,r)=>{const{__scopeDialog:s,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:f,...d}=n,h=$t(La,s),v=y.useRef(null),m=Ye(r,v);return jT(),p.jsxs(p.Fragment,{children:[p.jsx(wy,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:f,children:p.jsx(Sy,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":If(h.open),...d,ref:m,onDismiss:()=>h.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(wN,{titleId:h.titleId}),p.jsx(CN,{contentRef:v,descriptionId:h.descriptionId})]})]})}),Jf="DialogTitle",Yy=y.forwardRef((n,r)=>{const{__scopeDialog:s,...i}=n,u=$t(Jf,s);return p.jsx(Ee.h2,{id:u.titleId,...i,ref:r})});Yy.displayName=Jf;var Qy="DialogDescription",Vy=y.forwardRef((n,r)=>{const{__scopeDialog:s,...i}=n,u=$t(Qy,s);return p.jsx(Ee.p,{id:u.descriptionId,...i,ref:r})});Vy.displayName=Qy;var Xy="DialogClose",Fy=y.forwardRef((n,r)=>{const{__scopeDialog:s,...i}=n,u=$t(Xy,s);return p.jsx(Ee.button,{type:"button",...i,ref:r,onClick:Re(n.onClick,()=>u.onOpenChange(!1))})});Fy.displayName=Xy;function If(n){return n?"open":"closed"}var Ky="DialogTitleWarning",[TA,Zy]=bR(Ky,{contentName:La,titleName:Jf,docsSlug:"dialog"}),wN=({titleId:n})=>{const r=Zy(Ky),s=`\`${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 y.useEffect(()=>{n&&(document.getElementById(n)||console.error(s))},[s,n]),null},RN="DialogDescriptionWarning",CN=({contentRef:n,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zy(RN).contentName}}.`;return y.useEffect(()=>{const u=n.current?.getAttribute("aria-describedby");r&&u&&(document.getElementById(r)||console.warn(i))},[i,n,r]),null},TN=ky,NN=Hy,$y=qy,Jy=Gy,Iy=Yy,Wy=Vy,AN=Fy;const Wf=TN,ON=NN,eb=y.forwardRef(({className:n,...r},s)=>p.jsx($y,{ref:s,className:ve("fixed inset-0 z-50 bg-black/50  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r}));eb.displayName=$y.displayName;const io=y.forwardRef(({className:n,children:r,...s},i)=>p.jsxs(ON,{children:[p.jsx(eb,{}),p.jsxs(Jy,{ref:i,className:ve("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...s,children:[r,p.jsxs(AN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[p.jsx(IR,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));io.displayName=Jy.displayName;const oo=({className:n,...r})=>p.jsx("div",{className:ve("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});oo.displayName="DialogHeader";const tb=({className:n,...r})=>p.jsx("div",{className:ve("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});tb.displayName="DialogFooter";const uo=y.forwardRef(({className:n,...r},s)=>p.jsx(Iy,{ref:s,className:ve("text-lg font-semibold leading-none tracking-tight",n),...r}));uo.displayName=Iy.displayName;const jN=y.forwardRef(({className:n,...r},s)=>p.jsx(Wy,{ref:s,className:ve("text-sm text-muted-foreground",n),...r}));jN.displayName=Wy.displayName;const Oa=y.forwardRef(({className:n,type:r,...s},i)=>p.jsx("input",{type:r,className:ve("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:i,...s}));Oa.displayName="Input";const DN=[{id:"setting",label:"Setting",icon:Tg,active:!1},{id:"sharing",label:"Sharing",icon:JR,active:!0},{id:"test-cases",label:"Test cases",icon:L0,active:!1},{id:"authorization",label:"Authorization",icon:XR,active:!1},{id:"authentication",label:"Authentication",icon:L0,active:!1}],MN=[{name:"Engineering",seats:15,total:"Nick and 14 others",color:"bg-green-500",active:!0},{name:"DevRel",seats:2,total:"James and 14 others",color:"bg-pink-500",active:!0},{name:"Marketing",seats:0,total:"",color:"bg-yellow-500",active:!1}],_N=[{name:"A company",seats:1,email:"jack@acompany.com",status:"Accepted",statusColor:"bg-green-500"},{name:"B company",seats:1,email:"tiffany@bcompany.com",status:"Pending",statusColor:"bg-orange-500"}];function zN({open:n,onOpenChange:r}){const[s,i]=y.useState("sharing");return p.jsx(Wf,{open:n,onOpenChange:r,children:p.jsx(io,{className:"max-w-4xl h-[600px] p-0 bg-white",children:p.jsxs("div",{className:"flex h-full",children:[p.jsxs("div",{className:"w-48 border-r bg-slate-50 dark:bg-slate-900",children:[p.jsx(oo,{className:"p-4 border-b",children:p.jsx(uo,{className:"text-lg",children:"Zylo"})}),p.jsx(ka,{className:"h-full",children:p.jsx("div",{className:"p-2",children:DN.map(u=>{const f=u.icon;return p.jsxs("div",{className:`flex items-center gap-2 p-2 rounded-lg cursor-pointer transition-colors text-sm ${u.active?"bg-blue-50 text-blue-700 dark:bg-blue-950 dark:text-blue-300":"hover:bg-gray-100 dark:hover:bg-slate-800"}`,onClick:()=>i(u.id),children:[p.jsx(f,{className:"w-4 h-4"}),u.label]},u.id)})})})]}),p.jsxs("div",{className:"flex-1",children:[p.jsx("div",{className:"p-4 border-b",children:p.jsxs("div",{className:"relative",children:[p.jsx($R,{className:"absolute w-4 h-4 transform -translate-y-1/2 left-3 top-1/2 text-muted-foreground"}),p.jsx(Oa,{placeholder:"Search for endpoints, body and samples",className:"pl-10"})]})}),p.jsx(ka,{className:"h-[calc(100%-80px)]",children:p.jsxs("div",{className:"p-4 space-y-4",children:[s==="sharing"&&p.jsxs(p.Fragment,{children:[p.jsxs(Ot,{children:[p.jsx(jt,{className:"pb-3",children:p.jsx(Dt,{className:"px-3 py-2 text-base text-white rounded-lg bg-slate-700",children:"Team (17 of 20 seats used)"})}),p.jsx(Pt,{className:"space-y-3",children:MN.map(u=>p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:`w-4 h-4 rounded-full ${u.active?"bg-black":"border-2 border-gray-300"}`}),p.jsx(An,{className:`${u.color} text-white hover:${u.color}`,children:u.name}),p.jsxs("span",{className:"text-sm font-medium",children:[u.seats," seats in use"]}),p.jsx("span",{className:"text-sm text-muted-foreground",children:u.total})]},u.name))})]}),p.jsxs(Ot,{children:[p.jsx(jt,{className:"pb-3",children:p.jsx(Dt,{className:"px-3 py-2 text-base text-white rounded-lg bg-slate-700",children:"Partners (2 seats)"})}),p.jsx(Pt,{className:"space-y-3",children:_N.map(u=>p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-4 h-4 bg-black rounded-full"}),p.jsx(An,{className:`${u.name==="A company"?"bg-green-500":"bg-pink-500"} text-white`,children:u.name}),p.jsxs("span",{className:"text-sm font-medium",children:[u.seats," seats in use"]}),p.jsx("span",{className:"text-sm text-muted-foreground",children:u.email}),p.jsx(An,{variant:"outline",className:`ml-auto text-xs ${u.statusColor} text-white border-0`,children:u.status})]},u.name))})]})]}),s!=="sharing"&&p.jsxs("div",{className:"text-center text-muted-foreground",children:["Content for ",s," tab will go here."]})]})})]})]})})})}function UN({open:n,onOpenChange:r}){return p.jsx(Wf,{open:n,onOpenChange:r,children:p.jsxs(io,{className:"sm:max-w-md bg-white",children:[p.jsx(oo,{className:"text-center",children:p.jsx(uo,{className:"text-xl",children:"All set to publish"})}),p.jsxs("div",{className:"py-4 text-center",children:[p.jsx("p",{className:"mb-2 text-lg font-medium",children:"All test cases have passed."}),p.jsx("p",{className:"text-muted-foreground",children:"Do you want to publish your doc?"})]}),p.jsxs(tb,{className:"flex justify-center gap-2",children:[p.jsx(Xe,{variant:"outline",onClick:()=>r(!1),className:"text-white bg-red-500 border-red-500 hover:bg-red-600",children:"Cancel"}),p.jsx(Xe,{onClick:()=>r(!1),className:"bg-blue-500 hover:bg-blue-600 text-white",children:"Publish"})]})]})})}var ed="Checkbox",[kN,NA]=un(ed),[LN,BN]=kN(ed),nb=y.forwardRef((n,r)=>{const{__scopeCheckbox:s,name:i,checked:u,defaultChecked:f,required:d,disabled:h,value:v="on",onCheckedChange:m,form:b,...E}=n,[S,A]=y.useState(null),w=Ye(r,V=>A(V)),R=y.useRef(!1),T=S?b||!!S.closest("form"):!0,[N=!1,_]=Ha({prop:u,defaultProp:f,onChange:m}),H=y.useRef(N);return y.useEffect(()=>{const V=S?.form;if(V){const P=()=>_(H.current);return V.addEventListener("reset",P),()=>V.removeEventListener("reset",P)}},[S,_]),p.jsxs(LN,{scope:s,state:N,disabled:h,children:[p.jsx(Ee.button,{type:"button",role:"checkbox","aria-checked":ca(N)?"mixed":N,"aria-required":d,"data-state":lb(N),"data-disabled":h?"":void 0,disabled:h,value:v,...E,ref:w,onKeyDown:Re(n.onKeyDown,V=>{V.key==="Enter"&&V.preventDefault()}),onClick:Re(n.onClick,V=>{_(P=>ca(P)?!0:!P),T&&(R.current=V.isPropagationStopped(),R.current||V.stopPropagation())})}),T&&p.jsx(HN,{control:S,bubbles:!R.current,name:i,value:v,checked:N,required:d,disabled:h,form:b,style:{transform:"translateX(-100%)"},defaultChecked:ca(f)?!1:f})]})});nb.displayName=ed;var ab="CheckboxIndicator",rb=y.forwardRef((n,r)=>{const{__scopeCheckbox:s,forceMount:i,...u}=n,f=BN(ab,s);return p.jsx(Yt,{present:i||ca(f.state)||f.state===!0,children:p.jsx(Ee.span,{"data-state":lb(f.state),"data-disabled":f.disabled?"":void 0,...u,ref:r,style:{pointerEvents:"none",...n.style}})})});rb.displayName=ab;var HN=n=>{const{control:r,checked:s,bubbles:i=!0,defaultChecked:u,...f}=n,d=y.useRef(null),h=qf(s),v=Gf(r);y.useEffect(()=>{const b=d.current,E=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(E,"checked").set;if(h!==s&&A){const w=new Event("click",{bubbles:i});b.indeterminate=ca(s),A.call(b,ca(s)?!1:s),b.dispatchEvent(w)}},[h,s,i]);const m=y.useRef(ca(s)?!1:s);return p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:u??m.current,...f,tabIndex:-1,ref:d,style:{...n.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ca(n){return n==="indeterminate"}function lb(n){return ca(n)?"indeterminate":n?"checked":"unchecked"}var sb=nb,qN=rb;const ib=y.forwardRef(({className:n,...r},s)=>p.jsx(sb,{ref:s,className:ve("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),...r,children:p.jsx(qN,{className:ve("flex items-center justify-center text-current"),children:p.jsx(qR,{className:"h-4 w-4"})})}));ib.displayName=sb.displayName;const GN={payments:{expanded:!0,count:3,cases:[{id:"sample1",name:"Sample 1",method:"POST",endpoint:"/payments",checked:!0,data:{amount:5e4,currency:"KRW",order_name:"shirt",type:"sale",card_number:"1111111111111111",expiry_month:"12",expiry_year:"2028",cvc:"123",customer_name:"Jack",description:"Payment for Zylosystems Pro plan",metadata:{},order_id:"order_987654",product:"Zylo Pro Subscription"}},{id:"sample2",name:"Sample 2",method:"POST",endpoint:"/payments",checked:!1,data:null},{id:"sample3",name:"Sample 3",method:"POST",endpoint:"/payments",checked:!1,data:null},{id:"get-payment",name:"/payments/{payment_id}",method:"GET",endpoint:"/payments/{payment_id}",checked:!1,data:null}]}};function PN({open:n,onOpenChange:r}){const[s,i]=y.useState({payments:!0}),u=d=>{i(h=>({...h,[d]:!h[d]}))},f=d=>{switch(d){case"POST":return"bg-green-500 hover:bg-green-600";case"GET":return"bg-blue-500 hover:bg-blue-600";default:return"bg-gray-500 hover:bg-gray-600"}};return p.jsx(Wf,{open:n,onOpenChange:r,children:p.jsxs(io,{className:"max-w-2xl h-[600px] p-0 bg-white",children:[p.jsx(oo,{className:"p-4 border-b",children:p.jsx(uo,{children:"Detailed test cases"})}),p.jsx(ka,{className:"h-[calc(100%-80px)]",children:p.jsx("div",{className:"p-4",children:Object.entries(GN).map(([d,h])=>p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>u(d),children:[s[d]?p.jsx(GR,{className:"w-4 h-4"}):p.jsx(PR,{className:"w-4 h-4"}),p.jsxs("h3",{className:"font-medium capitalize",children:[d," (",h.count,")"]})]}),s[d]&&p.jsx("div",{className:"ml-6 space-y-3",children:h.cases.map(v=>p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(ib,{checked:v.checked}),p.jsx(An,{className:`text-xs font-medium text-white ${f(v.method)}`,children:v.method}),p.jsx("span",{className:"text-sm font-medium",children:v.name})]}),v.checked&&v.data&&p.jsx("div",{className:"p-3 ml-8 rounded-lg bg-slate-50 dark:bg-slate-900",children:p.jsx("pre",{className:"overflow-x-auto font-mono text-xs",children:JSON.stringify(v.data,null,2)})})]},v.id))})]},d))})})]})})}function YN(){const[n,r]=y.useState(!1),[s,i]=y.useState(!1),[u,f]=y.useState(!1),[d,h]=y.useState(null),{data:v}=yy(),m=by(),{data:b}=Ng(),E=d?.path||"",S=d?.method||"GET",{data:A}=sC({path:E,method:S}),w=A?.[S.toLowerCase()]||null,R=T=>{const N=b?.operationGroups.flatMap(_=>_.operations).find(_=>_.operationId===T)||null;h(N)};return p.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-100 dark:from-slate-950 dark:via-slate-900 dark:to-indigo-950",children:[p.jsx("div",{className:"border-b shadow-lg border-white/20 bg-white/60 backdrop-blur-xl dark:bg-slate-900/60",children:p.jsxs("div",{className:"flex items-center justify-between px-8 py-4",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"flex items-center justify-center w-10 h-10 shadow-lg rounded-xl bg-gradient-to-br from-blue-500 to-purple-600",children:p.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 177 177",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M7.00003 76C17.015 111.134 33 145.191 47.7145 165.686C51.2152 170.562 66.8978 168.378 76.3286 165.686C98 159.5 113 152 124.496 145.191C136.542 138.055 155.5 127.5 171.232 102.737C179.091 90.3658 172.641 69.7256 166 56C158.5 40.5 151.5 32.1508 134.5 19.5C117.5 6.84923 85.1286 6.62383 72 11C57 16 41 22 27 29C18.2657 33.3671 -2.28984 43.4094 7.00003 76Z",fill:"white"}),p.jsx("circle",{cx:"114",cy:"59",r:"16",fill:"#091DFE"})]})}),p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-bold text-transparent bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text",children:"Zylo API Editor"}),p.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:"Build beautiful APIs"})]})]}),p.jsx(An,{variant:"secondary",className:"text-xs text-blue-700 bg-blue-100 border-0 dark:bg-blue-900/20 dark:text-blue-300",children:"localhost:8000 (Local development server)"})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[m&&p.jsx(An,{variant:"outline",children:v?.email}),p.jsx(cT,{}),p.jsx(hT,{}),p.jsxs(Xe,{size:"sm",className:"transition-all duration-200 shadow-lg bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 hover:shadow-xl text-white",onClick:()=>r(!0),children:[p.jsx(ff,{className:"w-4 h-4 mr-1"}),"Publish"]})]})]})}),p.jsxs("div",{className:"flex h-[calc(100vh-93px)]",children:[p.jsx(iC,{selectedOperationId:d?.operationId||null,setSelectedOperationId:R}),d&&p.jsx("div",{className:"flex flex-1",children:p.jsx(ka,{className:"flex-1",children:p.jsx("div",{className:"p-6",children:p.jsxs("div",{className:"space-y-6",children:[p.jsx(Ot,{className:"border shadow-xl bg-white/80 dark:bg-slate-900/80 backdrop-blur-sm border-white/20 dark:border-slate-700/20",children:p.jsxs(jt,{className:"pb-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(An,{className:"text-white border-0 shadow-lg bg-gradient-to-r from-green-500 to-emerald-600",children:d.method}),p.jsx(Dt,{className:"text-2xl text-transparent bg-gradient-to-r from-slate-700 to-slate-900 dark:from-slate-200 dark:to-slate-400 bg-clip-text",children:d.path})]}),p.jsx(Li,{className:"text-lg",children:w?.summary}),p.jsx(Li,{className:"text-sm",children:w?.description})]})}),w&&p.jsx(CC,{operation:w}),w&&p.jsx(kC,{operation:w})]})})})}),d&&p.jsx("div",{className:"border-l min-w-60 border-white/20 bg-white/40 backdrop-blur-xl dark:bg-slate-900/40",children:p.jsx(ka,{className:"h-full",children:p.jsxs("div",{className:"p-4 space-y-6",children:[p.jsx(aT,{operationId:d.operationId,setShowTestCasesModal:f}),p.jsx(aC,{operationId:d.operationId})]})})})]}),p.jsx(UN,{open:n,onOpenChange:r}),p.jsx(zN,{open:s,onOpenChange:i}),p.jsx(PN,{open:u,onOpenChange:f})]})}var QN="Separator",$0="horizontal",VN=["horizontal","vertical"],ob=y.forwardRef((n,r)=>{const{decorative:s,orientation:i=$0,...u}=n,f=XN(i)?i:$0,h=s?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return p.jsx(Ee.div,{"data-orientation":f,...h,...u,ref:r})});ob.displayName=QN;function XN(n){return VN.includes(n)}var ub=ob;const cb=y.forwardRef(({className:n,orientation:r="horizontal",decorative:s=!0,...i},u)=>p.jsx(ub,{ref:u,decorative:s,orientation:r,className:ve("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...i}));cb.displayName=ub.displayName;const FN=()=>$i({mutationFn:lT}),KN=()=>$i({mutationFn:rT}),ZN=()=>{const[n,r]=y.useState(!1),[s,i]=y.useState(!1),[u,f]=y.useState(!1),[d,h]=y.useState("signin"),{mutateAsync:v}=KN(),{mutateAsync:m}=FN(),b=Ii(),E=async A=>{A.preventDefault();const w=new FormData(A.currentTarget),R=w.get(`${d}-email`),T=w.get(`${d}-password`),N=w.get(`${d}-confirm-password`);f(!0);try{if(d==="signin"){const _=await m({email:R,password:T});Rv(_.access_token),alert("login complete"),b("/")}else if(d==="signup"){if(T!==N)throw new Error("password not matched.");await v({email:R,password:T}),alert("sign up complete"),h("signin")}}catch(_){alert(_.message)}finally{f(!1)}},S=async A=>{f(!0);try{const w=await iT(A);window.location.href=w.redirect_url}catch{alert("Failed to login with "+A)}finally{f(!1)}};return p.jsxs("div",{className:"flex items-center justify-center min-h-screen p-4 bg-gradient-to-br from-slate-50 via-blue-50 to-indigo-100 dark:from-slate-950 dark:via-slate-900 dark:to-indigo-950",children:[p.jsx("div",{className:"absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,white,rgba(255,255,255,0.6))] dark:bg-grid-slate-700/25"}),p.jsxs("div",{className:"relative w-full max-w-md",children:[p.jsxs(Xe,{variant:"ghost",size:"sm",onClick:()=>b("/"),className:"mb-4 hover:bg-white/60 dark:hover:bg-slate-800/60",children:[p.jsx(HR,{className:"w-4 h-4 mr-2"}),"Back to Platform"]}),p.jsxs(Ot,{className:"border shadow-2xl bg-white/80 dark:bg-slate-900/80 backdrop-blur-xl border-white/20 dark:border-slate-700/20",children:[p.jsxs(jt,{className:"pb-2 text-center",children:[p.jsx("div",{className:"flex justify-center mb-4",children:p.jsx("div",{className:"flex items-center justify-center w-12 h-12 shadow-lg rounded-xl bg-gradient-to-br from-blue-500 to-purple-600",children:p.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 177 177",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M7.00003 76C17.015 111.134 33 145.191 47.7145 165.686C51.2152 170.562 66.8978 168.378 76.3286 165.686C98 159.5 113 152 124.496 145.191C136.542 138.055 155.5 127.5 171.232 102.737C179.091 90.3658 172.641 69.7256 166 56C158.5 40.5 151.5 32.1508 134.5 19.5C117.5 6.84923 85.1286 6.62383 72 11C57 16 41 22 27 29C18.2657 33.3671 -2.28984 43.4094 7.00003 76Z",fill:"white"}),p.jsx("circle",{cx:"114",cy:"59",r:"16",fill:"#091DFE"})]})})}),p.jsx(Dt,{className:"text-2xl font-bold text-transparent bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text",children:"Welcome to Zylo"}),p.jsx(Li,{className:"text-slate-600 dark:text-slate-400",children:"Sign in to your account or create a new one"})]}),p.jsxs(Pt,{className:"pt-2",children:[p.jsxs(Hf,{defaultValue:"signin",className:"w-full",value:d,onValueChange:h,children:[p.jsxs(lo,{className:"grid w-full grid-cols-2 mb-6 bg-slate-100/80 dark:bg-slate-800/80",children:[p.jsx(Zl,{value:"signin",className:"data-[state=active]:bg-gradient-to-r data-[state=active]:from-blue-500 data-[state=active]:to-purple-600 data-[state=active]:text-white transition-all duration-300",children:"Sign In"}),p.jsx(Zl,{value:"signup",className:"data-[state=active]:bg-gradient-to-r data-[state=active]:from-blue-500 data-[state=active]:to-purple-600 data-[state=active]:text-white transition-all duration-300",children:"Sign Up"})]}),p.jsx(qi,{value:"signin",className:"space-y-4",children:p.jsxs("form",{onSubmit:E,className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(oa,{htmlFor:"signin-email",className:"text-sm font-medium",children:"Email"}),p.jsx(Oa,{name:"signin-email",type:"email",placeholder:"Enter your email",className:"bg-white/50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700 focus:border-blue-500 dark:focus:border-blue-400",required:!0})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(oa,{htmlFor:"signin-password",className:"text-sm font-medium",children:"Password"}),p.jsxs("div",{className:"relative",children:[p.jsx(Oa,{name:"signin-password",type:n?"text":"password",placeholder:"Enter your password",className:"pr-10 bg-white/50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700 focus:border-blue-500 dark:focus:border-blue-400",required:!0}),p.jsx(Xe,{type:"button",variant:"ghost",size:"sm",className:"absolute top-0 right-0 h-full px-3 hover:bg-transparent",onClick:()=>r(!n),children:n?p.jsx(Hc,{className:"w-4 h-4 text-slate-500"}):p.jsx(qc,{className:"w-4 h-4 text-slate-500"})})]})]}),p.jsxs("div",{className:"flex items-center justify-between text-sm",children:[p.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[p.jsx("input",{type:"checkbox",className:"rounded border-slate-300"}),p.jsx("span",{className:"text-slate-600 dark:text-slate-400",children:"Remember me"})]}),p.jsx(Xe,{variant:"link",className:"h-auto p-0 text-blue-600 hover:text-blue-700",children:"Forgot password?"})]}),p.jsx(Xe,{type:"submit",className:"w-full transition-all duration-200 shadow-lg bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 hover:shadow-xl text-white",disabled:u,children:u?p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-4 h-4 border-2 rounded-full border-white/30 border-t-white animate-spin"}),"Signing in..."]}):p.jsxs(p.Fragment,{children:[p.jsx(ff,{className:"w-4 h-4 mr-2"}),"Sign In"]})})]})}),p.jsx(qi,{value:"signup",className:"space-y-4",children:p.jsxs("form",{onSubmit:E,className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(oa,{htmlFor:"signup-email",className:"text-sm font-medium",children:"Email"}),p.jsx(Oa,{name:"signup-email",type:"email",placeholder:"Enter your email",className:"bg-white/50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700 focus:border-blue-500 dark:focus:border-blue-400",required:!0})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(oa,{htmlFor:"signup-password",className:"text-sm font-medium",children:"Password"}),p.jsxs("div",{className:"relative",children:[p.jsx(Oa,{name:"signup-password",type:n?"text":"password",placeholder:"Create a password",className:"pr-10 bg-white/50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700 focus:border-blue-500 dark:focus:border-blue-400",required:!0}),p.jsx(Xe,{type:"button",variant:"ghost",size:"sm",className:"absolute top-0 right-0 h-full px-3 hover:bg-transparent",onClick:()=>r(!n),children:n?p.jsx(Hc,{className:"w-4 h-4 text-slate-500"}):p.jsx(qc,{className:"w-4 h-4 text-slate-500"})})]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(oa,{htmlFor:"signup-confirm-password",className:"text-sm font-medium",children:"Confirm Password"}),p.jsxs("div",{className:"relative",children:[p.jsx(Oa,{name:"signup-confirm-password",type:s?"text":"password",placeholder:"Confirm your password",className:"pr-10 bg-white/50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700 focus:border-blue-500 dark:focus:border-blue-400",required:!0}),p.jsx(Xe,{type:"button",variant:"ghost",size:"sm",className:"absolute top-0 right-0 h-full px-3 hover:bg-transparent",onClick:()=>i(!s),children:s?p.jsx(Hc,{className:"w-4 h-4 text-slate-500"}):p.jsx(qc,{className:"w-4 h-4 text-slate-500"})})]})]}),p.jsxs("div",{className:"flex items-start space-x-2 text-sm",children:[p.jsx("input",{type:"checkbox",className:"rounded border-slate-300 mt-0.5",required:!0}),p.jsxs("span",{className:"text-slate-600 dark:text-slate-400",children:["I agree to the"," ",p.jsx(Xe,{variant:"link",className:"h-auto p-0 text-blue-600 hover:text-blue-700",children:"Terms of Service"})," ","and"," ",p.jsx(Xe,{variant:"link",className:"h-auto p-0 text-blue-600 hover:text-blue-700",children:"Privacy Policy"})]})]}),p.jsx(Xe,{type:"submit",className:"w-full transition-all duration-200 shadow-lg bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 hover:shadow-xl text-white",disabled:u,children:u?p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-4 h-4 border-2 rounded-full border-white/30 border-t-white animate-spin"}),"Creating account..."]}):p.jsxs(p.Fragment,{children:[p.jsx(ff,{className:"w-4 h-4 mr-2"}),"Create Account"]})})]})})]}),p.jsxs("div",{className:"relative my-6",children:[p.jsx(cb,{className:"bg-slate-200 dark:bg-slate-700"}),p.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:p.jsx("span",{className:"px-3 text-sm bg-white dark:bg-slate-900 text-slate-500 dark:text-slate-400",children:"Or continue with"})})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[p.jsxs(Xe,{variant:"outline",onClick:()=>S("google"),disabled:u,className:"bg-white/50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700 hover:bg-white dark:hover:bg-slate-800",children:[p.jsx(KR,{className:"w-4 h-4 mr-2"}),"Google"]}),p.jsxs(Xe,{variant:"outline",onClick:()=>S("github"),disabled:u,className:"bg-white/50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700 hover:bg-white dark:hover:bg-slate-800",children:[p.jsx(VR,{className:"w-4 h-4 mr-2"}),"GitHub"]})]})]})]}),p.jsx("div",{className:"mt-6 text-sm text-center text-slate-500 dark:text-slate-400",children:p.jsxs("p",{children:["By signing in, you agree to our"," ",p.jsx(Xe,{variant:"link",className:"h-auto p-0 text-blue-600 hover:text-blue-700",children:"Terms"})," ","and"," ",p.jsx(Xe,{variant:"link",className:"h-auto p-0 text-blue-600 hover:text-blue-700",children:"Privacy Policy"})]})})]})]})},$N=()=>{const n=Ii();return y.useEffect(()=>{const r=new URLSearchParams(window.location.search);sn.get(`/auth/callback?${r.toString()}`).then(s=>{const i=s.data?.data?.access_token;i?(Rv(i),n("/")):(alert("Failed to retrieve access token"),n("/auth"))}).catch(()=>{alert("Failed to login"),n("/auth")})},[n]),null},JN=()=>p.jsx(y2,{children:p.jsxs(Kw,{children:[p.jsx(Ni,{path:"/",element:p.jsx(YN,{})}),p.jsx(Ni,{path:"/auth",element:p.jsx(ZN,{})}),p.jsx(Ni,{path:"/auth/callback",element:p.jsx($N,{})})]})}),IN=()=>p.jsx(aw,{children:p.jsx(JN,{})});async function WN(){}const eA=document.getElementById("root");WN().then(()=>{Y1.createRoot(eA).render(p.jsx(y.StrictMode,{children:p.jsx(IN,{})}))});
