autoglm-gui 1.5.5__py3-none-any.whl → 1.5.7__py3-none-any.whl
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.
- AutoGLM_GUI/api/agents.py +118 -93
- AutoGLM_GUI/api/devices.py +177 -0
- AutoGLM_GUI/api/scheduled_tasks.py +7 -2
- AutoGLM_GUI/device_group_manager.py +354 -0
- AutoGLM_GUI/models/__init__.py +8 -0
- AutoGLM_GUI/models/device_group.py +63 -0
- AutoGLM_GUI/models/scheduled_task.py +47 -4
- AutoGLM_GUI/scheduler_manager.py +255 -80
- AutoGLM_GUI/schemas.py +148 -3
- AutoGLM_GUI/static/assets/{about-BwLRPh96.js → about-BN7TF-uS.js} +1 -1
- AutoGLM_GUI/static/assets/{alert-dialog-BvDNaR9v.js → alert-dialog-D62FbnlZ.js} +1 -1
- AutoGLM_GUI/static/assets/chat-OpHm69J3.js +134 -0
- AutoGLM_GUI/static/assets/{dialog-IM0Ds7Lf.js → dialog-LOCyYNCR.js} +3 -3
- AutoGLM_GUI/static/assets/{eye-BWBwz8sy.js → eye-CphvL3Nj.js} +1 -1
- AutoGLM_GUI/static/assets/folder-open-1SAaazEb.js +1 -0
- AutoGLM_GUI/static/assets/{history-BkQlPjpV.js → history-Ef0dqgi8.js} +1 -1
- AutoGLM_GUI/static/assets/index-84TrNz7w.css +1 -0
- AutoGLM_GUI/static/assets/index-CGykihaE.js +1 -0
- AutoGLM_GUI/static/assets/index-DGbZjnSP.js +11 -0
- AutoGLM_GUI/static/assets/{label-CmQFo_IT.js → label-YliMUBOr.js} +1 -1
- AutoGLM_GUI/static/assets/logs-DeHKldwN.js +1 -0
- AutoGLM_GUI/static/assets/popover-DQ7GD1WC.js +1 -0
- AutoGLM_GUI/static/assets/scheduled-tasks-DL6pE9tE.js +1 -0
- AutoGLM_GUI/static/assets/{textarea-BlKvI11g.js → textarea-thgveQFy.js} +1 -1
- AutoGLM_GUI/static/assets/{workflows-CRq1fJf5.js → workflows-DRsmfMuf.js} +1 -1
- AutoGLM_GUI/static/index.html +2 -2
- {autoglm_gui-1.5.5.dist-info → autoglm_gui-1.5.7.dist-info}/METADATA +355 -6
- {autoglm_gui-1.5.5.dist-info → autoglm_gui-1.5.7.dist-info}/RECORD +31 -29
- AutoGLM_GUI/static/assets/chat-DAmrsouh.js +0 -129
- AutoGLM_GUI/static/assets/circle-alert-C8768IhH.js +0 -1
- AutoGLM_GUI/static/assets/index-B0fISVXF.js +0 -1
- AutoGLM_GUI/static/assets/index-CH4jPveL.js +0 -11
- AutoGLM_GUI/static/assets/index-DSIMVL8V.css +0 -1
- AutoGLM_GUI/static/assets/logs-ChcSA2r_.js +0 -1
- AutoGLM_GUI/static/assets/popover-BnpBfSOh.js +0 -1
- AutoGLM_GUI/static/assets/scheduled-tasks-BwgoPEdP.js +0 -1
- {autoglm_gui-1.5.5.dist-info → autoglm_gui-1.5.7.dist-info}/WHEEL +0 -0
- {autoglm_gui-1.5.5.dist-info → autoglm_gui-1.5.7.dist-info}/entry_points.txt +0 -0
- {autoglm_gui-1.5.5.dist-info → autoglm_gui-1.5.7.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/workflows-DRsmfMuf.js","assets/label-YliMUBOr.js","assets/textarea-thgveQFy.js","assets/dialog-LOCyYNCR.js","assets/scheduled-tasks-DL6pE9tE.js","assets/alert-dialog-D62FbnlZ.js","assets/popover-DQ7GD1WC.js","assets/logs-DeHKldwN.js","assets/folder-open-1SAaazEb.js","assets/history-Ef0dqgi8.js","assets/eye-CphvL3Nj.js","assets/chat-OpHm69J3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function Cb(a,o){for(var l=0;l<o.length;l++){const r=o[l];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(r,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();var lC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lf(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var wu={exports:{}},jl={};var Mp;function Rb(){if(Mp)return jl;Mp=1;var a=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function l(r,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:a,type:r,key:d,ref:c!==void 0?c:null,props:f}}return jl.Fragment=o,jl.jsx=l,jl.jsxs=l,jl}var Op;function Ab(){return Op||(Op=1,wu.exports=Rb()),wu.exports}var k=Ab(),_u={exports:{}},Bl={},Eu={exports:{}},Tu={};var Dp;function Mb(){return Dp||(Dp=1,(function(a){function o(D,W){var V=D.length;D.push(W);e:for(;0<V;){var fe=V-1>>>1,ye=D[fe];if(0<c(ye,W))D[fe]=W,D[V]=ye,V=fe;else break e}}function l(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var W=D[0],V=D.pop();if(V!==W){D[0]=V;e:for(var fe=0,ye=D.length,C=ye>>>1;fe<C;){var X=2*(fe+1)-1,F=D[X],$=X+1,oe=D[$];if(0>c(F,V))$<ye&&0>c(oe,F)?(D[fe]=oe,D[$]=V,fe=$):(D[fe]=F,D[X]=V,fe=X);else if($<ye&&0>c(oe,V))D[fe]=oe,D[$]=V,fe=$;else break e}}return W}function c(D,W){var V=D.sortIndex-W.sortIndex;return V!==0?V:D.id-W.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();a.unstable_now=function(){return d.now()-g}}var h=[],m=[],v=1,y=null,b=3,x=!1,w=!1,A=!1,R=!1,M=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function Y(D){for(var W=l(m);W!==null;){if(W.callback===null)r(m);else if(W.startTime<=D)r(m),W.sortIndex=W.expirationTime,o(h,W);else break;W=l(m)}}function Z(D){if(A=!1,Y(D),!w)if(l(h)!==null)w=!0,G||(G=!0,ce());else{var W=l(m);W!==null&&pe(Z,W.startTime-D)}}var G=!1,N=-1,j=5,J=-1;function I(){return R?!0:!(a.unstable_now()-J<j)}function ee(){if(R=!1,G){var D=a.unstable_now();J=D;var W=!0;try{e:{w=!1,A&&(A=!1,H(N),N=-1),x=!0;var V=b;try{t:{for(Y(D),y=l(h);y!==null&&!(y.expirationTime>D&&I());){var fe=y.callback;if(typeof fe=="function"){y.callback=null,b=y.priorityLevel;var ye=fe(y.expirationTime<=D);if(D=a.unstable_now(),typeof ye=="function"){y.callback=ye,Y(D),W=!0;break t}y===l(h)&&r(h),Y(D)}else r(h);y=l(h)}if(y!==null)W=!0;else{var C=l(m);C!==null&&pe(Z,C.startTime-D),W=!1}}break e}finally{y=null,b=V,x=!1}W=void 0}}finally{W?ce():G=!1}}}var ce;if(typeof B=="function")ce=function(){B(ee)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,de=me.port2;me.port1.onmessage=ee,ce=function(){de.postMessage(null)}}else ce=function(){M(ee,0)};function pe(D,W){N=M(function(){D(a.unstable_now())},W)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(D){D.callback=null},a.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<D?Math.floor(1e3/D):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(D){switch(b){case 1:case 2:case 3:var W=3;break;default:W=b}var V=b;b=W;try{return D()}finally{b=V}},a.unstable_requestPaint=function(){R=!0},a.unstable_runWithPriority=function(D,W){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var V=b;b=D;try{return W()}finally{b=V}},a.unstable_scheduleCallback=function(D,W,V){var fe=a.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?fe+V:fe):V=fe,D){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=V+ye,D={id:v++,callback:W,priorityLevel:D,startTime:V,expirationTime:ye,sortIndex:-1},V>fe?(D.sortIndex=V,o(m,D),l(h)===null&&D===l(m)&&(A?(H(N),N=-1):A=!0,pe(Z,V-fe))):(D.sortIndex=ye,o(h,D),w||x||(w=!0,G||(G=!0,ce()))),D},a.unstable_shouldYield=I,a.unstable_wrapCallback=function(D){var W=b;return function(){var V=b;b=W;try{return D.apply(this,arguments)}finally{b=V}}}})(Tu)),Tu}var zp;function Ob(){return zp||(zp=1,Eu.exports=Mb()),Eu.exports}var Cu={exports:{}},ge={};var Np;function Db(){if(Np)return ge;Np=1;var a=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function x(C){return C===null||typeof C!="object"?null:(C=b&&C[b]||C["@@iterator"],typeof C=="function"?C:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,R={};function M(C,X,F){this.props=C,this.context=X,this.refs=R,this.updater=F||w}M.prototype.isReactComponent={},M.prototype.setState=function(C,X){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,X,"setState")},M.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function H(){}H.prototype=M.prototype;function B(C,X,F){this.props=C,this.context=X,this.refs=R,this.updater=F||w}var Y=B.prototype=new H;Y.constructor=B,A(Y,M.prototype),Y.isPureReactComponent=!0;var Z=Array.isArray;function G(){}var N={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function J(C,X,F){var $=F.ref;return{$$typeof:a,type:C,key:X,ref:$!==void 0?$:null,props:F}}function I(C,X){return J(C.type,X,C.props)}function ee(C){return typeof C=="object"&&C!==null&&C.$$typeof===a}function ce(C){var X={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(F){return X[F]})}var me=/\/+/g;function de(C,X){return typeof C=="object"&&C!==null&&C.key!=null?ce(""+C.key):X.toString(36)}function pe(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(G,G):(C.status="pending",C.then(function(X){C.status==="pending"&&(C.status="fulfilled",C.value=X)},function(X){C.status==="pending"&&(C.status="rejected",C.reason=X)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function D(C,X,F,$,oe){var se=typeof C;(se==="undefined"||se==="boolean")&&(C=null);var le=!1;if(C===null)le=!0;else switch(se){case"bigint":case"string":case"number":le=!0;break;case"object":switch(C.$$typeof){case a:case o:le=!0;break;case v:return le=C._init,D(le(C._payload),X,F,$,oe)}}if(le)return oe=oe(C),le=$===""?"."+de(C,0):$,Z(oe)?(F="",le!=null&&(F=le.replace(me,"$&/")+"/"),D(oe,X,F,"",function(ot){return ot})):oe!=null&&(ee(oe)&&(oe=I(oe,F+(oe.key==null||C&&C.key===oe.key?"":(""+oe.key).replace(me,"$&/")+"/")+le)),X.push(oe)),1;le=0;var Be=$===""?".":$+":";if(Z(C))for(var Te=0;Te<C.length;Te++)$=C[Te],se=Be+de($,Te),le+=D($,X,F,se,oe);else if(Te=x(C),typeof Te=="function")for(C=Te.call(C),Te=0;!($=C.next()).done;)$=$.value,se=Be+de($,Te++),le+=D($,X,F,se,oe);else if(se==="object"){if(typeof C.then=="function")return D(pe(C),X,F,$,oe);throw X=String(C),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return le}function W(C,X,F){if(C==null)return C;var $=[],oe=0;return D(C,$,"","",function(se){return X.call(F,se,oe++)}),$}function V(C){if(C._status===-1){var X=C._result;X=X(),X.then(function(F){(C._status===0||C._status===-1)&&(C._status=1,C._result=F)},function(F){(C._status===0||C._status===-1)&&(C._status=2,C._result=F)}),C._status===-1&&(C._status=0,C._result=X)}if(C._status===1)return C._result.default;throw C._result}var fe=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},ye={map:W,forEach:function(C,X,F){W(C,function(){X.apply(this,arguments)},F)},count:function(C){var X=0;return W(C,function(){X++}),X},toArray:function(C){return W(C,function(X){return X})||[]},only:function(C){if(!ee(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ge.Activity=y,ge.Children=ye,ge.Component=M,ge.Fragment=l,ge.Profiler=c,ge.PureComponent=B,ge.StrictMode=r,ge.Suspense=h,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,ge.__COMPILER_RUNTIME={__proto__:null,c:function(C){return N.H.useMemoCache(C)}},ge.cache=function(C){return function(){return C.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(C,X,F){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var $=A({},C.props),oe=C.key;if(X!=null)for(se in X.key!==void 0&&(oe=""+X.key),X)!j.call(X,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&X.ref===void 0||($[se]=X[se]);var se=arguments.length-2;if(se===1)$.children=F;else if(1<se){for(var le=Array(se),Be=0;Be<se;Be++)le[Be]=arguments[Be+2];$.children=le}return J(C.type,oe,$)},ge.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:f,_context:C},C},ge.createElement=function(C,X,F){var $,oe={},se=null;if(X!=null)for($ in X.key!==void 0&&(se=""+X.key),X)j.call(X,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(oe[$]=X[$]);var le=arguments.length-2;if(le===1)oe.children=F;else if(1<le){for(var Be=Array(le),Te=0;Te<le;Te++)Be[Te]=arguments[Te+2];oe.children=Be}if(C&&C.defaultProps)for($ in le=C.defaultProps,le)oe[$]===void 0&&(oe[$]=le[$]);return J(C,se,oe)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(C){return{$$typeof:g,render:C}},ge.isValidElement=ee,ge.lazy=function(C){return{$$typeof:v,_payload:{_status:-1,_result:C},_init:V}},ge.memo=function(C,X){return{$$typeof:m,type:C,compare:X===void 0?null:X}},ge.startTransition=function(C){var X=N.T,F={};N.T=F;try{var $=C(),oe=N.S;oe!==null&&oe(F,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(G,fe)}catch(se){fe(se)}finally{X!==null&&F.types!==null&&(X.types=F.types),N.T=X}},ge.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},ge.use=function(C){return N.H.use(C)},ge.useActionState=function(C,X,F){return N.H.useActionState(C,X,F)},ge.useCallback=function(C,X){return N.H.useCallback(C,X)},ge.useContext=function(C){return N.H.useContext(C)},ge.useDebugValue=function(){},ge.useDeferredValue=function(C,X){return N.H.useDeferredValue(C,X)},ge.useEffect=function(C,X){return N.H.useEffect(C,X)},ge.useEffectEvent=function(C){return N.H.useEffectEvent(C)},ge.useId=function(){return N.H.useId()},ge.useImperativeHandle=function(C,X,F){return N.H.useImperativeHandle(C,X,F)},ge.useInsertionEffect=function(C,X){return N.H.useInsertionEffect(C,X)},ge.useLayoutEffect=function(C,X){return N.H.useLayoutEffect(C,X)},ge.useMemo=function(C,X){return N.H.useMemo(C,X)},ge.useOptimistic=function(C,X){return N.H.useOptimistic(C,X)},ge.useReducer=function(C,X,F){return N.H.useReducer(C,X,F)},ge.useRef=function(C){return N.H.useRef(C)},ge.useState=function(C){return N.H.useState(C)},ge.useSyncExternalStore=function(C,X,F){return N.H.useSyncExternalStore(C,X,F)},ge.useTransition=function(){return N.H.useTransition()},ge.version="19.2.1",ge}var Lp;function $l(){return Lp||(Lp=1,Cu.exports=Db()),Cu.exports}var Ru={exports:{}},rt={};var kp;function zb(){if(kp)return rt;kp=1;var a=$l();function o(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(o(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(h,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:h,containerInfo:m,implementation:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,rt.createPortal=function(h,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(o(299));return f(h,m,null,v)},rt.flushSync=function(h){var m=d.T,v=r.p;try{if(d.T=null,r.p=2,h)return h()}finally{d.T=m,r.p=v,r.d.f()}},rt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(h,m))},rt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},rt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var v=m.as,y=g(v,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:x}):v==="script"&&r.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},rt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=g(m.as,m.crossOrigin);r.d.M(h,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(h)},rt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=g(v,m.crossOrigin);r.d.L(h,v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},rt.preloadModule=function(h,m){if(typeof h=="string")if(m){var v=g(m.as,m.crossOrigin);r.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(h)},rt.requestFormReset=function(h){r.d.r(h)},rt.unstable_batchedUpdates=function(h,m){return h(m)},rt.useFormState=function(h,m,v){return d.H.useFormState(h,m,v)},rt.useFormStatus=function(){return d.H.useHostTransitionStatus()},rt.version="19.2.1",rt}var Up;function Ng(){if(Up)return Ru.exports;Up=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(o){console.error(o)}}return a(),Ru.exports=zb(),Ru.exports}var jp;function Nb(){if(jp)return Bl;jp=1;var a=Ob(),o=$l(),l=Ng();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(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 h(e){if(f(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,i=t;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(i=s.return,i!==null){n=i;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return h(s),e;if(u===i)return h(s),t;u=u.sibling}throw Error(r(188))}if(n.return!==i.return)n=s,i=u;else{for(var p=!1,S=s.child;S;){if(S===n){p=!0,n=s,i=u;break}if(S===i){p=!0,i=s,n=u;break}S=S.sibling}if(!p){for(S=u.child;S;){if(S===n){p=!0,n=u,i=s;break}if(S===i){p=!0,i=u,n=s;break}S=S.sibling}if(!p)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var me=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case M:return"Profiler";case R:return"StrictMode";case Z:return"Suspense";case G:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case B:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case Y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case N:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var pe=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},fe=[],ye=-1;function C(e){return{current:e}}function X(e){0>ye||(e.current=fe[ye],fe[ye]=null,ye--)}function F(e,t){ye++,fe[ye]=e.current,e.current=t}var $=C(null),oe=C(null),se=C(null),le=C(null);function Be(e,t){switch(F(se,t),F(oe,e),F($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?$m(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=$m(t),e=Im(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X($),F($,e)}function Te(){X($),X(oe),X(se)}function ot(e){e.memoizedState!==null&&F(le,e);var t=$.current,n=Im(t,e.type);t!==n&&(F(oe,e),F($,n))}function ut(e){oe.current===e&&(X($),X(oe)),le.current===e&&(X(le),Nl._currentValue=V)}var $e,on;function rn(e){if($e===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$e=t&&t[1]||"",on=-1<n.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+$e+e+on}var Xa=!1;function Pi(e,t){if(!e||Xa)return"";Xa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(q){var U=q}Reflect.construct(e,[],K)}else{try{K.call()}catch(q){U=q}e.call(K.prototype)}}else{try{throw Error()}catch(q){U=q}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(q){if(q&&U&&typeof q.stack=="string")return[q.stack,U.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),p=u[0],S=u[1];if(p&&S){var _=p.split(`
|
|
5
|
+
`),L=S.split(`
|
|
6
|
+
`);for(s=i=0;i<_.length&&!_[i].includes("DetermineComponentFrameRoot");)i++;for(;s<L.length&&!L[s].includes("DetermineComponentFrameRoot");)s++;if(i===_.length||s===L.length)for(i=_.length-1,s=L.length-1;1<=i&&0<=s&&_[i]!==L[s];)s--;for(;1<=i&&0<=s;i--,s--)if(_[i]!==L[s]){if(i!==1||s!==1)do if(i--,s--,0>s||_[i]!==L[s]){var P=`
|
|
7
|
+
`+_[i].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=i&&0<=s);break}}}finally{Xa=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?rn(n):""}function cs(e,t){switch(e.tag){case 26:case 27:case 5:return rn(e.type);case 16:return rn("Lazy");case 13:return e.child!==t&&t!==null?rn("Suspense Fallback"):rn("Suspense");case 19:return rn("SuspenseList");case 0:case 15:return Pi(e.type,!1);case 11:return Pi(e.type.render,!1);case 1:return Pi(e.type,!0);case 31:return rn("Activity");default:return""}}function to(e){try{var t="",n=null;do t+=cs(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
|
|
8
|
+
Error generating stack: `+i.message+`
|
|
9
|
+
`+i.stack}}var Nn=Object.prototype.hasOwnProperty,Ln=a.unstable_scheduleCallback,Qa=a.unstable_cancelCallback,no=a.unstable_shouldYield,Ne=a.unstable_requestPaint,Me=a.unstable_now,bt=a.unstable_getCurrentPriorityLevel,Yi=a.unstable_ImmediatePriority,Df=a.unstable_UserBlockingPriority,ao=a.unstable_NormalPriority,rv=a.unstable_LowPriority,zf=a.unstable_IdlePriority,sv=a.log,cv=a.unstable_setDisableYieldValue,Xi=null,St=null;function kn(e){if(typeof sv=="function"&&cv(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Xi,e)}catch{}}var xt=Math.clz32?Math.clz32:dv,uv=Math.log,fv=Math.LN2;function dv(e){return e>>>=0,e===0?32:31-(uv(e)/fv|0)|0}var io=256,lo=262144,oo=4194304;function ga(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 ro(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var s=0,u=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var S=i&134217727;return S!==0?(i=S&~u,i!==0?s=ga(i):(p&=S,p!==0?s=ga(p):n||(n=S&~e,n!==0&&(s=ga(n))))):(S=i&~u,S!==0?s=ga(S):p!==0?s=ga(p):n||(n=i&~e,n!==0&&(s=ga(n)))),s===0?0:t!==0&&t!==s&&(t&u)===0&&(u=s&-s,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:s}function Qi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function hv(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 Nf(){var e=oo;return oo<<=1,(oo&62914560)===0&&(oo=4194304),e}function us(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function mv(e,t,n,i,s,u){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var S=e.entanglements,_=e.expirationTimes,L=e.hiddenUpdates;for(n=p&~n;0<n;){var P=31-xt(n),K=1<<P;S[P]=0,_[P]=-1;var U=L[P];if(U!==null)for(L[P]=null,P=0;P<U.length;P++){var q=U[P];q!==null&&(q.lane&=-536870913)}n&=~K}i!==0&&Lf(e,i,0),u!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=u&~(p&~t))}function Lf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-xt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function kf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-xt(n),s=1<<i;s&t|e[i]&t&&(e[i]|=t),n&=~s}}function Uf(e,t){var n=t&-t;return n=(n&42)!==0?1:fs(n),(n&(e.suspendedLanes|t))!==0?0:n}function fs(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 ds(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function jf(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:wp(e.type))}function Bf(e,t){var n=W.p;try{return W.p=e,t()}finally{W.p=n}}var Un=Math.random().toString(36).slice(2),tt="__reactFiber$"+Un,ft="__reactProps$"+Un,Za="__reactContainer$"+Un,hs="__reactEvents$"+Un,pv="__reactListeners$"+Un,gv="__reactHandles$"+Un,Hf="__reactResources$"+Un,Ki="__reactMarker$"+Un;function ms(e){delete e[tt],delete e[ft],delete e[hs],delete e[pv],delete e[gv]}function Ka(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Za]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=op(e);e!==null;){if(n=e[tt])return n;e=op(e)}return t}e=n,n=e.parentNode}return null}function Wa(e){if(e=e[tt]||e[Za]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Fa(e){var t=e[Hf];return t||(t=e[Hf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Ki]=!0}var qf=new Set,Gf={};function ya(e,t){Ja(e,t),Ja(e+"Capture",t)}function Ja(e,t){for(Gf[e]=t,e=0;e<t.length;e++)qf.add(t[e])}var yv=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]*$"),Vf={},Pf={};function vv(e){return Nn.call(Pf,e)?!0:Nn.call(Vf,e)?!1:yv.test(e)?Pf[e]=!0:(Vf[e]=!0,!1)}function so(e,t,n){if(vv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function co(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function sn(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bv(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,u=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(p){n=""+p,u.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ps(e){if(!e._valueTracker){var t=Yf(e)?"checked":"value";e._valueTracker=bv(e,t,""+e[t])}}function Xf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Yf(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function uo(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 Sv=/[\n"\\]/g;function Nt(e){return e.replace(Sv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function gs(e,t,n,i,s,u,p,S){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?ys(e,p,zt(t)):n!=null?ys(e,p,zt(n)):i!=null&&e.removeAttribute("value"),s==null&&u!=null&&(e.defaultChecked=!!u),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+zt(S):e.removeAttribute("name")}function Qf(e,t,n,i,s,u,p,S){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ps(e);return}n=n!=null?""+zt(n):"",t=t!=null?""+zt(t):n,S||t===e.value||(e.value=t),e.defaultValue=t}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=S?e.checked:!!i,e.defaultChecked=!!i,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),ps(e)}function ys(e,t,n){t==="number"&&uo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function $a(e,t,n,i){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&i&&(e[n].defaultSelected=!0)}else{for(n=""+zt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Zf(e,t,n){if(t!=null&&(t=""+zt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+zt(n):""}function Kf(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(r(92));if(pe(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=zt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),ps(e)}function Ia(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xv=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 Wf(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||xv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ff(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in t)i=t[s],t.hasOwnProperty(s)&&n[s]!==i&&Wf(e,s,i)}else for(var u in t)t.hasOwnProperty(u)&&Wf(e,u,t[u])}function vs(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 wv=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"]]),_v=/^[\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 fo(e){return _v.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function cn(){}var bs=null;function Ss(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ei=null,ti=null;function Jf(e){var t=Wa(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(gs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Nt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var s=i[ft]||null;if(!s)throw Error(r(90));gs(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Xf(i)}break e;case"textarea":Zf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&$a(e,!!n.multiple,t,!1)}}}var xs=!1;function $f(e,t,n){if(xs)return e(t,n);xs=!0;try{var i=e(t);return i}finally{if(xs=!1,(ei!==null||ti!==null)&&(Io(),ei&&(t=ei,e=ti,ti=ei=null,Jf(t),e)))for(t=0;t<e.length;t++)Jf(e[t])}}function Fi(e,t){var n=e.stateNode;if(n===null)return null;var i=n[ft]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ws=!1;if(un)try{var Ji={};Object.defineProperty(Ji,"passive",{get:function(){ws=!0}}),window.addEventListener("test",Ji,Ji),window.removeEventListener("test",Ji,Ji)}catch{ws=!1}var jn=null,_s=null,ho=null;function If(){if(ho)return ho;var e,t=_s,n=t.length,i,s="value"in jn?jn.value:jn.textContent,u=s.length;for(e=0;e<n&&t[e]===s[e];e++);var p=n-e;for(i=1;i<=p&&t[n-i]===s[u-i];i++);return ho=s.slice(e,1<i?1-i:void 0)}function mo(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 po(){return!0}function ed(){return!1}function dt(e){function t(n,i,s,u,p){this._reactName=n,this._targetInst=s,this.type=i,this.nativeEvent=u,this.target=p,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(u):u[S]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?po:ed,this.isPropagationStopped=ed,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=po)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=po)},persist:function(){},isPersistent:po}),t}var va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},go=dt(va),$i=y({},va,{view:0,detail:0}),Ev=dt($i),Es,Ts,Ii,yo=y({},$i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rs,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!==Ii&&(Ii&&e.type==="mousemove"?(Es=e.screenX-Ii.screenX,Ts=e.screenY-Ii.screenY):Ts=Es=0,Ii=e),Es)},movementY:function(e){return"movementY"in e?e.movementY:Ts}}),td=dt(yo),Tv=y({},yo,{dataTransfer:0}),Cv=dt(Tv),Rv=y({},$i,{relatedTarget:0}),Cs=dt(Rv),Av=y({},va,{animationName:0,elapsedTime:0,pseudoElement:0}),Mv=dt(Av),Ov=y({},va,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dv=dt(Ov),zv=y({},va,{data:0}),nd=dt(zv),Nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lv={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"},kv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kv[e])?!!t[e]:!1}function Rs(){return Uv}var jv=y({},$i,{key:function(e){if(e.key){var t=Nv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Lv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rs,charCode:function(e){return e.type==="keypress"?mo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Bv=dt(jv),Hv=y({},yo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ad=dt(Hv),qv=y({},$i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rs}),Gv=dt(qv),Vv=y({},va,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pv=dt(Vv),Yv=y({},yo,{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}),Xv=dt(Yv),Qv=y({},va,{newState:0,oldState:0}),Zv=dt(Qv),Kv=[9,13,27,32],As=un&&"CompositionEvent"in window,el=null;un&&"documentMode"in document&&(el=document.documentMode);var Wv=un&&"TextEvent"in window&&!el,id=un&&(!As||el&&8<el&&11>=el),ld=" ",od=!1;function rd(e,t){switch(e){case"keyup":return Kv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ni=!1;function Fv(e,t){switch(e){case"compositionend":return sd(t);case"keypress":return t.which!==32?null:(od=!0,ld);case"textInput":return e=t.data,e===ld&&od?null:e;default:return null}}function Jv(e,t){if(ni)return e==="compositionend"||!As&&rd(e,t)?(e=If(),ho=_s=jn=null,ni=!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 id&&t.locale!=="ko"?null:t.data;default:return null}}var $v={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 cd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$v[e.type]:t==="textarea"}function ud(e,t,n,i){ei?ti?ti.push(i):ti=[i]:ei=i,t=or(t,"onChange"),0<t.length&&(n=new go("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var tl=null,nl=null;function Iv(e){Qm(e,0)}function vo(e){var t=Wi(e);if(Xf(t))return e}function fd(e,t){if(e==="change")return t}var dd=!1;if(un){var Ms;if(un){var Os="oninput"in document;if(!Os){var hd=document.createElement("div");hd.setAttribute("oninput","return;"),Os=typeof hd.oninput=="function"}Ms=Os}else Ms=!1;dd=Ms&&(!document.documentMode||9<document.documentMode)}function md(){tl&&(tl.detachEvent("onpropertychange",pd),nl=tl=null)}function pd(e){if(e.propertyName==="value"&&vo(nl)){var t=[];ud(t,nl,e,Ss(e)),$f(Iv,t)}}function e0(e,t,n){e==="focusin"?(md(),tl=t,nl=n,tl.attachEvent("onpropertychange",pd)):e==="focusout"&&md()}function t0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vo(nl)}function n0(e,t){if(e==="click")return vo(t)}function a0(e,t){if(e==="input"||e==="change")return vo(t)}function i0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:i0;function al(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var s=n[i];if(!Nn.call(t,s)||!wt(e[s],t[s]))return!1}return!0}function gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yd(e,t){var n=gd(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gd(n)}}function vd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=uo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uo(e.document)}return t}function Ds(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 l0=un&&"documentMode"in document&&11>=document.documentMode,ai=null,zs=null,il=null,Ns=!1;function Sd(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ns||ai==null||ai!==uo(i)||(i=ai,"selectionStart"in i&&Ds(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),il&&al(il,i)||(il=i,i=or(zs,"onSelect"),0<i.length&&(t=new go("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ai)))}function ba(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ii={animationend:ba("Animation","AnimationEnd"),animationiteration:ba("Animation","AnimationIteration"),animationstart:ba("Animation","AnimationStart"),transitionrun:ba("Transition","TransitionRun"),transitionstart:ba("Transition","TransitionStart"),transitioncancel:ba("Transition","TransitionCancel"),transitionend:ba("Transition","TransitionEnd")},Ls={},xd={};un&&(xd=document.createElement("div").style,"AnimationEvent"in window||(delete ii.animationend.animation,delete ii.animationiteration.animation,delete ii.animationstart.animation),"TransitionEvent"in window||delete ii.transitionend.transition);function Sa(e){if(Ls[e])return Ls[e];if(!ii[e])return e;var t=ii[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xd)return Ls[e]=t[n];return e}var wd=Sa("animationend"),_d=Sa("animationiteration"),Ed=Sa("animationstart"),o0=Sa("transitionrun"),r0=Sa("transitionstart"),s0=Sa("transitioncancel"),Td=Sa("transitionend"),Cd=new Map,ks="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(" ");ks.push("scrollEnd");function Yt(e,t){Cd.set(e,t),ya(t,[e])}var bo=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)},Lt=[],li=0,Us=0;function So(){for(var e=li,t=Us=li=0;t<e;){var n=Lt[t];Lt[t++]=null;var i=Lt[t];Lt[t++]=null;var s=Lt[t];Lt[t++]=null;var u=Lt[t];if(Lt[t++]=null,i!==null&&s!==null){var p=i.pending;p===null?s.next=s:(s.next=p.next,p.next=s),i.pending=s}u!==0&&Rd(n,s,u)}}function xo(e,t,n,i){Lt[li++]=e,Lt[li++]=t,Lt[li++]=n,Lt[li++]=i,Us|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function js(e,t,n,i){return xo(e,t,n,i),wo(e)}function xa(e,t){return xo(e,null,null,t),wo(e)}function Rd(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var s=!1,u=e.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(s=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,s&&t!==null&&(s=31-xt(n),e=u.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=n|536870912),u):null}function wo(e){if(50<Cl)throw Cl=0,Qc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function c0(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,i){return new c0(e,t,n,i)}function Bs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fn(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ad(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function _o(e,t,n,i,s,u){var p=0;if(i=e,typeof e=="function")Bs(e)&&(p=1);else if(typeof e=="string")p=mb(e,n,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=_t(31,n,t,s),e.elementType=J,e.lanes=u,e;case A:return wa(n.children,s,u,t);case R:p=8,s|=24;break;case M:return e=_t(12,n,t,s|2),e.elementType=M,e.lanes=u,e;case Z:return e=_t(13,n,t,s),e.elementType=Z,e.lanes=u,e;case G:return e=_t(19,n,t,s),e.elementType=G,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:p=10;break e;case H:p=9;break e;case Y:p=11;break e;case N:p=14;break e;case j:p=16,i=null;break e}p=29,n=Error(r(130,e===null?"null":typeof e,"")),i=null}return t=_t(p,n,t,s),t.elementType=e,t.type=i,t.lanes=u,t}function wa(e,t,n,i){return e=_t(7,e,i,t),e.lanes=n,e}function Hs(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Md(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function qs(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Od=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var n=Od.get(e);return n!==void 0?n:(t={value:e,source:t,stack:to(t)},Od.set(e,t),t)}return{value:e,source:t,stack:to(t)}}var ri=[],si=0,Eo=null,ll=0,Ut=[],jt=0,Bn=null,Ft=1,Jt="";function dn(e,t){ri[si++]=ll,ri[si++]=Eo,Eo=e,ll=t}function Dd(e,t,n){Ut[jt++]=Ft,Ut[jt++]=Jt,Ut[jt++]=Bn,Bn=e;var i=Ft;e=Jt;var s=32-xt(i)-1;i&=~(1<<s),n+=1;var u=32-xt(t)+s;if(30<u){var p=s-s%5;u=(i&(1<<p)-1).toString(32),i>>=p,s-=p,Ft=1<<32-xt(t)+s|n<<s|i,Jt=u+e}else Ft=1<<u|n<<s|i,Jt=e}function Gs(e){e.return!==null&&(dn(e,1),Dd(e,1,0))}function Vs(e){for(;e===Eo;)Eo=ri[--si],ri[si]=null,ll=ri[--si],ri[si]=null;for(;e===Bn;)Bn=Ut[--jt],Ut[jt]=null,Jt=Ut[--jt],Ut[jt]=null,Ft=Ut[--jt],Ut[jt]=null}function zd(e,t){Ut[jt++]=Ft,Ut[jt++]=Jt,Ut[jt++]=Bn,Ft=t.id,Jt=t.overflow,Bn=e}var nt=null,He=null,Ce=!1,Hn=null,Bt=!1,Ps=Error(r(519));function qn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ol(kt(t,e)),Ps}function Nd(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[tt]=e,t[ft]=i,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<Al.length;n++)we(Al[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Qf(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Kf(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Fm(t.textContent,n)?(i.popover!=null&&(we("beforetoggle",t),we("toggle",t)),i.onScroll!=null&&we("scroll",t),i.onScrollEnd!=null&&we("scrollend",t),i.onClick!=null&&(t.onclick=cn),t=!0):t=!1,t||qn(e,!0)}function Ld(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:nt=nt.return}}function ci(e){if(e!==nt)return!1;if(!Ce)return Ld(e),Ce=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ru(e.type,e.memoizedProps)),n=!n),n&&He&&qn(e),Ld(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=lp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=lp(e)}else t===27?(t=He,ea(e.type)?(e=du,du=null,He=e):He=t):He=nt?qt(e.stateNode.nextSibling):null;return!0}function _a(){He=nt=null,Ce=!1}function Ys(){var e=Hn;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Hn=null),e}function ol(e){Hn===null?Hn=[e]:Hn.push(e)}var Xs=C(null),Ea=null,hn=null;function Gn(e,t,n){F(Xs,t._currentValue),t._currentValue=n}function mn(e){e._currentValue=Xs.current,X(Xs)}function Qs(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Zs(e,t,n,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var u=s.dependencies;if(u!==null){var p=s.child;u=u.firstContext;e:for(;u!==null;){var S=u;u=s;for(var _=0;_<t.length;_++)if(S.context===t[_]){u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),Qs(u.return,n,e),i||(p=null);break e}u=S.next}}else if(s.tag===18){if(p=s.return,p===null)throw Error(r(341));p.lanes|=n,u=p.alternate,u!==null&&(u.lanes|=n),Qs(p,n,e),p=null}else p=s.child;if(p!==null)p.return=s;else for(p=s;p!==null;){if(p===e){p=null;break}if(s=p.sibling,s!==null){s.return=p.return,p=s;break}p=p.return}s=p}}function ui(e,t,n,i){e=null;for(var s=t,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var p=s.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var S=s.type;wt(s.pendingProps.value,p.value)||(e!==null?e.push(S):e=[S])}}else if(s===le.current){if(p=s.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Nl):e=[Nl])}s=s.return}e!==null&&Zs(t,e,n,i),t.flags|=262144}function To(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){Ea=e,hn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return kd(Ea,e)}function Co(e,t){return Ea===null&&Ta(e),kd(e,t)}function kd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},hn===null){if(e===null)throw Error(r(308));hn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hn=hn.next=t;return n}var u0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},f0=a.unstable_scheduleCallback,d0=a.unstable_NormalPriority,Qe={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ks(){return{controller:new u0,data:new Map,refCount:0}}function rl(e){e.refCount--,e.refCount===0&&f0(d0,function(){e.controller.abort()})}var sl=null,Ws=0,fi=0,di=null;function h0(e,t){if(sl===null){var n=sl=[];Ws=0,fi=$c(),di={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Ws++,t.then(Ud,Ud),t}function Ud(){if(--Ws===0&&sl!==null){di!==null&&(di.status="fulfilled");var e=sl;sl=null,fi=0,di=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function m0(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(i.status="rejected",i.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),i}var jd=D.S;D.S=function(e,t){Sm=Me(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&h0(e,t),jd!==null&&jd(e,t)};var Ca=C(null);function Fs(){var e=Ca.current;return e!==null?e:je.pooledCache}function Ro(e,t){t===null?F(Ca,Ca.current):F(Ca,t.pool)}function Bd(){var e=Fs();return e===null?null:{parent:Qe._currentValue,pool:e}}var hi=Error(r(460)),Js=Error(r(474)),Ao=Error(r(542)),Mo={then:function(){}};function Hd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(cn,cn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vd(e),e;default:if(typeof t.status=="string")t.then(cn,cn);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=i}},function(i){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vd(e),e}throw Aa=t,hi}}function Ra(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Aa=n,hi):n}}var Aa=null;function Gd(){if(Aa===null)throw Error(r(459));var e=Aa;return Aa=null,e}function Vd(e){if(e===hi||e===Ao)throw Error(r(483))}var mi=null,cl=0;function Oo(e){var t=cl;return cl+=1,mi===null&&(mi=[]),qd(mi,e,t)}function ul(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Do(e,t){throw t.$$typeof===b?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Pd(e){function t(O,T){if(e){var z=O.deletions;z===null?(O.deletions=[T],O.flags|=16):z.push(T)}}function n(O,T){if(!e)return null;for(;T!==null;)t(O,T),T=T.sibling;return null}function i(O){for(var T=new Map;O!==null;)O.key!==null?T.set(O.key,O):T.set(O.index,O),O=O.sibling;return T}function s(O,T){return O=fn(O,T),O.index=0,O.sibling=null,O}function u(O,T,z){return O.index=z,e?(z=O.alternate,z!==null?(z=z.index,z<T?(O.flags|=67108866,T):z):(O.flags|=67108866,T)):(O.flags|=1048576,T)}function p(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function S(O,T,z,Q){return T===null||T.tag!==6?(T=Hs(z,O.mode,Q),T.return=O,T):(T=s(T,z),T.return=O,T)}function _(O,T,z,Q){var re=z.type;return re===A?P(O,T,z.props.children,Q,z.key):T!==null&&(T.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===j&&Ra(re)===T.type)?(T=s(T,z.props),ul(T,z),T.return=O,T):(T=_o(z.type,z.key,z.props,null,O.mode,Q),ul(T,z),T.return=O,T)}function L(O,T,z,Q){return T===null||T.tag!==4||T.stateNode.containerInfo!==z.containerInfo||T.stateNode.implementation!==z.implementation?(T=qs(z,O.mode,Q),T.return=O,T):(T=s(T,z.children||[]),T.return=O,T)}function P(O,T,z,Q,re){return T===null||T.tag!==7?(T=wa(z,O.mode,Q,re),T.return=O,T):(T=s(T,z),T.return=O,T)}function K(O,T,z){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Hs(""+T,O.mode,z),T.return=O,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case x:return z=_o(T.type,T.key,T.props,null,O.mode,z),ul(z,T),z.return=O,z;case w:return T=qs(T,O.mode,z),T.return=O,T;case j:return T=Ra(T),K(O,T,z)}if(pe(T)||ce(T))return T=wa(T,O.mode,z,null),T.return=O,T;if(typeof T.then=="function")return K(O,Oo(T),z);if(T.$$typeof===B)return K(O,Co(O,T),z);Do(O,T)}return null}function U(O,T,z,Q){var re=T!==null?T.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return re!==null?null:S(O,T,""+z,Q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return z.key===re?_(O,T,z,Q):null;case w:return z.key===re?L(O,T,z,Q):null;case j:return z=Ra(z),U(O,T,z,Q)}if(pe(z)||ce(z))return re!==null?null:P(O,T,z,Q,null);if(typeof z.then=="function")return U(O,T,Oo(z),Q);if(z.$$typeof===B)return U(O,T,Co(O,z),Q);Do(O,z)}return null}function q(O,T,z,Q,re){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return O=O.get(z)||null,S(T,O,""+Q,re);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case x:return O=O.get(Q.key===null?z:Q.key)||null,_(T,O,Q,re);case w:return O=O.get(Q.key===null?z:Q.key)||null,L(T,O,Q,re);case j:return Q=Ra(Q),q(O,T,z,Q,re)}if(pe(Q)||ce(Q))return O=O.get(z)||null,P(T,O,Q,re,null);if(typeof Q.then=="function")return q(O,T,z,Oo(Q),re);if(Q.$$typeof===B)return q(O,T,z,Co(T,Q),re);Do(T,Q)}return null}function te(O,T,z,Q){for(var re=null,Re=null,ie=T,be=T=0,Ee=null;ie!==null&&be<z.length;be++){ie.index>be?(Ee=ie,ie=null):Ee=ie.sibling;var Ae=U(O,ie,z[be],Q);if(Ae===null){ie===null&&(ie=Ee);break}e&&ie&&Ae.alternate===null&&t(O,ie),T=u(Ae,T,be),Re===null?re=Ae:Re.sibling=Ae,Re=Ae,ie=Ee}if(be===z.length)return n(O,ie),Ce&&dn(O,be),re;if(ie===null){for(;be<z.length;be++)ie=K(O,z[be],Q),ie!==null&&(T=u(ie,T,be),Re===null?re=ie:Re.sibling=ie,Re=ie);return Ce&&dn(O,be),re}for(ie=i(ie);be<z.length;be++)Ee=q(ie,O,be,z[be],Q),Ee!==null&&(e&&Ee.alternate!==null&&ie.delete(Ee.key===null?be:Ee.key),T=u(Ee,T,be),Re===null?re=Ee:Re.sibling=Ee,Re=Ee);return e&&ie.forEach(function(la){return t(O,la)}),Ce&&dn(O,be),re}function ue(O,T,z,Q){if(z==null)throw Error(r(151));for(var re=null,Re=null,ie=T,be=T=0,Ee=null,Ae=z.next();ie!==null&&!Ae.done;be++,Ae=z.next()){ie.index>be?(Ee=ie,ie=null):Ee=ie.sibling;var la=U(O,ie,Ae.value,Q);if(la===null){ie===null&&(ie=Ee);break}e&&ie&&la.alternate===null&&t(O,ie),T=u(la,T,be),Re===null?re=la:Re.sibling=la,Re=la,ie=Ee}if(Ae.done)return n(O,ie),Ce&&dn(O,be),re;if(ie===null){for(;!Ae.done;be++,Ae=z.next())Ae=K(O,Ae.value,Q),Ae!==null&&(T=u(Ae,T,be),Re===null?re=Ae:Re.sibling=Ae,Re=Ae);return Ce&&dn(O,be),re}for(ie=i(ie);!Ae.done;be++,Ae=z.next())Ae=q(ie,O,be,Ae.value,Q),Ae!==null&&(e&&Ae.alternate!==null&&ie.delete(Ae.key===null?be:Ae.key),T=u(Ae,T,be),Re===null?re=Ae:Re.sibling=Ae,Re=Ae);return e&&ie.forEach(function(Tb){return t(O,Tb)}),Ce&&dn(O,be),re}function Ue(O,T,z,Q){if(typeof z=="object"&&z!==null&&z.type===A&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case x:e:{for(var re=z.key;T!==null;){if(T.key===re){if(re=z.type,re===A){if(T.tag===7){n(O,T.sibling),Q=s(T,z.props.children),Q.return=O,O=Q;break e}}else if(T.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===j&&Ra(re)===T.type){n(O,T.sibling),Q=s(T,z.props),ul(Q,z),Q.return=O,O=Q;break e}n(O,T);break}else t(O,T);T=T.sibling}z.type===A?(Q=wa(z.props.children,O.mode,Q,z.key),Q.return=O,O=Q):(Q=_o(z.type,z.key,z.props,null,O.mode,Q),ul(Q,z),Q.return=O,O=Q)}return p(O);case w:e:{for(re=z.key;T!==null;){if(T.key===re)if(T.tag===4&&T.stateNode.containerInfo===z.containerInfo&&T.stateNode.implementation===z.implementation){n(O,T.sibling),Q=s(T,z.children||[]),Q.return=O,O=Q;break e}else{n(O,T);break}else t(O,T);T=T.sibling}Q=qs(z,O.mode,Q),Q.return=O,O=Q}return p(O);case j:return z=Ra(z),Ue(O,T,z,Q)}if(pe(z))return te(O,T,z,Q);if(ce(z)){if(re=ce(z),typeof re!="function")throw Error(r(150));return z=re.call(z),ue(O,T,z,Q)}if(typeof z.then=="function")return Ue(O,T,Oo(z),Q);if(z.$$typeof===B)return Ue(O,T,Co(O,z),Q);Do(O,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,T!==null&&T.tag===6?(n(O,T.sibling),Q=s(T,z),Q.return=O,O=Q):(n(O,T),Q=Hs(z,O.mode,Q),Q.return=O,O=Q),p(O)):n(O,T)}return function(O,T,z,Q){try{cl=0;var re=Ue(O,T,z,Q);return mi=null,re}catch(ie){if(ie===hi||ie===Ao)throw ie;var Re=_t(29,ie,null,O.mode);return Re.lanes=Q,Re.return=O,Re}finally{}}}var Ma=Pd(!0),Yd=Pd(!1),Vn=!1;function $s(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Is(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 Pn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Oe&2)!==0){var s=i.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=wo(e),Rd(e,null,n),t}return xo(e,i,t,n),wo(e)}function fl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,kf(e,n)}}function ec(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=p:u=u.next=p,n=n.next}while(n!==null);u===null?s=u=t:u=u.next=t}else s=u=t;n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var tc=!1;function dl(){if(tc){var e=di;if(e!==null)throw e}}function hl(e,t,n,i){tc=!1;var s=e.updateQueue;Vn=!1;var u=s.firstBaseUpdate,p=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var _=S,L=_.next;_.next=null,p===null?u=L:p.next=L,p=_;var P=e.alternate;P!==null&&(P=P.updateQueue,S=P.lastBaseUpdate,S!==p&&(S===null?P.firstBaseUpdate=L:S.next=L,P.lastBaseUpdate=_))}if(u!==null){var K=s.baseState;p=0,P=L=_=null,S=u;do{var U=S.lane&-536870913,q=U!==S.lane;if(q?(_e&U)===U:(i&U)===U){U!==0&&U===fi&&(tc=!0),P!==null&&(P=P.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var te=e,ue=S;U=t;var Ue=n;switch(ue.tag){case 1:if(te=ue.payload,typeof te=="function"){K=te.call(Ue,K,U);break e}K=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=ue.payload,U=typeof te=="function"?te.call(Ue,K,U):te,U==null)break e;K=y({},K,U);break e;case 2:Vn=!0}}U=S.callback,U!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[U]:q.push(U))}else q={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},P===null?(L=P=q,_=K):P=P.next=q,p|=U;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;q=S,S=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);P===null&&(_=K),s.baseState=_,s.firstBaseUpdate=L,s.lastBaseUpdate=P,u===null&&(s.shared.lanes=0),Wn|=p,e.lanes=p,e.memoizedState=K}}function Xd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Qd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xd(n[e],t)}var pi=C(null),zo=C(0);function Zd(e,t){e=_n,F(zo,e),F(pi,t),_n=e|t.baseLanes}function nc(){F(zo,_n),F(pi,pi.current)}function ac(){_n=zo.current,X(pi),X(zo)}var Et=C(null),Ht=null;function Xn(e){var t=e.alternate;F(Ye,Ye.current&1),F(Et,e),Ht===null&&(t===null||pi.current!==null||t.memoizedState!==null)&&(Ht=e)}function ic(e){F(Ye,Ye.current),F(Et,e),Ht===null&&(Ht=e)}function Kd(e){e.tag===22?(F(Ye,Ye.current),F(Et,e),Ht===null&&(Ht=e)):Qn()}function Qn(){F(Ye,Ye.current),F(Et,Et.current)}function Tt(e){X(Et),Ht===e&&(Ht=null),X(Ye)}var Ye=C(0);function No(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||uu(n)||fu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pn=0,ve=null,Le=null,Ze=null,Lo=!1,gi=!1,Oa=!1,ko=0,ml=0,yi=null,p0=0;function Ve(){throw Error(r(321))}function lc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function oc(e,t,n,i,s,u){return pn=u,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Dh:xc,Oa=!1,u=n(i,s),Oa=!1,gi&&(u=Fd(t,n,i,s)),Wd(e),u}function Wd(e){D.H=yl;var t=Le!==null&&Le.next!==null;if(pn=0,Ze=Le=ve=null,Lo=!1,ml=0,yi=null,t)throw Error(r(300));e===null||Ke||(e=e.dependencies,e!==null&&To(e)&&(Ke=!0))}function Fd(e,t,n,i){ve=e;var s=0;do{if(gi&&(yi=null),ml=0,gi=!1,25<=s)throw Error(r(301));if(s+=1,Ze=Le=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=zh,u=t(n,i)}while(gi);return u}function g0(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?pl(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(ve.flags|=1024),t}function rc(){var e=ko!==0;return ko=0,e}function sc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cc(e){if(Lo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Lo=!1}pn=0,Ze=Le=ve=null,gi=!1,ml=ko=0,yi=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ve.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(Le===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=Ze===null?ve.memoizedState:Ze.next;if(t!==null)Ze=t,Le=e;else{if(e===null)throw ve.alternate===null?Error(r(467)):Error(r(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},Ze===null?ve.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Uo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pl(e){var t=ml;return ml+=1,yi===null&&(yi=[]),e=qd(yi,e,t),t=ve,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Dh:xc),e}function jo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pl(e);if(e.$$typeof===B)return at(e)}throw Error(r(438,String(e)))}function uc(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ve.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Uo(),ve.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=I;return t.index++,n}function gn(e,t){return typeof t=="function"?t(e):t}function Bo(e){var t=Xe();return fc(t,Le,e)}function fc(e,t,n){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var s=e.baseQueue,u=i.pending;if(u!==null){if(s!==null){var p=s.next;s.next=u.next,u.next=p}t.baseQueue=s=u,i.pending=null}if(u=e.baseState,s===null)e.memoizedState=u;else{t=s.next;var S=p=null,_=null,L=t,P=!1;do{var K=L.lane&-536870913;if(K!==L.lane?(_e&K)===K:(pn&K)===K){var U=L.revertLane;if(U===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),K===fi&&(P=!0);else if((pn&U)===U){L=L.next,U===fi&&(P=!0);continue}else K={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},_===null?(S=_=K,p=u):_=_.next=K,ve.lanes|=U,Wn|=U;K=L.action,Oa&&n(u,K),u=L.hasEagerState?L.eagerState:n(u,K)}else U={lane:K,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},_===null?(S=_=U,p=u):_=_.next=U,ve.lanes|=K,Wn|=K;L=L.next}while(L!==null&&L!==t);if(_===null?p=u:_.next=S,!wt(u,e.memoizedState)&&(Ke=!0,P&&(n=di,n!==null)))throw n;e.memoizedState=u,e.baseState=p,e.baseQueue=_,i.lastRenderedState=u}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function dc(e){var t=Xe(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,s=n.pending,u=t.memoizedState;if(s!==null){n.pending=null;var p=s=s.next;do u=e(u,p.action),p=p.next;while(p!==s);wt(u,t.memoizedState)||(Ke=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,i]}function Jd(e,t,n){var i=ve,s=Xe(),u=Ce;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var p=!wt((Le||s).memoizedState,n);if(p&&(s.memoizedState=n,Ke=!0),s=s.queue,pc(eh.bind(null,i,s,e),[e]),s.getSnapshot!==t||p||Ze!==null&&Ze.memoizedState.tag&1){if(i.flags|=2048,vi(9,{destroy:void 0},Id.bind(null,i,s,n,t),null),je===null)throw Error(r(349));u||(pn&127)!==0||$d(i,t,n)}return n}function $d(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=Uo(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Id(e,t,n,i){t.value=n,t.getSnapshot=i,th(t)&&nh(e)}function eh(e,t,n){return n(function(){th(t)&&nh(e)})}function th(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wt(e,n)}catch{return!0}}function nh(e){var t=xa(e,2);t!==null&&yt(t,e,2)}function hc(e){var t=st();if(typeof e=="function"){var n=e;if(e=n(),Oa){kn(!0);try{n()}finally{kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:e},t}function ah(e,t,n,i){return e.baseState=n,fc(e,Le,typeof i=="function"?i:gn)}function y0(e,t,n,i,s){if(Go(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){u.listeners.push(p)}};D.T!==null?n(!0):u.isTransition=!1,i(u),n=t.pending,n===null?(u.next=t.pending=u,ih(t,u)):(u.next=n.next,t.pending=n.next=u)}}function ih(e,t){var n=t.action,i=t.payload,s=e.state;if(t.isTransition){var u=D.T,p={};D.T=p;try{var S=n(s,i),_=D.S;_!==null&&_(p,S),lh(e,t,S)}catch(L){mc(e,t,L)}finally{u!==null&&p.types!==null&&(u.types=p.types),D.T=u}}else try{u=n(s,i),lh(e,t,u)}catch(L){mc(e,t,L)}}function lh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){oh(e,t,i)},function(i){return mc(e,t,i)}):oh(e,t,n)}function oh(e,t,n){t.status="fulfilled",t.value=n,rh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ih(e,n)))}function mc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,rh(t),t=t.next;while(t!==i)}e.action=null}function rh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sh(e,t){return t}function ch(e,t){if(Ce){var n=je.formState;if(n!==null){e:{var i=ve;if(Ce){if(He){t:{for(var s=He,u=Bt;s.nodeType!==8;){if(!u){s=null;break t}if(s=qt(s.nextSibling),s===null){s=null;break t}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){He=qt(s.nextSibling),i=s.data==="F!";break e}}qn(i)}i=!1}i&&(t=n[0])}}return n=st(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sh,lastRenderedState:t},n.queue=i,n=Ah.bind(null,ve,i),i.dispatch=n,i=hc(!1),u=Sc.bind(null,ve,!1,i.queue),i=st(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,n=y0.bind(null,ve,s,u,n),s.dispatch=n,i.memoizedState=e,[t,n,!1]}function uh(e){var t=Xe();return fh(t,Le,e)}function fh(e,t,n){if(t=fc(e,t,sh)[0],e=Bo(gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=pl(t)}catch(p){throw p===hi?Ao:p}else i=t;t=Xe();var s=t.queue,u=s.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,vi(9,{destroy:void 0},v0.bind(null,s,n),null)),[i,u,e]}function v0(e,t){e.action=t}function dh(e){var t=Xe(),n=Le;if(n!==null)return fh(t,n,e);Xe(),t=t.memoizedState,n=Xe();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function vi(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ve.updateQueue,t===null&&(t=Uo(),ve.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function hh(){return Xe().memoizedState}function Ho(e,t,n,i){var s=st();ve.flags|=e,s.memoizedState=vi(1|t,{destroy:void 0},n,i===void 0?null:i)}function qo(e,t,n,i){var s=Xe();i=i===void 0?null:i;var u=s.memoizedState.inst;Le!==null&&i!==null&&lc(i,Le.memoizedState.deps)?s.memoizedState=vi(t,u,n,i):(ve.flags|=e,s.memoizedState=vi(1|t,u,n,i))}function mh(e,t){Ho(8390656,8,e,t)}function pc(e,t){qo(2048,8,e,t)}function b0(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=Uo(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ph(e){var t=Xe().memoizedState;return b0({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function gh(e,t){return qo(4,2,e,t)}function yh(e,t){return qo(4,4,e,t)}function vh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bh(e,t,n){n=n!=null?n.concat([e]):null,qo(4,4,vh.bind(null,t,e),n)}function gc(){}function Sh(e,t){var n=Xe();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&lc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function xh(e,t){var n=Xe();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&lc(t,i[1]))return i[0];if(i=e(),Oa){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[i,t],i}function yc(e,t,n){return n===void 0||(pn&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=wm(),ve.lanes|=e,Wn|=e,n)}function wh(e,t,n,i){return wt(n,t)?n:pi.current!==null?(e=yc(e,n,i),wt(e,t)||(Ke=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(_e&261930)===0?(Ke=!0,e.memoizedState=n):(e=wm(),ve.lanes|=e,Wn|=e,t)}function _h(e,t,n,i,s){var u=W.p;W.p=u!==0&&8>u?u:8;var p=D.T,S={};D.T=S,Sc(e,!1,t,n);try{var _=s(),L=D.S;if(L!==null&&L(S,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var P=m0(_,i);gl(e,t,P,At(e))}else gl(e,t,i,At(e))}catch(K){gl(e,t,{then:function(){},status:"rejected",reason:K},At())}finally{W.p=u,p!==null&&S.types!==null&&(p.types=S.types),D.T=p}}function S0(){}function vc(e,t,n,i){if(e.tag!==5)throw Error(r(476));var s=Eh(e).queue;_h(e,s,t,V,n===null?S0:function(){return Th(e),n(i)})}function Eh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:V},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Th(e){var t=Eh(e);t.next===null&&(t=e.alternate.memoizedState),gl(e,t.next.queue,{},At())}function bc(){return at(Nl)}function Ch(){return Xe().memoizedState}function Rh(){return Xe().memoizedState}function x0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=At();e=Pn(n);var i=Yn(t,e,n);i!==null&&(yt(i,t,n),fl(i,t,n)),t={cache:Ks()},e.payload=t;return}t=t.return}}function w0(e,t,n){var i=At();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Go(e)?Mh(t,n):(n=js(e,t,n,i),n!==null&&(yt(n,e,i),Oh(n,t,i)))}function Ah(e,t,n){var i=At();gl(e,t,n,i)}function gl(e,t,n,i){var s={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Go(e))Mh(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var p=t.lastRenderedState,S=u(p,n);if(s.hasEagerState=!0,s.eagerState=S,wt(S,p))return xo(e,t,s,0),je===null&&So(),!1}catch{}finally{}if(n=js(e,t,s,i),n!==null)return yt(n,e,i),Oh(n,t,i),!0}return!1}function Sc(e,t,n,i){if(i={lane:2,revertLane:$c(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Go(e)){if(t)throw Error(r(479))}else t=js(e,n,i,2),t!==null&&yt(t,e,2)}function Go(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Mh(e,t){gi=Lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Oh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,kf(e,n)}}var yl={readContext:at,use:jo,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve};yl.useEffectEvent=Ve;var Dh={readContext:at,use:jo,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:mh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ho(4194308,4,vh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ho(4194308,4,e,t)},useInsertionEffect:function(e,t){Ho(4,2,e,t)},useMemo:function(e,t){var n=st();t=t===void 0?null:t;var i=e();if(Oa){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=st();if(n!==void 0){var s=n(t);if(Oa){kn(!0);try{n(t)}finally{kn(!1)}}}else s=t;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=w0.bind(null,ve,e),[i.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=hc(e);var t=e.queue,n=Ah.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gc,useDeferredValue:function(e,t){var n=st();return yc(n,e,t)},useTransition:function(){var e=hc(!1);return e=_h.bind(null,ve,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ve,s=st();if(Ce){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),je===null)throw Error(r(349));(_e&127)!==0||$d(i,t,n)}s.memoizedState=n;var u={value:n,getSnapshot:t};return s.queue=u,mh(eh.bind(null,i,u,e),[e]),i.flags|=2048,vi(9,{destroy:void 0},Id.bind(null,i,u,n,t),null),n},useId:function(){var e=st(),t=je.identifierPrefix;if(Ce){var n=Jt,i=Ft;n=(i&~(1<<32-xt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ko++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=p0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bc,useFormState:ch,useActionState:ch,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Sc.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:uc,useCacheRefresh:function(){return st().memoizedState=x0.bind(null,ve)},useEffectEvent:function(e){var t=st(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},xc={readContext:at,use:jo,useCallback:Sh,useContext:at,useEffect:pc,useImperativeHandle:bh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:xh,useReducer:Bo,useRef:hh,useState:function(){return Bo(gn)},useDebugValue:gc,useDeferredValue:function(e,t){var n=Xe();return wh(n,Le.memoizedState,e,t)},useTransition:function(){var e=Bo(gn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:pl(e),t]},useSyncExternalStore:Jd,useId:Ch,useHostTransitionStatus:bc,useFormState:uh,useActionState:uh,useOptimistic:function(e,t){var n=Xe();return ah(n,Le,e,t)},useMemoCache:uc,useCacheRefresh:Rh};xc.useEffectEvent=ph;var zh={readContext:at,use:jo,useCallback:Sh,useContext:at,useEffect:pc,useImperativeHandle:bh,useInsertionEffect:gh,useLayoutEffect:yh,useMemo:xh,useReducer:dc,useRef:hh,useState:function(){return dc(gn)},useDebugValue:gc,useDeferredValue:function(e,t){var n=Xe();return Le===null?yc(n,e,t):wh(n,Le.memoizedState,e,t)},useTransition:function(){var e=dc(gn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:pl(e),t]},useSyncExternalStore:Jd,useId:Ch,useHostTransitionStatus:bc,useFormState:dh,useActionState:dh,useOptimistic:function(e,t){var n=Xe();return Le!==null?ah(n,Le,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:uc,useCacheRefresh:Rh};zh.useEffectEvent=ph;function wc(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=At(),s=Pn(i);s.payload=t,n!=null&&(s.callback=n),t=Yn(e,s,i),t!==null&&(yt(t,e,i),fl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=At(),s=Pn(i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Yn(e,s,i),t!==null&&(yt(t,e,i),fl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=At(),i=Pn(n);i.tag=2,t!=null&&(i.callback=t),t=Yn(e,i,n),t!==null&&(yt(t,e,n),fl(t,e,n))}};function Nh(e,t,n,i,s,u,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,u,p):t.prototype&&t.prototype.isPureReactComponent?!al(n,i)||!al(s,u):!0}function Lh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function Da(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function kh(e){bo(e)}function Uh(e){console.error(e)}function jh(e){bo(e)}function Vo(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Bh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Ec(e,t,n){return n=Pn(n),n.tag=3,n.payload={element:null},n.callback=function(){Vo(e,t)},n}function Hh(e){return e=Pn(e),e.tag=3,e}function qh(e,t,n,i){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var u=i.value;e.payload=function(){return s(u)},e.callback=function(){Bh(t,n,i)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Bh(t,n,i),typeof s!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var S=i.stack;this.componentDidCatch(i.value,{componentStack:S!==null?S:""})})}function _0(e,t,n,i,s){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&ui(t,n,s,!0),n=Et.current,n!==null){switch(n.tag){case 31:case 13:return Ht===null?er():n.alternate===null&&Pe===0&&(Pe=3),n.flags&=-257,n.flags|=65536,n.lanes=s,i===Mo?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Wc(e,i,s)),!1;case 22:return n.flags|=65536,i===Mo?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Wc(e,i,s)),!1}throw Error(r(435,n.tag))}return Wc(e,i,s),er(),!1}if(Ce)return t=Et.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==Ps&&(e=Error(r(422),{cause:i}),ol(kt(e,n)))):(i!==Ps&&(t=Error(r(423),{cause:i}),ol(kt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=kt(i,n),s=Ec(e.stateNode,i,s),ec(e,s),Pe!==4&&(Pe=2)),!1;var u=Error(r(520),{cause:i});if(u=kt(u,n),Tl===null?Tl=[u]:Tl.push(u),Pe!==4&&(Pe=2),t===null)return!0;i=kt(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=Ec(n.stateNode,i,e),ec(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Fn===null||!Fn.has(u))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Hh(s),qh(s,e,n,i),ec(n,s),!1}n=n.return}while(n!==null);return!1}var Tc=Error(r(461)),Ke=!1;function it(e,t,n,i){t.child=e===null?Yd(t,null,n,i):Ma(t,e.child,n,i)}function Gh(e,t,n,i,s){n=n.render;var u=t.ref;if("ref"in i){var p={};for(var S in i)S!=="ref"&&(p[S]=i[S])}else p=i;return Ta(t),i=oc(e,t,n,p,u,s),S=rc(),e!==null&&!Ke?(sc(e,t,s),yn(e,t,s)):(Ce&&S&&Gs(t),t.flags|=1,it(e,t,i,s),t.child)}function Vh(e,t,n,i,s){if(e===null){var u=n.type;return typeof u=="function"&&!Bs(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Ph(e,t,u,i,s)):(e=_o(n.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Nc(e,s)){var p=u.memoizedProps;if(n=n.compare,n=n!==null?n:al,n(p,i)&&e.ref===t.ref)return yn(e,t,s)}return t.flags|=1,e=fn(u,i),e.ref=t.ref,e.return=t,t.child=e}function Ph(e,t,n,i,s){if(e!==null){var u=e.memoizedProps;if(al(u,i)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=i=u,Nc(e,s))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,yn(e,t,s)}return Cc(e,t,n,i,s)}function Yh(e,t,n,i){var s=i.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(i=t.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~u}else i=0,t.child=null;return Xh(e,t,u,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ro(t,u!==null?u.cachePool:null),u!==null?Zd(t,u):nc(),Kd(t);else return i=t.lanes=536870912,Xh(e,t,u!==null?u.baseLanes|n:n,n,i)}else u!==null?(Ro(t,u.cachePool),Zd(t,u),Qn(),t.memoizedState=null):(e!==null&&Ro(t,null),nc(),Qn());return it(e,t,s,n),t.child}function vl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xh(e,t,n,i,s){var u=Fs();return u=u===null?null:{parent:Qe._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Ro(t,null),nc(),Kd(t),e!==null&&ui(e,t,i,!0),t.childLanes=s,null}function Po(e,t){return t=Xo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Qh(e,t,n){return Ma(t,e.child,null,n),e=Po(t,t.pendingProps),e.flags|=2,Tt(t),t.memoizedState=null,e}function E0(e,t,n){var i=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(i.mode==="hidden")return e=Po(t,i),t.lanes=536870912,vl(null,e);if(ic(t),(e=He)?(e=ip(e,Bt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:Ft,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},n=Md(e),n.return=t,t.child=n,nt=t,He=null)):e=null,e===null)throw qn(t);return t.lanes=536870912,null}return Po(t,i)}var u=e.memoizedState;if(u!==null){var p=u.dehydrated;if(ic(t),s)if(t.flags&256)t.flags&=-257,t=Qh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ke||ui(e,t,n,!1),s=(n&e.childLanes)!==0,Ke||s){if(i=je,i!==null&&(p=Uf(i,n),p!==0&&p!==u.retryLane))throw u.retryLane=p,xa(e,p),yt(i,e,p),Tc;er(),t=Qh(e,t,n)}else e=u.treeContext,He=qt(p.nextSibling),nt=t,Ce=!0,Hn=null,Bt=!1,e!==null&&zd(t,e),t=Po(t,i),t.flags|=4096;return t}return e=fn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Yo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Cc(e,t,n,i,s){return Ta(t),n=oc(e,t,n,i,void 0,s),i=rc(),e!==null&&!Ke?(sc(e,t,s),yn(e,t,s)):(Ce&&i&&Gs(t),t.flags|=1,it(e,t,n,s),t.child)}function Zh(e,t,n,i,s,u){return Ta(t),t.updateQueue=null,n=Fd(t,i,n,s),Wd(e),i=rc(),e!==null&&!Ke?(sc(e,t,u),yn(e,t,u)):(Ce&&i&&Gs(t),t.flags|=1,it(e,t,n,u),t.child)}function Kh(e,t,n,i,s){if(Ta(t),t.stateNode===null){var u=oi,p=n.contextType;typeof p=="object"&&p!==null&&(u=at(p)),u=new n(i,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=_c,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=i,u.state=t.memoizedState,u.refs={},$s(t),p=n.contextType,u.context=typeof p=="object"&&p!==null?at(p):oi,u.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(wc(t,n,p,i),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(p=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),p!==u.state&&_c.enqueueReplaceState(u,u.state,null),hl(t,i,u,s),dl(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){u=t.stateNode;var S=t.memoizedProps,_=Da(n,S);u.props=_;var L=u.context,P=n.contextType;p=oi,typeof P=="object"&&P!==null&&(p=at(P));var K=n.getDerivedStateFromProps;P=typeof K=="function"||typeof u.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,P||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(S||L!==p)&&Lh(t,u,i,p),Vn=!1;var U=t.memoizedState;u.state=U,hl(t,i,u,s),dl(),L=t.memoizedState,S||U!==L||Vn?(typeof K=="function"&&(wc(t,n,K,i),L=t.memoizedState),(_=Vn||Nh(t,n,_,i,U,L,p))?(P||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=L),u.props=i,u.state=L,u.context=p,i=_):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{u=t.stateNode,Is(e,t),p=t.memoizedProps,P=Da(n,p),u.props=P,K=t.pendingProps,U=u.context,L=n.contextType,_=oi,typeof L=="object"&&L!==null&&(_=at(L)),S=n.getDerivedStateFromProps,(L=typeof S=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p!==K||U!==_)&&Lh(t,u,i,_),Vn=!1,U=t.memoizedState,u.state=U,hl(t,i,u,s),dl();var q=t.memoizedState;p!==K||U!==q||Vn||e!==null&&e.dependencies!==null&&To(e.dependencies)?(typeof S=="function"&&(wc(t,n,S,i),q=t.memoizedState),(P=Vn||Nh(t,n,P,i,U,q,_)||e!==null&&e.dependencies!==null&&To(e.dependencies))?(L||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,q,_),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,q,_)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=q),u.props=i,u.state=q,u.context=_,i=P):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),i=!1)}return u=i,Yo(e,t),i=(t.flags&128)!==0,u||i?(u=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&i?(t.child=Ma(t,e.child,null,s),t.child=Ma(t,null,n,s)):it(e,t,n,s),t.memoizedState=u.state,e=t.child):e=yn(e,t,s),e}function Wh(e,t,n,i){return _a(),t.flags|=256,it(e,t,n,i),t.child}var Rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ac(e){return{baseLanes:e,cachePool:Bd()}}function Mc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Rt),e}function Fh(e,t,n){var i=t.pendingProps,s=!1,u=(t.flags&128)!==0,p;if((p=u)||(p=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),p&&(s=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(s?Xn(t):Qn(),(e=He)?(e=ip(e,Bt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:Ft,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},n=Md(e),n.return=t,t.child=n,nt=t,He=null)):e=null,e===null)throw qn(t);return fu(e)?t.lanes=32:t.lanes=536870912,null}var S=i.children;return i=i.fallback,s?(Qn(),s=t.mode,S=Xo({mode:"hidden",children:S},s),i=wa(i,s,n,null),S.return=t,i.return=t,S.sibling=i,t.child=S,i=t.child,i.memoizedState=Ac(n),i.childLanes=Mc(e,p,n),t.memoizedState=Rc,vl(null,i)):(Xn(t),Oc(t,S))}var _=e.memoizedState;if(_!==null&&(S=_.dehydrated,S!==null)){if(u)t.flags&256?(Xn(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState!==null?(Qn(),t.child=e.child,t.flags|=128,t=null):(Qn(),S=i.fallback,s=t.mode,i=Xo({mode:"visible",children:i.children},s),S=wa(S,s,n,null),S.flags|=2,i.return=t,S.return=t,i.sibling=S,t.child=i,Ma(t,e.child,null,n),i=t.child,i.memoizedState=Ac(n),i.childLanes=Mc(e,p,n),t.memoizedState=Rc,t=vl(null,i));else if(Xn(t),fu(S)){if(p=S.nextSibling&&S.nextSibling.dataset,p)var L=p.dgst;p=L,i=Error(r(419)),i.stack="",i.digest=p,ol({value:i,source:null,stack:null}),t=Dc(e,t,n)}else if(Ke||ui(e,t,n,!1),p=(n&e.childLanes)!==0,Ke||p){if(p=je,p!==null&&(i=Uf(p,n),i!==0&&i!==_.retryLane))throw _.retryLane=i,xa(e,i),yt(p,e,i),Tc;uu(S)||er(),t=Dc(e,t,n)}else uu(S)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,He=qt(S.nextSibling),nt=t,Ce=!0,Hn=null,Bt=!1,e!==null&&zd(t,e),t=Oc(t,i.children),t.flags|=4096);return t}return s?(Qn(),S=i.fallback,s=t.mode,_=e.child,L=_.sibling,i=fn(_,{mode:"hidden",children:i.children}),i.subtreeFlags=_.subtreeFlags&65011712,L!==null?S=fn(L,S):(S=wa(S,s,n,null),S.flags|=2),S.return=t,i.return=t,i.sibling=S,t.child=i,vl(null,i),i=t.child,S=e.child.memoizedState,S===null?S=Ac(n):(s=S.cachePool,s!==null?(_=Qe._currentValue,s=s.parent!==_?{parent:_,pool:_}:s):s=Bd(),S={baseLanes:S.baseLanes|n,cachePool:s}),i.memoizedState=S,i.childLanes=Mc(e,p,n),t.memoizedState=Rc,vl(e.child,i)):(Xn(t),n=e.child,e=n.sibling,n=fn(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function Oc(e,t){return t=Xo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Xo(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Ma(t,e.child,null,n),e=Oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jh(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Qs(e.return,t,n)}function zc(e,t,n,i,s,u){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s,treeForkCount:u}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=i,p.tail=n,p.tailMode=s,p.treeForkCount=u)}function $h(e,t,n){var i=t.pendingProps,s=i.revealOrder,u=i.tail;i=i.children;var p=Ye.current,S=(p&2)!==0;if(S?(p=p&1|2,t.flags|=128):p&=1,F(Ye,p),it(e,t,i,n),i=Ce?ll:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jh(e,n,t);else if(e.tag===19)Jh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&No(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),zc(t,!1,s,n,u,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&No(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}zc(t,!0,n,null,u,i);break;case"together":zc(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ui(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&To(e)))}function T0(e,t,n){switch(t.tag){case 3:Be(t,t.stateNode.containerInfo),Gn(t,Qe,e.memoizedState.cache),_a();break;case 27:case 5:ot(t);break;case 4:Be(t,t.stateNode.containerInfo);break;case 10:Gn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ic(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Xn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Fh(e,t,n):(Xn(t),e=yn(e,t,n),e!==null?e.sibling:null);Xn(t);break;case 19:var s=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(ui(e,t,n,!1),i=(n&t.childLanes)!==0),s){if(i)return $h(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),F(Ye,Ye.current),i)break;return null;case 22:return t.lanes=0,Yh(e,t,n,t.pendingProps);case 24:Gn(t,Qe,e.memoizedState.cache)}return yn(e,t,n)}function Ih(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!Nc(e,n)&&(t.flags&128)===0)return Ke=!1,T0(e,t,n);Ke=(e.flags&131072)!==0}else Ke=!1,Ce&&(t.flags&1048576)!==0&&Dd(t,ll,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ra(t.elementType),t.type=e,typeof e=="function")Bs(e)?(i=Da(e,i),t.tag=1,t=Kh(null,t,e,i,n)):(t.tag=0,t=Cc(null,t,e,i,n));else{if(e!=null){var s=e.$$typeof;if(s===Y){t.tag=11,t=Gh(null,t,e,i,n);break e}else if(s===N){t.tag=14,t=Vh(null,t,e,i,n);break e}}throw t=de(e)||e,Error(r(306,t,""))}}return t;case 0:return Cc(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,s=Da(i,t.pendingProps),Kh(e,t,i,s,n);case 3:e:{if(Be(t,t.stateNode.containerInfo),e===null)throw Error(r(387));i=t.pendingProps;var u=t.memoizedState;s=u.element,Is(e,t),hl(t,i,null,n);var p=t.memoizedState;if(i=p.cache,Gn(t,Qe,i),i!==u.cache&&Zs(t,[Qe],n,!0),dl(),i=p.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Wh(e,t,i,n);break e}else if(i!==s){s=kt(Error(r(424)),t),ol(s),t=Wh(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=qt(e.firstChild),nt=t,Ce=!0,Hn=null,Bt=!0,n=Yd(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(_a(),i===s){t=yn(e,t,n);break e}it(e,t,i,n)}t=t.child}return t;case 26:return Yo(e,t),e===null?(n=up(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ce||(n=t.type,e=t.pendingProps,i=rr(se.current).createElement(n),i[tt]=t,i[ft]=e,lt(i,n,e),Ie(i),t.stateNode=i):t.memoizedState=up(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ot(t),e===null&&Ce&&(i=t.stateNode=rp(t.type,t.pendingProps,se.current),nt=t,Bt=!0,s=He,ea(t.type)?(du=s,He=qt(i.firstChild)):He=s),it(e,t,t.pendingProps.children,n),Yo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((s=i=He)&&(i=tb(i,t.type,t.pendingProps,Bt),i!==null?(t.stateNode=i,nt=t,He=qt(i.firstChild),Bt=!1,s=!0):s=!1),s||qn(t)),ot(t),s=t.type,u=t.pendingProps,p=e!==null?e.memoizedProps:null,i=u.children,ru(s,u)?i=null:p!==null&&ru(s,p)&&(t.flags|=32),t.memoizedState!==null&&(s=oc(e,t,g0,null,null,n),Nl._currentValue=s),Yo(e,t),it(e,t,i,n),t.child;case 6:return e===null&&Ce&&((e=n=He)&&(n=nb(n,t.pendingProps,Bt),n!==null?(t.stateNode=n,nt=t,He=null,e=!0):e=!1),e||qn(t)),null;case 13:return Fh(e,t,n);case 4:return Be(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ma(t,null,i,n):it(e,t,i,n),t.child;case 11:return Gh(e,t,t.type,t.pendingProps,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Gn(t,t.type,i.value),it(e,t,i.children,n),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,Ta(t),s=at(s),i=i(s),t.flags|=1,it(e,t,i,n),t.child;case 14:return Vh(e,t,t.type,t.pendingProps,n);case 15:return Ph(e,t,t.type,t.pendingProps,n);case 19:return $h(e,t,n);case 31:return E0(e,t,n);case 22:return Yh(e,t,n,t.pendingProps);case 24:return Ta(t),i=at(Qe),e===null?(s=Fs(),s===null&&(s=je,u=Ks(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=n),s=u),t.memoizedState={parent:i,cache:s},$s(t),Gn(t,Qe,s)):((e.lanes&n)!==0&&(Is(e,t),hl(t,null,null,n),dl()),s=e.memoizedState,u=t.memoizedState,s.parent!==i?(s={parent:i,cache:i},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Gn(t,Qe,i)):(i=u.cache,Gn(t,Qe,i),i!==s.cache&&Zs(t,[Qe],n,!0))),it(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function vn(e){e.flags|=4}function Lc(e,t,n,i,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Cm())e.flags|=8192;else throw Aa=Mo,Js}else e.flags&=-16777217}function em(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!pp(t))if(Cm())e.flags|=8192;else throw Aa=Mo,Js}function Qo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nf():536870912,e.lanes|=t,wi|=t)}function bl(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function C0(e,t,n){var i=t.pendingProps;switch(Vs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),mn(Qe),Te(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ci(t)?vn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ys())),qe(t),null;case 26:var s=t.type,u=t.memoizedState;return e===null?(vn(t),u!==null?(qe(t),em(t,u)):(qe(t),Lc(t,s,null,i,n))):u?u!==e.memoizedState?(vn(t),qe(t),em(t,u)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&vn(t),qe(t),Lc(t,s,e,i,n)),null;case 27:if(ut(t),n=se.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&vn(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return qe(t),null}e=$.current,ci(t)?Nd(t):(e=rp(s,i,n),t.stateNode=e,vn(t))}return qe(t),null;case 5:if(ut(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&vn(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return qe(t),null}if(u=$.current,ci(t))Nd(t);else{var p=rr(se.current);switch(u){case 1:u=p.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=p.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=p.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=p.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=p.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?p.createElement("select",{is:i.is}):p.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?p.createElement(s,{is:i.is}):p.createElement(s)}}u[tt]=t,u[ft]=i;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)u.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=u;e:switch(lt(u,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&vn(t)}}return qe(t),Lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&vn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=se.current,ci(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,s=nt,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Fm(e.nodeValue,n)),e||qn(t,!0)}else e=rr(e).createTextNode(i),e[tt]=t,t.stateNode=e}return qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=ci(t),n!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[tt]=t}else _a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else n=Ys(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Tt(t),t):(Tt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return qe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ci(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[tt]=t}else _a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),s=!1}else s=Ys(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Tt(t),t):(Tt(t),null)}return Tt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==s&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Qo(t,t.updateQueue),qe(t),null);case 4:return Te(),e===null&&nu(t.stateNode.containerInfo),qe(t),null;case 10:return mn(t.type),qe(t),null;case 19:if(X(Ye),i=t.memoizedState,i===null)return qe(t),null;if(s=(t.flags&128)!==0,u=i.rendering,u===null)if(s)bl(i,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=No(e),u!==null){for(t.flags|=128,bl(i,!1),e=u.updateQueue,t.updateQueue=e,Qo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ad(n,e),n=n.sibling;return F(Ye,Ye.current&1|2),Ce&&dn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Me()>Jo&&(t.flags|=128,s=!0,bl(i,!1),t.lanes=4194304)}else{if(!s)if(e=No(u),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Qo(t,e),bl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Ce)return qe(t),null}else 2*Me()-i.renderingStartTime>Jo&&n!==536870912&&(t.flags|=128,s=!0,bl(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(e=i.last,e!==null?e.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Me(),e.sibling=null,n=Ye.current,F(Ye,s?n&1|2:n&1),Ce&&dn(t,i.treeForkCount),e):(qe(t),null);case 22:case 23:return Tt(t),ac(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),n=t.updateQueue,n!==null&&Qo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&X(Ca),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),mn(Qe),qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function R0(e,t){switch(Vs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mn(Qe),Te(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ut(t),null;case 31:if(t.memoizedState!==null){if(Tt(t),t.alternate===null)throw Error(r(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Tt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Ye),null;case 4:return Te(),null;case 10:return mn(t.type),null;case 22:case 23:return Tt(t),ac(),e!==null&&X(Ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return mn(Qe),null;case 25:return null;default:return null}}function tm(e,t){switch(Vs(t),t.tag){case 3:mn(Qe),Te();break;case 26:case 27:case 5:ut(t);break;case 4:Te();break;case 31:t.memoizedState!==null&&Tt(t);break;case 13:Tt(t);break;case 19:X(Ye);break;case 10:mn(t.type);break;case 22:case 23:Tt(t),ac(),e!==null&&X(Ca);break;case 24:mn(Qe)}}function Sl(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&e)===e){i=void 0;var u=n.create,p=n.inst;i=u(),p.destroy=i}n=n.next}while(n!==s)}}catch(S){ze(t,t.return,S)}}function Zn(e,t,n){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var u=s.next;i=u;do{if((i.tag&e)===e){var p=i.inst,S=p.destroy;if(S!==void 0){p.destroy=void 0,s=t;var _=n,L=S;try{L()}catch(P){ze(s,_,P)}}}i=i.next}while(i!==u)}}catch(P){ze(t,t.return,P)}}function nm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qd(t,n)}catch(i){ze(e,e.return,i)}}}function am(e,t,n){n.props=Da(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){ze(e,t,i)}}function xl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(s){ze(e,t,s)}}function $t(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(s){ze(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){ze(e,t,s)}else n.current=null}function im(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(s){ze(e,e.return,s)}}function kc(e,t,n){try{var i=e.stateNode;W0(i,e.type,n,t),i[ft]=t}catch(s){ze(e,e.return,s)}}function lm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ea(e.type)||e.tag===4}function Uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lm(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&&ea(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 jc(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cn));else if(i!==4&&(i===27&&ea(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}function Zo(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&ea(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zo(e,t,n),e=e.sibling;e!==null;)Zo(e,t,n),e=e.sibling}function om(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);lt(t,i,n),t[tt]=e,t[ft]=n}catch(u){ze(e,e.return,u)}}var bn=!1,We=!1,Bc=!1,rm=typeof WeakSet=="function"?WeakSet:Set,et=null;function A0(e,t){if(e=e.containerInfo,lu=mr,e=bd(e),Ds(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var s=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var p=0,S=-1,_=-1,L=0,P=0,K=e,U=null;t:for(;;){for(var q;K!==n||s!==0&&K.nodeType!==3||(S=p+s),K!==u||i!==0&&K.nodeType!==3||(_=p+i),K.nodeType===3&&(p+=K.nodeValue.length),(q=K.firstChild)!==null;)U=K,K=q;for(;;){if(K===e)break t;if(U===n&&++L===s&&(S=p),U===u&&++P===i&&(_=p),(q=K.nextSibling)!==null)break;K=U,U=K.parentNode}K=q}n=S===-1||_===-1?null:{start:S,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(ou={focusedElem:e,selectionRange:n},mr=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,s=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var te=Da(n.type,s);e=i.getSnapshotBeforeUpdate(te,u),i.__reactInternalSnapshotBeforeUpdate=e}catch(ue){ze(n,n.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cu(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function sm(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:xn(e,n),i&4&&Sl(5,n);break;case 1:if(xn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){ze(n,n.return,p)}else{var s=Da(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){ze(n,n.return,p)}}i&64&&nm(n),i&512&&xl(n,n.return);break;case 3:if(xn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Qd(e,t)}catch(p){ze(n,n.return,p)}}break;case 27:t===null&&i&4&&om(n);case 26:case 5:xn(e,n),t===null&&i&4&&im(n),i&512&&xl(n,n.return);break;case 12:xn(e,n);break;case 31:xn(e,n),i&4&&fm(e,n);break;case 13:xn(e,n),i&4&&dm(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=j0.bind(null,n),ab(e,n))));break;case 22:if(i=n.memoizedState!==null||bn,!i){t=t!==null&&t.memoizedState!==null||We,s=bn;var u=We;bn=i,(We=t)&&!u?wn(e,n,(n.subtreeFlags&8772)!==0):xn(e,n),bn=s,We=u}break;case 30:break;default:xn(e,n)}}function cm(e){var t=e.alternate;t!==null&&(e.alternate=null,cm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ms(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 Ge=null,ht=!1;function Sn(e,t,n){for(n=n.child;n!==null;)um(e,t,n),n=n.sibling}function um(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(Xi,n)}catch{}switch(n.tag){case 26:We||$t(n,t),Sn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:We||$t(n,t);var i=Ge,s=ht;ea(n.type)&&(Ge=n.stateNode,ht=!1),Sn(e,t,n),Ol(n.stateNode),Ge=i,ht=s;break;case 5:We||$t(n,t);case 6:if(i=Ge,s=ht,Ge=null,Sn(e,t,n),Ge=i,ht=s,Ge!==null)if(ht)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(n.stateNode)}catch(u){ze(n,t,u)}else try{Ge.removeChild(n.stateNode)}catch(u){ze(n,t,u)}break;case 18:Ge!==null&&(ht?(e=Ge,np(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Oi(e)):np(Ge,n.stateNode));break;case 4:i=Ge,s=ht,Ge=n.stateNode.containerInfo,ht=!0,Sn(e,t,n),Ge=i,ht=s;break;case 0:case 11:case 14:case 15:Zn(2,n,t),We||Zn(4,n,t),Sn(e,t,n);break;case 1:We||($t(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&am(n,t,i)),Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:We=(i=We)||n.memoizedState!==null,Sn(e,t,n),We=i;break;default:Sn(e,t,n)}}function fm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oi(e)}catch(n){ze(t,t.return,n)}}}function dm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oi(e)}catch(n){ze(t,t.return,n)}}function M0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rm),t;default:throw Error(r(435,e.tag))}}function Ko(e,t){var n=M0(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var s=B0.bind(null,e,i);i.then(s,s)}})}function mt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var s=n[i],u=e,p=t,S=p;e:for(;S!==null;){switch(S.tag){case 27:if(ea(S.type)){Ge=S.stateNode,ht=!1;break e}break;case 5:Ge=S.stateNode,ht=!1;break e;case 3:case 4:Ge=S.stateNode.containerInfo,ht=!0;break e}S=S.return}if(Ge===null)throw Error(r(160));um(u,p,s),Ge=null,ht=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)hm(t,e),t=t.sibling}var Xt=null;function hm(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:mt(t,e),pt(e),i&4&&(Zn(3,e,e.return),Sl(3,e),Zn(5,e,e.return));break;case 1:mt(t,e),pt(e),i&512&&(We||n===null||$t(n,n.return)),i&64&&bn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var s=Xt;if(mt(t,e),pt(e),i&512&&(We||n===null||$t(n,n.return)),i&4){var u=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":u=s.getElementsByTagName("title")[0],(!u||u[Ki]||u[tt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(i),s.head.insertBefore(u,s.querySelector("head > title"))),lt(u,i,n),u[tt]=e,Ie(u),i=u;break e;case"link":var p=hp("link","href",s).get(i+(n.href||""));if(p){for(var S=0;S<p.length;S++)if(u=p[S],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(S,1);break t}}u=s.createElement(i),lt(u,i,n),s.head.appendChild(u);break;case"meta":if(p=hp("meta","content",s).get(i+(n.content||""))){for(S=0;S<p.length;S++)if(u=p[S],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(S,1);break t}}u=s.createElement(i),lt(u,i,n),s.head.appendChild(u);break;default:throw Error(r(468,i))}u[tt]=e,Ie(u),i=u}e.stateNode=i}else mp(s,e.type,e.stateNode);else e.stateNode=dp(s,i,e.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?mp(s,e.type,e.stateNode):dp(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&kc(e,e.memoizedProps,n.memoizedProps)}break;case 27:mt(t,e),pt(e),i&512&&(We||n===null||$t(n,n.return)),n!==null&&i&4&&kc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(mt(t,e),pt(e),i&512&&(We||n===null||$t(n,n.return)),e.flags&32){s=e.stateNode;try{Ia(s,"")}catch(te){ze(e,e.return,te)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,kc(e,s,n!==null?n.memoizedProps:s)),i&1024&&(Bc=!0);break;case 6:if(mt(t,e),pt(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(te){ze(e,e.return,te)}}break;case 3:if(ur=null,s=Xt,Xt=sr(t.containerInfo),mt(t,e),Xt=s,pt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Oi(t.containerInfo)}catch(te){ze(e,e.return,te)}Bc&&(Bc=!1,mm(e));break;case 4:i=Xt,Xt=sr(e.stateNode.containerInfo),mt(t,e),pt(e),Xt=i;break;case 12:mt(t,e),pt(e);break;case 31:mt(t,e),pt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ko(e,i)));break;case 13:mt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Fo=Me()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ko(e,i)));break;case 22:s=e.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,L=bn,P=We;if(bn=L||s,We=P||_,mt(t,e),We=P,bn=L,pt(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||_||bn||We||za(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){_=n=t;try{if(u=_.stateNode,s)p=u.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{S=_.stateNode;var K=_.memoizedProps.style,U=K!=null&&K.hasOwnProperty("display")?K.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(te){ze(_,_.return,te)}}}else if(t.tag===6){if(n===null){_=t;try{_.stateNode.nodeValue=s?"":_.memoizedProps}catch(te){ze(_,_.return,te)}}}else if(t.tag===18){if(n===null){_=t;try{var q=_.stateNode;s?ap(q,!0):ap(_.stateNode,!1)}catch(te){ze(_,_.return,te)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Ko(e,n))));break;case 19:mt(t,e),pt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Ko(e,i)));break;case 30:break;case 21:break;default:mt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(lm(i)){n=i;break}i=i.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,u=Uc(e);Zo(e,u,s);break;case 5:var p=n.stateNode;n.flags&32&&(Ia(p,""),n.flags&=-33);var S=Uc(e);Zo(e,S,p);break;case 3:case 4:var _=n.stateNode.containerInfo,L=Uc(e);jc(e,L,_);break;default:throw Error(r(161))}}catch(P){ze(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;mm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sm(e,t.alternate,t),t=t.sibling}function za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Zn(4,t,t.return),za(t);break;case 1:$t(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&am(t,t.return,n),za(t);break;case 27:Ol(t.stateNode);case 26:case 5:$t(t,t.return),za(t);break;case 22:t.memoizedState===null&&za(t);break;case 30:za(t);break;default:za(t)}e=e.sibling}}function wn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,s=e,u=t,p=u.flags;switch(u.tag){case 0:case 11:case 15:wn(s,u,n),Sl(4,u);break;case 1:if(wn(s,u,n),i=u,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(L){ze(i,i.return,L)}if(i=u,s=i.updateQueue,s!==null){var S=i.stateNode;try{var _=s.shared.hiddenCallbacks;if(_!==null)for(s.shared.hiddenCallbacks=null,s=0;s<_.length;s++)Xd(_[s],S)}catch(L){ze(i,i.return,L)}}n&&p&64&&nm(u),xl(u,u.return);break;case 27:om(u);case 26:case 5:wn(s,u,n),n&&i===null&&p&4&&im(u),xl(u,u.return);break;case 12:wn(s,u,n);break;case 31:wn(s,u,n),n&&p&4&&fm(s,u);break;case 13:wn(s,u,n),n&&p&4&&dm(s,u);break;case 22:u.memoizedState===null&&wn(s,u,n),xl(u,u.return);break;case 30:break;default:wn(s,u,n)}t=t.sibling}}function Hc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&rl(n))}function qc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rl(e))}function Qt(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pm(e,t,n,i),t=t.sibling}function pm(e,t,n,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,n,i),s&2048&&Sl(9,t);break;case 1:Qt(e,t,n,i);break;case 3:Qt(e,t,n,i),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rl(e)));break;case 12:if(s&2048){Qt(e,t,n,i),e=t.stateNode;try{var u=t.memoizedProps,p=u.id,S=u.onPostCommit;typeof S=="function"&&S(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){ze(t,t.return,_)}}else Qt(e,t,n,i);break;case 31:Qt(e,t,n,i);break;case 13:Qt(e,t,n,i);break;case 23:break;case 22:u=t.stateNode,p=t.alternate,t.memoizedState!==null?u._visibility&2?Qt(e,t,n,i):wl(e,t):u._visibility&2?Qt(e,t,n,i):(u._visibility|=2,bi(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Hc(p,t);break;case 24:Qt(e,t,n,i),s&2048&&qc(t.alternate,t);break;default:Qt(e,t,n,i)}}function bi(e,t,n,i,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,p=t,S=n,_=i,L=p.flags;switch(p.tag){case 0:case 11:case 15:bi(u,p,S,_,s),Sl(8,p);break;case 23:break;case 22:var P=p.stateNode;p.memoizedState!==null?P._visibility&2?bi(u,p,S,_,s):wl(u,p):(P._visibility|=2,bi(u,p,S,_,s)),s&&L&2048&&Hc(p.alternate,p);break;case 24:bi(u,p,S,_,s),s&&L&2048&&qc(p.alternate,p);break;default:bi(u,p,S,_,s)}t=t.sibling}}function wl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,s=i.flags;switch(i.tag){case 22:wl(n,i),s&2048&&Hc(i.alternate,i);break;case 24:wl(n,i),s&2048&&qc(i.alternate,i);break;default:wl(n,i)}t=t.sibling}}var _l=8192;function Si(e,t,n){if(e.subtreeFlags&_l)for(e=e.child;e!==null;)gm(e,t,n),e=e.sibling}function gm(e,t,n){switch(e.tag){case 26:Si(e,t,n),e.flags&_l&&e.memoizedState!==null&&pb(n,Xt,e.memoizedState,e.memoizedProps);break;case 5:Si(e,t,n);break;case 3:case 4:var i=Xt;Xt=sr(e.stateNode.containerInfo),Si(e,t,n),Xt=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=_l,_l=16777216,Si(e,t,n),_l=i):Si(e,t,n));break;default:Si(e,t,n)}}function ym(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function El(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];et=i,bm(i,e)}ym(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vm(e),e=e.sibling}function vm(e){switch(e.tag){case 0:case 11:case 15:El(e),e.flags&2048&&Zn(9,e,e.return);break;case 3:El(e);break;case 12:El(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wo(e)):El(e);break;default:El(e)}}function Wo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];et=i,bm(i,e)}ym(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Zn(8,t,t.return),Wo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Wo(t));break;default:Wo(t)}e=e.sibling}}function bm(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:Zn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:rl(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,et=i;else e:for(n=e;et!==null;){i=et;var s=i.sibling,u=i.return;if(cm(i),i===n){et=null;break e}if(s!==null){s.return=u,et=s;break e}et=u}}}var O0={getCacheForType:function(e){var t=at(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return at(Qe).controller.signal}},D0=typeof WeakMap=="function"?WeakMap:Map,Oe=0,je=null,xe=null,_e=0,De=0,Ct=null,Kn=!1,xi=!1,Gc=!1,_n=0,Pe=0,Wn=0,Na=0,Vc=0,Rt=0,wi=0,Tl=null,gt=null,Pc=!1,Fo=0,Sm=0,Jo=1/0,$o=null,Fn=null,Fe=0,Jn=null,_i=null,En=0,Yc=0,Xc=null,xm=null,Cl=0,Qc=null;function At(){return(Oe&2)!==0&&_e!==0?_e&-_e:D.T!==null?$c():jf()}function wm(){if(Rt===0)if((_e&536870912)===0||Ce){var e=lo;lo<<=1,(lo&3932160)===0&&(lo=262144),Rt=e}else Rt=536870912;return e=Et.current,e!==null&&(e.flags|=32),Rt}function yt(e,t,n){(e===je&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(Ei(e,0),$n(e,_e,Rt,!1)),Zi(e,n),((Oe&2)===0||e!==je)&&(e===je&&((Oe&2)===0&&(Na|=n),Pe===4&&$n(e,_e,Rt,!1)),It(e))}function _m(e,t,n){if((Oe&6)!==0)throw Error(r(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Qi(e,t),s=i?L0(e,t):Kc(e,t,!0),u=i;do{if(s===0){xi&&!i&&$n(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!z0(n)){s=Kc(e,t,!1),u=!1;continue}if(s===2){if(u=t,e.errorRecoveryDisabledLanes&u)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var S=e;s=Tl;var _=S.current.memoizedState.isDehydrated;if(_&&(Ei(S,p).flags|=256),p=Kc(S,p,!1),p!==2){if(Gc&&!_){S.errorRecoveryDisabledLanes|=u,Na|=u,s=4;break e}u=gt,gt=s,u!==null&&(gt===null?gt=u:gt.push.apply(gt,u))}s=p}if(u=!1,s!==2)continue}}if(s===1){Ei(e,0),$n(e,t,0,!0);break}e:{switch(i=e,u=s,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:$n(i,t,Rt,!Kn);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=Fo+300-Me(),10<s)){if($n(i,t,Rt,!Kn),ro(i,0,!0)!==0)break e;En=t,i.timeoutHandle=ep(Em.bind(null,i,n,gt,$o,Pc,t,Rt,Na,wi,Kn,u,"Throttled",-0,0),s);break e}Em(i,n,gt,$o,Pc,t,Rt,Na,wi,Kn,u,null,-0,0)}}break}while(!0);It(e)}function Em(e,t,n,i,s,u,p,S,_,L,P,K,U,q){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},gm(t,u,K);var te=(u&62914560)===u?Fo-Me():(u&4194048)===u?Sm-Me():0;if(te=gb(K,te),te!==null){En=u,e.cancelPendingCommit=te(zm.bind(null,e,t,u,n,i,s,p,S,_,P,K,null,U,q)),$n(e,u,p,!L);return}}zm(e,t,u,n,i,s,p,S,_)}function z0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var s=n[i],u=s.getSnapshot;s=s.value;try{if(!wt(u(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t,n,i){t&=~Vc,t&=~Na,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var u=31-xt(s),p=1<<u;i[u]=-1,s&=~p}n!==0&&Lf(e,n,t)}function Io(){return(Oe&6)===0?(Rl(0),!1):!0}function Zc(){if(xe!==null){if(De===0)var e=xe.return;else e=xe,hn=Ea=null,cc(e),mi=null,cl=0,e=xe;for(;e!==null;)tm(e.alternate,e),e=e.return;xe=null}}function Ei(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),En=0,Zc(),je=e,xe=n=fn(e.current,null),_e=t,De=0,Ct=null,Kn=!1,xi=Qi(e,t),Gc=!1,wi=Rt=Vc=Na=Wn=Pe=0,gt=Tl=null,Pc=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var s=31-xt(i),u=1<<s;t|=e[s],i&=~u}return _n=t,So(),n}function Tm(e,t){ve=null,D.H=yl,t===hi||t===Ao?(t=Gd(),De=3):t===Js?(t=Gd(),De=4):De=t===Tc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ct=t,xe===null&&(Pe=1,Vo(e,kt(t,e.current)))}function Cm(){var e=Et.current;return e===null?!0:(_e&4194048)===_e?Ht===null:(_e&62914560)===_e||(_e&536870912)!==0?e===Ht:!1}function Rm(){var e=D.H;return D.H=yl,e===null?yl:e}function Am(){var e=D.A;return D.A=O0,e}function er(){Pe=4,Kn||(_e&4194048)!==_e&&Et.current!==null||(xi=!0),(Wn&134217727)===0&&(Na&134217727)===0||je===null||$n(je,_e,Rt,!1)}function Kc(e,t,n){var i=Oe;Oe|=2;var s=Rm(),u=Am();(je!==e||_e!==t)&&($o=null,Ei(e,t)),t=!1;var p=Pe;e:do try{if(De!==0&&xe!==null){var S=xe,_=Ct;switch(De){case 8:Zc(),p=6;break e;case 3:case 2:case 9:case 6:Et.current===null&&(t=!0);var L=De;if(De=0,Ct=null,Ti(e,S,_,L),n&&xi){p=0;break e}break;default:L=De,De=0,Ct=null,Ti(e,S,_,L)}}N0(),p=Pe;break}catch(P){Tm(e,P)}while(!0);return t&&e.shellSuspendCounter++,hn=Ea=null,Oe=i,D.H=s,D.A=u,xe===null&&(je=null,_e=0,So()),p}function N0(){for(;xe!==null;)Mm(xe)}function L0(e,t){var n=Oe;Oe|=2;var i=Rm(),s=Am();je!==e||_e!==t?($o=null,Jo=Me()+500,Ei(e,t)):xi=Qi(e,t);e:do try{if(De!==0&&xe!==null){t=xe;var u=Ct;t:switch(De){case 1:De=0,Ct=null,Ti(e,t,u,1);break;case 2:case 9:if(Hd(u)){De=0,Ct=null,Om(t);break}t=function(){De!==2&&De!==9||je!==e||(De=7),It(e)},u.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Hd(u)?(De=0,Ct=null,Om(t)):(De=0,Ct=null,Ti(e,t,u,7));break;case 5:var p=null;switch(xe.tag){case 26:p=xe.memoizedState;case 5:case 27:var S=xe;if(p?pp(p):S.stateNode.complete){De=0,Ct=null;var _=S.sibling;if(_!==null)xe=_;else{var L=S.return;L!==null?(xe=L,tr(L)):xe=null}break t}}De=0,Ct=null,Ti(e,t,u,5);break;case 6:De=0,Ct=null,Ti(e,t,u,6);break;case 8:Zc(),Pe=6;break e;default:throw Error(r(462))}}k0();break}catch(P){Tm(e,P)}while(!0);return hn=Ea=null,D.H=i,D.A=s,Oe=n,xe!==null?0:(je=null,_e=0,So(),Pe)}function k0(){for(;xe!==null&&!no();)Mm(xe)}function Mm(e){var t=Ih(e.alternate,e,_n);e.memoizedProps=e.pendingProps,t===null?tr(e):xe=t}function Om(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Zh(n,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=Zh(n,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:cc(t);default:tm(n,t),t=xe=Ad(t,_n),t=Ih(n,t,_n)}e.memoizedProps=e.pendingProps,t===null?tr(e):xe=t}function Ti(e,t,n,i){hn=Ea=null,cc(t),mi=null,cl=0;var s=t.return;try{if(_0(e,s,t,n,_e)){Pe=1,Vo(e,kt(n,e.current)),xe=null;return}}catch(u){if(s!==null)throw xe=s,u;Pe=1,Vo(e,kt(n,e.current)),xe=null;return}t.flags&32768?(Ce||i===1?e=!0:xi||(_e&536870912)!==0?e=!1:(Kn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Et.current,i!==null&&i.tag===13&&(i.flags|=16384))),Dm(t,e)):tr(t)}function tr(e){var t=e;do{if((t.flags&32768)!==0){Dm(t,Kn);return}e=t.return;var n=C0(t.alternate,t,_n);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Pe===0&&(Pe=5)}function Dm(e,t){do{var n=R0(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);Pe=6,xe=null}function zm(e,t,n,i,s,u,p,S,_){e.cancelPendingCommit=null;do nr();while(Fe!==0);if((Oe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Us,mv(e,n,u,p,S,_),e===je&&(xe=je=null,_e=0),_i=t,Jn=e,En=n,Yc=u,Xc=s,xm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,H0(ao,function(){return jm(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,s=W.p,W.p=2,p=Oe,Oe|=4;try{A0(e,t,n)}finally{Oe=p,W.p=s,D.T=i}}Fe=1,Nm(),Lm(),km()}}function Nm(){if(Fe===1){Fe=0;var e=Jn,t=_i,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var i=W.p;W.p=2;var s=Oe;Oe|=4;try{hm(t,e);var u=ou,p=bd(e.containerInfo),S=u.focusedElem,_=u.selectionRange;if(p!==S&&S&&S.ownerDocument&&vd(S.ownerDocument.documentElement,S)){if(_!==null&&Ds(S)){var L=_.start,P=_.end;if(P===void 0&&(P=L),"selectionStart"in S)S.selectionStart=L,S.selectionEnd=Math.min(P,S.value.length);else{var K=S.ownerDocument||document,U=K&&K.defaultView||window;if(U.getSelection){var q=U.getSelection(),te=S.textContent.length,ue=Math.min(_.start,te),Ue=_.end===void 0?ue:Math.min(_.end,te);!q.extend&&ue>Ue&&(p=Ue,Ue=ue,ue=p);var O=yd(S,ue),T=yd(S,Ue);if(O&&T&&(q.rangeCount!==1||q.anchorNode!==O.node||q.anchorOffset!==O.offset||q.focusNode!==T.node||q.focusOffset!==T.offset)){var z=K.createRange();z.setStart(O.node,O.offset),q.removeAllRanges(),ue>Ue?(q.addRange(z),q.extend(T.node,T.offset)):(z.setEnd(T.node,T.offset),q.addRange(z))}}}}for(K=[],q=S;q=q.parentNode;)q.nodeType===1&&K.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<K.length;S++){var Q=K[S];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}mr=!!lu,ou=lu=null}finally{Oe=s,W.p=i,D.T=n}}e.current=t,Fe=2}}function Lm(){if(Fe===2){Fe=0;var e=Jn,t=_i,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var i=W.p;W.p=2;var s=Oe;Oe|=4;try{sm(e,t.alternate,t)}finally{Oe=s,W.p=i,D.T=n}}Fe=3}}function km(){if(Fe===4||Fe===3){Fe=0,Ne();var e=Jn,t=_i,n=En,i=xm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,_i=Jn=null,Um(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Fn=null),ds(n),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Xi,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=D.T,s=W.p,W.p=2,D.T=null;try{for(var u=e.onRecoverableError,p=0;p<i.length;p++){var S=i[p];u(S.value,{componentStack:S.stack})}}finally{D.T=t,W.p=s}}(En&3)!==0&&nr(),It(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===Qc?Cl++:(Cl=0,Qc=e):Cl=0,Rl(0)}}function Um(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,rl(t)))}function nr(){return Nm(),Lm(),km(),jm()}function jm(){if(Fe!==5)return!1;var e=Jn,t=Yc;Yc=0;var n=ds(En),i=D.T,s=W.p;try{W.p=32>n?32:n,D.T=null,n=Xc,Xc=null;var u=Jn,p=En;if(Fe=0,_i=Jn=null,En=0,(Oe&6)!==0)throw Error(r(331));var S=Oe;if(Oe|=4,vm(u.current),pm(u,u.current,p,n),Oe=S,Rl(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Xi,u)}catch{}return!0}finally{W.p=s,D.T=i,Um(e,t)}}function Bm(e,t,n){t=kt(n,t),t=Ec(e.stateNode,t,2),e=Yn(e,t,2),e!==null&&(Zi(e,2),It(e))}function ze(e,t,n){if(e.tag===3)Bm(e,e,n);else for(;t!==null;){if(t.tag===3){Bm(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Fn===null||!Fn.has(i))){e=kt(n,e),n=Hh(2),i=Yn(t,n,2),i!==null&&(qh(n,i,t,e),Zi(i,2),It(i));break}}t=t.return}}function Wc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new D0;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(n)||(Gc=!0,s.add(n),e=U0.bind(null,e,t,n),t.then(e,e))}function U0(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,je===e&&(_e&n)===n&&(Pe===4||Pe===3&&(_e&62914560)===_e&&300>Me()-Fo?(Oe&2)===0&&Ei(e,0):Vc|=n,wi===_e&&(wi=0)),It(e)}function Hm(e,t){t===0&&(t=Nf()),e=xa(e,t),e!==null&&(Zi(e,t),It(e))}function j0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hm(e,n)}function B0(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),Hm(e,n)}function H0(e,t){return Ln(e,t)}var ar=null,Ci=null,Fc=!1,ir=!1,Jc=!1,In=0;function It(e){e!==Ci&&e.next===null&&(Ci===null?ar=Ci=e:Ci=Ci.next=e),ir=!0,Fc||(Fc=!0,G0())}function Rl(e,t){if(!Jc&&ir){Jc=!0;do for(var n=!1,i=ar;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var u=0;else{var p=i.suspendedLanes,S=i.pingedLanes;u=(1<<31-xt(42|e)+1)-1,u&=s&~(p&~S),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Pm(i,u))}else u=_e,u=ro(i,i===je?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||Qi(i,u)||(n=!0,Pm(i,u));i=i.next}while(n);Jc=!1}}function q0(){qm()}function qm(){ir=Fc=!1;var e=0;In!==0&&J0()&&(e=In);for(var t=Me(),n=null,i=ar;i!==null;){var s=i.next,u=Gm(i,t);u===0?(i.next=null,n===null?ar=s:n.next=s,s===null&&(Ci=n)):(n=i,(e!==0||(u&3)!==0)&&(ir=!0)),i=s}Fe!==0&&Fe!==5||Rl(e),In!==0&&(In=0)}function Gm(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var p=31-xt(u),S=1<<p,_=s[p];_===-1?((S&n)===0||(S&i)!==0)&&(s[p]=hv(S,t)):_<=t&&(e.expiredLanes|=S),u&=~S}if(t=je,n=_e,n=ro(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Qa(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Qi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Qa(i),ds(n)){case 2:case 8:n=Df;break;case 32:n=ao;break;case 268435456:n=zf;break;default:n=ao}return i=Vm.bind(null,e),n=Ln(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Qa(i),e.callbackPriority=2,e.callbackNode=null,2}function Vm(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(nr()&&e.callbackNode!==n)return null;var i=_e;return i=ro(e,e===je?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(_m(e,i,t),Gm(e,Me()),e.callbackNode!=null&&e.callbackNode===n?Vm.bind(null,e):null)}function Pm(e,t){if(nr())return null;_m(e,t,!0)}function G0(){I0(function(){(Oe&6)!==0?Ln(Yi,q0):qm()})}function $c(){if(In===0){var e=fi;e===0&&(e=io,io<<=1,(io&261888)===0&&(io=256)),In=e}return In}function Ym(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fo(""+e)}function Xm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function V0(e,t,n,i,s){if(t==="submit"&&n&&n.stateNode===s){var u=Ym((s[ft]||null).action),p=i.submitter;p&&(t=(t=p[ft]||null)?Ym(t.formAction):p.getAttribute("formAction"),t!==null&&(u=t,p=null));var S=new go("action","action",null,i,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(In!==0){var _=p?Xm(s,p):new FormData(s);vc(n,{pending:!0,data:_,method:s.method,action:u},null,_)}}else typeof u=="function"&&(S.preventDefault(),_=p?Xm(s,p):new FormData(s),vc(n,{pending:!0,data:_,method:s.method,action:u},u,_))},currentTarget:s}]})}}for(var Ic=0;Ic<ks.length;Ic++){var eu=ks[Ic],P0=eu.toLowerCase(),Y0=eu[0].toUpperCase()+eu.slice(1);Yt(P0,"on"+Y0)}Yt(wd,"onAnimationEnd"),Yt(_d,"onAnimationIteration"),Yt(Ed,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(o0,"onTransitionRun"),Yt(r0,"onTransitionStart"),Yt(s0,"onTransitionCancel"),Yt(Td,"onTransitionEnd"),Ja("onMouseEnter",["mouseout","mouseover"]),Ja("onMouseLeave",["mouseout","mouseover"]),Ja("onPointerEnter",["pointerout","pointerover"]),Ja("onPointerLeave",["pointerout","pointerover"]),ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ya("onBeforeInput",["compositionend","keypress","textInput","paste"]),ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Al="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(" "),X0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Al));function Qm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],s=i.event;i=i.listeners;e:{var u=void 0;if(t)for(var p=i.length-1;0<=p;p--){var S=i[p],_=S.instance,L=S.currentTarget;if(S=S.listener,_!==u&&s.isPropagationStopped())break e;u=S,s.currentTarget=L;try{u(s)}catch(P){bo(P)}s.currentTarget=null,u=_}else for(p=0;p<i.length;p++){if(S=i[p],_=S.instance,L=S.currentTarget,S=S.listener,_!==u&&s.isPropagationStopped())break e;u=S,s.currentTarget=L;try{u(s)}catch(P){bo(P)}s.currentTarget=null,u=_}}}}function we(e,t){var n=t[hs];n===void 0&&(n=t[hs]=new Set);var i=e+"__bubble";n.has(i)||(Zm(t,e,2,!1),n.add(i))}function tu(e,t,n){var i=0;t&&(i|=4),Zm(n,e,i,t)}var lr="_reactListening"+Math.random().toString(36).slice(2);function nu(e){if(!e[lr]){e[lr]=!0,qf.forEach(function(n){n!=="selectionchange"&&(X0.has(n)||tu(n,!1,e),tu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[lr]||(t[lr]=!0,tu("selectionchange",!1,t))}}function Zm(e,t,n,i){switch(wp(t)){case 2:var s=bb;break;case 8:s=Sb;break;default:s=yu}n=s.bind(null,t,n,e),s=void 0,!ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function au(e,t,n,i,s){var u=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var p=i.tag;if(p===3||p===4){var S=i.stateNode.containerInfo;if(S===s)break;if(p===4)for(p=i.return;p!==null;){var _=p.tag;if((_===3||_===4)&&p.stateNode.containerInfo===s)return;p=p.return}for(;S!==null;){if(p=Ka(S),p===null)return;if(_=p.tag,_===5||_===6||_===26||_===27){i=u=p;continue e}S=S.parentNode}}i=i.return}$f(function(){var L=u,P=Ss(n),K=[];e:{var U=Cd.get(e);if(U!==void 0){var q=go,te=e;switch(e){case"keypress":if(mo(n)===0)break e;case"keydown":case"keyup":q=Bv;break;case"focusin":te="focus",q=Cs;break;case"focusout":te="blur",q=Cs;break;case"beforeblur":case"afterblur":q=Cs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=td;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Cv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Gv;break;case wd:case _d:case Ed:q=Mv;break;case Td:q=Pv;break;case"scroll":case"scrollend":q=Ev;break;case"wheel":q=Xv;break;case"copy":case"cut":case"paste":q=Dv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=ad;break;case"toggle":case"beforetoggle":q=Zv}var ue=(t&4)!==0,Ue=!ue&&(e==="scroll"||e==="scrollend"),O=ue?U!==null?U+"Capture":null:U;ue=[];for(var T=L,z;T!==null;){var Q=T;if(z=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||z===null||O===null||(Q=Fi(T,O),Q!=null&&ue.push(Ml(T,Q,z))),Ue)break;T=T.return}0<ue.length&&(U=new q(U,te,null,n,P),K.push({event:U,listeners:ue}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",U&&n!==bs&&(te=n.relatedTarget||n.fromElement)&&(Ka(te)||te[Za]))break e;if((q||U)&&(U=P.window===P?P:(U=P.ownerDocument)?U.defaultView||U.parentWindow:window,q?(te=n.relatedTarget||n.toElement,q=L,te=te?Ka(te):null,te!==null&&(Ue=f(te),ue=te.tag,te!==Ue||ue!==5&&ue!==27&&ue!==6)&&(te=null)):(q=null,te=L),q!==te)){if(ue=td,Q="onMouseLeave",O="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ue=ad,Q="onPointerLeave",O="onPointerEnter",T="pointer"),Ue=q==null?U:Wi(q),z=te==null?U:Wi(te),U=new ue(Q,T+"leave",q,n,P),U.target=Ue,U.relatedTarget=z,Q=null,Ka(P)===L&&(ue=new ue(O,T+"enter",te,n,P),ue.target=z,ue.relatedTarget=Ue,Q=ue),Ue=Q,q&&te)t:{for(ue=Q0,O=q,T=te,z=0,Q=O;Q;Q=ue(Q))z++;Q=0;for(var re=T;re;re=ue(re))Q++;for(;0<z-Q;)O=ue(O),z--;for(;0<Q-z;)T=ue(T),Q--;for(;z--;){if(O===T||T!==null&&O===T.alternate){ue=O;break t}O=ue(O),T=ue(T)}ue=null}else ue=null;q!==null&&Km(K,U,q,ue,!1),te!==null&&Ue!==null&&Km(K,Ue,te,ue,!0)}}e:{if(U=L?Wi(L):window,q=U.nodeName&&U.nodeName.toLowerCase(),q==="select"||q==="input"&&U.type==="file")var Re=fd;else if(cd(U))if(dd)Re=a0;else{Re=t0;var ie=e0}else q=U.nodeName,!q||q.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?L&&vs(L.elementType)&&(Re=fd):Re=n0;if(Re&&(Re=Re(e,L))){ud(K,Re,n,P);break e}ie&&ie(e,U,L),e==="focusout"&&L&&U.type==="number"&&L.memoizedProps.value!=null&&ys(U,"number",U.value)}switch(ie=L?Wi(L):window,e){case"focusin":(cd(ie)||ie.contentEditable==="true")&&(ai=ie,zs=L,il=null);break;case"focusout":il=zs=ai=null;break;case"mousedown":Ns=!0;break;case"contextmenu":case"mouseup":case"dragend":Ns=!1,Sd(K,n,P);break;case"selectionchange":if(l0)break;case"keydown":case"keyup":Sd(K,n,P)}var be;if(As)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else ni?rd(e,n)&&(Ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ee="onCompositionStart");Ee&&(id&&n.locale!=="ko"&&(ni||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&ni&&(be=If()):(jn=P,_s="value"in jn?jn.value:jn.textContent,ni=!0)),ie=or(L,Ee),0<ie.length&&(Ee=new nd(Ee,e,null,n,P),K.push({event:Ee,listeners:ie}),be?Ee.data=be:(be=sd(n),be!==null&&(Ee.data=be)))),(be=Wv?Fv(e,n):Jv(e,n))&&(Ee=or(L,"onBeforeInput"),0<Ee.length&&(ie=new nd("onBeforeInput","beforeinput",null,n,P),K.push({event:ie,listeners:Ee}),ie.data=be)),V0(K,e,L,n,P)}Qm(K,t)})}function Ml(e,t,n){return{instance:e,listener:t,currentTarget:n}}function or(e,t){for(var n=t+"Capture",i=[];e!==null;){var s=e,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=Fi(e,n),s!=null&&i.unshift(Ml(e,s,u)),s=Fi(e,t),s!=null&&i.push(Ml(e,s,u))),e.tag===3)return i;e=e.return}return[]}function Q0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Km(e,t,n,i,s){for(var u=t._reactName,p=[];n!==null&&n!==i;){var S=n,_=S.alternate,L=S.stateNode;if(S=S.tag,_!==null&&_===i)break;S!==5&&S!==26&&S!==27||L===null||(_=L,s?(L=Fi(n,u),L!=null&&p.unshift(Ml(n,L,_))):s||(L=Fi(n,u),L!=null&&p.push(Ml(n,L,_)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var Z0=/\r\n?/g,K0=/\u0000|\uFFFD/g;function Wm(e){return(typeof e=="string"?e:""+e).replace(Z0,`
|
|
10
|
+
`).replace(K0,"")}function Fm(e,t){return t=Wm(t),Wm(e)===t}function ke(e,t,n,i,s,u){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Ia(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Ia(e,""+i);break;case"className":co(e,"class",i);break;case"tabIndex":co(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":co(e,n,i);break;case"style":Ff(e,i,u);break;case"data":if(t!=="object"){co(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=fo(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&ke(e,t,"name",s.name,s,null),ke(e,t,"formEncType",s.formEncType,s,null),ke(e,t,"formMethod",s.formMethod,s,null),ke(e,t,"formTarget",s.formTarget,s,null)):(ke(e,t,"encType",s.encType,s,null),ke(e,t,"method",s.method,s,null),ke(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=fo(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=cn);break;case"onScroll":i!=null&&we("scroll",e);break;case"onScrollEnd":i!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=fo(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":we("beforetoggle",e),we("toggle",e),so(e,"popover",i);break;case"xlinkActuate":sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":sn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":sn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":sn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":sn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":so(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=wv.get(n)||n,so(e,n,i))}}function iu(e,t,n,i,s,u){switch(n){case"style":Ff(e,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Ia(e,i):(typeof i=="number"||typeof i=="bigint")&&Ia(e,""+i);break;case"onScroll":i!=null&&we("scroll",e);break;case"onScrollEnd":i!=null&&we("scrollend",e);break;case"onClick":i!=null&&(e.onclick=cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),u=e[ft]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,s),typeof i=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,s);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):so(e,n,i)}}}function lt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var i=!1,s=!1,u;for(u in n)if(n.hasOwnProperty(u)){var p=n[u];if(p!=null)switch(u){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ke(e,t,u,p,n,null)}}s&&ke(e,t,"srcSet",n.srcSet,n,null),i&&ke(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var S=u=p=s=null,_=null,L=null;for(i in n)if(n.hasOwnProperty(i)){var P=n[i];if(P!=null)switch(i){case"name":s=P;break;case"type":p=P;break;case"checked":_=P;break;case"defaultChecked":L=P;break;case"value":u=P;break;case"defaultValue":S=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(137,t));break;default:ke(e,t,i,P,n,null)}}Qf(e,u,S,_,L,p,s,!1);return;case"select":we("invalid",e),i=p=u=null;for(s in n)if(n.hasOwnProperty(s)&&(S=n[s],S!=null))switch(s){case"value":u=S;break;case"defaultValue":p=S;break;case"multiple":i=S;default:ke(e,t,s,S,n,null)}t=u,n=p,e.multiple=!!i,t!=null?$a(e,!!i,t,!1):n!=null&&$a(e,!!i,n,!0);return;case"textarea":we("invalid",e),u=s=i=null;for(p in n)if(n.hasOwnProperty(p)&&(S=n[p],S!=null))switch(p){case"value":i=S;break;case"defaultValue":s=S;break;case"children":u=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:ke(e,t,p,S,n,null)}Kf(e,i,s,u);return;case"option":for(_ in n)if(n.hasOwnProperty(_)&&(i=n[_],i!=null))switch(_){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:ke(e,t,_,i,n,null)}return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(i=0;i<Al.length;i++)we(Al[i],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("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(L in n)if(n.hasOwnProperty(L)&&(i=n[L],i!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ke(e,t,L,i,n,null)}return;default:if(vs(t)){for(P in n)n.hasOwnProperty(P)&&(i=n[P],i!==void 0&&iu(e,t,P,i,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(i=n[S],i!=null&&ke(e,t,S,i,n,null))}function W0(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,p=null,S=null,_=null,L=null,P=null;for(q in n){var K=n[q];if(n.hasOwnProperty(q)&&K!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":_=K;default:i.hasOwnProperty(q)||ke(e,t,q,null,i,K)}}for(var U in i){var q=i[U];if(K=n[U],i.hasOwnProperty(U)&&(q!=null||K!=null))switch(U){case"type":u=q;break;case"name":s=q;break;case"checked":L=q;break;case"defaultChecked":P=q;break;case"value":p=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:q!==K&&ke(e,t,U,q,i,K)}}gs(e,p,S,_,L,P,u,s);return;case"select":q=p=S=U=null;for(u in n)if(_=n[u],n.hasOwnProperty(u)&&_!=null)switch(u){case"value":break;case"multiple":q=_;default:i.hasOwnProperty(u)||ke(e,t,u,null,i,_)}for(s in i)if(u=i[s],_=n[s],i.hasOwnProperty(s)&&(u!=null||_!=null))switch(s){case"value":U=u;break;case"defaultValue":S=u;break;case"multiple":p=u;default:u!==_&&ke(e,t,s,u,i,_)}t=S,n=p,i=q,U!=null?$a(e,!!n,U,!1):!!i!=!!n&&(t!=null?$a(e,!!n,t,!0):$a(e,!!n,n?[]:"",!1));return;case"textarea":q=U=null;for(S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!i.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:ke(e,t,S,null,i,s)}for(p in i)if(s=i[p],u=n[p],i.hasOwnProperty(p)&&(s!=null||u!=null))switch(p){case"value":U=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==u&&ke(e,t,p,s,i,u)}Zf(e,U,q);return;case"option":for(var te in n)if(U=n[te],n.hasOwnProperty(te)&&U!=null&&!i.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:ke(e,t,te,null,i,U)}for(_ in i)if(U=i[_],q=n[_],i.hasOwnProperty(_)&&U!==q&&(U!=null||q!=null))switch(_){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:ke(e,t,_,U,i,q)}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 ue in n)U=n[ue],n.hasOwnProperty(ue)&&U!=null&&!i.hasOwnProperty(ue)&&ke(e,t,ue,null,i,U);for(L in i)if(U=i[L],q=n[L],i.hasOwnProperty(L)&&U!==q&&(U!=null||q!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:ke(e,t,L,U,i,q)}return;default:if(vs(t)){for(var Ue in n)U=n[Ue],n.hasOwnProperty(Ue)&&U!==void 0&&!i.hasOwnProperty(Ue)&&iu(e,t,Ue,void 0,i,U);for(P in i)U=i[P],q=n[P],!i.hasOwnProperty(P)||U===q||U===void 0&&q===void 0||iu(e,t,P,U,i,q);return}}for(var O in n)U=n[O],n.hasOwnProperty(O)&&U!=null&&!i.hasOwnProperty(O)&&ke(e,t,O,null,i,U);for(K in i)U=i[K],q=n[K],!i.hasOwnProperty(K)||U===q||U==null&&q==null||ke(e,t,K,U,i,q)}function Jm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function F0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var s=n[i],u=s.transferSize,p=s.initiatorType,S=s.duration;if(u&&S&&Jm(p)){for(p=0,S=s.responseEnd,i+=1;i<n.length;i++){var _=n[i],L=_.startTime;if(L>S)break;var P=_.transferSize,K=_.initiatorType;P&&Jm(K)&&(_=_.responseEnd,p+=P*(_<S?1:(S-L)/(_-L)))}if(--i,t+=8*(u+p)/(s.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 lu=null,ou=null;function rr(e){return e.nodeType===9?e:e.ownerDocument}function $m(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 Im(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 ru(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 su=null;function J0(){var e=window.event;return e&&e.type==="popstate"?e===su?!1:(su=e,!0):(su=null,!1)}var ep=typeof setTimeout=="function"?setTimeout:void 0,$0=typeof clearTimeout=="function"?clearTimeout:void 0,tp=typeof Promise=="function"?Promise:void 0,I0=typeof queueMicrotask=="function"?queueMicrotask:typeof tp<"u"?function(e){return tp.resolve(null).then(e).catch(eb)}:ep;function eb(e){setTimeout(function(){throw e})}function ea(e){return e==="head"}function np(e,t){var n=t,i=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(s),Oi(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ol(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ol(n);for(var u=n.firstChild;u;){var p=u.nextSibling,S=u.nodeName;u[Ki]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=p}}else n==="body"&&Ol(e.ownerDocument.body);n=s}while(n);Oi(t)}function ap(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function cu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":cu(n),ms(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function tb(e,t,n,i){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ki])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=qt(e.nextSibling),e===null)break}return null}function nb(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=qt(e.nextSibling),e===null))return null;return e}function ip(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=qt(e.nextSibling),e===null))return null;return e}function uu(e){return e.data==="$?"||e.data==="$~"}function fu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ab(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function qt(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 du=null;function lp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return qt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function op(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function rp(e,t,n){switch(t=rr(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ol(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ms(e)}var Gt=new Map,sp=new Set;function sr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tn=W.d;W.d={f:ib,r:lb,D:ob,C:rb,L:sb,m:cb,X:fb,S:ub,M:db};function ib(){var e=Tn.f(),t=Io();return e||t}function lb(e){var t=Wa(e);t!==null&&t.tag===5&&t.type==="form"?Th(t):Tn.r(e)}var Ri=typeof document>"u"?null:document;function cp(e,t,n){var i=Ri;if(i&&typeof t=="string"&&t){var s=Nt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),sp.has(s)||(sp.add(s),e={rel:e,crossOrigin:n,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),lt(t,"link",e),Ie(t),i.head.appendChild(t)))}}function ob(e){Tn.D(e),cp("dns-prefetch",e,null)}function rb(e,t){Tn.C(e,t),cp("preconnect",e,t)}function sb(e,t,n){Tn.L(e,t,n);var i=Ri;if(i&&e&&t){var s='link[rel="preload"][as="'+Nt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Nt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Nt(n.imageSizes)+'"]')):s+='[href="'+Nt(e)+'"]';var u=s;switch(t){case"style":u=Ai(e);break;case"script":u=Mi(e)}Gt.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gt.set(u,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(Dl(u))||t==="script"&&i.querySelector(zl(u))||(t=i.createElement("link"),lt(t,"link",e),Ie(t),i.head.appendChild(t)))}}function cb(e,t){Tn.m(e,t);var n=Ri;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Nt(i)+'"][href="'+Nt(e)+'"]',u=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Mi(e)}if(!Gt.has(u)&&(e=y({rel:"modulepreload",href:e},t),Gt.set(u,e),n.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(zl(u)))return}i=n.createElement("link"),lt(i,"link",e),Ie(i),n.head.appendChild(i)}}}function ub(e,t,n){Tn.S(e,t,n);var i=Ri;if(i&&e){var s=Fa(i).hoistableStyles,u=Ai(e);t=t||"default";var p=s.get(u);if(!p){var S={loading:0,preload:null};if(p=i.querySelector(Dl(u)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gt.get(u))&&hu(e,n);var _=p=i.createElement("link");Ie(_),lt(_,"link",e),_._p=new Promise(function(L,P){_.onload=L,_.onerror=P}),_.addEventListener("load",function(){S.loading|=1}),_.addEventListener("error",function(){S.loading|=2}),S.loading|=4,cr(p,t,i)}p={type:"stylesheet",instance:p,count:1,state:S},s.set(u,p)}}}function fb(e,t){Tn.X(e,t);var n=Ri;if(n&&e){var i=Fa(n).hoistableScripts,s=Mi(e),u=i.get(s);u||(u=n.querySelector(zl(s)),u||(e=y({src:e,async:!0},t),(t=Gt.get(s))&&mu(e,t),u=n.createElement("script"),Ie(u),lt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(s,u))}}function db(e,t){Tn.M(e,t);var n=Ri;if(n&&e){var i=Fa(n).hoistableScripts,s=Mi(e),u=i.get(s);u||(u=n.querySelector(zl(s)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Gt.get(s))&&mu(e,t),u=n.createElement("script"),Ie(u),lt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(s,u))}}function up(e,t,n,i){var s=(s=se.current)?sr(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ai(n.href),n=Fa(s).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ai(n.href);var u=Fa(s).hoistableStyles,p=u.get(e);if(p||(s=s.ownerDocument||s,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,p),(u=s.querySelector(Dl(e)))&&!u._p&&(p.instance=u,p.state.loading=5),Gt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Gt.set(e,n),u||hb(s,e,n,p.state))),t&&i===null)throw Error(r(528,""));return p}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Mi(n),n=Fa(s).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ai(e){return'href="'+Nt(e)+'"'}function Dl(e){return'link[rel="stylesheet"]['+e+"]"}function fp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function hb(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),lt(t,"link",n),Ie(t),e.head.appendChild(t))}function Mi(e){return'[src="'+Nt(e)+'"]'}function zl(e){return"script[async]"+e}function dp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Nt(n.href)+'"]');if(i)return t.instance=i,Ie(i),i;var s=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ie(i),lt(i,"style",s),cr(i,n.precedence,e),t.instance=i;case"stylesheet":s=Ai(n.href);var u=e.querySelector(Dl(s));if(u)return t.state.loading|=4,t.instance=u,Ie(u),u;i=fp(n),(s=Gt.get(s))&&hu(i,s),u=(e.ownerDocument||e).createElement("link"),Ie(u);var p=u;return p._p=new Promise(function(S,_){p.onload=S,p.onerror=_}),lt(u,"link",i),t.state.loading|=4,cr(u,n.precedence,e),t.instance=u;case"script":return u=Mi(n.src),(s=e.querySelector(zl(u)))?(t.instance=s,Ie(s),s):(i=n,(s=Gt.get(u))&&(i=y({},n),mu(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),Ie(s),lt(s,"link",i),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,cr(i,n.precedence,e));return t.instance}function cr(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,u=s,p=0;p<i.length;p++){var S=i[p];if(S.dataset.precedence===t)u=S;else if(u!==s)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function hu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function mu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ur=null;function hp(e,t,n){if(ur===null){var i=new Map,s=ur=new Map;s.set(n,i)}else s=ur,i=s.get(n),i||(i=new Map,s.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var u=n[s];if(!(u[Ki]||u[tt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var p=u.getAttribute(t)||"";p=e+p;var S=i.get(p);S?S.push(u):i.set(p,[u])}}return i}function mp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function mb(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function pp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function pb(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Ai(i.href),u=t.querySelector(Dl(s));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,Ie(u);return}u=t.ownerDocument||t,i=fp(i),(s=Gt.get(s))&&hu(i,s),u=u.createElement("link"),Ie(u);var p=u;p._p=new Promise(function(S,_){p.onload=S,p.onerror=_}),lt(u,"link",i),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=fr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var pu=0;function gb(e,t){return e.stylesheets&&e.count===0&&hr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&hr(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&pu===0&&(pu=62500*F0());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&hr(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>pu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function fr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var dr=null;function hr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,dr=new Map,t.forEach(yb,e),dr=null,fr.call(e))}function yb(e,t){if(!(t.state.loading&4)){var n=dr.get(e);if(n)var i=n.get(null);else{n=new Map,dr.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var p=s[u];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),i=p)}i&&n.set(null,i)}s=t.instance,p=s.getAttribute("data-precedence"),u=n.get(p)||i,u===i&&n.set(null,s),n.set(p,s),this.count++,i=fr.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),u?u.parentNode.insertBefore(s,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Nl={$$typeof:B,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function vb(e,t,n,i,s,u,p,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=us(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=us(0),this.hiddenUpdates=us(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function gp(e,t,n,i,s,u,p,S,_,L,P,K){return e=new vb(e,t,n,p,_,L,P,K,S),t=1,u===!0&&(t|=24),u=_t(3,null,null,t),e.current=u,u.stateNode=e,t=Ks(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:t},$s(u),e}function yp(e){return e?(e=oi,e):oi}function vp(e,t,n,i,s,u){s=yp(s),i.context===null?i.context=s:i.pendingContext=s,i=Pn(t),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=Yn(e,i,t),n!==null&&(yt(n,e,t),fl(n,e,t))}function bp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gu(e,t){bp(e,t),(e=e.alternate)&&bp(e,t)}function Sp(e){if(e.tag===13||e.tag===31){var t=xa(e,67108864);t!==null&&yt(t,e,67108864),gu(e,67108864)}}function xp(e){if(e.tag===13||e.tag===31){var t=At();t=fs(t);var n=xa(e,t);n!==null&&yt(n,e,t),gu(e,t)}}var mr=!0;function bb(e,t,n,i){var s=D.T;D.T=null;var u=W.p;try{W.p=2,yu(e,t,n,i)}finally{W.p=u,D.T=s}}function Sb(e,t,n,i){var s=D.T;D.T=null;var u=W.p;try{W.p=8,yu(e,t,n,i)}finally{W.p=u,D.T=s}}function yu(e,t,n,i){if(mr){var s=vu(i);if(s===null)au(e,t,i,pr,n),_p(e,i);else if(wb(s,e,t,n,i))i.stopPropagation();else if(_p(e,i),t&4&&-1<xb.indexOf(e)){for(;s!==null;){var u=Wa(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var p=ga(u.pendingLanes);if(p!==0){var S=u;for(S.pendingLanes|=2,S.entangledLanes|=2;p;){var _=1<<31-xt(p);S.entanglements[1]|=_,p&=~_}It(u),(Oe&6)===0&&(Jo=Me()+500,Rl(0))}}break;case 31:case 13:S=xa(u,2),S!==null&&yt(S,u,2),Io(),gu(u,2)}if(u=vu(i),u===null&&au(e,t,i,pr,n),u===s)break;s=u}s!==null&&i.stopPropagation()}else au(e,t,i,null,n)}}function vu(e){return e=Ss(e),bu(e)}var pr=null;function bu(e){if(pr=null,e=Ka(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pr=e,null}function wp(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(bt()){case Yi:return 2;case Df:return 8;case ao:case rv:return 32;case zf:return 268435456;default:return 32}default:return 32}}var Su=!1,ta=null,na=null,aa=null,Ll=new Map,kl=new Map,ia=[],xb="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 _p(e,t){switch(e){case"focusin":case"focusout":ta=null;break;case"dragenter":case"dragleave":na=null;break;case"mouseover":case"mouseout":aa=null;break;case"pointerover":case"pointerout":Ll.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kl.delete(t.pointerId)}}function Ul(e,t,n,i,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[s]},t!==null&&(t=Wa(t),t!==null&&Sp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function wb(e,t,n,i,s){switch(t){case"focusin":return ta=Ul(ta,e,t,n,i,s),!0;case"dragenter":return na=Ul(na,e,t,n,i,s),!0;case"mouseover":return aa=Ul(aa,e,t,n,i,s),!0;case"pointerover":var u=s.pointerId;return Ll.set(u,Ul(Ll.get(u)||null,e,t,n,i,s)),!0;case"gotpointercapture":return u=s.pointerId,kl.set(u,Ul(kl.get(u)||null,e,t,n,i,s)),!0}return!1}function Ep(e){var t=Ka(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Bf(e.priority,function(){xp(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,Bf(e.priority,function(){xp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vu(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);bs=i,n.target.dispatchEvent(i),bs=null}else return t=Wa(n),t!==null&&Sp(t),e.blockedOn=n,!1;t.shift()}return!0}function Tp(e,t,n){gr(e)&&n.delete(t)}function _b(){Su=!1,ta!==null&&gr(ta)&&(ta=null),na!==null&&gr(na)&&(na=null),aa!==null&&gr(aa)&&(aa=null),Ll.forEach(Tp),kl.forEach(Tp)}function yr(e,t){e.blockedOn===t&&(e.blockedOn=null,Su||(Su=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,_b)))}var vr=null;function Cp(e){vr!==e&&(vr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){vr===e&&(vr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],s=e[t+2];if(typeof i!="function"){if(bu(i||n)===null)continue;break}var u=Wa(n);u!==null&&(e.splice(t,3),t-=3,vc(u,{pending:!0,data:s,method:n.method,action:i},i,s))}}))}function Oi(e){function t(_){return yr(_,e)}ta!==null&&yr(ta,e),na!==null&&yr(na,e),aa!==null&&yr(aa,e),Ll.forEach(t),kl.forEach(t);for(var n=0;n<ia.length;n++){var i=ia[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ia.length&&(n=ia[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&ia.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var s=n[i],u=n[i+1],p=s[ft]||null;if(typeof u=="function")p||Cp(n);else if(p){var S=null;if(u&&u.hasAttribute("formAction")){if(s=u,p=u[ft]||null)S=p.formAction;else if(bu(s)!==null)continue}else S=p.action;typeof S=="function"?n[i+1]=S:(n.splice(i,3),i-=3),Cp(n)}}}function Rp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(p){return s=p})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function xu(e){this._internalRoot=e}br.prototype.render=xu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,i=At();vp(n,i,e,t,null,null)},br.prototype.unmount=xu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vp(e.current,2,null,e,null,null),Io(),t[Za]=null}};function br(e){this._internalRoot=e}br.prototype.unstable_scheduleHydration=function(e){if(e){var t=jf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ia.length&&t!==0&&t<ia[n].priority;n++);ia.splice(n,0,e),n===0&&Ep(e)}};var Ap=o.version;if(Ap!=="19.2.1")throw Error(r(527,Ap,"19.2.1"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Eb={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sr.isDisabled&&Sr.supportsFiber)try{Xi=Sr.inject(Eb),St=Sr}catch{}}return Bl.createRoot=function(e,t){if(!c(e))throw Error(r(299));var n=!1,i="",s=kh,u=Uh,p=jh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=gp(e,1,!1,null,null,n,i,null,s,u,p,Rp),e[Za]=t.current,nu(e),new xu(t)},Bl.hydrateRoot=function(e,t,n){if(!c(e))throw Error(r(299));var i=!1,s="",u=kh,p=Uh,S=jh,_=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),t=gp(e,1,!0,t,n??null,i,s,_,u,p,S,Rp),t.context=yp(null),n=t.current,i=At(),i=fs(i),s=Pn(i),s.callback=null,Yn(n,s,i),n=i,t.current.lanes=n,Zi(t,n),It(t),e[Za]=t.current,nu(e),new br(t)},Bl.version="19.2.1",Bl}var Bp;function Lb(){if(Bp)return _u.exports;Bp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(o){console.error(o)}}return a(),_u.exports=Nb(),_u.exports}var kb=Lb();const Ub=lf(kb),Ku=new WeakMap,jb=new WeakMap,Lr={current:[]};let Au=!1,Yl=0;const Pl=new Set,xr=new Map;function Lg(a){for(const o of a){if(Lr.current.includes(o))continue;Lr.current.push(o),o.recompute();const l=jb.get(o);if(l)for(const r of l){const c=Ku.get(r);c?.length&&Lg(c)}}}function Bb(a){const o={prevVal:a.prevState,currentVal:a.state};for(const l of a.listeners)l(o)}function Hb(a){const o={prevVal:a.prevState,currentVal:a.state};for(const l of a.listeners)l(o)}function kg(a){if(Yl>0&&!xr.has(a)&&xr.set(a,a.prevState),Pl.add(a),!(Yl>0)&&!Au)try{for(Au=!0;Pl.size>0;){const o=Array.from(Pl);Pl.clear();for(const l of o){const r=xr.get(l)??l.prevState;l.prevState=r,Bb(l)}for(const l of o){const r=Ku.get(l);r&&(Lr.current.push(l),Lg(r))}for(const l of o){const r=Ku.get(l);if(r)for(const c of r)Hb(c)}}}finally{Au=!1,Lr.current=[],xr.clear()}}function Xl(a){Yl++;try{a()}finally{if(Yl--,Yl===0){const o=Pl.values().next().value;o&&kg(o)}}}function qb(a){return typeof a=="function"}class Gb{constructor(o,l){this.listeners=new Set,this.subscribe=r=>{var c,f;this.listeners.add(r);const d=(f=(c=this.options)==null?void 0:c.onSubscribe)==null?void 0:f.call(c,r,this);return()=>{this.listeners.delete(r),d?.()}},this.prevState=o,this.state=o,this.options=l}setState(o){var l,r,c;this.prevState=this.state,(l=this.options)!=null&&l.updateFn?this.state=this.options.updateFn(this.prevState)(o):qb(o)?this.state=o(this.prevState):this.state=o,(c=(r=this.options)==null?void 0:r.onUpdate)==null||c.call(r),kg(this)}}const ca="__TSR_index",Hp="popstate",qp="beforeunload";function Vb(a){let o=a.getLocation();const l=new Set,r=d=>{o=a.getLocation(),l.forEach(g=>g({location:o,action:d}))},c=d=>{a.notifyOnIndexChange??!0?r(d):o=a.getLocation()},f=async({task:d,navigateOpts:g,...h})=>{if(g?.ignoreBlocker??!1){d();return}const v=a.getBlockers?.()??[],y=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&v.length&&y)for(const b of v){const x=kr(h.path,h.state);if(await b.blockerFn({currentLocation:o,nextLocation:x,action:h.type})){a.onBlocked?.();return}}d()};return{get location(){return o},get length(){return a.getLength()},subscribers:l,subscribe:d=>(l.add(d),()=>{l.delete(d)}),push:(d,g,h)=>{const m=o.state[ca];g=Gp(m+1,g),f({task:()=>{a.pushState(d,g),r({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:d,state:g})},replace:(d,g,h)=>{const m=o.state[ca];g=Gp(m,g),f({task:()=>{a.replaceState(d,g),r({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:d,state:g})},go:(d,g)=>{f({task:()=>{a.go(d),c({type:"GO",index:d})},navigateOpts:g,type:"GO"})},back:d=>{f({task:()=>{a.back(d?.ignoreBlocker??!1),c({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{f({task:()=>{a.forward(d?.ignoreBlocker??!1),c({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>o.state[ca]!==0,createHref:d=>a.createHref(d),block:d=>{if(!a.setBlockers)return()=>{};const g=a.getBlockers?.()??[];return a.setBlockers([...g,d]),()=>{const h=a.getBlockers?.()??[];a.setBlockers?.(h.filter(m=>m!==d))}},flush:()=>a.flush?.(),destroy:()=>a.destroy?.(),notify:r}}function Gp(a,o){o||(o={});const l=of();return{...o,key:l,__TSR_key:l,[ca]:a}}function Pb(a){const o=typeof document<"u"?window:void 0,l=o.history.pushState,r=o.history.replaceState;let c=[];const f=()=>c,d=j=>c=j,g=(j=>j),h=(()=>kr(`${o.location.pathname}${o.location.search}${o.location.hash}`,o.history.state));if(!o.history.state?.__TSR_key&&!o.history.state?.key){const j=of();o.history.replaceState({[ca]:0,key:j,__TSR_key:j},"")}let m=h(),v,y=!1,b=!1,x=!1,w=!1;const A=()=>m;let R,M;const H=()=>{R&&(N._ignoreSubscribers=!0,(R.isPush?o.history.pushState:o.history.replaceState)(R.state,"",R.href),N._ignoreSubscribers=!1,R=void 0,M=void 0,v=void 0)},B=(j,J,I)=>{const ee=g(J);M||(v=m),m=kr(J,I),R={href:ee,state:I,isPush:R?.isPush||j==="push"},M||(M=Promise.resolve().then(()=>H()))},Y=j=>{m=h(),N.notify({type:j})},Z=async()=>{if(b){b=!1;return}const j=h(),J=j.state[ca]-m.state[ca],I=J===1,ee=J===-1,ce=!I&&!ee||y;y=!1;const me=ce?"GO":ee?"BACK":"FORWARD",de=ce?{type:"GO",index:J}:{type:ee?"BACK":"FORWARD"};if(x)x=!1;else{const pe=f();if(typeof document<"u"&&pe.length){for(const D of pe)if(await D.blockerFn({currentLocation:m,nextLocation:j,action:me})){b=!0,o.history.go(1),N.notify(de);return}}}m=h(),N.notify(de)},G=j=>{if(w){w=!1;return}let J=!1;const I=f();if(typeof document<"u"&&I.length)for(const ee of I){const ce=ee.enableBeforeUnload??!0;if(ce===!0){J=!0;break}if(typeof ce=="function"&&ce()===!0){J=!0;break}}if(J)return j.preventDefault(),j.returnValue=""},N=Vb({getLocation:A,getLength:()=>o.history.length,pushState:(j,J)=>B("push",j,J),replaceState:(j,J)=>B("replace",j,J),back:j=>(j&&(x=!0),w=!0,o.history.back()),forward:j=>{j&&(x=!0),w=!0,o.history.forward()},go:j=>{y=!0,o.history.go(j)},createHref:j=>g(j),flush:H,destroy:()=>{o.history.pushState=l,o.history.replaceState=r,o.removeEventListener(qp,G,{capture:!0}),o.removeEventListener(Hp,Z)},onBlocked:()=>{v&&m!==v&&(m=v)},getBlockers:f,setBlockers:d,notifyOnIndexChange:!1});return o.addEventListener(qp,G,{capture:!0}),o.addEventListener(Hp,Z),o.history.pushState=function(...j){const J=l.apply(o.history,j);return N._ignoreSubscribers||Y("PUSH"),J},o.history.replaceState=function(...j){const J=r.apply(o.history,j);return N._ignoreSubscribers||Y("REPLACE"),J},N}function kr(a,o){const l=a.indexOf("#"),r=a.indexOf("?"),c=of();return{href:a,pathname:a.substring(0,l>0?r>0?Math.min(l,r):l:r>0?r:a.length),hash:l>-1?a.substring(l):"",search:r>-1?a.slice(r,l===-1?void 0:l):"",state:o||{[ca]:0,key:c,__TSR_key:c}}}function of(){return(Math.random()+1).toString(36).substring(7)}function Ur(a){return a[a.length-1]}function Yb(a){return typeof a=="function"}function ra(a,o){return Yb(a)?a(o):a}const Xb=Object.prototype.hasOwnProperty;function Vt(a,o){if(a===o)return a;const l=o,r=Yp(a)&&Yp(l);if(!r&&!(jr(a)&&jr(l)))return l;const c=r?a:Vp(a);if(!c)return l;const f=r?l:Vp(l);if(!f)return l;const d=c.length,g=f.length,h=r?new Array(g):{};let m=0;for(let v=0;v<g;v++){const y=r?v:f[v],b=a[y],x=l[y];if(b===x){h[y]=b,(r?v<d:Xb.call(a,y))&&m++;continue}if(b===null||x===null||typeof b!="object"||typeof x!="object"){h[y]=x;continue}const w=Vt(b,x);h[y]=w,w===b&&m++}return d===g&&m===d?a:h}function Vp(a){const o=[],l=Object.getOwnPropertyNames(a);for(const c of l){if(!Object.prototype.propertyIsEnumerable.call(a,c))return!1;o.push(c)}const r=Object.getOwnPropertySymbols(a);for(const c of r){if(!Object.prototype.propertyIsEnumerable.call(a,c))return!1;o.push(c)}return o}function jr(a){if(!Pp(a))return!1;const o=a.constructor;if(typeof o>"u")return!0;const l=o.prototype;return!(!Pp(l)||!l.hasOwnProperty("isPrototypeOf"))}function Pp(a){return Object.prototype.toString.call(a)==="[object Object]"}function Yp(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Ua(a,o,l){if(a===o)return!0;if(typeof a!=typeof o)return!1;if(Array.isArray(a)&&Array.isArray(o)){if(a.length!==o.length)return!1;for(let r=0,c=a.length;r<c;r++)if(!Ua(a[r],o[r],l))return!1;return!0}if(jr(a)&&jr(o)){const r=l?.ignoreUndefined??!0;if(l?.partial){for(const d in o)if((!r||o[d]!==void 0)&&!Ua(a[d],o[d],l))return!1;return!0}let c=0;if(!r)c=Object.keys(a).length;else for(const d in a)a[d]!==void 0&&c++;let f=0;for(const d in o)if((!r||o[d]!==void 0)&&(f++,f>c||!Ua(a[d],o[d],l)))return!1;return c===f}return!1}function Li(a){let o,l;const r=new Promise((c,f)=>{o=c,l=f});return r.status="pending",r.resolve=c=>{r.status="resolved",r.value=c,o(c),a?.(c)},r.reject=c=>{r.status="rejected",l(c)},r}function Qb(a){return typeof a?.message!="string"?!1:a.message.startsWith("Failed to fetch dynamically imported module")||a.message.startsWith("error loading dynamically imported module")||a.message.startsWith("Importing a module script failed")}function ua(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function Xp(a){try{return decodeURI(a)}catch{return a.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}}function Qp(a,o){if(!a)return a;const l=/%25|%5C/gi;let r=0,c="",f;for(;(f=l.exec(a))!==null;)c+=Xp(a.slice(r,f.index))+f[0],r=l.lastIndex;return c+Xp(r?a.slice(r):a)}var Zb="Invariant failed";function An(a,o){if(!a)throw new Error(Zb)}function Br(a){const o=new Map;let l,r;const c=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,r&&(r.next=f,f.prev=r)):(f.next.prev=void 0,l=f.next,f.next=void 0,r&&(f.prev=r,r.next=f)),r=f)};return{get(f){const d=o.get(f);if(d)return c(d),d.value},set(f,d){if(o.size>=a&&l){const h=l;o.delete(h.key),h.next&&(l=h.next,h.next.prev=void 0),h===r&&(r=void 0)}const g=o.get(f);if(g)g.value=d,c(g);else{const h={key:f,value:d,prev:r};r&&(r.next=h),r=h,l||(l=h),o.set(f,h)}},clear(){o.clear(),l=void 0,r=void 0}}}const ki=0,Ha=1,qa=2,Zl=3,Kb=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Wb=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Fb=/^([^{]*)\{\$\}([^}]*)$/;function rf(a,o,l=new Uint16Array(6)){const r=a.indexOf("/",o),c=r===-1?a.length:r,f=a.substring(o,c);if(!f||!f.includes("$"))return l[0]=ki,l[1]=o,l[2]=o,l[3]=c,l[4]=c,l[5]=c,l;if(f==="$"){const m=a.length;return l[0]=qa,l[1]=o,l[2]=o,l[3]=m,l[4]=m,l[5]=m,l}if(f.charCodeAt(0)===36)return l[0]=Ha,l[1]=o,l[2]=o+1,l[3]=c,l[4]=c,l[5]=c,l;const d=f.match(Fb);if(d){const v=d[1].length;return l[0]=qa,l[1]=o+v,l[2]=o+v+1,l[3]=o+v+2,l[4]=o+v+3,l[5]=a.length,l}const g=f.match(Wb);if(g){const m=g[1],v=g[2],y=g[3],b=m.length;return l[0]=Zl,l[1]=o+b,l[2]=o+b+3,l[3]=o+b+3+v.length,l[4]=c-y.length,l[5]=c,l}const h=f.match(Kb);if(h){const m=h[1],v=h[2],y=h[3],b=m.length;return l[0]=Ha,l[1]=o+b,l[2]=o+b+2,l[3]=o+b+2+v.length,l[4]=c-y.length,l[5]=c,l}return l[0]=ki,l[1]=o,l[2]=o,l[3]=c,l[4]=c,l[5]=c,l}function Fr(a,o,l,r,c,f,d){d?.(l);let g=r;{const h=l.fullPath??l.from,m=h.length,v=l.options?.caseSensitive??a;for(;g<m;){const y=rf(h,g,o);let b;const x=g,w=y[5];switch(g=w+1,f++,y[0]){case ki:{const R=h.substring(y[2],y[3]);if(v){const M=c.static?.get(R);if(M)b=M;else{c.static??=new Map;const H=Kl(l.fullPath??l.from);H.parent=c,H.depth=f,b=H,c.static.set(R,H)}}else{const M=R.toLowerCase(),H=c.staticInsensitive?.get(M);if(H)b=H;else{c.staticInsensitive??=new Map;const B=Kl(l.fullPath??l.from);B.parent=c,B.depth=f,b=B,c.staticInsensitive.set(M,B)}}break}case Ha:{const R=h.substring(x,y[1]),M=h.substring(y[4],w),H=v&&!!(R||M),B=R?H?R:R.toLowerCase():void 0,Y=M?H?M:M.toLowerCase():void 0,Z=c.dynamic?.find(G=>G.caseSensitive===H&&G.prefix===B&&G.suffix===Y);if(Z)b=Z;else{const G=Ou(Ha,l.fullPath??l.from,H,B,Y);b=G,G.depth=f,G.parent=c,c.dynamic??=[],c.dynamic.push(G)}break}case Zl:{const R=h.substring(x,y[1]),M=h.substring(y[4],w),H=v&&!!(R||M),B=R?H?R:R.toLowerCase():void 0,Y=M?H?M:M.toLowerCase():void 0,Z=c.optional?.find(G=>G.caseSensitive===H&&G.prefix===B&&G.suffix===Y);if(Z)b=Z;else{const G=Ou(Zl,l.fullPath??l.from,H,B,Y);b=G,G.parent=c,G.depth=f,c.optional??=[],c.optional.push(G)}break}case qa:{const R=h.substring(x,y[1]),M=h.substring(y[4],w),H=v&&!!(R||M),B=R?H?R:R.toLowerCase():void 0,Y=M?H?M:M.toLowerCase():void 0,Z=Ou(qa,l.fullPath??l.from,H,B,Y);b=Z,Z.parent=c,Z.depth=f,c.wildcard??=[],c.wildcard.push(Z)}}c=b}if((l.path||!l.children)&&!l.isRoot){const y=h.endsWith("/");y||(c.notFound=l),(!c.route||!c.isIndex&&y)&&(c.route=l,c.fullPath=l.fullPath??l.from),c.isIndex||=y}}if(l.children)for(const h of l.children)Fr(a,o,h,g,c,f,d)}function Mu(a,o){if(a.prefix&&o.prefix&&a.prefix!==o.prefix){if(a.prefix.startsWith(o.prefix))return-1;if(o.prefix.startsWith(a.prefix))return 1}if(a.suffix&&o.suffix&&a.suffix!==o.suffix){if(a.suffix.endsWith(o.suffix))return-1;if(o.suffix.endsWith(a.suffix))return 1}return a.prefix&&!o.prefix?-1:!a.prefix&&o.prefix?1:a.suffix&&!o.suffix?-1:!a.suffix&&o.suffix?1:a.caseSensitive&&!o.caseSensitive?-1:!a.caseSensitive&&o.caseSensitive?1:0}function ka(a){if(a.static)for(const o of a.static.values())ka(o);if(a.staticInsensitive)for(const o of a.staticInsensitive.values())ka(o);if(a.dynamic?.length){a.dynamic.sort(Mu);for(const o of a.dynamic)ka(o)}if(a.optional?.length){a.optional.sort(Mu);for(const o of a.optional)ka(o)}if(a.wildcard?.length){a.wildcard.sort(Mu);for(const o of a.wildcard)ka(o)}}function Kl(a){return{kind:ki,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,isIndex:!1,notFound:null}}function Ou(a,o,l,r,c){return{kind:a,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:o,parent:null,isIndex:!1,notFound:null,caseSensitive:l,prefix:r,suffix:c}}function Jb(a,o){const l=Kl("/"),r=new Uint16Array(6);for(const c of a)Fr(!1,r,c,1,l,0);ka(l),o.masksTree=l,o.flatCache=Br(1e3)}function $b(a,o){a||="/";const l=o.flatCache.get(a);if(l)return l;const r=sf(a,o.masksTree);return o.flatCache.set(a,r),r}function Ib(a,o,l,r,c){a||="/",r||="/";const f=o?`case\0${a}`:a;let d=c.singleCache.get(f);if(!d){d=Kl("/");const g=new Uint16Array(6);Fr(o,g,{from:a},1,d,0),c.singleCache.set(f,d)}return sf(r,d,l)}function eS(a,o,l=!1){const r=l?a:`nofuzz\0${a}`,c=o.matchCache.get(r);if(c!==void 0)return c;a||="/";const f=sf(a,o.segmentTree,l);return f&&(f.branch=iS(f.route)),o.matchCache.set(r,f),f}function tS(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function nS(a,o=!1,l){const r=Kl(a.fullPath),c=new Uint16Array(6),f={},d={};let g=0;return Fr(o,c,a,1,r,0,m=>{if(l?.(m,g),An(!(m.id in f),`Duplicate routes found with id: ${String(m.id)}`),f[m.id]=m,g!==0&&m.path){const v=tS(m.fullPath);(!d[v]||m.fullPath.endsWith("/"))&&(d[v]=m)}g++}),ka(r),{processedTree:{segmentTree:r,singleCache:Br(1e3),matchCache:Br(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:d}}function sf(a,o,l=!1){const r=a.split("/"),c=oS(a,r,o,l);if(!c)return null;const f=aS(a,r,c),d="**"in c;return d&&(f["**"]=c["**"]),{route:d?c.node.notFound??c.node.route:c.node.route,params:f}}function aS(a,o,l){const r=lS(l.node);let c=null;const f={};for(let d=0,g=0,h=0;g<r.length;d++,g++,h++){const m=r[g],v=o[d],y=h;if(v&&(h+=v.length),m.kind===Ha){c??=l.node.fullPath.split("/");const b=c[g],x=m.prefix?.length??0;if(b.charCodeAt(x)===123){const A=m.suffix?.length??0,R=b.substring(x+2,b.length-A-1),M=v.substring(x,v.length-A);f[R]=decodeURIComponent(M)}else{const A=b.substring(1);f[A]=decodeURIComponent(v)}}else if(m.kind===Zl){if(l.skipped&1<<g){d--;continue}c??=l.node.fullPath.split("/");const b=c[g],x=m.prefix?.length??0,w=m.suffix?.length??0,A=b.substring(x+3,b.length-w-1),R=m.suffix||m.prefix?v.substring(x,v.length-w):v;R&&(f[A]=decodeURIComponent(R))}else if(m.kind===qa){const b=m,x=a.substring(y+(b.prefix?.length??0),a.length-(b.suffix?.length??0)),w=decodeURIComponent(x);f["*"]=w,f._splat=w;break}}return f}function iS(a){const o=[a];for(;a.parentRoute;)a=a.parentRoute,o.push(a);return o.reverse(),o}function lS(a){const o=Array(a.depth+1);do o[a.depth]=a,a=a.parent;while(a);return o}function oS(a,o,l,r){const c=!Ur(o),f=c&&a!=="/",d=o.length-(c?1:0),g=[{node:l,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let h=null,m=null,v=null;for(;g.length;){const y=g.pop();let{node:b,index:x,skipped:w,depth:A,statics:R,dynamics:M,optionals:H}=y;r&&b.notFound&&wr(m,y)&&(m=y);const B=x===d;if(B){if(b.route&&(!f||b.isIndex)&&(wr(v,y)&&(v=y),R===d&&b.isIndex))return v;if(!b.optional&&!b.wildcard)continue}const Y=B?void 0:o[x];let Z;if(b.wildcard&&wr(h,y))for(const G of b.wildcard){const{prefix:N,suffix:j}=G;if(!(N&&(B||!(G.caseSensitive?Y:Z??=Y.toLowerCase()).startsWith(N)))){if(j){if(B)continue;const J=o.slice(x).join("/").slice(-j.length);if((G.caseSensitive?J:J.toLowerCase())!==j)continue}h={node:G,index:x,skipped:w,depth:A,statics:R,dynamics:M,optionals:H};break}}if(b.optional){const G=w|1<<A,N=A+1;for(let j=b.optional.length-1;j>=0;j--){const J=b.optional[j];g.push({node:J,index:x,skipped:G,depth:N,statics:R,dynamics:M,optionals:H})}if(!B)for(let j=b.optional.length-1;j>=0;j--){const J=b.optional[j],{prefix:I,suffix:ee}=J;if(I||ee){const ce=J.caseSensitive?Y:Z??=Y.toLowerCase();if(I&&!ce.startsWith(I)||ee&&!ce.endsWith(ee))continue}g.push({node:J,index:x+1,skipped:w,depth:N,statics:R,dynamics:M,optionals:H+1})}}if(!B&&b.dynamic&&Y)for(let G=b.dynamic.length-1;G>=0;G--){const N=b.dynamic[G],{prefix:j,suffix:J}=N;if(j||J){const I=N.caseSensitive?Y:Z??=Y.toLowerCase();if(j&&!I.startsWith(j)||J&&!I.endsWith(J))continue}g.push({node:N,index:x+1,skipped:w,depth:A+1,statics:R,dynamics:M+1,optionals:H})}if(!B&&b.staticInsensitive){const G=b.staticInsensitive.get(Z??=Y.toLowerCase());G&&g.push({node:G,index:x+1,skipped:w,depth:A+1,statics:R+1,dynamics:M,optionals:H})}if(!B&&b.static){const G=b.static.get(Y);G&&g.push({node:G,index:x+1,skipped:w,depth:A+1,statics:R+1,dynamics:M,optionals:H})}}if(v&&h)return wr(h,v)?v:h;if(v)return v;if(h)return h;if(r&&m){let y=m.index;for(let x=0;x<m.index;x++)y+=o[x].length;const b=y===a.length?"/":a.slice(y);return{node:m.node,skipped:m.skipped,"**":decodeURIComponent(b)}}return null}function wr(a,o){return a?o.statics>a.statics||o.statics===a.statics&&(o.dynamics>a.dynamics||o.dynamics===a.dynamics&&(o.optionals>a.optionals||o.optionals===a.optionals&&(o.node.isIndex>a.node.isIndex||o.node.isIndex===a.node.isIndex&&o.depth>a.depth))):!0}function Or(a){return cf(a.filter(o=>o!==void 0).join("/"))}function cf(a){return a.replace(/\/{2,}/g,"/")}function Ug(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function ja(a){const o=a.length;return o>1&&a[o-1]==="/"?a.replace(/\/{1,}$/,""):a}function Dr(a){return ja(Ug(a))}function Hr(a,o){return a?.endsWith("/")&&a!=="/"&&a!==`${o}/`?a.slice(0,-1):a}function rS(a,o,l){return Hr(a,l)===Hr(o,l)}function sS({base:a,to:o,trailingSlash:l="never",cache:r}){const c=o.startsWith("/"),f=!c&&o===".";let d;if(r){d=c?o:f?a:a+"\0"+o;const y=r.get(d);if(y)return y}let g;if(f)g=a.split("/");else if(c)g=o.split("/");else{for(g=a.split("/");g.length>1&&Ur(g)==="";)g.pop();const y=o.split("/");for(let b=0,x=y.length;b<x;b++){const w=y[b];w===""?b?b===x-1&&g.push(w):g=[w]:w===".."?g.pop():w==="."||g.push(w)}}g.length>1&&(Ur(g)===""?l==="never"&&g.pop():l==="always"&&g.push(""));let h,m="";for(let y=0;y<g.length;y++){y>0&&(m+="/");const b=g[y];if(!b)continue;h=rf(b,0,h);const x=h[0];if(x===ki){m+=b;continue}const w=h[5],A=b.substring(0,h[1]),R=b.substring(h[4],w),M=b.substring(h[2],h[3]);x===Ha?m+=A||R?`${A}{$${M}}${R}`:`$${M}`:x===qa?m+=A||R?`${A}{$}${R}`:"$":m+=`${A}{-$${M}}${R}`}m=cf(m);const v=m||"/";return d&&r&&r.set(d,v),v}function Du(a,o,l){const r=o[a];return typeof r!="string"?r:a==="_splat"?encodeURI(r):cS(r,l)}function zu({path:a,params:o,decodeCharMap:l}){let r=!1;const c={};if(!a||a==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:r};if(!a.includes("$"))return{interpolatedPath:a,usedParams:c,isMissingParams:r};const f=a.length;let d=0,g,h="";for(;d<f;){const v=d;g=rf(a,v,g);const y=g[5];if(d=y+1,v===y)continue;const b=g[0];if(b===ki){h+="/"+a.substring(v,y);continue}if(b===qa){const x=o._splat;c._splat=x,c["*"]=x;const w=a.substring(v,g[1]),A=a.substring(g[4],y);if(!x){r=!0,(w||A)&&(h+="/"+w+A);continue}const R=Du("_splat",o,l);h+="/"+w+R+A;continue}if(b===Ha){const x=a.substring(g[2],g[3]);!r&&!(x in o)&&(r=!0),c[x]=o[x];const w=a.substring(v,g[1]),A=a.substring(g[4],y),R=Du(x,o,l)??"undefined";h+="/"+w+R+A;continue}if(b===Zl){const x=a.substring(g[2],g[3]),w=o[x];if(w==null)continue;c[x]=w;const A=a.substring(v,g[1]),R=a.substring(g[4],y),M=Du(x,o,l)??"";h+="/"+A+M+R;continue}}return a.endsWith("/")&&(h+="/"),{usedParams:c,interpolatedPath:h||"/",isMissingParams:r}}function cS(a,o){let l=encodeURIComponent(a);if(o)for(const[r,c]of o)l=l.replaceAll(r,c);return l}function Pt(a){return!!a?.isNotFound}function uS(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const qr="tsr-scroll-restoration-v1_3",fS=(a,o)=>{let l;return(...r)=>{l||(l=setTimeout(()=>{a(...r),l=null},o))}};function dS(){const a=uS();if(!a)return null;const o=a.getItem(qr);let l=o?JSON.parse(o):{};return{state:l,set:r=>(l=ra(r,l)||l,a.setItem(qr,JSON.stringify(l)))}}const _r=dS(),Wu=a=>a.state.__TSR_key||a.href;function hS(a){const o=[];let l;for(;l=a.parentNode;)o.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(l.children,a)+1})`),a=l;return`${o.reverse().join(" > ")}`.toLowerCase()}let Gr=!1;function jg({storageKey:a,key:o,behavior:l,shouldScrollRestoration:r,scrollToTopSelectors:c,location:f}){let d;try{d=JSON.parse(sessionStorage.getItem(a)||"{}")}catch(m){console.error(m);return}const g=o||window.history.state?.__TSR_key,h=d[g];Gr=!0;e:{if(r&&h&&Object.keys(h).length>0){for(const y in h){const b=h[y];if(y==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:l});else if(y){const x=document.querySelector(y);x&&(x.scrollLeft=b.scrollX,x.scrollTop=b.scrollY)}}break e}const m=(f??window.location).hash.split("#",2)[1];if(m){const y=window.history.state?.__hashScrollIntoViewOptions??!0;if(y){const b=document.getElementById(m);b&&b.scrollIntoView(y)}break e}const v={top:0,left:0,behavior:l};if(window.scrollTo(v),c)for(const y of c){if(y==="window")continue;const b=typeof y=="function"?y():document.querySelector(y);b&&b.scrollTo(v)}}Gr=!1}function mS(a,o){if(!_r&&!a.isServer||((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isServer||a.isScrollRestorationSetup||!_r))return;a.isScrollRestorationSetup=!0,Gr=!1;const r=a.options.getScrollRestorationKey||Wu;window.history.scrollRestoration="manual";const c=f=>{if(Gr||!a.isScrollRestoring)return;let d="";if(f.target===document||f.target===window)d="window";else{const h=f.target.getAttribute("data-scroll-restoration-id");h?d=`[data-scroll-restoration-id="${h}"]`:d=hS(f.target)}const g=r(a.state.location);_r.set(h=>{const m=h[g]||={},v=m[d]||={};if(d==="window")v.scrollX=window.scrollX||0,v.scrollY=window.scrollY||0;else if(d){const y=document.querySelector(d);y&&(v.scrollX=y.scrollLeft||0,v.scrollY=y.scrollTop||0)}return h})};typeof document<"u"&&document.addEventListener("scroll",fS(c,100),!0),a.subscribe("onRendered",f=>{const d=r(f.toLocation);if(!a.resetNextScroll){a.resetNextScroll=!0;return}typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation})||(jg({storageKey:qr,key:d,behavior:a.options.scrollRestorationBehavior,shouldScrollRestoration:a.isScrollRestoring,scrollToTopSelectors:a.options.scrollToTopSelectors,location:a.history.location}),a.isScrollRestoring&&_r.set(g=>(g[d]||={},g)))})}function pS(a){if(typeof document<"u"&&document.querySelector){const o=a.state.location.state.__hashScrollIntoViewOptions??!0;if(o&&a.state.location.hash!==""){const l=document.getElementById(a.state.location.hash);l&&l.scrollIntoView(o)}}}function gS(a,o=String){const l=new URLSearchParams;for(const r in a){const c=a[r];c!==void 0&&l.set(r,o(c))}return l.toString()}function Nu(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function yS(a){const o=new URLSearchParams(a),l={};for(const[r,c]of o.entries()){const f=l[r];f==null?l[r]=Nu(c):Array.isArray(f)?f.push(Nu(c)):l[r]=[f,Nu(c)]}return l}const vS=SS(JSON.parse),bS=xS(JSON.stringify,JSON.parse);function SS(a){return o=>{o[0]==="?"&&(o=o.substring(1));const l=yS(o);for(const r in l){const c=l[r];if(typeof c=="string")try{l[r]=a(c)}catch{}}return l}}function xS(a,o){const l=typeof o=="function";function r(c){if(typeof c=="object"&&c!==null)try{return a(c)}catch{}else if(l&&typeof c=="string")try{return o(c),a(c)}catch{}return c}return c=>{const f=gS(c,r);return f?`?${f}`:""}}const Mt="__root__";function wS(a){if(a.statusCode=a.statusCode||a.code||307,!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const o=new Headers(a.headers);a.href&&o.get("Location")===null&&o.set("Location",a.href);const l=new Response(null,{status:a.statusCode,headers:o});if(l.options=a,a.throw)throw l;return l}function Zt(a){return a instanceof Response&&!!a.options}const zr=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},Jr=(a,o)=>!!(a.preload&&!a.router.state.matches.some(l=>l.id===o)),Bg=(a,o)=>{const l=a.router.routesById[o.routeId??""]??a.router.routeTree;!l.options.notFoundComponent&&a.router.options?.defaultNotFoundComponent&&(l.options.notFoundComponent=a.router.options.defaultNotFoundComponent),An(l.options.notFoundComponent);const r=a.matches.find(c=>c.routeId===l.id);An(r,"Could not find match for route: "+l.id),a.updateMatch(r.id,c=>({...c,status:"notFound",error:o,isFetching:!1})),o.routerCode==="BEFORE_LOAD"&&l.parentRoute&&(o.routeId=l.parentRoute.id,Bg(a,o))},sa=(a,o,l)=>{if(!(!Zt(l)&&!Pt(l))){if(Zt(l)&&l.redirectHandled&&!l.options.reloadDocument)throw l;if(o){o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.loaderPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,o._nonReactive.loaderPromise=void 0;const r=Zt(l)?"redirected":"notFound";o._nonReactive.error=l,a.updateMatch(o.id,c=>({...c,status:r,isFetching:!1,error:l})),Pt(l)&&!l.routeId&&(l.routeId=o.routeId),o._nonReactive.loadPromise?.resolve()}throw Zt(l)?(a.rendered=!0,l.options._fromLocation=a.location,l.redirectHandled=!0,l=a.router.resolveRedirect(l),l):(Bg(a,l),l)}},Hg=(a,o)=>{const l=a.router.getMatch(o);return!!(!a.router.isServer&&l._nonReactive.dehydrated||a.router.isServer&&l.ssr===!1)},Hl=(a,o,l,r)=>{const{id:c,routeId:f}=a.matches[o],d=a.router.looseRoutesById[f];if(l instanceof Promise)throw l;l.routerCode=r,a.firstBadMatchIndex??=o,sa(a,a.router.getMatch(c),l);try{d.options.onError?.(l)}catch(g){l=g,sa(a,a.router.getMatch(c),l)}a.updateMatch(c,g=>(g._nonReactive.beforeLoadPromise?.resolve(),g._nonReactive.beforeLoadPromise=void 0,g._nonReactive.loadPromise?.resolve(),{...g,error:l,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},_S=(a,o,l,r)=>{const c=a.router.getMatch(o),f=a.matches[l-1]?.id,d=f?a.router.getMatch(f):void 0;if(a.router.isShell()){c.ssr=r.id===Mt;return}if(d?.ssr===!1){c.ssr=!1;return}const g=x=>x===!0&&d?.ssr==="data-only"?"data-only":x,h=a.router.options.defaultSsr??!0;if(r.options.ssr===void 0){c.ssr=g(h);return}if(typeof r.options.ssr!="function"){c.ssr=g(r.options.ssr);return}const{search:m,params:v}=c,y={search:Er(m,c.searchError),params:Er(v,c.paramsError),location:a.location,matches:a.matches.map(x=>({index:x.index,pathname:x.pathname,fullPath:x.fullPath,staticData:x.staticData,id:x.id,routeId:x.routeId,search:Er(x.search,x.searchError),params:Er(x.params,x.paramsError),ssr:x.ssr}))},b=r.options.ssr(y);if(ua(b))return b.then(x=>{c.ssr=g(x??h)});c.ssr=g(b??h)},qg=(a,o,l,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const c=l.options.pendingMs??a.router.options.defaultPendingMs;if(!!(a.onReady&&!a.router.isServer&&!Jr(a,o)&&(l.options.loader||l.options.beforeLoad||Pg(l))&&typeof c=="number"&&c!==1/0&&(l.options.pendingComponent??a.router.options?.defaultPendingComponent))){const d=setTimeout(()=>{zr(a)},c);r._nonReactive.pendingTimeout=d}},ES=(a,o,l)=>{const r=a.router.getMatch(o);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;qg(a,o,l,r);const c=()=>{const f=a.router.getMatch(o);f.preload&&(f.status==="redirected"||f.status==="notFound")&&sa(a,f,f.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(c):c()},TS=(a,o,l,r)=>{const c=a.router.getMatch(o),f=c._nonReactive.loadPromise;c._nonReactive.loadPromise=Li(()=>{f?.resolve()});const{paramsError:d,searchError:g}=c;d&&Hl(a,l,d,"PARSE_PARAMS"),g&&Hl(a,l,g,"VALIDATE_SEARCH"),qg(a,o,r,c);const h=new AbortController,m=a.matches[l-1]?.id,b={...(m?a.router.getMatch(m):void 0)?.context??a.router.options.context??void 0,...c.__routeContext};let x=!1;const w=()=>{x||(x=!0,a.updateMatch(o,N=>({...N,isFetching:"beforeLoad",fetchCount:N.fetchCount+1,abortController:h,context:b})))},A=()=>{c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,a.updateMatch(o,N=>({...N,isFetching:!1}))};if(!r.options.beforeLoad){Xl(()=>{w(),A()});return}c._nonReactive.beforeLoadPromise=Li();const{search:R,params:M,cause:H}=c,B=Jr(a,o),Y={search:R,abortController:h,params:M,preload:B,context:b,location:a.location,navigate:N=>a.router.navigate({...N,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:B?"preload":H,matches:a.matches,...a.router.options.additionalContext},Z=N=>{if(N===void 0){Xl(()=>{w(),A()});return}(Zt(N)||Pt(N))&&(w(),Hl(a,l,N,"BEFORE_LOAD")),Xl(()=>{w(),a.updateMatch(o,j=>({...j,__beforeLoadContext:N,context:{...j.context,...N}})),A()})};let G;try{if(G=r.options.beforeLoad(Y),ua(G))return w(),G.catch(N=>{Hl(a,l,N,"BEFORE_LOAD")}).then(Z)}catch(N){w(),Hl(a,l,N,"BEFORE_LOAD")}Z(G)},CS=(a,o)=>{const{id:l,routeId:r}=a.matches[o],c=a.router.looseRoutesById[r],f=()=>{if(a.router.isServer){const h=_S(a,l,o,c);if(ua(h))return h.then(g)}return g()},d=()=>TS(a,l,o,c),g=()=>{if(Hg(a,l))return;const h=ES(a,l,c);return ua(h)?h.then(d):d()};return f()},Ql=(a,o,l)=>{const r=a.router.getMatch(o);if(!r||!l.options.head&&!l.options.scripts&&!l.options.headers)return;const c={matches:a.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([l.options.head?.(c),l.options.scripts?.(c),l.options.headers?.(c)]).then(([f,d,g])=>{const h=f?.meta,m=f?.links,v=f?.scripts,y=f?.styles;return{meta:h,links:m,headScripts:v,headers:g,scripts:d,styles:y}})},Gg=(a,o,l,r)=>{const c=a.matchPromises[l-1],{params:f,loaderDeps:d,abortController:g,cause:h}=a.router.getMatch(o);let m=a.router.options.context??{};for(let y=0;y<=l;y++){const b=a.matches[y];if(!b)continue;const x=a.router.getMatch(b.id);x&&(m={...m,...x.__routeContext??{},...x.__beforeLoadContext??{}})}const v=Jr(a,o);return{params:f,deps:d,preload:!!v,parentMatchPromise:c,abortController:g,context:m,location:a.location,navigate:y=>a.router.navigate({...y,_fromLocation:a.location}),cause:v?"preload":h,route:r,...a.router.options.additionalContext}},Zp=async(a,o,l,r)=>{try{const c=a.router.getMatch(o);try{(!a.router.isServer||c.ssr===!0)&&Vg(r);const f=r.options.loader?.(Gg(a,o,l,r)),d=r.options.loader&&ua(f);if(!!(d||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||c._nonReactive.minPendingPromise)&&a.updateMatch(o,y=>({...y,isFetching:"loader"})),r.options.loader){const y=d?await f:f;sa(a,a.router.getMatch(o),y),y!==void 0&&a.updateMatch(o,b=>({...b,loaderData:y}))}r._lazyPromise&&await r._lazyPromise;const h=Ql(a,o,r),m=h?await h:void 0,v=c._nonReactive.minPendingPromise;v&&await v,r._componentsPromise&&await r._componentsPromise,a.updateMatch(o,y=>({...y,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...m}))}catch(f){let d=f;const g=c._nonReactive.minPendingPromise;g&&await g,Pt(f)&&await r.options.notFoundComponent?.preload?.(),sa(a,a.router.getMatch(o),f);try{r.options.onError?.(f)}catch(v){d=v,sa(a,a.router.getMatch(o),v)}const h=Ql(a,o,r),m=h?await h:void 0;a.updateMatch(o,v=>({...v,error:d,status:"error",isFetching:!1,...m}))}}catch(c){const f=a.router.getMatch(o);if(f){const d=Ql(a,o,r);if(d){const g=await d;a.updateMatch(o,h=>({...h,...g}))}f._nonReactive.loaderPromise=void 0}sa(a,f,c)}},RS=async(a,o)=>{const{id:l,routeId:r}=a.matches[o];let c=!1,f=!1;const d=a.router.looseRoutesById[r];if(Hg(a,l)){if(a.router.isServer){const m=Ql(a,l,d);if(m){const v=await m;a.updateMatch(l,y=>({...y,...v}))}return a.router.getMatch(l)}}else{const m=a.router.getMatch(l);if(m._nonReactive.loaderPromise){if(m.status==="success"&&!a.sync&&!m.preload)return m;await m._nonReactive.loaderPromise;const v=a.router.getMatch(l),y=v._nonReactive.error||v.error;y&&sa(a,v,y)}else{const v=Date.now()-m.updatedAt,y=Jr(a,l),b=y?d.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??a.router.options.defaultStaleTime??0,x=d.options.shouldReload,w=typeof x=="function"?x(Gg(a,l,o,d)):x,A=!!y&&!a.router.state.matches.some(B=>B.id===l),R=a.router.getMatch(l);R._nonReactive.loaderPromise=Li(),A!==R.preload&&a.updateMatch(l,B=>({...B,preload:A}));const{status:M,invalid:H}=R;if(c=M==="success"&&(H||(w??v>b)),!(y&&d.options.preload===!1))if(c&&!a.sync)f=!0,(async()=>{try{await Zp(a,l,o,d);const B=a.router.getMatch(l);B._nonReactive.loaderPromise?.resolve(),B._nonReactive.loadPromise?.resolve(),B._nonReactive.loaderPromise=void 0}catch(B){Zt(B)&&await a.router.navigate(B.options)}})();else if(M!=="success"||c&&a.sync)await Zp(a,l,o,d);else{const B=Ql(a,l,d);if(B){const Y=await B;a.updateMatch(l,Z=>({...Z,...Y}))}}}}const g=a.router.getMatch(l);f||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve()),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,f||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const h=f?g.isFetching:!1;return h!==g.isFetching||g.invalid!==!1?(a.updateMatch(l,m=>({...m,isFetching:h,invalid:!1})),a.router.getMatch(l)):g};async function Kp(a){const o=Object.assign(a,{matchPromises:[]});!o.router.isServer&&o.router.state.matches.some(l=>l._forcePending)&&zr(o);try{for(let c=0;c<o.matches.length;c++){const f=CS(o,c);ua(f)&&await f}const l=o.firstBadMatchIndex??o.matches.length;for(let c=0;c<l;c++)o.matchPromises.push(RS(o,c));await Promise.all(o.matchPromises);const r=zr(o);ua(r)&&await r}catch(l){if(Pt(l)&&!o.preload){const r=zr(o);throw ua(r)&&await r,l}if(Zt(l))throw l}return o.matches}async function Vg(a){if(!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(o=>{const{id:l,...r}=o.options;Object.assign(a.options,r),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0),!a._componentsLoaded&&a._componentsPromise===void 0){const o=()=>{const l=[];for(const r of Yg){const c=a.options[r]?.preload;c&&l.push(c())}if(l.length)return Promise.all(l).then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0});a._componentsLoaded=!0,a._componentsPromise=void 0};a._componentsPromise=a._lazyPromise?a._lazyPromise.then(o):o()}return a._componentsPromise}function Er(a,o){return o?{status:"error",error:o}:{status:"success",value:a}}function Pg(a){for(const o of Yg)if(a.options[o]?.preload)return!0;return!1}const Yg=["component","errorComponent","pendingComponent","notFoundComponent"];function AS(a){return{input:({url:o})=>{for(const l of a)o=Xg(l,o);return o},output:({url:o})=>{for(let l=a.length-1;l>=0;l--)o=Qg(a[l],o);return o}}}function MS(a){const o=Dr(a.basepath),l=`/${o}`,r=`${l}/`,c=a.caseSensitive?l:l.toLowerCase(),f=a.caseSensitive?r:r.toLowerCase();return{input:({url:d})=>{const g=a.caseSensitive?d.pathname:d.pathname.toLowerCase();return g===c?d.pathname="/":g.startsWith(f)&&(d.pathname=d.pathname.slice(l.length)),d},output:({url:d})=>(d.pathname=Or(["/",o,d.pathname]),d)}}function Xg(a,o){const l=a?.input?.({url:o});if(l){if(typeof l=="string")return new URL(l);if(l instanceof URL)return l}return o}function Qg(a,o){const l=a?.output?.({url:o});if(l){if(typeof l=="string")return new URL(l);if(l instanceof URL)return l}return o}function Ba(a){const o=a.resolvedLocation,l=a.location,r=o?.pathname!==l.pathname,c=o?.href!==l.href,f=o?.hash!==l.hash;return{fromLocation:o,toLocation:l,pathChanged:r,hrefChanged:c,hashChanged:f}}class OS{constructor(o){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=l=>l(),this.update=l=>{l.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,c=this.basepath??r?.basepath??"/",f=this.basepath===void 0,d=r?.rewrite;this.options={...r,...l},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(b=>[encodeURIComponent(b),b])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Pb())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Gb(zS(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(b=>!["redirected"].includes(b.status))}}}),mS(this));let g=!1;const h=this.options.basepath??"/",m=this.options.rewrite;if(f||c!==h||d!==m){this.basepath=h;const b=[];Dr(h)!==""&&b.push(MS({basepath:h})),m&&b.push(m),this.rewrite=b.length===0?void 0:b.length===1?b[0]:AS(b),this.history&&this.updateLatestLocation(),g=!0}g&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:l,routesByPath:r,processedTree:c}=nS(this.routeTree,this.options.caseSensitive,(d,g)=>{d.init({originalIndex:g})});this.options.routeMasks&&Jb(this.options.routeMasks,c),this.routesById=l,this.routesByPath=r,this.processedTree=c;const f=this.options.notFoundRoute;f&&(f.init({originalIndex:99999999999}),this.routesById[f.id]=f)},this.subscribe=(l,r)=>{const c={eventType:l,fn:r};return this.subscribers.add(c),()=>{this.subscribers.delete(c)}},this.emit=l=>{this.subscribers.forEach(r=>{r.eventType===l.type&&r.fn(l)})},this.parseLocation=(l,r)=>{const c=({href:h,state:m})=>{const v=new URL(h,this.origin),y=Xg(this.rewrite,v),b=this.options.parseSearch(y.search),x=this.options.stringifySearch(b);y.search=x;const w=y.href.replace(y.origin,""),{pathname:A,hash:R}=y;return{href:w,publicHref:h,url:y.href,pathname:Qp(A),searchStr:x,search:Vt(r?.search,b),hash:R.split("#").reverse()[0]??"",state:Vt(r?.state,m)}},f=c(l),{__tempLocation:d,__tempKey:g}=f.state;if(d&&(!g||g===this.tempLocationKey)){const h=c(d);return h.state.key=f.state.key,h.state.__TSR_key=f.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:f}}return f},this.resolvePathCache=Br(1e3),this.resolvePathWithBase=(l,r)=>sS({base:l,to:cf(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(l,r,c)=>typeof l=="string"?this.matchRoutesInternal({pathname:l,search:r},c):this.matchRoutesInternal(l,r),this.getMatchedRoutes=l=>NS({pathname:l,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=l=>{const r=this.getMatch(l);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const l=this.state.matches.filter(f=>f.status==="pending"),r=this.state.matches.filter(f=>f.isFetching==="loader");new Set([...this.state.pendingMatches??[],...l,...r]).forEach(f=>{this.cancelMatch(f.id)})},this.buildLocation=l=>{const r=(f={})=>{const d=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,g=this.matchRoutes(d,{_buildLocation:!0}),h=Ur(g);f.from;const m=f.unsafeRelative==="path"?d.pathname:f.from??h.fullPath,v=this.resolvePathWithBase(m,"."),y=h.search,b={...h.params},x=f.to?this.resolvePathWithBase(v,`${f.to}`):this.resolvePathWithBase(v,"."),w=f.params===!1||f.params===null?{}:(f.params??!0)===!0?b:Object.assign(b,ra(f.params,b)),A=zu({path:x,params:w}).interpolatedPath,R=this.matchRoutes(A,void 0,{_buildLocation:!0}).map(I=>this.looseRoutesById[I.routeId]);if(Object.keys(w).length>0)for(const I of R){const ee=I.options.params?.stringify??I.options.stringifyParams;ee&&Object.assign(w,ee(w))}const M=l.leaveParams?x:Qp(zu({path:x,params:w,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let H=y;if(l._includeValidateSearch&&this.options.search?.strict){const I={};R.forEach(ee=>{if(ee.options.validateSearch)try{Object.assign(I,Fu(ee.options.validateSearch,{...I,...H}))}catch{}}),H=I}H=LS({search:H,dest:f,destRoutes:R,_includeValidateSearch:l._includeValidateSearch}),H=Vt(y,H);const B=this.options.stringifySearch(H),Y=f.hash===!0?d.hash:f.hash?ra(f.hash,d.hash):void 0,Z=Y?`#${Y}`:"";let G=f.state===!0?d.state:f.state?ra(f.state,d.state):{};G=Vt(d.state,G);const N=`${M}${B}${Z}`,j=new URL(N,this.origin),J=Qg(this.rewrite,j);return{publicHref:J.pathname+J.search+J.hash,href:N,url:J.href,pathname:M,search:H,searchStr:B,state:G,hash:Y??"",unmaskOnReload:f.unmaskOnReload}},c=(f={},d)=>{const g=r(f);let h=d?r(d):void 0;if(!h){const m={};if(this.options.routeMasks){const v=$b(g.pathname,this.processedTree);if(v){Object.assign(m,v.params);const{from:y,params:b,...x}=v.route,w=b===!1||b===null?{}:(b??!0)===!0?m:Object.assign(m,ra(b,m));d={from:l.from,...x,params:w},h=r(d)}}}return h&&(g.maskedLocation=h),g};return l.mask?c(l,{from:l.from,...l.mask}):c(l)},this.commitLocation=({viewTransition:l,ignoreBlocker:r,...c})=>{const f=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(v=>{c.state[v]=this.latestLocation.state[v]});const m=Ua(c.state,this.latestLocation.state);return h.forEach(v=>{delete c.state[v]}),m},d=ja(this.latestLocation.href)===ja(c.href),g=this.commitLocationPromise;if(this.commitLocationPromise=Li(()=>{g?.resolve()}),d&&f())this.load();else{let{maskedLocation:h,hashScrollIntoView:m,...v}=c;h&&(v={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=l,this.history[c.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:r})}return this.resetNextScroll=c.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:l,resetScroll:r,hashScrollIntoView:c,viewTransition:f,ignoreBlocker:d,href:g,...h}={})=>{if(g){const y=this.history.location.state.__TSR_index,b=kr(g,{__TSR_index:l?y:y+1});h.to=b.pathname,h.search=this.options.parseSearch(b.search),h.hash=b.hash.slice(1)}const m=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const v=this.commitLocation({...m,viewTransition:f,replace:l,resetScroll:r,hashScrollIntoView:c,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:l,reloadDocument:r,href:c,...f})=>{if(!r&&c)try{new URL(`${c}`),r=!0}catch{}if(r){if(c||(c=this.buildLocation({to:l,...f}).url),!f.ignoreBlocker){const g=this.history.getBlockers?.()??[];for(const h of g)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return f.replace?window.location.replace(c):window.location.href=c,Promise.resolve()}return this.buildAndCommitLocation({...f,href:c,to:l,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const r=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),c=f=>{try{return encodeURI(decodeURI(f))}catch{return f}};if(Dr(c(this.latestLocation.href))!==Dr(c(r.href))){let f=r.url;throw this.origin&&f.startsWith(this.origin)&&(f=f.replace(this.origin,"")||"/"),wS({href:f})}}const l=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:l,cachedMatches:r.cachedMatches.filter(c=>!l.some(f=>f.id===c.id))}))},this.load=async l=>{let r,c,f;for(f=new Promise(g=>{this.startTransition(async()=>{try{this.beforeLoad();const h=this.latestLocation,m=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ba({resolvedLocation:m,location:h})}),this.emit({type:"onBeforeLoad",...Ba({resolvedLocation:m,location:h})}),await Kp({router:this,sync:l?.sync,matches:this.state.pendingMatches,location:h,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=[],y=[],b=[];Xl(()=>{this.__store.setState(x=>{const w=x.matches,A=x.pendingMatches||x.matches;return v=w.filter(R=>!A.some(M=>M.id===R.id)),y=A.filter(R=>!w.some(M=>M.id===R.id)),b=A.filter(R=>w.some(M=>M.id===R.id)),{...x,isLoading:!1,loadedAt:Date.now(),matches:A,pendingMatches:void 0,cachedMatches:[...x.cachedMatches,...v.filter(R=>R.status!=="error"&&R.status!=="notFound")]}}),this.clearExpiredCache()}),[[v,"onLeave"],[y,"onEnter"],[b,"onStay"]].forEach(([x,w])=>{x.forEach(A=>{this.looseRoutesById[A.routeId].options[w]?.(A)})})})})}})}catch(h){Zt(h)?(r=h,this.isServer||this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Pt(h)&&(c=h),this.__store.setState(m=>({...m,statusCode:r?r.status:c?404:m.matches.some(v=>v.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===f&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),g()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let d;this.hasNotFoundMatch()?d=404:this.__store.state.matches.some(g=>g.status==="error")&&(d=500),d!==void 0&&this.__store.setState(g=>({...g,statusCode:d}))},this.startViewTransition=l=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let c;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,d=this.state.resolvedLocation,g=typeof r.types=="function"?r.types(Ba({resolvedLocation:d,location:f})):r.types;if(g===!1){l();return}c={update:l,types:g}}else c=l;document.startViewTransition(c)}else l()},this.updateMatch=(l,r)=>{this.startTransition(()=>{const c=this.state.pendingMatches?.some(f=>f.id===l)?"pendingMatches":this.state.matches.some(f=>f.id===l)?"matches":this.state.cachedMatches.some(f=>f.id===l)?"cachedMatches":"";c&&this.__store.setState(f=>({...f,[c]:f[c]?.map(d=>d.id===l?r(d):d)}))})},this.getMatch=l=>{const r=c=>c.id===l;return this.state.cachedMatches.find(r)??this.state.pendingMatches?.find(r)??this.state.matches.find(r)},this.invalidate=l=>{const r=c=>l?.filter?.(c)??!0?{...c,invalid:!0,...l?.forcePending||c.status==="error"||c.status==="notFound"?{status:"pending",error:void 0}:void 0}:c;return this.__store.setState(c=>({...c,matches:c.matches.map(r),cachedMatches:c.cachedMatches.map(r),pendingMatches:c.pendingMatches?.map(r)})),this.shouldViewTransition=!1,this.load({sync:l?.sync})},this.resolveRedirect=l=>{if(!l.options.href){const r=this.buildLocation(l.options);let c=r.url;this.origin&&c.startsWith(this.origin)&&(c=c.replace(this.origin,"")||"/"),l.options.href=r.href,l.headers.set("Location",c)}return l.headers.get("Location")||l.headers.set("Location",l.options.href),l},this.clearCache=l=>{const r=l?.filter;r!==void 0?this.__store.setState(c=>({...c,cachedMatches:c.cachedMatches.filter(f=>!r(f))})):this.__store.setState(c=>({...c,cachedMatches:[]}))},this.clearExpiredCache=()=>{const l=r=>{const c=this.looseRoutesById[r.routeId];if(!c.options.loader)return!0;const f=(r.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=f};this.clearCache({filter:l})},this.loadRouteChunk=Vg,this.preloadRoute=async l=>{const r=this.buildLocation(l);let c=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:l});const f=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(g=>g.id)),d=new Set([...f,...this.state.cachedMatches.map(g=>g.id)]);Xl(()=>{c.forEach(g=>{d.has(g.id)||this.__store.setState(h=>({...h,cachedMatches:[...h.cachedMatches,g]}))})});try{return c=await Kp({router:this,matches:c,location:r,preload:!0,updateMatch:(g,h)=>{f.has(g)?c=c.map(m=>m.id===g?h(m):m):this.updateMatch(g,h)}}),c}catch(g){if(Zt(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:r});Pt(g)||console.error(g);return}},this.matchRoute=(l,r)=>{const c={...l,to:l.to?this.resolvePathWithBase(l.from||"",l.to):void 0,params:l.params||{},leaveParams:!0},f=this.buildLocation(c);if(r?.pending&&this.state.status!=="pending")return!1;const g=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,h=Ib(f.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,g.pathname,this.processedTree);return!h||l.params&&!Ua(h.params,l.params,{partial:!0})?!1:r?.includeSearch??!0?Ua(g.search,f.search,{partial:!0})?h.params:!1:h.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(l=>l.status==="notFound"||l.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...o,caseSensitive:o.caseSensitive??!1,notFoundMode:o.notFoundMode??"fuzzy",stringifySearch:o.stringifySearch??bS,parseSearch:o.parseSearch??vS}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(o,l){const r=this.getMatchedRoutes(o.pathname),{foundRoute:c,routeParams:f}=r;let{matchedRoutes:d}=r,g=!1;(c?c.path!=="/"&&f["**"]:ja(o.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:g=!0);const h=(()=>{if(g){if(this.options.notFoundMode!=="root")for(let y=d.length-1;y>=0;y--){const b=d[y];if(b.children)return b.id}return Mt}})(),m=[],v=y=>y?.id?y.context??this.options.context??void 0:this.options.context??void 0;return d.forEach((y,b)=>{const x=m[b-1],[w,A,R]=(()=>{const me=x?.search??o.search,de=x?._strictSearch??void 0;try{const pe=Fu(y.options.validateSearch,{...me})??void 0;return[{...me,...pe},{...de,...pe},void 0]}catch(pe){let D=pe;if(pe instanceof Vr||(D=new Vr(pe.message,{cause:pe})),l?.throwOnError)throw D;return[me,{},D]}})(),M=y.options.loaderDeps?.({search:w})??"",H=M?JSON.stringify(M):"",{interpolatedPath:B,usedParams:Y}=zu({path:y.fullPath,params:f,decodeCharMap:this.pathParamsDecodeCharMap}),Z=y.id+B+H,G=this.getMatch(Z),N=this.state.matches.find(me=>me.routeId===y.id),j=G?._strictParams??Y;let J;if(!G){const me=y.options.params?.parse??y.options.parseParams;if(me)try{Object.assign(j,me(j))}catch(de){if(Pt(de)||Zt(de)?J=de:J=new DS(de.message,{cause:de}),l?.throwOnError)throw J}}Object.assign(f,j);const I=N?"stay":"enter";let ee;if(G)ee={...G,cause:I,params:N?Vt(N.params,f):f,_strictParams:j,search:Vt(N?N.search:G.search,w),_strictSearch:A};else{const me=y.options.loader||y.options.beforeLoad||y.lazyFn||Pg(y)?"pending":"success";ee={id:Z,ssr:this.isServer?void 0:y.options.ssr,index:b,routeId:y.id,params:N?Vt(N.params,f):f,_strictParams:j,pathname:B,updatedAt:Date.now(),search:N?Vt(N.search,w):w,_strictSearch:A,searchError:void 0,status:me,isFetching:!1,error:void 0,paramsError:J,__routeContext:void 0,_nonReactive:{loadPromise:Li()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:I,loaderDeps:N?Vt(N.loaderDeps,M):M,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:y.options.staticData||{},fullPath:y.fullPath}}l?.preload||(ee.globalNotFound=h===y.id),ee.searchError=R;const ce=v(x);ee.context={...ce,...ee.__routeContext,...ee.__beforeLoadContext},m.push(ee)}),m.forEach((y,b)=>{const x=this.looseRoutesById[y.routeId];if(!this.getMatch(y.id)&&l?._buildLocation!==!0){const A=m[b-1],R=v(A);if(x.options.context){const M={deps:y.loaderDeps,params:y.params,context:R??{},location:o,navigate:H=>this.navigate({...H,_fromLocation:o}),buildLocation:this.buildLocation,cause:y.cause,abortController:y.abortController,preload:!!y.preload,matches:m};y.__routeContext=x.options.context(M)??void 0}y.context={...R,...y.__routeContext,...y.__beforeLoadContext}}}),m}}class Vr extends Error{}class DS extends Error{}function zS(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Fu(a,o){if(a==null)return{};if("~standard"in a){const l=a["~standard"].validate(o);if(l instanceof Promise)throw new Vr("Async validation not supported");if(l.issues)throw new Vr(JSON.stringify(l.issues,void 0,2),{cause:l});return l.value}return"parse"in a?a.parse(o):typeof a=="function"?a(o):{}}function NS({pathname:a,routesById:o,processedTree:l}){const r={},c=ja(a);let f;const d=eS(c,l,!0);return d&&(f=d.route,Object.assign(r,d.params)),{matchedRoutes:d?.branch||[o[Mt]],routeParams:r,foundRoute:f}}function LS({search:a,dest:o,destRoutes:l,_includeValidateSearch:r}){const c=l.reduce((g,h)=>{const m=[];if("search"in h.options)h.options.search?.middlewares&&m.push(...h.options.search.middlewares);else if(h.options.preSearchFilters||h.options.postSearchFilters){const v=({search:y,next:b})=>{let x=y;"preSearchFilters"in h.options&&h.options.preSearchFilters&&(x=h.options.preSearchFilters.reduce((A,R)=>R(A),y));const w=b(x);return"postSearchFilters"in h.options&&h.options.postSearchFilters?h.options.postSearchFilters.reduce((A,R)=>R(A),w):w};m.push(v)}if(r&&h.options.validateSearch){const v=({search:y,next:b})=>{const x=b(y);try{return{...x,...Fu(h.options.validateSearch,x)??void 0}}catch{return x}};m.push(v)}return g.concat(m)},[])??[],f=({search:g})=>o.search?o.search===!0?g:ra(o.search,g):{};c.push(f);const d=(g,h)=>{if(g>=c.length)return h;const m=c[g];return m({search:h,next:y=>d(g+1,y)})};return d(0,a)}const kS="Error preloading route! ☝️";class Zg{constructor(o){if(this.init=l=>{this.originalIndex=l.originalIndex;const r=this.options,c=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),c?this._path=Mt:this.parentRoute||An(!1);let f=c?Mt:r?.path;f&&f!=="/"&&(f=Ug(f));const d=r?.id||f;let g=c?Mt:Or([this.parentRoute.id===Mt?"":this.parentRoute.id,d]);f===Mt&&(f="/"),g!==Mt&&(g=Or(["/",g]));const h=g===Mt?"/":Or([this.parentRoute.fullPath,f]);this._path=f,this._id=g,this._fullPath=h,this._to=h},this.addChildren=l=>this._addFileChildren(l),this._addFileChildren=l=>(Array.isArray(l)&&(this.children=l),typeof l=="object"&&l!==null&&(this.children=Object.values(l)),this),this._addFileTypes=()=>this,this.updateLoader=l=>(Object.assign(this.options,l),this),this.update=l=>(Object.assign(this.options,l),this),this.lazy=l=>(this.lazyFn=l,this),this.options=o||{},this.isRoot=!o?.getParentRoute,o?.id&&o?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class US extends Zg{constructor(o){super(o)}}var E=$l();const Ui=lf(E),uf=Cb({__proto__:null,default:Ui},[E]);function ff(a){const o=a.errorComponent??$r;return k.jsx(jS,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:l,reset:r})=>l?E.createElement(o,{error:l,reset:r}):a.children})}class jS extends E.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(o){return{resetKey:o.getResetKey()}}static getDerivedStateFromError(o){return{error:o}}reset(){this.setState({error:null})}componentDidUpdate(o,l){l.error&&l.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(o,l){this.props.onCatch&&this.props.onCatch(o,l)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function $r({error:a}){const[o,l]=E.useState(!1);return k.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[k.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),k.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>l(r=>!r),children:o?"Hide Error":"Show Error"})]}),k.jsx("div",{style:{height:".25rem"}}),o?k.jsx("div",{children:k.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?k.jsx("code",{children:a.message}):null})}):null]})}function BS({children:a,fallback:o=null}){return HS()?k.jsx(Ui.Fragment,{children:a}):k.jsx(Ui.Fragment,{children:o})}function HS(){return Ui.useSyncExternalStore(qS,()=>!0,()=>!1)}function qS(){return()=>{}}var Lu={exports:{}},ku={},Uu={exports:{}},ju={};var Wp;function GS(){if(Wp)return ju;Wp=1;var a=$l();function o(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var l=typeof Object.is=="function"?Object.is:o,r=a.useState,c=a.useEffect,f=a.useLayoutEffect,d=a.useDebugValue;function g(y,b){var x=b(),w=r({inst:{value:x,getSnapshot:b}}),A=w[0].inst,R=w[1];return f(function(){A.value=x,A.getSnapshot=b,h(A)&&R({inst:A})},[y,x,b]),c(function(){return h(A)&&R({inst:A}),y(function(){h(A)&&R({inst:A})})},[y]),d(x),x}function h(y){var b=y.getSnapshot;y=y.value;try{var x=b();return!l(y,x)}catch{return!0}}function m(y,b){return b()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:g;return ju.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:v,ju}var Fp;function VS(){return Fp||(Fp=1,Uu.exports=GS()),Uu.exports}var Jp;function PS(){if(Jp)return ku;Jp=1;var a=$l(),o=VS();function l(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var r=typeof Object.is=="function"?Object.is:l,c=o.useSyncExternalStore,f=a.useRef,d=a.useEffect,g=a.useMemo,h=a.useDebugValue;return ku.useSyncExternalStoreWithSelector=function(m,v,y,b,x){var w=f(null);if(w.current===null){var A={hasValue:!1,value:null};w.current=A}else A=w.current;w=g(function(){function M(G){if(!H){if(H=!0,B=G,G=b(G),x!==void 0&&A.hasValue){var N=A.value;if(x(N,G))return Y=N}return Y=G}if(N=Y,r(B,G))return N;var j=b(G);return x!==void 0&&x(N,j)?(B=G,N):(B=G,Y=j)}var H=!1,B,Y,Z=y===void 0?null:y;return[function(){return M(v())},Z===null?void 0:function(){return M(Z())}]},[v,y,b,x]);var R=c(m,w[0],w[1]);return d(function(){A.hasValue=!0,A.value=R},[R]),h(R),R},ku}var $p;function YS(){return $p||($p=1,Lu.exports=PS()),Lu.exports}var XS=YS();function QS(a,o=r=>r,l={}){const r=l.equal??ZS;return XS.useSyncExternalStoreWithSelector(a.subscribe,()=>a.state,()=>a.state,o,r)}function ZS(a,o){if(Object.is(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;if(a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(const[r,c]of a)if(!o.has(r)||!Object.is(c,o.get(r)))return!1;return!0}if(a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(const r of a)if(!o.has(r))return!1;return!0}if(a instanceof Date&&o instanceof Date)return a.getTime()===o.getTime();const l=Ip(a);if(l.length!==Ip(o).length)return!1;for(let r=0;r<l.length;r++)if(!Object.prototype.hasOwnProperty.call(o,l[r])||!Object.is(a[l[r]],o[l[r]]))return!1;return!0}function Ip(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}const Bu=E.createContext(null);function Kg(){return typeof document>"u"?Bu:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Bu,Bu)}function vt(a){const o=E.useContext(Kg());return a?.warn,o}function ct(a){const o=vt({warn:a?.router===void 0}),l=a?.router||o,r=E.useRef(void 0);return QS(l.__store,c=>{if(a?.select){if(a.structuralSharing??l.options.defaultStructuralSharing){const f=Vt(r.current,a.select(c));return r.current=f,f}return a.select(c)}return c})}const Ir=E.createContext(void 0),KS=E.createContext(void 0);function nn(a){const o=E.useContext(a.from?KS:Ir);return ct({select:r=>{const c=r.matches.find(f=>a.from?a.from===f.routeId:f.id===o);if(An(!((a.shouldThrow??!0)&&!c),`Could not find ${a.from?`an active match from "${a.from}"`:"a nearest match!"}`),c!==void 0)return a.select?a.select(c):c},structuralSharing:a.structuralSharing})}function df(a){return nn({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:o=>a.select?a.select(o.loaderData):o.loaderData})}function hf(a){const{select:o,...l}=a;return nn({...l,select:r=>o?o(r.loaderDeps):r.loaderDeps})}function mf(a){return nn({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:o=>{const l=a.strict===!1?o.params:o._strictParams;return a.select?a.select(l):l}})}function pf(a){return nn({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:o=>a.select?a.select(o.search):o.search})}const Tr=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Hu(a){const o=E.useRef({value:a,prev:null}),l=o.current.value;return a!==l&&(o.current={value:a,prev:l}),o.current.prev}function WS(a,o,l={},r={}){E.useEffect(()=>{if(!a.current||r.disabled||typeof IntersectionObserver!="function")return;const c=new IntersectionObserver(([f])=>{o(f)},l);return c.observe(a.current),()=>{c.disconnect()}},[o,l,r.disabled,a])}function FS(a){const o=E.useRef(null);return E.useImperativeHandle(a,()=>o.current,[]),o}function gf(a){const o=vt();return E.useCallback(l=>o.navigate({...l,from:l.from??a?.from}),[a?.from,o])}var es=Ng();const JS=lf(es);function $S(a,o){const l=vt(),[r,c]=E.useState(!1),f=E.useRef(!1),d=FS(o),{activeProps:g,inactiveProps:h,activeOptions:m,to:v,preload:y,preloadDelay:b,hashScrollIntoView:x,replace:w,startTransition:A,resetScroll:R,viewTransition:M,children:H,target:B,disabled:Y,style:Z,className:G,onClick:N,onFocus:j,onMouseEnter:J,onMouseLeave:I,onTouchStart:ee,ignoreBlocker:ce,params:me,search:de,hash:pe,state:D,mask:W,reloadDocument:V,unsafeRelative:fe,from:ye,_fromLocation:C,...X}=a,F=ct({select:Ne=>Ne.location.search,structuralSharing:!0}),$=a.from,oe=E.useMemo(()=>({...a,from:$}),[l,F,$,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),se=E.useMemo(()=>l.buildLocation({...oe}),[l,oe]),le=E.useMemo(()=>{if(Y)return;let Ne=se.maskedLocation?se.maskedLocation.url:se.url,Me=!1;return l.origin&&(Ne.startsWith(l.origin)?Ne=l.history.createHref(Ne.replace(l.origin,""))||"/":Me=!0),{href:Ne,external:Me}},[Y,se.maskedLocation,se.url,l.origin,l.history]),Be=E.useMemo(()=>{if(le?.external)return le.href;try{return new URL(v),v}catch{}},[v,le]),Te=a.reloadDocument||Be?!1:y??l.options.defaultPreload,ot=b??l.options.defaultPreloadDelay??0,ut=ct({select:Ne=>{if(Be)return!1;if(m?.exact){if(!rS(Ne.location.pathname,se.pathname,l.basepath))return!1}else{const Me=Hr(Ne.location.pathname,l.basepath),bt=Hr(se.pathname,l.basepath);if(!(Me.startsWith(bt)&&(Me.length===bt.length||Me[bt.length]==="/")))return!1}return(m?.includeSearch??!0)&&!Ua(Ne.location.search,se.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?Ne.location.hash===se.hash:!0}}),$e=E.useCallback(()=>{l.preloadRoute({...oe}).catch(Ne=>{console.warn(Ne),console.warn(kS)})},[l,oe]),on=E.useCallback(Ne=>{Ne?.isIntersecting&&$e()},[$e]);WS(d,on,a1,{disabled:!!Y||Te!=="viewport"}),E.useEffect(()=>{f.current||!Y&&Te==="render"&&($e(),f.current=!0)},[Y,$e,Te]);const rn=Ne=>{const Me=Ne.currentTarget.getAttribute("target"),bt=B!==void 0?B:Me;if(!Y&&!i1(Ne)&&!Ne.defaultPrevented&&(!bt||bt==="_self")&&Ne.button===0){Ne.preventDefault(),es.flushSync(()=>{c(!0)});const Yi=l.subscribe("onResolved",()=>{Yi(),c(!1)});l.navigate({...oe,replace:w,resetScroll:R,hashScrollIntoView:x,startTransition:A,viewTransition:M,ignoreBlocker:ce})}};if(Be)return{...X,ref:d,href:Be,...H&&{children:H},...B&&{target:B},...Y&&{disabled:Y},...Z&&{style:Z},...G&&{className:G},...N&&{onClick:N},...j&&{onFocus:j},...J&&{onMouseEnter:J},...I&&{onMouseLeave:I},...ee&&{onTouchStart:ee}};const Xa=Ne=>{Y||Te&&$e()},Pi=Xa,cs=Ne=>{if(!(Y||!Te))if(!ot)$e();else{const Me=Ne.target;if(ql.has(Me))return;const bt=setTimeout(()=>{ql.delete(Me),$e()},ot);ql.set(Me,bt)}},to=Ne=>{if(Y||!Te||!ot)return;const Me=Ne.target,bt=ql.get(Me);bt&&(clearTimeout(bt),ql.delete(Me))},Nn=ut?ra(g,{})??IS:qu,Ln=ut?qu:ra(h,{})??qu,Qa=[G,Nn.className,Ln.className].filter(Boolean).join(" "),no=(Z||Nn.style||Ln.style)&&{...Z,...Nn.style,...Ln.style};return{...X,...Nn,...Ln,href:le?.href,ref:d,onClick:Gl([N,rn]),onFocus:Gl([j,Xa]),onMouseEnter:Gl([J,cs]),onMouseLeave:Gl([I,to]),onTouchStart:Gl([ee,Pi]),disabled:!!Y,target:B,...no&&{style:no},...Qa&&{className:Qa},...Y&&e1,...ut&&t1,...r&&n1}}const qu={},IS={className:"active"},e1={role:"link","aria-disabled":!0},t1={"data-status":"active","aria-current":"page"},n1={"data-transitioning":"transitioning"},ql=new WeakMap,a1={rootMargin:"100px"},Gl=a=>o=>{for(const l of a)if(l){if(o.defaultPrevented)return;l(o)}},Pr=E.forwardRef((a,o)=>{const{_asChild:l,...r}=a,{type:c,ref:f,...d}=$S(r,o),g=typeof r.children=="function"?r.children({isActive:d["data-status"]==="active"}):r.children;return l===void 0&&delete d.disabled,E.createElement(l||"a",{...d,ref:f},g)});function i1(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}let l1=class extends Zg{constructor(o){super(o),this.useMatch=l=>nn({select:l?.select,from:this.id,structuralSharing:l?.structuralSharing}),this.useRouteContext=l=>nn({...l,from:this.id,select:r=>l?.select?l.select(r.context):r.context}),this.useSearch=l=>pf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useParams=l=>mf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useLoaderDeps=l=>hf({...l,from:this.id}),this.useLoaderData=l=>df({...l,from:this.id}),this.useNavigate=()=>gf({from:this.fullPath}),this.Link=Ui.forwardRef((l,r)=>k.jsx(Pr,{ref:r,from:this.fullPath,...l})),this.$$typeof=Symbol.for("react.memo")}};function o1(a){return new l1(a)}class r1 extends US{constructor(o){super(o),this.useMatch=l=>nn({select:l?.select,from:this.id,structuralSharing:l?.structuralSharing}),this.useRouteContext=l=>nn({...l,from:this.id,select:r=>l?.select?l.select(r.context):r.context}),this.useSearch=l=>pf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useParams=l=>mf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.id}),this.useLoaderDeps=l=>hf({...l,from:this.id}),this.useLoaderData=l=>df({...l,from:this.id}),this.useNavigate=()=>gf({from:this.fullPath}),this.Link=Ui.forwardRef((l,r)=>k.jsx(Pr,{ref:r,from:this.fullPath,...l})),this.$$typeof=Symbol.for("react.memo")}}function s1(a){return new r1(a)}function Mn(a){return typeof a=="object"?new eg(a,{silent:!0}).createRoute(a):new eg(a,{silent:!0}).createRoute}class eg{constructor(o,l){this.path=o,this.createRoute=r=>{this.silent;const c=o1(r);return c.isRoot=!1,c},this.silent=l?.silent}}class tg{constructor(o){this.useMatch=l=>nn({select:l?.select,from:this.options.id,structuralSharing:l?.structuralSharing}),this.useRouteContext=l=>nn({from:this.options.id,select:r=>l?.select?l.select(r.context):r.context}),this.useSearch=l=>pf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.options.id}),this.useParams=l=>mf({select:l?.select,structuralSharing:l?.structuralSharing,from:this.options.id}),this.useLoaderDeps=l=>hf({...l,from:this.options.id}),this.useLoaderData=l=>df({...l,from:this.options.id}),this.useNavigate=()=>{const l=vt();return gf({from:l.routesById[this.options.id].fullPath})},this.options=o,this.$$typeof=Symbol.for("react.memo")}}function ng(a){return typeof a=="object"?new tg(a):o=>new tg({id:a,...o})}function Va(a,o){let l,r,c,f;const d=()=>(l||(l=a().then(h=>{l=void 0,r=h[o]}).catch(h=>{if(c=h,Qb(c)&&c instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${c.message}`;sessionStorage.getItem(m)||(sessionStorage.setItem(m,"1"),f=!0)}})),l),g=function(m){if(f)throw window.location.reload(),new Promise(()=>{});if(c)throw c;if(!r)throw d();return E.createElement(r,m)};return g.preload=d,g}function c1(){const a=vt(),o=E.useRef({router:a,mounted:!1}),[l,r]=E.useState(!1),{hasPendingMatches:c,isLoading:f}=ct({select:y=>({isLoading:y.isLoading,hasPendingMatches:y.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),d=Hu(f),g=f||l||c,h=Hu(g),m=f||c,v=Hu(m);return a.startTransition=y=>{r(!0),E.startTransition(()=>{y(),r(!1)})},E.useEffect(()=>{const y=a.history.subscribe(a.load),b=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return ja(a.latestLocation.href)!==ja(b.href)&&a.commitLocation({...b,replace:!0}),()=>{y()}},[a,a.history]),Tr(()=>{if(typeof window<"u"&&a.ssr||o.current.router===a&&o.current.mounted)return;o.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(b){console.error(b)}})()},[a]),Tr(()=>{d&&!f&&a.emit({type:"onLoad",...Ba(a.state)})},[d,a,f]),Tr(()=>{v&&!m&&a.emit({type:"onBeforeRouteMount",...Ba(a.state)})},[m,v,a]),Tr(()=>{if(h&&!g){const y=Ba(a.state);a.emit({type:"onResolved",...y}),a.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),y.hrefChanged&&pS(a)}},[g,h,a]),null}function u1(a){const o=ct({select:l=>`not-found-${l.location.pathname}-${l.status}`});return k.jsx(ff,{getResetKey:()=>o,onCatch:(l,r)=>{if(Pt(l))a.onCatch?.(l,r);else throw l},errorComponent:({error:l})=>{if(Pt(l))return a.fallback?.(l);throw l},children:a.children})}function f1(){return k.jsx("p",{children:"Not Found"})}function zi(a){return k.jsx(k.Fragment,{children:a.children})}function Wg(a,o,l){return o.options.notFoundComponent?k.jsx(o.options.notFoundComponent,{...l}):a.options.defaultNotFoundComponent?k.jsx(a.options.defaultNotFoundComponent,{...l}):k.jsx(f1,{})}function d1({children:a}){const o=vt();return o.isServer?k.jsx("script",{nonce:o.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:a+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function h1(){const a=vt();if(!a.isScrollRestoring||!a.isServer||typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))return null;const l=(a.options.getScrollRestorationKey||Wu)(a.latestLocation),r=l!==Wu(a.latestLocation)?l:void 0,c={storageKey:qr,shouldScrollRestoration:!0};return r&&(c.key=r),k.jsx(d1,{children:`(${jg.toString()})(${JSON.stringify(c)})`})}const Fg=E.memo(function({matchId:o}){const l=vt(),r=ct({select:M=>{const H=M.matches.find(B=>B.id===o);return An(H),{routeId:H.routeId,ssr:H.ssr,_displayPending:H._displayPending}},structuralSharing:!0}),c=l.routesById[r.routeId],f=c.options.pendingComponent??l.options.defaultPendingComponent,d=f?k.jsx(f,{}):null,g=c.options.errorComponent??l.options.defaultErrorComponent,h=c.options.onCatch??l.options.defaultOnCatch,m=c.isRoot?c.options.notFoundComponent??l.options.notFoundRoute?.options.component:c.options.notFoundComponent,v=r.ssr===!1||r.ssr==="data-only",y=(!c.isRoot||c.options.wrapInSuspense||v)&&(c.options.wrapInSuspense??f??(c.options.errorComponent?.preload||v))?E.Suspense:zi,b=g?ff:zi,x=m?u1:zi,w=ct({select:M=>M.loadedAt}),A=ct({select:M=>{const H=M.matches.findIndex(B=>B.id===o);return M.matches[H-1]?.routeId}}),R=c.isRoot?c.options.shellComponent??zi:zi;return k.jsxs(R,{children:[k.jsx(Ir.Provider,{value:o,children:k.jsx(y,{fallback:d,children:k.jsx(b,{getResetKey:()=>w,errorComponent:g||$r,onCatch:(M,H)=>{if(Pt(M))throw M;h?.(M,H)},children:k.jsx(x,{fallback:M=>{if(!m||M.routeId&&M.routeId!==r.routeId||!M.routeId&&!c.isRoot)throw M;return E.createElement(m,M)},children:v||r._displayPending?k.jsx(BS,{fallback:d,children:k.jsx(ag,{matchId:o})}):k.jsx(ag,{matchId:o})})})})}),A===Mt&&l.options.scrollRestoration?k.jsxs(k.Fragment,{children:[k.jsx(m1,{}),k.jsx(h1,{})]}):null]})});function m1(){const a=vt(),o=E.useRef(void 0);return k.jsx("script",{suppressHydrationWarning:!0,ref:l=>{l&&(o.current===void 0||o.current.href!==a.latestLocation.href)&&(a.emit({type:"onRendered",...Ba(a.state)}),o.current=a.latestLocation)}},a.latestLocation.state.__TSR_key)}const ag=E.memo(function({matchId:o}){const l=vt(),{match:r,key:c,routeId:f}=ct({select:h=>{const m=h.matches.find(w=>w.id===o),v=m.routeId,b=(l.routesById[v].options.remountDeps??l.options.defaultRemountDeps)?.({routeId:v,loaderDeps:m.loaderDeps,params:m._strictParams,search:m._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:v,match:{id:m.id,status:m.status,error:m.error,_forcePending:m._forcePending,_displayPending:m._displayPending}}},structuralSharing:!0}),d=l.routesById[f],g=E.useMemo(()=>{const h=d.options.component??l.options.defaultComponent;return h?k.jsx(h,{},c):k.jsx(Jg,{})},[c,d.options.component,l.options.defaultComponent]);if(r._displayPending)throw l.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw l.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const h=d.options.pendingMinMs??l.options.defaultPendingMinMs;if(h){const m=l.getMatch(r.id);if(m&&!m._nonReactive.minPendingPromise&&!l.isServer){const v=Li();m._nonReactive.minPendingPromise=v,setTimeout(()=>{v.resolve(),m._nonReactive.minPendingPromise=void 0},h)}}throw l.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return An(Pt(r.error)),Wg(l,d,r.error);if(r.status==="redirected")throw An(Zt(r.error)),l.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error"){if(l.isServer){const h=(d.options.errorComponent??l.options.defaultErrorComponent)||$r;return k.jsx(h,{error:r.error,reset:void 0,info:{componentStack:""}})}throw r.error}return g}),Jg=E.memo(function(){const o=vt(),l=E.useContext(Ir),r=ct({select:m=>m.matches.find(v=>v.id===l)?.routeId}),c=o.routesById[r],f=ct({select:m=>{const y=m.matches.find(b=>b.id===l);return An(y),y.globalNotFound}}),d=ct({select:m=>{const v=m.matches,y=v.findIndex(b=>b.id===l);return v[y+1]?.id}}),g=o.options.defaultPendingComponent?k.jsx(o.options.defaultPendingComponent,{}):null;if(f)return Wg(o,c,void 0);if(!d)return null;const h=k.jsx(Fg,{matchId:d});return r===Mt?k.jsx(E.Suspense,{fallback:g,children:h}):h});function p1(){const a=vt(),l=a.routesById[Mt].options.pendingComponent??a.options.defaultPendingComponent,r=l?k.jsx(l,{}):null,c=a.isServer||typeof document<"u"&&a.ssr?zi:E.Suspense,f=k.jsxs(c,{fallback:r,children:[!a.isServer&&k.jsx(c1,{}),k.jsx(g1,{})]});return a.options.InnerWrap?k.jsx(a.options.InnerWrap,{children:f}):f}function g1(){const a=vt(),o=ct({select:c=>c.matches[0]?.id}),l=ct({select:c=>c.loadedAt}),r=o?k.jsx(Fg,{matchId:o}):null;return k.jsx(Ir.Provider,{value:o,children:a.options.disableGlobalCatchBoundary?r:k.jsx(ff,{getResetKey:()=>l,errorComponent:$r,onCatch:c=>{c.message||c.toString()},children:r})})}function y1(){const a=vt();return ct({select:o=>[o.location.href,o.resolvedLocation?.href,o.status],structuralSharing:!0}),E.useCallback(o=>{const{pending:l,caseSensitive:r,fuzzy:c,includeSearch:f,...d}=o;return a.matchRoute(d,{pending:l,caseSensitive:r,fuzzy:c,includeSearch:f})},[a])}const v1=a=>new b1(a);class b1 extends OS{constructor(o){super(o)}}typeof globalThis<"u"?(globalThis.createFileRoute=Mn,globalThis.createLazyFileRoute=ng):typeof window<"u"&&(window.createFileRoute=Mn,window.createLazyFileRoute=ng);function S1({router:a,children:o,...l}){Object.keys(l).length>0&&a.update({...a.options,...l,context:{...a.options.context,...l.context}});const r=Kg(),c=k.jsx(r.Provider,{value:a,children:o});return a.options.Wrap?k.jsx(a.options.Wrap,{children:c}):c}function x1({router:a,...o}){return k.jsx(S1,{router:a,...o,children:k.jsx(p1,{})})}const w1="modulepreload",_1=function(a){return"/"+a},ig={},Pa=function(o,l,r){let c=Promise.resolve();if(l&&l.length>0){let h=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),g=d?.nonce||d?.getAttribute("nonce");c=h(l.map(m=>{if(m=_1(m),m in ig)return;ig[m]=!0;const v=m.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":w1,v||(b.as="script"),b.crossOrigin="",b.href=m,g&&b.setAttribute("nonce",g),document.head.appendChild(b),v)return new Promise((x,w)=>{b.addEventListener("load",x),b.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=d,window.dispatchEvent(g),!g.defaultPrevented)throw d}return c.then(d=>{for(const g of d||[])g.status==="rejected"&&f(g.reason);return o().catch(f)})},E1=function(){return null},he=(function a(o){function l(c,f,d){var g,h={};if(Array.isArray(c))return c.concat(f);for(g in c)h[d?g.toLowerCase():g]=c[g];for(g in f){var m=d?g.toLowerCase():g,v=f[g];h[m]=m in h&&typeof v=="object"?l(h[m],v,m=="headers"):v}return h}function r(c,f,d,g,h){var m=typeof c!="string"?(f=c).url:c,v={config:f},y=l(o,f),b={};g=g||y.data,(y.transformRequest||[]).map(function(x){g=x(g,y.headers)||g}),y.auth&&(b.authorization=y.auth),g&&typeof g=="object"&&typeof g.append!="function"&&typeof g.text!="function"&&(g=JSON.stringify(g),b["content-type"]="application/json");try{b[y.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+y.xsrfCookieName+"=([^;]*)"))[2])}catch{}return y.baseURL&&(m=m.replace(/^(?!.*\/\/)\/?/,y.baseURL+"/")),y.params&&(m+=(~m.indexOf("?")?"&":"?")+(y.paramsSerializer?y.paramsSerializer(y.params):new URLSearchParams(y.params))),(y.fetch||fetch)(m,{method:(d||y.method||"get").toUpperCase(),body:g,headers:l(y.headers,b,!0),credentials:y.withCredentials?"include":h}).then(function(x){for(var w in x)typeof x[w]!="function"&&(v[w]=x[w]);return y.responseType=="stream"?(v.data=x.body,v):x[y.responseType||"text"]().then(function(A){v.data=A,v.data=JSON.parse(A)}).catch(Object).then(function(){return(y.validateStatus?y.validateStatus(x.status):x.ok)?v:Promise.reject(v)})})}return o=o||{},r.request=r,r.get=function(c,f){return r(c,f,"get")},r.delete=function(c,f){return r(c,f,"delete")},r.head=function(c,f){return r(c,f,"head")},r.options=function(c,f){return r(c,f,"options")},r.post=function(c,f,d){return r(c,d,"post",f)},r.put=function(c,f,d){return r(c,d,"put",f)},r.patch=function(c,f,d){return r(c,d,"patch",f)},r.all=Promise.all.bind(Promise),r.spread=function(c){return c.apply.bind(c,c)},r.CancelToken=typeof AbortController=="function"?AbortController:Object,r.defaults=o,r.create=a,r})();function T1(a){if(a&&typeof a=="object"){const o=a;if(o.data?.detail)return o.data.detail;if(o.message)return o.message;if(o.status)return`HTTP error! status: ${o.status}`}return a instanceof Error?a.message:"Unknown error"}async function C1(){return(await he.get("/api/devices")).data}async function R1(){return(await he.get("/api/devices")).data.devices}async function A1(a){return(await he.post("/api/devices/connect_wifi",a)).data}async function M1(a){return(await he.post("/api/devices/disconnect_wifi",{device_id:a})).data}async function O1(a){return(await he.post("/api/devices/connect_wifi_manual",a)).data}async function D1(a){return(await he.post("/api/devices/pair_wifi",a)).data}async function z1(a){return(await he.post("/api/devices/discover_remote",a)).data}async function N1(a){return(await he.post("/api/devices/add_remote",a)).data}async function L1(a){return(await he.post("/api/devices/remove_remote",{serial:a})).data}function k1(a,o,l,r,c,f,d){const g=new AbortController;return fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:a,device_id:o}),signal:g.signal}).then(async h=>{if(!h.ok){let x=`HTTP error! status: ${h.status}`;try{const w=await h.json();w.detail&&(x=w.detail)}catch{}throw new Error(x)}if(!h.body)throw new Error("Response body is null");const m=h.body.getReader(),v=new TextDecoder;let y="",b="message";for(;;){const{done:x,value:w}=await m.read();if(x)break;y+=v.decode(w,{stream:!0});const A=y.split(`
|
|
11
|
+
`);y=A.pop()||"";for(const R of A)if(R.startsWith("event: "))b=R.slice(7).trim();else if(R.startsWith("data: "))try{const M=JSON.parse(R.slice(6));b==="thinking_chunk"?(console.log("[SSE] Received thinking_chunk event:",M),l(M)):b==="step"?(console.log("[SSE] Received step event:",M),r(M)):b==="done"?(console.log("[SSE] Received done event:",M),c(M)):b==="aborted"?(console.log("[SSE] Received aborted event:",M),d&&d(M)):b==="error"&&(console.log("[SSE] Received error event:",M),f(M))}catch(M){console.error("Failed to parse SSE data:",R,M)}}}).catch(h=>{h.name==="AbortError"?d&&d({type:"aborted",role:"assistant",message:"Connection aborted by user"}):f({type:"error",role:"assistant",message:h.message})}),{close:()=>g.abort()}}async function $g(){return(await he.get("/api/status")).data}async function U1(a){return(await he.post("/api/reset",{device_id:a})).data}async function j1(a){return(await he.post("/api/chat/abort",{device_id:a})).data}async function B1(a){return(await he.post("/api/screenshot",{device_id:a??null},{})).data}async function H1(a,o,l,r,c,f,d=0){const g={start_x:Math.round(a),start_y:Math.round(o),end_x:Math.round(l),end_y:Math.round(r),duration_ms:Math.round(c),device_id:f??null,delay:Math.round(d*1e3)/1e3};try{return(await he.post("/api/control/swipe",g)).data}catch(h){throw console.error("[API] Swipe request failed:",h),h}}async function q1(a,o,l,r=0){return(await he.post("/api/control/touch/down",{x:Math.round(a),y:Math.round(o),device_id:l??null,delay:r})).data}async function G1(a,o,l,r=0){return(await he.post("/api/control/touch/move",{x:Math.round(a),y:Math.round(o),device_id:l??null,delay:r})).data}async function V1(a,o,l,r=0){return(await he.post("/api/control/touch/up",{x:Math.round(a),y:Math.round(o),device_id:l??null,delay:r})).data}async function P1(){return(await he.get("/api/config")).data}async function Y1(a){return(await he.post("/api/config",a)).data}async function X1(){return(await he.post("/api/agents/reinit-all")).data}async function Ig(){return(await he.get("/api/version/latest")).data}async function Q1(){return(await he.get("/api/devices/discover_mdns")).data}async function Z1(a=90){return(await he.post("/api/devices/qr_pair/generate",{timeout:a})).data}async function K1(a){return(await he.get(`/api/devices/qr_pair/status/${a}`)).data}async function W1(a){return(await he.delete(`/api/devices/qr_pair/${a}`)).data}async function F1(){return(await he.get("/api/workflows")).data}async function J1(a){return(await he.post("/api/workflows",a)).data}async function $1(a,o){return(await he.put(`/api/workflows/${a}`,o)).data}async function I1(a){await he.delete(`/api/workflows/${a}`)}async function ex(a){return(await he.post("/api/layered-agent/abort",{session_id:a})).data}async function tx(a,o=50,l=0){return(await he.get(`/api/history/${a}`,{params:{limit:o,offset:l}})).data}async function nx(a,o){await he.delete(`/api/history/${a}/${o}`)}async function ax(a){await he.delete(`/api/history/${a}`)}async function ix(){return(await he.get("/api/scheduled-tasks")).data}async function lx(a){return(await he.post("/api/scheduled-tasks",a)).data}async function ox(a,o){return(await he.put(`/api/scheduled-tasks/${a}`,o)).data}async function rx(a){await he.delete(`/api/scheduled-tasks/${a}`)}async function sx(a){return(await he.post(`/api/scheduled-tasks/${a}/enable`)).data}async function cx(a){return(await he.post(`/api/scheduled-tasks/${a}/disable`)).data}async function ux(a,o){return(await he.put(`/api/devices/${a}/name`,{display_name:o})).data}async function fx(){return(await he.get("/api/device-groups")).data}async function dx(a){return(await he.post("/api/device-groups",{name:a})).data}async function hx(a,o){return(await he.put(`/api/device-groups/${a}`,{name:o})).data}async function mx(a){return(await he.delete(`/api/device-groups/${a}`)).data}async function px(a){return(await he.put("/api/device-groups/reorder",{group_ids:a})).data}async function gx(a,o){return(await he.put(`/api/devices/${a}/group`,{group_id:o})).data}const rC=Object.freeze(Object.defineProperty({__proto__:null,abortChat:j1,abortLayeredAgentChat:ex,addRemoteDevice:N1,assignDeviceToGroup:gx,cancelQRPairing:W1,checkVersion:Ig,clearHistory:ax,connectWifi:A1,connectWifiManual:O1,createDeviceGroup:dx,createScheduledTask:lx,createWorkflow:J1,deleteDeviceGroup:mx,deleteHistoryRecord:nx,deleteScheduledTask:rx,deleteWorkflow:I1,disableScheduledTask:cx,disconnectWifi:M1,discoverMdnsDevices:Q1,discoverRemoteDevices:z1,enableScheduledTask:sx,generateQRPairing:Z1,getConfig:P1,getDevices:R1,getErrorMessage:T1,getQRPairingStatus:K1,getScreenshot:B1,getStatus:$g,listDeviceGroups:fx,listDevices:C1,listHistory:tx,listScheduledTasks:ix,listWorkflows:F1,pairWifi:D1,reinitAllAgents:X1,removeRemoteDevice:L1,reorderDeviceGroups:px,resetChat:U1,saveConfig:Y1,sendMessageStream:k1,sendSwipe:H1,sendTouchDown:q1,sendTouchMove:G1,sendTouchUp:V1,updateDeviceGroup:hx,updateDeviceName:ux,updateScheduledTask:ox,updateWorkflow:$1},Symbol.toStringTag,{value:"Module"}));function lg(a,o){if(typeof a=="function")return a(o);a!=null&&(a.current=o)}function yf(...a){return o=>{let l=!1;const r=a.map(c=>{const f=lg(c,o);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<r.length;c++){const f=r[c];typeof f=="function"?f():lg(a[c],null)}}}}function Ya(...a){return E.useCallback(yf(...a),a)}var yx=Symbol.for("react.lazy"),Yr=uf[" use ".trim().toString()];function vx(a){return typeof a=="object"&&a!==null&&"then"in a}function ey(a){return a!=null&&typeof a=="object"&&"$$typeof"in a&&a.$$typeof===yx&&"_payload"in a&&vx(a._payload)}function ty(a){const o=Sx(a),l=E.forwardRef((r,c)=>{let{children:f,...d}=r;ey(f)&&typeof Yr=="function"&&(f=Yr(f._payload));const g=E.Children.toArray(f),h=g.find(wx);if(h){const m=h.props.children,v=g.map(y=>y===h?E.Children.count(m)>1?E.Children.only(null):E.isValidElement(m)?m.props.children:null:y);return k.jsx(o,{...d,ref:c,children:E.isValidElement(m)?E.cloneElement(m,void 0,v):null})}return k.jsx(o,{...d,ref:c,children:f})});return l.displayName=`${a}.Slot`,l}var bx=ty("Slot");function Sx(a){const o=E.forwardRef((l,r)=>{let{children:c,...f}=l;if(ey(c)&&typeof Yr=="function"&&(c=Yr(c._payload)),E.isValidElement(c)){const d=Ex(c),g=_x(f,c.props);return c.type!==E.Fragment&&(g.ref=r?yf(r,d):d),E.cloneElement(c,g)}return E.Children.count(c)>1?E.Children.only(null):null});return o.displayName=`${a}.SlotClone`,o}var xx=Symbol("radix.slottable");function wx(a){return E.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===xx}function _x(a,o){const l={...o};for(const r in o){const c=a[r],f=o[r];/^on[A-Z]/.test(r)?c&&f?l[r]=(...g)=>{const h=f(...g);return c(...g),h}:c&&(l[r]=c):r==="style"?l[r]={...c,...f}:r==="className"&&(l[r]=[c,f].filter(Boolean).join(" "))}return{...a,...l}}function Ex(a){let o=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning;return l?a.ref:(o=Object.getOwnPropertyDescriptor(a,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning,l?a.props.ref:a.props.ref||a.ref)}var Tx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Cx=Tx.reduce((a,o)=>{const l=ty(`Primitive.${o}`),r=E.forwardRef((c,f)=>{const{asChild:d,...g}=c,h=d?l:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(h,{...g,ref:f})});return r.displayName=`Primitive.${o}`,{...a,[o]:r}},{}),Rx="Separator",og="horizontal",Ax=["horizontal","vertical"],ny=E.forwardRef((a,o)=>{const{decorative:l,orientation:r=og,...c}=a,f=Mx(r)?r:og,g=l?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return k.jsx(Cx.div,{"data-orientation":f,...g,...c,ref:o})});ny.displayName=Rx;function Mx(a){return Ax.includes(a)}var Ox=ny;function ay(a){var o,l,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(o=0;o<c;o++)a[o]&&(l=ay(a[o]))&&(r&&(r+=" "),r+=l)}else for(l in a)a[l]&&(r&&(r+=" "),r+=l);return r}function iy(){for(var a,o,l=0,r="",c=arguments.length;l<c;l++)(a=arguments[l])&&(o=ay(a))&&(r&&(r+=" "),r+=o);return r}const Dx=(a,o)=>{const l=new Array(a.length+o.length);for(let r=0;r<a.length;r++)l[r]=a[r];for(let r=0;r<o.length;r++)l[a.length+r]=o[r];return l},zx=(a,o)=>({classGroupId:a,validator:o}),ly=(a=new Map,o=null,l)=>({nextPart:a,validators:o,classGroupId:l}),Xr="-",rg=[],Nx="arbitrary..",Lx=a=>{const o=Ux(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=a;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return kx(d);const g=d.split(Xr),h=g[0]===""&&g.length>1?1:0;return oy(g,h,o)},getConflictingClassGroupIds:(d,g)=>{if(g){const h=r[d],m=l[d];return h?m?Dx(m,h):h:m||rg}return l[d]||rg}}},oy=(a,o,l)=>{if(a.length-o===0)return l.classGroupId;const c=a[o],f=l.nextPart.get(c);if(f){const m=oy(a,o+1,f);if(m)return m}const d=l.validators;if(d===null)return;const g=o===0?a.join(Xr):a.slice(o).join(Xr),h=d.length;for(let m=0;m<h;m++){const v=d[m];if(v.validator(g))return v.classGroupId}},kx=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=a.slice(1,-1),l=o.indexOf(":"),r=o.slice(0,l);return r?Nx+r:void 0})(),Ux=a=>{const{theme:o,classGroups:l}=a;return jx(l,o)},jx=(a,o)=>{const l=ly();for(const r in a){const c=a[r];vf(c,l,r,o)}return l},vf=(a,o,l,r)=>{const c=a.length;for(let f=0;f<c;f++){const d=a[f];Bx(d,o,l,r)}},Bx=(a,o,l,r)=>{if(typeof a=="string"){Hx(a,o,l);return}if(typeof a=="function"){qx(a,o,l,r);return}Gx(a,o,l,r)},Hx=(a,o,l)=>{const r=a===""?o:ry(o,a);r.classGroupId=l},qx=(a,o,l,r)=>{if(Vx(a)){vf(a(r),o,l,r);return}o.validators===null&&(o.validators=[]),o.validators.push(zx(l,a))},Gx=(a,o,l,r)=>{const c=Object.entries(a),f=c.length;for(let d=0;d<f;d++){const[g,h]=c[d];vf(h,ry(o,g),l,r)}},ry=(a,o)=>{let l=a;const r=o.split(Xr),c=r.length;for(let f=0;f<c;f++){const d=r[f];let g=l.nextPart.get(d);g||(g=ly(),l.nextPart.set(d,g)),l=g}return l},Vx=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,Px=a=>{if(a<1)return{get:()=>{},set:()=>{}};let o=0,l=Object.create(null),r=Object.create(null);const c=(f,d)=>{l[f]=d,o++,o>a&&(o=0,r=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=r[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},Ju="!",sg=":",Yx=[],cg=(a,o,l,r,c)=>({modifiers:a,hasImportantModifier:o,baseClassName:l,maybePostfixModifierPosition:r,isExternal:c}),Xx=a=>{const{prefix:o,experimentalParseClassName:l}=a;let r=c=>{const f=[];let d=0,g=0,h=0,m;const v=c.length;for(let A=0;A<v;A++){const R=c[A];if(d===0&&g===0){if(R===sg){f.push(c.slice(h,A)),h=A+1;continue}if(R==="/"){m=A;continue}}R==="["?d++:R==="]"?d--:R==="("?g++:R===")"&&g--}const y=f.length===0?c:c.slice(h);let b=y,x=!1;y.endsWith(Ju)?(b=y.slice(0,-1),x=!0):y.startsWith(Ju)&&(b=y.slice(1),x=!0);const w=m&&m>h?m-h:void 0;return cg(f,x,b,w)};if(o){const c=o+sg,f=r;r=d=>d.startsWith(c)?f(d.slice(c.length)):cg(Yx,!1,d,void 0,!0)}if(l){const c=r;r=f=>l({className:f,parseClassName:c})}return r},Qx=a=>{const o=new Map;return a.orderSensitiveModifiers.forEach((l,r)=>{o.set(l,1e6+r)}),l=>{const r=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],g=d[0]==="[",h=o.has(d);g||h?(c.length>0&&(c.sort(),r.push(...c),c=[]),r.push(d)):c.push(d)}return c.length>0&&(c.sort(),r.push(...c)),r}},Zx=a=>({cache:Px(a.cacheSize),parseClassName:Xx(a),sortModifiers:Qx(a),...Lx(a)}),Kx=/\s+/,Wx=(a,o)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:f}=o,d=[],g=a.trim().split(Kx);let h="";for(let m=g.length-1;m>=0;m-=1){const v=g[m],{isExternal:y,modifiers:b,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:A}=l(v);if(y){h=v+(h.length>0?" "+h:h);continue}let R=!!A,M=r(R?w.substring(0,A):w);if(!M){if(!R){h=v+(h.length>0?" "+h:h);continue}if(M=r(w),!M){h=v+(h.length>0?" "+h:h);continue}R=!1}const H=b.length===0?"":b.length===1?b[0]:f(b).join(":"),B=x?H+Ju:H,Y=B+M;if(d.indexOf(Y)>-1)continue;d.push(Y);const Z=c(M,R);for(let G=0;G<Z.length;++G){const N=Z[G];d.push(B+N)}h=v+(h.length>0?" "+h:h)}return h},Fx=(...a)=>{let o=0,l,r,c="";for(;o<a.length;)(l=a[o++])&&(r=sy(l))&&(c&&(c+=" "),c+=r);return c},sy=a=>{if(typeof a=="string")return a;let o,l="";for(let r=0;r<a.length;r++)a[r]&&(o=sy(a[r]))&&(l&&(l+=" "),l+=o);return l},Jx=(a,...o)=>{let l,r,c,f;const d=h=>{const m=o.reduce((v,y)=>y(v),a());return l=Zx(m),r=l.cache.get,c=l.cache.set,f=g,g(h)},g=h=>{const m=r(h);if(m)return m;const v=Wx(h,l);return c(h,v),v};return f=d,(...h)=>f(Fx(...h))},$x=[],Je=a=>{const o=l=>l[a]||$x;return o.isThemeGetter=!0,o},cy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,uy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ix=/^\d+\/\d+$/,ew=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,nw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,aw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Di=a=>Ix.test(a),Se=a=>!!a&&!Number.isNaN(Number(a)),oa=a=>!!a&&Number.isInteger(Number(a)),Gu=a=>a.endsWith("%")&&Se(a.slice(0,-1)),Cn=a=>ew.test(a),lw=()=>!0,ow=a=>tw.test(a)&&!nw.test(a),fy=()=>!1,rw=a=>aw.test(a),sw=a=>iw.test(a),cw=a=>!ne(a)&&!ae(a),uw=a=>Hi(a,my,fy),ne=a=>cy.test(a),La=a=>Hi(a,py,ow),Vu=a=>Hi(a,pw,Se),ug=a=>Hi(a,dy,fy),fw=a=>Hi(a,hy,sw),Cr=a=>Hi(a,gy,rw),ae=a=>uy.test(a),Vl=a=>qi(a,py),dw=a=>qi(a,gw),fg=a=>qi(a,dy),hw=a=>qi(a,my),mw=a=>qi(a,hy),Rr=a=>qi(a,gy,!0),Hi=(a,o,l)=>{const r=cy.exec(a);return r?r[1]?o(r[1]):l(r[2]):!1},qi=(a,o,l=!1)=>{const r=uy.exec(a);return r?r[1]?o(r[1]):l:!1},dy=a=>a==="position"||a==="percentage",hy=a=>a==="image"||a==="url",my=a=>a==="length"||a==="size"||a==="bg-size",py=a=>a==="length",pw=a=>a==="number",gw=a=>a==="family-name",gy=a=>a==="shadow",yw=()=>{const a=Je("color"),o=Je("font"),l=Je("text"),r=Je("font-weight"),c=Je("tracking"),f=Je("leading"),d=Je("breakpoint"),g=Je("container"),h=Je("spacing"),m=Je("radius"),v=Je("shadow"),y=Je("inset-shadow"),b=Je("text-shadow"),x=Je("drop-shadow"),w=Je("blur"),A=Je("perspective"),R=Je("aspect"),M=Je("ease"),H=Je("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...Y(),ae,ne],G=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],j=()=>[ae,ne,h],J=()=>[Di,"full","auto",...j()],I=()=>[oa,"none","subgrid",ae,ne],ee=()=>["auto",{span:["full",oa,ae,ne]},oa,ae,ne],ce=()=>[oa,"auto",ae,ne],me=()=>["auto","min","max","fr",ae,ne],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...j()],W=()=>[Di,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],V=()=>[a,ae,ne],fe=()=>[...Y(),fg,ug,{position:[ae,ne]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",hw,uw,{size:[ae,ne]}],X=()=>[Gu,Vl,La],F=()=>["","none","full",m,ae,ne],$=()=>["",Se,Vl,La],oe=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[Se,Gu,fg,ug],Be=()=>["","none",w,ae,ne],Te=()=>["none",Se,ae,ne],ot=()=>["none",Se,ae,ne],ut=()=>[Se,ae,ne],$e=()=>[Di,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Cn],breakpoint:[Cn],color:[lw],container:[Cn],"drop-shadow":[Cn],ease:["in","out","in-out"],font:[cw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Cn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Cn],shadow:[Cn],spacing:["px",Se],text:[Cn],"text-shadow":[Cn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Di,ne,ae,R]}],container:["container"],columns:[{columns:[Se,ne,ae,g]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[oa,"auto",ae,ne]}],basis:[{basis:[Di,"full","auto",g,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,Di,"auto","initial","none",ne]}],grow:[{grow:["",Se,ae,ne]}],shrink:[{shrink:["",Se,ae,ne]}],order:[{order:[oa,"first","last","none",ae,ne]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[g,"screen",...W()]}],"min-w":[{"min-w":[g,"screen","none",...W()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[d]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",l,Vl,La]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ae,Vu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gu,ne]}],"font-family":[{font:[dw,ne,o]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,ae,ne]}],"line-clamp":[{"line-clamp":[Se,"none",ae,Vu]}],leading:[{leading:[f,...j()]}],"list-image":[{"list-image":["none",ae,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",ae,La]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Se,"auto",ae,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oa,ae,ne],radial:["",ae,ne],conic:[oa,ae,ne]},mw,fw]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,ae,ne]}],"outline-w":[{outline:["",Se,Vl,La]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",v,Rr,Cr]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",y,Rr,Cr]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Se,La]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",b,Rr,Cr]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Se,ae,ne]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[ae,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Y()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,ne]}],filter:[{filter:["","none",ae,ne]}],blur:[{blur:Be()}],brightness:[{brightness:[Se,ae,ne]}],contrast:[{contrast:[Se,ae,ne]}],"drop-shadow":[{"drop-shadow":["","none",x,Rr,Cr]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Se,ae,ne]}],"hue-rotate":[{"hue-rotate":[Se,ae,ne]}],invert:[{invert:["",Se,ae,ne]}],saturate:[{saturate:[Se,ae,ne]}],sepia:[{sepia:["",Se,ae,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,ne]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[Se,ae,ne]}],"backdrop-contrast":[{"backdrop-contrast":[Se,ae,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,ae,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,ae,ne]}],"backdrop-invert":[{"backdrop-invert":["",Se,ae,ne]}],"backdrop-opacity":[{"backdrop-opacity":[Se,ae,ne]}],"backdrop-saturate":[{"backdrop-saturate":[Se,ae,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,ae,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",ae,ne]}],ease:[{ease:["linear","initial",M,ae,ne]}],delay:[{delay:[Se,ae,ne]}],animate:[{animate:["none",H,ae,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,ae,ne]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:ot()}],"scale-x":[{"scale-x":ot()}],"scale-y":[{"scale-y":ot()}],"scale-z":[{"scale-z":ot()}],"scale-3d":["scale-3d"],skew:[{skew:ut()}],"skew-x":[{"skew-x":ut()}],"skew-y":[{"skew-y":ut()}],transform:[{transform:[ae,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae,ne]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Se,Vl,La,Vu]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vw=Jx(yw);function ts(...a){return vw(iy(a))}function Pu({className:a,orientation:o="horizontal",decorative:l=!0,...r}){return k.jsx(Ox,{"data-slot":"separator",decorative:l,orientation:o,className:ts("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",a),...r})}const dg=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,hg=iy,yy=(a,o)=>l=>{var r;if(o?.variants==null)return hg(a,l?.class,l?.className);const{variants:c,defaultVariants:f}=o,d=Object.keys(c).map(m=>{const v=l?.[m],y=f?.[m];if(v===null)return null;const b=dg(v)||dg(y);return c[m][b]}),g=l&&Object.entries(l).reduce((m,v)=>{let[y,b]=v;return b===void 0||(m[y]=b),m},{}),h=o==null||(r=o.compoundVariants)===null||r===void 0?void 0:r.reduce((m,v)=>{let{class:y,className:b,...x}=v;return Object.entries(x).every(w=>{let[A,R]=w;return Array.isArray(R)?R.includes({...f,...g}[A]):{...f,...g}[A]===R})?[...m,y,b]:m},[]);return hg(a,d,h,l?.class,l?.className)},bw=yy("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-[#1d9bf0] text-white dark:bg-[#1d9bf0] dark:text-white",secondary:"border-transparent bg-slate-100 text-slate-900 dark:bg-slate-800 dark:text-slate-50",destructive:"border-transparent bg-red-500 text-white dark:bg-red-900 dark:text-slate-50",outline:"text-slate-950 dark:text-slate-50",success:"border-transparent bg-green-500 text-white dark:bg-green-900 dark:text-slate-50",warning:"border-transparent bg-yellow-500 text-white dark:bg-yellow-900 dark:text-slate-50"}},defaultVariants:{variant:"default"}});function mg({className:a,variant:o,...l}){return k.jsx("div",{className:ts(bw({variant:o}),a),...l})}const Sw=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xw=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,l,r)=>r?r.toUpperCase():l.toLowerCase()),pg=a=>{const o=xw(a);return o.charAt(0).toUpperCase()+o.slice(1)},vy=(...a)=>a.filter((o,l,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===l).join(" ").trim(),ww=a=>{for(const o in a)if(o.startsWith("aria-")||o==="role"||o==="title")return!0};var _w={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 Ew=E.forwardRef(({color:a="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:d,...g},h)=>E.createElement("svg",{ref:h,..._w,width:o,height:o,stroke:a,strokeWidth:r?Number(l)*24/Number(o):l,className:vy("lucide",c),...!f&&!ww(g)&&{"aria-hidden":"true"},...g},[...d.map(([m,v])=>E.createElement(m,v)),...Array.isArray(f)?f:[f]]));const zn=(a,o)=>{const l=E.forwardRef(({className:r,...c},f)=>E.createElement(Ew,{ref:f,iconNode:o,className:vy(`lucide-${Sw(pg(a))}`,`lucide-${a}`,r),...c}));return l.displayName=pg(a),l};const Tw=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Cw=zn("clock",Tw);const Rw=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Aw=zn("file-text",Rw);const Mw=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Ow=zn("github",Mw);const Dw=[["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"}]],zw=zn("globe",Dw);const Nw=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Lw=zn("history",Nw);const kw=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Uw=zn("list-checks",kw);const jw=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Bw=zn("message-square",jw);const Hw=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],qw=zn("moon",Hw);const Gw=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Vw=zn("sun",Gw),Pw={common:{save:"Save",cancel:"Cancel",confirm:"Confirm",loading:"Loading...",error:"Error",success:"Success",edit:"Edit",delete:"Delete",create:"Create",close:"Close",retry:"Retry"},footer:{starOnGitHub:"Star on GitHub",newVersion:"New!",updateAvailable:"Update available: v{version}",buildVersion:"Build: v{version}",versionMismatch:"Version mismatch",versionMismatchDetail:"Frontend: v{frontend}, Backend: v{backend}"},chat:{welcomeTitle:"Welcome to AutoGLM",connectDevice:"Connect an ADB device to get started",configuration:"Configuration",configureApi:"Configure your API settings to get started",selectPreset:"Select a preset configuration",baseUrlRequired:"Base URL is required",baseUrl:"Base URL",apiKey:"API Key",modelName:"Model Name",cancel:"Cancel",saveConfig:"Save Configuration",noDevices:"No devices found",getApiKey:"Get API Key",aborted:"Chat aborted",abortFailed:"Failed to abort chat",abortChat:"Abort Chat",thinkingMode:"Thinking Mode",fastMode:"Fast",fastModeDesc:"Quick response, suitable for simple tasks",deepMode:"Deep",deepModeDesc:"Deep thinking, suitable for complex tasks",agentType:"Agent Type",selectAgentType:"Select Agent Type",history_n:"History Count",history_n_hint:"Number of historical screenshots (1-10)",maxSteps:"Max Execution Steps",maxStepsHint:"Maximum steps per task (1-1000)",visionModelTab:"Vision Model",decisionModelTab:"Decision Model",selectDecisionPreset:"Select Decision Model Preset",decisionBaseUrl:"Decision Model Base URL",decisionApiKey:"Decision Model API Key",decisionModelName:"Decision Model Name",decisionModelHint:"Decision model is used for planning in layered agent mode. You must configure the decision model when using layered agent mode."},deviceSidebar:{devices:"Devices",settings:"Settings",history:"History",addDevice:"Add Wireless Device",addDeviceTooltip:"USB cable pairing is required before first use. Pure wireless pairing is not supported yet. Please submit an issue at the project homepage if you need this feature.",connectWifi:"Connect WiFi",disconnectWifi:"Disconnect WiFi",noDevicesConnected:"No devices connected",clickToRefresh:"Click refresh to scan devices",manualConnectTitle:"Connect to WiFi Device",manualConnectDescription:"Choose connection method",ipAddress:"IP Address",port:"Port",invalidIpError:"Invalid IP address format",invalidPortError:"Port must be between 1 and 65535",directConnectTab:"Direct Connect",directConnectNote:'Note: First-time connection requires wireless pairing in the "Pair Device" tab',emulatorPreset:"Quick Connect (Emulator)",emulatorMumu:"MuMu",emulatorNox:"NoxPlayer",emulatorLdplayer:"LDPlayer",emulatorBluestacks:"BlueStacks",emulatorCustom:"Custom",emulatorNote:"Select preset above to auto-fill IP and port (for emulators), or manually enter IP and port for physical devices. Make sure ADB debugging is enabled in device settings.",pairTab:"Pair Device",pairingCode:"Pairing Code",pairingPort:"Pairing Port",connectionPort:"Connection Port",invalidPairingCodeError:"Pairing code must be 6 digits",pairingInstructions:"How to get pairing code:",pairingStep1:"1. Open Settings → Developer Options on your device",pairingStep2:'2. Enable "Wireless Debugging"',pairingStep3:'3. Tap "Pair device with pairing code"',pairingStep4:"4. Enter the IP address, pairing port, and 6-digit code shown",pairingNote:"Note: Pairing port and connection port are different. After pairing, the system will automatically connect using the connection port (default 5555).",discoveredDevices:"Discovered Devices",scanning:"Scanning...",scanAgain:"Scan Again",noDevicesFound:"No wireless devices found",noDirectDevices:"No directly connectable devices found",noPairingDevices:"No devices requiring pairing found",scanError:"Scan failed: {error}",pairingRequired:"Pairing may be required",manualConnection:"Manual Connection",orManualConnect:"Or connect manually",orManualPair:"Or pair manually",connect:"Connect",pairAndConnect:"Pair and Connect",orQrPair:"or QR Code Pairing",qrPairingTitle:"QR Code Auto Pairing:",qrStep1:"1. Open Settings → Developer Options on your device",qrStep2:'2. Enable "Wireless debugging"',qrStep3:'3. Tap "Pair device with QR code" and scan the code below',qrGenerate:"Generate Pairing QR Code",qrRegenerate:"Regenerate",qrWaitingForScan:"Waiting for QR scan...",qrPairing:"Pairing device...",qrConnected:"Paired successfully!",qrTimeout:"Timeout: No scan detected",qrError:"Pairing failed",qrGenerateError:"Failed to generate QR code",remoteTab:"Remote Device",remoteUrl:"Remote Server URL",remoteUrlHint:"e.g., http://192.168.1.100:8000",remoteDeviceId:"Device ID",remoteDeviceIdHint:"The device ID on the remote server",remoteLabel:"Display Name",remoteLabelPlaceholder:"e.g., My Remote Phone",remoteLabelHint:"Optional: Custom name for this device",connectRemote:"Connect",remoteUrlRequired:"Remote server URL is required",remoteUrlInvalid:"URL must start with http:// or https://",remoteIdRequired:"Device ID is required",manageGroups:"Manage Groups"},devicePanel:{noConfig:"Please configure your API settings first",configureNow:"Configure Now",connectDevice:"Please connect a device first",connectAdb:"Connect via ADB",startChat:"Start Chat",sendMessage:"Send a message...",running:"Running",waiting:"Waiting for input",readyToHelp:"Ready to help",describeTask:"Describe what you want to do on your phone",deviceNotReady:"Device is not ready",connectionError:"Connection error",screenshotError:"Screenshot error",actionError:"Action execution failed",initError:"Initialization failed",initializing:"Initialize",ready:"Ready",chatHistory:"Chat History",clearHistory:"Clear History",clearHistoryConfirm:"Are you sure you want to clear the chat history?",configureFirst:"Please configure first",initDeviceFirst:"Initialize device first",whatToDo:"What would you like to do? (Cmd+Enter to send)",stepsCompleted:"steps completed",processing:"Processing...",screenshotFailed:"Screenshot failed",loading:"Loading...",sensitiveContent:"Sensitive content",auto:"Auto",video:"Video",image:"Image",imageRefresh:"Image (0.5s refresh)",tapped:"Tapped",tapError:"Error: {error}",swiped:"Swiped",swipeError:"Swipe error: {error}",newMessages:"New messages. Click to view latest",tooltips:{workflowButton:"Quick Workflow",workflowButtonDesc:"Select and execute preset workflow tasks"}},deviceMonitor:{compact:"Compact",standard:"Standard",wide:"Wide",auto:"Auto",decreaseWidth:"Decrease width",increaseWidth:"Increase width",showWidthControls:"Show width controls",hideWidthControls:"Hide width controls",videoUnavailableWarning:"Video streaming is unavailable",requireHttpsOrLocalhost:"Video streaming requires HTTPS or localhost. Consider downloading the desktop app for full functionality.",browserNotSupported:"Current browser does not support WebCodecs API. Please use latest Chrome or Edge browser.",decoderInitFailed:"Video decoder initialization failed",codecNotSupported:"Device codec not supported",unknownError:"Unknown error",downloadElectron:"Download Desktop App",videoStreamWarning:"Video streaming may be unavailable, attempting connection..."},deviceCard:{unknownDevice:"Unknown Device",connectViaWifi:"Connect via WiFi",disconnectWifi:"Disconnect WiFi",disconnectAll:"Disconnect All",deleteDevice:"Delete Device",ready:"Ready",agentIdle:"Idle",agentBusy:"Busy",agentError:"Error",agentInitializing:"Initializing",remote:"Remote",wifi:"WiFi",removeRemote:"Remove Remote Device",connectWifiTitle:"Connect via WiFi",connectWifiContent:"Switch to WiFi connection? Ensure your device and computer are on the same network.",disconnectWifiTitle:"Disconnect WiFi",disconnectWifiContent:"Are you sure you want to disconnect WiFi?",disconnectAllTitle:"Disconnect All",disconnectAllContent:"Are you sure you want to disconnect all connections? This will disconnect both USB and WiFi.",deleteDeviceTitle:"Delete Device",deleteDeviceContent:"Are you sure you want to delete this device? This will disconnect the device.",editName:"Edit device name",editNameDialogTitle:"Edit Device Name",editNameDialogDescription:"Set a custom name for this device",deviceNameLabel:"Device Name",deviceNamePlaceholder:"Enter custom name (leave empty to use default)",deviceSerialLabel:"Serial Number",saveNameSuccess:"Device name updated successfully",saveNameError:"Failed to update device name",statusTooltip:{title:"Current status: ",idle:"Idle",busy:"Busy",error:"Error",initializing:"Initializing",none:"Not initialized",legend:{green:"🟢 Green - Idle, ready for tasks",yellow:"🟡 Yellow - Busy, executing task",red:"🔴 Red - Error, encountered issue",gray:"⚪ Gray - Not initialized / Initializing"}}},presetConfigs:{bigmodel:{name:"Zhipu BigModel",description:"API service provided by Zhipu AI"},modelscope:{name:"ModelScope",description:"API service provided by ModelScope community"},custom:{name:"Custom Service",description:"Self-hosted vLLM / SGLang services"}},toasts:{configSaved:"Configuration saved",wifiConnected:"WiFi connected",wifiDisconnected:"WiFi disconnected",connectionFailed:"Connection failed",disconnectFailed:"Disconnect failed",wifiConnectionError:"WiFi connection error",wifiDisconnectError:"WiFi disconnect error",wifiManualConnected:"WiFi device connected",wifiManualConnectError:"Failed to connect to WiFi device",wifiPaired:"WiFi device paired and connected",wifiPairError:"WiFi pairing failed",remoteDeviceAddError:"Failed to add remote device"},history:{title:"Task History",description:"Viewing history for {deviceName}",today:"Today",yesterday:"Yesterday",earlier:"Earlier",noHistory:"No history yet",noHistoryDescription:"Completed tasks will appear here",success:"Success",failed:"Failed",clearAll:"Clear All",clearAllConfirm:"Clear all history for this device?",deleteItem:"Delete",deleteConfirm:"Delete this history item?",step:"Step {number}",viewAction:"View action",finalResult:"Final Result"},navigation:{chat:"Chat",workflows:"Workflows",history:"History",scheduledTasks:"Scheduled Tasks",logs:"Logs"},logs:{title:"Log Files",refresh:"Refresh",openFolder:"Open Log Folder",noLogs:"No log files yet",selectLog:"Select a log file to view its content",loading:"Loading...",webVersionNotice:"You are using the Web version. The log viewer feature is only available in the desktop app.<br />Please check the backend console or server log files.",compressedFileNote:"Compressed file, please view in file manager",loadFailed:"Failed to load log list: {error}",readFailed:"Failed to read log: {error}",openFolderFailed:"Failed to open log folder: {error}"},workflows:{title:"Workflow Management",createNew:"New Workflow",create:"Create Workflow",edit:"Edit Workflow",name:"Name",text:"Task Content",namePlaceholder:"e.g., Order Milk Tea",textPlaceholder:"e.g., Go to Meituan and order a milk tea...",empty:"No workflows yet, click the button above to create",deleteConfirm:"Are you sure to delete this workflow?",quickRun:"Quick Run",selectWorkflow:"Select Workflow"},chatkit:{title:"AI Assistant",layeredAgent:"Layered Agent Mode",layeredAgentDesc:"Planner decomposes tasks into subtasks, executor handles each independently. You can see detailed tool calls.",modeLabel:"Mode:",classicMode:"Classic",layeredMode:"Layered Agent",classicModeDesc:"Vision model executes tasks directly",layeredModeDesc:"Planner decomposes tasks, executor handles subtasks independently",maiUIModeDesc:"Alibaba Cloud MAI-UI model, open-source high-performance GUI Agent"},historyPage:{title:"Conversation History",selectDevice:"Select Device",noDevices:"No devices available",noRecords:"No records yet",noRecordsDesc:"Completed tasks will appear here",clearAll:"Clear All",clearAllConfirm:"Clear all history for this device?",success:"Success",failed:"Failed",steps:"{count} steps",duration:"{time}",source:{chat:"Chat",layered:"Layered Agent",scheduled:"Scheduled Task"},loadMore:"Load More",loading:"Loading...",deleteConfirm:"Delete this record?",detailTitle:"Conversation Detail",taskLabel:"Task",stepLabel:"Step {step}",thinkingLabel:"Thinking",actionLabel:"Action",noMessages:"No detailed message records",resultLabel:"Result"},scheduledTasks:{title:"Scheduled Tasks",create:"New Task",edit:"Edit Task",noTasks:"No scheduled tasks",noTasksDesc:"Create a scheduled task to automate workflows",taskName:"Task Name",taskNamePlaceholder:"e.g., Daily Check-in",workflow:"Workflow",selectWorkflow:"Select Workflow",device:"Device",selectDevice:"Select Device",cronExpression:"Cron Expression",cronPlaceholder:"0 8 * * *",cronHelp:"Format: minute hour day month weekday",presets:"Quick Presets",preset:{everyHour:"Every Hour",daily8am:"Daily 8:00 AM",daily12pm:"Daily 12:00 PM",daily6pm:"Daily 6:00 PM",weeklyMonday:"Weekly Monday 9:00 AM"},enabled:"Enabled",disabled:"Disabled",lastRun:"Last Run",nextRun:"Next Run",never:"Never",deleteConfirm:"Delete this scheduled task?",noWorkflows:"No workflows available. Please create a workflow first.",noDevicesOnline:"No devices online",devicesSelected:"devices selected",selectGroup:"Select Group",groupDevices:"All devices in group"},deviceGroups:{manageTitle:"Manage Device Groups",manageDescription:"Create, edit, delete, and reorder device groups. Drag groups to reorder.",createNew:"New Group",createTitle:"Create Group",createDescription:"Create a new group for devices.",editTitle:"Edit Group",editDescription:"Modify group name.",deleteTitle:"Delete Group",deleteContent:'Are you sure you want to delete group "{name}"? Devices in this group will be moved to the default group.',groupNameLabel:"Group Name",groupNamePlaceholder:"Enter group name",defaultGroup:"Default",deviceCount:"devices",noDevicesInGroup:"No devices in this group",moveTo:"Move to Group",currentGroup:"Current",deviceMoved:"Device moved",moveFailed:"Move failed",fetchError:"Failed to fetch groups",createSuccess:"Group created successfully",createError:"Failed to create group",updateSuccess:"Group updated successfully",updateError:"Failed to update group",deleteSuccess:"Group deleted successfully",deleteError:"Failed to delete group",reorderError:"Failed to reorder groups"}},Yw={common:{save:"保存",cancel:"取消",confirm:"确认",loading:"加载中...",error:"错误",success:"成功",edit:"编辑",delete:"删除",create:"创建",close:"关闭",retry:"重试"},footer:{starOnGitHub:"在 GitHub 上Star",newVersion:"新版本!",updateAvailable:"可用更新: v{version}",buildVersion:"构建版本: v{version}",versionMismatch:"版本不匹配",versionMismatchDetail:"前端: v{frontend},后端: v{backend}"},chat:{welcomeTitle:"欢迎使用 AutoGLM",connectDevice:"连接 ADB 设备开始使用",configuration:"配置",configureApi:"配置您的 API 设置以开始使用",selectPreset:"选择预设配置",baseUrlRequired:"Base URL 为必填项",baseUrl:"Base URL",apiKey:"API Key",modelName:"模型名称",cancel:"取消",saveConfig:"保存配置",noDevices:"未找到设备",getApiKey:"获取 API Key",aborted:"对话已中止",abortFailed:"中止对话失败",abortChat:"中止对话",thinkingMode:"思考模式",fastMode:"快速",fastModeDesc:"快速响应,适合简单任务",deepMode:"深度",deepModeDesc:"深度思考,适合复杂任务",agentType:"Agent 类型",selectAgentType:"选择 Agent 类型",history_n:"历史记录数量",history_n_hint:"包含的历史截图数量(1-10)",maxSteps:"最大执行步数",maxStepsHint:"单次任务最大执行步数(1-1000)",visionModelTab:"视觉模型",decisionModelTab:"决策模型",selectDecisionPreset:"选择决策模型预设",decisionBaseUrl:"决策模型 Base URL",decisionApiKey:"决策模型 API Key",decisionModelName:"决策模型名称",decisionModelHint:"决策模型用于分层代理的规划层。使用分层代理模式时必须配置决策模型。"},deviceSidebar:{devices:"设备",settings:"设置",history:"历史记录",addDevice:"添加无线设备",addDeviceTooltip:"使用前需先通过 USB 线连接设备完成配对。纯无线配对暂不支持,如有需求请前往项目主页提 issue。",connectWifi:"连接 WiFi",disconnectWifi:"断开 WiFi",noDevicesConnected:"未连接设备",clickToRefresh:"点击刷新扫描设备",manualConnectTitle:"连接 WiFi 设备",manualConnectDescription:"选择连接方式",ipAddress:"IP 地址",port:"端口",invalidIpError:"IP 地址格式无效",invalidPortError:"端口必须在 1-65535 之间",directConnectTab:"直接连接",directConnectNote:"注意:首次连接需要先在「配对设备」选项卡中完成无线配对",emulatorPreset:"快速连接(模拟器)",emulatorMumu:"MuMu",emulatorNox:"夜神",emulatorLdplayer:"雷电",emulatorBluestacks:"BlueStacks",emulatorCustom:"自定义",emulatorNote:"选择上方预设可自动填充 IP 和端口(模拟器),或手动输入真机的 IP 和端口。请确保在设备设置中开启了 ADB 调试。",pairTab:"配对设备",pairingCode:"配对码",pairingPort:"配对端口",connectionPort:"连接端口",invalidPairingCodeError:"配对码必须是 6 位数字",pairingInstructions:"如何获取配对码:",pairingStep1:"1. 在设备上打开 设置 → 开发者选项",pairingStep2:'2. 启用"无线调试"',pairingStep3:'3. 点击"使用配对码配对设备"',pairingStep4:"4. 输入显示的 IP 地址、配对端口和 6 位配对码",pairingNote:"注意:配对端口和连接端口不同。配对成功后,系统将自动使用连接端口(默认 5555)进行连接。",discoveredDevices:"发现的设备",scanning:"扫描中...",scanAgain:"重新扫描",noDevicesFound:"未发现无线设备",noDirectDevices:"未发现可直接连接的设备",noPairingDevices:"未发现需要配对的设备",scanError:"扫描失败: {error}",pairingRequired:"可能需要配对",manualConnection:"手动连接",orManualConnect:"或手动连接",orManualPair:"或手动配对",connect:"连接",pairAndConnect:"配对并连接",orQrPair:"或使用二维码配对",qrPairingTitle:"二维码自动配对:",qrStep1:"1. 在设备上打开 设置 → 开发者选项",qrStep2:'2. 启用"无线调试"',qrStep3:'3. 点击"使用二维码配对设备"并扫描下方二维码',qrGenerate:"生成配对二维码",qrRegenerate:"重新生成",qrWaitingForScan:"等待扫描二维码...",qrPairing:"正在配对设备...",qrConnected:"配对成功!",qrTimeout:"超时:未检测到扫码",qrError:"配对失败",qrGenerateError:"生成二维码失败",remoteTab:"远程设备",remoteUrl:"远程服务器 URL",remoteUrlHint:"例如:http://192.168.1.100:8000",remoteDeviceId:"设备 ID",remoteDeviceIdHint:"远程服务器上的设备 ID",remoteLabel:"显示名称",remoteLabelPlaceholder:"例如:我的远程手机",remoteLabelHint:"可选:为此设备自定义名称",connectRemote:"连接",remoteUrlRequired:"远程服务器 URL 为必填项",remoteUrlInvalid:"URL 必须以 http:// 或 https:// 开头",remoteIdRequired:"设备 ID 为必填项",manageGroups:"管理分组"},devicePanel:{noConfig:"请先配置您的 API 设置",configureNow:"立即配置",connectDevice:"请先连接设备",connectAdb:"通过 ADB 连接",startChat:"开始对话",sendMessage:"发送消息...",running:"运行中",waiting:"等待输入",readyToHelp:"准备就绪",describeTask:"描述您想在手机上完成的任务",deviceNotReady:"设备未就绪",connectionError:"连接错误",screenshotError:"截图错误",actionError:"操作执行失败",initError:"初始化失败",initializing:"初始化",ready:"就绪",chatHistory:"聊天记录",clearHistory:"清除历史",clearHistoryConfirm:"确定要清除聊天记录吗?",configureFirst:"请先配置",initDeviceFirst:"请先初始化设备",whatToDo:"您想做什么?(Cmd+Enter 发送)",stepsCompleted:"步已完成",processing:"处理中...",screenshotFailed:"截图失败",loading:"加载中...",sensitiveContent:"敏感内容",auto:"自动",video:"视频",image:"图像",imageRefresh:"图像 (0.5秒刷新)",tapped:"已点击",tapError:"错误: {error}",swiped:"已滑动",swipeError:"滑动错误: {error}",newMessages:"有新消息,点击查看最新",tooltips:{workflowButton:"快速执行工作流",workflowButtonDesc:"选择并快速执行预设的工作流任务"}},deviceMonitor:{compact:"紧凑",standard:"标准",wide:"宽屏",auto:"自动",decreaseWidth:"减小宽度",increaseWidth:"增大宽度",showWidthControls:"显示宽度控制",hideWidthControls:"隐藏宽度控制",videoUnavailableWarning:"视频流不可用",requireHttpsOrLocalhost:"视频流需要 HTTPS 或 localhost 环境。建议下载桌面应用以获得完整功能。",browserNotSupported:"当前浏览器不支持 WebCodecs API。请使用最新版 Chrome 或 Edge 浏览器。",decoderInitFailed:"视频解码器初始化失败",codecNotSupported:"设备编解码器不支持",unknownError:"未知错误",downloadElectron:"下载桌面应用",videoStreamWarning:"视频流可能不可用,正在尝试连接..."},deviceCard:{unknownDevice:"未知设备",connectViaWifi:"连接 WiFi",disconnectWifi:"断开 WiFi",disconnectAll:"断开所有连接",deleteDevice:"删除设备",ready:"就绪",agentIdle:"空闲",agentBusy:"运行中",agentError:"错误",agentInitializing:"初始化中",remote:"远程",wifi:"WiFi",removeRemote:"移除远程设备",connectWifiTitle:"连接 WiFi",connectWifiContent:"切换到 WiFi 连接?请确保您的设备和电脑在同一网络。",disconnectWifiTitle:"断开 WiFi",disconnectWifiContent:"确定要断开 WiFi 连接吗?",disconnectAllTitle:"断开所有连接",disconnectAllContent:"确定要断开此设备的所有连接吗?这将断开 USB 和 WiFi 连接。",deleteDeviceTitle:"删除设备",deleteDeviceContent:"确定要删除此设备吗?这将断开连接。",editName:"编辑设备名称",editNameDialogTitle:"编辑设备名称",editNameDialogDescription:"为此设备设置自定义名称",deviceNameLabel:"设备名称",deviceNamePlaceholder:"输入自定义名称(留空则使用默认名称)",deviceSerialLabel:"序列号",saveNameSuccess:"设备名称更新成功",saveNameError:"更新设备名称失败",statusTooltip:{title:"当前状态:",idle:"空闲",busy:"忙碌",error:"错误",initializing:"初始化中",none:"未初始化",legend:{green:"🟢 绿色 - 空闲,可接收任务",yellow:"🟡 黄色 - 忙碌,正在执行任务",red:"🔴 红色 - 错误,遇到问题",gray:"⚪ 灰色 - 未初始化/初始化中"}}},presetConfigs:{bigmodel:{name:"智谱 BigModel",description:"智谱 AI 提供的 API 服务"},modelscope:{name:"ModelScope",description:"魔搭社区提供的 API 服务"},custom:{name:"自建服务",description:"vLLM / SGLang 等自建服务"}},toasts:{configSaved:"配置已保存",wifiConnected:"WiFi 已连接",wifiDisconnected:"WiFi 已断开",connectionFailed:"连接失败",disconnectFailed:"断开连接失败",wifiConnectionError:"WiFi 连接错误",wifiDisconnectError:"WiFi 断开连接错误",wifiManualConnected:"WiFi 设备已连接",wifiManualConnectError:"连接 WiFi 设备失败",wifiPaired:"WiFi 设备已配对并连接",wifiPairError:"WiFi 配对失败",remoteDeviceAddError:"添加远程设备失败"},history:{title:"任务历史",description:"查看 {deviceName} 的执行历史",today:"今天",yesterday:"昨天",earlier:"更早",noHistory:"暂无历史记录",noHistoryDescription:"完成的任务将显示在这里",success:"成功",failed:"失败",clearAll:"清空全部",clearAllConfirm:"确认清空该设备的所有历史记录?",deleteItem:"删除",deleteConfirm:"确认删除这条历史记录?",step:"第 {number} 步",viewAction:"查看动作",finalResult:"最终结果"},navigation:{chat:"对话",workflows:"Workflows",history:"历史记录",scheduledTasks:"定时任务",logs:"日志"},logs:{title:"日志文件",refresh:"刷新列表",openFolder:"打开日志目录",noLogs:"暂无日志文件",selectLog:"选择一个日志文件查看内容",loading:"加载中...",webVersionNotice:"您正在使用 Web 版本,日志查看功能仅在桌面版中可用。<br />请查看后端控制台或服务器日志文件。",compressedFileNote:"压缩文件,请在文件管理器中查看",loadFailed:"加载日志列表失败: {error}",readFailed:"读取日志失败: {error}",openFolderFailed:"打开日志目录失败: {error}"},workflows:{title:"Workflow 管理",createNew:"新建 Workflow",create:"创建 Workflow",edit:"编辑 Workflow",name:"名称",text:"任务内容",namePlaceholder:"例如:订购霸王茶姬",textPlaceholder:"例如:去美团点一杯霸王茶姬的伯牙绝弦,要去冰,加珍珠",empty:"暂无 Workflow,点击右上角创建",deleteConfirm:"确认删除此 Workflow?",quickRun:"快速执行",selectWorkflow:"选择 Workflow"},chatkit:{title:"AI 助手",layeredAgent:"分层代理模式",layeredAgentDesc:"规划层将任务分解为子任务,执行层独立完成每个子任务。你可以看到工具调用的详细过程。",modeLabel:"模式:",classicMode:"经典模式",layeredMode:"分层代理",classicModeDesc:"视觉模型直接执行任务",layeredModeDesc:"规划层分解任务,执行层独立完成子任务",maiUIModeDesc:"阿里云 MAI-UI 模型,开源高性能 GUI Agent"},historyPage:{title:"对话历史",selectDevice:"选择设备",noDevices:"没有可用设备",noRecords:"暂无记录",noRecordsDesc:"完成的任务将显示在这里",clearAll:"清空全部",clearAllConfirm:"确定清空该设备的所有历史记录?",success:"成功",failed:"失败",steps:"{count} 步",duration:"{time}",source:{chat:"对话",layered:"分层代理",scheduled:"定时任务"},loadMore:"加载更多",loading:"加载中...",deleteConfirm:"确定删除这条记录?",detailTitle:"对话详情",taskLabel:"任务",stepLabel:"步骤 {step}",thinkingLabel:"思考",actionLabel:"动作",noMessages:"暂无详细消息记录",resultLabel:"结果"},scheduledTasks:{title:"定时任务",create:"新建任务",edit:"编辑任务",noTasks:"暂无定时任务",noTasksDesc:"创建定时任务来自动执行工作流",taskName:"任务名称",taskNamePlaceholder:"例如:每日签到",workflow:"工作流",selectWorkflow:"选择工作流",device:"设备",selectDevice:"选择设备",cronExpression:"Cron 表达式",cronPlaceholder:"0 8 * * *",cronHelp:"格式:分 时 日 月 周",presets:"快捷预设",preset:{everyHour:"每小时",daily8am:"每天 8:00",daily12pm:"每天 12:00",daily6pm:"每天 18:00",weeklyMonday:"每周一 9:00"},enabled:"已启用",disabled:"已禁用",lastRun:"上次执行",nextRun:"下次执行",never:"从未",deleteConfirm:"确定删除这个定时任务?",noWorkflows:"没有可用的工作流,请先创建工作流。",noDevicesOnline:"没有在线设备",devicesSelected:"个设备已选择",selectGroup:"选择分组",groupDevices:"分组内所有设备"},deviceGroups:{manageTitle:"管理设备分组",manageDescription:"创建、编辑、删除和排序设备分组。拖拽分组可调整顺序。",createNew:"新建分组",createTitle:"新建分组",createDescription:"为设备创建一个新的分组。",editTitle:"编辑分组",editDescription:"修改分组名称。",deleteTitle:"删除分组",deleteContent:'确定要删除分组 "{name}" 吗?该分组内的设备将被移回默认分组。',groupNameLabel:"分组名称",groupNamePlaceholder:"请输入分组名称",defaultGroup:"默认",deviceCount:"台设备",noDevicesInGroup:"该分组暂无设备",moveTo:"移动到分组",currentGroup:"当前",deviceMoved:"设备已移动",moveFailed:"移动失败",fetchError:"获取分组失败",createSuccess:"分组创建成功",createError:"创建分组失败",updateSuccess:"分组更新成功",updateError:"更新分组失败",deleteSuccess:"分组删除成功",deleteError:"删除分组失败",reorderError:"调整顺序失败"}},Xw={en:Pw,zh:Yw},Qw={en:"EN",zh:"中文"},by=E.createContext(void 0);function Zw({children:a}){const[o,l]=E.useState("en");E.useEffect(()=>{const f=localStorage.getItem("locale");let d;f&&(f==="en"||f==="zh")?d=f:d=navigator.language.split("-")[0]==="zh"?"zh":"en",l(d)},[]);const r=f=>{l(f),localStorage.setItem("locale",f),document.documentElement.lang=f},c=E.useMemo(()=>({locale:o,setLocale:r,t:Xw[o],isRtl:!1}),[o]);return k.jsx(by.Provider,{value:c,children:a})}function Sy(){const a=E.useContext(by);if(!a)throw new Error("useI18n must be used within an I18nProvider");return a}function Kw(){const{locale:a,setLocale:o}=Sy();return{locale:a,setLocale:o,localeName:Qw[a]}}function xy(){const{t:a}=Sy();return a}var Ww=(a,o,l,r,c,f,d,g)=>{let h=document.documentElement,m=["light","dark"];function v(x){(Array.isArray(a)?a:[a]).forEach(w=>{let A=w==="class",R=A&&f?c.map(M=>f[M]||M):c;A?(h.classList.remove(...R),h.classList.add(f&&f[x]?f[x]:x)):h.setAttribute(w,x)}),y(x)}function y(x){g&&m.includes(x)&&(h.style.colorScheme=x)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)v(r);else try{let x=localStorage.getItem(o)||l,w=d&&x==="system"?b():x;v(w)}catch{}},gg=["light","dark"],wy="(prefers-color-scheme: dark)",Fw=typeof window>"u",bf=E.createContext(void 0),Jw={setTheme:a=>{},themes:[]},$w=()=>{var a;return(a=E.useContext(bf))!=null?a:Jw},Iw=a=>E.useContext(bf)?E.createElement(E.Fragment,null,a.children):E.createElement(t_,{...a}),e_=["light","dark"],t_=({forcedTheme:a,disableTransitionOnChange:o=!1,enableSystem:l=!0,enableColorScheme:r=!0,storageKey:c="theme",themes:f=e_,defaultTheme:d=l?"system":"light",attribute:g="data-theme",value:h,children:m,nonce:v,scriptProps:y})=>{let[b,x]=E.useState(()=>a_(c,d)),[w,A]=E.useState(()=>b==="system"?Yu():b),R=h?Object.values(h):f,M=E.useCallback(Z=>{let G=Z;if(!G)return;Z==="system"&&l&&(G=Yu());let N=h?h[G]:G,j=o?i_(v):null,J=document.documentElement,I=ee=>{ee==="class"?(J.classList.remove(...R),N&&J.classList.add(N)):ee.startsWith("data-")&&(N?J.setAttribute(ee,N):J.removeAttribute(ee))};if(Array.isArray(g)?g.forEach(I):I(g),r){let ee=gg.includes(d)?d:null,ce=gg.includes(G)?G:ee;J.style.colorScheme=ce}j?.()},[v]),H=E.useCallback(Z=>{let G=typeof Z=="function"?Z(b):Z;x(G);try{localStorage.setItem(c,G)}catch{}},[b]),B=E.useCallback(Z=>{let G=Yu(Z);A(G),b==="system"&&l&&!a&&M("system")},[b,a]);E.useEffect(()=>{let Z=window.matchMedia(wy);return Z.addListener(B),B(Z),()=>Z.removeListener(B)},[B]),E.useEffect(()=>{let Z=G=>{G.key===c&&(G.newValue?x(G.newValue):H(d))};return window.addEventListener("storage",Z),()=>window.removeEventListener("storage",Z)},[H]),E.useEffect(()=>{M(a??b)},[a,b]);let Y=E.useMemo(()=>({theme:b,setTheme:H,forcedTheme:a,resolvedTheme:b==="system"?w:b,themes:l?[...f,"system"]:f,systemTheme:l?w:void 0}),[b,H,a,w,l,f]);return E.createElement(bf.Provider,{value:Y},E.createElement(n_,{forcedTheme:a,storageKey:c,attribute:g,enableSystem:l,enableColorScheme:r,defaultTheme:d,value:h,themes:f,nonce:v,scriptProps:y}),m)},n_=E.memo(({forcedTheme:a,storageKey:o,attribute:l,enableSystem:r,enableColorScheme:c,defaultTheme:f,value:d,themes:g,nonce:h,scriptProps:m})=>{let v=JSON.stringify([l,o,f,a,g,d,r,c]).slice(1,-1);return E.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${Ww.toString()})(${v})`}})}),a_=(a,o)=>{if(Fw)return;let l;try{l=localStorage.getItem(a)||void 0}catch{}return l||o},i_=a=>{let o=document.createElement("style");return a&&o.setAttribute("nonce",a),o.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(o)},1)}},Yu=a=>(a||(a=window.matchMedia(wy)),a.matches?"dark":"light");const l_=yy("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",twitter:"bg-[#1d9bf0] text-white hover:bg-[#1d9bf0]/90 focus-visible:ring-[#1d9bf0]/20 dark:focus-visible:ring-[#1d9bf0]/40"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function o_({className:a,variant:o="default",size:l="default",asChild:r=!1,...c}){const f=r?bx:"button";return k.jsx(f,{"data-slot":"button","data-variant":o,"data-size":l,className:ts(l_({variant:o,size:l,className:a})),...c})}function r_(){const{theme:a,setTheme:o}=$w(),l=()=>{o(a==="dark"?"light":"dark")};return k.jsxs(o_,{variant:"ghost",size:"icon",onClick:l,className:"h-8 w-8 rounded-full",children:[k.jsx(Vw,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),k.jsx(qw,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),k.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}function Rn(a,o,{checkForDefaultPrevented:l=!0}={}){return function(c){if(a?.(c),l===!1||!c.defaultPrevented)return o?.(c)}}function sC(a,o){const l=E.createContext(o),r=f=>{const{children:d,...g}=f,h=E.useMemo(()=>g,Object.values(g));return k.jsx(l.Provider,{value:h,children:d})};r.displayName=a+"Provider";function c(f){const d=E.useContext(l);if(d)return d;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[r,c]}function _y(a,o=[]){let l=[];function r(f,d){const g=E.createContext(d),h=l.length;l=[...l,d];const m=y=>{const{scope:b,children:x,...w}=y,A=b?.[a]?.[h]||g,R=E.useMemo(()=>w,Object.values(w));return k.jsx(A.Provider,{value:R,children:x})};m.displayName=f+"Provider";function v(y,b){const x=b?.[a]?.[h]||g,w=E.useContext(x);if(w)return w;if(d!==void 0)return d;throw new Error(`\`${y}\` must be used within \`${f}\``)}return[m,v]}const c=()=>{const f=l.map(d=>E.createContext(d));return function(g){const h=g?.[a]||f;return E.useMemo(()=>({[`__scope${a}`]:{...g,[a]:h}}),[g,h])}};return c.scopeName=a,[r,s_(c,...o)]}function s_(...a){const o=a[0];if(a.length===1)return o;const l=()=>{const r=a.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const d=r.reduce((g,{useScope:h,scopeName:m})=>{const y=h(f)[`__scope${m}`];return{...g,...y}},{});return E.useMemo(()=>({[`__scope${o.scopeName}`]:d}),[d])}};return l.scopeName=o.scopeName,l}function c_(a){const o=u_(a),l=E.forwardRef((r,c)=>{const{children:f,...d}=r,g=E.Children.toArray(f),h=g.find(d_);if(h){const m=h.props.children,v=g.map(y=>y===h?E.Children.count(m)>1?E.Children.only(null):E.isValidElement(m)?m.props.children:null:y);return k.jsx(o,{...d,ref:c,children:E.isValidElement(m)?E.cloneElement(m,void 0,v):null})}return k.jsx(o,{...d,ref:c,children:f})});return l.displayName=`${a}.Slot`,l}function u_(a){const o=E.forwardRef((l,r)=>{const{children:c,...f}=l;if(E.isValidElement(c)){const d=m_(c),g=h_(f,c.props);return c.type!==E.Fragment&&(g.ref=r?yf(r,d):d),E.cloneElement(c,g)}return E.Children.count(c)>1?E.Children.only(null):null});return o.displayName=`${a}.SlotClone`,o}var Ey=Symbol("radix.slottable");function f_(a){const o=({children:l})=>k.jsx(k.Fragment,{children:l});return o.displayName=`${a}.Slottable`,o.__radixId=Ey,o}function d_(a){return E.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===Ey}function h_(a,o){const l={...o};for(const r in o){const c=a[r],f=o[r];/^on[A-Z]/.test(r)?c&&f?l[r]=(...g)=>{const h=f(...g);return c(...g),h}:c&&(l[r]=c):r==="style"?l[r]={...c,...f}:r==="className"&&(l[r]=[c,f].filter(Boolean).join(" "))}return{...a,...l}}function m_(a){let o=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning;return l?a.ref:(o=Object.getOwnPropertyDescriptor(a,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning,l?a.props.ref:a.props.ref||a.ref)}var p_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ma=p_.reduce((a,o)=>{const l=c_(`Primitive.${o}`),r=E.forwardRef((c,f)=>{const{asChild:d,...g}=c,h=d?l:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(h,{...g,ref:f})});return r.displayName=`Primitive.${o}`,{...a,[o]:r}},{});function g_(a,o){a&&es.flushSync(()=>a.dispatchEvent(o))}function ns(a){const o=E.useRef(a);return E.useEffect(()=>{o.current=a}),E.useMemo(()=>(...l)=>o.current?.(...l),[])}function y_(a,o=globalThis?.document){const l=ns(a);E.useEffect(()=>{const r=c=>{c.key==="Escape"&&l(c)};return o.addEventListener("keydown",r,{capture:!0}),()=>o.removeEventListener("keydown",r,{capture:!0})},[l,o])}var v_="DismissableLayer",$u="dismissableLayer.update",b_="dismissableLayer.pointerDownOutside",S_="dismissableLayer.focusOutside",yg,Ty=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cy=E.forwardRef((a,o)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:g,...h}=a,m=E.useContext(Ty),[v,y]=E.useState(null),b=v?.ownerDocument??globalThis?.document,[,x]=E.useState({}),w=Ya(o,N=>y(N)),A=Array.from(m.layers),[R]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),M=A.indexOf(R),H=v?A.indexOf(v):-1,B=m.layersWithOutsidePointerEventsDisabled.size>0,Y=H>=M,Z=__(N=>{const j=N.target,J=[...m.branches].some(I=>I.contains(j));!Y||J||(c?.(N),d?.(N),N.defaultPrevented||g?.())},b),G=E_(N=>{const j=N.target;[...m.branches].some(I=>I.contains(j))||(f?.(N),d?.(N),N.defaultPrevented||g?.())},b);return y_(N=>{H===m.layers.size-1&&(r?.(N),!N.defaultPrevented&&g&&(N.preventDefault(),g()))},b),E.useEffect(()=>{if(v)return l&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(yg=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),vg(),()=>{l&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=yg)}},[v,b,l,m]),E.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),vg())},[v,m]),E.useEffect(()=>{const N=()=>x({});return document.addEventListener($u,N),()=>document.removeEventListener($u,N)},[]),k.jsx(ma.div,{...h,ref:w,style:{pointerEvents:B?Y?"auto":"none":void 0,...a.style},onFocusCapture:Rn(a.onFocusCapture,G.onFocusCapture),onBlurCapture:Rn(a.onBlurCapture,G.onBlurCapture),onPointerDownCapture:Rn(a.onPointerDownCapture,Z.onPointerDownCapture)})});Cy.displayName=v_;var x_="DismissableLayerBranch",w_=E.forwardRef((a,o)=>{const l=E.useContext(Ty),r=E.useRef(null),c=Ya(o,r);return E.useEffect(()=>{const f=r.current;if(f)return l.branches.add(f),()=>{l.branches.delete(f)}},[l.branches]),k.jsx(ma.div,{...a,ref:c})});w_.displayName=x_;function __(a,o=globalThis?.document){const l=ns(a),r=E.useRef(!1),c=E.useRef(()=>{});return E.useEffect(()=>{const f=g=>{if(g.target&&!r.current){let h=function(){Ry(b_,l,m,{discrete:!0})};const m={originalEvent:g};g.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=h,o.addEventListener("click",c.current,{once:!0})):h()}else o.removeEventListener("click",c.current);r.current=!1},d=window.setTimeout(()=>{o.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),o.removeEventListener("pointerdown",f),o.removeEventListener("click",c.current)}},[o,l]),{onPointerDownCapture:()=>r.current=!0}}function E_(a,o=globalThis?.document){const l=ns(a),r=E.useRef(!1);return E.useEffect(()=>{const c=f=>{f.target&&!r.current&&Ry(S_,l,{originalEvent:f},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,l]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vg(){const a=new CustomEvent($u);document.dispatchEvent(a)}function Ry(a,o,l,{discrete:r}){const c=l.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:l});o&&c.addEventListener(a,o,{once:!0}),r?g_(c,f):c.dispatchEvent(f)}var fa=globalThis?.document?E.useLayoutEffect:()=>{},T_=uf[" useId ".trim().toString()]||(()=>{}),C_=0;function R_(a){const[o,l]=E.useState(T_());return fa(()=>{l(r=>r??String(C_++))},[a]),a||(o?`radix-${o}`:"")}const A_=["top","right","bottom","left"],da=Math.min,Ot=Math.max,Qr=Math.round,Ar=Math.floor,tn=a=>({x:a,y:a}),M_={left:"right",right:"left",bottom:"top",top:"bottom"},O_={start:"end",end:"start"};function Iu(a,o,l){return Ot(a,da(o,l))}function On(a,o){return typeof a=="function"?a(o):a}function Dn(a){return a.split("-")[0]}function Gi(a){return a.split("-")[1]}function Sf(a){return a==="x"?"y":"x"}function xf(a){return a==="y"?"height":"width"}const D_=new Set(["top","bottom"]);function en(a){return D_.has(Dn(a))?"y":"x"}function wf(a){return Sf(en(a))}function z_(a,o,l){l===void 0&&(l=!1);const r=Gi(a),c=wf(a),f=xf(c);let d=c==="x"?r===(l?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[f]>o.floating[f]&&(d=Zr(d)),[d,Zr(d)]}function N_(a){const o=Zr(a);return[ef(a),o,ef(o)]}function ef(a){return a.replace(/start|end/g,o=>O_[o])}const bg=["left","right"],Sg=["right","left"],L_=["top","bottom"],k_=["bottom","top"];function U_(a,o,l){switch(a){case"top":case"bottom":return l?o?Sg:bg:o?bg:Sg;case"left":case"right":return o?L_:k_;default:return[]}}function j_(a,o,l,r){const c=Gi(a);let f=U_(Dn(a),l==="start",r);return c&&(f=f.map(d=>d+"-"+c),o&&(f=f.concat(f.map(ef)))),f}function Zr(a){return a.replace(/left|right|bottom|top/g,o=>M_[o])}function B_(a){return{top:0,right:0,bottom:0,left:0,...a}}function Ay(a){return typeof a!="number"?B_(a):{top:a,right:a,bottom:a,left:a}}function Kr(a){const{x:o,y:l,width:r,height:c}=a;return{width:r,height:c,top:l,left:o,right:o+r,bottom:l+c,x:o,y:l}}function xg(a,o,l){let{reference:r,floating:c}=a;const f=en(o),d=wf(o),g=xf(d),h=Dn(o),m=f==="y",v=r.x+r.width/2-c.width/2,y=r.y+r.height/2-c.height/2,b=r[g]/2-c[g]/2;let x;switch(h){case"top":x={x:v,y:r.y-c.height};break;case"bottom":x={x:v,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y};break;case"left":x={x:r.x-c.width,y};break;default:x={x:r.x,y:r.y}}switch(Gi(o)){case"start":x[d]-=b*(l&&m?-1:1);break;case"end":x[d]+=b*(l&&m?-1:1);break}return x}const H_=async(a,o,l)=>{const{placement:r="bottom",strategy:c="absolute",middleware:f=[],platform:d}=l,g=f.filter(Boolean),h=await(d.isRTL==null?void 0:d.isRTL(o));let m=await d.getElementRects({reference:a,floating:o,strategy:c}),{x:v,y}=xg(m,r,h),b=r,x={},w=0;for(let A=0;A<g.length;A++){const{name:R,fn:M}=g[A],{x:H,y:B,data:Y,reset:Z}=await M({x:v,y,initialPlacement:r,placement:b,strategy:c,middlewareData:x,rects:m,platform:d,elements:{reference:a,floating:o}});v=H??v,y=B??y,x={...x,[R]:{...x[R],...Y}},Z&&w<=50&&(w++,typeof Z=="object"&&(Z.placement&&(b=Z.placement),Z.rects&&(m=Z.rects===!0?await d.getElementRects({reference:a,floating:o,strategy:c}):Z.rects),{x:v,y}=xg(m,b,h)),A=-1)}return{x:v,y,placement:b,strategy:c,middlewareData:x}};async function Wl(a,o){var l;o===void 0&&(o={});const{x:r,y:c,platform:f,rects:d,elements:g,strategy:h}=a,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=On(o,a),w=Ay(x),R=g[b?y==="floating"?"reference":"floating":y],M=Kr(await f.getClippingRect({element:(l=await(f.isElement==null?void 0:f.isElement(R)))==null||l?R:R.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(g.floating)),boundary:m,rootBoundary:v,strategy:h})),H=y==="floating"?{x:r,y:c,width:d.floating.width,height:d.floating.height}:d.reference,B=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g.floating)),Y=await(f.isElement==null?void 0:f.isElement(B))?await(f.getScale==null?void 0:f.getScale(B))||{x:1,y:1}:{x:1,y:1},Z=Kr(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:H,offsetParent:B,strategy:h}):H);return{top:(M.top-Z.top+w.top)/Y.y,bottom:(Z.bottom-M.bottom+w.bottom)/Y.y,left:(M.left-Z.left+w.left)/Y.x,right:(Z.right-M.right+w.right)/Y.x}}const q_=a=>({name:"arrow",options:a,async fn(o){const{x:l,y:r,placement:c,rects:f,platform:d,elements:g,middlewareData:h}=o,{element:m,padding:v=0}=On(a,o)||{};if(m==null)return{};const y=Ay(v),b={x:l,y:r},x=wf(c),w=xf(x),A=await d.getDimensions(m),R=x==="y",M=R?"top":"left",H=R?"bottom":"right",B=R?"clientHeight":"clientWidth",Y=f.reference[w]+f.reference[x]-b[x]-f.floating[w],Z=b[x]-f.reference[x],G=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m));let N=G?G[B]:0;(!N||!await(d.isElement==null?void 0:d.isElement(G)))&&(N=g.floating[B]||f.floating[w]);const j=Y/2-Z/2,J=N/2-A[w]/2-1,I=da(y[M],J),ee=da(y[H],J),ce=I,me=N-A[w]-ee,de=N/2-A[w]/2+j,pe=Iu(ce,de,me),D=!h.arrow&&Gi(c)!=null&&de!==pe&&f.reference[w]/2-(de<ce?I:ee)-A[w]/2<0,W=D?de<ce?de-ce:de-me:0;return{[x]:b[x]+W,data:{[x]:pe,centerOffset:de-pe-W,...D&&{alignmentOffset:W}},reset:D}}}),G_=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var l,r;const{placement:c,middlewareData:f,rects:d,initialPlacement:g,platform:h,elements:m}=o,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:A=!0,...R}=On(a,o);if((l=f.arrow)!=null&&l.alignmentOffset)return{};const M=Dn(c),H=en(g),B=Dn(g)===g,Y=await(h.isRTL==null?void 0:h.isRTL(m.floating)),Z=b||(B||!A?[Zr(g)]:N_(g)),G=w!=="none";!b&&G&&Z.push(...j_(g,A,w,Y));const N=[g,...Z],j=await Wl(o,R),J=[];let I=((r=f.flip)==null?void 0:r.overflows)||[];if(v&&J.push(j[M]),y){const de=z_(c,d,Y);J.push(j[de[0]],j[de[1]])}if(I=[...I,{placement:c,overflows:J}],!J.every(de=>de<=0)){var ee,ce;const de=(((ee=f.flip)==null?void 0:ee.index)||0)+1,pe=N[de];if(pe&&(!(y==="alignment"?H!==en(pe):!1)||I.every(V=>en(V.placement)===H?V.overflows[0]>0:!0)))return{data:{index:de,overflows:I},reset:{placement:pe}};let D=(ce=I.filter(W=>W.overflows[0]<=0).sort((W,V)=>W.overflows[1]-V.overflows[1])[0])==null?void 0:ce.placement;if(!D)switch(x){case"bestFit":{var me;const W=(me=I.filter(V=>{if(G){const fe=en(V.placement);return fe===H||fe==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(fe=>fe>0).reduce((fe,ye)=>fe+ye,0)]).sort((V,fe)=>V[1]-fe[1])[0])==null?void 0:me[0];W&&(D=W);break}case"initialPlacement":D=g;break}if(c!==D)return{reset:{placement:D}}}return{}}}};function wg(a,o){return{top:a.top-o.height,right:a.right-o.width,bottom:a.bottom-o.height,left:a.left-o.width}}function _g(a){return A_.some(o=>a[o]>=0)}const V_=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(o){const{rects:l}=o,{strategy:r="referenceHidden",...c}=On(a,o);switch(r){case"referenceHidden":{const f=await Wl(o,{...c,elementContext:"reference"}),d=wg(f,l.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:_g(d)}}}case"escaped":{const f=await Wl(o,{...c,altBoundary:!0}),d=wg(f,l.floating);return{data:{escapedOffsets:d,escaped:_g(d)}}}default:return{}}}}},My=new Set(["left","top"]);async function P_(a,o){const{placement:l,platform:r,elements:c}=a,f=await(r.isRTL==null?void 0:r.isRTL(c.floating)),d=Dn(l),g=Gi(l),h=en(l)==="y",m=My.has(d)?-1:1,v=f&&h?-1:1,y=On(o,a);let{mainAxis:b,crossAxis:x,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return g&&typeof w=="number"&&(x=g==="end"?w*-1:w),h?{x:x*v,y:b*m}:{x:b*m,y:x*v}}const Y_=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var l,r;const{x:c,y:f,placement:d,middlewareData:g}=o,h=await P_(o,a);return d===((l=g.offset)==null?void 0:l.placement)&&(r=g.arrow)!=null&&r.alignmentOffset?{}:{x:c+h.x,y:f+h.y,data:{...h,placement:d}}}}},X_=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){const{x:l,y:r,placement:c}=o,{mainAxis:f=!0,crossAxis:d=!1,limiter:g={fn:R=>{let{x:M,y:H}=R;return{x:M,y:H}}},...h}=On(a,o),m={x:l,y:r},v=await Wl(o,h),y=en(Dn(c)),b=Sf(y);let x=m[b],w=m[y];if(f){const R=b==="y"?"top":"left",M=b==="y"?"bottom":"right",H=x+v[R],B=x-v[M];x=Iu(H,x,B)}if(d){const R=y==="y"?"top":"left",M=y==="y"?"bottom":"right",H=w+v[R],B=w-v[M];w=Iu(H,w,B)}const A=g.fn({...o,[b]:x,[y]:w});return{...A,data:{x:A.x-l,y:A.y-r,enabled:{[b]:f,[y]:d}}}}}},Q_=function(a){return a===void 0&&(a={}),{options:a,fn(o){const{x:l,y:r,placement:c,rects:f,middlewareData:d}=o,{offset:g=0,mainAxis:h=!0,crossAxis:m=!0}=On(a,o),v={x:l,y:r},y=en(c),b=Sf(y);let x=v[b],w=v[y];const A=On(g,o),R=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(h){const B=b==="y"?"height":"width",Y=f.reference[b]-f.floating[B]+R.mainAxis,Z=f.reference[b]+f.reference[B]-R.mainAxis;x<Y?x=Y:x>Z&&(x=Z)}if(m){var M,H;const B=b==="y"?"width":"height",Y=My.has(Dn(c)),Z=f.reference[y]-f.floating[B]+(Y&&((M=d.offset)==null?void 0:M[y])||0)+(Y?0:R.crossAxis),G=f.reference[y]+f.reference[B]+(Y?0:((H=d.offset)==null?void 0:H[y])||0)-(Y?R.crossAxis:0);w<Z?w=Z:w>G&&(w=G)}return{[b]:x,[y]:w}}}},Z_=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var l,r;const{placement:c,rects:f,platform:d,elements:g}=o,{apply:h=()=>{},...m}=On(a,o),v=await Wl(o,m),y=Dn(c),b=Gi(c),x=en(c)==="y",{width:w,height:A}=f.floating;let R,M;y==="top"||y==="bottom"?(R=y,M=b===(await(d.isRTL==null?void 0:d.isRTL(g.floating))?"start":"end")?"left":"right"):(M=y,R=b==="end"?"top":"bottom");const H=A-v.top-v.bottom,B=w-v.left-v.right,Y=da(A-v[R],H),Z=da(w-v[M],B),G=!o.middlewareData.shift;let N=Y,j=Z;if((l=o.middlewareData.shift)!=null&&l.enabled.x&&(j=B),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(N=H),G&&!b){const I=Ot(v.left,0),ee=Ot(v.right,0),ce=Ot(v.top,0),me=Ot(v.bottom,0);x?j=w-2*(I!==0||ee!==0?I+ee:Ot(v.left,v.right)):N=A-2*(ce!==0||me!==0?ce+me:Ot(v.top,v.bottom))}await h({...o,availableWidth:j,availableHeight:N});const J=await d.getDimensions(g.floating);return w!==J.width||A!==J.height?{reset:{rects:!0}}:{}}}};function as(){return typeof window<"u"}function Vi(a){return Oy(a)?(a.nodeName||"").toLowerCase():"#document"}function Dt(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function ln(a){var o;return(o=(Oy(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function Oy(a){return as()?a instanceof Node||a instanceof Dt(a).Node:!1}function Kt(a){return as()?a instanceof Element||a instanceof Dt(a).Element:!1}function an(a){return as()?a instanceof HTMLElement||a instanceof Dt(a).HTMLElement:!1}function Eg(a){return!as()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Dt(a).ShadowRoot}const K_=new Set(["inline","contents"]);function Il(a){const{overflow:o,overflowX:l,overflowY:r,display:c}=Wt(a);return/auto|scroll|overlay|hidden|clip/.test(o+r+l)&&!K_.has(c)}const W_=new Set(["table","td","th"]);function F_(a){return W_.has(Vi(a))}const J_=[":popover-open",":modal"];function is(a){return J_.some(o=>{try{return a.matches(o)}catch{return!1}})}const $_=["transform","translate","scale","rotate","perspective"],I_=["transform","translate","scale","rotate","perspective","filter"],eE=["paint","layout","strict","content"];function _f(a){const o=Ef(),l=Kt(a)?Wt(a):a;return $_.some(r=>l[r]?l[r]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!o&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!o&&(l.filter?l.filter!=="none":!1)||I_.some(r=>(l.willChange||"").includes(r))||eE.some(r=>(l.contain||"").includes(r))}function tE(a){let o=ha(a);for(;an(o)&&!ji(o);){if(_f(o))return o;if(is(o))return null;o=ha(o)}return null}function Ef(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const nE=new Set(["html","body","#document"]);function ji(a){return nE.has(Vi(a))}function Wt(a){return Dt(a).getComputedStyle(a)}function ls(a){return Kt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ha(a){if(Vi(a)==="html")return a;const o=a.assignedSlot||a.parentNode||Eg(a)&&a.host||ln(a);return Eg(o)?o.host:o}function Dy(a){const o=ha(a);return ji(o)?a.ownerDocument?a.ownerDocument.body:a.body:an(o)&&Il(o)?o:Dy(o)}function Fl(a,o,l){var r;o===void 0&&(o=[]),l===void 0&&(l=!0);const c=Dy(a),f=c===((r=a.ownerDocument)==null?void 0:r.body),d=Dt(c);if(f){const g=tf(d);return o.concat(d,d.visualViewport||[],Il(c)?c:[],g&&l?Fl(g):[])}return o.concat(c,Fl(c,[],l))}function tf(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function zy(a){const o=Wt(a);let l=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const c=an(a),f=c?a.offsetWidth:l,d=c?a.offsetHeight:r,g=Qr(l)!==f||Qr(r)!==d;return g&&(l=f,r=d),{width:l,height:r,$:g}}function Tf(a){return Kt(a)?a:a.contextElement}function Ni(a){const o=Tf(a);if(!an(o))return tn(1);const l=o.getBoundingClientRect(),{width:r,height:c,$:f}=zy(o);let d=(f?Qr(l.width):l.width)/r,g=(f?Qr(l.height):l.height)/c;return(!d||!Number.isFinite(d))&&(d=1),(!g||!Number.isFinite(g))&&(g=1),{x:d,y:g}}const aE=tn(0);function Ny(a){const o=Dt(a);return!Ef()||!o.visualViewport?aE:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function iE(a,o,l){return o===void 0&&(o=!1),!l||o&&l!==Dt(a)?!1:o}function Ga(a,o,l,r){o===void 0&&(o=!1),l===void 0&&(l=!1);const c=a.getBoundingClientRect(),f=Tf(a);let d=tn(1);o&&(r?Kt(r)&&(d=Ni(r)):d=Ni(a));const g=iE(f,l,r)?Ny(f):tn(0);let h=(c.left+g.x)/d.x,m=(c.top+g.y)/d.y,v=c.width/d.x,y=c.height/d.y;if(f){const b=Dt(f),x=r&&Kt(r)?Dt(r):r;let w=b,A=tf(w);for(;A&&r&&x!==w;){const R=Ni(A),M=A.getBoundingClientRect(),H=Wt(A),B=M.left+(A.clientLeft+parseFloat(H.paddingLeft))*R.x,Y=M.top+(A.clientTop+parseFloat(H.paddingTop))*R.y;h*=R.x,m*=R.y,v*=R.x,y*=R.y,h+=B,m+=Y,w=Dt(A),A=tf(w)}}return Kr({width:v,height:y,x:h,y:m})}function os(a,o){const l=ls(a).scrollLeft;return o?o.left+l:Ga(ln(a)).left+l}function Ly(a,o){const l=a.getBoundingClientRect(),r=l.left+o.scrollLeft-os(a,l),c=l.top+o.scrollTop;return{x:r,y:c}}function lE(a){let{elements:o,rect:l,offsetParent:r,strategy:c}=a;const f=c==="fixed",d=ln(r),g=o?is(o.floating):!1;if(r===d||g&&f)return l;let h={scrollLeft:0,scrollTop:0},m=tn(1);const v=tn(0),y=an(r);if((y||!y&&!f)&&((Vi(r)!=="body"||Il(d))&&(h=ls(r)),an(r))){const x=Ga(r);m=Ni(r),v.x=x.x+r.clientLeft,v.y=x.y+r.clientTop}const b=d&&!y&&!f?Ly(d,h):tn(0);return{width:l.width*m.x,height:l.height*m.y,x:l.x*m.x-h.scrollLeft*m.x+v.x+b.x,y:l.y*m.y-h.scrollTop*m.y+v.y+b.y}}function oE(a){return Array.from(a.getClientRects())}function rE(a){const o=ln(a),l=ls(a),r=a.ownerDocument.body,c=Ot(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),f=Ot(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let d=-l.scrollLeft+os(a);const g=-l.scrollTop;return Wt(r).direction==="rtl"&&(d+=Ot(o.clientWidth,r.clientWidth)-c),{width:c,height:f,x:d,y:g}}const Tg=25;function sE(a,o){const l=Dt(a),r=ln(a),c=l.visualViewport;let f=r.clientWidth,d=r.clientHeight,g=0,h=0;if(c){f=c.width,d=c.height;const v=Ef();(!v||v&&o==="fixed")&&(g=c.offsetLeft,h=c.offsetTop)}const m=os(r);if(m<=0){const v=r.ownerDocument,y=v.body,b=getComputedStyle(y),x=v.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(r.clientWidth-y.clientWidth-x);w<=Tg&&(f-=w)}else m<=Tg&&(f+=m);return{width:f,height:d,x:g,y:h}}const cE=new Set(["absolute","fixed"]);function uE(a,o){const l=Ga(a,!0,o==="fixed"),r=l.top+a.clientTop,c=l.left+a.clientLeft,f=an(a)?Ni(a):tn(1),d=a.clientWidth*f.x,g=a.clientHeight*f.y,h=c*f.x,m=r*f.y;return{width:d,height:g,x:h,y:m}}function Cg(a,o,l){let r;if(o==="viewport")r=sE(a,l);else if(o==="document")r=rE(ln(a));else if(Kt(o))r=uE(o,l);else{const c=Ny(a);r={x:o.x-c.x,y:o.y-c.y,width:o.width,height:o.height}}return Kr(r)}function ky(a,o){const l=ha(a);return l===o||!Kt(l)||ji(l)?!1:Wt(l).position==="fixed"||ky(l,o)}function fE(a,o){const l=o.get(a);if(l)return l;let r=Fl(a,[],!1).filter(g=>Kt(g)&&Vi(g)!=="body"),c=null;const f=Wt(a).position==="fixed";let d=f?ha(a):a;for(;Kt(d)&&!ji(d);){const g=Wt(d),h=_f(d);!h&&g.position==="fixed"&&(c=null),(f?!h&&!c:!h&&g.position==="static"&&!!c&&cE.has(c.position)||Il(d)&&!h&&ky(a,d))?r=r.filter(v=>v!==d):c=g,d=ha(d)}return o.set(a,r),r}function dE(a){let{element:o,boundary:l,rootBoundary:r,strategy:c}=a;const d=[...l==="clippingAncestors"?is(o)?[]:fE(o,this._c):[].concat(l),r],g=d[0],h=d.reduce((m,v)=>{const y=Cg(o,v,c);return m.top=Ot(y.top,m.top),m.right=da(y.right,m.right),m.bottom=da(y.bottom,m.bottom),m.left=Ot(y.left,m.left),m},Cg(o,g,c));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function hE(a){const{width:o,height:l}=zy(a);return{width:o,height:l}}function mE(a,o,l){const r=an(o),c=ln(o),f=l==="fixed",d=Ga(a,!0,f,o);let g={scrollLeft:0,scrollTop:0};const h=tn(0);function m(){h.x=os(c)}if(r||!r&&!f)if((Vi(o)!=="body"||Il(c))&&(g=ls(o)),r){const x=Ga(o,!0,f,o);h.x=x.x+o.clientLeft,h.y=x.y+o.clientTop}else c&&m();f&&!r&&c&&m();const v=c&&!r&&!f?Ly(c,g):tn(0),y=d.left+g.scrollLeft-h.x-v.x,b=d.top+g.scrollTop-h.y-v.y;return{x:y,y:b,width:d.width,height:d.height}}function Xu(a){return Wt(a).position==="static"}function Rg(a,o){if(!an(a)||Wt(a).position==="fixed")return null;if(o)return o(a);let l=a.offsetParent;return ln(a)===l&&(l=l.ownerDocument.body),l}function Uy(a,o){const l=Dt(a);if(is(a))return l;if(!an(a)){let c=ha(a);for(;c&&!ji(c);){if(Kt(c)&&!Xu(c))return c;c=ha(c)}return l}let r=Rg(a,o);for(;r&&F_(r)&&Xu(r);)r=Rg(r,o);return r&&ji(r)&&Xu(r)&&!_f(r)?l:r||tE(a)||l}const pE=async function(a){const o=this.getOffsetParent||Uy,l=this.getDimensions,r=await l(a.floating);return{reference:mE(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gE(a){return Wt(a).direction==="rtl"}const yE={convertOffsetParentRelativeRectToViewportRelativeRect:lE,getDocumentElement:ln,getClippingRect:dE,getOffsetParent:Uy,getElementRects:pE,getClientRects:oE,getDimensions:hE,getScale:Ni,isElement:Kt,isRTL:gE};function jy(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function vE(a,o){let l=null,r;const c=ln(a);function f(){var g;clearTimeout(r),(g=l)==null||g.disconnect(),l=null}function d(g,h){g===void 0&&(g=!1),h===void 0&&(h=1),f();const m=a.getBoundingClientRect(),{left:v,top:y,width:b,height:x}=m;if(g||o(),!b||!x)return;const w=Ar(y),A=Ar(c.clientWidth-(v+b)),R=Ar(c.clientHeight-(y+x)),M=Ar(v),B={rootMargin:-w+"px "+-A+"px "+-R+"px "+-M+"px",threshold:Ot(0,da(1,h))||1};let Y=!0;function Z(G){const N=G[0].intersectionRatio;if(N!==h){if(!Y)return d();N?d(!1,N):r=setTimeout(()=>{d(!1,1e-7)},1e3)}N===1&&!jy(m,a.getBoundingClientRect())&&d(),Y=!1}try{l=new IntersectionObserver(Z,{...B,root:c.ownerDocument})}catch{l=new IntersectionObserver(Z,B)}l.observe(a)}return d(!0),f}function bE(a,o,l,r){r===void 0&&(r={});const{ancestorScroll:c=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,m=Tf(a),v=c||f?[...m?Fl(m):[],...Fl(o)]:[];v.forEach(M=>{c&&M.addEventListener("scroll",l,{passive:!0}),f&&M.addEventListener("resize",l)});const y=m&&g?vE(m,l):null;let b=-1,x=null;d&&(x=new ResizeObserver(M=>{let[H]=M;H&&H.target===m&&x&&(x.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var B;(B=x)==null||B.observe(o)})),l()}),m&&!h&&x.observe(m),x.observe(o));let w,A=h?Ga(a):null;h&&R();function R(){const M=Ga(a);A&&!jy(A,M)&&l(),A=M,w=requestAnimationFrame(R)}return l(),()=>{var M;v.forEach(H=>{c&&H.removeEventListener("scroll",l),f&&H.removeEventListener("resize",l)}),y?.(),(M=x)==null||M.disconnect(),x=null,h&&cancelAnimationFrame(w)}}const SE=Y_,xE=X_,wE=G_,_E=Z_,EE=V_,Ag=q_,TE=Q_,CE=(a,o,l)=>{const r=new Map,c={platform:yE,...l},f={...c.platform,_c:r};return H_(a,o,{...c,platform:f})};var RE=typeof document<"u",AE=function(){},Nr=RE?E.useLayoutEffect:AE;function Wr(a,o){if(a===o)return!0;if(typeof a!=typeof o)return!1;if(typeof a=="function"&&a.toString()===o.toString())return!0;let l,r,c;if(a&&o&&typeof a=="object"){if(Array.isArray(a)){if(l=a.length,l!==o.length)return!1;for(r=l;r--!==0;)if(!Wr(a[r],o[r]))return!1;return!0}if(c=Object.keys(a),l=c.length,l!==Object.keys(o).length)return!1;for(r=l;r--!==0;)if(!{}.hasOwnProperty.call(o,c[r]))return!1;for(r=l;r--!==0;){const f=c[r];if(!(f==="_owner"&&a.$$typeof)&&!Wr(a[f],o[f]))return!1}return!0}return a!==a&&o!==o}function By(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function Mg(a,o){const l=By(a);return Math.round(o*l)/l}function Qu(a){const o=E.useRef(a);return Nr(()=>{o.current=a}),o}function ME(a){a===void 0&&(a={});const{placement:o="bottom",strategy:l="absolute",middleware:r=[],platform:c,elements:{reference:f,floating:d}={},transform:g=!0,whileElementsMounted:h,open:m}=a,[v,y]=E.useState({x:0,y:0,strategy:l,placement:o,middlewareData:{},isPositioned:!1}),[b,x]=E.useState(r);Wr(b,r)||x(r);const[w,A]=E.useState(null),[R,M]=E.useState(null),H=E.useCallback(V=>{V!==G.current&&(G.current=V,A(V))},[]),B=E.useCallback(V=>{V!==N.current&&(N.current=V,M(V))},[]),Y=f||w,Z=d||R,G=E.useRef(null),N=E.useRef(null),j=E.useRef(v),J=h!=null,I=Qu(h),ee=Qu(c),ce=Qu(m),me=E.useCallback(()=>{if(!G.current||!N.current)return;const V={placement:o,strategy:l,middleware:b};ee.current&&(V.platform=ee.current),CE(G.current,N.current,V).then(fe=>{const ye={...fe,isPositioned:ce.current!==!1};de.current&&!Wr(j.current,ye)&&(j.current=ye,es.flushSync(()=>{y(ye)}))})},[b,o,l,ee,ce]);Nr(()=>{m===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,y(V=>({...V,isPositioned:!1})))},[m]);const de=E.useRef(!1);Nr(()=>(de.current=!0,()=>{de.current=!1}),[]),Nr(()=>{if(Y&&(G.current=Y),Z&&(N.current=Z),Y&&Z){if(I.current)return I.current(Y,Z,me);me()}},[Y,Z,me,I,J]);const pe=E.useMemo(()=>({reference:G,floating:N,setReference:H,setFloating:B}),[H,B]),D=E.useMemo(()=>({reference:Y,floating:Z}),[Y,Z]),W=E.useMemo(()=>{const V={position:l,left:0,top:0};if(!D.floating)return V;const fe=Mg(D.floating,v.x),ye=Mg(D.floating,v.y);return g?{...V,transform:"translate("+fe+"px, "+ye+"px)",...By(D.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:fe,top:ye}},[l,g,D.floating,v.x,v.y]);return E.useMemo(()=>({...v,update:me,refs:pe,elements:D,floatingStyles:W}),[v,me,pe,D,W])}const OE=a=>{function o(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:a,fn(l){const{element:r,padding:c}=typeof a=="function"?a(l):a;return r&&o(r)?r.current!=null?Ag({element:r.current,padding:c}).fn(l):{}:r?Ag({element:r,padding:c}).fn(l):{}}}},DE=(a,o)=>({...SE(a),options:[a,o]}),zE=(a,o)=>({...xE(a),options:[a,o]}),NE=(a,o)=>({...TE(a),options:[a,o]}),LE=(a,o)=>({...wE(a),options:[a,o]}),kE=(a,o)=>({..._E(a),options:[a,o]}),UE=(a,o)=>({...EE(a),options:[a,o]}),jE=(a,o)=>({...OE(a),options:[a,o]});var BE="Arrow",Hy=E.forwardRef((a,o)=>{const{children:l,width:r=10,height:c=5,...f}=a;return k.jsx(ma.svg,{...f,ref:o,width:r,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?l:k.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hy.displayName=BE;var HE=Hy;function qE(a){const[o,l]=E.useState(void 0);return fa(()=>{if(a){l({width:a.offsetWidth,height:a.offsetHeight});const r=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const f=c[0];let d,g;if("borderBoxSize"in f){const h=f.borderBoxSize,m=Array.isArray(h)?h[0]:h;d=m.inlineSize,g=m.blockSize}else d=a.offsetWidth,g=a.offsetHeight;l({width:d,height:g})});return r.observe(a,{box:"border-box"}),()=>r.unobserve(a)}else l(void 0)},[a]),o}var Cf="Popper",[qy,Gy]=_y(Cf),[GE,Vy]=qy(Cf),Py=a=>{const{__scopePopper:o,children:l}=a,[r,c]=E.useState(null);return k.jsx(GE,{scope:o,anchor:r,onAnchorChange:c,children:l})};Py.displayName=Cf;var Yy="PopperAnchor",Xy=E.forwardRef((a,o)=>{const{__scopePopper:l,virtualRef:r,...c}=a,f=Vy(Yy,l),d=E.useRef(null),g=Ya(o,d),h=E.useRef(null);return E.useEffect(()=>{const m=h.current;h.current=r?.current||d.current,m!==h.current&&f.onAnchorChange(h.current)}),r?null:k.jsx(ma.div,{...c,ref:g})});Xy.displayName=Yy;var Rf="PopperContent",[VE,PE]=qy(Rf),Qy=E.forwardRef((a,o)=>{const{__scopePopper:l,side:r="bottom",sideOffset:c=0,align:f="center",alignOffset:d=0,arrowPadding:g=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:w,...A}=a,R=Vy(Rf,l),[M,H]=E.useState(null),B=Ya(o,le=>H(le)),[Y,Z]=E.useState(null),G=qE(Y),N=G?.width??0,j=G?.height??0,J=r+(f!=="center"?"-"+f:""),I=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},ee=Array.isArray(m)?m:[m],ce=ee.length>0,me={padding:I,boundary:ee.filter(XE),altBoundary:ce},{refs:de,floatingStyles:pe,placement:D,isPositioned:W,middlewareData:V}=ME({strategy:"fixed",placement:J,whileElementsMounted:(...le)=>bE(...le,{animationFrame:x==="always"}),elements:{reference:R.anchor},middleware:[DE({mainAxis:c+j,alignmentAxis:d}),h&&zE({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?NE():void 0,...me}),h&&LE({...me}),kE({...me,apply:({elements:le,rects:Be,availableWidth:Te,availableHeight:ot})=>{const{width:ut,height:$e}=Be.reference,on=le.floating.style;on.setProperty("--radix-popper-available-width",`${Te}px`),on.setProperty("--radix-popper-available-height",`${ot}px`),on.setProperty("--radix-popper-anchor-width",`${ut}px`),on.setProperty("--radix-popper-anchor-height",`${$e}px`)}}),Y&&jE({element:Y,padding:g}),QE({arrowWidth:N,arrowHeight:j}),b&&UE({strategy:"referenceHidden",...me})]}),[fe,ye]=Wy(D),C=ns(w);fa(()=>{W&&C?.()},[W,C]);const X=V.arrow?.x,F=V.arrow?.y,$=V.arrow?.centerOffset!==0,[oe,se]=E.useState();return fa(()=>{M&&se(window.getComputedStyle(M).zIndex)},[M]),k.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:W?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:k.jsx(VE,{scope:l,placedSide:fe,onArrowChange:Z,arrowX:X,arrowY:F,shouldHideArrow:$,children:k.jsx(ma.div,{"data-side":fe,"data-align":ye,...A,ref:B,style:{...A.style,animation:W?void 0:"none"}})})})});Qy.displayName=Rf;var Zy="PopperArrow",YE={top:"bottom",right:"left",bottom:"top",left:"right"},Ky=E.forwardRef(function(o,l){const{__scopePopper:r,...c}=o,f=PE(Zy,r),d=YE[f.placedSide];return k.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:k.jsx(HE,{...c,ref:l,style:{...c.style,display:"block"}})})});Ky.displayName=Zy;function XE(a){return a!==null}var QE=a=>({name:"transformOrigin",options:a,fn(o){const{placement:l,rects:r,middlewareData:c}=o,d=c.arrow?.centerOffset!==0,g=d?0:a.arrowWidth,h=d?0:a.arrowHeight,[m,v]=Wy(l),y={start:"0%",center:"50%",end:"100%"}[v],b=(c.arrow?.x??0)+g/2,x=(c.arrow?.y??0)+h/2;let w="",A="";return m==="bottom"?(w=d?y:`${b}px`,A=`${-h}px`):m==="top"?(w=d?y:`${b}px`,A=`${r.floating.height+h}px`):m==="right"?(w=`${-h}px`,A=d?y:`${x}px`):m==="left"&&(w=`${r.floating.width+h}px`,A=d?y:`${x}px`),{data:{x:w,y:A}}}});function Wy(a){const[o,l="center"]=a.split("-");return[o,l]}var ZE=Py,KE=Xy,WE=Qy,FE=Ky,JE="Portal",Fy=E.forwardRef((a,o)=>{const{container:l,...r}=a,[c,f]=E.useState(!1);fa(()=>f(!0),[]);const d=l||c&&globalThis?.document?.body;return d?JS.createPortal(k.jsx(ma.div,{...r,ref:o}),d):null});Fy.displayName=JE;function $E(a,o){return E.useReducer((l,r)=>o[l][r]??l,a)}var Af=a=>{const{present:o,children:l}=a,r=IE(o),c=typeof l=="function"?l({present:r.isPresent}):E.Children.only(l),f=Ya(r.ref,eT(c));return typeof l=="function"||r.isPresent?E.cloneElement(c,{ref:f}):null};Af.displayName="Presence";function IE(a){const[o,l]=E.useState(),r=E.useRef(null),c=E.useRef(a),f=E.useRef("none"),d=a?"mounted":"unmounted",[g,h]=$E(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const m=Mr(r.current);f.current=g==="mounted"?m:"none"},[g]),fa(()=>{const m=r.current,v=c.current;if(v!==a){const b=f.current,x=Mr(m);a?h("MOUNT"):x==="none"||m?.display==="none"?h("UNMOUNT"):h(v&&b!==x?"ANIMATION_OUT":"UNMOUNT"),c.current=a}},[a,h]),fa(()=>{if(o){let m;const v=o.ownerDocument.defaultView??window,y=x=>{const A=Mr(r.current).includes(CSS.escape(x.animationName));if(x.target===o&&A&&(h("ANIMATION_END"),!c.current)){const R=o.style.animationFillMode;o.style.animationFillMode="forwards",m=v.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=R)})}},b=x=>{x.target===o&&(f.current=Mr(r.current))};return o.addEventListener("animationstart",b),o.addEventListener("animationcancel",y),o.addEventListener("animationend",y),()=>{v.clearTimeout(m),o.removeEventListener("animationstart",b),o.removeEventListener("animationcancel",y),o.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[o,h]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:E.useCallback(m=>{r.current=m?getComputedStyle(m):null,l(m)},[])}}function Mr(a){return a?.animationName||"none"}function eT(a){let o=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning;return l?a.ref:(o=Object.getOwnPropertyDescriptor(a,"ref")?.get,l=o&&"isReactWarning"in o&&o.isReactWarning,l?a.props.ref:a.props.ref||a.ref)}var tT=uf[" useInsertionEffect ".trim().toString()]||fa;function nT({prop:a,defaultProp:o,onChange:l=()=>{},caller:r}){const[c,f,d]=aT({defaultProp:o,onChange:l}),g=a!==void 0,h=g?a:c;{const v=E.useRef(a!==void 0);E.useEffect(()=>{const y=v.current;y!==g&&console.warn(`${r} is changing from ${y?"controlled":"uncontrolled"} to ${g?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=g},[g,r])}const m=E.useCallback(v=>{if(g){const y=iT(v)?v(a):v;y!==a&&d.current?.(y)}else f(v)},[g,a,f,d]);return[h,m]}function aT({defaultProp:a,onChange:o}){const[l,r]=E.useState(a),c=E.useRef(l),f=E.useRef(o);return tT(()=>{f.current=o},[o]),E.useEffect(()=>{c.current!==l&&(f.current?.(l),c.current=l)},[l,c]),[l,r,f]}function iT(a){return typeof a=="function"}var lT=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),oT="VisuallyHidden",Jy=E.forwardRef((a,o)=>k.jsx(ma.span,{...a,ref:o,style:{...lT,...a.style}}));Jy.displayName=oT;var rT=Jy,[rs]=_y("Tooltip",[Gy]),ss=Gy(),$y="TooltipProvider",sT=700,nf="tooltip.open",[cT,Mf]=rs($y),Iy=a=>{const{__scopeTooltip:o,delayDuration:l=sT,skipDelayDuration:r=300,disableHoverableContent:c=!1,children:f}=a,d=E.useRef(!0),g=E.useRef(!1),h=E.useRef(0);return E.useEffect(()=>{const m=h.current;return()=>window.clearTimeout(m)},[]),k.jsx(cT,{scope:o,isOpenDelayedRef:d,delayDuration:l,onOpen:E.useCallback(()=>{window.clearTimeout(h.current),d.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>d.current=!0,r)},[r]),isPointerInTransitRef:g,onPointerInTransitChange:E.useCallback(m=>{g.current=m},[]),disableHoverableContent:c,children:f})};Iy.displayName=$y;var Jl="Tooltip",[uT,eo]=rs(Jl),ev=a=>{const{__scopeTooltip:o,children:l,open:r,defaultOpen:c,onOpenChange:f,disableHoverableContent:d,delayDuration:g}=a,h=Mf(Jl,a.__scopeTooltip),m=ss(o),[v,y]=E.useState(null),b=R_(),x=E.useRef(0),w=d??h.disableHoverableContent,A=g??h.delayDuration,R=E.useRef(!1),[M,H]=nT({prop:r,defaultProp:c??!1,onChange:N=>{N?(h.onOpen(),document.dispatchEvent(new CustomEvent(nf))):h.onClose(),f?.(N)},caller:Jl}),B=E.useMemo(()=>M?R.current?"delayed-open":"instant-open":"closed",[M]),Y=E.useCallback(()=>{window.clearTimeout(x.current),x.current=0,R.current=!1,H(!0)},[H]),Z=E.useCallback(()=>{window.clearTimeout(x.current),x.current=0,H(!1)},[H]),G=E.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{R.current=!0,H(!0),x.current=0},A)},[A,H]);return E.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),k.jsx(ZE,{...m,children:k.jsx(uT,{scope:o,contentId:b,open:M,stateAttribute:B,trigger:v,onTriggerChange:y,onTriggerEnter:E.useCallback(()=>{h.isOpenDelayedRef.current?G():Y()},[h.isOpenDelayedRef,G,Y]),onTriggerLeave:E.useCallback(()=>{w?Z():(window.clearTimeout(x.current),x.current=0)},[Z,w]),onOpen:Y,onClose:Z,disableHoverableContent:w,children:l})})};ev.displayName=Jl;var af="TooltipTrigger",tv=E.forwardRef((a,o)=>{const{__scopeTooltip:l,...r}=a,c=eo(af,l),f=Mf(af,l),d=ss(l),g=E.useRef(null),h=Ya(o,g,c.onTriggerChange),m=E.useRef(!1),v=E.useRef(!1),y=E.useCallback(()=>m.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),k.jsx(KE,{asChild:!0,...d,children:k.jsx(ma.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...r,ref:h,onPointerMove:Rn(a.onPointerMove,b=>{b.pointerType!=="touch"&&!v.current&&!f.isPointerInTransitRef.current&&(c.onTriggerEnter(),v.current=!0)}),onPointerLeave:Rn(a.onPointerLeave,()=>{c.onTriggerLeave(),v.current=!1}),onPointerDown:Rn(a.onPointerDown,()=>{c.open&&c.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Rn(a.onFocus,()=>{m.current||c.onOpen()}),onBlur:Rn(a.onBlur,c.onClose),onClick:Rn(a.onClick,c.onClose)})})});tv.displayName=af;var Of="TooltipPortal",[fT,dT]=rs(Of,{forceMount:void 0}),nv=a=>{const{__scopeTooltip:o,forceMount:l,children:r,container:c}=a,f=eo(Of,o);return k.jsx(fT,{scope:o,forceMount:l,children:k.jsx(Af,{present:l||f.open,children:k.jsx(Fy,{asChild:!0,container:c,children:r})})})};nv.displayName=Of;var Bi="TooltipContent",av=E.forwardRef((a,o)=>{const l=dT(Bi,a.__scopeTooltip),{forceMount:r=l.forceMount,side:c="top",...f}=a,d=eo(Bi,a.__scopeTooltip);return k.jsx(Af,{present:r||d.open,children:d.disableHoverableContent?k.jsx(iv,{side:c,...f,ref:o}):k.jsx(hT,{side:c,...f,ref:o})})}),hT=E.forwardRef((a,o)=>{const l=eo(Bi,a.__scopeTooltip),r=Mf(Bi,a.__scopeTooltip),c=E.useRef(null),f=Ya(o,c),[d,g]=E.useState(null),{trigger:h,onClose:m}=l,v=c.current,{onPointerInTransitChange:y}=r,b=E.useCallback(()=>{g(null),y(!1)},[y]),x=E.useCallback((w,A)=>{const R=w.currentTarget,M={x:w.clientX,y:w.clientY},H=yT(M,R.getBoundingClientRect()),B=vT(M,H),Y=bT(A.getBoundingClientRect()),Z=xT([...B,...Y]);g(Z),y(!0)},[y]);return E.useEffect(()=>()=>b(),[b]),E.useEffect(()=>{if(h&&v){const w=R=>x(R,v),A=R=>x(R,h);return h.addEventListener("pointerleave",w),v.addEventListener("pointerleave",A),()=>{h.removeEventListener("pointerleave",w),v.removeEventListener("pointerleave",A)}}},[h,v,x,b]),E.useEffect(()=>{if(d){const w=A=>{const R=A.target,M={x:A.clientX,y:A.clientY},H=h?.contains(R)||v?.contains(R),B=!ST(M,d);H?b():B&&(b(),m())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[h,v,d,m,b]),k.jsx(iv,{...a,ref:f})}),[mT,pT]=rs(Jl,{isInside:!1}),gT=f_("TooltipContent"),iv=E.forwardRef((a,o)=>{const{__scopeTooltip:l,children:r,"aria-label":c,onEscapeKeyDown:f,onPointerDownOutside:d,...g}=a,h=eo(Bi,l),m=ss(l),{onClose:v}=h;return E.useEffect(()=>(document.addEventListener(nf,v),()=>document.removeEventListener(nf,v)),[v]),E.useEffect(()=>{if(h.trigger){const y=b=>{b.target?.contains(h.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,v]),k.jsx(Cy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:k.jsxs(WE,{"data-state":h.stateAttribute,...m,...g,ref:o,style:{...g.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[k.jsx(gT,{children:r}),k.jsx(mT,{scope:l,isInside:!0,children:k.jsx(rT,{id:h.contentId,role:"tooltip",children:c||r})})]})})});av.displayName=Bi;var lv="TooltipArrow",ov=E.forwardRef((a,o)=>{const{__scopeTooltip:l,...r}=a,c=ss(l);return pT(lv,l).isInside?null:k.jsx(FE,{...c,...r,ref:o})});ov.displayName=lv;function yT(a,o){const l=Math.abs(o.top-a.y),r=Math.abs(o.bottom-a.y),c=Math.abs(o.right-a.x),f=Math.abs(o.left-a.x);switch(Math.min(l,r,c,f)){case f:return"left";case c:return"right";case l:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function vT(a,o,l=5){const r=[];switch(o){case"top":r.push({x:a.x-l,y:a.y+l},{x:a.x+l,y:a.y+l});break;case"bottom":r.push({x:a.x-l,y:a.y-l},{x:a.x+l,y:a.y-l});break;case"left":r.push({x:a.x+l,y:a.y-l},{x:a.x+l,y:a.y+l});break;case"right":r.push({x:a.x-l,y:a.y-l},{x:a.x-l,y:a.y+l});break}return r}function bT(a){const{top:o,right:l,bottom:r,left:c}=a;return[{x:c,y:o},{x:l,y:o},{x:l,y:r},{x:c,y:r}]}function ST(a,o){const{x:l,y:r}=a;let c=!1;for(let f=0,d=o.length-1;f<o.length;d=f++){const g=o[f],h=o[d],m=g.x,v=g.y,y=h.x,b=h.y;v>r!=b>r&&l<(y-m)*(r-v)/(b-v)+m&&(c=!c)}return c}function xT(a){const o=a.slice();return o.sort((l,r)=>l.x<r.x?-1:l.x>r.x?1:l.y<r.y?-1:l.y>r.y?1:0),wT(o)}function wT(a){if(a.length<=1)return a.slice();const o=[];for(let r=0;r<a.length;r++){const c=a[r];for(;o.length>=2;){const f=o[o.length-1],d=o[o.length-2];if((f.x-d.x)*(c.y-d.y)>=(f.y-d.y)*(c.x-d.x))o.pop();else break}o.push(c)}o.pop();const l=[];for(let r=a.length-1;r>=0;r--){const c=a[r];for(;l.length>=2;){const f=l[l.length-1],d=l[l.length-2];if((f.x-d.x)*(c.y-d.y)>=(f.y-d.y)*(c.x-d.x))l.pop();else break}l.push(c)}return l.pop(),o.length===1&&l.length===1&&o[0].x===l[0].x&&o[0].y===l[0].y?o:o.concat(l)}var _T=Iy,ET=ev,TT=tv,CT=nv,RT=av,AT=ov;function MT({delayDuration:a=0,...o}){return k.jsx(_T,{"data-slot":"tooltip-provider",delayDuration:a,...o})}function Og({...a}){return k.jsx(MT,{children:k.jsx(ET,{"data-slot":"tooltip",...a})})}function Dg({...a}){return k.jsx(TT,{"data-slot":"tooltip-trigger",...a})}function zg({className:a,sideOffset:o=0,children:l,...r}){return k.jsx(CT,{children:k.jsxs(RT,{"data-slot":"tooltip-content",sideOffset:o,className:ts("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",a),...r,children:[l,k.jsx(AT,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const OT="/assets/logo-Cyfm06Ym.png";function DT({className:a}){const o=xy(),l=y1(),r=[{id:"chat",icon:Bw,label:o.navigation.chat,path:"/chat"},{id:"workflows",icon:Uw,label:o.navigation.workflows,path:"/workflows"},{id:"history",icon:Lw,label:o.navigation.history||"历史记录",path:"/history"},{id:"scheduled-tasks",icon:Cw,label:o.navigation.scheduledTasks||"定时任务",path:"/scheduled-tasks"},{id:"logs",icon:Aw,label:o.navigation.logs,path:"/logs"}];return k.jsx("nav",{className:`w-16 h-full flex flex-col bg-white dark:bg-slate-950 border-r border-slate-200 dark:border-slate-800 ${a||""}`,children:k.jsxs("div",{className:"flex flex-col items-center py-4 gap-2",children:[k.jsx("div",{className:"mb-4 pb-4 border-b border-slate-200 dark:border-slate-800 w-full flex justify-center",children:k.jsxs(Og,{children:[k.jsx(Dg,{asChild:!0,children:k.jsx(Pr,{to:"/chat",className:"block",children:k.jsx("img",{src:OT,alt:"AutoGLM Logo",className:"w-10 h-10 object-contain cursor-pointer hover:opacity-80 transition-opacity"})})}),k.jsx(zg,{side:"right",sideOffset:8,children:"返回首页"})]})}),r.map(c=>{const f=c.icon,d=l({to:c.path});return k.jsxs(Og,{children:[k.jsx(Dg,{asChild:!0,children:k.jsx(Pr,{to:c.path,className:`w-10 h-10 rounded-lg transition-all flex items-center justify-center ${d?"bg-[#1d9bf0]/10 text-[#1d9bf0] hover:bg-[#1d9bf0]/20":"text-slate-600 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800"}`,children:k.jsx(f,{className:"w-5 h-5"})})}),k.jsx(zg,{side:"right",sideOffset:8,children:c.label})]},c.id)})]})})}const pa=s1({component:NT});function zT(){const a="1.5.7",[o,l]=E.useState(null),[r,c]=E.useState(!1),{locale:f,setLocale:d,localeName:g}=Kw(),h=xy(),[m,v]=E.useState(null),[y,b]=E.useState(!1);E.useEffect(()=>{$g().then(H=>{l(H.version),H.version!==a?c(!0):c(!1)}).catch(()=>l(null)),(async()=>{const H=sessionStorage.getItem("version_check");if(H)try{const{data:B,timestamp:Y}=JSON.parse(H);if(Date.now()-Y<36e5){v(B),b(B.has_update);return}}catch(B){console.log(B)}try{const B=await Ig();v(B),sessionStorage.setItem("version_check",JSON.stringify({data:B,timestamp:Date.now()})),b(B.has_update)}catch(B){console.error("Failed to check for updates:",B)}})()},[a]);const x=o??a,w=r&&o?h.footer.versionMismatchDetail.replace("{frontend}",a).replace("{backend}",o):h.footer.buildVersion.replace("{version}",a),A=()=>{d(f==="en"?"zh":"en")},R=()=>{m?.release_url&&window.open(m.release_url,"_blank","noopener,noreferrer")};return k.jsx("footer",{className:"mt-auto border-t border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-950",children:k.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-3 flex flex-col sm:flex-row items-center justify-between gap-2 text-sm",children:[k.jsxs("div",{className:"flex items-center gap-2 text-slate-500 dark:text-slate-400",children:[k.jsxs("span",{className:"flex items-center gap-1.5",title:w,children:["v",x,y&&m?.latest_version&&k.jsx(mg,{variant:"warning",className:"cursor-pointer hover:opacity-80 transition-opacity",onClick:R,title:h.footer.updateAvailable.replace("{version}",m.latest_version),children:h.footer.newVersion}),r&&o&&k.jsx(mg,{variant:"warning",children:h.footer.versionMismatch})]}),k.jsx(Pu,{orientation:"vertical",className:"h-4 bg-slate-200 dark:bg-slate-700"}),k.jsxs("button",{onClick:A,className:"hover:text-[#1d9bf0] transition-colors flex items-center gap-1",title:"Switch language",children:[k.jsx(zw,{className:"w-4 h-4"}),g]}),k.jsx(Pu,{orientation:"vertical",className:"h-4 bg-slate-200 dark:bg-slate-700"}),k.jsx(r_,{}),k.jsx(Pu,{orientation:"vertical",className:"h-4 bg-slate-200 dark:bg-slate-700"}),k.jsxs("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#1d9bf0] transition-colors flex items-center gap-1",children:[k.jsx(Ow,{className:"w-4 h-4"}),"GitHub"]})]}),k.jsx("div",{className:"text-center",children:k.jsxs("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 dark:text-slate-400 hover:text-[#1d9bf0] transition-colors",children:["Star"," ",k.jsx("span",{className:"font-semibold",role:"img","aria-label":"star",children:"⭐"})," ","on GitHub"]})})]})})}function NT(){return k.jsxs("div",{className:"h-screen flex flex-col overflow-hidden",children:[k.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[k.jsx(DT,{}),k.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[k.jsx("div",{className:"flex-1 overflow-auto",children:k.jsx(Jg,{})}),k.jsx(zT,{})]})]}),k.jsx(E1,{position:"bottom-right"})]})}const LT=()=>Pa(()=>import("./workflows-DRsmfMuf.js"),__vite__mapDeps([0,1,2,3])),kT=Mn("/workflows")({component:Va(LT,"component")}),UT=()=>Pa(()=>import("./scheduled-tasks-DL6pE9tE.js"),__vite__mapDeps([4,1,3,5,6])),jT=Mn("/scheduled-tasks")({component:Va(UT,"component")}),BT=()=>Pa(()=>import("./logs-DeHKldwN.js"),__vite__mapDeps([7,8])),HT=Mn("/logs")({component:Va(BT,"component")}),qT=()=>Pa(()=>import("./history-Ef0dqgi8.js"),__vite__mapDeps([9,3,5,6,10])),GT=Mn("/history")({component:Va(qT,"component")}),VT=()=>Pa(()=>import("./chat-OpHm69J3.js"),__vite__mapDeps([11,3,1,10,6,8,2])),PT=Mn("/chat")({component:Va(VT,"component"),validateSearch:a=>{const o=a.mode;return{serial:typeof a.serial=="string"?a.serial:void 0,mode:o==="classic"||o==="chatkit"?o:void 0}}}),YT=()=>Pa(()=>import("./about-BN7TF-uS.js"),[]),XT=Mn("/about")({component:Va(YT,"component")}),QT=()=>Pa(()=>import("./index-CGykihaE.js"),[]),ZT=Mn("/")({component:Va(QT,"component")}),KT=kT.update({id:"/workflows",path:"/workflows",getParentRoute:()=>pa}),WT=jT.update({id:"/scheduled-tasks",path:"/scheduled-tasks",getParentRoute:()=>pa}),FT=HT.update({id:"/logs",path:"/logs",getParentRoute:()=>pa}),JT=GT.update({id:"/history",path:"/history",getParentRoute:()=>pa}),$T=PT.update({id:"/chat",path:"/chat",getParentRoute:()=>pa}),IT=XT.update({id:"/about",path:"/about",getParentRoute:()=>pa}),eC=ZT.update({id:"/",path:"/",getParentRoute:()=>pa}),tC={IndexRoute:eC,AboutRoute:IT,ChatRoute:$T,HistoryRoute:JT,LogsRoute:FT,ScheduledTasksRoute:WT,WorkflowsRoute:KT},nC=pa._addFileChildren(tC)._addFileTypes();function aC({children:a,...o}){return k.jsx(Iw,{...o,children:a})}const iC=v1({routeTree:nC,defaultPreload:"intent",scrollRestoration:!0}),Zu=document.getElementById("app");Zu&&!Zu.innerHTML&&Ub.createRoot(Zu).render(k.jsx(aC,{attribute:"class",defaultTheme:"light",enableSystem:!1,disableTransitionOnChange:!0,children:k.jsx(Zw,{children:k.jsx(x1,{router:iC})})}));export{Z1 as $,Ya as A,o_ as B,Cw as C,c_ as D,R_ as E,Aw as F,Rn as G,nT as H,ns as I,Gy as J,ZE as K,KE as L,Af as M,Fy as N,g_ as O,ma as P,Cy as Q,Ui as R,WE as S,Og as T,FE as U,yf as V,fa as W,gx as X,lC as Y,lf as Z,K1 as _,$1 as a,W1 as a0,Q1 as a1,Pu as a2,O1 as a3,D1 as a4,z1 as a5,N1 as a6,B1 as a7,H1 as a8,V1 as a9,G1 as aa,q1 as ab,k1 as ac,U1 as ad,j1 as ae,Lw as af,Uw as ag,T1 as ah,Pa as ai,Bw as aj,px as ak,dx as al,hx as am,mx as an,PT as ao,gf as ap,C1 as aq,P1 as ar,Y1 as as,X1 as at,M1 as au,A1 as av,Cx as aw,sC as ax,rC as ay,zn as b,J1 as c,I1 as d,ts as e,ix as f,R1 as g,fx as h,mg as i,k as j,cx as k,F1 as l,sx as m,ox as n,lx as o,rx as p,tx as q,E as r,ax as s,nx as t,xy as u,Dg as v,zg as w,L1 as x,ux as y,_y as z};
|