skillverse 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +364 -61
- package/dist/bin.js.map +1 -1
- package/dist/index.js +924 -572
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/prisma/dev.db +0 -0
- package/public/assets/index-Dd6kW-3f.js +20 -0
- package/public/assets/index-li8hN2px.css +1 -0
- package/public/index.html +2 -2
- package/public/assets/index-BsYtpZSa.css +0 -1
- package/public/assets/index-Dfr_6UV8.js +0 -20
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const p of u)if(p.type==="childList")for(const m of p.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function r(u){const p={};return u.integrity&&(p.integrity=u.integrity),u.referrerPolicy&&(p.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?p.credentials="include":u.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function o(u){if(u.ep)return;u.ep=!0;const p=r(u);fetch(u.href,p)}})();function zu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Fo={exports:{}},Ti={};var Hm;function cg(){if(Hm)return Ti;Hm=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function r(o,u,p){var m=null;if(p!==void 0&&(m=""+p),u.key!==void 0&&(m=""+u.key),"key"in u){p={};for(var x in u)x!=="key"&&(p[x]=u[x])}else p=u;return u=p.ref,{$$typeof:n,type:o,key:m,ref:u!==void 0?u:null,props:p}}return Ti.Fragment=s,Ti.jsx=r,Ti.jsxs=r,Ti}var Bm;function rg(){return Bm||(Bm=1,Fo.exports=cg()),Fo.exports}var f=rg(),Jo={exports:{}},ce={};var Ym;function og(){if(Ym)return ce;Ym=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),_=Symbol.iterator;function H(w){return w===null||typeof w!="object"?null:(w=_&&w[_]||w["@@iterator"],typeof w=="function"?w:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,N={};function G(w,q,Z){this.props=w,this.context=q,this.refs=N,this.updater=Z||T}G.prototype.isReactComponent={},G.prototype.setState=function(w,q){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,q,"setState")},G.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function M(){}M.prototype=G.prototype;function X(w,q,Z){this.props=w,this.context=q,this.refs=N,this.updater=Z||T}var P=X.prototype=new M;P.constructor=X,z(P,G.prototype),P.isPureReactComponent=!0;var ee=Array.isArray;function re(){}var Y={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function Ee(w,q,Z){var F=Z.ref;return{$$typeof:n,type:w,key:q,ref:F!==void 0?F:null,props:Z}}function Ye(w,q){return Ee(w.type,q,w.props)}function et(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function xe(w){var q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(Z){return q[Z]})}var lt=/\/+/g;function be(w,q){return typeof w=="object"&&w!==null&&w.key!=null?xe(""+w.key):q.toString(36)}function _e(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(re,re):(w.status="pending",w.then(function(q){w.status==="pending"&&(w.status="fulfilled",w.value=q)},function(q){w.status==="pending"&&(w.status="rejected",w.reason=q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function U(w,q,Z,F,ae){var de=typeof w;(de==="undefined"||de==="boolean")&&(w=null);var pe=!1;if(w===null)pe=!0;else switch(de){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(w.$$typeof){case n:case s:pe=!0;break;case y:return pe=w._init,U(pe(w._payload),q,Z,F,ae)}}if(pe)return ae=ae(w),pe=F===""?"."+be(w,0):F,ee(ae)?(Z="",pe!=null&&(Z=pe.replace(lt,"$&/")+"/"),U(ae,q,Z,"",function(Ma){return Ma})):ae!=null&&(et(ae)&&(ae=Ye(ae,Z+(ae.key==null||w&&w.key===ae.key?"":(""+ae.key).replace(lt,"$&/")+"/")+pe)),q.push(ae)),1;pe=0;var nt=F===""?".":F+":";if(ee(w))for(var Ge=0;Ge<w.length;Ge++)F=w[Ge],de=nt+be(F,Ge),pe+=U(F,q,Z,de,ae);else if(Ge=H(w),typeof Ge=="function")for(w=Ge.call(w),Ge=0;!(F=w.next()).done;)F=F.value,de=nt+be(F,Ge++),pe+=U(F,q,Z,de,ae);else if(de==="object"){if(typeof w.then=="function")return U(_e(w),q,Z,F,ae);throw q=String(w),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return pe}function Q(w,q,Z){if(w==null)return w;var F=[],ae=0;return U(w,F,"","",function(de){return q.call(Z,de,ae++)}),F}function $(w){if(w._status===-1){var q=w._result;q=q(),q.then(function(Z){(w._status===0||w._status===-1)&&(w._status=1,w._result=Z)},function(Z){(w._status===0||w._status===-1)&&(w._status=2,w._result=Z)}),w._status===-1&&(w._status=0,w._result=q)}if(w._status===1)return w._result.default;throw w._result}var ie=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},we={map:Q,forEach:function(w,q,Z){Q(w,function(){q.apply(this,arguments)},Z)},count:function(w){var q=0;return Q(w,function(){q++}),q},toArray:function(w){return Q(w,function(q){return q})||[]},only:function(w){if(!et(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return ce.Activity=b,ce.Children=we,ce.Component=G,ce.Fragment=r,ce.Profiler=u,ce.PureComponent=X,ce.StrictMode=o,ce.Suspense=g,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ce.__COMPILER_RUNTIME={__proto__:null,c:function(w){return Y.H.useMemoCache(w)}},ce.cache=function(w){return function(){return w.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(w,q,Z){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var F=z({},w.props),ae=w.key;if(q!=null)for(de in q.key!==void 0&&(ae=""+q.key),q)!ne.call(q,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&q.ref===void 0||(F[de]=q[de]);var de=arguments.length-2;if(de===1)F.children=Z;else if(1<de){for(var pe=Array(de),nt=0;nt<de;nt++)pe[nt]=arguments[nt+2];F.children=pe}return Ee(w.type,ae,F)},ce.createContext=function(w){return w={$$typeof:m,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:p,_context:w},w},ce.createElement=function(w,q,Z){var F,ae={},de=null;if(q!=null)for(F in q.key!==void 0&&(de=""+q.key),q)ne.call(q,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ae[F]=q[F]);var pe=arguments.length-2;if(pe===1)ae.children=Z;else if(1<pe){for(var nt=Array(pe),Ge=0;Ge<pe;Ge++)nt[Ge]=arguments[Ge+2];ae.children=nt}if(w&&w.defaultProps)for(F in pe=w.defaultProps,pe)ae[F]===void 0&&(ae[F]=pe[F]);return Ee(w,de,ae)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(w){return{$$typeof:x,render:w}},ce.isValidElement=et,ce.lazy=function(w){return{$$typeof:y,_payload:{_status:-1,_result:w},_init:$}},ce.memo=function(w,q){return{$$typeof:v,type:w,compare:q===void 0?null:q}},ce.startTransition=function(w){var q=Y.T,Z={};Y.T=Z;try{var F=w(),ae=Y.S;ae!==null&&ae(Z,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(re,ie)}catch(de){ie(de)}finally{q!==null&&Z.types!==null&&(q.types=Z.types),Y.T=q}},ce.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ce.use=function(w){return Y.H.use(w)},ce.useActionState=function(w,q,Z){return Y.H.useActionState(w,q,Z)},ce.useCallback=function(w,q){return Y.H.useCallback(w,q)},ce.useContext=function(w){return Y.H.useContext(w)},ce.useDebugValue=function(){},ce.useDeferredValue=function(w,q){return Y.H.useDeferredValue(w,q)},ce.useEffect=function(w,q){return Y.H.useEffect(w,q)},ce.useEffectEvent=function(w){return Y.H.useEffectEvent(w)},ce.useId=function(){return Y.H.useId()},ce.useImperativeHandle=function(w,q,Z){return Y.H.useImperativeHandle(w,q,Z)},ce.useInsertionEffect=function(w,q){return Y.H.useInsertionEffect(w,q)},ce.useLayoutEffect=function(w,q){return Y.H.useLayoutEffect(w,q)},ce.useMemo=function(w,q){return Y.H.useMemo(w,q)},ce.useOptimistic=function(w,q){return Y.H.useOptimistic(w,q)},ce.useReducer=function(w,q,Z){return Y.H.useReducer(w,q,Z)},ce.useRef=function(w){return Y.H.useRef(w)},ce.useState=function(w){return Y.H.useState(w)},ce.useSyncExternalStore=function(w,q,Z){return Y.H.useSyncExternalStore(w,q,Z)},ce.useTransition=function(){return Y.H.useTransition()},ce.version="19.2.4",ce}var Gm;function Ou(){return Gm||(Gm=1,Jo.exports=og()),Jo.exports}var j=Ou();const Di=zu(j);var $o={exports:{}},Ri={},Wo={exports:{}},Po={};var Vm;function ug(){return Vm||(Vm=1,(function(n){function s(U,Q){var $=U.length;U.push(Q);e:for(;0<$;){var ie=$-1>>>1,we=U[ie];if(0<u(we,Q))U[ie]=Q,U[$]=we,$=ie;else break e}}function r(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var Q=U[0],$=U.pop();if($!==Q){U[0]=$;e:for(var ie=0,we=U.length,w=we>>>1;ie<w;){var q=2*(ie+1)-1,Z=U[q],F=q+1,ae=U[F];if(0>u(Z,$))F<we&&0>u(ae,Z)?(U[ie]=ae,U[F]=$,ie=F):(U[ie]=Z,U[q]=$,ie=q);else if(F<we&&0>u(ae,$))U[ie]=ae,U[F]=$,ie=F;else break e}}return Q}function u(U,Q){var $=U.sortIndex-Q.sortIndex;return $!==0?$:U.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;n.unstable_now=function(){return p.now()}}else{var m=Date,x=m.now();n.unstable_now=function(){return m.now()-x}}var g=[],v=[],y=1,b=null,_=3,H=!1,T=!1,z=!1,N=!1,G=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function P(U){for(var Q=r(v);Q!==null;){if(Q.callback===null)o(v);else if(Q.startTime<=U)o(v),Q.sortIndex=Q.expirationTime,s(g,Q);else break;Q=r(v)}}function ee(U){if(z=!1,P(U),!T)if(r(g)!==null)T=!0,re||(re=!0,xe());else{var Q=r(v);Q!==null&&_e(ee,Q.startTime-U)}}var re=!1,Y=-1,ne=5,Ee=-1;function Ye(){return N?!0:!(n.unstable_now()-Ee<ne)}function et(){if(N=!1,re){var U=n.unstable_now();Ee=U;var Q=!0;try{e:{T=!1,z&&(z=!1,M(Y),Y=-1),H=!0;var $=_;try{t:{for(P(U),b=r(g);b!==null&&!(b.expirationTime>U&&Ye());){var ie=b.callback;if(typeof ie=="function"){b.callback=null,_=b.priorityLevel;var we=ie(b.expirationTime<=U);if(U=n.unstable_now(),typeof we=="function"){b.callback=we,P(U),Q=!0;break t}b===r(g)&&o(g),P(U)}else o(g);b=r(g)}if(b!==null)Q=!0;else{var w=r(v);w!==null&&_e(ee,w.startTime-U),Q=!1}}break e}finally{b=null,_=$,H=!1}Q=void 0}}finally{Q?xe():re=!1}}}var xe;if(typeof X=="function")xe=function(){X(et)};else if(typeof MessageChannel<"u"){var lt=new MessageChannel,be=lt.port2;lt.port1.onmessage=et,xe=function(){be.postMessage(null)}}else xe=function(){G(et,0)};function _e(U,Q){Y=G(function(){U(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return _},n.unstable_next=function(U){switch(_){case 1:case 2:case 3:var Q=3;break;default:Q=_}var $=_;_=Q;try{return U()}finally{_=$}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(U,Q){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var $=_;_=U;try{return Q()}finally{_=$}},n.unstable_scheduleCallback=function(U,Q,$){var ie=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ie+$:ie):$=ie,U){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=$+we,U={id:y++,callback:Q,priorityLevel:U,startTime:$,expirationTime:we,sortIndex:-1},$>ie?(U.sortIndex=$,s(v,U),r(g)===null&&U===r(v)&&(z?(M(Y),Y=-1):z=!0,_e(ee,$-ie))):(U.sortIndex=we,s(g,U),T||H||(T=!0,re||(re=!0,xe()))),U},n.unstable_shouldYield=Ye,n.unstable_wrapCallback=function(U){var Q=_;return function(){var $=_;_=Q;try{return U.apply(this,arguments)}finally{_=$}}}})(Po)),Po}var Xm;function fg(){return Xm||(Xm=1,Wo.exports=ug()),Wo.exports}var Io={exports:{}},mt={};var Qm;function dg(){if(Qm)return mt;Qm=1;var n=Ou();function s(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)v+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(s(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function p(g,v,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:g,containerInfo:v,implementation:y}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,mt.createPortal=function(g,v){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(s(299));return p(g,v,null,y)},mt.flushSync=function(g){var v=m.T,y=o.p;try{if(m.T=null,o.p=2,g)return g()}finally{m.T=v,o.p=y,o.d.f()}},mt.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(g,v))},mt.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},mt.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var y=v.as,b=x(y,v.crossOrigin),_=typeof v.integrity=="string"?v.integrity:void 0,H=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;y==="style"?o.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:b,integrity:_,fetchPriority:H}):y==="script"&&o.d.X(g,{crossOrigin:b,integrity:_,fetchPriority:H,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},mt.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var y=x(v.as,v.crossOrigin);o.d.M(g,{crossOrigin:y,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(g)},mt.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var y=v.as,b=x(y,v.crossOrigin);o.d.L(g,y,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},mt.preloadModule=function(g,v){if(typeof g=="string")if(v){var y=x(v.as,v.crossOrigin);o.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:y,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(g)},mt.requestFormReset=function(g){o.d.r(g)},mt.unstable_batchedUpdates=function(g,v){return g(v)},mt.useFormState=function(g,v,y){return m.H.useFormState(g,v,y)},mt.useFormStatus=function(){return m.H.useHostTransitionStatus()},mt.version="19.2.4",mt}var Zm;function Hh(){if(Zm)return Io.exports;Zm=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(s){console.error(s)}}return n(),Io.exports=dg(),Io.exports}var Km;function pg(){if(Km)return Ri;Km=1;var n=fg(),s=Ou(),r=Hh();function o(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 p(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 m(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 x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(p(e)!==e)throw Error(o(188))}function v(e){var t=e.alternate;if(!t){if(t=p(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var c=i.alternate;if(c===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===c.child){for(c=i.child;c;){if(c===a)return g(i),e;if(c===l)return g(i),t;c=c.sibling}throw Error(o(188))}if(a.return!==l.return)a=i,l=c;else{for(var d=!1,h=i.child;h;){if(h===a){d=!0,a=i,l=c;break}if(h===l){d=!0,l=i,a=c;break}h=h.sibling}if(!d){for(h=c.child;h;){if(h===a){d=!0,a=c,l=i;break}if(h===l){d=!0,l=c,a=i;break}h=h.sibling}if(!d)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,_=Symbol.for("react.element"),H=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),X=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),Ye=Symbol.for("react.memo_cache_sentinel"),et=Symbol.iterator;function xe(e){return e===null||typeof e!="object"?null:(e=et&&e[et]||e["@@iterator"],typeof e=="function"?e:null)}var lt=Symbol.for("react.client.reference");function be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===lt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case G:return"Profiler";case N:return"StrictMode";case ee:return"Suspense";case re:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case X:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case P:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var _e=Array.isArray,U=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ie=[],we=-1;function w(e){return{current:e}}function q(e){0>we||(e.current=ie[we],ie[we]=null,we--)}function Z(e,t){we++,ie[we]=e.current,e.current=t}var F=w(null),ae=w(null),de=w(null),pe=w(null);function nt(e,t){switch(Z(de,t),Z(ae,e),Z(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rm(t),e=om(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(F),Z(F,e)}function Ge(){q(F),q(ae),q(de)}function Ma(e){e.memoizedState!==null&&Z(pe,e);var t=F.current,a=om(t,e.type);t!==a&&(Z(ae,e),Z(F,a))}function fa(e){ae.current===e&&(q(F),q(ae)),pe.current===e&&(q(pe),ki._currentValue=$)}var Ua,da;function aa(e){if(Ua===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ua=t&&t[1]||"",da=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ua+e+da}var Ll=!1;function ql(e,t){if(!e||Ll)return"";Ll=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(D){var O=D}Reflect.construct(e,[],V)}else{try{V.call()}catch(D){O=D}e.call(V.prototype)}}else{try{throw Error()}catch(D){O=D}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(D){if(D&&O&&typeof D.stack=="string")return[D.stack,O.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),d=c[0],h=c[1];if(d&&h){var S=d.split(`
|
|
4
|
+
`),R=h.split(`
|
|
5
|
+
`);for(i=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;i<R.length&&!R[i].includes("DetermineComponentFrameRoot");)i++;if(l===S.length||i===R.length)for(l=S.length-1,i=R.length-1;1<=l&&0<=i&&S[l]!==R[i];)i--;for(;1<=l&&0<=i;l--,i--)if(S[l]!==R[i]){if(l!==1||i!==1)do if(l--,i--,0>i||S[l]!==R[i]){var L=`
|
|
6
|
+
`+S[l].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=l&&0<=i);break}}}finally{Ll=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?aa(a):""}function Zi(e,t){switch(e.tag){case 26:case 27:case 5:return aa(e.type);case 16:return aa("Lazy");case 13:return e.child!==t&&t!==null?aa("Suspense Fallback"):aa("Suspense");case 19:return aa("SuspenseList");case 0:case 15:return ql(e.type,!1);case 11:return ql(e.type.render,!1);case 1:return ql(e.type,!0);case 31:return aa("Activity");default:return""}}function pa(e){try{var t="",a=null;do t+=Zi(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var dl=Object.prototype.hasOwnProperty,La=n.unstable_scheduleCallback,qa=n.unstable_cancelCallback,Dc=n.unstable_shouldYield,Cc=n.unstable_requestPaint,xt=n.unstable_now,K=n.unstable_getCurrentPriorityLevel,te=n.unstable_ImmediatePriority,Ue=n.unstable_UserBlockingPriority,Le=n.unstable_NormalPriority,tt=n.unstable_LowPriority,At=n.unstable_IdlePriority,Ft=n.log,Dn=n.unstable_setDisableYieldValue,ma=null,ct=null;function Tt(e){if(typeof Ft=="function"&&Dn(e),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(ma,e)}catch{}}var rt=Math.clz32?Math.clz32:Un,Cn=Math.log,Mn=Math.LN2;function Un(e){return e>>>=0,e===0?32:31-(Cn(e)/Mn|0)|0}var Hl=256,Ki=262144,Fi=4194304;function pl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ji(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var h=l&134217727;return h!==0?(l=h&~c,l!==0?i=pl(l):(d&=h,d!==0?i=pl(d):a||(a=h&~e,a!==0&&(i=pl(a))))):(h=l&~c,h!==0?i=pl(h):d!==0?i=pl(d):a||(a=l&~e,a!==0&&(i=pl(a)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:i}function Ln(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function F0(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 Gu(){var e=Fi;return Fi<<=1,(Fi&62914560)===0&&(Fi=4194304),e}function Mc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function qn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function J0(e,t,a,l,i,c){var d=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 h=e.entanglements,S=e.expirationTimes,R=e.hiddenUpdates;for(a=d&~a;0<a;){var L=31-rt(a),V=1<<L;h[L]=0,S[L]=-1;var O=R[L];if(O!==null)for(R[L]=null,L=0;L<O.length;L++){var D=O[L];D!==null&&(D.lane&=-536870913)}a&=~V}l!==0&&Vu(e,l,0),c!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=c&~(d&~t))}function Vu(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-rt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Xu(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-rt(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function Qu(e,t){var a=t&-t;return a=(a&42)!==0?1:Uc(a),(a&(e.suspendedLanes|t))!==0?0:a}function Uc(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 Lc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zu(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:_m(e.type))}function Ku(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var Ha=Math.random().toString(36).slice(2),ot="__reactFiber$"+Ha,gt="__reactProps$"+Ha,Bl="__reactContainer$"+Ha,qc="__reactEvents$"+Ha,$0="__reactListeners$"+Ha,W0="__reactHandles$"+Ha,Fu="__reactResources$"+Ha,Hn="__reactMarker$"+Ha;function Hc(e){delete e[ot],delete e[gt],delete e[qc],delete e[$0],delete e[W0]}function Yl(e){var t=e[ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Bl]||a[ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=xm(e);e!==null;){if(a=e[ot])return a;e=xm(e)}return t}e=a,a=e.parentNode}return null}function Gl(e){if(e=e[ot]||e[Bl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Vl(e){var t=e[Fu];return t||(t=e[Fu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[Hn]=!0}var Ju=new Set,$u={};function ml(e,t){Xl(e,t),Xl(e+"Capture",t)}function Xl(e,t){for($u[e]=t,e=0;e<t.length;e++)Ju.add(t[e])}var P0=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]*$"),Wu={},Pu={};function I0(e){return dl.call(Pu,e)?!0:dl.call(Wu,e)?!1:P0.test(e)?Pu[e]=!0:(Wu[e]=!0,!1)}function $i(e,t,a){if(I0(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 Wi(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 ha(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)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Iu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ex(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){a=""+d,c.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bc(e){if(!e._valueTracker){var t=Iu(e)?"checked":"value";e._valueTracker=ex(e,t,""+e[t])}}function ef(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Iu(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Pi(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 tx=/[\n"\\]/g;function Lt(e){return e.replace(tx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yc(e,t,a,l,i,c,d,h){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Gc(e,d,Ut(t)):a!=null?Gc(e,d,Ut(a)):l!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Ut(h):e.removeAttribute("name")}function tf(e,t,a,l,i,c,d,h){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)){Bc(e);return}a=a!=null?""+Ut(a):"",t=t!=null?""+Ut(t):a,h||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=h?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Bc(e)}function Gc(e,t,a){t==="number"&&Pi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ql(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Ut(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function af(e,t,a){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ut(a):""}function lf(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(_e(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Ut(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Bc(e)}function Zl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ax=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 nf(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||ax.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function sf(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(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 i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&nf(e,i,l)}else for(var c in t)t.hasOwnProperty(c)&&nf(e,c,t[c])}function Vc(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 lx=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"]]),nx=/^[\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 Ii(e){return nx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xa(){}var Xc=null;function Qc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kl=null,Fl=null;function cf(e){var t=Gl(e);if(t&&(e=t.stateNode)){var a=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Yc(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="'+Lt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[gt]||null;if(!i)throw Error(o(90));Yc(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&ef(l)}break e;case"textarea":af(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ql(e,!!a.multiple,t,!1)}}}var Zc=!1;function rf(e,t,a){if(Zc)return e(t,a);Zc=!0;try{var l=e(t);return l}finally{if(Zc=!1,(Kl!==null||Fl!==null)&&(Bs(),Kl&&(t=Kl,e=Fl,Fl=Kl=null,cf(t),e)))for(t=0;t<e.length;t++)cf(e[t])}}function Yn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[gt]||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(o(231,t,typeof a));return a}var va=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kc=!1;if(va)try{var Gn={};Object.defineProperty(Gn,"passive",{get:function(){Kc=!0}}),window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch{Kc=!1}var Ba=null,Fc=null,es=null;function of(){if(es)return es;var e,t=Fc,a=t.length,l,i="value"in Ba?Ba.value:Ba.textContent,c=i.length;for(e=0;e<a&&t[e]===i[e];e++);var d=a-e;for(l=1;l<=d&&t[a-l]===i[c-l];l++);return es=i.slice(e,1<l?1-l:void 0)}function ts(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 as(){return!0}function uf(){return!1}function yt(e){function t(a,l,i,c,d){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(a=e[h],this[h]=a?a(c):c[h]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?as:uf,this.isPropagationStopped=uf,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=as)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=as)},persist:function(){},isPersistent:as}),t}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ls=yt(hl),Vn=b({},hl,{view:0,detail:0}),ix=yt(Vn),Jc,$c,Xn,ns=b({},Vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pc,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!==Xn&&(Xn&&e.type==="mousemove"?(Jc=e.screenX-Xn.screenX,$c=e.screenY-Xn.screenY):$c=Jc=0,Xn=e),Jc)},movementY:function(e){return"movementY"in e?e.movementY:$c}}),ff=yt(ns),sx=b({},ns,{dataTransfer:0}),cx=yt(sx),rx=b({},Vn,{relatedTarget:0}),Wc=yt(rx),ox=b({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),ux=yt(ox),fx=b({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dx=yt(fx),px=b({},hl,{data:0}),df=yt(px),mx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hx={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"},xx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xx[e])?!!t[e]:!1}function Pc(){return vx}var gx=b({},Vn,{key:function(e){if(e.key){var t=mx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pc,charCode:function(e){return e.type==="keypress"?ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yx=yt(gx),bx=b({},ns,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pf=yt(bx),Sx=b({},Vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pc}),jx=yt(Sx),wx=b({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),kx=yt(wx),Ex=b({},ns,{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}),Nx=yt(Ex),Ax=b({},hl,{newState:0,oldState:0}),Tx=yt(Ax),Rx=[9,13,27,32],Ic=va&&"CompositionEvent"in window,Qn=null;va&&"documentMode"in document&&(Qn=document.documentMode);var zx=va&&"TextEvent"in window&&!Qn,mf=va&&(!Ic||Qn&&8<Qn&&11>=Qn),hf=" ",xf=!1;function vf(e,t){switch(e){case"keyup":return Rx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jl=!1;function Ox(e,t){switch(e){case"compositionend":return gf(t);case"keypress":return t.which!==32?null:(xf=!0,hf);case"textInput":return e=t.data,e===hf&&xf?null:e;default:return null}}function _x(e,t){if(Jl)return e==="compositionend"||!Ic&&vf(e,t)?(e=of(),es=Fc=Ba=null,Jl=!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 mf&&t.locale!=="ko"?null:t.data;default:return null}}var Dx={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 yf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dx[e.type]:t==="textarea"}function bf(e,t,a,l){Kl?Fl?Fl.push(l):Fl=[l]:Kl=l,t=Ks(t,"onChange"),0<t.length&&(a=new ls("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Zn=null,Kn=null;function Cx(e){am(e,0)}function is(e){var t=Bn(e);if(ef(t))return e}function Sf(e,t){if(e==="change")return t}var jf=!1;if(va){var er;if(va){var tr="oninput"in document;if(!tr){var wf=document.createElement("div");wf.setAttribute("oninput","return;"),tr=typeof wf.oninput=="function"}er=tr}else er=!1;jf=er&&(!document.documentMode||9<document.documentMode)}function kf(){Zn&&(Zn.detachEvent("onpropertychange",Ef),Kn=Zn=null)}function Ef(e){if(e.propertyName==="value"&&is(Kn)){var t=[];bf(t,Kn,e,Qc(e)),rf(Cx,t)}}function Mx(e,t,a){e==="focusin"?(kf(),Zn=t,Kn=a,Zn.attachEvent("onpropertychange",Ef)):e==="focusout"&&kf()}function Ux(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return is(Kn)}function Lx(e,t){if(e==="click")return is(t)}function qx(e,t){if(e==="input"||e==="change")return is(t)}function Hx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rt=typeof Object.is=="function"?Object.is:Hx;function Fn(e,t){if(Rt(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 i=a[l];if(!dl.call(t,i)||!Rt(e[i],t[i]))return!1}return!0}function Nf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Af(e,t){var a=Nf(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=Nf(a)}}function Tf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pi(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=Pi(e.document)}return t}function ar(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 Bx=va&&"documentMode"in document&&11>=document.documentMode,$l=null,lr=null,Jn=null,nr=!1;function zf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nr||$l==null||$l!==Pi(l)||(l=$l,"selectionStart"in l&&ar(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}),Jn&&Fn(Jn,l)||(Jn=l,l=Ks(lr,"onSelect"),0<l.length&&(t=new ls("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=$l)))}function xl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Wl={animationend:xl("Animation","AnimationEnd"),animationiteration:xl("Animation","AnimationIteration"),animationstart:xl("Animation","AnimationStart"),transitionrun:xl("Transition","TransitionRun"),transitionstart:xl("Transition","TransitionStart"),transitioncancel:xl("Transition","TransitionCancel"),transitionend:xl("Transition","TransitionEnd")},ir={},Of={};va&&(Of=document.createElement("div").style,"AnimationEvent"in window||(delete Wl.animationend.animation,delete Wl.animationiteration.animation,delete Wl.animationstart.animation),"TransitionEvent"in window||delete Wl.transitionend.transition);function vl(e){if(ir[e])return ir[e];if(!Wl[e])return e;var t=Wl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Of)return ir[e]=t[a];return e}var _f=vl("animationend"),Df=vl("animationiteration"),Cf=vl("animationstart"),Yx=vl("transitionrun"),Gx=vl("transitionstart"),Vx=vl("transitioncancel"),Mf=vl("transitionend"),Uf=new Map,sr="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(" ");sr.push("scrollEnd");function Jt(e,t){Uf.set(e,t),ml(t,[e])}var ss=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qt=[],Pl=0,cr=0;function cs(){for(var e=Pl,t=cr=Pl=0;t<e;){var a=qt[t];qt[t++]=null;var l=qt[t];qt[t++]=null;var i=qt[t];qt[t++]=null;var c=qt[t];if(qt[t++]=null,l!==null&&i!==null){var d=l.pending;d===null?i.next=i:(i.next=d.next,d.next=i),l.pending=i}c!==0&&Lf(a,i,c)}}function rs(e,t,a,l){qt[Pl++]=e,qt[Pl++]=t,qt[Pl++]=a,qt[Pl++]=l,cr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function rr(e,t,a,l){return rs(e,t,a,l),os(e)}function gl(e,t){return rs(e,null,null,t),os(e)}function Lf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!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||(i=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,i&&t!==null&&(i=31-rt(a),e=c.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),c):null}function os(e){if(50<vi)throw vi=0,go=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Il={};function Xx(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 zt(e,t,a,l){return new Xx(e,t,a,l)}function or(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ga(e,t){var a=e.alternate;return a===null?(a=zt(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 qf(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 us(e,t,a,l,i,c){var d=0;if(l=e,typeof e=="function")or(e)&&(d=1);else if(typeof e=="string")d=Jv(e,a,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=zt(31,a,t,i),e.elementType=Ee,e.lanes=c,e;case z:return yl(a.children,i,c,t);case N:d=8,i|=24;break;case G:return e=zt(12,a,t,i|2),e.elementType=G,e.lanes=c,e;case ee:return e=zt(13,a,t,i),e.elementType=ee,e.lanes=c,e;case re:return e=zt(19,a,t,i),e.elementType=re,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case M:d=9;break e;case P:d=11;break e;case Y:d=14;break e;case ne:d=16,l=null;break e}d=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=zt(d,a,t,i),t.elementType=e,t.type=l,t.lanes=c,t}function yl(e,t,a,l){return e=zt(7,e,l,t),e.lanes=a,e}function ur(e,t,a){return e=zt(6,e,null,t),e.lanes=a,e}function Hf(e){var t=zt(18,null,null,0);return t.stateNode=e,t}function fr(e,t,a){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bf=new WeakMap;function Ht(e,t){if(typeof e=="object"&&e!==null){var a=Bf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:pa(t)},Bf.set(e,t),t)}return{value:e,source:t,stack:pa(t)}}var en=[],tn=0,fs=null,$n=0,Bt=[],Yt=0,Ya=null,la=1,na="";function ya(e,t){en[tn++]=$n,en[tn++]=fs,fs=e,$n=t}function Yf(e,t,a){Bt[Yt++]=la,Bt[Yt++]=na,Bt[Yt++]=Ya,Ya=e;var l=la;e=na;var i=32-rt(l)-1;l&=~(1<<i),a+=1;var c=32-rt(t)+i;if(30<c){var d=i-i%5;c=(l&(1<<d)-1).toString(32),l>>=d,i-=d,la=1<<32-rt(t)+i|a<<i|l,na=c+e}else la=1<<c|a<<i|l,na=e}function dr(e){e.return!==null&&(ya(e,1),Yf(e,1,0))}function pr(e){for(;e===fs;)fs=en[--tn],en[tn]=null,$n=en[--tn],en[tn]=null;for(;e===Ya;)Ya=Bt[--Yt],Bt[Yt]=null,na=Bt[--Yt],Bt[Yt]=null,la=Bt[--Yt],Bt[Yt]=null}function Gf(e,t){Bt[Yt++]=la,Bt[Yt++]=na,Bt[Yt++]=Ya,la=t.id,na=t.overflow,Ya=e}var ut=null,qe=null,ye=!1,Ga=null,Gt=!1,mr=Error(o(519));function Va(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wn(Ht(t,e)),mr}function Vf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[ot]=e,t[gt]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<yi.length;a++)he(yi[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),tf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),lf(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||sm(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=xa),t=!0):t=!1,t||Va(e,!0)}function Xf(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:ut=ut.return}}function an(e){if(e!==ut)return!1;if(!ye)return Xf(e),ye=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Do(e.type,e.memoizedProps)),a=!a),a&&qe&&Va(e),Xf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));qe=hm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));qe=hm(e)}else t===27?(t=qe,ll(e.type)?(e=qo,qo=null,qe=e):qe=t):qe=ut?Xt(e.stateNode.nextSibling):null;return!0}function bl(){qe=ut=null,ye=!1}function hr(){var e=Ga;return e!==null&&(wt===null?wt=e:wt.push.apply(wt,e),Ga=null),e}function Wn(e){Ga===null?Ga=[e]:Ga.push(e)}var xr=w(null),Sl=null,ba=null;function Xa(e,t,a){Z(xr,t._currentValue),t._currentValue=a}function Sa(e){e._currentValue=xr.current,q(xr)}function vr(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 gr(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var c=i.dependencies;if(c!==null){var d=i.child;c=c.firstContext;e:for(;c!==null;){var h=c;c=i;for(var S=0;S<t.length;S++)if(h.context===t[S]){c.lanes|=a,h=c.alternate,h!==null&&(h.lanes|=a),vr(c.return,a,e),l||(d=null);break e}c=h.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(o(341));d.lanes|=a,c=d.alternate,c!==null&&(c.lanes|=a),vr(d,a,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function ln(e,t,a,l){e=null;for(var i=t,c=!1;i!==null;){if(!c){if((i.flags&524288)!==0)c=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var h=i.type;Rt(i.pendingProps.value,d.value)||(e!==null?e.push(h):e=[h])}}else if(i===pe.current){if(d=i.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ki):e=[ki])}i=i.return}e!==null&&gr(t,e,a,l),t.flags|=262144}function ds(e){for(e=e.firstContext;e!==null;){if(!Rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jl(e){Sl=e,ba=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Qf(Sl,e)}function ps(e,t){return Sl===null&&jl(e),Qf(e,t)}function Qf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ba===null){if(e===null)throw Error(o(308));ba=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ba=ba.next=t;return a}var Qx=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()})}},Zx=n.unstable_scheduleCallback,Kx=n.unstable_NormalPriority,$e={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yr(){return{controller:new Qx,data:new Map,refCount:0}}function Pn(e){e.refCount--,e.refCount===0&&Zx(Kx,function(){e.controller.abort()})}var In=null,br=0,nn=0,sn=null;function Fx(e,t){if(In===null){var a=In=[];br=0,nn=ko(),sn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return br++,t.then(Zf,Zf),t}function Zf(){if(--br===0&&In!==null){sn!==null&&(sn.status="fulfilled");var e=In;In=null,nn=0,sn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jx(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var Kf=U.S;U.S=function(e,t){zp=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Fx(e,t),Kf!==null&&Kf(e,t)};var wl=w(null);function Sr(){var e=wl.current;return e!==null?e:De.pooledCache}function ms(e,t){t===null?Z(wl,wl.current):Z(wl,t.pool)}function Ff(){var e=Sr();return e===null?null:{parent:$e._currentValue,pool:e}}var cn=Error(o(460)),jr=Error(o(474)),hs=Error(o(542)),xs={then:function(){}};function Jf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $f(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(xa,xa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pf(e),e;default:if(typeof t.status=="string")t.then(xa,xa);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pf(e),e}throw El=t,cn}}function kl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(El=a,cn):a}}var El=null;function Wf(){if(El===null)throw Error(o(459));var e=El;return El=null,e}function Pf(e){if(e===cn||e===hs)throw Error(o(483))}var rn=null,ei=0;function vs(e){var t=ei;return ei+=1,rn===null&&(rn=[]),$f(rn,e,t)}function ti(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gs(e,t){throw t.$$typeof===_?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function If(e){function t(E,k){if(e){var A=E.deletions;A===null?(E.deletions=[k],E.flags|=16):A.push(k)}}function a(E,k){if(!e)return null;for(;k!==null;)t(E,k),k=k.sibling;return null}function l(E){for(var k=new Map;E!==null;)E.key!==null?k.set(E.key,E):k.set(E.index,E),E=E.sibling;return k}function i(E,k){return E=ga(E,k),E.index=0,E.sibling=null,E}function c(E,k,A){return E.index=A,e?(A=E.alternate,A!==null?(A=A.index,A<k?(E.flags|=67108866,k):A):(E.flags|=67108866,k)):(E.flags|=1048576,k)}function d(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function h(E,k,A,B){return k===null||k.tag!==6?(k=ur(A,E.mode,B),k.return=E,k):(k=i(k,A),k.return=E,k)}function S(E,k,A,B){var I=A.type;return I===z?L(E,k,A.props.children,B,A.key):k!==null&&(k.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ne&&kl(I)===k.type)?(k=i(k,A.props),ti(k,A),k.return=E,k):(k=us(A.type,A.key,A.props,null,E.mode,B),ti(k,A),k.return=E,k)}function R(E,k,A,B){return k===null||k.tag!==4||k.stateNode.containerInfo!==A.containerInfo||k.stateNode.implementation!==A.implementation?(k=fr(A,E.mode,B),k.return=E,k):(k=i(k,A.children||[]),k.return=E,k)}function L(E,k,A,B,I){return k===null||k.tag!==7?(k=yl(A,E.mode,B,I),k.return=E,k):(k=i(k,A),k.return=E,k)}function V(E,k,A){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=ur(""+k,E.mode,A),k.return=E,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case H:return A=us(k.type,k.key,k.props,null,E.mode,A),ti(A,k),A.return=E,A;case T:return k=fr(k,E.mode,A),k.return=E,k;case ne:return k=kl(k),V(E,k,A)}if(_e(k)||xe(k))return k=yl(k,E.mode,A,null),k.return=E,k;if(typeof k.then=="function")return V(E,vs(k),A);if(k.$$typeof===X)return V(E,ps(E,k),A);gs(E,k)}return null}function O(E,k,A,B){var I=k!==null?k.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return I!==null?null:h(E,k,""+A,B);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case H:return A.key===I?S(E,k,A,B):null;case T:return A.key===I?R(E,k,A,B):null;case ne:return A=kl(A),O(E,k,A,B)}if(_e(A)||xe(A))return I!==null?null:L(E,k,A,B,null);if(typeof A.then=="function")return O(E,k,vs(A),B);if(A.$$typeof===X)return O(E,k,ps(E,A),B);gs(E,A)}return null}function D(E,k,A,B,I){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return E=E.get(A)||null,h(k,E,""+B,I);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case H:return E=E.get(B.key===null?A:B.key)||null,S(k,E,B,I);case T:return E=E.get(B.key===null?A:B.key)||null,R(k,E,B,I);case ne:return B=kl(B),D(E,k,A,B,I)}if(_e(B)||xe(B))return E=E.get(A)||null,L(k,E,B,I,null);if(typeof B.then=="function")return D(E,k,A,vs(B),I);if(B.$$typeof===X)return D(E,k,A,ps(k,B),I);gs(k,B)}return null}function J(E,k,A,B){for(var I=null,Se=null,W=k,fe=k=0,ge=null;W!==null&&fe<A.length;fe++){W.index>fe?(ge=W,W=null):ge=W.sibling;var je=O(E,W,A[fe],B);if(je===null){W===null&&(W=ge);break}e&&W&&je.alternate===null&&t(E,W),k=c(je,k,fe),Se===null?I=je:Se.sibling=je,Se=je,W=ge}if(fe===A.length)return a(E,W),ye&&ya(E,fe),I;if(W===null){for(;fe<A.length;fe++)W=V(E,A[fe],B),W!==null&&(k=c(W,k,fe),Se===null?I=W:Se.sibling=W,Se=W);return ye&&ya(E,fe),I}for(W=l(W);fe<A.length;fe++)ge=D(W,E,fe,A[fe],B),ge!==null&&(e&&ge.alternate!==null&&W.delete(ge.key===null?fe:ge.key),k=c(ge,k,fe),Se===null?I=ge:Se.sibling=ge,Se=ge);return e&&W.forEach(function(rl){return t(E,rl)}),ye&&ya(E,fe),I}function le(E,k,A,B){if(A==null)throw Error(o(151));for(var I=null,Se=null,W=k,fe=k=0,ge=null,je=A.next();W!==null&&!je.done;fe++,je=A.next()){W.index>fe?(ge=W,W=null):ge=W.sibling;var rl=O(E,W,je.value,B);if(rl===null){W===null&&(W=ge);break}e&&W&&rl.alternate===null&&t(E,W),k=c(rl,k,fe),Se===null?I=rl:Se.sibling=rl,Se=rl,W=ge}if(je.done)return a(E,W),ye&&ya(E,fe),I;if(W===null){for(;!je.done;fe++,je=A.next())je=V(E,je.value,B),je!==null&&(k=c(je,k,fe),Se===null?I=je:Se.sibling=je,Se=je);return ye&&ya(E,fe),I}for(W=l(W);!je.done;fe++,je=A.next())je=D(W,E,fe,je.value,B),je!==null&&(e&&je.alternate!==null&&W.delete(je.key===null?fe:je.key),k=c(je,k,fe),Se===null?I=je:Se.sibling=je,Se=je);return e&&W.forEach(function(sg){return t(E,sg)}),ye&&ya(E,fe),I}function ze(E,k,A,B){if(typeof A=="object"&&A!==null&&A.type===z&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case H:e:{for(var I=A.key;k!==null;){if(k.key===I){if(I=A.type,I===z){if(k.tag===7){a(E,k.sibling),B=i(k,A.props.children),B.return=E,E=B;break e}}else if(k.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ne&&kl(I)===k.type){a(E,k.sibling),B=i(k,A.props),ti(B,A),B.return=E,E=B;break e}a(E,k);break}else t(E,k);k=k.sibling}A.type===z?(B=yl(A.props.children,E.mode,B,A.key),B.return=E,E=B):(B=us(A.type,A.key,A.props,null,E.mode,B),ti(B,A),B.return=E,E=B)}return d(E);case T:e:{for(I=A.key;k!==null;){if(k.key===I)if(k.tag===4&&k.stateNode.containerInfo===A.containerInfo&&k.stateNode.implementation===A.implementation){a(E,k.sibling),B=i(k,A.children||[]),B.return=E,E=B;break e}else{a(E,k);break}else t(E,k);k=k.sibling}B=fr(A,E.mode,B),B.return=E,E=B}return d(E);case ne:return A=kl(A),ze(E,k,A,B)}if(_e(A))return J(E,k,A,B);if(xe(A)){if(I=xe(A),typeof I!="function")throw Error(o(150));return A=I.call(A),le(E,k,A,B)}if(typeof A.then=="function")return ze(E,k,vs(A),B);if(A.$$typeof===X)return ze(E,k,ps(E,A),B);gs(E,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,k!==null&&k.tag===6?(a(E,k.sibling),B=i(k,A),B.return=E,E=B):(a(E,k),B=ur(A,E.mode,B),B.return=E,E=B),d(E)):a(E,k)}return function(E,k,A,B){try{ei=0;var I=ze(E,k,A,B);return rn=null,I}catch(W){if(W===cn||W===hs)throw W;var Se=zt(29,W,null,E.mode);return Se.lanes=B,Se.return=E,Se}}}var Nl=If(!0),ed=If(!1),Qa=!1;function wr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kr(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 Za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ke&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=os(e),Lf(e,null,a),t}return rs(e,l,t,a),os(e)}function ai(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,Xu(e,a)}}function Er(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?i=c=d:c=c.next=d,a=a.next}while(a!==null);c===null?i=c=t:c=c.next=t}else i=c=t;a={baseState:l.baseState,firstBaseUpdate:i,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 Nr=!1;function li(){if(Nr){var e=sn;if(e!==null)throw e}}function ni(e,t,a,l){Nr=!1;var i=e.updateQueue;Qa=!1;var c=i.firstBaseUpdate,d=i.lastBaseUpdate,h=i.shared.pending;if(h!==null){i.shared.pending=null;var S=h,R=S.next;S.next=null,d===null?c=R:d.next=R,d=S;var L=e.alternate;L!==null&&(L=L.updateQueue,h=L.lastBaseUpdate,h!==d&&(h===null?L.firstBaseUpdate=R:h.next=R,L.lastBaseUpdate=S))}if(c!==null){var V=i.baseState;d=0,L=R=S=null,h=c;do{var O=h.lane&-536870913,D=O!==h.lane;if(D?(ve&O)===O:(l&O)===O){O!==0&&O===nn&&(Nr=!0),L!==null&&(L=L.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var J=e,le=h;O=t;var ze=a;switch(le.tag){case 1:if(J=le.payload,typeof J=="function"){V=J.call(ze,V,O);break e}V=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=le.payload,O=typeof J=="function"?J.call(ze,V,O):J,O==null)break e;V=b({},V,O);break e;case 2:Qa=!0}}O=h.callback,O!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[O]:D.push(O))}else D={lane:O,tag:h.tag,payload:h.payload,callback:h.callback,next:null},L===null?(R=L=D,S=V):L=L.next=D,d|=O;if(h=h.next,h===null){if(h=i.shared.pending,h===null)break;D=h,h=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);L===null&&(S=V),i.baseState=S,i.firstBaseUpdate=R,i.lastBaseUpdate=L,c===null&&(i.shared.lanes=0),Pa|=d,e.lanes=d,e.memoizedState=V}}function td(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ad(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)td(a[e],t)}var on=w(null),ys=w(0);function ld(e,t){e=za,Z(ys,e),Z(on,t),za=e|t.baseLanes}function Ar(){Z(ys,za),Z(on,on.current)}function Tr(){za=ys.current,q(on),q(ys)}var Ot=w(null),Vt=null;function Fa(e){var t=e.alternate;Z(Ke,Ke.current&1),Z(Ot,e),Vt===null&&(t===null||on.current!==null||t.memoizedState!==null)&&(Vt=e)}function Rr(e){Z(Ke,Ke.current),Z(Ot,e),Vt===null&&(Vt=e)}function nd(e){e.tag===22?(Z(Ke,Ke.current),Z(Ot,e),Vt===null&&(Vt=e)):Ja()}function Ja(){Z(Ke,Ke.current),Z(Ot,Ot.current)}function _t(e){q(Ot),Vt===e&&(Vt=null),q(Ke)}var Ke=w(0);function bs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Uo(a)||Lo(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ja=0,oe=null,Te=null,We=null,Ss=!1,un=!1,Al=!1,js=0,ii=0,fn=null,$x=0;function Qe(){throw Error(o(321))}function zr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Rt(e[a],t[a]))return!1;return!0}function Or(e,t,a,l,i,c){return ja=c,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Yd:Zr,Al=!1,c=a(l,i),Al=!1,un&&(c=sd(t,a,l,i)),id(e),c}function id(e){U.H=ri;var t=Te!==null&&Te.next!==null;if(ja=0,We=Te=oe=null,Ss=!1,ii=0,fn=null,t)throw Error(o(300));e===null||Pe||(e=e.dependencies,e!==null&&ds(e)&&(Pe=!0))}function sd(e,t,a,l){oe=e;var i=0;do{if(un&&(fn=null),ii=0,un=!1,25<=i)throw Error(o(301));if(i+=1,We=Te=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Gd,c=t(a,l)}while(un);return c}function Wx(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?si(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(oe.flags|=1024),t}function _r(){var e=js!==0;return js=0,e}function Dr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Cr(e){if(Ss){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ss=!1}ja=0,We=Te=oe=null,un=!1,ii=js=0,fn=null}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?oe.memoizedState=We=e:We=We.next=e,We}function Fe(){if(Te===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=We===null?oe.memoizedState:We.next;if(t!==null)We=t,Te=e;else{if(e===null)throw oe.alternate===null?Error(o(467)):Error(o(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},We===null?oe.memoizedState=We=e:We=We.next=e}return We}function ws(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function si(e){var t=ii;return ii+=1,fn===null&&(fn=[]),e=$f(fn,e,t),t=oe,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Yd:Zr),e}function ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return si(e);if(e.$$typeof===X)return ft(e)}throw Error(o(438,String(e)))}function Mr(e){var t=null,a=oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=oe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ws(),oe.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]=Ye;return t.index++,a}function wa(e,t){return typeof t=="function"?t(e):t}function Es(e){var t=Fe();return Ur(t,Te,e)}function Ur(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var i=e.baseQueue,c=l.pending;if(c!==null){if(i!==null){var d=i.next;i.next=c.next,c.next=d}t.baseQueue=i=c,l.pending=null}if(c=e.baseState,i===null)e.memoizedState=c;else{t=i.next;var h=d=null,S=null,R=t,L=!1;do{var V=R.lane&-536870913;if(V!==R.lane?(ve&V)===V:(ja&V)===V){var O=R.revertLane;if(O===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),V===nn&&(L=!0);else if((ja&O)===O){R=R.next,O===nn&&(L=!0);continue}else V={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},S===null?(h=S=V,d=c):S=S.next=V,oe.lanes|=O,Pa|=O;V=R.action,Al&&a(c,V),c=R.hasEagerState?R.eagerState:a(c,V)}else O={lane:V,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},S===null?(h=S=O,d=c):S=S.next=O,oe.lanes|=V,Pa|=V;R=R.next}while(R!==null&&R!==t);if(S===null?d=c:S.next=h,!Rt(c,e.memoizedState)&&(Pe=!0,L&&(a=sn,a!==null)))throw a;e.memoizedState=c,e.baseState=d,e.baseQueue=S,l.lastRenderedState=c}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Lr(e){var t=Fe(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,c=t.memoizedState;if(i!==null){a.pending=null;var d=i=i.next;do c=e(c,d.action),d=d.next;while(d!==i);Rt(c,t.memoizedState)||(Pe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function cd(e,t,a){var l=oe,i=Fe(),c=ye;if(c){if(a===void 0)throw Error(o(407));a=a()}else a=t();var d=!Rt((Te||i).memoizedState,a);if(d&&(i.memoizedState=a,Pe=!0),i=i.queue,Br(ud.bind(null,l,i,e),[e]),i.getSnapshot!==t||d||We!==null&&We.memoizedState.tag&1){if(l.flags|=2048,dn(9,{destroy:void 0},od.bind(null,l,i,a,t),null),De===null)throw Error(o(349));c||(ja&127)!==0||rd(l,t,a)}return a}function rd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=oe.updateQueue,t===null?(t=ws(),oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function od(e,t,a,l){t.value=a,t.getSnapshot=l,fd(t)&&dd(e)}function ud(e,t,a){return a(function(){fd(t)&&dd(e)})}function fd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Rt(e,a)}catch{return!0}}function dd(e){var t=gl(e,2);t!==null&&kt(t,e,2)}function qr(e){var t=vt();if(typeof e=="function"){var a=e;if(e=a(),Al){Tt(!0);try{a()}finally{Tt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t}function pd(e,t,a,l){return e.baseState=a,Ur(e,Te,typeof l=="function"?l:wa)}function Px(e,t,a,l,i){if(Ts(e))throw Error(o(485));if(e=t.action,e!==null){var c={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};U.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,md(t,c)):(c.next=a.next,t.pending=a.next=c)}}function md(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var c=U.T,d={};U.T=d;try{var h=a(i,l),S=U.S;S!==null&&S(d,h),hd(e,t,h)}catch(R){Hr(e,t,R)}finally{c!==null&&d.types!==null&&(c.types=d.types),U.T=c}}else try{c=a(i,l),hd(e,t,c)}catch(R){Hr(e,t,R)}}function hd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){xd(e,t,l)},function(l){return Hr(e,t,l)}):xd(e,t,a)}function xd(e,t,a){t.status="fulfilled",t.value=a,vd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,md(e,a)))}function Hr(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,vd(t),t=t.next;while(t!==l)}e.action=null}function vd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gd(e,t){return t}function yd(e,t){if(ye){var a=De.formState;if(a!==null){e:{var l=oe;if(ye){if(qe){t:{for(var i=qe,c=Gt;i.nodeType!==8;){if(!c){i=null;break t}if(i=Xt(i.nextSibling),i===null){i=null;break t}}c=i.data,i=c==="F!"||c==="F"?i:null}if(i){qe=Xt(i.nextSibling),l=i.data==="F!";break e}}Va(l)}l=!1}l&&(t=a[0])}}return a=vt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gd,lastRenderedState:t},a.queue=l,a=qd.bind(null,oe,l),l.dispatch=a,l=qr(!1),c=Qr.bind(null,oe,!1,l.queue),l=vt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=Px.bind(null,oe,i,c,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function bd(e){var t=Fe();return Sd(t,Te,e)}function Sd(e,t,a){if(t=Ur(e,t,gd)[0],e=Es(wa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=si(t)}catch(d){throw d===cn?hs:d}else l=t;t=Fe();var i=t.queue,c=i.dispatch;return a!==t.memoizedState&&(oe.flags|=2048,dn(9,{destroy:void 0},Ix.bind(null,i,a),null)),[l,c,e]}function Ix(e,t){e.action=t}function jd(e){var t=Fe(),a=Te;if(a!==null)return Sd(t,a,e);Fe(),t=t.memoizedState,a=Fe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function dn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=oe.updateQueue,t===null&&(t=ws(),oe.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 wd(){return Fe().memoizedState}function Ns(e,t,a,l){var i=vt();oe.flags|=e,i.memoizedState=dn(1|t,{destroy:void 0},a,l===void 0?null:l)}function As(e,t,a,l){var i=Fe();l=l===void 0?null:l;var c=i.memoizedState.inst;Te!==null&&l!==null&&zr(l,Te.memoizedState.deps)?i.memoizedState=dn(t,c,a,l):(oe.flags|=e,i.memoizedState=dn(1|t,c,a,l))}function kd(e,t){Ns(8390656,8,e,t)}function Br(e,t){As(2048,8,e,t)}function ev(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=ws(),oe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ed(e){var t=Fe().memoizedState;return ev({ref:t,nextImpl:e}),function(){if((ke&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Nd(e,t){return As(4,2,e,t)}function Ad(e,t){return As(4,4,e,t)}function Td(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 Rd(e,t,a){a=a!=null?a.concat([e]):null,As(4,4,Td.bind(null,t,e),a)}function Yr(){}function zd(e,t){var a=Fe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&zr(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Od(e,t){var a=Fe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&zr(t,l[1]))return l[0];if(l=e(),Al){Tt(!0);try{e()}finally{Tt(!1)}}return a.memoizedState=[l,t],l}function Gr(e,t,a){return a===void 0||(ja&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=_p(),oe.lanes|=e,Pa|=e,a)}function _d(e,t,a,l){return Rt(a,t)?a:on.current!==null?(e=Gr(e,a,l),Rt(e,t)||(Pe=!0),e):(ja&42)===0||(ja&1073741824)!==0&&(ve&261930)===0?(Pe=!0,e.memoizedState=a):(e=_p(),oe.lanes|=e,Pa|=e,t)}function Dd(e,t,a,l,i){var c=Q.p;Q.p=c!==0&&8>c?c:8;var d=U.T,h={};U.T=h,Qr(e,!1,t,a);try{var S=i(),R=U.S;if(R!==null&&R(h,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var L=Jx(S,l);ci(e,t,L,Mt(e))}else ci(e,t,l,Mt(e))}catch(V){ci(e,t,{then:function(){},status:"rejected",reason:V},Mt())}finally{Q.p=c,d!==null&&h.types!==null&&(d.types=h.types),U.T=d}}function tv(){}function Vr(e,t,a,l){if(e.tag!==5)throw Error(o(476));var i=Cd(e).queue;Dd(e,i,t,$,a===null?tv:function(){return Md(e),a(l)})}function Cd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:$},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Md(e){var t=Cd(e);t.next===null&&(t=e.alternate.memoizedState),ci(e,t.next.queue,{},Mt())}function Xr(){return ft(ki)}function Ud(){return Fe().memoizedState}function Ld(){return Fe().memoizedState}function av(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Mt();e=Za(a);var l=Ka(t,e,a);l!==null&&(kt(l,t,a),ai(l,t,a)),t={cache:yr()},e.payload=t;return}t=t.return}}function lv(e,t,a){var l=Mt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ts(e)?Hd(t,a):(a=rr(e,t,a,l),a!==null&&(kt(a,e,l),Bd(a,t,l)))}function qd(e,t,a){var l=Mt();ci(e,t,a,l)}function ci(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ts(e))Hd(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var d=t.lastRenderedState,h=c(d,a);if(i.hasEagerState=!0,i.eagerState=h,Rt(h,d))return rs(e,t,i,0),De===null&&cs(),!1}catch{}if(a=rr(e,t,i,l),a!==null)return kt(a,e,l),Bd(a,t,l),!0}return!1}function Qr(e,t,a,l){if(l={lane:2,revertLane:ko(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ts(e)){if(t)throw Error(o(479))}else t=rr(e,a,l,2),t!==null&&kt(t,e,2)}function Ts(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Hd(e,t){un=Ss=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Bd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Xu(e,a)}}var ri={readContext:ft,use:ks,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ri.useEffectEvent=Qe;var Yd={readContext:ft,use:ks,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:kd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ns(4194308,4,Td.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){Ns(4,2,e,t)},useMemo:function(e,t){var a=vt();t=t===void 0?null:t;var l=e();if(Al){Tt(!0);try{e()}finally{Tt(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=vt();if(a!==void 0){var i=a(t);if(Al){Tt(!0);try{a(t)}finally{Tt(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=lv.bind(null,oe,e),[l.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=qr(e);var t=e.queue,a=qd.bind(null,oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Yr,useDeferredValue:function(e,t){var a=vt();return Gr(a,e,t)},useTransition:function(){var e=qr(!1);return e=Dd.bind(null,oe,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=oe,i=vt();if(ye){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),De===null)throw Error(o(349));(ve&127)!==0||rd(l,t,a)}i.memoizedState=a;var c={value:a,getSnapshot:t};return i.queue=c,kd(ud.bind(null,l,c,e),[e]),l.flags|=2048,dn(9,{destroy:void 0},od.bind(null,l,c,a,t),null),a},useId:function(){var e=vt(),t=De.identifierPrefix;if(ye){var a=na,l=la;a=(l&~(1<<32-rt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=js++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=$x++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xr,useFormState:yd,useActionState:yd,useOptimistic:function(e){var t=vt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Qr.bind(null,oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:Mr,useCacheRefresh:function(){return vt().memoizedState=av.bind(null,oe)},useEffectEvent:function(e){var t=vt(),a={impl:e};return t.memoizedState=a,function(){if((ke&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Zr={readContext:ft,use:ks,useCallback:zd,useContext:ft,useEffect:Br,useImperativeHandle:Rd,useInsertionEffect:Nd,useLayoutEffect:Ad,useMemo:Od,useReducer:Es,useRef:wd,useState:function(){return Es(wa)},useDebugValue:Yr,useDeferredValue:function(e,t){var a=Fe();return _d(a,Te.memoizedState,e,t)},useTransition:function(){var e=Es(wa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:cd,useId:Ud,useHostTransitionStatus:Xr,useFormState:bd,useActionState:bd,useOptimistic:function(e,t){var a=Fe();return pd(a,Te,e,t)},useMemoCache:Mr,useCacheRefresh:Ld};Zr.useEffectEvent=Ed;var Gd={readContext:ft,use:ks,useCallback:zd,useContext:ft,useEffect:Br,useImperativeHandle:Rd,useInsertionEffect:Nd,useLayoutEffect:Ad,useMemo:Od,useReducer:Lr,useRef:wd,useState:function(){return Lr(wa)},useDebugValue:Yr,useDeferredValue:function(e,t){var a=Fe();return Te===null?Gr(a,e,t):_d(a,Te.memoizedState,e,t)},useTransition:function(){var e=Lr(wa)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:cd,useId:Ud,useHostTransitionStatus:Xr,useFormState:jd,useActionState:jd,useOptimistic:function(e,t){var a=Fe();return Te!==null?pd(a,Te,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Mr,useCacheRefresh:Ld};Gd.useEffectEvent=Ed;function Kr(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 Fr={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Mt(),i=Za(l);i.payload=t,a!=null&&(i.callback=a),t=Ka(e,i,l),t!==null&&(kt(t,e,l),ai(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Mt(),i=Za(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Ka(e,i,l),t!==null&&(kt(t,e,l),ai(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Mt(),l=Za(a);l.tag=2,t!=null&&(l.callback=t),t=Ka(e,l,a),t!==null&&(kt(t,e,a),ai(t,e,a))}};function Vd(e,t,a,l,i,c,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,d):t.prototype&&t.prototype.isPureReactComponent?!Fn(a,l)||!Fn(i,c):!0}function Xd(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&&Fr.enqueueReplaceState(t,t.state,null)}function Tl(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 i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Qd(e){ss(e)}function Zd(e){console.error(e)}function Kd(e){ss(e)}function Rs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Fd(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Jr(e,t,a){return a=Za(a),a.tag=3,a.payload={element:null},a.callback=function(){Rs(e,t)},a}function Jd(e){return e=Za(e),e.tag=3,e}function $d(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var c=l.value;e.payload=function(){return i(c)},e.callback=function(){Fd(t,a,l)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Fd(t,a,l),typeof i!="function"&&(Ia===null?Ia=new Set([this]):Ia.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function nv(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&ln(t,a,i,!0),a=Ot.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?Ys():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===xs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),So(e,l,i)),!1;case 22:return a.flags|=65536,l===xs?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)),So(e,l,i)),!1}throw Error(o(435,a.tag))}return So(e,l,i),Ys(),!1}if(ye)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==mr&&(e=Error(o(422),{cause:l}),Wn(Ht(e,a)))):(l!==mr&&(t=Error(o(423),{cause:l}),Wn(Ht(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Ht(l,a),i=Jr(e.stateNode,l,i),Er(e,i),Ze!==4&&(Ze=2)),!1;var c=Error(o(520),{cause:l});if(c=Ht(c,a),xi===null?xi=[c]:xi.push(c),Ze!==4&&(Ze=2),t===null)return!0;l=Ht(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Jr(a.stateNode,l,e),Er(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"&&(Ia===null||!Ia.has(c))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Jd(i),$d(i,e,a,l),Er(a,i),!1}a=a.return}while(a!==null);return!1}var $r=Error(o(461)),Pe=!1;function dt(e,t,a,l){t.child=e===null?ed(t,null,a,l):Nl(t,e.child,a,l)}function Wd(e,t,a,l,i){a=a.render;var c=t.ref;if("ref"in l){var d={};for(var h in l)h!=="ref"&&(d[h]=l[h])}else d=l;return jl(t),l=Or(e,t,a,d,c,i),h=_r(),e!==null&&!Pe?(Dr(e,t,i),ka(e,t,i)):(ye&&h&&dr(t),t.flags|=1,dt(e,t,l,i),t.child)}function Pd(e,t,a,l,i){if(e===null){var c=a.type;return typeof c=="function"&&!or(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Id(e,t,c,l,i)):(e=us(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!no(e,i)){var d=c.memoizedProps;if(a=a.compare,a=a!==null?a:Fn,a(d,l)&&e.ref===t.ref)return ka(e,t,i)}return t.flags|=1,e=ga(c,l),e.ref=t.ref,e.return=t,t.child=e}function Id(e,t,a,l,i){if(e!==null){var c=e.memoizedProps;if(Fn(c,l)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=l=c,no(e,i))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,ka(e,t,i)}return Wr(e,t,a,l,i)}function ep(e,t,a,l){var i=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~c}else l=0,t.child=null;return tp(e,t,c,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ms(t,c!==null?c.cachePool:null),c!==null?ld(t,c):Ar(),nd(t);else return l=t.lanes=536870912,tp(e,t,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(ms(t,c.cachePool),ld(t,c),Ja(),t.memoizedState=null):(e!==null&&ms(t,null),Ar(),Ja());return dt(e,t,i,a),t.child}function oi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tp(e,t,a,l,i){var c=Sr();return c=c===null?null:{parent:$e._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&ms(t,null),Ar(),nd(t),e!==null&&ln(e,t,l,!0),t.childLanes=i,null}function zs(e,t){return t=_s({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ap(e,t,a){return Nl(t,e.child,null,a),e=zs(t,t.pendingProps),e.flags|=2,_t(t),t.memoizedState=null,e}function iv(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ye){if(l.mode==="hidden")return e=zs(t,l),t.lanes=536870912,oi(null,e);if(Rr(t),(e=qe)?(e=mm(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ya!==null?{id:la,overflow:na}:null,retryLane:536870912,hydrationErrors:null},a=Hf(e),a.return=t,t.child=a,ut=t,qe=null)):e=null,e===null)throw Va(t);return t.lanes=536870912,null}return zs(t,l)}var c=e.memoizedState;if(c!==null){var d=c.dehydrated;if(Rr(t),i)if(t.flags&256)t.flags&=-257,t=ap(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Pe||ln(e,t,a,!1),i=(a&e.childLanes)!==0,Pe||i){if(l=De,l!==null&&(d=Qu(l,a),d!==0&&d!==c.retryLane))throw c.retryLane=d,gl(e,d),kt(l,e,d),$r;Ys(),t=ap(e,t,a)}else e=c.treeContext,qe=Xt(d.nextSibling),ut=t,ye=!0,Ga=null,Gt=!1,e!==null&&Gf(t,e),t=zs(t,l),t.flags|=4096;return t}return e=ga(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Os(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(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Wr(e,t,a,l,i){return jl(t),a=Or(e,t,a,l,void 0,i),l=_r(),e!==null&&!Pe?(Dr(e,t,i),ka(e,t,i)):(ye&&l&&dr(t),t.flags|=1,dt(e,t,a,i),t.child)}function lp(e,t,a,l,i,c){return jl(t),t.updateQueue=null,a=sd(t,l,a,i),id(e),l=_r(),e!==null&&!Pe?(Dr(e,t,c),ka(e,t,c)):(ye&&l&&dr(t),t.flags|=1,dt(e,t,a,c),t.child)}function np(e,t,a,l,i){if(jl(t),t.stateNode===null){var c=Il,d=a.contextType;typeof d=="object"&&d!==null&&(c=ft(d)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Fr,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},wr(t),d=a.contextType,c.context=typeof d=="object"&&d!==null?ft(d):Il,c.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Kr(t,a,d,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&Fr.enqueueReplaceState(c,c.state,null),ni(t,l,c,i),li(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var h=t.memoizedProps,S=Tl(a,h);c.props=S;var R=c.context,L=a.contextType;d=Il,typeof L=="object"&&L!==null&&(d=ft(L));var V=a.getDerivedStateFromProps;L=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h||R!==d)&&Xd(t,c,l,d),Qa=!1;var O=t.memoizedState;c.state=O,ni(t,l,c,i),li(),R=t.memoizedState,h||O!==R||Qa?(typeof V=="function"&&(Kr(t,a,V,l),R=t.memoizedState),(S=Qa||Vd(t,a,S,l,O,R,d))?(L||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=R),c.props=l,c.state=R,c.context=d,l=S):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,kr(e,t),d=t.memoizedProps,L=Tl(a,d),c.props=L,V=t.pendingProps,O=c.context,R=a.contextType,S=Il,typeof R=="object"&&R!==null&&(S=ft(R)),h=a.getDerivedStateFromProps,(R=typeof h=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==V||O!==S)&&Xd(t,c,l,S),Qa=!1,O=t.memoizedState,c.state=O,ni(t,l,c,i),li();var D=t.memoizedState;d!==V||O!==D||Qa||e!==null&&e.dependencies!==null&&ds(e.dependencies)?(typeof h=="function"&&(Kr(t,a,h,l),D=t.memoizedState),(L=Qa||Vd(t,a,L,l,O,D,S)||e!==null&&e.dependencies!==null&&ds(e.dependencies))?(R||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,D,S),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,D,S)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=D),c.props=l,c.state=D,c.context=S,l=L):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Os(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=Nl(t,e.child,null,i),t.child=Nl(t,null,a,i)):dt(e,t,a,i),t.memoizedState=c.state,e=t.child):e=ka(e,t,i),e}function ip(e,t,a,l){return bl(),t.flags|=256,dt(e,t,a,l),t.child}var Pr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ir(e){return{baseLanes:e,cachePool:Ff()}}function eo(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ct),e}function sp(e,t,a){var l=t.pendingProps,i=!1,c=(t.flags&128)!==0,d;if((d=c)||(d=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ye){if(i?Fa(t):Ja(),(e=qe)?(e=mm(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ya!==null?{id:la,overflow:na}:null,retryLane:536870912,hydrationErrors:null},a=Hf(e),a.return=t,t.child=a,ut=t,qe=null)):e=null,e===null)throw Va(t);return Lo(e)?t.lanes=32:t.lanes=536870912,null}var h=l.children;return l=l.fallback,i?(Ja(),i=t.mode,h=_s({mode:"hidden",children:h},i),l=yl(l,i,a,null),h.return=t,l.return=t,h.sibling=l,t.child=h,l=t.child,l.memoizedState=Ir(a),l.childLanes=eo(e,d,a),t.memoizedState=Pr,oi(null,l)):(Fa(t),to(t,h))}var S=e.memoizedState;if(S!==null&&(h=S.dehydrated,h!==null)){if(c)t.flags&256?(Fa(t),t.flags&=-257,t=ao(e,t,a)):t.memoizedState!==null?(Ja(),t.child=e.child,t.flags|=128,t=null):(Ja(),h=l.fallback,i=t.mode,l=_s({mode:"visible",children:l.children},i),h=yl(h,i,a,null),h.flags|=2,l.return=t,h.return=t,l.sibling=h,t.child=l,Nl(t,e.child,null,a),l=t.child,l.memoizedState=Ir(a),l.childLanes=eo(e,d,a),t.memoizedState=Pr,t=oi(null,l));else if(Fa(t),Lo(h)){if(d=h.nextSibling&&h.nextSibling.dataset,d)var R=d.dgst;d=R,l=Error(o(419)),l.stack="",l.digest=d,Wn({value:l,source:null,stack:null}),t=ao(e,t,a)}else if(Pe||ln(e,t,a,!1),d=(a&e.childLanes)!==0,Pe||d){if(d=De,d!==null&&(l=Qu(d,a),l!==0&&l!==S.retryLane))throw S.retryLane=l,gl(e,l),kt(d,e,l),$r;Uo(h)||Ys(),t=ao(e,t,a)}else Uo(h)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,qe=Xt(h.nextSibling),ut=t,ye=!0,Ga=null,Gt=!1,e!==null&&Gf(t,e),t=to(t,l.children),t.flags|=4096);return t}return i?(Ja(),h=l.fallback,i=t.mode,S=e.child,R=S.sibling,l=ga(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,R!==null?h=ga(R,h):(h=yl(h,i,a,null),h.flags|=2),h.return=t,l.return=t,l.sibling=h,t.child=l,oi(null,l),l=t.child,h=e.child.memoizedState,h===null?h=Ir(a):(i=h.cachePool,i!==null?(S=$e._currentValue,i=i.parent!==S?{parent:S,pool:S}:i):i=Ff(),h={baseLanes:h.baseLanes|a,cachePool:i}),l.memoizedState=h,l.childLanes=eo(e,d,a),t.memoizedState=Pr,oi(e.child,l)):(Fa(t),a=e.child,e=a.sibling,a=ga(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function to(e,t){return t=_s({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _s(e,t){return e=zt(22,e,null,t),e.lanes=0,e}function ao(e,t,a){return Nl(t,e.child,null,a),e=to(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cp(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),vr(e.return,t,a)}function lo(e,t,a,l,i,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=i,d.treeForkCount=c)}function rp(e,t,a){var l=t.pendingProps,i=l.revealOrder,c=l.tail;l=l.children;var d=Ke.current,h=(d&2)!==0;if(h?(d=d&1|2,t.flags|=128):d&=1,Z(Ke,d),dt(e,t,l,a),l=ye?$n:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cp(e,a,t);else if(e.tag===19)cp(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}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&bs(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),lo(t,!1,i,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&bs(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}lo(t,!0,a,null,c,l);break;case"together":lo(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ka(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Pa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ln(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ga(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ga(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function no(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ds(e)))}function sv(e,t,a){switch(t.tag){case 3:nt(t,t.stateNode.containerInfo),Xa(t,$e,e.memoizedState.cache),bl();break;case 27:case 5:Ma(t);break;case 4:nt(t,t.stateNode.containerInfo);break;case 10:Xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Rr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Fa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?sp(e,t,a):(Fa(t),e=ka(e,t,a),e!==null?e.sibling:null);Fa(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(ln(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return rp(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Z(Ke,Ke.current),l)break;return null;case 22:return t.lanes=0,ep(e,t,a,t.pendingProps);case 24:Xa(t,$e,e.memoizedState.cache)}return ka(e,t,a)}function op(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!no(e,a)&&(t.flags&128)===0)return Pe=!1,sv(e,t,a);Pe=(e.flags&131072)!==0}else Pe=!1,ye&&(t.flags&1048576)!==0&&Yf(t,$n,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=kl(t.elementType),t.type=e,typeof e=="function")or(e)?(l=Tl(e,l),t.tag=1,t=np(null,t,e,l,a)):(t.tag=0,t=Wr(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===P){t.tag=11,t=Wd(null,t,e,l,a);break e}else if(i===Y){t.tag=14,t=Pd(null,t,e,l,a);break e}}throw t=be(e)||e,Error(o(306,t,""))}}return t;case 0:return Wr(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=Tl(l,t.pendingProps),np(e,t,l,i,a);case 3:e:{if(nt(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var c=t.memoizedState;i=c.element,kr(e,t),ni(t,l,null,a);var d=t.memoizedState;if(l=d.cache,Xa(t,$e,l),l!==c.cache&&gr(t,[$e],a,!0),li(),l=d.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=ip(e,t,l,a);break e}else if(l!==i){i=Ht(Error(o(424)),t),Wn(i),t=ip(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,qe=Xt(e.firstChild),ut=t,ye=!0,Ga=null,Gt=!0,a=ed(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(bl(),l===i){t=ka(e,t,a);break e}dt(e,t,l,a)}t=t.child}return t;case 26:return Os(e,t),e===null?(a=bm(t.type,null,t.pendingProps,null))?t.memoizedState=a:ye||(a=t.type,e=t.pendingProps,l=Fs(de.current).createElement(a),l[ot]=t,l[gt]=e,pt(l,a,e),it(l),t.stateNode=l):t.memoizedState=bm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ma(t),e===null&&ye&&(l=t.stateNode=vm(t.type,t.pendingProps,de.current),ut=t,Gt=!0,i=qe,ll(t.type)?(qo=i,qe=Xt(l.firstChild)):qe=i),dt(e,t,t.pendingProps.children,a),Os(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ye&&((i=l=qe)&&(l=Uv(l,t.type,t.pendingProps,Gt),l!==null?(t.stateNode=l,ut=t,qe=Xt(l.firstChild),Gt=!1,i=!0):i=!1),i||Va(t)),Ma(t),i=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,l=c.children,Do(i,c)?l=null:d!==null&&Do(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=Or(e,t,Wx,null,null,a),ki._currentValue=i),Os(e,t),dt(e,t,l,a),t.child;case 6:return e===null&&ye&&((e=a=qe)&&(a=Lv(a,t.pendingProps,Gt),a!==null?(t.stateNode=a,ut=t,qe=null,e=!0):e=!1),e||Va(t)),null;case 13:return sp(e,t,a);case 4:return nt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Nl(t,null,l,a):dt(e,t,l,a),t.child;case 11:return Wd(e,t,t.type,t.pendingProps,a);case 7:return dt(e,t,t.pendingProps,a),t.child;case 8:return dt(e,t,t.pendingProps.children,a),t.child;case 12:return dt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Xa(t,t.type,l.value),dt(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,jl(t),i=ft(i),l=l(i),t.flags|=1,dt(e,t,l,a),t.child;case 14:return Pd(e,t,t.type,t.pendingProps,a);case 15:return Id(e,t,t.type,t.pendingProps,a);case 19:return rp(e,t,a);case 31:return iv(e,t,a);case 22:return ep(e,t,a,t.pendingProps);case 24:return jl(t),l=ft($e),e===null?(i=Sr(),i===null&&(i=De,c=yr(),i.pooledCache=c,c.refCount++,c!==null&&(i.pooledCacheLanes|=a),i=c),t.memoizedState={parent:l,cache:i},wr(t),Xa(t,$e,i)):((e.lanes&a)!==0&&(kr(e,t),ni(t,null,null,a),li()),i=e.memoizedState,c=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Xa(t,$e,l)):(l=c.cache,Xa(t,$e,l),l!==i.cache&&gr(t,[$e],a,!0))),dt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Ea(e){e.flags|=4}function io(e,t,a,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Up())e.flags|=8192;else throw El=xs,jr}else e.flags&=-16777217}function up(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Em(t))if(Up())e.flags|=8192;else throw El=xs,jr}function Ds(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Gu():536870912,e.lanes|=t,xn|=t)}function ui(e,t){if(!ye)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 He(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function cv(e,t,a){var l=t.pendingProps;switch(pr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Sa($e),Ge(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(an(t)?Ea(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hr())),He(t),null;case 26:var i=t.type,c=t.memoizedState;return e===null?(Ea(t),c!==null?(He(t),up(t,c)):(He(t),io(t,i,null,l,a))):c?c!==e.memoizedState?(Ea(t),He(t),up(t,c)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Ea(t),He(t),io(t,i,e,l,a)),null;case 27:if(fa(t),a=de.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ea(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return He(t),null}e=F.current,an(t)?Vf(t):(e=vm(i,l,a),t.stateNode=e,Ea(t))}return He(t),null;case 5:if(fa(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ea(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return He(t),null}if(c=F.current,an(t))Vf(t);else{var d=Fs(de.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?d.createElement(i,{is:l.is}):d.createElement(i)}}c[ot]=t,c[gt]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=c;e:switch(pt(c,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ea(t)}}return He(t),io(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Ea(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=de.current,an(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=ut,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||sm(e.nodeValue,a)),e||Va(t,!0)}else e=Fs(e).createTextNode(l),e[ot]=t,t.stateNode=e}return He(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=an(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[ot]=t}else bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else a=hr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(_t(t),t):(_t(t),null);if((t.flags&128)!==0)throw Error(o(558))}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=an(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[ot]=t}else bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),i=!1}else i=hr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(_t(t),t):(_t(t),null)}return _t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ds(t,t.updateQueue),He(t),null);case 4:return Ge(),e===null&&To(t.stateNode.containerInfo),He(t),null;case 10:return Sa(t.type),He(t),null;case 19:if(q(Ke),l=t.memoizedState,l===null)return He(t),null;if(i=(t.flags&128)!==0,c=l.rendering,c===null)if(i)ui(l,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=bs(e),c!==null){for(t.flags|=128,ui(l,!1),e=c.updateQueue,t.updateQueue=e,Ds(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)qf(a,e),a=a.sibling;return Z(Ke,Ke.current&1|2),ye&&ya(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&xt()>qs&&(t.flags|=128,i=!0,ui(l,!1),t.lanes=4194304)}else{if(!i)if(e=bs(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ds(t,e),ui(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!ye)return He(t),null}else 2*xt()-l.renderingStartTime>qs&&a!==536870912&&(t.flags|=128,i=!0,ui(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=xt(),e.sibling=null,a=Ke.current,Z(Ke,i?a&1|2:a&1),ye&&ya(t,l.treeForkCount),e):(He(t),null);case 22:case 23:return _t(t),Tr(),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&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),a=t.updateQueue,a!==null&&Ds(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&&q(wl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Sa($e),He(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function rv(e,t){switch(pr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sa($e),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fa(t),null;case 31:if(t.memoizedState!==null){if(_t(t),t.alternate===null)throw Error(o(340));bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ke),null;case 4:return Ge(),null;case 10:return Sa(t.type),null;case 22:case 23:return _t(t),Tr(),e!==null&&q(wl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sa($e),null;case 25:return null;default:return null}}function fp(e,t){switch(pr(t),t.tag){case 3:Sa($e),Ge();break;case 26:case 27:case 5:fa(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&_t(t);break;case 13:_t(t);break;case 19:q(Ke);break;case 10:Sa(t.type);break;case 22:case 23:_t(t),Tr(),e!==null&&q(wl);break;case 24:Sa($e)}}function fi(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var c=a.create,d=a.inst;l=c(),d.destroy=l}a=a.next}while(a!==i)}}catch(h){Ae(t,t.return,h)}}function $a(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var c=i.next;l=c;do{if((l.tag&e)===e){var d=l.inst,h=d.destroy;if(h!==void 0){d.destroy=void 0,i=t;var S=a,R=h;try{R()}catch(L){Ae(i,S,L)}}}l=l.next}while(l!==c)}}catch(L){Ae(t,t.return,L)}}function dp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ad(t,a)}catch(l){Ae(e,e.return,l)}}}function pp(e,t,a){a.props=Tl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ae(e,t,l)}}function di(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(i){Ae(e,t,i)}}function ia(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ae(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ae(e,t,i)}else a.current=null}function mp(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(i){Ae(e,e.return,i)}}function so(e,t,a){try{var l=e.stateNode;zv(l,e.type,a,t),l[gt]=t}catch(i){Ae(e,e.return,i)}}function hp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ll(e.type)||e.tag===4}function co(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hp(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&&ll(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 ro(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=xa));else if(l!==4&&(l===27&&ll(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ro(e,t,a),e=e.sibling;e!==null;)ro(e,t,a),e=e.sibling}function Cs(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&&ll(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Cs(e,t,a),e=e.sibling;e!==null;)Cs(e,t,a),e=e.sibling}function xp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);pt(t,l,a),t[ot]=e,t[gt]=a}catch(c){Ae(e,e.return,c)}}var Na=!1,Ie=!1,oo=!1,vp=typeof WeakSet=="function"?WeakSet:Set,st=null;function ov(e,t){if(e=e.containerInfo,Oo=tc,e=Rf(e),ar(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 i=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var d=0,h=-1,S=-1,R=0,L=0,V=e,O=null;t:for(;;){for(var D;V!==a||i!==0&&V.nodeType!==3||(h=d+i),V!==c||l!==0&&V.nodeType!==3||(S=d+l),V.nodeType===3&&(d+=V.nodeValue.length),(D=V.firstChild)!==null;)O=V,V=D;for(;;){if(V===e)break t;if(O===a&&++R===i&&(h=d),O===c&&++L===l&&(S=d),(D=V.nextSibling)!==null)break;V=O,O=V.parentNode}V=D}a=h===-1||S===-1?null:{start:h,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(_o={focusedElem:e,selectionRange:a},tc=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,i=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var J=Tl(a.type,i);e=l.getSnapshotBeforeUpdate(J,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(le){Ae(a,a.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Mo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mo(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function gp(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Ta(e,a),l&4&&fi(5,a);break;case 1:if(Ta(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Ae(a,a.return,d)}else{var i=Tl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ae(a,a.return,d)}}l&64&&dp(a),l&512&&di(a,a.return);break;case 3:if(Ta(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{ad(e,t)}catch(d){Ae(a,a.return,d)}}break;case 27:t===null&&l&4&&xp(a);case 26:case 5:Ta(e,a),t===null&&l&4&&mp(a),l&512&&di(a,a.return);break;case 12:Ta(e,a);break;case 31:Ta(e,a),l&4&&Sp(e,a);break;case 13:Ta(e,a),l&4&&jp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=gv.bind(null,a),qv(e,a))));break;case 22:if(l=a.memoizedState!==null||Na,!l){t=t!==null&&t.memoizedState!==null||Ie,i=Na;var c=Ie;Na=l,(Ie=t)&&!c?Ra(e,a,(a.subtreeFlags&8772)!==0):Ta(e,a),Na=i,Ie=c}break;case 30:break;default:Ta(e,a)}}function yp(e){var t=e.alternate;t!==null&&(e.alternate=null,yp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Hc(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 Ve=null,bt=!1;function Aa(e,t,a){for(a=a.child;a!==null;)bp(e,t,a),a=a.sibling}function bp(e,t,a){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(ma,a)}catch{}switch(a.tag){case 26:Ie||ia(a,t),Aa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ie||ia(a,t);var l=Ve,i=bt;ll(a.type)&&(Ve=a.stateNode,bt=!1),Aa(e,t,a),Si(a.stateNode),Ve=l,bt=i;break;case 5:Ie||ia(a,t);case 6:if(l=Ve,i=bt,Ve=null,Aa(e,t,a),Ve=l,bt=i,Ve!==null)if(bt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(a.stateNode)}catch(c){Ae(a,t,c)}else try{Ve.removeChild(a.stateNode)}catch(c){Ae(a,t,c)}break;case 18:Ve!==null&&(bt?(e=Ve,dm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),kn(e)):dm(Ve,a.stateNode));break;case 4:l=Ve,i=bt,Ve=a.stateNode.containerInfo,bt=!0,Aa(e,t,a),Ve=l,bt=i;break;case 0:case 11:case 14:case 15:$a(2,a,t),Ie||$a(4,a,t),Aa(e,t,a);break;case 1:Ie||(ia(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&pp(a,t,l)),Aa(e,t,a);break;case 21:Aa(e,t,a);break;case 22:Ie=(l=Ie)||a.memoizedState!==null,Aa(e,t,a),Ie=l;break;default:Aa(e,t,a)}}function Sp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{kn(e)}catch(a){Ae(t,t.return,a)}}}function jp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kn(e)}catch(a){Ae(t,t.return,a)}}function uv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vp),t;default:throw Error(o(435,e.tag))}}function Ms(e,t){var a=uv(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=yv.bind(null,e,l);l.then(i,i)}})}function St(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],c=e,d=t,h=d;e:for(;h!==null;){switch(h.tag){case 27:if(ll(h.type)){Ve=h.stateNode,bt=!1;break e}break;case 5:Ve=h.stateNode,bt=!1;break e;case 3:case 4:Ve=h.stateNode.containerInfo,bt=!0;break e}h=h.return}if(Ve===null)throw Error(o(160));bp(c,d,i),Ve=null,bt=!1,c=i.alternate,c!==null&&(c.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wp(t,e),t=t.sibling}var $t=null;function wp(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),jt(e),l&4&&($a(3,e,e.return),fi(3,e),$a(5,e,e.return));break;case 1:St(t,e),jt(e),l&512&&(Ie||a===null||ia(a,a.return)),l&64&&Na&&(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 i=$t;if(St(t,e),jt(e),l&512&&(Ie||a===null||ia(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,i=i.ownerDocument||i;t:switch(l){case"title":c=i.getElementsByTagName("title")[0],(!c||c[Hn]||c[ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=i.createElement(l),i.head.insertBefore(c,i.querySelector("head > title"))),pt(c,l,a),c[ot]=e,it(c),l=c;break e;case"link":var d=wm("link","href",i).get(l+(a.href||""));if(d){for(var h=0;h<d.length;h++)if(c=d[h],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)){d.splice(h,1);break t}}c=i.createElement(l),pt(c,l,a),i.head.appendChild(c);break;case"meta":if(d=wm("meta","content",i).get(l+(a.content||""))){for(h=0;h<d.length;h++)if(c=d[h],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)){d.splice(h,1);break t}}c=i.createElement(l),pt(c,l,a),i.head.appendChild(c);break;default:throw Error(o(468,l))}c[ot]=e,it(c),l=c}e.stateNode=l}else km(i,e.type,e.stateNode);else e.stateNode=jm(i,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?km(i,e.type,e.stateNode):jm(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&so(e,e.memoizedProps,a.memoizedProps)}break;case 27:St(t,e),jt(e),l&512&&(Ie||a===null||ia(a,a.return)),a!==null&&l&4&&so(e,e.memoizedProps,a.memoizedProps);break;case 5:if(St(t,e),jt(e),l&512&&(Ie||a===null||ia(a,a.return)),e.flags&32){i=e.stateNode;try{Zl(i,"")}catch(J){Ae(e,e.return,J)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,so(e,i,a!==null?a.memoizedProps:i)),l&1024&&(oo=!0);break;case 6:if(St(t,e),jt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(J){Ae(e,e.return,J)}}break;case 3:if(Ws=null,i=$t,$t=Js(t.containerInfo),St(t,e),$t=i,jt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{kn(t.containerInfo)}catch(J){Ae(e,e.return,J)}oo&&(oo=!1,kp(e));break;case 4:l=$t,$t=Js(e.stateNode.containerInfo),St(t,e),jt(e),$t=l;break;case 12:St(t,e),jt(e);break;case 31:St(t,e),jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ms(e,l)));break;case 13:St(t,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ls=xt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ms(e,l)));break;case 22:i=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,R=Na,L=Ie;if(Na=R||i,Ie=L||S,St(t,e),Ie=L,Na=R,jt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||S||Na||Ie||Rl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(c=S.stateNode,i)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{h=S.stateNode;var V=S.memoizedProps.style,O=V!=null&&V.hasOwnProperty("display")?V.display:null;h.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(J){Ae(S,S.return,J)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=i?"":S.memoizedProps}catch(J){Ae(S,S.return,J)}}}else if(t.tag===18){if(a===null){S=t;try{var D=S.stateNode;i?pm(D,!0):pm(S.stateNode,!1)}catch(J){Ae(S,S.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;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,Ms(e,a))));break;case 19:St(t,e),jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ms(e,l)));break;case 30:break;case 21:break;default:St(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(hp(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var i=a.stateNode,c=co(e);Cs(e,c,i);break;case 5:var d=a.stateNode;a.flags&32&&(Zl(d,""),a.flags&=-33);var h=co(e);Cs(e,h,d);break;case 3:case 4:var S=a.stateNode.containerInfo,R=co(e);ro(e,R,S);break;default:throw Error(o(161))}}catch(L){Ae(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ta(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gp(e,t.alternate,t),t=t.sibling}function Rl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$a(4,t,t.return),Rl(t);break;case 1:ia(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&pp(t,t.return,a),Rl(t);break;case 27:Si(t.stateNode);case 26:case 5:ia(t,t.return),Rl(t);break;case 22:t.memoizedState===null&&Rl(t);break;case 30:Rl(t);break;default:Rl(t)}e=e.sibling}}function Ra(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,c=t,d=c.flags;switch(c.tag){case 0:case 11:case 15:Ra(i,c,a),fi(4,c);break;case 1:if(Ra(i,c,a),l=c,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(R){Ae(l,l.return,R)}if(l=c,i=l.updateQueue,i!==null){var h=l.stateNode;try{var S=i.shared.hiddenCallbacks;if(S!==null)for(i.shared.hiddenCallbacks=null,i=0;i<S.length;i++)td(S[i],h)}catch(R){Ae(l,l.return,R)}}a&&d&64&&dp(c),di(c,c.return);break;case 27:xp(c);case 26:case 5:Ra(i,c,a),a&&l===null&&d&4&&mp(c),di(c,c.return);break;case 12:Ra(i,c,a);break;case 31:Ra(i,c,a),a&&d&4&&Sp(i,c);break;case 13:Ra(i,c,a),a&&d&4&&jp(i,c);break;case 22:c.memoizedState===null&&Ra(i,c,a),di(c,c.return);break;case 30:break;default:Ra(i,c,a)}t=t.sibling}}function uo(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&&Pn(a))}function fo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pn(e))}function Wt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ep(e,t,a,l),t=t.sibling}function Ep(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,a,l),i&2048&&fi(9,t);break;case 1:Wt(e,t,a,l);break;case 3:Wt(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pn(e)));break;case 12:if(i&2048){Wt(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,d=c.id,h=c.onPostCommit;typeof h=="function"&&h(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ae(t,t.return,S)}}else Wt(e,t,a,l);break;case 31:Wt(e,t,a,l);break;case 13:Wt(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,d=t.alternate,t.memoizedState!==null?c._visibility&2?Wt(e,t,a,l):pi(e,t):c._visibility&2?Wt(e,t,a,l):(c._visibility|=2,pn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&uo(d,t);break;case 24:Wt(e,t,a,l),i&2048&&fo(t.alternate,t);break;default:Wt(e,t,a,l)}}function pn(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,d=t,h=a,S=l,R=d.flags;switch(d.tag){case 0:case 11:case 15:pn(c,d,h,S,i),fi(8,d);break;case 23:break;case 22:var L=d.stateNode;d.memoizedState!==null?L._visibility&2?pn(c,d,h,S,i):pi(c,d):(L._visibility|=2,pn(c,d,h,S,i)),i&&R&2048&&uo(d.alternate,d);break;case 24:pn(c,d,h,S,i),i&&R&2048&&fo(d.alternate,d);break;default:pn(c,d,h,S,i)}t=t.sibling}}function pi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:pi(a,l),i&2048&&uo(l.alternate,l);break;case 24:pi(a,l),i&2048&&fo(l.alternate,l);break;default:pi(a,l)}t=t.sibling}}var mi=8192;function mn(e,t,a){if(e.subtreeFlags&mi)for(e=e.child;e!==null;)Np(e,t,a),e=e.sibling}function Np(e,t,a){switch(e.tag){case 26:mn(e,t,a),e.flags&mi&&e.memoizedState!==null&&$v(a,$t,e.memoizedState,e.memoizedProps);break;case 5:mn(e,t,a);break;case 3:case 4:var l=$t;$t=Js(e.stateNode.containerInfo),mn(e,t,a),$t=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=mi,mi=16777216,mn(e,t,a),mi=l):mn(e,t,a));break;default:mn(e,t,a)}}function Ap(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 hi(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];st=l,Rp(l,e)}Ap(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Tp(e),e=e.sibling}function Tp(e){switch(e.tag){case 0:case 11:case 15:hi(e),e.flags&2048&&$a(9,e,e.return);break;case 3:hi(e);break;case 12:hi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Us(e)):hi(e);break;default:hi(e)}}function Us(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];st=l,Rp(l,e)}Ap(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$a(8,t,t.return),Us(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Us(t));break;default:Us(t)}e=e.sibling}}function Rp(e,t){for(;st!==null;){var a=st;switch(a.tag){case 0:case 11:case 15:$a(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:Pn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,st=l;else e:for(a=e;st!==null;){l=st;var i=l.sibling,c=l.return;if(yp(l),l===a){st=null;break e}if(i!==null){i.return=c,st=i;break e}st=c}}}var fv={getCacheForType:function(e){var t=ft($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ft($e).controller.signal}},dv=typeof WeakMap=="function"?WeakMap:Map,ke=0,De=null,me=null,ve=0,Ne=0,Dt=null,Wa=!1,hn=!1,po=!1,za=0,Ze=0,Pa=0,zl=0,mo=0,Ct=0,xn=0,xi=null,wt=null,ho=!1,Ls=0,zp=0,qs=1/0,Hs=null,Ia=null,at=0,el=null,vn=null,Oa=0,xo=0,vo=null,Op=null,vi=0,go=null;function Mt(){return(ke&2)!==0&&ve!==0?ve&-ve:U.T!==null?ko():Zu()}function _p(){if(Ct===0)if((ve&536870912)===0||ye){var e=Ki;Ki<<=1,(Ki&3932160)===0&&(Ki=262144),Ct=e}else Ct=536870912;return e=Ot.current,e!==null&&(e.flags|=32),Ct}function kt(e,t,a){(e===De&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(gn(e,0),tl(e,ve,Ct,!1)),qn(e,a),((ke&2)===0||e!==De)&&(e===De&&((ke&2)===0&&(zl|=a),Ze===4&&tl(e,ve,Ct,!1)),sa(e))}function Dp(e,t,a){if((ke&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ln(e,t),i=l?hv(e,t):bo(e,t,!0),c=l;do{if(i===0){hn&&!l&&tl(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!pv(a)){i=bo(e,t,!1),c=!1;continue}if(i===2){if(c=t,e.errorRecoveryDisabledLanes&c)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var h=e;i=xi;var S=h.current.memoizedState.isDehydrated;if(S&&(gn(h,d).flags|=256),d=bo(h,d,!1),d!==2){if(po&&!S){h.errorRecoveryDisabledLanes|=c,zl|=c,i=4;break e}c=wt,wt=i,c!==null&&(wt===null?wt=c:wt.push.apply(wt,c))}i=d}if(c=!1,i!==2)continue}}if(i===1){gn(e,0),tl(e,t,0,!0);break}e:{switch(l=e,c=i,c){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:tl(l,t,Ct,!Wa);break e;case 2:wt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=Ls+300-xt(),10<i)){if(tl(l,t,Ct,!Wa),Ji(l,0,!0)!==0)break e;Oa=t,l.timeoutHandle=um(Cp.bind(null,l,a,wt,Hs,ho,t,Ct,zl,xn,Wa,c,"Throttled",-0,0),i);break e}Cp(l,a,wt,Hs,ho,t,Ct,zl,xn,Wa,c,null,-0,0)}}break}while(!0);sa(e)}function Cp(e,t,a,l,i,c,d,h,S,R,L,V,O,D){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xa},Np(t,c,V);var J=(c&62914560)===c?Ls-xt():(c&4194048)===c?zp-xt():0;if(J=Wv(V,J),J!==null){Oa=c,e.cancelPendingCommit=J(Gp.bind(null,e,t,c,a,l,i,d,h,S,L,V,null,O,D)),tl(e,c,d,!R);return}}Gp(e,t,c,a,l,i,d,h,S)}function pv(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 i=a[l],c=i.getSnapshot;i=i.value;try{if(!Rt(c(),i))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 tl(e,t,a,l){t&=~mo,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var c=31-rt(i),d=1<<c;l[c]=-1,i&=~d}a!==0&&Vu(e,a,t)}function Bs(){return(ke&6)===0?(gi(0),!1):!0}function yo(){if(me!==null){if(Ne===0)var e=me.return;else e=me,ba=Sl=null,Cr(e),rn=null,ei=0,e=me;for(;e!==null;)fp(e.alternate,e),e=e.return;me=null}}function gn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Dv(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Oa=0,yo(),De=e,me=a=ga(e.current,null),ve=t,Ne=0,Dt=null,Wa=!1,hn=Ln(e,t),po=!1,xn=Ct=mo=zl=Pa=Ze=0,wt=xi=null,ho=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-rt(l),c=1<<i;t|=e[i],l&=~c}return za=t,cs(),a}function Mp(e,t){oe=null,U.H=ri,t===cn||t===hs?(t=Wf(),Ne=3):t===jr?(t=Wf(),Ne=4):Ne=t===$r?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,me===null&&(Ze=1,Rs(e,Ht(t,e.current)))}function Up(){var e=Ot.current;return e===null?!0:(ve&4194048)===ve?Vt===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Vt:!1}function Lp(){var e=U.H;return U.H=ri,e===null?ri:e}function qp(){var e=U.A;return U.A=fv,e}function Ys(){Ze=4,Wa||(ve&4194048)!==ve&&Ot.current!==null||(hn=!0),(Pa&134217727)===0&&(zl&134217727)===0||De===null||tl(De,ve,Ct,!1)}function bo(e,t,a){var l=ke;ke|=2;var i=Lp(),c=qp();(De!==e||ve!==t)&&(Hs=null,gn(e,t)),t=!1;var d=Ze;e:do try{if(Ne!==0&&me!==null){var h=me,S=Dt;switch(Ne){case 8:yo(),d=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var R=Ne;if(Ne=0,Dt=null,yn(e,h,S,R),a&&hn){d=0;break e}break;default:R=Ne,Ne=0,Dt=null,yn(e,h,S,R)}}mv(),d=Ze;break}catch(L){Mp(e,L)}while(!0);return t&&e.shellSuspendCounter++,ba=Sl=null,ke=l,U.H=i,U.A=c,me===null&&(De=null,ve=0,cs()),d}function mv(){for(;me!==null;)Hp(me)}function hv(e,t){var a=ke;ke|=2;var l=Lp(),i=qp();De!==e||ve!==t?(Hs=null,qs=xt()+500,gn(e,t)):hn=Ln(e,t);e:do try{if(Ne!==0&&me!==null){t=me;var c=Dt;t:switch(Ne){case 1:Ne=0,Dt=null,yn(e,t,c,1);break;case 2:case 9:if(Jf(c)){Ne=0,Dt=null,Bp(t);break}t=function(){Ne!==2&&Ne!==9||De!==e||(Ne=7),sa(e)},c.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Jf(c)?(Ne=0,Dt=null,Bp(t)):(Ne=0,Dt=null,yn(e,t,c,7));break;case 5:var d=null;switch(me.tag){case 26:d=me.memoizedState;case 5:case 27:var h=me;if(d?Em(d):h.stateNode.complete){Ne=0,Dt=null;var S=h.sibling;if(S!==null)me=S;else{var R=h.return;R!==null?(me=R,Gs(R)):me=null}break t}}Ne=0,Dt=null,yn(e,t,c,5);break;case 6:Ne=0,Dt=null,yn(e,t,c,6);break;case 8:yo(),Ze=6;break e;default:throw Error(o(462))}}xv();break}catch(L){Mp(e,L)}while(!0);return ba=Sl=null,U.H=l,U.A=i,ke=a,me!==null?0:(De=null,ve=0,cs(),Ze)}function xv(){for(;me!==null&&!Dc();)Hp(me)}function Hp(e){var t=op(e.alternate,e,za);e.memoizedProps=e.pendingProps,t===null?Gs(e):me=t}function Bp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=lp(a,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=lp(a,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:Cr(t);default:fp(a,t),t=me=qf(t,za),t=op(a,t,za)}e.memoizedProps=e.pendingProps,t===null?Gs(e):me=t}function yn(e,t,a,l){ba=Sl=null,Cr(t),rn=null,ei=0;var i=t.return;try{if(nv(e,i,t,a,ve)){Ze=1,Rs(e,Ht(a,e.current)),me=null;return}}catch(c){if(i!==null)throw me=i,c;Ze=1,Rs(e,Ht(a,e.current)),me=null;return}t.flags&32768?(ye||l===1?e=!0:hn||(ve&536870912)!==0?e=!1:(Wa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ot.current,l!==null&&l.tag===13&&(l.flags|=16384))),Yp(t,e)):Gs(t)}function Gs(e){var t=e;do{if((t.flags&32768)!==0){Yp(t,Wa);return}e=t.return;var a=cv(t.alternate,t,za);if(a!==null){me=a;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);Ze===0&&(Ze=5)}function Yp(e,t){do{var a=rv(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);Ze=6,me=null}function Gp(e,t,a,l,i,c,d,h,S){e.cancelPendingCommit=null;do Vs();while(at!==0);if((ke&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(c=t.lanes|t.childLanes,c|=cr,J0(e,a,c,d,h,S),e===De&&(me=De=null,ve=0),vn=t,el=e,Oa=a,xo=c,vo=i,Op=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,bv(Le,function(){return Kp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,i=Q.p,Q.p=2,d=ke,ke|=4;try{ov(e,t,a)}finally{ke=d,Q.p=i,U.T=l}}at=1,Vp(),Xp(),Qp()}}function Vp(){if(at===1){at=0;var e=el,t=vn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var l=Q.p;Q.p=2;var i=ke;ke|=4;try{wp(t,e);var c=_o,d=Rf(e.containerInfo),h=c.focusedElem,S=c.selectionRange;if(d!==h&&h&&h.ownerDocument&&Tf(h.ownerDocument.documentElement,h)){if(S!==null&&ar(h)){var R=S.start,L=S.end;if(L===void 0&&(L=R),"selectionStart"in h)h.selectionStart=R,h.selectionEnd=Math.min(L,h.value.length);else{var V=h.ownerDocument||document,O=V&&V.defaultView||window;if(O.getSelection){var D=O.getSelection(),J=h.textContent.length,le=Math.min(S.start,J),ze=S.end===void 0?le:Math.min(S.end,J);!D.extend&&le>ze&&(d=ze,ze=le,le=d);var E=Af(h,le),k=Af(h,ze);if(E&&k&&(D.rangeCount!==1||D.anchorNode!==E.node||D.anchorOffset!==E.offset||D.focusNode!==k.node||D.focusOffset!==k.offset)){var A=V.createRange();A.setStart(E.node,E.offset),D.removeAllRanges(),le>ze?(D.addRange(A),D.extend(k.node,k.offset)):(A.setEnd(k.node,k.offset),D.addRange(A))}}}}for(V=[],D=h;D=D.parentNode;)D.nodeType===1&&V.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<V.length;h++){var B=V[h];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}tc=!!Oo,_o=Oo=null}finally{ke=i,Q.p=l,U.T=a}}e.current=t,at=2}}function Xp(){if(at===2){at=0;var e=el,t=vn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var l=Q.p;Q.p=2;var i=ke;ke|=4;try{gp(e,t.alternate,t)}finally{ke=i,Q.p=l,U.T=a}}at=3}}function Qp(){if(at===4||at===3){at=0,Cc();var e=el,t=vn,a=Oa,l=Op;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,vn=el=null,Zp(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ia=null),Lc(a),t=t.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(ma,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=U.T,i=Q.p,Q.p=2,U.T=null;try{for(var c=e.onRecoverableError,d=0;d<l.length;d++){var h=l[d];c(h.value,{componentStack:h.stack})}}finally{U.T=t,Q.p=i}}(Oa&3)!==0&&Vs(),sa(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===go?vi++:(vi=0,go=e):vi=0,gi(0)}}function Zp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pn(t)))}function Vs(){return Vp(),Xp(),Qp(),Kp()}function Kp(){if(at!==5)return!1;var e=el,t=xo;xo=0;var a=Lc(Oa),l=U.T,i=Q.p;try{Q.p=32>a?32:a,U.T=null,a=vo,vo=null;var c=el,d=Oa;if(at=0,vn=el=null,Oa=0,(ke&6)!==0)throw Error(o(331));var h=ke;if(ke|=4,Tp(c.current),Ep(c,c.current,d,a),ke=h,gi(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(ma,c)}catch{}return!0}finally{Q.p=i,U.T=l,Zp(e,t)}}function Fp(e,t,a){t=Ht(a,t),t=Jr(e.stateNode,t,2),e=Ka(e,t,2),e!==null&&(qn(e,2),sa(e))}function Ae(e,t,a){if(e.tag===3)Fp(e,e,a);else for(;t!==null;){if(t.tag===3){Fp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ia===null||!Ia.has(l))){e=Ht(a,e),a=Jd(2),l=Ka(t,a,2),l!==null&&($d(a,l,t,e),qn(l,2),sa(l));break}}t=t.return}}function So(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new dv;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(po=!0,i.add(a),e=vv.bind(null,e,t,a),t.then(e,e))}function vv(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,De===e&&(ve&a)===a&&(Ze===4||Ze===3&&(ve&62914560)===ve&&300>xt()-Ls?(ke&2)===0&&gn(e,0):mo|=a,xn===ve&&(xn=0)),sa(e)}function Jp(e,t){t===0&&(t=Gu()),e=gl(e,t),e!==null&&(qn(e,t),sa(e))}function gv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Jp(e,a)}function yv(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Jp(e,a)}function bv(e,t){return La(e,t)}var Xs=null,bn=null,jo=!1,Qs=!1,wo=!1,al=0;function sa(e){e!==bn&&e.next===null&&(bn===null?Xs=bn=e:bn=bn.next=e),Qs=!0,jo||(jo=!0,jv())}function gi(e,t){if(!wo&&Qs){wo=!0;do for(var a=!1,l=Xs;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var c=0;else{var d=l.suspendedLanes,h=l.pingedLanes;c=(1<<31-rt(42|e)+1)-1,c&=i&~(d&~h),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Ip(l,c))}else c=ve,c=Ji(l,l===De?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Ln(l,c)||(a=!0,Ip(l,c));l=l.next}while(a);wo=!1}}function Sv(){$p()}function $p(){Qs=jo=!1;var e=0;al!==0&&_v()&&(e=al);for(var t=xt(),a=null,l=Xs;l!==null;){var i=l.next,c=Wp(l,t);c===0?(l.next=null,a===null?Xs=i:a.next=i,i===null&&(bn=a)):(a=l,(e!==0||(c&3)!==0)&&(Qs=!0)),l=i}at!==0&&at!==5||gi(e),al!==0&&(al=0)}function Wp(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var d=31-rt(c),h=1<<d,S=i[d];S===-1?((h&a)===0||(h&l)!==0)&&(i[d]=F0(h,t)):S<=t&&(e.expiredLanes|=h),c&=~h}if(t=De,a=ve,a=Ji(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&qa(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ln(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&qa(l),Lc(a)){case 2:case 8:a=Ue;break;case 32:a=Le;break;case 268435456:a=At;break;default:a=Le}return l=Pp.bind(null,e),a=La(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&qa(l),e.callbackPriority=2,e.callbackNode=null,2}function Pp(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Vs()&&e.callbackNode!==a)return null;var l=ve;return l=Ji(e,e===De?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Dp(e,l,t),Wp(e,xt()),e.callbackNode!=null&&e.callbackNode===a?Pp.bind(null,e):null)}function Ip(e,t){if(Vs())return null;Dp(e,t,!0)}function jv(){Cv(function(){(ke&6)!==0?La(te,Sv):$p()})}function ko(){if(al===0){var e=nn;e===0&&(e=Hl,Hl<<=1,(Hl&261888)===0&&(Hl=256)),al=e}return al}function em(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ii(""+e)}function tm(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 wv(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var c=em((i[gt]||null).action),d=l.submitter;d&&(t=(t=d[gt]||null)?em(t.formAction):d.getAttribute("formAction"),t!==null&&(c=t,d=null));var h=new ls("action","action",null,l,i);e.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(al!==0){var S=d?tm(i,d):new FormData(i);Vr(a,{pending:!0,data:S,method:i.method,action:c},null,S)}}else typeof c=="function"&&(h.preventDefault(),S=d?tm(i,d):new FormData(i),Vr(a,{pending:!0,data:S,method:i.method,action:c},c,S))},currentTarget:i}]})}}for(var Eo=0;Eo<sr.length;Eo++){var No=sr[Eo],kv=No.toLowerCase(),Ev=No[0].toUpperCase()+No.slice(1);Jt(kv,"on"+Ev)}Jt(_f,"onAnimationEnd"),Jt(Df,"onAnimationIteration"),Jt(Cf,"onAnimationStart"),Jt("dblclick","onDoubleClick"),Jt("focusin","onFocus"),Jt("focusout","onBlur"),Jt(Yx,"onTransitionRun"),Jt(Gx,"onTransitionStart"),Jt(Vx,"onTransitionCancel"),Jt(Mf,"onTransitionEnd"),Xl("onMouseEnter",["mouseout","mouseover"]),Xl("onMouseLeave",["mouseout","mouseover"]),Xl("onPointerEnter",["pointerout","pointerover"]),Xl("onPointerLeave",["pointerout","pointerover"]),ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yi="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(" "),Nv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yi));function am(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var d=l.length-1;0<=d;d--){var h=l[d],S=h.instance,R=h.currentTarget;if(h=h.listener,S!==c&&i.isPropagationStopped())break e;c=h,i.currentTarget=R;try{c(i)}catch(L){ss(L)}i.currentTarget=null,c=S}else for(d=0;d<l.length;d++){if(h=l[d],S=h.instance,R=h.currentTarget,h=h.listener,S!==c&&i.isPropagationStopped())break e;c=h,i.currentTarget=R;try{c(i)}catch(L){ss(L)}i.currentTarget=null,c=S}}}}function he(e,t){var a=t[qc];a===void 0&&(a=t[qc]=new Set);var l=e+"__bubble";a.has(l)||(lm(t,e,2,!1),a.add(l))}function Ao(e,t,a){var l=0;t&&(l|=4),lm(a,e,l,t)}var Zs="_reactListening"+Math.random().toString(36).slice(2);function To(e){if(!e[Zs]){e[Zs]=!0,Ju.forEach(function(a){a!=="selectionchange"&&(Nv.has(a)||Ao(a,!1,e),Ao(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zs]||(t[Zs]=!0,Ao("selectionchange",!1,t))}}function lm(e,t,a,l){switch(_m(t)){case 2:var i=eg;break;case 8:i=tg;break;default:i=Vo}a=i.bind(null,t,a,e),i=void 0,!Kc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function Ro(e,t,a,l,i){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var h=l.stateNode.containerInfo;if(h===i)break;if(d===4)for(d=l.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===i)return;d=d.return}for(;h!==null;){if(d=Yl(h),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){l=c=d;continue e}h=h.parentNode}}l=l.return}rf(function(){var R=c,L=Qc(a),V=[];e:{var O=Uf.get(e);if(O!==void 0){var D=ls,J=e;switch(e){case"keypress":if(ts(a)===0)break e;case"keydown":case"keyup":D=yx;break;case"focusin":J="focus",D=Wc;break;case"focusout":J="blur",D=Wc;break;case"beforeblur":case"afterblur":D=Wc;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":D=ff;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=cx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=jx;break;case _f:case Df:case Cf:D=ux;break;case Mf:D=kx;break;case"scroll":case"scrollend":D=ix;break;case"wheel":D=Nx;break;case"copy":case"cut":case"paste":D=dx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=pf;break;case"toggle":case"beforetoggle":D=Tx}var le=(t&4)!==0,ze=!le&&(e==="scroll"||e==="scrollend"),E=le?O!==null?O+"Capture":null:O;le=[];for(var k=R,A;k!==null;){var B=k;if(A=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||A===null||E===null||(B=Yn(k,E),B!=null&&le.push(bi(k,B,A))),ze)break;k=k.return}0<le.length&&(O=new D(O,J,null,a,L),V.push({event:O,listeners:le}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",O&&a!==Xc&&(J=a.relatedTarget||a.fromElement)&&(Yl(J)||J[Bl]))break e;if((D||O)&&(O=L.window===L?L:(O=L.ownerDocument)?O.defaultView||O.parentWindow:window,D?(J=a.relatedTarget||a.toElement,D=R,J=J?Yl(J):null,J!==null&&(ze=p(J),le=J.tag,J!==ze||le!==5&&le!==27&&le!==6)&&(J=null)):(D=null,J=R),D!==J)){if(le=ff,B="onMouseLeave",E="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(le=pf,B="onPointerLeave",E="onPointerEnter",k="pointer"),ze=D==null?O:Bn(D),A=J==null?O:Bn(J),O=new le(B,k+"leave",D,a,L),O.target=ze,O.relatedTarget=A,B=null,Yl(L)===R&&(le=new le(E,k+"enter",J,a,L),le.target=A,le.relatedTarget=ze,B=le),ze=B,D&&J)t:{for(le=Av,E=D,k=J,A=0,B=E;B;B=le(B))A++;B=0;for(var I=k;I;I=le(I))B++;for(;0<A-B;)E=le(E),A--;for(;0<B-A;)k=le(k),B--;for(;A--;){if(E===k||k!==null&&E===k.alternate){le=E;break t}E=le(E),k=le(k)}le=null}else le=null;D!==null&&nm(V,O,D,le,!1),J!==null&&ze!==null&&nm(V,ze,J,le,!0)}}e:{if(O=R?Bn(R):window,D=O.nodeName&&O.nodeName.toLowerCase(),D==="select"||D==="input"&&O.type==="file")var Se=Sf;else if(yf(O))if(jf)Se=qx;else{Se=Ux;var W=Mx}else D=O.nodeName,!D||D.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?R&&Vc(R.elementType)&&(Se=Sf):Se=Lx;if(Se&&(Se=Se(e,R))){bf(V,Se,a,L);break e}W&&W(e,O,R),e==="focusout"&&R&&O.type==="number"&&R.memoizedProps.value!=null&&Gc(O,"number",O.value)}switch(W=R?Bn(R):window,e){case"focusin":(yf(W)||W.contentEditable==="true")&&($l=W,lr=R,Jn=null);break;case"focusout":Jn=lr=$l=null;break;case"mousedown":nr=!0;break;case"contextmenu":case"mouseup":case"dragend":nr=!1,zf(V,a,L);break;case"selectionchange":if(Bx)break;case"keydown":case"keyup":zf(V,a,L)}var fe;if(Ic)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else Jl?vf(e,a)&&(ge="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ge="onCompositionStart");ge&&(mf&&a.locale!=="ko"&&(Jl||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&Jl&&(fe=of()):(Ba=L,Fc="value"in Ba?Ba.value:Ba.textContent,Jl=!0)),W=Ks(R,ge),0<W.length&&(ge=new df(ge,e,null,a,L),V.push({event:ge,listeners:W}),fe?ge.data=fe:(fe=gf(a),fe!==null&&(ge.data=fe)))),(fe=zx?Ox(e,a):_x(e,a))&&(ge=Ks(R,"onBeforeInput"),0<ge.length&&(W=new df("onBeforeInput","beforeinput",null,a,L),V.push({event:W,listeners:ge}),W.data=fe)),wv(V,e,R,a,L)}am(V,t)})}function bi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ks(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,c=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||c===null||(i=Yn(e,a),i!=null&&l.unshift(bi(e,i,c)),i=Yn(e,t),i!=null&&l.push(bi(e,i,c))),e.tag===3)return l;e=e.return}return[]}function Av(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function nm(e,t,a,l,i){for(var c=t._reactName,d=[];a!==null&&a!==l;){var h=a,S=h.alternate,R=h.stateNode;if(h=h.tag,S!==null&&S===l)break;h!==5&&h!==26&&h!==27||R===null||(S=R,i?(R=Yn(a,c),R!=null&&d.unshift(bi(a,R,S))):i||(R=Yn(a,c),R!=null&&d.push(bi(a,R,S)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Tv=/\r\n?/g,Rv=/\u0000|\uFFFD/g;function im(e){return(typeof e=="string"?e:""+e).replace(Tv,`
|
|
9
|
+
`).replace(Rv,"")}function sm(e,t){return t=im(t),im(e)===t}function Re(e,t,a,l,i,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Zl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Zl(e,""+l);break;case"className":Wi(e,"class",l);break;case"tabIndex":Wi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Wi(e,a,l);break;case"style":sf(e,l,c);break;case"data":if(t!=="object"){Wi(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=Ii(""+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"&&Re(e,t,"name",i.name,i,null),Re(e,t,"formEncType",i.formEncType,i,null),Re(e,t,"formMethod",i.formMethod,i,null),Re(e,t,"formTarget",i.formTarget,i,null)):(Re(e,t,"encType",i.encType,i,null),Re(e,t,"method",i.method,i,null),Re(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ii(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=xa);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(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=Ii(""+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":he("beforetoggle",e),he("toggle",e),$i(e,"popover",l);break;case"xlinkActuate":ha(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ha(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ha(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ha(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ha(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ha(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ha(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ha(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ha(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":$i(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=lx.get(a)||a,$i(e,a,l))}}function zo(e,t,a,l,i,c){switch(a){case"style":sf(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Zl(e,l):(typeof l=="number"||typeof l=="bigint")&&Zl(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=xa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$u.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),c=e[gt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,i),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):$i(e,a,l)}}}function pt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,i=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(d!=null)switch(c){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Re(e,t,c,d,a,null)}}i&&Re(e,t,"srcSet",a.srcSet,a,null),l&&Re(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var h=c=d=i=null,S=null,R=null;for(l in a)if(a.hasOwnProperty(l)){var L=a[l];if(L!=null)switch(l){case"name":i=L;break;case"type":d=L;break;case"checked":S=L;break;case"defaultChecked":R=L;break;case"value":c=L;break;case"defaultValue":h=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:Re(e,t,l,L,a,null)}}tf(e,c,h,S,R,d,i,!1);return;case"select":he("invalid",e),l=d=c=null;for(i in a)if(a.hasOwnProperty(i)&&(h=a[i],h!=null))switch(i){case"value":c=h;break;case"defaultValue":d=h;break;case"multiple":l=h;default:Re(e,t,i,h,a,null)}t=c,a=d,e.multiple=!!l,t!=null?Ql(e,!!l,t,!1):a!=null&&Ql(e,!!l,a,!0);return;case"textarea":he("invalid",e),c=i=l=null;for(d in a)if(a.hasOwnProperty(d)&&(h=a[d],h!=null))switch(d){case"value":l=h;break;case"defaultValue":i=h;break;case"children":c=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(o(91));break;default:Re(e,t,d,h,a,null)}lf(e,l,i,c);return;case"option":for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null)&&(S==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Re(e,t,S,l,a,null));return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<yi.length;l++)he(yi[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("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(R in a)if(a.hasOwnProperty(R)&&(l=a[R],l!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Re(e,t,R,l,a,null)}return;default:if(Vc(t)){for(L in a)a.hasOwnProperty(L)&&(l=a[L],l!==void 0&&zo(e,t,L,l,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(l=a[h],l!=null&&Re(e,t,h,l,a,null))}function zv(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 i=null,c=null,d=null,h=null,S=null,R=null,L=null;for(D in a){var V=a[D];if(a.hasOwnProperty(D)&&V!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":S=V;default:l.hasOwnProperty(D)||Re(e,t,D,null,l,V)}}for(var O in l){var D=l[O];if(V=a[O],l.hasOwnProperty(O)&&(D!=null||V!=null))switch(O){case"type":c=D;break;case"name":i=D;break;case"checked":R=D;break;case"defaultChecked":L=D;break;case"value":d=D;break;case"defaultValue":h=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,t));break;default:D!==V&&Re(e,t,O,D,l,V)}}Yc(e,d,h,S,R,L,c,i);return;case"select":D=d=h=O=null;for(c in a)if(S=a[c],a.hasOwnProperty(c)&&S!=null)switch(c){case"value":break;case"multiple":D=S;default:l.hasOwnProperty(c)||Re(e,t,c,null,l,S)}for(i in l)if(c=l[i],S=a[i],l.hasOwnProperty(i)&&(c!=null||S!=null))switch(i){case"value":O=c;break;case"defaultValue":h=c;break;case"multiple":d=c;default:c!==S&&Re(e,t,i,c,l,S)}t=h,a=d,l=D,O!=null?Ql(e,!!a,O,!1):!!l!=!!a&&(t!=null?Ql(e,!!a,t,!0):Ql(e,!!a,a?[]:"",!1));return;case"textarea":D=O=null;for(h in a)if(i=a[h],a.hasOwnProperty(h)&&i!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Re(e,t,h,null,l,i)}for(d in l)if(i=l[d],c=a[d],l.hasOwnProperty(d)&&(i!=null||c!=null))switch(d){case"value":O=i;break;case"defaultValue":D=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==c&&Re(e,t,d,i,l,c)}af(e,O,D);return;case"option":for(var J in a)O=a[J],a.hasOwnProperty(J)&&O!=null&&!l.hasOwnProperty(J)&&(J==="selected"?e.selected=!1:Re(e,t,J,null,l,O));for(S in l)O=l[S],D=a[S],l.hasOwnProperty(S)&&O!==D&&(O!=null||D!=null)&&(S==="selected"?e.selected=O&&typeof O!="function"&&typeof O!="symbol":Re(e,t,S,O,l,D));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 le in a)O=a[le],a.hasOwnProperty(le)&&O!=null&&!l.hasOwnProperty(le)&&Re(e,t,le,null,l,O);for(R in l)if(O=l[R],D=a[R],l.hasOwnProperty(R)&&O!==D&&(O!=null||D!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:Re(e,t,R,O,l,D)}return;default:if(Vc(t)){for(var ze in a)O=a[ze],a.hasOwnProperty(ze)&&O!==void 0&&!l.hasOwnProperty(ze)&&zo(e,t,ze,void 0,l,O);for(L in l)O=l[L],D=a[L],!l.hasOwnProperty(L)||O===D||O===void 0&&D===void 0||zo(e,t,L,O,l,D);return}}for(var E in a)O=a[E],a.hasOwnProperty(E)&&O!=null&&!l.hasOwnProperty(E)&&Re(e,t,E,null,l,O);for(V in l)O=l[V],D=a[V],!l.hasOwnProperty(V)||O===D||O==null&&D==null||Re(e,t,V,O,l,D)}function cm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ov(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],c=i.transferSize,d=i.initiatorType,h=i.duration;if(c&&h&&cm(d)){for(d=0,h=i.responseEnd,l+=1;l<a.length;l++){var S=a[l],R=S.startTime;if(R>h)break;var L=S.transferSize,V=S.initiatorType;L&&cm(V)&&(S=S.responseEnd,d+=L*(S<h?1:(h-R)/(S-R)))}if(--l,t+=8*(c+d)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Oo=null,_o=null;function Fs(e){return e.nodeType===9?e:e.ownerDocument}function rm(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 om(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 Do(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 Co=null;function _v(){var e=window.event;return e&&e.type==="popstate"?e===Co?!1:(Co=e,!0):(Co=null,!1)}var um=typeof setTimeout=="function"?setTimeout:void 0,Dv=typeof clearTimeout=="function"?clearTimeout:void 0,fm=typeof Promise=="function"?Promise:void 0,Cv=typeof queueMicrotask=="function"?queueMicrotask:typeof fm<"u"?function(e){return fm.resolve(null).then(e).catch(Mv)}:um;function Mv(e){setTimeout(function(){throw e})}function ll(e){return e==="head"}function dm(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),kn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Si(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Si(a);for(var c=a.firstChild;c;){var d=c.nextSibling,h=c.nodeName;c[Hn]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=d}}else a==="body"&&Si(e.ownerDocument.body);a=i}while(a);kn(t)}function pm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Mo(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":Mo(a),Hc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Uv(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Hn])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!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function Lv(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Xt(e.nextSibling),e===null))return null;return e}function mm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function Uo(e){return e.data==="$?"||e.data==="$~"}function Lo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function qv(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var qo=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Xt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function xm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function vm(e,t,a){switch(t=Fs(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Si(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Hc(e)}var Qt=new Map,gm=new Set;function Js(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _a=Q.d;Q.d={f:Hv,r:Bv,D:Yv,C:Gv,L:Vv,m:Xv,X:Zv,S:Qv,M:Kv};function Hv(){var e=_a.f(),t=Bs();return e||t}function Bv(e){var t=Gl(e);t!==null&&t.tag===5&&t.type==="form"?Md(t):_a.r(e)}var Sn=typeof document>"u"?null:document;function ym(e,t,a){var l=Sn;if(l&&typeof t=="string"&&t){var i=Lt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),gm.has(i)||(gm.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),pt(t,"link",e),it(t),l.head.appendChild(t)))}}function Yv(e){_a.D(e),ym("dns-prefetch",e,null)}function Gv(e,t){_a.C(e,t),ym("preconnect",e,t)}function Vv(e,t,a){_a.L(e,t,a);var l=Sn;if(l&&e&&t){var i='link[rel="preload"][as="'+Lt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Lt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Lt(a.imageSizes)+'"]')):i+='[href="'+Lt(e)+'"]';var c=i;switch(t){case"style":c=jn(e);break;case"script":c=wn(e)}Qt.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Qt.set(c,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(ji(c))||t==="script"&&l.querySelector(wi(c))||(t=l.createElement("link"),pt(t,"link",e),it(t),l.head.appendChild(t)))}}function Xv(e,t){_a.m(e,t);var a=Sn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Lt(l)+'"][href="'+Lt(e)+'"]',c=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wn(e)}if(!Qt.has(c)&&(e=b({rel:"modulepreload",href:e},t),Qt.set(c,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(wi(c)))return}l=a.createElement("link"),pt(l,"link",e),it(l),a.head.appendChild(l)}}}function Qv(e,t,a){_a.S(e,t,a);var l=Sn;if(l&&e){var i=Vl(l).hoistableStyles,c=jn(e);t=t||"default";var d=i.get(c);if(!d){var h={loading:0,preload:null};if(d=l.querySelector(ji(c)))h.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Qt.get(c))&&Ho(e,a);var S=d=l.createElement("link");it(S),pt(S,"link",e),S._p=new Promise(function(R,L){S.onload=R,S.onerror=L}),S.addEventListener("load",function(){h.loading|=1}),S.addEventListener("error",function(){h.loading|=2}),h.loading|=4,$s(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:h},i.set(c,d)}}}function Zv(e,t){_a.X(e,t);var a=Sn;if(a&&e){var l=Vl(a).hoistableScripts,i=wn(e),c=l.get(i);c||(c=a.querySelector(wi(i)),c||(e=b({src:e,async:!0},t),(t=Qt.get(i))&&Bo(e,t),c=a.createElement("script"),it(c),pt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(i,c))}}function Kv(e,t){_a.M(e,t);var a=Sn;if(a&&e){var l=Vl(a).hoistableScripts,i=wn(e),c=l.get(i);c||(c=a.querySelector(wi(i)),c||(e=b({src:e,async:!0,type:"module"},t),(t=Qt.get(i))&&Bo(e,t),c=a.createElement("script"),it(c),pt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(i,c))}}function bm(e,t,a,l){var i=(i=de.current)?Js(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=jn(a.href),a=Vl(i).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=jn(a.href);var c=Vl(i).hoistableStyles,d=c.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=i.querySelector(ji(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Qt.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},Qt.set(e,a),c||Fv(i,e,a,d.state))),t&&l===null)throw Error(o(528,""));return d}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wn(a),a=Vl(i).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(o(444,e))}}function jn(e){return'href="'+Lt(e)+'"'}function ji(e){return'link[rel="stylesheet"]['+e+"]"}function Sm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Fv(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}),pt(t,"link",a),it(t),e.head.appendChild(t))}function wn(e){return'[src="'+Lt(e)+'"]'}function wi(e){return"script[async]"+e}function jm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Lt(a.href)+'"]');if(l)return t.instance=l,it(l),l;var i=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),it(l),pt(l,"style",i),$s(l,a.precedence,e),t.instance=l;case"stylesheet":i=jn(a.href);var c=e.querySelector(ji(i));if(c)return t.state.loading|=4,t.instance=c,it(c),c;l=Sm(a),(i=Qt.get(i))&&Ho(l,i),c=(e.ownerDocument||e).createElement("link"),it(c);var d=c;return d._p=new Promise(function(h,S){d.onload=h,d.onerror=S}),pt(c,"link",l),t.state.loading|=4,$s(c,a.precedence,e),t.instance=c;case"script":return c=wn(a.src),(i=e.querySelector(wi(c)))?(t.instance=i,it(i),i):(l=a,(i=Qt.get(c))&&(l=b({},a),Bo(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),it(i),pt(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,$s(l,a.precedence,e));return t.instance}function $s(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,c=i,d=0;d<l.length;d++){var h=l[d];if(h.dataset.precedence===t)c=h;else if(c!==i)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ho(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Bo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ws=null;function wm(e,t,a){if(Ws===null){var l=new Map,i=Ws=new Map;i.set(a,l)}else i=Ws,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var c=a[i];if(!(c[Hn]||c[ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(t)||"";d=e+d;var h=l.get(d);h?h.push(c):l.set(d,[c])}}return l}function km(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Jv(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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 Em(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function $v(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=jn(l.href),c=t.querySelector(ji(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ps.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,it(c);return}c=t.ownerDocument||t,l=Sm(l),(i=Qt.get(i))&&Ho(l,i),c=c.createElement("link"),it(c);var d=c;d._p=new Promise(function(h,S){d.onload=h,d.onerror=S}),pt(c,"link",l),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ps.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Yo=0;function Wv(e,t){return e.stylesheets&&e.count===0&&ec(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&ec(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Yo===0&&(Yo=62500*Ov());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ec(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Yo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Ps(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ec(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Is=null;function ec(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Is=new Map,t.forEach(Pv,e),Is=null,Ps.call(e))}function Pv(e,t){if(!(t.state.loading&4)){var a=Is.get(e);if(a)var l=a.get(null);else{a=new Map,Is.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<i.length;c++){var d=i[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),l=d)}l&&a.set(null,l)}i=t.instance,d=i.getAttribute("data-precedence"),c=a.get(d)||l,c===l&&a.set(null,i),a.set(d,i),this.count++,l=Ps.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),c?c.parentNode.insertBefore(i,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ki={$$typeof:X,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Iv(e,t,a,l,i,c,d,h,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Mc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mc(0),this.hiddenUpdates=Mc(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Nm(e,t,a,l,i,c,d,h,S,R,L,V){return e=new Iv(e,t,a,d,S,R,L,V,h),t=1,c===!0&&(t|=24),c=zt(3,null,null,t),e.current=c,c.stateNode=e,t=yr(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},wr(c),e}function Am(e){return e?(e=Il,e):Il}function Tm(e,t,a,l,i,c){i=Am(i),l.context===null?l.context=i:l.pendingContext=i,l=Za(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Ka(e,l,t),a!==null&&(kt(a,e,t),ai(a,e,t))}function Rm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Go(e,t){Rm(e,t),(e=e.alternate)&&Rm(e,t)}function zm(e){if(e.tag===13||e.tag===31){var t=gl(e,67108864);t!==null&&kt(t,e,67108864),Go(e,67108864)}}function Om(e){if(e.tag===13||e.tag===31){var t=Mt();t=Uc(t);var a=gl(e,t);a!==null&&kt(a,e,t),Go(e,t)}}var tc=!0;function eg(e,t,a,l){var i=U.T;U.T=null;var c=Q.p;try{Q.p=2,Vo(e,t,a,l)}finally{Q.p=c,U.T=i}}function tg(e,t,a,l){var i=U.T;U.T=null;var c=Q.p;try{Q.p=8,Vo(e,t,a,l)}finally{Q.p=c,U.T=i}}function Vo(e,t,a,l){if(tc){var i=Xo(l);if(i===null)Ro(e,t,l,ac,a),Dm(e,l);else if(lg(i,e,t,a,l))l.stopPropagation();else if(Dm(e,l),t&4&&-1<ag.indexOf(e)){for(;i!==null;){var c=Gl(i);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=pl(c.pendingLanes);if(d!==0){var h=c;for(h.pendingLanes|=2,h.entangledLanes|=2;d;){var S=1<<31-rt(d);h.entanglements[1]|=S,d&=~S}sa(c),(ke&6)===0&&(qs=xt()+500,gi(0))}}break;case 31:case 13:h=gl(c,2),h!==null&&kt(h,c,2),Bs(),Go(c,2)}if(c=Xo(l),c===null&&Ro(e,t,l,ac,a),c===i)break;i=c}i!==null&&l.stopPropagation()}else Ro(e,t,l,null,a)}}function Xo(e){return e=Qc(e),Qo(e)}var ac=null;function Qo(e){if(ac=null,e=Yl(e),e!==null){var t=p(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===31){if(e=x(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 ac=e,null}function _m(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(K()){case te:return 2;case Ue:return 8;case Le:case tt:return 32;case At:return 268435456;default:return 32}default:return 32}}var Zo=!1,nl=null,il=null,sl=null,Ei=new Map,Ni=new Map,cl=[],ag="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 Dm(e,t){switch(e){case"focusin":case"focusout":nl=null;break;case"dragenter":case"dragleave":il=null;break;case"mouseover":case"mouseout":sl=null;break;case"pointerover":case"pointerout":Ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(t.pointerId)}}function Ai(e,t,a,l,i,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[i]},t!==null&&(t=Gl(t),t!==null&&zm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function lg(e,t,a,l,i){switch(t){case"focusin":return nl=Ai(nl,e,t,a,l,i),!0;case"dragenter":return il=Ai(il,e,t,a,l,i),!0;case"mouseover":return sl=Ai(sl,e,t,a,l,i),!0;case"pointerover":var c=i.pointerId;return Ei.set(c,Ai(Ei.get(c)||null,e,t,a,l,i)),!0;case"gotpointercapture":return c=i.pointerId,Ni.set(c,Ai(Ni.get(c)||null,e,t,a,l,i)),!0}return!1}function Cm(e){var t=Yl(e.target);if(t!==null){var a=p(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,Ku(e.priority,function(){Om(a)});return}}else if(t===31){if(t=x(a),t!==null){e.blockedOn=t,Ku(e.priority,function(){Om(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Xo(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Xc=l,a.target.dispatchEvent(l),Xc=null}else return t=Gl(a),t!==null&&zm(t),e.blockedOn=a,!1;t.shift()}return!0}function Mm(e,t,a){lc(e)&&a.delete(t)}function ng(){Zo=!1,nl!==null&&lc(nl)&&(nl=null),il!==null&&lc(il)&&(il=null),sl!==null&&lc(sl)&&(sl=null),Ei.forEach(Mm),Ni.forEach(Mm)}function nc(e,t){e.blockedOn===t&&(e.blockedOn=null,Zo||(Zo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ng)))}var ic=null;function Um(e){ic!==e&&(ic=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ic===e&&(ic=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Qo(l||a)===null)continue;break}var c=Gl(a);c!==null&&(e.splice(t,3),t-=3,Vr(c,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function kn(e){function t(S){return nc(S,e)}nl!==null&&nc(nl,e),il!==null&&nc(il,e),sl!==null&&nc(sl,e),Ei.forEach(t),Ni.forEach(t);for(var a=0;a<cl.length;a++){var l=cl[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<cl.length&&(a=cl[0],a.blockedOn===null);)Cm(a),a.blockedOn===null&&cl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],c=a[l+1],d=i[gt]||null;if(typeof c=="function")d||Um(a);else if(d){var h=null;if(c&&c.hasAttribute("formAction")){if(i=c,d=c[gt]||null)h=d.formAction;else if(Qo(i)!==null)continue}else h=d.action;typeof h=="function"?a[l+1]=h:(a.splice(l,3),l-=3),Um(a)}}}function Lm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return i=d})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Ko(e){this._internalRoot=e}sc.prototype.render=Ko.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=Mt();Tm(a,l,e,t,null,null)},sc.prototype.unmount=Ko.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tm(e.current,2,null,e,null,null),Bs(),t[Bl]=null}};function sc(e){this._internalRoot=e}sc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zu();e={blockedOn:null,target:e,priority:t};for(var a=0;a<cl.length&&t!==0&&t<cl[a].priority;a++);cl.splice(a,0,e),a===0&&Cm(e)}};var qm=s.version;if(qm!=="19.2.4")throw Error(o(527,qm,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=v(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var ig={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cc.isDisabled&&cc.supportsFiber)try{ma=cc.inject(ig),ct=cc}catch{}}return Ri.createRoot=function(e,t){if(!u(e))throw Error(o(299));var a=!1,l="",i=Qd,c=Zd,d=Kd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Nm(e,1,!1,null,null,a,l,null,i,c,d,Lm),e[Bl]=t.current,To(e),new Ko(t)},Ri.hydrateRoot=function(e,t,a){if(!u(e))throw Error(o(299));var l=!1,i="",c=Qd,d=Zd,h=Kd,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Nm(e,1,!0,t,a??null,l,i,S,c,d,h,Lm),t.context=Am(null),a=t.current,l=Mt(),l=Uc(l),i=Za(l),i.callback=null,Ka(a,i,l),a=l,t.current.lanes=a,qn(t,a),sa(t),e[Bl]=t.current,To(e),new sc(t)},Ri.version="19.2.4",Ri}var Fm;function mg(){if(Fm)return $o.exports;Fm=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(s){console.error(s)}}return n(),$o.exports=pg(),$o.exports}var hg=mg();var Jm="popstate";function xg(n={}){function s(o,u){let{pathname:p,search:m,hash:x}=o.location;return mu("",{pathname:p,search:m,hash:x},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(o,u){return typeof u=="string"?u:Ci(u)}return gg(s,r,null,n)}function Xe(n,s){if(n===!1||n===null||typeof n>"u")throw new Error(s)}function oa(n,s){if(!n){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function vg(){return Math.random().toString(36).substring(2,10)}function $m(n,s){return{usr:n.state,key:n.key,idx:s}}function mu(n,s,r=null,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof s=="string"?zn(s):s,state:r,key:s&&s.key||o||vg()}}function Ci({pathname:n="/",search:s="",hash:r=""}){return s&&s!=="?"&&(n+=s.charAt(0)==="?"?s:"?"+s),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function zn(n){let s={};if(n){let r=n.indexOf("#");r>=0&&(s.hash=n.substring(r),n=n.substring(0,r));let o=n.indexOf("?");o>=0&&(s.search=n.substring(o),n=n.substring(0,o)),n&&(s.pathname=n)}return s}function gg(n,s,r,o={}){let{window:u=document.defaultView,v5Compat:p=!1}=o,m=u.history,x="POP",g=null,v=y();v==null&&(v=0,m.replaceState({...m.state,idx:v},""));function y(){return(m.state||{idx:null}).idx}function b(){x="POP";let N=y(),G=N==null?null:N-v;v=N,g&&g({action:x,location:z.location,delta:G})}function _(N,G){x="PUSH";let M=mu(z.location,N,G);v=y()+1;let X=$m(M,v),P=z.createHref(M);try{m.pushState(X,"",P)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;u.location.assign(P)}p&&g&&g({action:x,location:z.location,delta:1})}function H(N,G){x="REPLACE";let M=mu(z.location,N,G);v=y();let X=$m(M,v),P=z.createHref(M);m.replaceState(X,"",P),p&&g&&g({action:x,location:z.location,delta:0})}function T(N){return yg(N)}let z={get action(){return x},get location(){return n(u,m)},listen(N){if(g)throw new Error("A history only accepts one active listener");return u.addEventListener(Jm,b),g=N,()=>{u.removeEventListener(Jm,b),g=null}},createHref(N){return s(u,N)},createURL:T,encodeLocation(N){let G=T(N);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:_,replace:H,go(N){return m.go(N)}};return z}function yg(n,s=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(r,"No window.location.(origin|href) available to create URL");let o=typeof n=="string"?n:Ci(n);return o=o.replace(/ $/,"%20"),!s&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Bh(n,s,r="/"){return bg(n,s,r,!1)}function bg(n,s,r,o){let u=typeof s=="string"?zn(s):s,p=Ca(u.pathname||"/",r);if(p==null)return null;let m=Yh(n);Sg(m);let x=null;for(let g=0;x==null&&g<m.length;++g){let v=_g(p);x=zg(m[g],v,o)}return x}function Yh(n,s=[],r=[],o="",u=!1){let p=(m,x,g=u,v)=>{let y={relativePath:v===void 0?m.path||"":v,caseSensitive:m.caseSensitive===!0,childrenIndex:x,route:m};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(o)&&g)return;Xe(y.relativePath.startsWith(o),`Absolute route path "${y.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(o.length)}let b=Da([o,y.relativePath]),_=r.concat(y);m.children&&m.children.length>0&&(Xe(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Yh(m.children,s,_,b,g)),!(m.path==null&&!m.index)&&s.push({path:b,score:Tg(b,m.index),routesMeta:_})};return n.forEach((m,x)=>{if(m.path===""||!m.path?.includes("?"))p(m,x);else for(let g of Gh(m.path))p(m,x,!0,g)}),s}function Gh(n){let s=n.split("/");if(s.length===0)return[];let[r,...o]=s,u=r.endsWith("?"),p=r.replace(/\?$/,"");if(o.length===0)return u?[p,""]:[p];let m=Gh(o.join("/")),x=[];return x.push(...m.map(g=>g===""?p:[p,g].join("/"))),u&&x.push(...m),x.map(g=>n.startsWith("/")&&g===""?"/":g)}function Sg(n){n.sort((s,r)=>s.score!==r.score?r.score-s.score:Rg(s.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var jg=/^:[\w-]+$/,wg=3,kg=2,Eg=1,Ng=10,Ag=-2,Wm=n=>n==="*";function Tg(n,s){let r=n.split("/"),o=r.length;return r.some(Wm)&&(o+=Ag),s&&(o+=kg),r.filter(u=>!Wm(u)).reduce((u,p)=>u+(jg.test(p)?wg:p===""?Eg:Ng),o)}function Rg(n,s){return n.length===s.length&&n.slice(0,-1).every((o,u)=>o===s[u])?n[n.length-1]-s[s.length-1]:0}function zg(n,s,r=!1){let{routesMeta:o}=n,u={},p="/",m=[];for(let x=0;x<o.length;++x){let g=o[x],v=x===o.length-1,y=p==="/"?s:s.slice(p.length)||"/",b=xc({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},y),_=g.route;if(!b&&v&&r&&!o[o.length-1].route.index&&(b=xc({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},y)),!b)return null;Object.assign(u,b.params),m.push({params:u,pathname:Da([p,b.pathname]),pathnameBase:Ug(Da([p,b.pathnameBase])),route:_}),b.pathnameBase!=="/"&&(p=Da([p,b.pathnameBase]))}return m}function xc(n,s){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,o]=Og(n.path,n.caseSensitive,n.end),u=s.match(r);if(!u)return null;let p=u[0],m=p.replace(/(.)\/+$/,"$1"),x=u.slice(1);return{params:o.reduce((v,{paramName:y,isOptional:b},_)=>{if(y==="*"){let T=x[_]||"";m=p.slice(0,p.length-T.length).replace(/(.)\/+$/,"$1")}const H=x[_];return b&&!H?v[y]=void 0:v[y]=(H||"").replace(/%2F/g,"/"),v},{}),pathname:p,pathnameBase:m,pattern:n}}function Og(n,s=!1,r=!0){oa(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 o=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,x,g)=>(o.push({paramName:x,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(o.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,s?void 0:"i"),o]}function _g(n){try{return n.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return oa(!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 (${s}).`),n}}function Ca(n,s){if(s==="/")return n;if(!n.toLowerCase().startsWith(s.toLowerCase()))return null;let r=s.endsWith("/")?s.length-1:s.length,o=n.charAt(r);return o&&o!=="/"?null:n.slice(r)||"/"}var Dg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Cg(n,s="/"){let{pathname:r,search:o="",hash:u=""}=typeof n=="string"?zn(n):n,p;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?p=Pm(r.substring(1),"/"):p=Pm(r,s)):p=s,{pathname:p,search:Lg(o),hash:qg(u)}}function Pm(n,s){let r=s.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function eu(n,s,r,o){return`Cannot include a '${n}' character in a manually specified \`to.${s}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Mg(n){return n.filter((s,r)=>r===0||s.route.path&&s.route.path.length>0)}function Vh(n){let s=Mg(n);return s.map((r,o)=>o===s.length-1?r.pathname:r.pathnameBase)}function Xh(n,s,r,o=!1){let u;typeof n=="string"?u=zn(n):(u={...n},Xe(!u.pathname||!u.pathname.includes("?"),eu("?","pathname","search",u)),Xe(!u.pathname||!u.pathname.includes("#"),eu("#","pathname","hash",u)),Xe(!u.search||!u.search.includes("#"),eu("#","search","hash",u)));let p=n===""||u.pathname==="",m=p?"/":u.pathname,x;if(m==null)x=r;else{let b=s.length-1;if(!o&&m.startsWith("..")){let _=m.split("/");for(;_[0]==="..";)_.shift(),b-=1;u.pathname=_.join("/")}x=b>=0?s[b]:"/"}let g=Cg(u,x),v=m&&m!=="/"&&m.endsWith("/"),y=(p||m===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(v||y)&&(g.pathname+="/"),g}var Da=n=>n.join("/").replace(/\/\/+/g,"/"),Ug=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Lg=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,qg=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Hg=class{constructor(n,s,r,o=!1){this.status=n,this.statusText=s||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Bg(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Yg(n){return n.map(s=>s.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Qh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Zh(n,s){let r=n;if(typeof r!="string"||!Dg.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,u=!1;if(Qh)try{let p=new URL(window.location.href),m=r.startsWith("//")?new URL(p.protocol+r):new URL(r),x=Ca(m.pathname,s);m.origin===p.origin&&x!=null?r=x+m.search+m.hash:u=!0}catch{oa(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:u,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Kh=["POST","PUT","PATCH","DELETE"];new Set(Kh);var Gg=["GET",...Kh];new Set(Gg);var On=j.createContext(null);On.displayName="DataRouter";var Ec=j.createContext(null);Ec.displayName="DataRouterState";var Vg=j.createContext(!1),Fh=j.createContext({isTransitioning:!1});Fh.displayName="ViewTransition";var Xg=j.createContext(new Map);Xg.displayName="Fetchers";var Qg=j.createContext(null);Qg.displayName="Await";var Kt=j.createContext(null);Kt.displayName="Navigation";var qi=j.createContext(null);qi.displayName="Location";var ua=j.createContext({outlet:null,matches:[],isDataRoute:!1});ua.displayName="Route";var _u=j.createContext(null);_u.displayName="RouteError";var Jh="REACT_ROUTER_ERROR",Zg="REDIRECT",Kg="ROUTE_ERROR_RESPONSE";function Fg(n){if(n.startsWith(`${Jh}:${Zg}:{`))try{let s=JSON.parse(n.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function Jg(n){if(n.startsWith(`${Jh}:${Kg}:{`))try{let s=JSON.parse(n.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new Hg(s.status,s.statusText,s.data)}catch{}}function $g(n,{relative:s}={}){Xe(Hi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=j.useContext(Kt),{hash:u,pathname:p,search:m}=Bi(n,{relative:s}),x=p;return r!=="/"&&(x=p==="/"?r:Da([r,p])),o.createHref({pathname:x,search:m,hash:u})}function Hi(){return j.useContext(qi)!=null}function ul(){return Xe(Hi(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(qi).location}var $h="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Wh(n){j.useContext(Kt).static||j.useLayoutEffect(n)}function Wg(){let{isDataRoute:n}=j.useContext(ua);return n?dy():Pg()}function Pg(){Xe(Hi(),"useNavigate() may be used only in the context of a <Router> component.");let n=j.useContext(On),{basename:s,navigator:r}=j.useContext(Kt),{matches:o}=j.useContext(ua),{pathname:u}=ul(),p=JSON.stringify(Vh(o)),m=j.useRef(!1);return Wh(()=>{m.current=!0}),j.useCallback((g,v={})=>{if(oa(m.current,$h),!m.current)return;if(typeof g=="number"){r.go(g);return}let y=Xh(g,JSON.parse(p),u,v.relative==="path");n==null&&s!=="/"&&(y.pathname=y.pathname==="/"?s:Da([s,y.pathname])),(v.replace?r.replace:r.push)(y,v.state,v)},[s,r,p,u,n])}var Ig=j.createContext(null);function ey(n){let s=j.useContext(ua).outlet;return j.useMemo(()=>s&&j.createElement(Ig.Provider,{value:n},s),[s,n])}function Bi(n,{relative:s}={}){let{matches:r}=j.useContext(ua),{pathname:o}=ul(),u=JSON.stringify(Vh(r));return j.useMemo(()=>Xh(n,JSON.parse(u),o,s==="path"),[n,u,o,s])}function ty(n,s){return Ph(n,s)}function Ph(n,s,r,o,u){Xe(Hi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:p}=j.useContext(Kt),{matches:m}=j.useContext(ua),x=m[m.length-1],g=x?x.params:{},v=x?x.pathname:"/",y=x?x.pathnameBase:"/",b=x&&x.route;{let M=b&&b.path||"";e0(v,!b||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${M}">) 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.
|
|
10
|
+
|
|
11
|
+
Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let _=ul(),H;if(s){let M=typeof s=="string"?zn(s):s;Xe(y==="/"||M.pathname?.startsWith(y),`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 "${y}" but pathname "${M.pathname}" was given in the \`location\` prop.`),H=M}else H=_;let T=H.pathname||"/",z=T;if(y!=="/"){let M=y.replace(/^\//,"").split("/");z="/"+T.replace(/^\//,"").split("/").slice(M.length).join("/")}let N=Bh(n,{pathname:z});oa(b||N!=null,`No routes matched location "${H.pathname}${H.search}${H.hash}" `),oa(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${H.pathname}${H.search}${H.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 G=sy(N&&N.map(M=>Object.assign({},M,{params:Object.assign({},g,M.params),pathname:Da([y,p.encodeLocation?p.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?y:Da([y,p.encodeLocation?p.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),m,r,o,u);return s&&G?j.createElement(qi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...H},navigationType:"POP"}},G):G}function ay(){let n=fy(),s=Bg(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,o="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:o},p={padding:"2px 4px",backgroundColor:o},m=null;return console.error("Error handled by React Router default ErrorBoundary:",n),m=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:p},"ErrorBoundary")," or"," ",j.createElement("code",{style:p},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},s),r?j.createElement("pre",{style:u},r):null,m)}var ly=j.createElement(ay,null),Ih=class extends j.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,s){return s.location!==n.location||s.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:s.error,location:s.location,revalidation:n.revalidation||s.revalidation}}componentDidCatch(n,s){this.props.onError?this.props.onError(n,s):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=Jg(n.digest);r&&(n=r)}let s=n!==void 0?j.createElement(ua.Provider,{value:this.props.routeContext},j.createElement(_u.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?j.createElement(ny,{error:n},s):s}};Ih.contextType=Vg;var tu=new WeakMap;function ny({children:n,error:s}){let{basename:r}=j.useContext(Kt);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let o=Fg(s.digest);if(o){let u=tu.get(s);if(u)throw u;let p=Zh(o.location,r);if(Qh&&!tu.get(s))if(p.isExternal||o.reloadDocument)window.location.href=p.absoluteURL||p.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:o.replace}));throw tu.set(s,m),m}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${p.absoluteURL||p.to}`})}}return n}function iy({routeContext:n,match:s,children:r}){let o=j.useContext(On);return o&&o.static&&o.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=s.route.id),j.createElement(ua.Provider,{value:n},r)}function sy(n,s=[],r=null,o=null,u=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(s.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let p=n,m=r?.errors;if(m!=null){let y=p.findIndex(b=>b.route.id&&m?.[b.route.id]!==void 0);Xe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),p=p.slice(0,Math.min(p.length,y+1))}let x=!1,g=-1;if(r)for(let y=0;y<p.length;y++){let b=p[y];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(g=y),b.route.id){let{loaderData:_,errors:H}=r,T=b.route.loader&&!_.hasOwnProperty(b.route.id)&&(!H||H[b.route.id]===void 0);if(b.route.lazy||T){x=!0,g>=0?p=p.slice(0,g+1):p=[p[0]];break}}}let v=r&&o?(y,b)=>{o(y,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Yg(r.matches),errorInfo:b})}:void 0;return p.reduceRight((y,b,_)=>{let H,T=!1,z=null,N=null;r&&(H=m&&b.route.id?m[b.route.id]:void 0,z=b.route.errorElement||ly,x&&(g<0&&_===0?(e0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,N=null):g===_&&(T=!0,N=b.route.hydrateFallbackElement||null)));let G=s.concat(p.slice(0,_+1)),M=()=>{let X;return H?X=z:T?X=N:b.route.Component?X=j.createElement(b.route.Component,null):b.route.element?X=b.route.element:X=y,j.createElement(iy,{match:b,routeContext:{outlet:y,matches:G,isDataRoute:r!=null},children:X})};return r&&(b.route.ErrorBoundary||b.route.errorElement||_===0)?j.createElement(Ih,{location:r.location,revalidation:r.revalidation,component:z,error:H,children:M(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:v}):M()},null)}function Du(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cy(n){let s=j.useContext(On);return Xe(s,Du(n)),s}function ry(n){let s=j.useContext(Ec);return Xe(s,Du(n)),s}function oy(n){let s=j.useContext(ua);return Xe(s,Du(n)),s}function Cu(n){let s=oy(n),r=s.matches[s.matches.length-1];return Xe(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function uy(){return Cu("useRouteId")}function fy(){let n=j.useContext(_u),s=ry("useRouteError"),r=Cu("useRouteError");return n!==void 0?n:s.errors?.[r]}function dy(){let{router:n}=cy("useNavigate"),s=Cu("useNavigate"),r=j.useRef(!1);return Wh(()=>{r.current=!0}),j.useCallback(async(u,p={})=>{oa(r.current,$h),r.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:s,...p}))},[n,s])}var Im={};function e0(n,s,r){!s&&!Im[n]&&(Im[n]=!0,oa(!1,r))}j.memo(py);function py({routes:n,future:s,state:r,onError:o}){return Ph(n,void 0,r,o,s)}function my(n){return ey(n.context)}function Ol(n){Xe(!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 hy({basename:n="/",children:s=null,location:r,navigationType:o="POP",navigator:u,static:p=!1,unstable_useTransitions:m}){Xe(!Hi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=n.replace(/^\/*/,"/"),g=j.useMemo(()=>({basename:x,navigator:u,static:p,unstable_useTransitions:m,future:{}}),[x,u,p,m]);typeof r=="string"&&(r=zn(r));let{pathname:v="/",search:y="",hash:b="",state:_=null,key:H="default"}=r,T=j.useMemo(()=>{let z=Ca(v,x);return z==null?null:{location:{pathname:z,search:y,hash:b,state:_,key:H},navigationType:o}},[x,v,y,b,_,H,o]);return oa(T!=null,`<Router basename="${x}"> is not able to match the URL "${v}${y}${b}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:j.createElement(Kt.Provider,{value:g},j.createElement(qi.Provider,{children:s,value:T}))}function xy({children:n,location:s}){return ty(hu(n),s)}function hu(n,s=[]){let r=[];return j.Children.forEach(n,(o,u)=>{if(!j.isValidElement(o))return;let p=[...s,u];if(o.type===j.Fragment){r.push.apply(r,hu(o.props.children,p));return}Xe(o.type===Ol,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xe(!o.props.index||!o.props.children,"An index route cannot have child routes.");let m={id:o.props.id||p.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(m.children=hu(o.props.children,p)),r.push(m)}),r}var fc="get",dc="application/x-www-form-urlencoded";function Nc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function vy(n){return Nc(n)&&n.tagName.toLowerCase()==="button"}function gy(n){return Nc(n)&&n.tagName.toLowerCase()==="form"}function yy(n){return Nc(n)&&n.tagName.toLowerCase()==="input"}function by(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Sy(n,s){return n.button===0&&(!s||s==="_self")&&!by(n)}var rc=null;function jy(){if(rc===null)try{new FormData(document.createElement("form"),0),rc=!1}catch{rc=!0}return rc}var wy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function au(n){return n!=null&&!wy.has(n)?(oa(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dc}"`),null):n}function ky(n,s){let r,o,u,p,m;if(gy(n)){let x=n.getAttribute("action");o=x?Ca(x,s):null,r=n.getAttribute("method")||fc,u=au(n.getAttribute("enctype"))||dc,p=new FormData(n)}else if(vy(n)||yy(n)&&(n.type==="submit"||n.type==="image")){let x=n.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||x.getAttribute("action");if(o=g?Ca(g,s):null,r=n.getAttribute("formmethod")||x.getAttribute("method")||fc,u=au(n.getAttribute("formenctype"))||au(x.getAttribute("enctype"))||dc,p=new FormData(x,n),!jy()){let{name:v,type:y,value:b}=n;if(y==="image"){let _=v?`${v}.`:"";p.append(`${_}x`,"0"),p.append(`${_}y`,"0")}else v&&p.append(v,b)}}else{if(Nc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=fc,o=null,u=dc,m=n}return p&&u==="text/plain"&&(m=p,p=void 0),{action:o,method:r.toLowerCase(),encType:u,formData:p,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mu(n,s){if(n===!1||n===null||typeof n>"u")throw new Error(s)}function Ey(n,s,r,o){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${o}`:u.pathname=`${u.pathname}.${o}`:u.pathname==="/"?u.pathname=`_root.${o}`:s&&Ca(u.pathname,s)==="/"?u.pathname=`${s.replace(/\/$/,"")}/_root.${o}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${o}`,u}async function Ny(n,s){if(n.id in s)return s[n.id];try{let r=await import(n.module);return s[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ay(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 Ty(n,s,r){let o=await Promise.all(n.map(async u=>{let p=s.routes[u.route.id];if(p){let m=await Ny(p,r);return m.links?m.links():[]}return[]}));return _y(o.flat(1).filter(Ay).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function eh(n,s,r,o,u,p){let m=(g,v)=>r[v]?g.route.id!==r[v].route.id:!0,x=(g,v)=>r[v].pathname!==g.pathname||r[v].route.path?.endsWith("*")&&r[v].params["*"]!==g.params["*"];return p==="assets"?s.filter((g,v)=>m(g,v)||x(g,v)):p==="data"?s.filter((g,v)=>{let y=o.routes[g.route.id];if(!y||!y.hasLoader)return!1;if(m(g,v)||x(g,v))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Ry(n,s,{includeHydrateFallback:r}={}){return zy(n.map(o=>{let u=s.routes[o.route.id];if(!u)return[];let p=[u.module];return u.clientActionModule&&(p=p.concat(u.clientActionModule)),u.clientLoaderModule&&(p=p.concat(u.clientLoaderModule)),r&&u.hydrateFallbackModule&&(p=p.concat(u.hydrateFallbackModule)),u.imports&&(p=p.concat(u.imports)),p}).flat(1))}function zy(n){return[...new Set(n)]}function Oy(n){let s={},r=Object.keys(n).sort();for(let o of r)s[o]=n[o];return s}function _y(n,s){let r=new Set;return new Set(s),n.reduce((o,u)=>{let p=JSON.stringify(Oy(u));return r.has(p)||(r.add(p),o.push({key:p,link:u})),o},[])}function t0(){let n=j.useContext(On);return Mu(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Dy(){let n=j.useContext(Ec);return Mu(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Uu=j.createContext(void 0);Uu.displayName="FrameworkContext";function a0(){let n=j.useContext(Uu);return Mu(n,"You must render this element inside a <HydratedRouter> element"),n}function Cy(n,s){let r=j.useContext(Uu),[o,u]=j.useState(!1),[p,m]=j.useState(!1),{onFocus:x,onBlur:g,onMouseEnter:v,onMouseLeave:y,onTouchStart:b}=s,_=j.useRef(null);j.useEffect(()=>{if(n==="render"&&m(!0),n==="viewport"){let z=G=>{G.forEach(M=>{m(M.isIntersecting)})},N=new IntersectionObserver(z,{threshold:.5});return _.current&&N.observe(_.current),()=>{N.disconnect()}}},[n]),j.useEffect(()=>{if(o){let z=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(z)}}},[o]);let H=()=>{u(!0)},T=()=>{u(!1),m(!1)};return r?n!=="intent"?[p,_,{}]:[p,_,{onFocus:zi(x,H),onBlur:zi(g,T),onMouseEnter:zi(v,H),onMouseLeave:zi(y,T),onTouchStart:zi(b,H)}]:[!1,_,{}]}function zi(n,s){return r=>{n&&n(r),r.defaultPrevented||s(r)}}function My({page:n,...s}){let{router:r}=t0(),o=j.useMemo(()=>Bh(r.routes,n,r.basename),[r.routes,n,r.basename]);return o?j.createElement(Ly,{page:n,matches:o,...s}):null}function Uy(n){let{manifest:s,routeModules:r}=a0(),[o,u]=j.useState([]);return j.useEffect(()=>{let p=!1;return Ty(n,s,r).then(m=>{p||u(m)}),()=>{p=!0}},[n,s,r]),o}function Ly({page:n,matches:s,...r}){let o=ul(),{future:u,manifest:p,routeModules:m}=a0(),{basename:x}=t0(),{loaderData:g,matches:v}=Dy(),y=j.useMemo(()=>eh(n,s,v,p,o,"data"),[n,s,v,p,o]),b=j.useMemo(()=>eh(n,s,v,p,o,"assets"),[n,s,v,p,o]),_=j.useMemo(()=>{if(n===o.pathname+o.search+o.hash)return[];let z=new Set,N=!1;if(s.forEach(M=>{let X=p.routes[M.route.id];!X||!X.hasLoader||(!y.some(P=>P.route.id===M.route.id)&&M.route.id in g&&m[M.route.id]?.shouldRevalidate||X.hasClientLoader?N=!0:z.add(M.route.id))}),z.size===0)return[];let G=Ey(n,x,u.unstable_trailingSlashAwareDataRequests,"data");return N&&z.size>0&&G.searchParams.set("_routes",s.filter(M=>z.has(M.route.id)).map(M=>M.route.id).join(",")),[G.pathname+G.search]},[x,u.unstable_trailingSlashAwareDataRequests,g,o,p,y,s,n,m]),H=j.useMemo(()=>Ry(b,p),[b,p]),T=Uy(b);return j.createElement(j.Fragment,null,_.map(z=>j.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...r})),H.map(z=>j.createElement("link",{key:z,rel:"modulepreload",href:z,...r})),T.map(({key:z,link:N})=>j.createElement("link",{key:z,nonce:r.nonce,...N,crossOrigin:N.crossOrigin??r.crossOrigin})))}function qy(...n){return s=>{n.forEach(r=>{typeof r=="function"?r(s):r!=null&&(r.current=s)})}}var Hy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Hy&&(window.__reactRouterVersion="7.13.0")}catch{}function By({basename:n,children:s,unstable_useTransitions:r,window:o}){let u=j.useRef();u.current==null&&(u.current=xg({window:o,v5Compat:!0}));let p=u.current,[m,x]=j.useState({action:p.action,location:p.location}),g=j.useCallback(v=>{r===!1?x(v):j.startTransition(()=>x(v))},[r]);return j.useLayoutEffect(()=>p.listen(g),[p,g]),j.createElement(hy,{basename:n,children:s,location:m.location,navigationType:m.action,navigator:p,unstable_useTransitions:r})}var l0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,n0=j.forwardRef(function({onClick:s,discover:r="render",prefetch:o="none",relative:u,reloadDocument:p,replace:m,state:x,target:g,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:_,...H},T){let{basename:z,unstable_useTransitions:N}=j.useContext(Kt),G=typeof v=="string"&&l0.test(v),M=Zh(v,z);v=M.to;let X=$g(v,{relative:u}),[P,ee,re]=Cy(o,H),Y=Vy(v,{replace:m,state:x,target:g,preventScrollReset:y,relative:u,viewTransition:b,unstable_defaultShouldRevalidate:_,unstable_useTransitions:N});function ne(Ye){s&&s(Ye),Ye.defaultPrevented||Y(Ye)}let Ee=j.createElement("a",{...H,...re,href:M.absoluteURL||X,onClick:M.isExternal||p?s:ne,ref:qy(T,ee),target:g,"data-discover":!G&&r==="render"?"true":void 0});return P&&!G?j.createElement(j.Fragment,null,Ee,j.createElement(My,{page:X})):Ee});n0.displayName="Link";var i0=j.forwardRef(function({"aria-current":s="page",caseSensitive:r=!1,className:o="",end:u=!1,style:p,to:m,viewTransition:x,children:g,...v},y){let b=Bi(m,{relative:v.relative}),_=ul(),H=j.useContext(Ec),{navigator:T,basename:z}=j.useContext(Kt),N=H!=null&&Fy(b)&&x===!0,G=T.encodeLocation?T.encodeLocation(b).pathname:b.pathname,M=_.pathname,X=H&&H.navigation&&H.navigation.location?H.navigation.location.pathname:null;r||(M=M.toLowerCase(),X=X?X.toLowerCase():null,G=G.toLowerCase()),X&&z&&(X=Ca(X,z)||X);const P=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let ee=M===G||!u&&M.startsWith(G)&&M.charAt(P)==="/",re=X!=null&&(X===G||!u&&X.startsWith(G)&&X.charAt(G.length)==="/"),Y={isActive:ee,isPending:re,isTransitioning:N},ne=ee?s:void 0,Ee;typeof o=="function"?Ee=o(Y):Ee=[o,ee?"active":null,re?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let Ye=typeof p=="function"?p(Y):p;return j.createElement(n0,{...v,"aria-current":ne,className:Ee,ref:y,style:Ye,to:m,viewTransition:x},typeof g=="function"?g(Y):g)});i0.displayName="NavLink";var Yy=j.forwardRef(({discover:n="render",fetcherKey:s,navigate:r,reloadDocument:o,replace:u,state:p,method:m=fc,action:x,onSubmit:g,relative:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:_,...H},T)=>{let{unstable_useTransitions:z}=j.useContext(Kt),N=Zy(),G=Ky(x,{relative:v}),M=m.toLowerCase()==="get"?"get":"post",X=typeof x=="string"&&l0.test(x),P=ee=>{if(g&&g(ee),ee.defaultPrevented)return;ee.preventDefault();let re=ee.nativeEvent.submitter,Y=re?.getAttribute("formmethod")||m,ne=()=>N(re||ee.currentTarget,{fetcherKey:s,method:Y,navigate:r,replace:u,state:p,relative:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:_});z&&r!==!1?j.startTransition(()=>ne()):ne()};return j.createElement("form",{ref:T,method:M,action:G,onSubmit:o?g:P,...H,"data-discover":!X&&n==="render"?"true":void 0})});Yy.displayName="Form";function Gy(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function s0(n){let s=j.useContext(On);return Xe(s,Gy(n)),s}function Vy(n,{target:s,replace:r,state:o,preventScrollReset:u,relative:p,viewTransition:m,unstable_defaultShouldRevalidate:x,unstable_useTransitions:g}={}){let v=Wg(),y=ul(),b=Bi(n,{relative:p});return j.useCallback(_=>{if(Sy(_,s)){_.preventDefault();let H=r!==void 0?r:Ci(y)===Ci(b),T=()=>v(n,{replace:H,state:o,preventScrollReset:u,relative:p,viewTransition:m,unstable_defaultShouldRevalidate:x});g?j.startTransition(()=>T()):T()}},[y,v,b,r,o,s,n,u,p,m,x,g])}var Xy=0,Qy=()=>`__${String(++Xy)}__`;function Zy(){let{router:n}=s0("useSubmit"),{basename:s}=j.useContext(Kt),r=uy(),o=n.fetch,u=n.navigate;return j.useCallback(async(p,m={})=>{let{action:x,method:g,encType:v,formData:y,body:b}=ky(p,s);if(m.navigate===!1){let _=m.fetcherKey||Qy();await o(_,r,m.action||x,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:y,body:b,formMethod:m.method||g,formEncType:m.encType||v,flushSync:m.flushSync})}else await u(m.action||x,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:y,body:b,formMethod:m.method||g,formEncType:m.encType||v,replace:m.replace,state:m.state,fromRouteId:r,flushSync:m.flushSync,viewTransition:m.viewTransition})},[o,u,s,r])}function Ky(n,{relative:s}={}){let{basename:r}=j.useContext(Kt),o=j.useContext(ua);Xe(o,"useFormAction must be used inside a RouteContext");let[u]=o.matches.slice(-1),p={...Bi(n||".",{relative:s})},m=ul();if(n==null){p.search=m.search;let x=new URLSearchParams(p.search),g=x.getAll("index");if(g.some(y=>y==="")){x.delete("index"),g.filter(b=>b).forEach(b=>x.append("index",b));let y=x.toString();p.search=y?`?${y}`:""}}return(!n||n===".")&&u.route.index&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(p.pathname=p.pathname==="/"?r:Da([r,p.pathname])),Ci(p)}function Fy(n,{relative:s}={}){let r=j.useContext(Fh);Xe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=s0("useViewTransitionState"),u=Bi(n,{relative:s});if(!r.isTransitioning)return!1;let p=Ca(r.currentLocation.pathname,o)||r.currentLocation.pathname,m=Ca(r.nextLocation.pathname,o)||r.nextLocation.pathname;return xc(u.pathname,m)!=null||xc(u.pathname,p)!=null}var Jy=Hh();const $y=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wy=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,r,o)=>o?o.toUpperCase():r.toLowerCase()),th=n=>{const s=Wy(n);return s.charAt(0).toUpperCase()+s.slice(1)},c0=(...n)=>n.filter((s,r,o)=>!!s&&s.trim()!==""&&o.indexOf(s)===r).join(" ").trim(),Py=n=>{for(const s in n)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};var Iy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const eb=j.forwardRef(({color:n="currentColor",size:s=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:u="",children:p,iconNode:m,...x},g)=>j.createElement("svg",{ref:g,...Iy,width:s,height:s,stroke:n,strokeWidth:o?Number(r)*24/Number(s):r,className:c0("lucide",u),...!p&&!Py(x)&&{"aria-hidden":"true"},...x},[...m.map(([v,y])=>j.createElement(v,y)),...Array.isArray(p)?p:[p]]));const ue=(n,s)=>{const r=j.forwardRef(({className:o,...u},p)=>j.createElement(eb,{ref:p,iconNode:s,className:c0(`lucide-${$y(th(n))}`,`lucide-${n}`,o),...u}));return r.displayName=th(n),r};const tb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],lu=ue("arrow-right",tb);const ab=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],vc=ue("box",ab);const lb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],r0=ue("check",lb);const nb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],ib=ue("circle-arrow-up",nb);const sb=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],o0=ue("circle-check-big",sb);const cb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],u0=ue("circle-x",cb);const rb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],ob=ue("clock",rb);const ub=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],fb=ue("code",ub);const db=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],ah=ue("database",db);const pb=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],lh=ue("download",pb);const mb=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],hb=ue("ellipsis-vertical",mb);const xb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],vb=ue("external-link",xb);const gb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],nu=ue("file-text",gb);const yb=[["path",{d:"M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3",key:"128dxu"}],["path",{d:"m14.305 19.53.923-.382",key:"3m78fa"}],["path",{d:"m15.228 16.852-.923-.383",key:"npixar"}],["path",{d:"m16.852 15.228-.383-.923",key:"5xggr7"}],["path",{d:"m16.852 20.772-.383.924",key:"dpfhf9"}],["path",{d:"m19.148 15.228.383-.923",key:"1reyyz"}],["path",{d:"m19.53 21.696-.382-.924",key:"1goivc"}],["path",{d:"m20.772 16.852.924-.383",key:"htqkph"}],["path",{d:"m20.772 19.148.924.383",key:"9w9pjp"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]],bb=ue("folder-cog",yb);const Sb=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],ol=ue("folder-open",Sb);const jb=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],gc=ue("git-branch",jb);const wb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],kb=ue("globe",wb);const Eb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Nb=ue("grid-3x3",Eb);const Ab=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],xu=ue("info",Ab);const Tb=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Rb=ue("layout-dashboard",Tb);const zb=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],yc=ue("link-2",zb);const Ob=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],_b=ue("list",Ob);const Db=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],It=ue("loader-circle",Db);const Cb=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Mb=ue("menu",Cb);const Ub=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Lb=ue("message-square",Ub);const qb=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Hb=ue("monitor",qb);const Bb=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],En=ue("package",Bb);const Yb=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Gb=ue("pencil",Yb);const Vb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],bc=ue("plus",Vb);const Xb=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Qb=ue("refresh-cw",Xb);const Zb=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Kb=ue("save",Zb);const Fb=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],vu=ue("search",Fb);const Jb=[["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"}]],$b=ue("settings",Jb);const Wb=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],iu=ue("share-2",Wb);const Pb=[["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"}]],f0=ue("sparkles",Pb);const Ib=[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]],Nn=ue("store",Ib);const e1=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],t1=ue("terminal",e1);const a1=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],d0=ue("trash-2",a1);const l1=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],n1=ue("trending-up",l1);const i1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gu=ue("triangle-alert",i1);const s1=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],Mi=ue("upload",s1);const c1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fl=ue("x",c1);function p0(n){var s,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(s=0;s<u;s++)n[s]&&(r=p0(n[s]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function Me(){for(var n,s,r=0,o="",u=arguments.length;r<u;r++)(n=arguments[r])&&(s=p0(n))&&(o&&(o+=" "),o+=s);return o}const nh=n=>{let s;const r=new Set,o=(v,y)=>{const b=typeof v=="function"?v(s):v;if(!Object.is(b,s)){const _=s;s=y??(typeof b!="object"||b===null)?b:Object.assign({},s,b),r.forEach(H=>H(s,_))}},u=()=>s,x={setState:o,getState:u,getInitialState:()=>g,subscribe:v=>(r.add(v),()=>r.delete(v))},g=s=n(o,u,x);return x},r1=(n=>n?nh(n):nh),o1=n=>n;function u1(n,s=o1){const r=Di.useSyncExternalStore(n.subscribe,Di.useCallback(()=>s(n.getState()),[n,s]),Di.useCallback(()=>s(n.getInitialState()),[n,s]));return Di.useDebugValue(r),r}const ih=n=>{const s=r1(n),r=o=>u1(s,o);return Object.assign(r,s),r},f1=(n=>n?ih(n):ih);function m0(n,s){return function(){return n.apply(s,arguments)}}const{toString:d1}=Object.prototype,{getPrototypeOf:Lu}=Object,{iterator:Ac,toStringTag:h0}=Symbol,Tc=(n=>s=>{const r=d1.call(s);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ea=n=>(n=n.toLowerCase(),s=>Tc(s)===n),Rc=n=>s=>typeof s===n,{isArray:_n}=Array,Tn=Rc("undefined");function Yi(n){return n!==null&&!Tn(n)&&n.constructor!==null&&!Tn(n.constructor)&&Et(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const x0=ea("ArrayBuffer");function p1(n){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(n):s=n&&n.buffer&&x0(n.buffer),s}const m1=Rc("string"),Et=Rc("function"),v0=Rc("number"),Gi=n=>n!==null&&typeof n=="object",h1=n=>n===!0||n===!1,pc=n=>{if(Tc(n)!=="object")return!1;const s=Lu(n);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(h0 in n)&&!(Ac in n)},x1=n=>{if(!Gi(n)||Yi(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},v1=ea("Date"),g1=ea("File"),y1=ea("Blob"),b1=ea("FileList"),S1=n=>Gi(n)&&Et(n.pipe),j1=n=>{let s;return n&&(typeof FormData=="function"&&n instanceof FormData||Et(n.append)&&((s=Tc(n))==="formdata"||s==="object"&&Et(n.toString)&&n.toString()==="[object FormData]"))},w1=ea("URLSearchParams"),[k1,E1,N1,A1]=["ReadableStream","Request","Response","Headers"].map(ea),T1=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vi(n,s,{allOwnKeys:r=!1}={}){if(n===null||typeof n>"u")return;let o,u;if(typeof n!="object"&&(n=[n]),_n(n))for(o=0,u=n.length;o<u;o++)s.call(null,n[o],o,n);else{if(Yi(n))return;const p=r?Object.getOwnPropertyNames(n):Object.keys(n),m=p.length;let x;for(o=0;o<m;o++)x=p[o],s.call(null,n[x],x,n)}}function g0(n,s){if(Yi(n))return null;s=s.toLowerCase();const r=Object.keys(n);let o=r.length,u;for(;o-- >0;)if(u=r[o],s===u.toLowerCase())return u;return null}const Dl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,y0=n=>!Tn(n)&&n!==Dl;function yu(){const{caseless:n,skipUndefined:s}=y0(this)&&this||{},r={},o=(u,p)=>{const m=n&&g0(r,p)||p;pc(r[m])&&pc(u)?r[m]=yu(r[m],u):pc(u)?r[m]=yu({},u):_n(u)?r[m]=u.slice():(!s||!Tn(u))&&(r[m]=u)};for(let u=0,p=arguments.length;u<p;u++)arguments[u]&&Vi(arguments[u],o);return r}const R1=(n,s,r,{allOwnKeys:o}={})=>(Vi(s,(u,p)=>{r&&Et(u)?Object.defineProperty(n,p,{value:m0(u,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,p,{value:u,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),n),z1=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),O1=(n,s,r,o)=>{n.prototype=Object.create(s.prototype,o),Object.defineProperty(n.prototype,"constructor",{value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{value:s.prototype}),r&&Object.assign(n.prototype,r)},_1=(n,s,r,o)=>{let u,p,m;const x={};if(s=s||{},n==null)return s;do{for(u=Object.getOwnPropertyNames(n),p=u.length;p-- >0;)m=u[p],(!o||o(m,n,s))&&!x[m]&&(s[m]=n[m],x[m]=!0);n=r!==!1&&Lu(n)}while(n&&(!r||r(n,s))&&n!==Object.prototype);return s},D1=(n,s,r)=>{n=String(n),(r===void 0||r>n.length)&&(r=n.length),r-=s.length;const o=n.indexOf(s,r);return o!==-1&&o===r},C1=n=>{if(!n)return null;if(_n(n))return n;let s=n.length;if(!v0(s))return null;const r=new Array(s);for(;s-- >0;)r[s]=n[s];return r},M1=(n=>s=>n&&s instanceof n)(typeof Uint8Array<"u"&&Lu(Uint8Array)),U1=(n,s)=>{const o=(n&&n[Ac]).call(n);let u;for(;(u=o.next())&&!u.done;){const p=u.value;s.call(n,p[0],p[1])}},L1=(n,s)=>{let r;const o=[];for(;(r=n.exec(s))!==null;)o.push(r);return o},q1=ea("HTMLFormElement"),H1=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,u){return o.toUpperCase()+u}),sh=(({hasOwnProperty:n})=>(s,r)=>n.call(s,r))(Object.prototype),B1=ea("RegExp"),b0=(n,s)=>{const r=Object.getOwnPropertyDescriptors(n),o={};Vi(r,(u,p)=>{let m;(m=s(u,p,n))!==!1&&(o[p]=m||u)}),Object.defineProperties(n,o)},Y1=n=>{b0(n,(s,r)=>{if(Et(n)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=n[r];if(Et(o)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},G1=(n,s)=>{const r={},o=u=>{u.forEach(p=>{r[p]=!0})};return _n(n)?o(n):o(String(n).split(s)),r},V1=()=>{},X1=(n,s)=>n!=null&&Number.isFinite(n=+n)?n:s;function Q1(n){return!!(n&&Et(n.append)&&n[h0]==="FormData"&&n[Ac])}const Z1=n=>{const s=new Array(10),r=(o,u)=>{if(Gi(o)){if(s.indexOf(o)>=0)return;if(Yi(o))return o;if(!("toJSON"in o)){s[u]=o;const p=_n(o)?[]:{};return Vi(o,(m,x)=>{const g=r(m,u+1);!Tn(g)&&(p[x]=g)}),s[u]=void 0,p}}return o};return r(n,0)},K1=ea("AsyncFunction"),F1=n=>n&&(Gi(n)||Et(n))&&Et(n.then)&&Et(n.catch),S0=((n,s)=>n?setImmediate:s?((r,o)=>(Dl.addEventListener("message",({source:u,data:p})=>{u===Dl&&p===r&&o.length&&o.shift()()},!1),u=>{o.push(u),Dl.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Et(Dl.postMessage)),J1=typeof queueMicrotask<"u"?queueMicrotask.bind(Dl):typeof process<"u"&&process.nextTick||S0,$1=n=>n!=null&&Et(n[Ac]),C={isArray:_n,isArrayBuffer:x0,isBuffer:Yi,isFormData:j1,isArrayBufferView:p1,isString:m1,isNumber:v0,isBoolean:h1,isObject:Gi,isPlainObject:pc,isEmptyObject:x1,isReadableStream:k1,isRequest:E1,isResponse:N1,isHeaders:A1,isUndefined:Tn,isDate:v1,isFile:g1,isBlob:y1,isRegExp:B1,isFunction:Et,isStream:S1,isURLSearchParams:w1,isTypedArray:M1,isFileList:b1,forEach:Vi,merge:yu,extend:R1,trim:T1,stripBOM:z1,inherits:O1,toFlatObject:_1,kindOf:Tc,kindOfTest:ea,endsWith:D1,toArray:C1,forEachEntry:U1,matchAll:L1,isHTMLForm:q1,hasOwnProperty:sh,hasOwnProp:sh,reduceDescriptors:b0,freezeMethods:Y1,toObjectSet:G1,toCamelCase:H1,noop:V1,toFiniteNumber:X1,findKey:g0,global:Dl,isContextDefined:y0,isSpecCompliantForm:Q1,toJSONObject:Z1,isAsyncFn:K1,isThenable:F1,setImmediate:S0,asap:J1,isIterable:$1};let se=class j0 extends Error{static from(s,r,o,u,p,m){const x=new j0(s.message,r||s.code,o,u,p);return x.cause=s,x.name=s.name,m&&Object.assign(x,m),x}constructor(s,r,o,u,p){super(s),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),o&&(this.config=o),u&&(this.request=u),p&&(this.response=p,this.status=p.status)}toJSON(){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:C.toJSONObject(this.config),code:this.code,status:this.status}}};se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";se.ERR_BAD_OPTION="ERR_BAD_OPTION";se.ECONNABORTED="ECONNABORTED";se.ETIMEDOUT="ETIMEDOUT";se.ERR_NETWORK="ERR_NETWORK";se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";se.ERR_DEPRECATED="ERR_DEPRECATED";se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";se.ERR_BAD_REQUEST="ERR_BAD_REQUEST";se.ERR_CANCELED="ERR_CANCELED";se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";se.ERR_INVALID_URL="ERR_INVALID_URL";const W1=null;function bu(n){return C.isPlainObject(n)||C.isArray(n)}function w0(n){return C.endsWith(n,"[]")?n.slice(0,-2):n}function ch(n,s,r){return n?n.concat(s).map(function(u,p){return u=w0(u),!r&&p?"["+u+"]":u}).join(r?".":""):s}function P1(n){return C.isArray(n)&&!n.some(bu)}const I1=C.toFlatObject(C,{},null,function(s){return/^is[A-Z]/.test(s)});function zc(n,s,r){if(!C.isObject(n))throw new TypeError("target must be an object");s=s||new FormData,r=C.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(z,N){return!C.isUndefined(N[z])});const o=r.metaTokens,u=r.visitor||y,p=r.dots,m=r.indexes,g=(r.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(s);if(!C.isFunction(u))throw new TypeError("visitor must be a function");function v(T){if(T===null)return"";if(C.isDate(T))return T.toISOString();if(C.isBoolean(T))return T.toString();if(!g&&C.isBlob(T))throw new se("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(T)||C.isTypedArray(T)?g&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function y(T,z,N){let G=T;if(T&&!N&&typeof T=="object"){if(C.endsWith(z,"{}"))z=o?z:z.slice(0,-2),T=JSON.stringify(T);else if(C.isArray(T)&&P1(T)||(C.isFileList(T)||C.endsWith(z,"[]"))&&(G=C.toArray(T)))return z=w0(z),G.forEach(function(X,P){!(C.isUndefined(X)||X===null)&&s.append(m===!0?ch([z],P,p):m===null?z:z+"[]",v(X))}),!1}return bu(T)?!0:(s.append(ch(N,z,p),v(T)),!1)}const b=[],_=Object.assign(I1,{defaultVisitor:y,convertValue:v,isVisitable:bu});function H(T,z){if(!C.isUndefined(T)){if(b.indexOf(T)!==-1)throw Error("Circular reference detected in "+z.join("."));b.push(T),C.forEach(T,function(G,M){(!(C.isUndefined(G)||G===null)&&u.call(s,G,C.isString(M)?M.trim():M,z,_))===!0&&H(G,z?z.concat(M):[M])}),b.pop()}}if(!C.isObject(n))throw new TypeError("data must be an object");return H(n),s}function rh(n){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(o){return s[o]})}function qu(n,s){this._pairs=[],n&&zc(n,this,s)}const k0=qu.prototype;k0.append=function(s,r){this._pairs.push([s,r])};k0.toString=function(s){const r=s?function(o){return s.call(this,o,rh)}:rh;return this._pairs.map(function(u){return r(u[0])+"="+r(u[1])},"").join("&")};function e2(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function E0(n,s,r){if(!s)return n;const o=r&&r.encode||e2,u=C.isFunction(r)?{serialize:r}:r,p=u&&u.serialize;let m;if(p?m=p(s,u):m=C.isURLSearchParams(s)?s.toString():new qu(s,u).toString(o),m){const x=n.indexOf("#");x!==-1&&(n=n.slice(0,x)),n+=(n.indexOf("?")===-1?"?":"&")+m}return n}class oh{constructor(){this.handlers=[]}use(s,r,o){return this.handlers.push({fulfilled:s,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){C.forEach(this.handlers,function(o){o!==null&&s(o)})}}const N0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},t2=typeof URLSearchParams<"u"?URLSearchParams:qu,a2=typeof FormData<"u"?FormData:null,l2=typeof Blob<"u"?Blob:null,n2={isBrowser:!0,classes:{URLSearchParams:t2,FormData:a2,Blob:l2},protocols:["http","https","file","blob","url","data"]},Hu=typeof window<"u"&&typeof document<"u",Su=typeof navigator=="object"&&navigator||void 0,i2=Hu&&(!Su||["ReactNative","NativeScript","NS"].indexOf(Su.product)<0),s2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c2=Hu&&window.location.href||"http://localhost",r2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hu,hasStandardBrowserEnv:i2,hasStandardBrowserWebWorkerEnv:s2,navigator:Su,origin:c2},Symbol.toStringTag,{value:"Module"})),ht={...r2,...n2};function o2(n,s){return zc(n,new ht.classes.URLSearchParams,{visitor:function(r,o,u,p){return ht.isNode&&C.isBuffer(r)?(this.append(o,r.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...s})}function u2(n){return C.matchAll(/\w+|\[(\w*)]/g,n).map(s=>s[0]==="[]"?"":s[1]||s[0])}function f2(n){const s={},r=Object.keys(n);let o;const u=r.length;let p;for(o=0;o<u;o++)p=r[o],s[p]=n[p];return s}function A0(n){function s(r,o,u,p){let m=r[p++];if(m==="__proto__")return!0;const x=Number.isFinite(+m),g=p>=r.length;return m=!m&&C.isArray(u)?u.length:m,g?(C.hasOwnProp(u,m)?u[m]=[u[m],o]:u[m]=o,!x):((!u[m]||!C.isObject(u[m]))&&(u[m]=[]),s(r,o,u[m],p)&&C.isArray(u[m])&&(u[m]=f2(u[m])),!x)}if(C.isFormData(n)&&C.isFunction(n.entries)){const r={};return C.forEachEntry(n,(o,u)=>{s(u2(o),u,r,0)}),r}return null}function d2(n,s,r){if(C.isString(n))try{return(s||JSON.parse)(n),C.trim(n)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(n)}const Xi={transitional:N0,adapter:["xhr","http","fetch"],transformRequest:[function(s,r){const o=r.getContentType()||"",u=o.indexOf("application/json")>-1,p=C.isObject(s);if(p&&C.isHTMLForm(s)&&(s=new FormData(s)),C.isFormData(s))return u?JSON.stringify(A0(s)):s;if(C.isArrayBuffer(s)||C.isBuffer(s)||C.isStream(s)||C.isFile(s)||C.isBlob(s)||C.isReadableStream(s))return s;if(C.isArrayBufferView(s))return s.buffer;if(C.isURLSearchParams(s))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let x;if(p){if(o.indexOf("application/x-www-form-urlencoded")>-1)return o2(s,this.formSerializer).toString();if((x=C.isFileList(s))||o.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return zc(x?{"files[]":s}:s,g&&new g,this.formSerializer)}}return p||u?(r.setContentType("application/json",!1),d2(s)):s}],transformResponse:[function(s){const r=this.transitional||Xi.transitional,o=r&&r.forcedJSONParsing,u=this.responseType==="json";if(C.isResponse(s)||C.isReadableStream(s))return s;if(s&&C.isString(s)&&(o&&!this.responseType||u)){const m=!(r&&r.silentJSONParsing)&&u;try{return JSON.parse(s,this.parseReviver)}catch(x){if(m)throw x.name==="SyntaxError"?se.from(x,se.ERR_BAD_RESPONSE,this,null,this.response):x}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],n=>{Xi.headers[n]={}});const p2=C.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"]),m2=n=>{const s={};let r,o,u;return n&&n.split(`
|
|
12
|
+
`).forEach(function(m){u=m.indexOf(":"),r=m.substring(0,u).trim().toLowerCase(),o=m.substring(u+1).trim(),!(!r||s[r]&&p2[r])&&(r==="set-cookie"?s[r]?s[r].push(o):s[r]=[o]:s[r]=s[r]?s[r]+", "+o:o)}),s},uh=Symbol("internals");function Oi(n){return n&&String(n).trim().toLowerCase()}function mc(n){return n===!1||n==null?n:C.isArray(n)?n.map(mc):String(n)}function h2(n){const s=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(n);)s[o[1]]=o[2];return s}const x2=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function su(n,s,r,o,u){if(C.isFunction(o))return o.call(this,s,r);if(u&&(s=r),!!C.isString(s)){if(C.isString(o))return s.indexOf(o)!==-1;if(C.isRegExp(o))return o.test(s)}}function v2(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,r,o)=>r.toUpperCase()+o)}function g2(n,s){const r=C.toCamelCase(" "+s);["get","set","has"].forEach(o=>{Object.defineProperty(n,o+r,{value:function(u,p,m){return this[o].call(this,s,u,p,m)},configurable:!0})})}let Nt=class{constructor(s){s&&this.set(s)}set(s,r,o){const u=this;function p(x,g,v){const y=Oi(g);if(!y)throw new Error("header name must be a non-empty string");const b=C.findKey(u,y);(!b||u[b]===void 0||v===!0||v===void 0&&u[b]!==!1)&&(u[b||g]=mc(x))}const m=(x,g)=>C.forEach(x,(v,y)=>p(v,y,g));if(C.isPlainObject(s)||s instanceof this.constructor)m(s,r);else if(C.isString(s)&&(s=s.trim())&&!x2(s))m(m2(s),r);else if(C.isObject(s)&&C.isIterable(s)){let x={},g,v;for(const y of s){if(!C.isArray(y))throw TypeError("Object iterator must return a key-value pair");x[v=y[0]]=(g=x[v])?C.isArray(g)?[...g,y[1]]:[g,y[1]]:y[1]}m(x,r)}else s!=null&&p(r,s,o);return this}get(s,r){if(s=Oi(s),s){const o=C.findKey(this,s);if(o){const u=this[o];if(!r)return u;if(r===!0)return h2(u);if(C.isFunction(r))return r.call(this,u,o);if(C.isRegExp(r))return r.exec(u);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,r){if(s=Oi(s),s){const o=C.findKey(this,s);return!!(o&&this[o]!==void 0&&(!r||su(this,this[o],o,r)))}return!1}delete(s,r){const o=this;let u=!1;function p(m){if(m=Oi(m),m){const x=C.findKey(o,m);x&&(!r||su(o,o[x],x,r))&&(delete o[x],u=!0)}}return C.isArray(s)?s.forEach(p):p(s),u}clear(s){const r=Object.keys(this);let o=r.length,u=!1;for(;o--;){const p=r[o];(!s||su(this,this[p],p,s,!0))&&(delete this[p],u=!0)}return u}normalize(s){const r=this,o={};return C.forEach(this,(u,p)=>{const m=C.findKey(o,p);if(m){r[m]=mc(u),delete r[p];return}const x=s?v2(p):String(p).trim();x!==p&&delete r[p],r[x]=mc(u),o[x]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const r=Object.create(null);return C.forEach(this,(o,u)=>{o!=null&&o!==!1&&(r[u]=s&&C.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,r])=>s+": "+r).join(`
|
|
13
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...r){const o=new this(s);return r.forEach(u=>o.set(u)),o}static accessor(s){const o=(this[uh]=this[uh]={accessors:{}}).accessors,u=this.prototype;function p(m){const x=Oi(m);o[x]||(g2(u,m),o[x]=!0)}return C.isArray(s)?s.forEach(p):p(s),this}};Nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(Nt.prototype,({value:n},s)=>{let r=s[0].toUpperCase()+s.slice(1);return{get:()=>n,set(o){this[r]=o}}});C.freezeMethods(Nt);function cu(n,s){const r=this||Xi,o=s||r,u=Nt.from(o.headers);let p=o.data;return C.forEach(n,function(x){p=x.call(r,p,u.normalize(),s?s.status:void 0)}),u.normalize(),p}function T0(n){return!!(n&&n.__CANCEL__)}let Qi=class extends se{constructor(s,r,o){super(s??"canceled",se.ERR_CANCELED,r,o),this.name="CanceledError",this.__CANCEL__=!0}};function R0(n,s,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?n(r):s(new se("Request failed with status code "+r.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function y2(n){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return s&&s[1]||""}function b2(n,s){n=n||10;const r=new Array(n),o=new Array(n);let u=0,p=0,m;return s=s!==void 0?s:1e3,function(g){const v=Date.now(),y=o[p];m||(m=v),r[u]=g,o[u]=v;let b=p,_=0;for(;b!==u;)_+=r[b++],b=b%n;if(u=(u+1)%n,u===p&&(p=(p+1)%n),v-m<s)return;const H=y&&v-y;return H?Math.round(_*1e3/H):void 0}}function S2(n,s){let r=0,o=1e3/s,u,p;const m=(v,y=Date.now())=>{r=y,u=null,p&&(clearTimeout(p),p=null),n(...v)};return[(...v)=>{const y=Date.now(),b=y-r;b>=o?m(v,y):(u=v,p||(p=setTimeout(()=>{p=null,m(u)},o-b)))},()=>u&&m(u)]}const Sc=(n,s,r=3)=>{let o=0;const u=b2(50,250);return S2(p=>{const m=p.loaded,x=p.lengthComputable?p.total:void 0,g=m-o,v=u(g),y=m<=x;o=m;const b={loaded:m,total:x,progress:x?m/x:void 0,bytes:g,rate:v||void 0,estimated:v&&x&&y?(x-m)/v:void 0,event:p,lengthComputable:x!=null,[s?"download":"upload"]:!0};n(b)},r)},fh=(n,s)=>{const r=n!=null;return[o=>s[0]({lengthComputable:r,total:n,loaded:o}),s[1]]},dh=n=>(...s)=>C.asap(()=>n(...s)),j2=ht.hasStandardBrowserEnv?((n,s)=>r=>(r=new URL(r,ht.origin),n.protocol===r.protocol&&n.host===r.host&&(s||n.port===r.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,w2=ht.hasStandardBrowserEnv?{write(n,s,r,o,u,p,m){if(typeof document>"u")return;const x=[`${n}=${encodeURIComponent(s)}`];C.isNumber(r)&&x.push(`expires=${new Date(r).toUTCString()}`),C.isString(o)&&x.push(`path=${o}`),C.isString(u)&&x.push(`domain=${u}`),p===!0&&x.push("secure"),C.isString(m)&&x.push(`SameSite=${m}`),document.cookie=x.join("; ")},read(n){if(typeof document>"u")return null;const s=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return s?decodeURIComponent(s[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function k2(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function E2(n,s){return s?n.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):n}function z0(n,s,r){let o=!k2(s);return n&&(o||r==!1)?E2(n,s):s}const ph=n=>n instanceof Nt?{...n}:n;function Ml(n,s){s=s||{};const r={};function o(v,y,b,_){return C.isPlainObject(v)&&C.isPlainObject(y)?C.merge.call({caseless:_},v,y):C.isPlainObject(y)?C.merge({},y):C.isArray(y)?y.slice():y}function u(v,y,b,_){if(C.isUndefined(y)){if(!C.isUndefined(v))return o(void 0,v,b,_)}else return o(v,y,b,_)}function p(v,y){if(!C.isUndefined(y))return o(void 0,y)}function m(v,y){if(C.isUndefined(y)){if(!C.isUndefined(v))return o(void 0,v)}else return o(void 0,y)}function x(v,y,b){if(b in s)return o(v,y);if(b in n)return o(void 0,v)}const g={url:p,method:p,data:p,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:x,headers:(v,y,b)=>u(ph(v),ph(y),b,!0)};return C.forEach(Object.keys({...n,...s}),function(y){const b=g[y]||u,_=b(n[y],s[y],y);C.isUndefined(_)&&b!==x||(r[y]=_)}),r}const O0=n=>{const s=Ml({},n);let{data:r,withXSRFToken:o,xsrfHeaderName:u,xsrfCookieName:p,headers:m,auth:x}=s;if(s.headers=m=Nt.from(m),s.url=E0(z0(s.baseURL,s.url,s.allowAbsoluteUrls),n.params,n.paramsSerializer),x&&m.set("Authorization","Basic "+btoa((x.username||"")+":"+(x.password?unescape(encodeURIComponent(x.password)):""))),C.isFormData(r)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if(C.isFunction(r.getHeaders)){const g=r.getHeaders(),v=["content-type","content-length"];Object.entries(g).forEach(([y,b])=>{v.includes(y.toLowerCase())&&m.set(y,b)})}}if(ht.hasStandardBrowserEnv&&(o&&C.isFunction(o)&&(o=o(s)),o||o!==!1&&j2(s.url))){const g=u&&p&&w2.read(p);g&&m.set(u,g)}return s},N2=typeof XMLHttpRequest<"u",A2=N2&&function(n){return new Promise(function(r,o){const u=O0(n);let p=u.data;const m=Nt.from(u.headers).normalize();let{responseType:x,onUploadProgress:g,onDownloadProgress:v}=u,y,b,_,H,T;function z(){H&&H(),T&&T(),u.cancelToken&&u.cancelToken.unsubscribe(y),u.signal&&u.signal.removeEventListener("abort",y)}let N=new XMLHttpRequest;N.open(u.method.toUpperCase(),u.url,!0),N.timeout=u.timeout;function G(){if(!N)return;const X=Nt.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),ee={data:!x||x==="text"||x==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:X,config:n,request:N};R0(function(Y){r(Y),z()},function(Y){o(Y),z()},ee),N=null}"onloadend"in N?N.onloadend=G:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(G)},N.onabort=function(){N&&(o(new se("Request aborted",se.ECONNABORTED,n,N)),N=null)},N.onerror=function(P){const ee=P&&P.message?P.message:"Network Error",re=new se(ee,se.ERR_NETWORK,n,N);re.event=P||null,o(re),N=null},N.ontimeout=function(){let P=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const ee=u.transitional||N0;u.timeoutErrorMessage&&(P=u.timeoutErrorMessage),o(new se(P,ee.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,n,N)),N=null},p===void 0&&m.setContentType(null),"setRequestHeader"in N&&C.forEach(m.toJSON(),function(P,ee){N.setRequestHeader(ee,P)}),C.isUndefined(u.withCredentials)||(N.withCredentials=!!u.withCredentials),x&&x!=="json"&&(N.responseType=u.responseType),v&&([_,T]=Sc(v,!0),N.addEventListener("progress",_)),g&&N.upload&&([b,H]=Sc(g),N.upload.addEventListener("progress",b),N.upload.addEventListener("loadend",H)),(u.cancelToken||u.signal)&&(y=X=>{N&&(o(!X||X.type?new Qi(null,n,N):X),N.abort(),N=null)},u.cancelToken&&u.cancelToken.subscribe(y),u.signal&&(u.signal.aborted?y():u.signal.addEventListener("abort",y)));const M=y2(u.url);if(M&&ht.protocols.indexOf(M)===-1){o(new se("Unsupported protocol "+M+":",se.ERR_BAD_REQUEST,n));return}N.send(p||null)})},T2=(n,s)=>{const{length:r}=n=n?n.filter(Boolean):[];if(s||r){let o=new AbortController,u;const p=function(v){if(!u){u=!0,x();const y=v instanceof Error?v:this.reason;o.abort(y instanceof se?y:new Qi(y instanceof Error?y.message:y))}};let m=s&&setTimeout(()=>{m=null,p(new se(`timeout of ${s}ms exceeded`,se.ETIMEDOUT))},s);const x=()=>{n&&(m&&clearTimeout(m),m=null,n.forEach(v=>{v.unsubscribe?v.unsubscribe(p):v.removeEventListener("abort",p)}),n=null)};n.forEach(v=>v.addEventListener("abort",p));const{signal:g}=o;return g.unsubscribe=()=>C.asap(x),g}},R2=function*(n,s){let r=n.byteLength;if(r<s){yield n;return}let o=0,u;for(;o<r;)u=o+s,yield n.slice(o,u),o=u},z2=async function*(n,s){for await(const r of O2(n))yield*R2(r,s)},O2=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const s=n.getReader();try{for(;;){const{done:r,value:o}=await s.read();if(r)break;yield o}}finally{await s.cancel()}},mh=(n,s,r,o)=>{const u=z2(n,s);let p=0,m,x=g=>{m||(m=!0,o&&o(g))};return new ReadableStream({async pull(g){try{const{done:v,value:y}=await u.next();if(v){x(),g.close();return}let b=y.byteLength;if(r){let _=p+=b;r(_)}g.enqueue(new Uint8Array(y))}catch(v){throw x(v),v}},cancel(g){return x(g),u.return()}},{highWaterMark:2})},hh=64*1024,{isFunction:oc}=C,_2=(({Request:n,Response:s})=>({Request:n,Response:s}))(C.global),{ReadableStream:xh,TextEncoder:vh}=C.global,gh=(n,...s)=>{try{return!!n(...s)}catch{return!1}},D2=n=>{n=C.merge.call({skipUndefined:!0},_2,n);const{fetch:s,Request:r,Response:o}=n,u=s?oc(s):typeof fetch=="function",p=oc(r),m=oc(o);if(!u)return!1;const x=u&&oc(xh),g=u&&(typeof vh=="function"?(T=>z=>T.encode(z))(new vh):async T=>new Uint8Array(await new r(T).arrayBuffer())),v=p&&x&&gh(()=>{let T=!1;const z=new r(ht.origin,{body:new xh,method:"POST",get duplex(){return T=!0,"half"}}).headers.has("Content-Type");return T&&!z}),y=m&&x&&gh(()=>C.isReadableStream(new o("").body)),b={stream:y&&(T=>T.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(T=>{!b[T]&&(b[T]=(z,N)=>{let G=z&&z[T];if(G)return G.call(z);throw new se(`Response type '${T}' is not supported`,se.ERR_NOT_SUPPORT,N)})});const _=async T=>{if(T==null)return 0;if(C.isBlob(T))return T.size;if(C.isSpecCompliantForm(T))return(await new r(ht.origin,{method:"POST",body:T}).arrayBuffer()).byteLength;if(C.isArrayBufferView(T)||C.isArrayBuffer(T))return T.byteLength;if(C.isURLSearchParams(T)&&(T=T+""),C.isString(T))return(await g(T)).byteLength},H=async(T,z)=>{const N=C.toFiniteNumber(T.getContentLength());return N??_(z)};return async T=>{let{url:z,method:N,data:G,signal:M,cancelToken:X,timeout:P,onDownloadProgress:ee,onUploadProgress:re,responseType:Y,headers:ne,withCredentials:Ee="same-origin",fetchOptions:Ye}=O0(T),et=s||fetch;Y=Y?(Y+"").toLowerCase():"text";let xe=T2([M,X&&X.toAbortSignal()],P),lt=null;const be=xe&&xe.unsubscribe&&(()=>{xe.unsubscribe()});let _e;try{if(re&&v&&N!=="get"&&N!=="head"&&(_e=await H(ne,G))!==0){let w=new r(z,{method:"POST",body:G,duplex:"half"}),q;if(C.isFormData(G)&&(q=w.headers.get("content-type"))&&ne.setContentType(q),w.body){const[Z,F]=fh(_e,Sc(dh(re)));G=mh(w.body,hh,Z,F)}}C.isString(Ee)||(Ee=Ee?"include":"omit");const U=p&&"credentials"in r.prototype,Q={...Ye,signal:xe,method:N.toUpperCase(),headers:ne.normalize().toJSON(),body:G,duplex:"half",credentials:U?Ee:void 0};lt=p&&new r(z,Q);let $=await(p?et(lt,Ye):et(z,Q));const ie=y&&(Y==="stream"||Y==="response");if(y&&(ee||ie&&be)){const w={};["status","statusText","headers"].forEach(ae=>{w[ae]=$[ae]});const q=C.toFiniteNumber($.headers.get("content-length")),[Z,F]=ee&&fh(q,Sc(dh(ee),!0))||[];$=new o(mh($.body,hh,Z,()=>{F&&F(),be&&be()}),w)}Y=Y||"text";let we=await b[C.findKey(b,Y)||"text"]($,T);return!ie&&be&&be(),await new Promise((w,q)=>{R0(w,q,{data:we,headers:Nt.from($.headers),status:$.status,statusText:$.statusText,config:T,request:lt})})}catch(U){throw be&&be(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,T,lt),{cause:U.cause||U}):se.from(U,U&&U.code,T,lt)}}},C2=new Map,_0=n=>{let s=n&&n.env||{};const{fetch:r,Request:o,Response:u}=s,p=[o,u,r];let m=p.length,x=m,g,v,y=C2;for(;x--;)g=p[x],v=y.get(g),v===void 0&&y.set(g,v=x?new Map:D2(s)),y=v;return v};_0();const Bu={http:W1,xhr:A2,fetch:{get:_0}};C.forEach(Bu,(n,s)=>{if(n){try{Object.defineProperty(n,"name",{value:s})}catch{}Object.defineProperty(n,"adapterName",{value:s})}});const yh=n=>`- ${n}`,M2=n=>C.isFunction(n)||n===null||n===!1;function U2(n,s){n=C.isArray(n)?n:[n];const{length:r}=n;let o,u;const p={};for(let m=0;m<r;m++){o=n[m];let x;if(u=o,!M2(o)&&(u=Bu[(x=String(o)).toLowerCase()],u===void 0))throw new se(`Unknown adapter '${x}'`);if(u&&(C.isFunction(u)||(u=u.get(s))))break;p[x||"#"+m]=u}if(!u){const m=Object.entries(p).map(([g,v])=>`adapter ${g} `+(v===!1?"is not supported by the environment":"is not available in the build"));let x=r?m.length>1?`since :
|
|
14
|
+
`+m.map(yh).join(`
|
|
15
|
+
`):" "+yh(m[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+x,"ERR_NOT_SUPPORT")}return u}const D0={getAdapter:U2,adapters:Bu};function ru(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Qi(null,n)}function bh(n){return ru(n),n.headers=Nt.from(n.headers),n.data=cu.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),D0.getAdapter(n.adapter||Xi.adapter,n)(n).then(function(o){return ru(n),o.data=cu.call(n,n.transformResponse,o),o.headers=Nt.from(o.headers),o},function(o){return T0(o)||(ru(n),o&&o.response&&(o.response.data=cu.call(n,n.transformResponse,o.response),o.response.headers=Nt.from(o.response.headers))),Promise.reject(o)})}const C0="1.13.4",Oc={};["object","boolean","number","function","string","symbol"].forEach((n,s)=>{Oc[n]=function(o){return typeof o===n||"a"+(s<1?"n ":" ")+n}});const Sh={};Oc.transitional=function(s,r,o){function u(p,m){return"[Axios v"+C0+"] Transitional option '"+p+"'"+m+(o?". "+o:"")}return(p,m,x)=>{if(s===!1)throw new se(u(m," has been removed"+(r?" in "+r:"")),se.ERR_DEPRECATED);return r&&!Sh[m]&&(Sh[m]=!0,console.warn(u(m," has been deprecated since v"+r+" and will be removed in the near future"))),s?s(p,m,x):!0}};Oc.spelling=function(s){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${s}`),!0)};function L2(n,s,r){if(typeof n!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const o=Object.keys(n);let u=o.length;for(;u-- >0;){const p=o[u],m=s[p];if(m){const x=n[p],g=x===void 0||m(x,p,n);if(g!==!0)throw new se("option "+p+" must be "+g,se.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new se("Unknown option "+p,se.ERR_BAD_OPTION)}}const hc={assertOptions:L2,validators:Oc},ca=hc.validators;let Cl=class{constructor(s){this.defaults=s||{},this.interceptors={request:new oh,response:new oh}}async request(s,r){try{return await this._request(s,r)}catch(o){if(o instanceof Error){let u={};Error.captureStackTrace?Error.captureStackTrace(u):u=new Error;const p=u.stack?u.stack.replace(/^.+\n/,""):"";try{o.stack?p&&!String(o.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
16
|
+
`+p):o.stack=p}catch{}}throw o}}_request(s,r){typeof s=="string"?(r=r||{},r.url=s):r=s||{},r=Ml(this.defaults,r);const{transitional:o,paramsSerializer:u,headers:p}=r;o!==void 0&&hc.assertOptions(o,{silentJSONParsing:ca.transitional(ca.boolean),forcedJSONParsing:ca.transitional(ca.boolean),clarifyTimeoutError:ca.transitional(ca.boolean)},!1),u!=null&&(C.isFunction(u)?r.paramsSerializer={serialize:u}:hc.assertOptions(u,{encode:ca.function,serialize:ca.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),hc.assertOptions(r,{baseUrl:ca.spelling("baseURL"),withXsrfToken:ca.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let m=p&&C.merge(p.common,p[r.method]);p&&C.forEach(["delete","get","head","post","put","patch","common"],T=>{delete p[T]}),r.headers=Nt.concat(m,p);const x=[];let g=!0;this.interceptors.request.forEach(function(z){typeof z.runWhen=="function"&&z.runWhen(r)===!1||(g=g&&z.synchronous,x.unshift(z.fulfilled,z.rejected))});const v=[];this.interceptors.response.forEach(function(z){v.push(z.fulfilled,z.rejected)});let y,b=0,_;if(!g){const T=[bh.bind(this),void 0];for(T.unshift(...x),T.push(...v),_=T.length,y=Promise.resolve(r);b<_;)y=y.then(T[b++],T[b++]);return y}_=x.length;let H=r;for(;b<_;){const T=x[b++],z=x[b++];try{H=T(H)}catch(N){z.call(this,N);break}}try{y=bh.call(this,H)}catch(T){return Promise.reject(T)}for(b=0,_=v.length;b<_;)y=y.then(v[b++],v[b++]);return y}getUri(s){s=Ml(this.defaults,s);const r=z0(s.baseURL,s.url,s.allowAbsoluteUrls);return E0(r,s.params,s.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(s){Cl.prototype[s]=function(r,o){return this.request(Ml(o||{},{method:s,url:r,data:(o||{}).data}))}});C.forEach(["post","put","patch"],function(s){function r(o){return function(p,m,x){return this.request(Ml(x||{},{method:s,headers:o?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}Cl.prototype[s]=r(),Cl.prototype[s+"Form"]=r(!0)});let q2=class M0{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(p){r=p});const o=this;this.promise.then(u=>{if(!o._listeners)return;let p=o._listeners.length;for(;p-- >0;)o._listeners[p](u);o._listeners=null}),this.promise.then=u=>{let p;const m=new Promise(x=>{o.subscribe(x),p=x}).then(u);return m.cancel=function(){o.unsubscribe(p)},m},s(function(p,m,x){o.reason||(o.reason=new Qi(p,m,x),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const r=this._listeners.indexOf(s);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const s=new AbortController,r=o=>{s.abort(o)};return this.subscribe(r),s.signal.unsubscribe=()=>this.unsubscribe(r),s.signal}static source(){let s;return{token:new M0(function(u){s=u}),cancel:s}}};function H2(n){return function(r){return n.apply(null,r)}}function B2(n){return C.isObject(n)&&n.isAxiosError===!0}const ju={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ju).forEach(([n,s])=>{ju[s]=n});function U0(n){const s=new Cl(n),r=m0(Cl.prototype.request,s);return C.extend(r,Cl.prototype,s,{allOwnKeys:!0}),C.extend(r,s,null,{allOwnKeys:!0}),r.create=function(u){return U0(Ml(n,u))},r}const Je=U0(Xi);Je.Axios=Cl;Je.CanceledError=Qi;Je.CancelToken=q2;Je.isCancel=T0;Je.VERSION=C0;Je.toFormData=zc;Je.AxiosError=se;Je.Cancel=Je.CanceledError;Je.all=function(s){return Promise.all(s)};Je.spread=H2;Je.isAxiosError=B2;Je.mergeConfig=Ml;Je.AxiosHeaders=Nt;Je.formToJSON=n=>A0(C.isHTMLForm(n)?new FormData(n):n);Je.getAdapter=D0.getAdapter;Je.HttpStatusCode=ju;Je.default=Je;const{Axios:rj,AxiosError:oj,CanceledError:uj,isCancel:fj,CancelToken:dj,VERSION:pj,all:mj,Cancel:hj,isAxiosError:xj,spread:vj,toFormData:gj,AxiosHeaders:yj,HttpStatusCode:bj,formToJSON:Sj,getAdapter:jj,mergeConfig:wj}=Je,Y2="http://localhost:3001/api",Oe=Je.create({baseURL:Y2,headers:{"Content-Type":"application/json"}});Oe.interceptors.response.use(n=>n,n=>{const s=n.response?.data?.error||n.message||"An error occurred";return console.error("API Error:",s),Promise.reject(new Error(s))});const Pt={getAll:async()=>{const{data:n}=await Oe.get("/skills");return n.data||[]},getById:async n=>{const{data:s}=await Oe.get(`/skills/${n}`);return s.data},createFromGit:async n=>{const{data:s}=await Oe.post("/skills/from-git",n);return s.data},createFromLocal:async(n,s,r)=>{const o=new FormData;o.append("name",n),o.append("file",s),r&&o.append("description",r);const{data:u}=await Oe.post("/skills/from-local",o,{headers:{"Content-Type":"multipart/form-data"}});return u.data},update:async(n,s)=>{const{data:r}=await Oe.put(`/skills/${n}`,s);return r.data},delete:async(n,s=!0)=>{await Oe.delete(`/skills/${n}?removeFiles=${s}`)},linkToWorkspace:async(n,s)=>{const{data:r}=await Oe.post(`/skills/${n}/link`,{workspaceId:s});return r.data},unlinkFromWorkspace:async(n,s)=>{await Oe.delete(`/skills/${n}/unlink/${s}`)},checkUpdate:async n=>{const{data:s}=await Oe.get(`/skills/${n}/check-update`);return s.data},upgrade:async n=>{const{data:s}=await Oe.post(`/skills/${n}/upgrade`);return s.data},checkUpdates:async n=>{const{data:s}=await Oe.post("/skills/check-updates",{ids:n});return s.data},getSkillMd:async n=>{const{data:s}=await Oe.get(`/skills/${n}/skill-md`);return s.data},sync:async()=>{const{data:n}=await Oe.post("/skills/sync");return n.data}},An={getAll:async()=>{const{data:n}=await Oe.get("/workspaces");return n.data||[]},getById:async n=>{const{data:s}=await Oe.get(`/workspaces/${n}`);return s.data},create:async n=>{const{data:s}=await Oe.post("/workspaces",n);return s.data},update:async(n,s)=>{const{data:r}=await Oe.put(`/workspaces/${n}`,s);return r.data},delete:async n=>{await Oe.delete(`/workspaces/${n}`)},detectSkills:async n=>{const{data:s}=await Oe.post(`/workspaces/${n}/detect-skills`);return s.data||[]},migrateSkills:async(n,s)=>{const{data:r}=await Oe.post(`/workspaces/${n}/migrate-skills`,{skillNames:s});return r.data}},wu={getSkills:async(n=1,s=20,r)=>{const o=new URLSearchParams({page:n.toString(),pageSize:s.toString()});r&&o.append("search",r);const{data:u}=await Oe.get(`/marketplace/skills?${o}`);return u.data},getSkillById:async n=>{const{data:s}=await Oe.get(`/marketplace/skills/${n}`);return s.data},publish:async n=>{const{data:s}=await Oe.post("/marketplace/publish",n);return s.data},install:async n=>{const{data:s}=await Oe.post(`/marketplace/install/${n}`);return s.data},unpublish:async n=>{await Oe.delete(`/marketplace/unpublish/${n}`)}},G2={getStats:async()=>{const{data:n}=await Oe.get("/dashboard/stats");return n.data},getActivity:async()=>{const{data:n}=await Oe.get("/dashboard/activity");return n.data||[]}},ta=f1((n,s)=>({skills:[],skillsLoading:!1,skillsError:null,fetchSkills:async()=>{n({skillsLoading:!0,skillsError:null});try{const r=await Pt.getAll();n({skills:r,skillsLoading:!1})}catch(r){n({skillsError:r.message,skillsLoading:!1})}},addSkill:r=>{n(o=>({skills:[r,...o.skills]}))},updateSkill:(r,o)=>{n(u=>({skills:u.skills.map(p=>p.id===r?{...p,...o}:p)}))},removeSkill:r=>{n(o=>({skills:o.skills.filter(u=>u.id!==r)}))},skillUpdates:{},skillUpdateChecking:{},checkUpdate:async r=>{n(o=>({skillUpdateChecking:{...o.skillUpdateChecking,[r]:!0}}));try{(await Pt.checkUpdate(r)).hasUpdate?(n(u=>({skillUpdates:{...u.skillUpdates,[r]:!0}})),s().showToast("Update available for skill","info")):s().showToast("Skill is up to date","success")}catch(o){s().showToast(o.message||"Failed to check for updates","error")}finally{n(o=>({skillUpdateChecking:{...o.skillUpdateChecking,[r]:!1}}))}},checkAllUpdates:async()=>{try{const r=await Pt.checkUpdates(),o={};Object.entries(r).forEach(([u,p])=>{p.hasUpdate&&(o[u]=!0)}),Object.keys(o).length>0&&(n(u=>({skillUpdates:{...u.skillUpdates,...o}})),s().showToast(`${Object.keys(o).length} skills have updates available`,"info"))}catch(r){console.error("Failed to check all updates:",r)}},upgradeSkill:async r=>{n({skillsLoading:!0});try{const o=await Pt.upgrade(r);n(u=>({skills:u.skills.map(p=>p.id===r?o:p),skillUpdates:{...u.skillUpdates,[r]:!1},skillsLoading:!1})),s().showToast(`Skill "${o.name}" upgraded successfully`,"success")}catch(o){n({skillsLoading:!1}),s().showToast(o.message||"Failed to upgrade skill","error")}},workspaces:[],workspacesLoading:!1,workspacesError:null,fetchWorkspaces:async()=>{n({workspacesLoading:!0,workspacesError:null});try{const r=await An.getAll();n({workspaces:r,workspacesLoading:!1})}catch(r){n({workspacesError:r.message,workspacesLoading:!1})}},addWorkspace:r=>{n(o=>({workspaces:[r,...o.workspaces]}))},updateWorkspace:(r,o)=>{n(u=>({workspaces:u.workspaces.map(p=>p.id===r?{...p,...o}:p)}))},removeWorkspace:r=>{n(o=>({workspaces:o.workspaces.filter(u=>u.id!==r)}))},stats:null,statsLoading:!1,fetchStats:async()=>{n({statsLoading:!0});try{const r=await G2.getStats();n({stats:r,statsLoading:!1})}catch{n({statsLoading:!1})}},marketplaceSkills:[],marketplaceLoading:!1,marketplaceTotal:0,fetchMarketplace:async(r=1,o)=>{n({marketplaceLoading:!0});try{const u=await wu.getSkills(r,20,o);n({marketplaceSkills:u.items,marketplaceTotal:u.total,marketplaceLoading:!1})}catch{n({marketplaceLoading:!1})}},toast:null,showToast:(r,o="info")=>{n({toast:{message:r,type:o}}),setTimeout(()=>{s().toast?.message===r&&n({toast:null})},4e3)},hideToast:()=>{n({toast:null})}}));function V2(){const{toast:n,hideToast:s}=ta();if(!n)return null;const r={success:o0,error:u0,info:xu},o={success:"from-green-500/20 to-green-500/5 border-green-500/30 text-green-400",error:"from-red-500/20 to-red-500/5 border-red-500/30 text-red-400",info:"from-primary-500/20 to-primary-500/5 border-primary-500/30 text-primary-400"},u=r[n.type];return f.jsx("div",{className:"fixed bottom-6 right-6 z-50 animate-slide-in",children:f.jsxs("div",{className:Me("flex items-center gap-3 px-4 py-3 rounded-xl border","bg-gradient-to-r backdrop-blur-lg shadow-lg",o[n.type]),children:[f.jsx(u,{className:"w-5 h-5 flex-shrink-0"}),f.jsx("span",{className:"text-sm font-medium text-dark-100",children:n.message}),f.jsx("button",{onClick:s,className:"ml-2 p-1 rounded-lg hover:bg-dark-700/50 transition-colors",children:f.jsx(fl,{className:"w-4 h-4"})})]})})}const X2=[{to:"/",icon:Rb,label:"Dashboard"},{to:"/skills",icon:En,label:"Skill Library"},{to:"/workspaces",icon:ol,label:"Workspaces"},{to:"/marketplace",icon:Nn,label:"Marketplace"},{to:"/settings",icon:$b,label:"Settings"}],Q2="http://localhost:3001/api";function Z2(){const[n,s]=j.useState(!1),[r,o]=j.useState("0.0.0"),{showToast:u}=ta(),p=ul();j.useEffect(()=>{const x=()=>{window.innerWidth>=768&&s(!1)};return window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]),j.useEffect(()=>{(async()=>{try{const g=await fetch(`${Q2}/config/version`);if(g.ok){const v=await g.json();v.success&&v.data&&(o(v.data.currentVersion),v.data.hasUpdate&&u(`🎉 SkillVerse v${v.data.latestVersion} is available! Run 'npm update -g skillverse' to update.`,"info"))}}catch(g){console.warn("Failed to check for version updates:",g)}})()},[p.pathname,u]);const m=()=>{s(!1)};return f.jsxs("div",{className:"flex h-screen bg-dark-900",children:[f.jsx("button",{onClick:()=>s(!n),className:"fixed top-4 left-4 z-50 md:hidden btn-icon bg-dark-800 border border-dark-700 shadow-lg","aria-label":"Toggle menu",children:n?f.jsx(fl,{className:"w-5 h-5"}):f.jsx(Mb,{className:"w-5 h-5"})}),n&&f.jsx("div",{className:"fixed inset-0 z-30 bg-dark-950/80 backdrop-blur-sm md:hidden",onClick:()=>s(!1)}),f.jsxs("aside",{className:Me("fixed md:relative z-40 h-full bg-dark-800 border-r border-dark-700 flex flex-col","w-64 lg:w-64 md:w-16","transition-transform duration-300 ease-in-out",n?"translate-x-0":"-translate-x-full md:translate-x-0"),children:[f.jsxs("div",{className:"h-16 flex items-center gap-3 px-6 md:px-3 lg:px-6 border-b border-dark-700",children:[f.jsx("div",{className:"w-9 h-9 rounded-xl bg-gradient-to-br from-primary-500 to-accent-500 flex items-center justify-center shrink-0",children:f.jsx(f0,{className:"w-5 h-5 text-white"})}),f.jsx("span",{className:"text-xl font-bold bg-gradient-to-r from-primary-400 to-accent-400 bg-clip-text text-transparent md:hidden lg:block",children:"SkillVerse"})]}),f.jsx("nav",{className:"flex-1 p-4 md:p-2 lg:p-4 space-y-1",children:X2.map(x=>f.jsxs(i0,{to:x.to,onClick:m,className:({isActive:g})=>Me("flex items-center gap-3 px-4 md:px-3 lg:px-4 py-3 rounded-xl transition-all duration-200","md:justify-center lg:justify-start",g?"bg-primary-500/10 text-primary-400 shadow-lg shadow-primary-500/5":"text-dark-400 hover:text-dark-100 hover:bg-dark-700"),title:x.label,children:[f.jsx(x.icon,{className:"w-5 h-5 shrink-0"}),f.jsx("span",{className:"font-medium md:hidden lg:block",children:x.label})]},x.to))}),f.jsx("div",{className:"p-4 md:p-2 lg:p-4 border-t border-dark-700",children:f.jsxs("div",{className:"glass-light rounded-xl p-4 md:p-2 lg:p-4",children:[f.jsxs("p",{className:"text-sm text-dark-400 md:hidden lg:block",children:["Version ",r]}),f.jsx("p",{className:"text-xs text-dark-500 mt-1 md:hidden lg:block",children:"Claude Skills Manager"}),f.jsxs("p",{className:"text-xs text-dark-500 md:block lg:hidden hidden",children:["v",r]})]})})]}),f.jsx("main",{className:"flex-1 flex flex-col overflow-hidden md:ml-0",children:f.jsx("div",{className:"flex-1 overflow-auto p-4 pt-16 md:pt-8 md:p-6 lg:p-8",children:f.jsx(my,{})})}),f.jsx(V2,{})]})}function K2({size:n="md",className:s}){const r={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-10 h-10"};return f.jsx(It,{className:Me("animate-spin text-primary-400",r[n],s)})}function _c(){return f.jsx("div",{className:"flex-1 flex items-center justify-center",children:f.jsxs("div",{className:"text-center",children:[f.jsx(K2,{size:"lg"}),f.jsx("p",{className:"mt-4 text-dark-400",children:"Loading..."})]})})}function Ui({icon:n,title:s,description:r,action:o}){return f.jsx("div",{className:"flex-1 flex items-center justify-center",children:f.jsxs("div",{className:"text-center max-w-md",children:[f.jsx("div",{className:"w-16 h-16 mx-auto rounded-2xl bg-dark-800 border border-dark-700 flex items-center justify-center mb-4",children:f.jsx(n,{className:"w-8 h-8 text-dark-400"})}),f.jsx("h3",{className:"text-lg font-semibold text-dark-100 mb-2",children:s}),f.jsx("p",{className:"text-dark-400 mb-6",children:r}),o]})})}function Zt({content:n,children:s,position:r="top",className:o}){const[u,p]=j.useState(!1),[m,x]=j.useState({top:0,left:0}),g=j.useRef(null);if(j.useEffect(()=>{if(u&&g.current){const y=g.current.getBoundingClientRect(),b=8;let _=0,H=0;switch(r){case"top":_=y.top-b,H=y.left+y.width/2;break;case"bottom":_=y.bottom+b,H=y.left+y.width/2;break;case"left":_=y.top+y.height/2,H=y.left-b;break;case"right":_=y.top+y.height/2,H=y.right+b;break}x({top:_,left:H})}},[u,r]),!n)return f.jsx(f.Fragment,{children:s});const v=u&&Jy.createPortal(f.jsx("div",{className:Me("fixed z-[9999] px-2.5 py-1.5 text-xs rounded-lg","bg-dark-700 text-dark-100 border border-dark-600 shadow-xl","animate-fade-in pointer-events-none"),style:{top:m.top,left:m.left,transform:r==="top"?"translate(-50%, -100%)":r==="bottom"?"translate(-50%, 0)":r==="left"?"translate(-100%, -50%)":"translate(0, -50%)",maxWidth:"320px",wordBreak:"break-all"},children:n}),document.body);return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:g,className:Me("inline-flex",o),onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:s}),v]})}function F2(){const{stats:n,statsLoading:s,fetchStats:r}=ta();if(j.useEffect(()=>{r()},[r]),s&&!n)return f.jsx(_c,{});const o=[{label:"Total Skills",value:n?.totalSkills||0,icon:En,color:"from-primary-500 to-primary-600",bgColor:"bg-primary-500/10"},{label:"Workspaces",value:n?.totalWorkspaces||0,icon:ol,color:"from-accent-500 to-accent-600",bgColor:"bg-accent-500/10"},{label:"Active Links",value:n?.totalLinks||0,icon:yc,color:"from-green-500 to-green-600",bgColor:"bg-green-500/10"},{label:"Published",value:n?.marketplaceSkills||0,icon:Nn,color:"from-orange-500 to-orange-600",bgColor:"bg-orange-500/10"}];return f.jsxs("div",{className:"space-y-6 sm:space-y-8 animate-fade-in",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl sm:text-3xl font-bold text-dark-100",children:"Dashboard"}),f.jsx("p",{className:"text-dark-400 mt-1 text-sm sm:text-base text-justified",children:"Overview of your skill management system"})]}),f.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-6",children:o.map(u=>f.jsxs("div",{className:"card hover:scale-[1.02] transition-transform p-4 sm:p-6",children:[f.jsxs("div",{className:"flex items-start justify-between",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-xs sm:text-sm text-dark-400 truncate",children:u.label}),f.jsx("p",{className:"text-xl sm:text-3xl font-bold text-dark-100 mt-1",children:u.value})]}),f.jsx("div",{className:Me("w-10 h-10 sm:w-12 sm:h-12 rounded-xl flex items-center justify-center shrink-0 ml-2",u.bgColor),children:f.jsx(u.icon,{className:Me("w-5 h-5 sm:w-6 sm:h-6 bg-gradient-to-r bg-clip-text",u.color.replace("from-","text-").split(" ")[0])})})]}),f.jsxs("div",{className:"mt-3 sm:mt-4 flex items-center gap-1 text-xs text-dark-500",children:[f.jsx(n1,{className:"w-3.5 h-3.5 text-green-400"}),f.jsx("span",{className:"text-green-400",children:"Active"})]})]},u.label))}),f.jsxs("div",{className:"card",children:[f.jsxs("div",{className:"flex items-center justify-between mb-4 sm:mb-6",children:[f.jsx("h2",{className:"text-base sm:text-lg font-semibold text-dark-100",children:"Recent Skills"}),f.jsx(ob,{className:"w-5 h-5 text-dark-400"})]}),n?.recentSkills&&n.recentSkills.length>0?f.jsx("div",{className:"space-y-2 sm:space-y-3",children:n.recentSkills.map(u=>f.jsxs("div",{className:"flex items-center justify-between p-3 sm:p-4 rounded-xl bg-dark-750 hover:bg-dark-700 transition-colors gap-3",children:[f.jsxs("div",{className:"flex items-center gap-3 sm:gap-4 min-w-0 flex-1",children:[f.jsx("div",{className:Me("w-8 h-8 sm:w-10 sm:h-10 rounded-lg flex items-center justify-center shrink-0",u.source==="git"?"bg-primary-500/10 text-primary-400":"bg-accent-500/10 text-accent-400"),children:f.jsx(En,{className:"w-4 h-4 sm:w-5 sm:h-5"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx(Zt,{content:u.name,position:"top",children:f.jsx("p",{className:"font-medium text-dark-100 text-sm sm:text-base truncate max-w-[200px] sm:max-w-none",children:u.name})}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500",children:u.source==="git"?"Git Repository":"Local Upload"})]})]}),f.jsxs("div",{className:"text-right shrink-0",children:[f.jsx("p",{className:"text-xs sm:text-sm text-dark-400",children:new Date(u.installDate).toLocaleDateString()}),f.jsxs("p",{className:"text-xs text-dark-500",children:[u.linkedWorkspaces?.length||0," linked"]})]})]},u.id))}):f.jsxs("div",{className:"text-center py-6 sm:py-8",children:[f.jsx(En,{className:"w-10 h-10 sm:w-12 sm:h-12 mx-auto text-dark-600 mb-3"}),f.jsx("p",{className:"text-dark-400 text-sm sm:text-base",children:"No skills yet"}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500 mt-1",children:"Add your first skill to get started"})]})]}),f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6",children:[f.jsx("a",{href:"/skills",className:"card group cursor-pointer hover:border-primary-500/50 transition-all",children:f.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[f.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 rounded-xl bg-primary-500/10 flex items-center justify-center group-hover:scale-110 transition-transform shrink-0",children:f.jsx(En,{className:"w-5 h-5 sm:w-6 sm:h-6 text-primary-400"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"font-medium text-dark-100 group-hover:text-primary-400 transition-colors text-sm sm:text-base",children:"Manage Skills"}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500 truncate",children:"View and organize your skills"})]})]})}),f.jsx("a",{href:"/workspaces",className:"card group cursor-pointer hover:border-accent-500/50 transition-all",children:f.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[f.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 rounded-xl bg-accent-500/10 flex items-center justify-center group-hover:scale-110 transition-transform shrink-0",children:f.jsx(ol,{className:"w-5 h-5 sm:w-6 sm:h-6 text-accent-400"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"font-medium text-dark-100 group-hover:text-accent-400 transition-colors text-sm sm:text-base",children:"Workspaces"}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500 truncate",children:"Configure your workspaces"})]})]})}),f.jsx("a",{href:"/marketplace",className:"card group cursor-pointer hover:border-orange-500/50 transition-all sm:col-span-2 lg:col-span-1",children:f.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[f.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 rounded-xl bg-orange-500/10 flex items-center justify-center group-hover:scale-110 transition-transform shrink-0",children:f.jsx(Nn,{className:"w-5 h-5 sm:w-6 sm:h-6 text-orange-400"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"font-medium text-dark-100 group-hover:text-orange-400 transition-colors text-sm sm:text-base",children:"Marketplace"}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500 truncate",children:"Browse and share skills"})]})]})})]})]})}function J2({skill:n,onLink:s,onDelete:r,onView:o}){const[u,p]=j.useState(!1),[m,x]=j.useState(!1),[g,v]=j.useState(null),[y,b]=j.useState(!1),{checkUpdate:_,upgradeSkill:H,skillUpdates:T,skillUpdateChecking:z}=ta(),N=n.linkedWorkspaces?.length||0,G=T[n.id]||n.updateAvailable,M=z[n.id],X=n.source==="git",P=async()=>{p(!1),await _(n.id)},ee=async()=>{confirm(`Are you sure you want to upgrade "${n.name}"? This will overwrite existing files.`)&&await H(n.id)},re=async()=>{p(!1),b(!0),x(!0);try{const Y=await Pt.getSkillMd(n.id);v(Y.exists?Y.content:null)}catch(Y){console.error("Failed to load SKILL.md:",Y),v(null)}finally{b(!1)}};return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"card group relative h-full flex flex-col",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[f.jsxs("div",{className:Me("w-10 h-10 rounded-xl flex items-center justify-center relative shrink-0",n.source==="git"?"bg-primary-500/10 text-primary-400":"bg-accent-500/10 text-accent-400"),children:[n.source==="git"?f.jsx(gc,{className:"w-5 h-5"}):f.jsx(Mi,{className:"w-5 h-5"}),G&&f.jsx("span",{className:"absolute -top-1 -right-1 w-3 h-3 bg-red-500 rounded-full border-2 border-dark-800"})]}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsxs("h3",{className:"font-semibold text-dark-100 group-hover:text-primary-400 transition-colors flex items-center gap-2",children:[f.jsx(Zt,{content:n.name,position:"top",children:X&&(n.sourceUrl||n.repoUrl)?f.jsx("a",{href:n.sourceUrl||n.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"truncate max-w-[160px] sm:max-w-[200px] lg:max-w-[220px] hover:underline cursor-pointer",onClick:Y=>Y.stopPropagation(),children:n.name}):f.jsx("span",{className:"truncate max-w-[160px] sm:max-w-[200px] lg:max-w-[220px]",children:n.name})}),G&&f.jsx("span",{className:"text-[10px] bg-red-500/10 text-red-400 px-1.5 py-0.5 rounded uppercase font-bold tracking-wide shrink-0 group-hover:hidden",children:"Update"})]}),f.jsx("p",{className:"text-xs text-dark-500 mt-0.5",children:n.source==="git"?"Git Repository":"Local Upload"})]})]}),f.jsxs("div",{className:"relative shrink-0",children:[f.jsx("button",{onClick:()=>p(!u),className:"btn-icon opacity-0 group-hover:opacity-100 transition-opacity",children:f.jsx(hb,{className:"w-4 h-4"})}),u&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>p(!1)}),f.jsxs("div",{className:"absolute right-0 top-full mt-1 w-48 py-1 bg-dark-700 border border-dark-600 rounded-lg shadow-xl z-20 animate-scale-in",children:[f.jsxs("button",{onClick:re,className:"w-full px-3 py-2 text-left text-sm text-dark-200 hover:bg-dark-600 flex items-center gap-2",children:[f.jsx(nu,{className:"w-4 h-4"}),"View SKILL.md"]}),o&&f.jsxs("button",{onClick:()=>{p(!1),o()},className:"w-full px-3 py-2 text-left text-sm text-dark-200 hover:bg-dark-600 flex items-center gap-2",children:[f.jsx(vb,{className:"w-4 h-4"}),"View Details"]}),X&&f.jsxs("button",{onClick:P,disabled:M,className:"w-full px-3 py-2 text-left text-sm text-dark-200 hover:bg-dark-600 flex items-center gap-2",children:[f.jsx(Qb,{className:Me("w-4 h-4",M&&"animate-spin")}),M?"Checking...":"Check for Updates"]}),s&&f.jsxs("button",{onClick:()=>{p(!1),s()},className:"w-full px-3 py-2 text-left text-sm text-dark-200 hover:bg-dark-600 flex items-center gap-2",children:[f.jsx(yc,{className:"w-4 h-4"}),"Link to Workspace"]}),r&&f.jsxs("button",{onClick:()=>{p(!1),r()},className:"w-full px-3 py-2 text-left text-sm text-red-400 hover:bg-dark-600 flex items-center gap-2",children:[f.jsx(d0,{className:"w-4 h-4"}),"Delete"]})]})]})]})]}),f.jsx("div",{className:"mt-3 relative group/desc flex-1",children:n.description?f.jsx(f.Fragment,{children:f.jsx(Zt,{content:n.description,position:"bottom",children:f.jsx("p",{className:"text-sm text-dark-400 line-clamp-2 text-justified",children:n.description})})}):f.jsx("p",{className:"text-sm text-dark-500 italic",children:"No description"})}),G&&f.jsx("div",{className:"mt-4",children:f.jsxs("button",{onClick:ee,className:"w-full btn-primary py-1.5 text-xs flex items-center justify-center gap-2",children:[f.jsx(ib,{className:"w-3.5 h-3.5"}),"Upgrade to Latest Version"]})}),f.jsxs("div",{className:Me("pt-4 border-t border-dark-700 flex items-center justify-between mt-4"),children:[f.jsxs("div",{className:"flex items-center gap-2 text-xs text-dark-500",children:[f.jsx(yc,{className:"w-3.5 h-3.5"}),f.jsxs("span",{children:[N," workspace",N!==1?"s":""]})]}),f.jsx("div",{className:"text-xs text-dark-500",children:new Date(n.installDate).toLocaleDateString()})]})]}),m&&f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-2 sm:p-4",children:[f.jsx("div",{className:"absolute inset-0 bg-dark-950/80 backdrop-blur-sm",onClick:()=>x(!1)}),f.jsxs("div",{className:"relative w-full max-w-2xl bg-dark-800 border border-dark-700 rounded-2xl shadow-2xl animate-scale-in max-h-[85vh] flex flex-col",children:[f.jsxs("div",{className:"flex items-center justify-between px-4 sm:px-6 py-4 border-b border-dark-700 shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(nu,{className:"w-5 h-5 text-primary-400"}),f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-semibold text-dark-100",children:"SKILL.md"}),f.jsx("p",{className:"text-xs text-dark-500",children:n.name})]})]}),f.jsx("button",{onClick:()=>x(!1),className:"btn-icon",children:f.jsx(fl,{className:"w-5 h-5"})})]}),f.jsx("div",{className:"flex-1 overflow-y-auto p-4 sm:p-6",children:y?f.jsx("div",{className:"flex items-center justify-center py-12",children:f.jsx(It,{className:"w-6 h-6 animate-spin text-primary-400"})}):g?f.jsx("pre",{className:"text-sm text-dark-200 whitespace-pre-wrap font-mono bg-dark-750 rounded-lg p-4 overflow-x-auto",children:g}):f.jsxs("div",{className:"text-center py-12",children:[f.jsx(nu,{className:"w-12 h-12 mx-auto text-dark-600 mb-3"}),f.jsx("p",{className:"text-dark-400",children:"No SKILL.md found"}),f.jsx("p",{className:"text-sm text-dark-500 mt-1",children:"This skill doesn't have a SKILL.md file"})]})})]})]})]})}var ou={exports:{}},uu,jh;function $2(){if(jh)return uu;jh=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return uu=n,uu}var fu,wh;function W2(){if(wh)return fu;wh=1;var n=$2();function s(){}function r(){}return r.resetWarningCache=s,fu=function(){function o(m,x,g,v,y,b){if(b!==n){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}o.isRequired=o;function u(){return o}var p={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:u,element:o,elementType:o,instanceOf:u,node:o,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:r,resetWarningCache:s};return p.PropTypes=p,p},fu}var kh;function P2(){return kh||(kh=1,ou.exports=W2()()),ou.exports}var I2=P2();const Ce=zu(I2);function Ul(n,s,r,o){function u(p){return p instanceof r?p:new r(function(m){m(p)})}return new(r||(r=Promise))(function(p,m){function x(y){try{v(o.next(y))}catch(b){m(b)}}function g(y){try{v(o.throw(y))}catch(b){m(b)}}function v(y){y.done?p(y.value):u(y.value).then(x,g)}v((o=o.apply(n,s||[])).next())})}const eS=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Rn(n,s,r){const o=tS(n),{webkitRelativePath:u}=n,p=typeof s=="string"?s:typeof u=="string"&&u.length>0?u:`./${n.name}`;return typeof o.path!="string"&&Eh(o,"path",p),Eh(o,"relativePath",p),o}function tS(n){const{name:s}=n;if(s&&s.lastIndexOf(".")!==-1&&!n.type){const o=s.split(".").pop().toLowerCase(),u=eS.get(o);u&&Object.defineProperty(n,"type",{value:u,writable:!1,configurable:!1,enumerable:!0})}return n}function Eh(n,s,r){Object.defineProperty(n,s,{value:r,writable:!1,configurable:!1,enumerable:!0})}const aS=[".DS_Store","Thumbs.db"];function lS(n){return Ul(this,void 0,void 0,function*(){return jc(n)&&nS(n.dataTransfer)?rS(n.dataTransfer,n.type):iS(n)?sS(n):Array.isArray(n)&&n.every(s=>"getFile"in s&&typeof s.getFile=="function")?cS(n):[]})}function nS(n){return jc(n)}function iS(n){return jc(n)&&jc(n.target)}function jc(n){return typeof n=="object"&&n!==null}function sS(n){return ku(n.target.files).map(s=>Rn(s))}function cS(n){return Ul(this,void 0,void 0,function*(){return(yield Promise.all(n.map(r=>r.getFile()))).map(r=>Rn(r))})}function rS(n,s){return Ul(this,void 0,void 0,function*(){if(n.items){const r=ku(n.items).filter(u=>u.kind==="file");if(s!=="drop")return r;const o=yield Promise.all(r.map(oS));return Nh(L0(o))}return Nh(ku(n.files).map(r=>Rn(r)))})}function Nh(n){return n.filter(s=>aS.indexOf(s.name)===-1)}function ku(n){if(n===null)return[];const s=[];for(let r=0;r<n.length;r++){const o=n[r];s.push(o)}return s}function oS(n){if(typeof n.webkitGetAsEntry!="function")return Ah(n);const s=n.webkitGetAsEntry();return s&&s.isDirectory?q0(s):Ah(n,s)}function L0(n){return n.reduce((s,r)=>[...s,...Array.isArray(r)?L0(r):[r]],[])}function Ah(n,s){return Ul(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&typeof n.getAsFileSystemHandle=="function"){const p=yield n.getAsFileSystemHandle();if(p===null)throw new Error(`${n} is not a File`);if(p!==void 0){const m=yield p.getFile();return m.handle=p,Rn(m)}}const o=n.getAsFile();if(!o)throw new Error(`${n} is not a File`);return Rn(o,(r=s?.fullPath)!==null&&r!==void 0?r:void 0)})}function uS(n){return Ul(this,void 0,void 0,function*(){return n.isDirectory?q0(n):fS(n)})}function q0(n){const s=n.createReader();return new Promise((r,o)=>{const u=[];function p(){s.readEntries(m=>Ul(this,void 0,void 0,function*(){if(m.length){const x=Promise.all(m.map(uS));u.push(x),p()}else try{const x=yield Promise.all(u);r(x)}catch(x){o(x)}}),m=>{o(m)})}p()})}function fS(n){return Ul(this,void 0,void 0,function*(){return new Promise((s,r)=>{n.file(o=>{const u=Rn(o,n.fullPath);s(u)},o=>{r(o)})})})}var uc={},Th;function dS(){return Th||(Th=1,uc.__esModule=!0,uc.default=function(n,s){if(n&&s){var r=Array.isArray(s)?s:s.split(",");if(r.length===0)return!0;var o=n.name||"",u=(n.type||"").toLowerCase(),p=u.replace(/\/.*$/,"");return r.some(function(m){var x=m.trim().toLowerCase();return x.charAt(0)==="."?o.toLowerCase().endsWith(x):x.endsWith("/*")?p===x.replace(/\/.*$/,""):u===x})}return!0}),uc}var pS=dS();const du=zu(pS);function Rh(n){return xS(n)||hS(n)||B0(n)||mS()}function mS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hS(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function xS(n){if(Array.isArray(n))return Eu(n)}function zh(n,s){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);s&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),r.push.apply(r,o)}return r}function Oh(n){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?zh(Object(r),!0).forEach(function(o){H0(n,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):zh(Object(r)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(r,o))})}return n}function H0(n,s,r){return s in n?Object.defineProperty(n,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[s]=r,n}function Li(n,s){return yS(n)||gS(n,s)||B0(n,s)||vS()}function vS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B0(n,s){if(n){if(typeof n=="string")return Eu(n,s);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eu(n,s)}}function Eu(n,s){(s==null||s>n.length)&&(s=n.length);for(var r=0,o=new Array(s);r<s;r++)o[r]=n[r];return o}function gS(n,s){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var o=[],u=!0,p=!1,m,x;try{for(r=r.call(n);!(u=(m=r.next()).done)&&(o.push(m.value),!(s&&o.length===s));u=!0);}catch(g){p=!0,x=g}finally{try{!u&&r.return!=null&&r.return()}finally{if(p)throw x}}return o}}function yS(n){if(Array.isArray(n))return n}var bS=typeof du=="function"?du:du.default,SS="file-invalid-type",jS="file-too-large",wS="file-too-small",kS="too-many-files",ES=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=s.split(","),o=r.length>1?"one of ".concat(r.join(", ")):r[0];return{code:SS,message:"File type must be ".concat(o)}},_h=function(s){return{code:jS,message:"File is larger than ".concat(s," ").concat(s===1?"byte":"bytes")}},Dh=function(s){return{code:wS,message:"File is smaller than ".concat(s," ").concat(s===1?"byte":"bytes")}},NS={code:kS,message:"Too many files"};function AS(n){return n.type===""&&typeof n.getAsFile=="function"}function Y0(n,s){var r=n.type==="application/x-moz-file"||bS(n,s)||AS(n);return[r,r?null:ES(s)]}function G0(n,s,r){if(_l(n.size))if(_l(s)&&_l(r)){if(n.size>r)return[!1,_h(r)];if(n.size<s)return[!1,Dh(s)]}else{if(_l(s)&&n.size<s)return[!1,Dh(s)];if(_l(r)&&n.size>r)return[!1,_h(r)]}return[!0,null]}function _l(n){return n!=null}function TS(n){var s=n.files,r=n.accept,o=n.minSize,u=n.maxSize,p=n.multiple,m=n.maxFiles,x=n.validator;return!p&&s.length>1||p&&m>=1&&s.length>m?!1:s.every(function(g){var v=Y0(g,r),y=Li(v,1),b=y[0],_=G0(g,o,u),H=Li(_,1),T=H[0],z=x?x(g):null;return b&&T&&!z})}function wc(n){return typeof n.isPropagationStopped=="function"?n.isPropagationStopped():typeof n.cancelBubble<"u"?n.cancelBubble:!1}function _i(n){return n.dataTransfer?Array.prototype.some.call(n.dataTransfer.types,function(s){return s==="Files"||s==="application/x-moz-file"}):!!n.target&&!!n.target.files}function Ch(n){n.preventDefault()}function RS(n){return n.indexOf("MSIE")!==-1||n.indexOf("Trident/")!==-1}function zS(n){return n.indexOf("Edge/")!==-1}function OS(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return RS(n)||zS(n)}function ra(){for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return function(o){for(var u=arguments.length,p=new Array(u>1?u-1:0),m=1;m<u;m++)p[m-1]=arguments[m];return s.some(function(x){return!wc(o)&&x&&x.apply(void 0,[o].concat(p)),wc(o)})}}function _S(){return"showOpenFilePicker"in window}function DS(n){if(_l(n)){var s=Object.entries(n).filter(function(r){var o=Li(r,2),u=o[0],p=o[1],m=!0;return V0(u)||(console.warn('Skipped "'.concat(u,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),m=!1),(!Array.isArray(p)||!p.every(X0))&&(console.warn('Skipped "'.concat(u,'" because an invalid file extension was provided.')),m=!1),m}).reduce(function(r,o){var u=Li(o,2),p=u[0],m=u[1];return Oh(Oh({},r),{},H0({},p,m))},{});return[{description:"Files",accept:s}]}return n}function CS(n){if(_l(n))return Object.entries(n).reduce(function(s,r){var o=Li(r,2),u=o[0],p=o[1];return[].concat(Rh(s),[u],Rh(p))},[]).filter(function(s){return V0(s)||X0(s)}).join(",")}function MS(n){return n instanceof DOMException&&(n.name==="AbortError"||n.code===n.ABORT_ERR)}function US(n){return n instanceof DOMException&&(n.name==="SecurityError"||n.code===n.SECURITY_ERR)}function V0(n){return n==="audio/*"||n==="video/*"||n==="image/*"||n==="text/*"||n==="application/*"||/\w+\/[-+.\w]+/g.test(n)}function X0(n){return/^.*\.[\w]+$/.test(n)}var LS=["children"],qS=["open"],HS=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],BS=["refKey","onChange","onClick"];function Mh(n){return VS(n)||GS(n)||Q0(n)||YS()}function YS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GS(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function VS(n){if(Array.isArray(n))return Nu(n)}function pu(n,s){return ZS(n)||QS(n,s)||Q0(n,s)||XS()}function XS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q0(n,s){if(n){if(typeof n=="string")return Nu(n,s);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nu(n,s)}}function Nu(n,s){(s==null||s>n.length)&&(s=n.length);for(var r=0,o=new Array(s);r<s;r++)o[r]=n[r];return o}function QS(n,s){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var o=[],u=!0,p=!1,m,x;try{for(r=r.call(n);!(u=(m=r.next()).done)&&(o.push(m.value),!(s&&o.length===s));u=!0);}catch(g){p=!0,x=g}finally{try{!u&&r.return!=null&&r.return()}finally{if(p)throw x}}return o}}function ZS(n){if(Array.isArray(n))return n}function Uh(n,s){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);s&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),r.push.apply(r,o)}return r}function Be(n){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?Uh(Object(r),!0).forEach(function(o){Au(n,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(r,o))})}return n}function Au(n,s,r){return s in n?Object.defineProperty(n,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[s]=r,n}function kc(n,s){if(n==null)return{};var r=KS(n,s),o,u;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(u=0;u<p.length;u++)o=p[u],!(s.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(n,o)&&(r[o]=n[o])}return r}function KS(n,s){if(n==null)return{};var r={},o=Object.keys(n),u,p;for(p=0;p<o.length;p++)u=o[p],!(s.indexOf(u)>=0)&&(r[u]=n[u]);return r}var Yu=j.forwardRef(function(n,s){var r=n.children,o=kc(n,LS),u=K0(o),p=u.open,m=kc(u,qS);return j.useImperativeHandle(s,function(){return{open:p}},[p]),Di.createElement(j.Fragment,null,r(Be(Be({},m),{},{open:p})))});Yu.displayName="Dropzone";var Z0={disabled:!1,getFilesFromEvent:lS,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Yu.defaultProps=Z0;Yu.propTypes={children:Ce.func,accept:Ce.objectOf(Ce.arrayOf(Ce.string)),multiple:Ce.bool,preventDropOnDocument:Ce.bool,noClick:Ce.bool,noKeyboard:Ce.bool,noDrag:Ce.bool,noDragEventsBubbling:Ce.bool,minSize:Ce.number,maxSize:Ce.number,maxFiles:Ce.number,disabled:Ce.bool,getFilesFromEvent:Ce.func,onFileDialogCancel:Ce.func,onFileDialogOpen:Ce.func,useFsAccessApi:Ce.bool,autoFocus:Ce.bool,onDragEnter:Ce.func,onDragLeave:Ce.func,onDragOver:Ce.func,onDrop:Ce.func,onDropAccepted:Ce.func,onDropRejected:Ce.func,onError:Ce.func,validator:Ce.func};var Tu={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function K0(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=Be(Be({},Z0),n),r=s.accept,o=s.disabled,u=s.getFilesFromEvent,p=s.maxSize,m=s.minSize,x=s.multiple,g=s.maxFiles,v=s.onDragEnter,y=s.onDragLeave,b=s.onDragOver,_=s.onDrop,H=s.onDropAccepted,T=s.onDropRejected,z=s.onFileDialogCancel,N=s.onFileDialogOpen,G=s.useFsAccessApi,M=s.autoFocus,X=s.preventDropOnDocument,P=s.noClick,ee=s.noKeyboard,re=s.noDrag,Y=s.noDragEventsBubbling,ne=s.onError,Ee=s.validator,Ye=j.useMemo(function(){return CS(r)},[r]),et=j.useMemo(function(){return DS(r)},[r]),xe=j.useMemo(function(){return typeof N=="function"?N:Lh},[N]),lt=j.useMemo(function(){return typeof z=="function"?z:Lh},[z]),be=j.useRef(null),_e=j.useRef(null),U=j.useReducer(FS,Tu),Q=pu(U,2),$=Q[0],ie=Q[1],we=$.isFocused,w=$.isFileDialogActive,q=j.useRef(typeof window<"u"&&window.isSecureContext&&G&&_S()),Z=function(){!q.current&&w&&setTimeout(function(){if(_e.current){var te=_e.current.files;te.length||(ie({type:"closeDialog"}),lt())}},300)};j.useEffect(function(){return window.addEventListener("focus",Z,!1),function(){window.removeEventListener("focus",Z,!1)}},[_e,w,lt,q]);var F=j.useRef([]),ae=j.useRef([]),de=function(te){be.current&&be.current.contains(te.target)||(te.preventDefault(),F.current=[])};j.useEffect(function(){return X&&(document.addEventListener("dragover",Ch,!1),document.addEventListener("drop",de,!1)),function(){X&&(document.removeEventListener("dragover",Ch),document.removeEventListener("drop",de))}},[be,X]),j.useEffect(function(){var K=function(At){ae.current=[].concat(Mh(ae.current),[At.target]),_i(At)&&ie({isDragGlobal:!0,type:"setDragGlobal"})},te=function(At){ae.current=ae.current.filter(function(Ft){return Ft!==At.target&&Ft!==null}),!(ae.current.length>0)&&ie({isDragGlobal:!1,type:"setDragGlobal"})},Ue=function(){ae.current=[],ie({isDragGlobal:!1,type:"setDragGlobal"})},Le=function(){ae.current=[],ie({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",K,!1),document.addEventListener("dragleave",te,!1),document.addEventListener("dragend",Ue,!1),document.addEventListener("drop",Le,!1),function(){document.removeEventListener("dragenter",K),document.removeEventListener("dragleave",te),document.removeEventListener("dragend",Ue),document.removeEventListener("drop",Le)}},[be]),j.useEffect(function(){return!o&&M&&be.current&&be.current.focus(),function(){}},[be,M,o]);var pe=j.useCallback(function(K){ne?ne(K):console.error(K)},[ne]),nt=j.useCallback(function(K){K.preventDefault(),K.persist(),qa(K),F.current=[].concat(Mh(F.current),[K.target]),_i(K)&&Promise.resolve(u(K)).then(function(te){if(!(wc(K)&&!Y)){var Ue=te.length,Le=Ue>0&&TS({files:te,accept:Ye,minSize:m,maxSize:p,multiple:x,maxFiles:g,validator:Ee}),tt=Ue>0&&!Le;ie({isDragAccept:Le,isDragReject:tt,isDragActive:!0,type:"setDraggedFiles"}),v&&v(K)}}).catch(function(te){return pe(te)})},[u,v,pe,Y,Ye,m,p,x,g,Ee]),Ge=j.useCallback(function(K){K.preventDefault(),K.persist(),qa(K);var te=_i(K);if(te&&K.dataTransfer)try{K.dataTransfer.dropEffect="copy"}catch{}return te&&b&&b(K),!1},[b,Y]),Ma=j.useCallback(function(K){K.preventDefault(),K.persist(),qa(K);var te=F.current.filter(function(Le){return be.current&&be.current.contains(Le)}),Ue=te.indexOf(K.target);Ue!==-1&&te.splice(Ue,1),F.current=te,!(te.length>0)&&(ie({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),_i(K)&&y&&y(K))},[be,y,Y]),fa=j.useCallback(function(K,te){var Ue=[],Le=[];K.forEach(function(tt){var At=Y0(tt,Ye),Ft=pu(At,2),Dn=Ft[0],ma=Ft[1],ct=G0(tt,m,p),Tt=pu(ct,2),rt=Tt[0],Cn=Tt[1],Mn=Ee?Ee(tt):null;if(Dn&&rt&&!Mn)Ue.push(tt);else{var Un=[ma,Cn];Mn&&(Un=Un.concat(Mn)),Le.push({file:tt,errors:Un.filter(function(Hl){return Hl})})}}),(!x&&Ue.length>1||x&&g>=1&&Ue.length>g)&&(Ue.forEach(function(tt){Le.push({file:tt,errors:[NS]})}),Ue.splice(0)),ie({acceptedFiles:Ue,fileRejections:Le,isDragReject:Le.length>0,type:"setFiles"}),_&&_(Ue,Le,te),Le.length>0&&T&&T(Le,te),Ue.length>0&&H&&H(Ue,te)},[ie,x,Ye,m,p,g,_,H,T,Ee]),Ua=j.useCallback(function(K){K.preventDefault(),K.persist(),qa(K),F.current=[],_i(K)&&Promise.resolve(u(K)).then(function(te){wc(K)&&!Y||fa(te,K)}).catch(function(te){return pe(te)}),ie({type:"reset"})},[u,fa,pe,Y]),da=j.useCallback(function(){if(q.current){ie({type:"openDialog"}),xe();var K={multiple:x,types:et};window.showOpenFilePicker(K).then(function(te){return u(te)}).then(function(te){fa(te,null),ie({type:"closeDialog"})}).catch(function(te){MS(te)?(lt(te),ie({type:"closeDialog"})):US(te)?(q.current=!1,_e.current?(_e.current.value=null,_e.current.click()):pe(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):pe(te)});return}_e.current&&(ie({type:"openDialog"}),xe(),_e.current.value=null,_e.current.click())},[ie,xe,lt,G,fa,pe,et,x]),aa=j.useCallback(function(K){!be.current||!be.current.isEqualNode(K.target)||(K.key===" "||K.key==="Enter"||K.keyCode===32||K.keyCode===13)&&(K.preventDefault(),da())},[be,da]),Ll=j.useCallback(function(){ie({type:"focus"})},[]),ql=j.useCallback(function(){ie({type:"blur"})},[]),Zi=j.useCallback(function(){P||(OS()?setTimeout(da,0):da())},[P,da]),pa=function(te){return o?null:te},dl=function(te){return ee?null:pa(te)},La=function(te){return re?null:pa(te)},qa=function(te){Y&&te.stopPropagation()},Dc=j.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=K.refKey,Ue=te===void 0?"ref":te,Le=K.role,tt=K.onKeyDown,At=K.onFocus,Ft=K.onBlur,Dn=K.onClick,ma=K.onDragEnter,ct=K.onDragOver,Tt=K.onDragLeave,rt=K.onDrop,Cn=kc(K,HS);return Be(Be(Au({onKeyDown:dl(ra(tt,aa)),onFocus:dl(ra(At,Ll)),onBlur:dl(ra(Ft,ql)),onClick:pa(ra(Dn,Zi)),onDragEnter:La(ra(ma,nt)),onDragOver:La(ra(ct,Ge)),onDragLeave:La(ra(Tt,Ma)),onDrop:La(ra(rt,Ua)),role:typeof Le=="string"&&Le!==""?Le:"presentation"},Ue,be),!o&&!ee?{tabIndex:0}:{}),Cn)}},[be,aa,Ll,ql,Zi,nt,Ge,Ma,Ua,ee,re,o]),Cc=j.useCallback(function(K){K.stopPropagation()},[]),xt=j.useMemo(function(){return function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=K.refKey,Ue=te===void 0?"ref":te,Le=K.onChange,tt=K.onClick,At=kc(K,BS),Ft=Au({accept:Ye,multiple:x,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:pa(ra(Le,Ua)),onClick:pa(ra(tt,Cc)),tabIndex:-1},Ue,_e);return Be(Be({},Ft),At)}},[_e,r,x,Ua,o]);return Be(Be({},$),{},{isFocused:we&&!o,getRootProps:Dc,getInputProps:xt,rootRef:be,inputRef:_e,open:pa(da)})}function FS(n,s){switch(s.type){case"focus":return Be(Be({},n),{},{isFocused:!0});case"blur":return Be(Be({},n),{},{isFocused:!1});case"openDialog":return Be(Be({},Tu),{},{isFileDialogActive:!0});case"closeDialog":return Be(Be({},n),{},{isFileDialogActive:!1});case"setDraggedFiles":return Be(Be({},n),{},{isDragActive:s.isDragActive,isDragAccept:s.isDragAccept,isDragReject:s.isDragReject});case"setFiles":return Be(Be({},n),{},{acceptedFiles:s.acceptedFiles,fileRejections:s.fileRejections,isDragReject:s.isDragReject});case"setDragGlobal":return Be(Be({},n),{},{isDragGlobal:s.isDragGlobal});case"reset":return Be({},Tu);default:return n}}function Lh(){}function JS({isOpen:n,onClose:s}){const[r,o]=j.useState("git"),[u,p]=j.useState(""),[m,x]=j.useState(""),[g,v]=j.useState(""),[y,b]=j.useState(null),[_,H]=j.useState(!1),[T,z]=j.useState(""),{addSkill:N,showToast:G}=ta(),{getRootProps:M,getInputProps:X,isDragActive:P}=K0({accept:{"application/zip":[".zip"]},maxFiles:1,onDrop:Y=>{Y.length>0&&(b(Y[0]),m||x(Y[0].name.replace(".zip","")))}}),ee=async Y=>{Y.preventDefault(),z(""),H(!0);try{let ne;if(r==="git"){if(!u){z("Git URL is required"),H(!1);return}ne=await Pt.createFromGit({gitUrl:u,description:g})}else{if(!m||!y){z("Name and file are required"),H(!1);return}ne=await Pt.createFromLocal(m,y,g)}N(ne),G(`Skill "${ne.name}" added successfully!`,"success"),re()}catch(ne){z(ne.message||"Failed to add skill")}finally{H(!1)}},re=()=>{p(""),x(""),v(""),b(null),z(""),o("git"),s()};return n?f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-2 sm:p-4",children:[f.jsx("div",{className:"absolute inset-0 bg-dark-950/80 backdrop-blur-sm",onClick:re}),f.jsxs("div",{className:"relative w-full max-w-lg bg-dark-800 border border-dark-700 rounded-2xl shadow-2xl animate-scale-in max-h-[90vh] overflow-y-auto",children:[f.jsxs("div",{className:"flex items-center justify-between px-4 sm:px-6 py-4 border-b border-dark-700 sticky top-0 bg-dark-800 z-10",children:[f.jsx("h2",{className:"text-lg font-semibold text-dark-100",children:"Add New Skill"}),f.jsx("button",{onClick:re,className:"btn-icon",children:f.jsx(fl,{className:"w-5 h-5"})})]}),f.jsxs("div",{className:"flex border-b border-dark-700",children:[f.jsxs("button",{onClick:()=>o("git"),className:Me("flex-1 flex items-center justify-center gap-2 px-4 py-3 text-sm font-medium transition-colors",r==="git"?"text-primary-400 border-b-2 border-primary-400 bg-primary-500/5":"text-dark-400 hover:text-dark-200"),children:[f.jsx(gc,{className:"w-4 h-4"}),f.jsx("span",{className:"hidden sm:inline",children:"From Git"}),f.jsx("span",{className:"sm:hidden",children:"Git"})]}),f.jsxs("button",{onClick:()=>o("local"),className:Me("flex-1 flex items-center justify-center gap-2 px-4 py-3 text-sm font-medium transition-colors",r==="local"?"text-accent-400 border-b-2 border-accent-400 bg-accent-500/5":"text-dark-400 hover:text-dark-200"),children:[f.jsx(Mi,{className:"w-4 h-4"}),f.jsx("span",{className:"hidden sm:inline",children:"Local Upload"}),f.jsx("span",{className:"sm:hidden",children:"Upload"})]})]}),f.jsxs("form",{onSubmit:ee,className:"p-4 sm:p-6 space-y-4",children:[r==="git"?f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"Git Repository URL"}),f.jsx("input",{type:"url",value:u,onChange:Y=>p(Y.target.value),placeholder:"https://github.com/user/skill-repo.git",className:"input",disabled:_}),f.jsx("p",{className:"mt-2 text-xs text-dark-500",children:"Enter the Git URL to clone the skill repository"})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"Skill Name"}),f.jsx("input",{type:"text",value:m,onChange:Y=>x(Y.target.value),placeholder:"my-awesome-skill",className:"input",disabled:_})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"Upload ZIP File"}),f.jsxs("div",{...M(),className:Me("border-2 border-dashed rounded-xl p-6 sm:p-8 text-center cursor-pointer transition-all",P?"border-accent-400 bg-accent-500/10":"border-dark-600 hover:border-dark-500 hover:bg-dark-750",_&&"opacity-50 pointer-events-none"),children:[f.jsx("input",{...X()}),f.jsx(Mi,{className:"w-8 h-8 sm:w-10 sm:h-10 mx-auto text-dark-400 mb-3"}),y?f.jsx("p",{className:"text-dark-100 font-medium text-sm sm:text-base truncate",children:y.name}):P?f.jsx("p",{className:"text-accent-400 text-sm sm:text-base",children:"Drop the file here..."}):f.jsxs(f.Fragment,{children:[f.jsx("p",{className:"text-dark-300 text-sm sm:text-base",children:"Drag & drop a ZIP file here, or click to select"}),f.jsx("p",{className:"text-xs text-dark-500 mt-1",children:"Only .zip files are supported"})]})]})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"Description (optional)"}),f.jsx("textarea",{value:g,onChange:Y=>v(Y.target.value),placeholder:"A brief description of this skill...",rows:3,className:"input resize-none",disabled:_})]}),T&&f.jsx("div",{className:"p-3 rounded-lg bg-red-500/10 border border-red-500/30 text-red-400 text-sm",children:T}),f.jsxs("div",{className:"flex gap-3 pt-2",children:[f.jsx("button",{type:"button",onClick:re,className:"btn-secondary flex-1",disabled:_,children:"Cancel"}),f.jsx("button",{type:"submit",className:"btn-primary flex-1",disabled:_,children:_?f.jsxs(f.Fragment,{children:[f.jsx(It,{className:"w-4 h-4 animate-spin"}),"Adding..."]}):"Add Skill"})]})]})]})]}):null}function $S({isOpen:n,skill:s,onClose:r}){const{workspaces:o,fetchWorkspaces:u,showToast:p,fetchSkills:m}=ta(),[x,g]=j.useState(null),[v,y]=j.useState(!1),b=new Set(s?.linkedWorkspaces?.map(z=>z.workspaceId)||[]);j.useEffect(()=>{n&&o.length===0&&u()},[n,o.length,u]);const _=async()=>{if(!(!s||!x)){y(!0);try{await Pt.linkToWorkspace(s.id,x),p("Skill linked to workspace successfully!","success"),m(),r()}catch(z){p(z.message||"Failed to link skill","error")}finally{y(!1)}}},H=async z=>{if(s){y(!0);try{await Pt.unlinkFromWorkspace(s.id,z),p("Skill unlinked from workspace","success"),m()}catch(N){p(N.message||"Failed to unlink skill","error")}finally{y(!1)}}};if(!n||!s)return null;const T=o.filter(z=>!b.has(z.id));return f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-2 sm:p-4",children:[f.jsx("div",{className:"absolute inset-0 bg-dark-950/80 backdrop-blur-sm",onClick:r}),f.jsxs("div",{className:"relative w-full max-w-md bg-dark-800 border border-dark-700 rounded-2xl shadow-2xl animate-scale-in max-h-[90vh] overflow-y-auto",children:[f.jsxs("div",{className:"flex items-center justify-between px-4 sm:px-6 py-4 border-b border-dark-700 sticky top-0 bg-dark-800 z-10",children:[f.jsxs("div",{className:"min-w-0 flex-1 pr-4",children:[f.jsx("h2",{className:"text-lg font-semibold text-dark-100",children:"Link to Workspace"}),f.jsx(Zt,{content:s.name,position:"bottom",children:f.jsx("p",{className:"text-sm text-dark-400 mt-0.5 truncate",children:s.name})})]}),f.jsx("button",{onClick:r,className:"btn-icon shrink-0",children:f.jsx(fl,{className:"w-5 h-5"})})]}),f.jsxs("div",{className:"p-4 sm:p-6 space-y-4",children:[b.size>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-dark-300 mb-2",children:"Linked Workspaces"}),f.jsx("div",{className:"space-y-2",children:o.filter(z=>b.has(z.id)).map(z=>f.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-primary-500/10 border border-primary-500/30 gap-2",children:[f.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[f.jsx(ol,{className:"w-4 h-4 text-primary-400 shrink-0"}),f.jsx(Zt,{content:z.name,position:"top",children:f.jsx("span",{className:"text-sm text-dark-100 truncate",children:z.name})})]}),f.jsx("button",{onClick:()=>H(z.id),className:"text-xs text-dark-400 hover:text-red-400 transition-colors shrink-0",disabled:v,children:"Unlink"})]},z.id))})]}),T.length>0?f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-dark-300 mb-2",children:"Available Workspaces"}),f.jsx("div",{className:"space-y-2 max-h-60 overflow-auto",children:T.map(z=>f.jsxs("button",{onClick:()=>g(z.id),className:Me("w-full flex items-center justify-between p-3 rounded-lg border transition-all gap-2",x===z.id?"bg-primary-500/10 border-primary-500/50 text-dark-100":"bg-dark-750 border-dark-600 text-dark-300 hover:border-dark-500"),disabled:v,children:[f.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[f.jsx(ol,{className:"w-4 h-4 shrink-0"}),f.jsxs("div",{className:"text-left min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-medium truncate",children:z.name}),f.jsx("p",{className:"text-xs text-dark-500",children:z.type})]})]}),x===z.id&&f.jsx(r0,{className:"w-4 h-4 text-primary-400 shrink-0"})]},z.id))})]}):b.size===0?f.jsxs("div",{className:"text-center py-6 sm:py-8",children:[f.jsx(ol,{className:"w-10 h-10 sm:w-12 sm:h-12 mx-auto text-dark-600 mb-3"}),f.jsx("p",{className:"text-dark-400 text-sm sm:text-base",children:"No workspaces available"}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500 mt-1",children:"Add a workspace first to link skills"})]}):null,f.jsxs("div",{className:"flex gap-3 pt-2",children:[f.jsx("button",{type:"button",onClick:r,className:"btn-secondary flex-1",disabled:v,children:"Close"}),T.length>0&&f.jsx("button",{onClick:_,className:"btn-primary flex-1",disabled:v||!x,children:v?f.jsxs(f.Fragment,{children:[f.jsx(It,{className:"w-4 h-4 animate-spin"}),"Linking..."]}):"Link Skill"})]})]})]})]})}function WS(){const{skills:n,skillsLoading:s,fetchSkills:r,removeSkill:o,showToast:u,checkAllUpdates:p}=ta(),[m,x]=j.useState(!1),[g,v]=j.useState(null),[y,b]=j.useState(""),[_,H]=j.useState("grid"),T=n.find(G=>G.id===g)||null;j.useEffect(()=>{Pt.sync().then(()=>r()).then(()=>{p()}).catch(console.error)},[r,p]);const z=async G=>{if(confirm(`Are you sure you want to delete "${G.name}"?`))try{await Pt.delete(G.id),o(G.id),u(`Skill "${G.name}" deleted`,"success")}catch(M){u(M.message||"Failed to delete skill","error")}},N=n.filter(G=>G.name.toLowerCase().includes(y.toLowerCase())||G.description?.toLowerCase().includes(y.toLowerCase()));return s&&n.length===0?f.jsx(_c,{}):f.jsxs("div",{className:"space-y-6 animate-fade-in",children:[f.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h1",{className:"text-2xl sm:text-3xl font-bold text-dark-100 truncate",children:"Skill Library"}),f.jsx("p",{className:"text-dark-400 mt-1 text-sm sm:text-base",children:"Manage your installed skills"})]}),f.jsxs("button",{onClick:()=>x(!0),className:"btn-primary shrink-0 w-full sm:w-auto",children:[f.jsx(bc,{className:"w-4 h-4"}),"Add Skill"]})]}),f.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-3 sm:gap-4",children:[f.jsxs("div",{className:"flex-1 relative",children:[f.jsx(vu,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-dark-400"}),f.jsx("input",{type:"text",value:y,onChange:G=>b(G.target.value),placeholder:"Search skills...",className:"input pl-10"})]}),f.jsxs("div",{className:"flex items-center gap-1 bg-dark-800 border border-dark-700 rounded-lg p-1 self-end sm:self-auto",children:[f.jsx("button",{onClick:()=>H("grid"),className:Me("p-2 rounded-md transition-colors",_==="grid"?"bg-dark-700 text-dark-100":"text-dark-400 hover:text-dark-200"),children:f.jsx(Nb,{className:"w-4 h-4"})}),f.jsx("button",{onClick:()=>H("list"),className:Me("p-2 rounded-md transition-colors",_==="list"?"bg-dark-700 text-dark-100":"text-dark-400 hover:text-dark-200"),children:f.jsx(_b,{className:"w-4 h-4"})})]})]}),N.length>0?f.jsx("div",{className:Me(_==="grid"?"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-4 sm:gap-6":"space-y-3 sm:space-y-4"),children:N.map(G=>f.jsx(J2,{skill:G,onLink:()=>v(G.id),onDelete:()=>z(G)},G.id))}):n.length===0?f.jsx(Ui,{icon:En,title:"No skills yet",description:"Add your first skill from a Git repository or local file to get started.",action:f.jsxs("button",{onClick:()=>x(!0),className:"btn-primary",children:[f.jsx(bc,{className:"w-4 h-4"}),"Add Your First Skill"]})}):f.jsx(Ui,{icon:vu,title:"No results found",description:`No skills matching "${y}"`}),f.jsx(JS,{isOpen:m,onClose:()=>x(!1)}),g&&f.jsx($S,{isOpen:!!g,skill:T,onClose:()=>v(null)})]})}const PS={vscode:{project:".github/skills",global:"~/.copilot/skills"},cursor:{project:".cursor/skills",global:"~/.cursor/skills"},"claude-desktop":{project:".claude/skills",global:"~/.claude/skills"},codex:{project:".codex/skills",global:"~/.codex/skills"},antigravity:{project:".agent/skills",global:"~/.agent/skills"},custom:{project:"skills",global:""}},Ru={vscode:{icon:fb,label:"VS Code",color:"text-blue-400 bg-blue-500/10"},cursor:{icon:Hb,label:"Cursor",color:"text-purple-400 bg-purple-500/10"},"claude-desktop":{icon:Lb,label:"Claude Code",color:"text-orange-400 bg-orange-500/10"},codex:{icon:t1,label:"Codex",color:"text-green-400 bg-green-500/10"},antigravity:{icon:f0,label:"Antigravity",color:"text-cyan-400 bg-cyan-500/10"},custom:{icon:vc,label:"Custom",color:"text-dark-400 bg-dark-700"}},qh={project:{icon:bb,label:"Project",description:"Skills for a specific project"},global:{icon:kb,label:"Global",description:"Skills available across all projects"}};function IS(){const{workspaces:n,workspacesLoading:s,fetchWorkspaces:r,addWorkspace:o,removeWorkspace:u,showToast:p,updateWorkspace:m}=ta(),[x,g]=j.useState(!1),[v,y]=j.useState(null),[b,_]=j.useState(""),[H,T]=j.useState(!1),[z,N]=j.useState(null);j.useEffect(()=>{r()},[r]);const G=async Y=>{if(confirm(`Are you sure you want to delete "${Y.name}"? This will remove all skill links.`))try{await An.delete(Y.id),u(Y.id),p(`Workspace "${Y.name}" deleted`,"success")}catch(ne){p(ne.message||"Failed to delete workspace","error")}},M=async Y=>{o(Y),g(!1);try{const ne=await An.detectSkills(Y.id);ne.length>0?N({workspace:Y,skills:ne}):p(`Workspace "${Y.name}" added successfully!`,"success")}catch{p(`Workspace "${Y.name}" added successfully!`,"success")}},X=()=>{N(null),r()},P=Y=>{y(Y.id),_(Y.name)},ee=()=>{y(null),_("")},re=async Y=>{if(!b.trim()||b===Y.name){ee();return}T(!0);try{const ne=await An.update(Y.id,{name:b});m(Y.id,ne),p("Workspace name updated","success"),ee()}catch(ne){p(ne.message||"Failed to update workspace name","error")}finally{T(!1)}};return s&&n.length===0?f.jsx(_c,{}):f.jsxs("div",{className:"space-y-6 animate-fade-in",children:[f.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h1",{className:"text-2xl sm:text-3xl font-bold text-dark-100",children:"Workspaces"}),f.jsx("p",{className:"text-dark-400 mt-1 text-sm sm:text-base",children:"Manage your development workspaces"})]}),f.jsxs("button",{onClick:()=>g(!0),className:"btn-primary shrink-0 w-full sm:w-auto",children:[f.jsx(bc,{className:"w-4 h-4"}),"Add Workspace"]})]}),n.length>0?f.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-4 sm:gap-6",children:n.map(Y=>{const ne=Ru[Y.type],Ee=ne?.icon||vc,Ye=Y.linkedSkills?.length||0,et=Y.isPathValid!==!1;return f.jsxs("div",{className:"card group",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[f.jsx("div",{className:Me("w-10 h-10 rounded-xl flex items-center justify-center shrink-0",ne?.color||"bg-dark-700"),children:f.jsx(Ee,{className:"w-5 h-5"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[v===Y.id?f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("input",{type:"text",value:b,onChange:xe=>_(xe.target.value),className:"px-2 py-0.5 text-sm bg-dark-800 border border-primary-500 rounded text-dark-100 placeholder-dark-500 focus:outline-none w-[120px] sm:w-[160px]",autoFocus:!0,onKeyDown:xe=>{xe.key==="Enter"&&re(Y),xe.key==="Escape"&&ee()},onClick:xe=>xe.stopPropagation()}),f.jsx("button",{onClick:xe=>{xe.stopPropagation(),re(Y)},className:"p-1 rounded-md text-green-400 hover:bg-green-500/10",disabled:H,children:H?f.jsx(It,{className:"w-3.5 h-3.5 animate-spin"}):f.jsx(r0,{className:"w-3.5 h-3.5"})}),f.jsx("button",{onClick:xe=>{xe.stopPropagation(),ee()},className:"p-1 rounded-md text-red-400 hover:bg-red-500/10",disabled:H,children:f.jsx(fl,{className:"w-3.5 h-3.5"})})]}):f.jsxs("div",{className:"flex items-center gap-2 group/title",children:[f.jsx(Zt,{content:Y.name,position:"top",children:f.jsx("h3",{className:"font-semibold text-dark-100 truncate max-w-[150px] sm:max-w-[200px]",children:Y.name})}),f.jsx("button",{onClick:xe=>{xe.stopPropagation(),P(Y)},className:"opacity-0 group-hover/title:opacity-100 text-dark-400 hover:text-primary-400 transition-all p-0.5 rounded",children:f.jsx(Gb,{className:"w-3.5 h-3.5"})})]}),!et&&f.jsx(Zt,{content:"Skills folder not found - directory may have been deleted",position:"top",children:f.jsx("span",{className:"text-amber-400 shrink-0",children:f.jsx(gu,{className:"w-4 h-4"})})})]}),f.jsxs("div",{className:"flex items-center gap-2 text-xs text-dark-500",children:[f.jsx("span",{children:ne?.label||Y.type}),f.jsx("span",{children:"•"}),f.jsx("span",{className:"capitalize",children:Y.scope||"project"})]})]})]}),f.jsx("button",{onClick:()=>G(Y),className:"btn-icon opacity-0 group-hover:opacity-100 transition-opacity text-red-400 hover:text-red-300 shrink-0",children:f.jsx(d0,{className:"w-4 h-4"})})]}),f.jsx("div",{className:"mt-4",children:f.jsx(Zt,{content:Y.path,position:"bottom",className:"max-w-full",children:f.jsx("p",{className:Me("text-sm truncate",et?"text-dark-400":"text-amber-400"),children:Y.path})})}),f.jsxs("div",{className:"mt-4 pt-4 border-t border-dark-700 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2 text-xs text-dark-500",children:[f.jsx(yc,{className:"w-3.5 h-3.5"}),f.jsxs("span",{children:[Ye," skill",Ye!==1?"s":""," linked"]})]}),f.jsx("div",{className:"text-xs text-dark-500",children:new Date(Y.createdAt).toLocaleDateString()})]})]},Y.id)})}):f.jsx(Ui,{icon:ol,title:"No workspaces yet",description:"Add a workspace to start linking skills to your development environment.",action:f.jsxs("button",{onClick:()=>g(!0),className:"btn-primary",children:[f.jsx(bc,{className:"w-4 h-4"}),"Add Your First Workspace"]})}),x&&f.jsx(ej,{onClose:()=>g(!1),onAdd:M}),z&&f.jsx(tj,{workspace:z.workspace,skills:z.skills,onClose:X})]})}function ej({onClose:n,onAdd:s}){const[r,o]=j.useState(""),[u,p]=j.useState(""),[m,x]=j.useState("antigravity"),[g,v]=j.useState("project"),[y,b]=j.useState(!1),[_,H]=j.useState(""),T=j.useMemo(()=>{const N=PS[m];return g==="global"?N.global:u?`${u}/${N.project}`:N.project},[m,g,u]),z=async N=>{if(N.preventDefault(),!r){H("Name is required");return}if(g==="project"&&!u){H("Project path is required for project scope");return}b(!0),H("");try{const G=await An.create({name:r,projectPath:u,type:m,scope:g});s(G)}catch(G){H(G.message||"Failed to create workspace")}finally{b(!1)}};return f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-2 sm:p-4",children:[f.jsx("div",{className:"absolute inset-0 bg-dark-950/80 backdrop-blur-sm",onClick:n}),f.jsxs("div",{className:"relative w-full max-w-lg bg-dark-800 border border-dark-700 rounded-2xl shadow-2xl animate-scale-in max-h-[90vh] overflow-y-auto",children:[f.jsxs("div",{className:"flex items-center justify-between px-4 sm:px-6 py-4 border-b border-dark-700 sticky top-0 bg-dark-800 z-10",children:[f.jsx("h2",{className:"text-lg font-semibold text-dark-100",children:"Add Workspace"}),f.jsx("button",{onClick:n,className:"btn-icon",children:f.jsx(fl,{className:"w-5 h-5"})})]}),f.jsxs("form",{onSubmit:z,className:"p-4 sm:p-6 space-y-4 sm:space-y-5",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"Name"}),f.jsx("input",{type:"text",value:r,onChange:N=>o(N.target.value),placeholder:"My Workspace",className:"input",disabled:y})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"Editor Type"}),f.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:Object.keys(Ru).map(N=>{const G=Ru[N],M=G.icon;return f.jsxs("button",{type:"button",onClick:()=>x(N),className:Me("flex items-center gap-2 p-2 sm:p-3 rounded-lg border transition-all",m===N?"bg-primary-500/10 border-primary-500/50 text-dark-100":"bg-dark-750 border-dark-600 text-dark-400 hover:border-dark-500"),disabled:y,children:[f.jsx(M,{className:"w-4 h-4 shrink-0"}),f.jsx("span",{className:"text-xs sm:text-sm truncate",children:G.label})]},N)})})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"Scope"}),f.jsx("div",{className:"grid grid-cols-2 gap-2",children:Object.keys(qh).map(N=>{const G=qh[N],M=G.icon;return f.jsxs("button",{type:"button",onClick:()=>v(N),className:Me("flex flex-col items-start gap-1 p-2 sm:p-3 rounded-lg border transition-all",g===N?"bg-primary-500/10 border-primary-500/50 text-dark-100":"bg-dark-750 border-dark-600 text-dark-400 hover:border-dark-500"),disabled:y,children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(M,{className:"w-4 h-4"}),f.jsx("span",{className:"text-sm font-medium",children:G.label})]}),f.jsx("span",{className:"text-xs text-dark-500 text-left",children:G.description})]},N)})})]}),g==="project"&&f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"Project Path"}),f.jsx("input",{type:"text",value:u,onChange:N=>p(N.target.value),placeholder:"/path/to/your/project",className:"input",disabled:y})]}),f.jsxs("div",{className:"p-3 rounded-lg bg-dark-750 border border-dark-600",children:[f.jsx("p",{className:"text-xs text-dark-400 mb-1",children:"Skills will be stored in:"}),f.jsx("code",{className:"text-xs sm:text-sm text-primary-400 break-all",children:T}),f.jsx("p",{className:"text-xs text-dark-500 mt-2",children:"The folder will be created automatically if it doesn't exist."})]}),_&&f.jsx("div",{className:"p-3 rounded-lg bg-red-500/10 border border-red-500/30 text-red-400 text-sm",children:_}),f.jsxs("div",{className:"flex gap-3 pt-2",children:[f.jsx("button",{type:"button",onClick:n,className:"btn-secondary flex-1",disabled:y,children:"Cancel"}),f.jsx("button",{type:"submit",className:"btn-primary flex-1",disabled:y,children:y?f.jsxs(f.Fragment,{children:[f.jsx(It,{className:"w-4 h-4 animate-spin"}),"Creating..."]}):"Add Workspace"})]})]})]})]})}function tj({workspace:n,skills:s,onClose:r}){const[o,u]=j.useState(!1),[p,m]=j.useState(null),{showToast:x,fetchSkills:g}=ta(),v=async()=>{u(!0);try{const b=s.map(H=>H.name),_=await An.migrateSkills(n.id,b);m(_),_.migrated.length>0&&(x(`Migrated ${_.migrated.length} skill(s) successfully!`,"success"),g())}catch(b){x(b.message||"Migration failed","error")}finally{u(!1)}},y=()=>{x(`Workspace "${n.name}" added successfully!`,"success"),r()};return f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-2 sm:p-4",children:[f.jsx("div",{className:"absolute inset-0 bg-dark-950/80 backdrop-blur-sm",onClick:p?r:void 0}),f.jsxs("div",{className:"relative w-full max-w-lg bg-dark-800 border border-dark-700 rounded-2xl shadow-2xl animate-scale-in max-h-[90vh] overflow-y-auto",children:[f.jsxs("div",{className:"flex items-center justify-between px-4 sm:px-6 py-4 border-b border-dark-700 sticky top-0 bg-dark-800 z-10",children:[f.jsx("h2",{className:"text-lg font-semibold text-dark-100",children:p?"Migration Complete":"Existing Skills Detected"}),p&&f.jsx("button",{onClick:r,className:"btn-icon",children:f.jsx(fl,{className:"w-5 h-5"})})]}),f.jsx("div",{className:"p-4 sm:p-6 space-y-4",children:p?f.jsxs(f.Fragment,{children:[p.migrated.length>0&&f.jsxs("div",{className:"space-y-2",children:[f.jsxs("p",{className:"text-sm font-medium text-green-400 flex items-center gap-2",children:[f.jsx(o0,{className:"w-4 h-4"}),"Successfully migrated (",p.migrated.length,")"]}),f.jsx("div",{className:"space-y-1",children:p.migrated.map(b=>f.jsxs("div",{className:"flex items-center gap-2 p-2 rounded bg-green-500/10 text-sm text-dark-100",children:[f.jsx(vc,{className:"w-3.5 h-3.5 text-green-400"}),f.jsx("span",{className:"truncate",children:b})]},b))})]}),p.errors.length>0&&f.jsxs("div",{className:"space-y-2",children:[f.jsxs("p",{className:"text-sm font-medium text-red-400 flex items-center gap-2",children:[f.jsx(u0,{className:"w-4 h-4"}),"Errors (",p.errors.length,")"]}),f.jsx("div",{className:"space-y-1",children:p.errors.map((b,_)=>f.jsx("div",{className:"p-2 rounded bg-red-500/10 text-sm text-red-400 break-words",children:b},_))})]}),f.jsx("div",{className:"flex justify-end pt-2",children:f.jsx("button",{onClick:r,className:"btn-primary",children:"Done"})})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"p-3 sm:p-4 rounded-lg bg-amber-500/10 border border-amber-500/30",children:f.jsxs("p",{className:"text-amber-400 text-sm text-justified",children:["Found ",f.jsx("strong",{children:s.length})," existing skill(s) in this workspace. Would you like to migrate them to unified management?"]})}),f.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:s.map(b=>f.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-dark-750 border border-dark-600",children:[f.jsx(vc,{className:"w-4 h-4 text-primary-400 shrink-0"}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("p",{className:"text-sm font-medium text-dark-100 truncate",children:b.name}),f.jsx(Zt,{content:b.path,position:"bottom",children:f.jsx("p",{className:"text-xs text-dark-500 truncate lg:max-w-[320px]",children:b.path})})]}),b.hasSkillMd&&f.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-green-500/10 text-green-400 shrink-0",children:"SKILL.md"})]},b.name))}),f.jsxs("div",{className:"p-3 rounded-lg bg-dark-750 border border-dark-600",children:[f.jsx("p",{className:"text-xs text-dark-400 mb-2",children:"Migration will:"}),f.jsxs("ul",{className:"text-xs text-dark-500 space-y-1 ml-3",children:[f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx(lu,{className:"w-3 h-3 text-primary-400 shrink-0"}),f.jsxs("span",{children:["Move skills to ",f.jsx("code",{className:"text-primary-400",children:"~/.skillverse/skills/"})]})]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx(lu,{className:"w-3 h-3 text-primary-400 shrink-0"}),f.jsx("span",{children:"Register them in SkillVerse for unified management"})]}),f.jsxs("li",{className:"flex items-center gap-2",children:[f.jsx(lu,{className:"w-3 h-3 text-primary-400 shrink-0"}),f.jsx("span",{children:"Create symlinks back to this workspace"})]})]})]}),f.jsxs("div",{className:"flex gap-3 pt-2",children:[f.jsx("button",{onClick:y,className:"btn-secondary flex-1",disabled:o,children:"No, Keep as is"}),f.jsx("button",{onClick:v,className:"btn-primary flex-1",disabled:o,children:o?f.jsxs(f.Fragment,{children:[f.jsx(It,{className:"w-4 h-4 animate-spin"}),"Migrating..."]}):"Yes, Migrate"})]})]})})]})]})}function aj(){const{marketplaceSkills:n,marketplaceLoading:s,fetchMarketplace:r,skills:o,fetchSkills:u,showToast:p,addSkill:m}=ta(),[x,g]=j.useState(""),[v,y]=j.useState("browse"),[b,_]=j.useState(null),[H,T]=j.useState(null);j.useEffect(()=>{r(1,x||void 0)},[r,x]),j.useEffect(()=>{v==="publish"&&o.length===0&&u()},[v,o.length,u]);const z=async M=>{_(M.id);try{const X=await wu.install(M.id);m(X),p(`Installed "${M.skill.name}" successfully!`,"success")}catch(X){p(X.message||"Failed to install skill","error")}finally{_(null)}},N=async M=>{T(M.id);try{await wu.publish({skillId:M.id}),p(`Published "${M.name}" to marketplace!`,"success"),r()}catch(X){p(X.message||"Failed to publish skill","error")}finally{T(null)}},G=new Set(n.map(M=>M.skillId));return f.jsxs("div",{className:"space-y-6 animate-fade-in",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl sm:text-3xl font-bold text-dark-100",children:"Marketplace"}),f.jsx("p",{className:"text-dark-400 mt-1 text-sm sm:text-base",children:"Browse and share skills with your team"})]}),f.jsxs("div",{className:"flex border-b border-dark-700 overflow-x-auto",children:[f.jsxs("button",{onClick:()=>y("browse"),className:Me("flex items-center gap-2 px-4 sm:px-6 py-3 text-sm font-medium transition-colors whitespace-nowrap",v==="browse"?"text-primary-400 border-b-2 border-primary-400":"text-dark-400 hover:text-dark-200"),children:[f.jsx(Nn,{className:"w-4 h-4"}),"Browse"]}),f.jsxs("button",{onClick:()=>y("publish"),className:Me("flex items-center gap-2 px-4 sm:px-6 py-3 text-sm font-medium transition-colors whitespace-nowrap",v==="publish"?"text-accent-400 border-b-2 border-accent-400":"text-dark-400 hover:text-dark-200"),children:[f.jsx(iu,{className:"w-4 h-4"}),"Publish"]})]}),v==="browse"?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"relative max-w-md",children:[f.jsx(vu,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-dark-400"}),f.jsx("input",{type:"text",value:x,onChange:M=>g(M.target.value),placeholder:"Search marketplace...",className:"input pl-10"})]}),s&&n.length===0?f.jsx(_c,{}):n.length>0?f.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-4 sm:gap-6",children:n.map(M=>f.jsxs("div",{className:"card group",children:[f.jsx("div",{className:"flex items-start justify-between gap-2",children:f.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[f.jsx("div",{className:Me("w-10 h-10 rounded-xl flex items-center justify-center shrink-0",M.skill.source==="git"?"bg-primary-500/10 text-primary-400":"bg-accent-500/10 text-accent-400"),children:M.skill.source==="git"?f.jsx(gc,{className:"w-5 h-5"}):f.jsx(Mi,{className:"w-5 h-5"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx(Zt,{content:M.skill.name,position:"top",children:f.jsx("h3",{className:"font-semibold text-dark-100 truncate max-w-[180px] sm:max-w-[200px]",children:M.skill.name})}),f.jsxs("p",{className:"text-xs text-dark-500 truncate",children:["by ",M.publisherName||"Anonymous"]})]})]})}),M.skill.description&&f.jsx(Zt,{content:M.skill.description,position:"bottom",children:f.jsx("p",{className:"mt-3 text-sm text-dark-400 line-clamp-2 text-justified",children:M.skill.description})}),f.jsxs("div",{className:"mt-4 pt-4 border-t border-dark-700 flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex items-center gap-2 text-xs text-dark-500",children:[f.jsx(lh,{className:"w-3.5 h-3.5"}),f.jsxs("span",{children:[M.downloads," downloads"]})]}),f.jsx("button",{onClick:()=>z(M),disabled:b===M.id||M.skill.source!=="git",className:"btn-primary text-xs py-1.5 px-3 shrink-0",children:b===M.id?f.jsx(It,{className:"w-3 h-3 animate-spin"}):f.jsxs(f.Fragment,{children:[f.jsx(lh,{className:"w-3 h-3"}),"Install"]})})]})]},M.id))}):f.jsx(Ui,{icon:Nn,title:"Marketplace is empty",description:"No skills have been published yet. Be the first to share!"})]}):f.jsxs("div",{children:[f.jsx("p",{className:"text-dark-400 mb-6 text-sm sm:text-base text-justified",children:"Share your skills with other team members by publishing them to the marketplace."}),o.length>0?f.jsx("div",{className:"space-y-3 sm:space-y-4",children:o.map(M=>{const X=G.has(M.id);return f.jsxs("div",{className:"card flex flex-col sm:flex-row sm:items-center justify-between gap-3 sm:gap-4",children:[f.jsxs("div",{className:"flex items-center gap-3 sm:gap-4 min-w-0 flex-1",children:[f.jsx("div",{className:Me("w-10 h-10 rounded-xl flex items-center justify-center shrink-0",M.source==="git"?"bg-primary-500/10 text-primary-400":"bg-accent-500/10 text-accent-400"),children:M.source==="git"?f.jsx(gc,{className:"w-5 h-5"}):f.jsx(Mi,{className:"w-5 h-5"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx(Zt,{content:M.name,position:"top",children:f.jsx("h3",{className:"font-medium text-dark-100 truncate",children:M.name})}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500",children:M.source==="git"?"Git Repository":"Local Upload"})]})]}),f.jsx("div",{className:"self-end sm:self-auto shrink-0",children:X?f.jsxs("span",{className:"text-sm text-green-400 flex items-center gap-1",children:[f.jsx(iu,{className:"w-4 h-4"}),"Published"]}):M.source==="git"?f.jsx("button",{onClick:()=>N(M),disabled:H===M.id,className:"btn-secondary",children:H===M.id?f.jsx(It,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:[f.jsx(iu,{className:"w-4 h-4"}),"Publish"]})}):f.jsx("span",{className:"text-xs text-dark-500",children:"Only Git skills can be published"})})]},M.id)})}):f.jsx(Ui,{icon:Nn,title:"No skills to publish",description:"Add some skills first to share them with your team."})]})]})}function lj(){const{showToast:n}=ta(),[s,r]=j.useState(""),[o,u]=j.useState(""),[p]=j.useState("http://localhost:3001/api"),[m,x]=j.useState(!0),[g,v]=j.useState(!1),[y,b]=j.useState(""),[_,H]=j.useState(!1),[T,z]=j.useState("");j.useEffect(()=>{N()},[]);const N=async()=>{try{const P=await(await fetch(`${p}/config`)).json();P.success&&(r(P.data.skillverseHome||""),b(P.data.skillverseHome||""),u(P.data.registryUrl||""))}catch(X){console.error("Failed to fetch config:",X),n("Failed to load settings","error")}finally{x(!1)}},G=()=>{s!==y?(z(s),H(!0)):M(!1)},M=async X=>{v(!0),H(!1);try{const ee=await(await fetch(`${p}/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({skillverseHome:s,registryUrl:o,migrate:X})})).json();ee.success?(n("Settings saved successfully!"+(X?" Data migration started.":""),"success"),b(s)):n("Failed to save settings: "+ee.error,"error")}catch(P){console.error("Failed to save settings:",P),n("Failed to save settings","error")}finally{v(!1)}};return m?f.jsx("div",{className:"flex items-center justify-center p-12",children:f.jsx(It,{className:"w-8 h-8 animate-spin text-primary-500"})}):f.jsxs("div",{className:"space-y-6 animate-fade-in max-w-2xl relative",children:[_&&f.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm p-4 animate-in fade-in duration-200",children:f.jsxs("div",{className:"bg-dark-800 rounded-2xl shadow-2xl max-w-lg w-full overflow-hidden border border-dark-700 animate-in zoom-in-95 duration-200 ring-1 ring-white/5",children:[f.jsxs("div",{className:"bg-dark-900/50 p-6 border-b border-dark-700 flex items-center gap-5",children:[f.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-primary-500 to-primary-600 text-white flex items-center justify-center shadow-lg shadow-primary-500/20 ring-1 ring-white/10",children:f.jsx(ah,{className:"w-6 h-6"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xl font-bold text-dark-100 tracking-tight",children:"Migrate Data"}),f.jsx("p",{className:"text-dark-400 text-sm font-medium",children:"Storage Location Changed"})]})]}),f.jsxs("div",{className:"p-6 space-y-5",children:[f.jsx("p",{className:"text-dark-200 leading-relaxed text-base",children:"You are about to change the SkillVerse home directory to a new location."}),f.jsx("div",{className:"bg-dark-950/50 rounded-xl p-4 border border-dark-700/50 font-mono text-xs sm:text-sm text-primary-400 break-all shadow-inner",children:T}),f.jsxs("div",{className:"bg-yellow-500/10 border border-yellow-500/20 rounded-xl p-4 flex gap-4 text-yellow-500 text-sm",children:[f.jsx(gu,{className:"w-5 h-5 shrink-0 mt-0.5"}),f.jsxs("div",{className:"space-y-1",children:[f.jsx("p",{className:"font-medium text-yellow-400",children:"Migrate existing data?"}),f.jsx("p",{className:"opacity-80 leading-relaxed",children:'Use "Migrate Data" to copy your skills and database. If you choose "Start Fresh", a new empty workspace will be created.'})]})]})]}),f.jsxs("div",{className:"bg-dark-900/30 p-6 flex flex-col sm:flex-row gap-3 justify-end border-t border-dark-700",children:[f.jsx("button",{onClick:()=>H(!1),className:"px-5 py-2.5 rounded-xl text-dark-300 hover:text-dark-100 hover:bg-dark-700/50 transition-all font-medium",children:"Cancel"}),f.jsx("div",{className:"flex-1 sm:flex-none"}),f.jsx("button",{onClick:()=>M(!1),className:"w-full sm:w-auto px-5 py-2.5 rounded-xl border border-dark-600 text-dark-300 hover:bg-dark-700 hover:text-dark-100 transition-all font-medium",children:"Start Fresh"}),f.jsx("button",{onClick:()=>M(!0),className:"w-full sm:w-auto px-6 py-2.5 rounded-xl bg-gradient-to-r from-primary-500 to-primary-600 text-white font-semibold hover:from-primary-400 hover:to-primary-500 transition-all shadow-lg shadow-primary-500/25 hover:shadow-primary-500/40 transform hover:-translate-y-0.5 active:translate-y-0 ring-1 ring-white/10",children:"Yes, Migrate Data"})]})]})}),f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl sm:text-3xl font-bold text-dark-100",children:"Settings"}),f.jsx("p",{className:"text-dark-400 mt-1 text-sm sm:text-base",children:"Configure your SkillVerse preferences"})]}),f.jsxs("div",{className:"card",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-4 sm:mb-6",children:[f.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-500/10 flex items-center justify-center shrink-0",children:f.jsx(ol,{className:"w-5 h-5 text-primary-400"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h2",{className:"font-semibold text-dark-100",children:"Storage"}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500",children:"Configure skill storage location"})]})]}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"SkillVerse Home Directory"}),f.jsx("input",{type:"text",value:s,onChange:X=>r(X.target.value),className:"input",placeholder:"e.g. ~/.skillverse"}),f.jsx("p",{className:"mt-1 text-xs text-dark-500",children:"Where skills and configuration are stored"})]}),s!==y&&f.jsxs("div",{className:"flex items-start gap-2 p-3 bg-yellow-500/10 rounded-lg text-yellow-500 text-sm",children:[f.jsx(gu,{className:"w-4 h-4 mt-0.5 shrink-0"}),f.jsx("p",{children:"Changing the home directory requires a server restart to take full effect. New paths will be used after you restart the application."})]})]})]}),f.jsxs("div",{className:"card",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-4 sm:mb-6",children:[f.jsx("div",{className:"w-10 h-10 rounded-xl bg-accent-500/10 flex items-center justify-center shrink-0",children:f.jsx(ah,{className:"w-5 h-5 text-accent-400"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h2",{className:"font-semibold text-dark-100",children:"Registry"}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500",children:"Remote registry connection"})]})]}),f.jsx("div",{className:"space-y-4",children:f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"Registry URL"}),f.jsx("input",{type:"text",value:o,onChange:X=>u(X.target.value),className:"input",placeholder:"e.g. http://localhost:4000"})]})})]}),f.jsxs("div",{className:"card opacity-60",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-4 sm:mb-6",children:[f.jsx("div",{className:"w-10 h-10 rounded-xl bg-dark-700 flex items-center justify-center shrink-0",children:f.jsx(xu,{className:"w-5 h-5 text-dark-400"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h2",{className:"font-semibold text-dark-100",children:"Connection"}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500",children:"Frontend to Backend connection"})]})]}),f.jsx("div",{className:"space-y-4",children:f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-dark-300 mb-2",children:"API URL (Read-only)"}),f.jsx("input",{type:"text",value:p,readOnly:!0,disabled:!0,className:"input cursor-not-allowed text-dark-500"}),f.jsx("p",{className:"mt-1 text-xs text-dark-500",children:"Configured via VITE_API_URL environment variable"})]})})]}),f.jsxs("div",{className:"card",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-4 sm:mb-6",children:[f.jsx("div",{className:"w-10 h-10 rounded-xl bg-dark-700 flex items-center justify-center shrink-0",children:f.jsx(xu,{className:"w-5 h-5 text-dark-400"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h2",{className:"font-semibold text-dark-100",children:"About"}),f.jsx("p",{className:"text-xs sm:text-sm text-dark-500",children:"Application information"})]})]}),f.jsxs("div",{className:"space-y-3 text-sm",children:[f.jsxs("div",{className:"flex justify-between items-center gap-4",children:[f.jsx("span",{className:"text-dark-400",children:"Version"}),f.jsx("span",{className:"text-dark-100",children:"0.1.0"})]}),f.jsxs("div",{className:"flex justify-between items-center gap-4",children:[f.jsx("span",{className:"text-dark-400",children:"Platform"}),f.jsx("span",{className:"text-dark-100 truncate max-w-[200px]",children:navigator.platform})]}),f.jsxs("div",{className:"flex justify-between items-center gap-4",children:[f.jsx("span",{className:"text-dark-400",children:"License"}),f.jsx("span",{className:"text-dark-100",children:"MIT"})]})]})]}),f.jsx("div",{className:"flex justify-end sticky bottom-6 z-10",children:f.jsx("button",{onClick:G,className:"btn-primary w-full sm:w-auto shadow-lg shadow-primary-500/20",disabled:g,children:g?f.jsxs(f.Fragment,{children:[f.jsx(It,{className:"w-4 h-4 animate-spin"}),"Saving..."]}):f.jsxs(f.Fragment,{children:[f.jsx(Kb,{className:"w-4 h-4"}),"Save Settings"]})})})]})}function nj(){return f.jsx(By,{children:f.jsx(xy,{children:f.jsxs(Ol,{path:"/",element:f.jsx(Z2,{}),children:[f.jsx(Ol,{index:!0,element:f.jsx(F2,{})}),f.jsx(Ol,{path:"skills",element:f.jsx(WS,{})}),f.jsx(Ol,{path:"workspaces",element:f.jsx(IS,{})}),f.jsx(Ol,{path:"marketplace",element:f.jsx(aj,{})}),f.jsx(Ol,{path:"settings",element:f.jsx(lj,{})})]})})})}hg.createRoot(document.getElementById("root")).render(f.jsx(j.StrictMode,{children:f.jsx(nj,{})}));
|