agent-tower 0.5.2-beta.4 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +37 -7
- package/dist/cli.js.map +1 -1
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/routes/system.d.ts.map +1 -1
- package/dist/routes/system.js +9 -0
- package/dist/routes/system.js.map +1 -1
- package/dist/services/mcp-config.service.d.ts +6 -0
- package/dist/services/mcp-config.service.d.ts.map +1 -0
- package/dist/services/mcp-config.service.js +47 -0
- package/dist/services/mcp-config.service.js.map +1 -0
- package/dist/services/mcp-config.service.test.d.ts +2 -0
- package/dist/services/mcp-config.service.test.d.ts.map +1 -0
- package/dist/services/mcp-config.service.test.js +42 -0
- package/dist/services/mcp-config.service.test.js.map +1 -0
- package/dist/services/terminal-manager.d.ts.map +1 -1
- package/dist/services/terminal-manager.js +7 -1
- package/dist/services/terminal-manager.js.map +1 -1
- package/dist/utils/data-dir.d.ts +3 -0
- package/dist/utils/data-dir.d.ts.map +1 -0
- package/dist/utils/data-dir.js +10 -0
- package/dist/utils/data-dir.js.map +1 -0
- package/dist/utils/process-launch.d.ts +1 -0
- package/dist/utils/process-launch.d.ts.map +1 -1
- package/dist/utils/process-launch.js +17 -4
- package/dist/utils/process-launch.js.map +1 -1
- package/dist/utils/process-launch.test.js +17 -1
- package/dist/utils/process-launch.test.js.map +1 -1
- package/dist/web/assets/{AgentDemoPage-BIMA7LtG.js → AgentDemoPage-DAdN5g19.js} +1 -1
- package/dist/web/assets/{DemoPage-Ck0jATn9.js → DemoPage-Xc4QRNUj.js} +1 -1
- package/dist/web/assets/{GeneralSettingsPage-C5KUTpFg.js → GeneralSettingsPage-DWKl6BHA.js} +1 -1
- package/dist/web/assets/McpSettingsPage-BHEMUq7Z.js +1 -0
- package/dist/web/assets/{MemberAvatar-CKkPlE4w.js → MemberAvatar-b_WKLu8w.js} +1 -1
- package/dist/web/assets/NotificationSettingsPage-C2KeYegv.js +1 -0
- package/dist/web/assets/{ProfileSettingsPage-D_YQBJqm.js → ProfileSettingsPage-CVOCVwVK.js} +1 -1
- package/dist/web/assets/ProjectKanbanPage-J_5GxZQ7.js +90 -0
- package/dist/web/assets/ProjectSettingsPage-CP3V8oAJ.js +2 -0
- package/dist/web/assets/{ProviderSettingsPage-BbruFhJJ.js → ProviderSettingsPage-DQ_IDUUZ.js} +1 -1
- package/dist/web/assets/{SettingsMasterDetail-zGxTmEVL.js → SettingsMasterDetail-Cx9Ylq9N.js} +1 -1
- package/dist/web/assets/{TeamSettingsPage-B3dBegBu.js → TeamSettingsPage-BHE2x82g.js} +1 -1
- package/dist/web/assets/arc-D31VhUJX.js +1 -0
- package/dist/web/assets/architectureDiagram-3BPJPVTR-Ak9jpJ8q.js +36 -0
- package/dist/web/assets/{arrow-left-DTTqavaj.js → arrow-left-DcUokonk.js} +1 -1
- package/dist/web/assets/blockDiagram-GPEHLZMM-DEDpa_4t.js +132 -0
- package/dist/web/assets/c4Diagram-AAUBKEIU-BgS3ci_x.js +10 -0
- package/dist/web/assets/channel-BLjA9Brq.js +1 -0
- package/dist/web/assets/check-DyTLNLlk.js +1 -0
- package/dist/web/assets/{chevron-down-CXD7aP1s.js → chevron-down-DuDzRplH.js} +1 -1
- package/dist/web/assets/{chevron-right-DSp9sZpx.js → chevron-right-BezhysME.js} +1 -1
- package/dist/web/assets/{chevron-up-DAXQrjEz.js → chevron-up-DtQ85g91.js} +1 -1
- package/dist/web/assets/chunk-2J33WTMH-BnpAjP2E.js +1 -0
- package/dist/web/assets/chunk-4BX2VUAB-DNUdFpBR.js +1 -0
- package/dist/web/assets/chunk-55IACEB6-CTj6ihx_.js +1 -0
- package/dist/web/assets/chunk-727SXJPM-yKiHVB7X.js +206 -0
- package/dist/web/assets/chunk-AQP2D5EJ-njbMVjqc.js +231 -0
- package/dist/web/assets/chunk-FMBD7UC4-h0jEUL75.js +15 -0
- package/dist/web/assets/chunk-ND2GUHAM-DjMFJZNr.js +1 -0
- package/dist/web/assets/chunk-QZHKN3VN-odAhWIp4.js +1 -0
- package/dist/web/assets/circle-alert-IhLKVEi9.js +1 -0
- package/dist/web/assets/classDiagram-4FO5ZUOK-DHqakOiv.js +1 -0
- package/dist/web/assets/classDiagram-v2-Q7XG4LA2-DHqakOiv.js +1 -0
- package/dist/web/assets/{code-block-OCS4YCEC-Cwwrn6vr.js → code-block-OCS4YCEC-4ofbxqu2.js} +1 -1
- package/dist/web/assets/{confirm-dialog-DnHo_qsz.js → confirm-dialog-Amksh2QM.js} +1 -1
- package/dist/web/assets/cose-bilkent-S5V4N54A-Ds62_zKQ.js +1 -0
- package/dist/web/assets/cytoscape.esm-D3_iZ_3b.js +321 -0
- package/dist/web/assets/dagre-BM42HDAG-De9CyhMh.js +4 -0
- package/dist/web/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/web/assets/diagram-2AECGRRQ-Db7DRtzA.js +43 -0
- package/dist/web/assets/diagram-5GNKFQAL-DXeGI1-M.js +10 -0
- package/dist/web/assets/diagram-KO2AKTUF-Llle6qEC.js +3 -0
- package/dist/web/assets/diagram-LMA3HP47-BcK1LGRh.js +24 -0
- package/dist/web/assets/diagram-OG6HWLK6-0_sJ3YRD.js +24 -0
- package/dist/web/assets/erDiagram-TEJ5UH35-BjT0k23c.js +85 -0
- package/dist/web/assets/flowDiagram-I6XJVG4X-kaKS6P_m.js +162 -0
- package/dist/web/assets/folder-picker-CbAfVBHD.js +1 -0
- package/dist/web/assets/ganttDiagram-6RSMTGT7-CW8IoCY6.js +292 -0
- package/dist/web/assets/gitGraphDiagram-PVQCEYII-C5-QVJMh.js +106 -0
- package/dist/web/assets/graph--OzhPTMs.js +1 -0
- package/dist/web/assets/{index-X6FFd4Oy.js → index-Bd5HU-dB.js} +9 -9
- package/dist/web/assets/index-Du7RXa9t.js +303 -0
- package/dist/web/assets/index-LbQD7FZK.css +1 -0
- package/dist/web/assets/infoDiagram-5YYISTIA-CG7QnPme.js +2 -0
- package/dist/web/assets/init-Gi6I4Gst.js +1 -0
- package/dist/web/assets/{input-CWSScfQB.js → input-BxcpVmsb.js} +1 -1
- package/dist/web/assets/ishikawaDiagram-YF4QCWOH-DitLiYai.js +70 -0
- package/dist/web/assets/journeyDiagram-JHISSGLW-EKXFhiai.js +139 -0
- package/dist/web/assets/kanban-definition-UN3LZRKU-Ckbr1P9R.js +89 -0
- package/dist/web/assets/katex-HP8lGamR.js +257 -0
- package/dist/web/assets/{layers-DMovMRW4.js → layers-Dqjek9Kd.js} +1 -1
- package/dist/web/assets/layout-SsrduOYp.js +1 -0
- package/dist/web/assets/linear-HA2k3O-l.js +1 -0
- package/dist/web/assets/loader-circle-B4v8mirO.js +1 -0
- package/dist/web/assets/{mermaid-NOHMQCX5-CmO9pIR-.js → mermaid-NOHMQCX5-C2N-Y-YP.js} +5 -5
- package/dist/web/assets/{message-square-tazyMedo.js → message-square-B-2bz9LU.js} +1 -1
- package/dist/web/assets/mindmap-definition-RKZ34NQL-ByCTUtXz.js +96 -0
- package/dist/web/assets/{modal-D9LZcnXe.js → modal-C6m1dmin.js} +1 -1
- package/dist/web/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/web/assets/{pencil-Cfcl8xtO.js → pencil-DzjmtIoi.js} +1 -1
- package/dist/web/assets/pieDiagram-4H26LBE5-DeQnXQoJ.js +30 -0
- package/dist/web/assets/quadrantDiagram-W4KKPZXB--ocdxSbH.js +7 -0
- package/dist/web/assets/requirementDiagram-4Y6WPE33-CJq21gDX.js +84 -0
- package/dist/web/assets/{rotate-ccw-BCxAIasK.js → rotate-ccw-BhUVdZv6.js} +1 -1
- package/dist/web/assets/sankeyDiagram-5OEKKPKP-U373GNMv.js +40 -0
- package/dist/web/assets/{select-wCJbdjbF.js → select-CCf5nwYs.js} +1 -1
- package/dist/web/assets/sequenceDiagram-3UESZ5HK-BuH8el8s.js +162 -0
- package/dist/web/assets/stateDiagram-AJRCARHV-CqZ_L1ch.js +1 -0
- package/dist/web/assets/stateDiagram-v2-BHNVJYJU-DkD_6IX-.js +1 -0
- package/dist/web/assets/{switch-BpVaaZIq.js → switch-DsjSr4nv.js} +1 -1
- package/dist/web/assets/terminal-JXRig8oL.js +1 -0
- package/dist/web/assets/{textarea-CqAqQ-DJ.js → textarea-BzeEPT1A.js} +1 -1
- package/dist/web/assets/timeline-definition-PNZ67QCA-BIrIbCOG.js +120 -0
- package/dist/web/assets/{upload-Doc6mqhw.js → upload-BwkqnAVE.js} +1 -1
- package/dist/web/assets/{use-profiles-CLbwBXdL.js → use-profiles-DcyUHq0p.js} +1 -1
- package/dist/web/assets/{use-providers-C8Rfahov.js → use-providers-BWgjPVX8.js} +1 -1
- package/dist/web/assets/vennDiagram-CIIHVFJN-Dmk1mluX.js +34 -0
- package/dist/web/assets/wardley-L42UT6IY-CEY4M7Op.js +161 -0
- package/dist/web/assets/wardleyDiagram-YWT4CUSO-CiK-Q213.js +78 -0
- package/dist/web/assets/xychartDiagram-2RQKCTM6-C5rj3Hpu.js +7 -0
- package/dist/web/index.html +2 -2
- package/node_modules/@agent-tower/shared/dist/types.d.ts +16 -0
- package/node_modules/@agent-tower/shared/dist/types.d.ts.map +1 -1
- package/node_modules/@prisma/client/.prisma/client/edge.js +2 -2
- package/node_modules/@prisma/client/.prisma/client/index.js +2 -2
- package/package.json +3 -3
- package/dist/web/assets/NotificationSettingsPage-Dl2nJ6Kj.js +0 -1
- package/dist/web/assets/ProjectKanbanPage-D2_609qP.js +0 -89
- package/dist/web/assets/ProjectSettingsPage-DpewUnnG.js +0 -2
- package/dist/web/assets/check-N8co_7vS.js +0 -1
- package/dist/web/assets/folder-picker-TUuS8jPV.js +0 -1
- package/dist/web/assets/index-JZcaQb4r.css +0 -1
- package/dist/web/assets/loader-circle-CvnvXNY6.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GeneralSettingsPage-
|
|
2
|
-
function Lb(n,i){for(var l=0;l<i.length;l++){const s=i[l];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in n)){const f=Object.getOwnPropertyDescriptor(s,c);f&&Object.defineProperty(n,c,f.get?f:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(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"&&s(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 s(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();function ay(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Yc={exports:{}},Ol={};var Bp;function jb(){if(Bp)return Ol;Bp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:n,type:s,key:d,ref:c!==void 0?c:null,props:f}}return Ol.Fragment=i,Ol.jsx=l,Ol.jsxs=l,Ol}var qp;function Bb(){return qp||(qp=1,Yc.exports=jb()),Yc.exports}var Q=Bb(),Vc={exports:{}},Oe={};var Hp;function qb(){if(Hp)return Oe;Hp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),E=Symbol.iterator;function M(x){return x===null||typeof x!="object"?null:(x=E&&x[E]||x["@@iterator"],typeof x=="function"?x:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,K={};function G(x,H,B){this.props=x,this.context=H,this.refs=K,this.updater=B||U}G.prototype.isReactComponent={},G.prototype.setState=function(x,H){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,H,"setState")},G.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function J(){}J.prototype=G.prototype;function $(x,H,B){this.props=x,this.context=H,this.refs=K,this.updater=B||U}var ye=$.prototype=new J;ye.constructor=$,j(ye,G.prototype),ye.isPureReactComponent=!0;var he=Array.isArray;function me(){}var A={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function oe(x,H,B){var Z=B.ref;return{$$typeof:n,type:x,key:H,ref:Z!==void 0?Z:null,props:B}}function Ce(x,H){return oe(x.type,H,x.props)}function Ae(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function Te(x){var H={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(B){return H[B]})}var Ue=/\/+/g;function Le(x,H){return typeof x=="object"&&x!==null&&x.key!=null?Te(""+x.key):H.toString(36)}function we(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(me,me):(x.status="pending",x.then(function(H){x.status==="pending"&&(x.status="fulfilled",x.value=H)},function(H){x.status==="pending"&&(x.status="rejected",x.reason=H)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function C(x,H,B,Z,te){var ue=typeof x;(ue==="undefined"||ue==="boolean")&&(x=null);var ce=!1;if(x===null)ce=!0;else switch(ue){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(x.$$typeof){case n:case i:ce=!0;break;case b:return ce=x._init,C(ce(x._payload),H,B,Z,te)}}if(ce)return te=te(x),ce=Z===""?"."+Le(x,0):Z,he(te)?(B="",ce!=null&&(B=ce.replace(Ue,"$&/")+"/"),C(te,H,B,"",function(Ht){return Ht})):te!=null&&(Ae(te)&&(te=Ce(te,B+(te.key==null||x&&x.key===te.key?"":(""+te.key).replace(Ue,"$&/")+"/")+ce)),H.push(te)),1;ce=0;var Re=Z===""?".":Z+":";if(he(x))for(var Ye=0;Ye<x.length;Ye++)Z=x[Ye],ue=Re+Le(Z,Ye),ce+=C(Z,H,B,ue,te);else if(Ye=M(x),typeof Ye=="function")for(x=Ye.call(x),Ye=0;!(Z=x.next()).done;)Z=Z.value,ue=Re+Le(Z,Ye++),ce+=C(Z,H,B,ue,te);else if(ue==="object"){if(typeof x.then=="function")return C(we(x),H,B,Z,te);throw H=String(x),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ce}function P(x,H,B){if(x==null)return x;var Z=[],te=0;return C(x,Z,"","",function(ue){return H.call(B,ue,te++)}),Z}function q(x){if(x._status===-1){var H=x._result;H=H(),H.then(function(B){(x._status===0||x._status===-1)&&(x._status=1,x._result=B)},function(B){(x._status===0||x._status===-1)&&(x._status=2,x._result=B)}),x._status===-1&&(x._status=0,x._result=H)}if(x._status===1)return x._result.default;throw x._result}var ge=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},ve={map:P,forEach:function(x,H,B){P(x,function(){H.apply(this,arguments)},B)},count:function(x){var H=0;return P(x,function(){H++}),H},toArray:function(x){return P(x,function(H){return H})||[]},only:function(x){if(!Ae(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return Oe.Activity=y,Oe.Children=ve,Oe.Component=G,Oe.Fragment=l,Oe.Profiler=c,Oe.PureComponent=$,Oe.StrictMode=s,Oe.Suspense=g,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(x){return A.H.useMemoCache(x)}},Oe.cache=function(x){return function(){return x.apply(null,arguments)}},Oe.cacheSignal=function(){return null},Oe.cloneElement=function(x,H,B){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Z=j({},x.props),te=x.key;if(H!=null)for(ue in H.key!==void 0&&(te=""+H.key),H)!V.call(H,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&H.ref===void 0||(Z[ue]=H[ue]);var ue=arguments.length-2;if(ue===1)Z.children=B;else if(1<ue){for(var ce=Array(ue),Re=0;Re<ue;Re++)ce[Re]=arguments[Re+2];Z.children=ce}return oe(x.type,te,Z)},Oe.createContext=function(x){return x={$$typeof:d,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},Oe.createElement=function(x,H,B){var Z,te={},ue=null;if(H!=null)for(Z in H.key!==void 0&&(ue=""+H.key),H)V.call(H,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(te[Z]=H[Z]);var ce=arguments.length-2;if(ce===1)te.children=B;else if(1<ce){for(var Re=Array(ce),Ye=0;Ye<ce;Ye++)Re[Ye]=arguments[Ye+2];te.children=Re}if(x&&x.defaultProps)for(Z in ce=x.defaultProps,ce)te[Z]===void 0&&(te[Z]=ce[Z]);return oe(x,ue,te)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(x){return{$$typeof:p,render:x}},Oe.isValidElement=Ae,Oe.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:q}},Oe.memo=function(x,H){return{$$typeof:m,type:x,compare:H===void 0?null:H}},Oe.startTransition=function(x){var H=A.T,B={};A.T=B;try{var Z=x(),te=A.S;te!==null&&te(B,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(me,ge)}catch(ue){ge(ue)}finally{H!==null&&B.types!==null&&(H.types=B.types),A.T=H}},Oe.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},Oe.use=function(x){return A.H.use(x)},Oe.useActionState=function(x,H,B){return A.H.useActionState(x,H,B)},Oe.useCallback=function(x,H){return A.H.useCallback(x,H)},Oe.useContext=function(x){return A.H.useContext(x)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(x,H){return A.H.useDeferredValue(x,H)},Oe.useEffect=function(x,H){return A.H.useEffect(x,H)},Oe.useEffectEvent=function(x){return A.H.useEffectEvent(x)},Oe.useId=function(){return A.H.useId()},Oe.useImperativeHandle=function(x,H,B){return A.H.useImperativeHandle(x,H,B)},Oe.useInsertionEffect=function(x,H){return A.H.useInsertionEffect(x,H)},Oe.useLayoutEffect=function(x,H){return A.H.useLayoutEffect(x,H)},Oe.useMemo=function(x,H){return A.H.useMemo(x,H)},Oe.useOptimistic=function(x,H){return A.H.useOptimistic(x,H)},Oe.useReducer=function(x,H,B){return A.H.useReducer(x,H,B)},Oe.useRef=function(x){return A.H.useRef(x)},Oe.useState=function(x){return A.H.useState(x)},Oe.useSyncExternalStore=function(x,H,B){return A.H.useSyncExternalStore(x,H,B)},Oe.useTransition=function(){return A.H.useTransition()},Oe.version="19.2.4",Oe}var Qp;function Cf(){return Qp||(Qp=1,Vc.exports=qb()),Vc.exports}var T=Cf();const ee=ay(T),Hb=Lb({__proto__:null,default:ee},[T]);var Gc={exports:{}},Ml={},Kc={exports:{}},Xc={};var Yp;function Qb(){return Yp||(Yp=1,(function(n){function i(C,P){var q=C.length;C.push(P);e:for(;0<q;){var ge=q-1>>>1,ve=C[ge];if(0<c(ve,P))C[ge]=P,C[q]=ve,q=ge;else break e}}function l(C){return C.length===0?null:C[0]}function s(C){if(C.length===0)return null;var P=C[0],q=C.pop();if(q!==P){C[0]=q;e:for(var ge=0,ve=C.length,x=ve>>>1;ge<x;){var H=2*(ge+1)-1,B=C[H],Z=H+1,te=C[Z];if(0>c(B,q))Z<ve&&0>c(te,B)?(C[ge]=te,C[Z]=q,ge=Z):(C[ge]=B,C[H]=q,ge=H);else if(Z<ve&&0>c(te,q))C[ge]=te,C[Z]=q,ge=Z;else break e}}return P}function c(C,P){var q=C.sortIndex-P.sortIndex;return q!==0?q:C.id-P.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var g=[],m=[],b=1,y=null,E=3,M=!1,U=!1,j=!1,K=!1,G=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function ye(C){for(var P=l(m);P!==null;){if(P.callback===null)s(m);else if(P.startTime<=C)s(m),P.sortIndex=P.expirationTime,i(g,P);else break;P=l(m)}}function he(C){if(j=!1,ye(C),!U)if(l(g)!==null)U=!0,me||(me=!0,Te());else{var P=l(m);P!==null&&we(he,P.startTime-C)}}var me=!1,A=-1,V=5,oe=-1;function Ce(){return K?!0:!(n.unstable_now()-oe<V)}function Ae(){if(K=!1,me){var C=n.unstable_now();oe=C;var P=!0;try{e:{U=!1,j&&(j=!1,J(A),A=-1),M=!0;var q=E;try{t:{for(ye(C),y=l(g);y!==null&&!(y.expirationTime>C&&Ce());){var ge=y.callback;if(typeof ge=="function"){y.callback=null,E=y.priorityLevel;var ve=ge(y.expirationTime<=C);if(C=n.unstable_now(),typeof ve=="function"){y.callback=ve,ye(C),P=!0;break t}y===l(g)&&s(g),ye(C)}else s(g);y=l(g)}if(y!==null)P=!0;else{var x=l(m);x!==null&&we(he,x.startTime-C),P=!1}}break e}finally{y=null,E=q,M=!1}P=void 0}}finally{P?Te():me=!1}}}var Te;if(typeof $=="function")Te=function(){$(Ae)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Le=Ue.port2;Ue.port1.onmessage=Ae,Te=function(){Le.postMessage(null)}}else Te=function(){G(Ae,0)};function we(C,P){A=G(function(){C(n.unstable_now())},P)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(C){C.callback=null},n.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<C?Math.floor(1e3/C):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(C){switch(E){case 1:case 2:case 3:var P=3;break;default:P=E}var q=E;E=P;try{return C()}finally{E=q}},n.unstable_requestPaint=function(){K=!0},n.unstable_runWithPriority=function(C,P){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var q=E;E=C;try{return P()}finally{E=q}},n.unstable_scheduleCallback=function(C,P,q){var ge=n.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?ge+q:ge):q=ge,C){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=q+ve,C={id:b++,callback:P,priorityLevel:C,startTime:q,expirationTime:ve,sortIndex:-1},q>ge?(C.sortIndex=q,i(m,C),l(g)===null&&C===l(m)&&(j?(J(A),A=-1):j=!0,we(he,q-ge))):(C.sortIndex=ve,i(g,C),U||M||(U=!0,me||(me=!0,Te()))),C},n.unstable_shouldYield=Ce,n.unstable_wrapCallback=function(C){var P=E;return function(){var q=E;E=P;try{return C.apply(this,arguments)}finally{E=q}}}})(Xc)),Xc}var Vp;function Yb(){return Vp||(Vp=1,Kc.exports=Qb()),Kc.exports}var Fc={exports:{}},Jt={};var Gp;function Vb(){if(Gp)return Jt;Gp=1;var n=Cf();function i(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(i(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(g,m,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:g,containerInfo:m,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Jt.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(g,m,null,b)},Jt.flushSync=function(g){var m=d.T,b=s.p;try{if(d.T=null,s.p=2,g)return g()}finally{d.T=m,s.p=b,s.d.f()}},Jt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},Jt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Jt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,y=p(b,m.crossOrigin),E=typeof m.integrity=="string"?m.integrity:void 0,M=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:E,fetchPriority:M}):b==="script"&&s.d.X(g,{crossOrigin:y,integrity:E,fetchPriority:M,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Jt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=p(m.as,m.crossOrigin);s.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(g)},Jt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,y=p(b,m.crossOrigin);s.d.L(g,b,{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})}},Jt.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=p(m.as,m.crossOrigin);s.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(g)},Jt.requestFormReset=function(g){s.d.r(g)},Jt.unstable_batchedUpdates=function(g,m){return g(m)},Jt.useFormState=function(g,m,b){return d.H.useFormState(g,m,b)},Jt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Jt.version="19.2.4",Jt}var Kp;function iy(){if(Kp)return Fc.exports;Kp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Fc.exports=Vb(),Fc.exports}var Xp;function Gb(){if(Xp)return Ml;Xp=1;var n=Yb(),i=Cf(),l=iy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var u=o.alternate;if(u===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===a)return g(o),e;if(u===r)return g(o),t;u=u.sibling}throw Error(s(188))}if(a.return!==r.return)a=o,r=u;else{for(var h=!1,v=o.child;v;){if(v===a){h=!0,a=o,r=u;break}if(v===r){h=!0,r=o,a=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===a){h=!0,a=u,r=o;break}if(v===r){h=!0,r=u,a=o;break}v=v.sibling}if(!h)throw Error(s(189))}}if(a.alternate!==r)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,E=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),$=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),Ce=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function Te(e){return e===null||typeof e!="object"?null:(e=Ae&&e[Ae]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case G:return"Profiler";case K:return"StrictMode";case he:return"Suspense";case me:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case $:return e.displayName||"Context";case J:return(e._context.displayName||"Context")+".Consumer";case ye:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case A:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var we=Array.isArray,C=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},ge=[],ve=-1;function x(e){return{current:e}}function H(e){0>ve||(e.current=ge[ve],ge[ve]=null,ve--)}function B(e,t){ve++,ge[ve]=e.current,e.current=t}var Z=x(null),te=x(null),ue=x(null),ce=x(null);function Re(e,t){switch(B(ue,t),B(te,e),B(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sp(t),e=op(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(Z),B(Z,e)}function Ye(){H(Z),H(te),H(ue)}function Ht(e){e.memoizedState!==null&&B(ce,e);var t=Z.current,a=op(t,e.type);t!==a&&(B(te,e),B(Z,a))}function $t(e){te.current===e&&(H(Z),H(te)),ce.current===e&&(H(ce),Rl._currentValue=q)}var Je,Gn;function nn(e){if(Je===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Je=t&&t[1]||"",Gn=-1<a.stack.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GeneralSettingsPage-DWKl6BHA.js","assets/select-CCf5nwYs.js","assets/chevron-down-DuDzRplH.js","assets/check-DyTLNLlk.js","assets/textarea-BzeEPT1A.js","assets/use-providers-BWgjPVX8.js","assets/ProviderSettingsPage-DQ_IDUUZ.js","assets/confirm-dialog-Amksh2QM.js","assets/modal-C6m1dmin.js","assets/input-BxcpVmsb.js","assets/switch-DsjSr4nv.js","assets/log-adapter-CtvxzS4j.js","assets/SettingsMasterDetail-Cx9Ylq9N.js","assets/arrow-left-DcUokonk.js","assets/upload-BwkqnAVE.js","assets/pencil-DzjmtIoi.js","assets/rotate-ccw-BhUVdZv6.js","assets/TeamSettingsPage-BHE2x82g.js","assets/MemberAvatar-b_WKLu8w.js","assets/chevron-up-DtQ85g91.js","assets/ProjectSettingsPage-CP3V8oAJ.js","assets/folder-picker-CbAfVBHD.js","assets/chevron-right-BezhysME.js","assets/loader-circle-B4v8mirO.js","assets/circle-alert-IhLKVEi9.js","assets/NotificationSettingsPage-C2KeYegv.js","assets/message-square-B-2bz9LU.js","assets/McpSettingsPage-BHEMUq7Z.js","assets/terminal-JXRig8oL.js","assets/ProfileSettingsPage-CVOCVwVK.js","assets/use-profiles-DcyUHq0p.js","assets/layers-Dqjek9Kd.js","assets/ProjectKanbanPage-J_5GxZQ7.js","assets/mermaid-NOHMQCX5-C2N-Y-YP.js","assets/mermaid-NOHMQCX5-lI9o3AWT.css","assets/ProjectKanbanPage-G5OQeJvU.css","assets/AgentDemoPage-DAdN5g19.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function Lb(n,i){for(var l=0;l<i.length;l++){const s=i[l];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in n)){const f=Object.getOwnPropertyDescriptor(s,c);f&&Object.defineProperty(n,c,f.get?f:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(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"&&s(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 s(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();function ay(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Vc={exports:{}},Ol={};var Bp;function jb(){if(Bp)return Ol;Bp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:n,type:s,key:d,ref:c!==void 0?c:null,props:f}}return Ol.Fragment=i,Ol.jsx=l,Ol.jsxs=l,Ol}var qp;function Bb(){return qp||(qp=1,Vc.exports=jb()),Vc.exports}var Q=Bb(),Yc={exports:{}},Oe={};var Hp;function qb(){if(Hp)return Oe;Hp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),E=Symbol.iterator;function M(x){return x===null||typeof x!="object"?null:(x=E&&x[E]||x["@@iterator"],typeof x=="function"?x:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,K={};function G(x,H,B){this.props=x,this.context=H,this.refs=K,this.updater=B||U}G.prototype.isReactComponent={},G.prototype.setState=function(x,H){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,H,"setState")},G.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function J(){}J.prototype=G.prototype;function $(x,H,B){this.props=x,this.context=H,this.refs=K,this.updater=B||U}var ye=$.prototype=new J;ye.constructor=$,j(ye,G.prototype),ye.isPureReactComponent=!0;var he=Array.isArray;function me(){}var C={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function oe(x,H,B){var Z=B.ref;return{$$typeof:n,type:x,key:H,ref:Z!==void 0?Z:null,props:B}}function Ae(x,H){return oe(x.type,H,x.props)}function Ce(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function Te(x){var H={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(B){return H[B]})}var Ue=/\/+/g;function Le(x,H){return typeof x=="object"&&x!==null&&x.key!=null?Te(""+x.key):H.toString(36)}function we(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(me,me):(x.status="pending",x.then(function(H){x.status==="pending"&&(x.status="fulfilled",x.value=H)},function(H){x.status==="pending"&&(x.status="rejected",x.reason=H)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function A(x,H,B,Z,te){var ue=typeof x;(ue==="undefined"||ue==="boolean")&&(x=null);var ce=!1;if(x===null)ce=!0;else switch(ue){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(x.$$typeof){case n:case i:ce=!0;break;case b:return ce=x._init,A(ce(x._payload),H,B,Z,te)}}if(ce)return te=te(x),ce=Z===""?"."+Le(x,0):Z,he(te)?(B="",ce!=null&&(B=ce.replace(Ue,"$&/")+"/"),A(te,H,B,"",function(Ht){return Ht})):te!=null&&(Ce(te)&&(te=Ae(te,B+(te.key==null||x&&x.key===te.key?"":(""+te.key).replace(Ue,"$&/")+"/")+ce)),H.push(te)),1;ce=0;var Re=Z===""?".":Z+":";if(he(x))for(var Ve=0;Ve<x.length;Ve++)Z=x[Ve],ue=Re+Le(Z,Ve),ce+=A(Z,H,B,ue,te);else if(Ve=M(x),typeof Ve=="function")for(x=Ve.call(x),Ve=0;!(Z=x.next()).done;)Z=Z.value,ue=Re+Le(Z,Ve++),ce+=A(Z,H,B,ue,te);else if(ue==="object"){if(typeof x.then=="function")return A(we(x),H,B,Z,te);throw H=String(x),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ce}function F(x,H,B){if(x==null)return x;var Z=[],te=0;return A(x,Z,"","",function(ue){return H.call(B,ue,te++)}),Z}function q(x){if(x._status===-1){var H=x._result;H=H(),H.then(function(B){(x._status===0||x._status===-1)&&(x._status=1,x._result=B)},function(B){(x._status===0||x._status===-1)&&(x._status=2,x._result=B)}),x._status===-1&&(x._status=0,x._result=H)}if(x._status===1)return x._result.default;throw x._result}var ge=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},ve={map:F,forEach:function(x,H,B){F(x,function(){H.apply(this,arguments)},B)},count:function(x){var H=0;return F(x,function(){H++}),H},toArray:function(x){return F(x,function(H){return H})||[]},only:function(x){if(!Ce(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return Oe.Activity=y,Oe.Children=ve,Oe.Component=G,Oe.Fragment=l,Oe.Profiler=c,Oe.PureComponent=$,Oe.StrictMode=s,Oe.Suspense=g,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(x){return C.H.useMemoCache(x)}},Oe.cache=function(x){return function(){return x.apply(null,arguments)}},Oe.cacheSignal=function(){return null},Oe.cloneElement=function(x,H,B){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Z=j({},x.props),te=x.key;if(H!=null)for(ue in H.key!==void 0&&(te=""+H.key),H)!Y.call(H,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&H.ref===void 0||(Z[ue]=H[ue]);var ue=arguments.length-2;if(ue===1)Z.children=B;else if(1<ue){for(var ce=Array(ue),Re=0;Re<ue;Re++)ce[Re]=arguments[Re+2];Z.children=ce}return oe(x.type,te,Z)},Oe.createContext=function(x){return x={$$typeof:d,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},Oe.createElement=function(x,H,B){var Z,te={},ue=null;if(H!=null)for(Z in H.key!==void 0&&(ue=""+H.key),H)Y.call(H,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(te[Z]=H[Z]);var ce=arguments.length-2;if(ce===1)te.children=B;else if(1<ce){for(var Re=Array(ce),Ve=0;Ve<ce;Ve++)Re[Ve]=arguments[Ve+2];te.children=Re}if(x&&x.defaultProps)for(Z in ce=x.defaultProps,ce)te[Z]===void 0&&(te[Z]=ce[Z]);return oe(x,ue,te)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(x){return{$$typeof:p,render:x}},Oe.isValidElement=Ce,Oe.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:q}},Oe.memo=function(x,H){return{$$typeof:m,type:x,compare:H===void 0?null:H}},Oe.startTransition=function(x){var H=C.T,B={};C.T=B;try{var Z=x(),te=C.S;te!==null&&te(B,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(me,ge)}catch(ue){ge(ue)}finally{H!==null&&B.types!==null&&(H.types=B.types),C.T=H}},Oe.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Oe.use=function(x){return C.H.use(x)},Oe.useActionState=function(x,H,B){return C.H.useActionState(x,H,B)},Oe.useCallback=function(x,H){return C.H.useCallback(x,H)},Oe.useContext=function(x){return C.H.useContext(x)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(x,H){return C.H.useDeferredValue(x,H)},Oe.useEffect=function(x,H){return C.H.useEffect(x,H)},Oe.useEffectEvent=function(x){return C.H.useEffectEvent(x)},Oe.useId=function(){return C.H.useId()},Oe.useImperativeHandle=function(x,H,B){return C.H.useImperativeHandle(x,H,B)},Oe.useInsertionEffect=function(x,H){return C.H.useInsertionEffect(x,H)},Oe.useLayoutEffect=function(x,H){return C.H.useLayoutEffect(x,H)},Oe.useMemo=function(x,H){return C.H.useMemo(x,H)},Oe.useOptimistic=function(x,H){return C.H.useOptimistic(x,H)},Oe.useReducer=function(x,H,B){return C.H.useReducer(x,H,B)},Oe.useRef=function(x){return C.H.useRef(x)},Oe.useState=function(x){return C.H.useState(x)},Oe.useSyncExternalStore=function(x,H,B){return C.H.useSyncExternalStore(x,H,B)},Oe.useTransition=function(){return C.H.useTransition()},Oe.version="19.2.4",Oe}var Qp;function Af(){return Qp||(Qp=1,Yc.exports=qb()),Yc.exports}var T=Af();const ee=ay(T),Hb=Lb({__proto__:null,default:ee},[T]);var Gc={exports:{}},Ml={},Kc={exports:{}},Xc={};var Vp;function Qb(){return Vp||(Vp=1,(function(n){function i(A,F){var q=A.length;A.push(F);e:for(;0<q;){var ge=q-1>>>1,ve=A[ge];if(0<c(ve,F))A[ge]=F,A[q]=ve,q=ge;else break e}}function l(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var F=A[0],q=A.pop();if(q!==F){A[0]=q;e:for(var ge=0,ve=A.length,x=ve>>>1;ge<x;){var H=2*(ge+1)-1,B=A[H],Z=H+1,te=A[Z];if(0>c(B,q))Z<ve&&0>c(te,B)?(A[ge]=te,A[Z]=q,ge=Z):(A[ge]=B,A[H]=q,ge=H);else if(Z<ve&&0>c(te,q))A[ge]=te,A[Z]=q,ge=Z;else break e}}return F}function c(A,F){var q=A.sortIndex-F.sortIndex;return q!==0?q:A.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var g=[],m=[],b=1,y=null,E=3,M=!1,U=!1,j=!1,K=!1,G=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function ye(A){for(var F=l(m);F!==null;){if(F.callback===null)s(m);else if(F.startTime<=A)s(m),F.sortIndex=F.expirationTime,i(g,F);else break;F=l(m)}}function he(A){if(j=!1,ye(A),!U)if(l(g)!==null)U=!0,me||(me=!0,Te());else{var F=l(m);F!==null&&we(he,F.startTime-A)}}var me=!1,C=-1,Y=5,oe=-1;function Ae(){return K?!0:!(n.unstable_now()-oe<Y)}function Ce(){if(K=!1,me){var A=n.unstable_now();oe=A;var F=!0;try{e:{U=!1,j&&(j=!1,J(C),C=-1),M=!0;var q=E;try{t:{for(ye(A),y=l(g);y!==null&&!(y.expirationTime>A&&Ae());){var ge=y.callback;if(typeof ge=="function"){y.callback=null,E=y.priorityLevel;var ve=ge(y.expirationTime<=A);if(A=n.unstable_now(),typeof ve=="function"){y.callback=ve,ye(A),F=!0;break t}y===l(g)&&s(g),ye(A)}else s(g);y=l(g)}if(y!==null)F=!0;else{var x=l(m);x!==null&&we(he,x.startTime-A),F=!1}}break e}finally{y=null,E=q,M=!1}F=void 0}}finally{F?Te():me=!1}}}var Te;if(typeof $=="function")Te=function(){$(Ce)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Le=Ue.port2;Ue.port1.onmessage=Ce,Te=function(){Le.postMessage(null)}}else Te=function(){G(Ce,0)};function we(A,F){C=G(function(){A(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(A){A.callback=null},n.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<A?Math.floor(1e3/A):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(A){switch(E){case 1:case 2:case 3:var F=3;break;default:F=E}var q=E;E=F;try{return A()}finally{E=q}},n.unstable_requestPaint=function(){K=!0},n.unstable_runWithPriority=function(A,F){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var q=E;E=A;try{return F()}finally{E=q}},n.unstable_scheduleCallback=function(A,F,q){var ge=n.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?ge+q:ge):q=ge,A){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=q+ve,A={id:b++,callback:F,priorityLevel:A,startTime:q,expirationTime:ve,sortIndex:-1},q>ge?(A.sortIndex=q,i(m,A),l(g)===null&&A===l(m)&&(j?(J(C),C=-1):j=!0,we(he,q-ge))):(A.sortIndex=ve,i(g,A),U||M||(U=!0,me||(me=!0,Te()))),A},n.unstable_shouldYield=Ae,n.unstable_wrapCallback=function(A){var F=E;return function(){var q=E;E=F;try{return A.apply(this,arguments)}finally{E=q}}}})(Xc)),Xc}var Yp;function Vb(){return Yp||(Yp=1,Kc.exports=Qb()),Kc.exports}var Pc={exports:{}},Jt={};var Gp;function Yb(){if(Gp)return Jt;Gp=1;var n=Af();function i(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(i(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(g,m,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:g,containerInfo:m,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Jt.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(g,m,null,b)},Jt.flushSync=function(g){var m=d.T,b=s.p;try{if(d.T=null,s.p=2,g)return g()}finally{d.T=m,s.p=b,s.d.f()}},Jt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},Jt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Jt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,y=p(b,m.crossOrigin),E=typeof m.integrity=="string"?m.integrity:void 0,M=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:E,fetchPriority:M}):b==="script"&&s.d.X(g,{crossOrigin:y,integrity:E,fetchPriority:M,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Jt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=p(m.as,m.crossOrigin);s.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(g)},Jt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,y=p(b,m.crossOrigin);s.d.L(g,b,{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})}},Jt.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=p(m.as,m.crossOrigin);s.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(g)},Jt.requestFormReset=function(g){s.d.r(g)},Jt.unstable_batchedUpdates=function(g,m){return g(m)},Jt.useFormState=function(g,m,b){return d.H.useFormState(g,m,b)},Jt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Jt.version="19.2.4",Jt}var Kp;function iy(){if(Kp)return Pc.exports;Kp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Pc.exports=Yb(),Pc.exports}var Xp;function Gb(){if(Xp)return Ml;Xp=1;var n=Vb(),i=Af(),l=iy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var u=o.alternate;if(u===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===a)return g(o),e;if(u===r)return g(o),t;u=u.sibling}throw Error(s(188))}if(a.return!==r.return)a=o,r=u;else{for(var h=!1,v=o.child;v;){if(v===a){h=!0,a=o,r=u;break}if(v===r){h=!0,r=o,a=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===a){h=!0,a=u,r=o;break}if(v===r){h=!0,r=u,a=o;break}v=v.sibling}if(!h)throw Error(s(189))}}if(a.alternate!==r)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,E=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),$=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),Ae=Symbol.for("react.memo_cache_sentinel"),Ce=Symbol.iterator;function Te(e){return e===null||typeof e!="object"?null:(e=Ce&&e[Ce]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case G:return"Profiler";case K:return"StrictMode";case he:return"Suspense";case me:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case $:return e.displayName||"Context";case J:return(e._context.displayName||"Context")+".Consumer";case ye:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case C:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var we=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},ge=[],ve=-1;function x(e){return{current:e}}function H(e){0>ve||(e.current=ge[ve],ge[ve]=null,ve--)}function B(e,t){ve++,ge[ve]=e.current,e.current=t}var Z=x(null),te=x(null),ue=x(null),ce=x(null);function Re(e,t){switch(B(ue,t),B(te,e),B(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sp(t),e=op(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(Z),B(Z,e)}function Ve(){H(Z),H(te),H(ue)}function Ht(e){e.memoizedState!==null&&B(ce,e);var t=Z.current,a=op(t,e.type);t!==a&&(B(te,e),B(Z,a))}function $t(e){te.current===e&&(H(Z),H(te)),ce.current===e&&(H(ce),Rl._currentValue=q)}var Je,Gn;function nn(e){if(Je===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Je=t&&t[1]||"",Gn=-1<a.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
-
`+Je+e+Gn}var
|
|
4
|
+
`+Je+e+Gn}var vi=!1;function an(e,t){if(!e||vi)return"";vi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(L){var k=L}Reflect.construct(e,[],P)}else{try{P.call()}catch(L){k=L}e.call(P.prototype)}}else{try{throw Error()}catch(L){k=L}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(L){if(L&&k&&typeof L.stack=="string")return[L.stack,k.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),h=u[0],v=u[1];if(h&&v){var w=h.split(`
|
|
5
5
|
`),N=v.split(`
|
|
6
|
-
`);for(o=r=0;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(r===w.length||o===N.length)for(r=w.length-1,o=N.length-1;1<=r&&0<=o&&w[r]!==N[o];)o--;for(;1<=r&&0<=o;r--,o--)if(w[r]!==N[o]){if(r!==1||o!==1)do if(r--,o--,0>o||w[r]!==N[o]){var
|
|
7
|
-
`+w[r].replace(" at new "," at ");return e.displayName&&
|
|
6
|
+
`);for(o=r=0;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(r===w.length||o===N.length)for(r=w.length-1,o=N.length-1;1<=r&&0<=o&&w[r]!==N[o];)o--;for(;1<=r&&0<=o;r--,o--)if(w[r]!==N[o]){if(r!==1||o!==1)do if(r--,o--,0>o||w[r]!==N[o]){var V=`
|
|
7
|
+
`+w[r].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=r&&0<=o);break}}}finally{vi=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?nn(a):""}function ha(e,t){switch(e.tag){case 26:case 27:case 5:return nn(e.type);case 16:return nn("Lazy");case 13:return e.child!==t&&t!==null?nn("Suspense Fallback"):nn("Suspense");case 19:return nn("SuspenseList");case 0:case 15:return an(e.type,!1);case 11:return an(e.type.render,!1);case 1:return an(e.type,!0);case 31:return nn("Activity");default:return""}}function bi(e){try{var t="",a=null;do t+=ha(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
|
|
8
8
|
Error generating stack: `+r.message+`
|
|
9
|
-
`+r.stack}}var Pt=Object.prototype.hasOwnProperty,bi=n.unstable_scheduleCallback,Si=n.unstable_cancelCallback,Qt=n.unstable_shouldYield,ta=n.unstable_requestPaint,mt=n.unstable_now,ha=n.unstable_getCurrentPriorityLevel,na=n.unstable_ImmediatePriority,qa=n.unstable_UserBlockingPriority,Yt=n.unstable_NormalPriority,Wt=n.unstable_LowPriority,_n=n.unstable_IdlePriority,Zi=n.log,An=n.unstable_setDisableYieldValue,ma=null,ut=null;function rn(e){if(typeof Zi=="function"&&An(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(ma,e)}catch{}}var kt=Math.clz32?Math.clz32:pn,Ji=Math.log,wi=Math.LN2;function pn(e){return e>>>=0,e===0?32:31-(Ji(e)/wi|0)|0}var Kn=256,pa=262144,Xn=4194304;function Cn(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 _e(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var o=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=r&134217727;return v!==0?(r=v&~u,r!==0?o=Cn(r):(h&=v,h!==0?o=Cn(h):a||(a=v&~e,a!==0&&(o=Cn(a))))):(v=r&~u,v!==0?o=Cn(v):h!==0?o=Cn(h):a||(a=r&~e,a!==0&&(o=Cn(a)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:o}function st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wt(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 Et(){var e=Xn;return Xn<<=1,(Xn&62914560)===0&&(Xn=4194304),e}function gn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zt(e,t,a,r,o,u){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,w=e.expirationTimes,N=e.hiddenUpdates;for(a=h&~a;0<a;){var Y=31-kt(a),F=1<<Y;v[Y]=0,w[Y]=-1;var k=N[Y];if(k!==null)for(N[Y]=null,Y=0;Y<k.length;Y++){var L=k[Y];L!==null&&(L.lane&=-536870913)}a&=~F}r!==0&&ga(e,r,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function ga(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-kt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function S(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-kt(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}function _(e,t){var a=t&-t;return a=(a&42)!==0?1:z(a),(a&(e.suspendedLanes|t))!==0?0:a}function z(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 I(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function W(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:Dp(e.type))}function pe(e,t){var a=P.p;try{return P.p=e,t()}finally{P.p=a}}var ae=Math.random().toString(36).slice(2),ne="__reactFiber$"+ae,ie="__reactProps$"+ae,de="__reactContainer$"+ae,Ee="__reactEvents$"+ae,be="__reactListeners$"+ae,Ze="__reactHandles$"+ae,Ve="__reactResources$"+ae,pt="__reactMarker$"+ae;function yt(e){delete e[ne],delete e[ie],delete e[Ee],delete e[be],delete e[Ze]}function vt(e){var t=e[ne];if(t)return t;for(var a=e.parentNode;a;){if(t=a[de]||a[ne]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=pp(e);e!==null;){if(a=e[ne])return a;e=pp(e)}return t}e=a,a=e.parentNode}return null}function Ge(e){if(e=e[ne]||e[de]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ln(e){var t=e[Ve];return t||(t=e[Ve]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[pt]=!0}var Fn=new Set,yn={};function Pn(e,t){On(e,t),On(e+"Capture",t)}function On(e,t){for(yn[e]=t,e=0;e<t.length;e++)Fn.add(t[e])}var ya=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]*$"),Ei={},xi={};function Ke(e){return Pt.call(xi,e)?!0:Pt.call(Ei,e)?!1:ya.test(e)?xi[e]=!0:(Ei[e]=!0,!1)}function xt(e,t,a){if(Ke(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Zn(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Vt(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function Xe(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ti(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Il(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,u=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){a=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qr(e){if(!e._valueTracker){var t=Ti(e)?"checked":"value";e._valueTracker=Il(e,t,""+e[t])}}function ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Ti(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function $l(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 Mv=/[\n"\\]/g;function Mn(e){return e.replace(Mv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lo(e,t,a,r,o,u,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xe(t)):e.value!==""+Xe(t)&&(e.value=""+Xe(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?jo(e,h,Xe(t)):a!=null?jo(e,h,Xe(a)):r!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Xe(v):e.removeAttribute("name")}function td(e,t,a,r,o,u,h,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Qr(e);return}a=a!=null?""+Xe(a):"",t=t!=null?""+Xe(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=v?e.checked:!!r,e.defaultChecked=!!r,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Qr(e)}function jo(e,t,a){t==="number"&&$l(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ii(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Xe(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function nd(e,t,a){if(t!=null&&(t=""+Xe(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Xe(a):""}function ad(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(s(92));if(we(r)){if(1<r.length)throw Error(s(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=Xe(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),Qr(e)}function $i(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Dv=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 id(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||Dv.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function rd(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&a[o]!==r&&id(e,o,r)}else for(var u in t)t.hasOwnProperty(u)&&id(e,u,t[u])}function Bo(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 Nv=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"]]),kv=/^[\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 Wl(e){return kv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function va(){}var qo=null;function Ho(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wi=null,er=null;function ld(e){var t=Ge(e);if(t&&(e=t.stateNode)){var a=e[ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Mn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=r[ie]||null;if(!o)throw Error(s(90));Lo(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&ed(r)}break e;case"textarea":nd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ii(e,!!a.multiple,t,!1)}}}var Qo=!1;function sd(e,t,a){if(Qo)return e(t,a);Qo=!0;try{var r=e(t);return r}finally{if(Qo=!1,(Wi!==null||er!==null)&&(Hs(),Wi&&(t=Wi,e=er,er=Wi=null,ld(t),e)))for(t=0;t<e.length;t++)ld(e[t])}}function Yr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[ie]||null;if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yo=!1;if(ba)try{var Vr={};Object.defineProperty(Vr,"passive",{get:function(){Yo=!0}}),window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,Vr)}catch{Yo=!1}var Ha=null,Vo=null,es=null;function od(){if(es)return es;var e,t=Vo,a=t.length,r,o="value"in Ha?Ha.value:Ha.textContent,u=o.length;for(e=0;e<a&&t[e]===o[e];e++);var h=a-e;for(r=1;r<=h&&t[a-r]===o[u-r];r++);return es=o.slice(e,1<r?1-r:void 0)}function ts(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ns(){return!0}function ud(){return!1}function sn(e){function t(a,r,o,u,h){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ns:ud,this.isPropagationStopped=ud,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ns)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),t}var Ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},as=sn(Ri),Gr=y({},Ri,{view:0,detail:0}),zv=sn(Gr),Go,Ko,Kr,is=y({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fo,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!==Kr&&(Kr&&e.type==="mousemove"?(Go=e.screenX-Kr.screenX,Ko=e.screenY-Kr.screenY):Ko=Go=0,Kr=e),Go)},movementY:function(e){return"movementY"in e?e.movementY:Ko}}),cd=sn(is),Uv=y({},is,{dataTransfer:0}),Lv=sn(Uv),jv=y({},Gr,{relatedTarget:0}),Xo=sn(jv),Bv=y({},Ri,{animationName:0,elapsedTime:0,pseudoElement:0}),qv=sn(Bv),Hv=y({},Ri,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qv=sn(Hv),Yv=y({},Ri,{data:0}),fd=sn(Yv),Vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gv={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 Xv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kv[e])?!!t[e]:!1}function Fo(){return Xv}var Fv=y({},Gr,{key:function(e){if(e.key){var t=Vv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Gv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fo,charCode:function(e){return e.type==="keypress"?ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pv=sn(Fv),Zv=y({},is,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dd=sn(Zv),Jv=y({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fo}),Iv=sn(Jv),$v=y({},Ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wv=sn($v),e0=y({},is,{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}),t0=sn(e0),n0=y({},Ri,{newState:0,oldState:0}),a0=sn(n0),i0=[9,13,27,32],Po=ba&&"CompositionEvent"in window,Xr=null;ba&&"documentMode"in document&&(Xr=document.documentMode);var r0=ba&&"TextEvent"in window&&!Xr,hd=ba&&(!Po||Xr&&8<Xr&&11>=Xr),md=" ",pd=!1;function gd(e,t){switch(e){case"keyup":return i0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function l0(e,t){switch(e){case"compositionend":return yd(t);case"keypress":return t.which!==32?null:(pd=!0,md);case"textInput":return e=t.data,e===md&&pd?null:e;default:return null}}function s0(e,t){if(tr)return e==="compositionend"||!Po&&gd(e,t)?(e=od(),es=Vo=Ha=null,tr=!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 hd&&t.locale!=="ko"?null:t.data;default:return null}}var o0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!o0[e.type]:t==="textarea"}function bd(e,t,a,r){Wi?er?er.push(r):er=[r]:Wi=r,t=Fs(t,"onChange"),0<t.length&&(a=new as("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Fr=null,Pr=null;function u0(e){tp(e,0)}function rs(e){var t=jt(e);if(ed(t))return e}function Sd(e,t){if(e==="change")return t}var wd=!1;if(ba){var Zo;if(ba){var Jo="oninput"in document;if(!Jo){var Ed=document.createElement("div");Ed.setAttribute("oninput","return;"),Jo=typeof Ed.oninput=="function"}Zo=Jo}else Zo=!1;wd=Zo&&(!document.documentMode||9<document.documentMode)}function xd(){Fr&&(Fr.detachEvent("onpropertychange",Td),Pr=Fr=null)}function Td(e){if(e.propertyName==="value"&&rs(Pr)){var t=[];bd(t,Pr,e,Ho(e)),sd(u0,t)}}function c0(e,t,a){e==="focusin"?(xd(),Fr=t,Pr=a,Fr.attachEvent("onpropertychange",Td)):e==="focusout"&&xd()}function f0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rs(Pr)}function d0(e,t){if(e==="click")return rs(t)}function h0(e,t){if(e==="input"||e==="change")return rs(t)}function m0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vn=typeof Object.is=="function"?Object.is:m0;function Zr(e,t){if(vn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!Pt.call(t,o)||!vn(e[o],t[o]))return!1}return!0}function Rd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _d(e,t){var a=Rd(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Rd(a)}}function Ad(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ad(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$l(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=$l(e.document)}return t}function Io(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 p0=ba&&"documentMode"in document&&11>=document.documentMode,nr=null,$o=null,Jr=null,Wo=!1;function Od(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Wo||nr==null||nr!==$l(r)||(r=nr,"selectionStart"in r&&Io(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jr&&Zr(Jr,r)||(Jr=r,r=Fs($o,"onSelect"),0<r.length&&(t=new as("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=nr)))}function _i(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ar={animationend:_i("Animation","AnimationEnd"),animationiteration:_i("Animation","AnimationIteration"),animationstart:_i("Animation","AnimationStart"),transitionrun:_i("Transition","TransitionRun"),transitionstart:_i("Transition","TransitionStart"),transitioncancel:_i("Transition","TransitionCancel"),transitionend:_i("Transition","TransitionEnd")},eu={},Md={};ba&&(Md=document.createElement("div").style,"AnimationEvent"in window||(delete ar.animationend.animation,delete ar.animationiteration.animation,delete ar.animationstart.animation),"TransitionEvent"in window||delete ar.transitionend.transition);function Ai(e){if(eu[e])return eu[e];if(!ar[e])return e;var t=ar[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Md)return eu[e]=t[a];return e}var Dd=Ai("animationend"),Nd=Ai("animationiteration"),kd=Ai("animationstart"),g0=Ai("transitionrun"),y0=Ai("transitionstart"),v0=Ai("transitioncancel"),zd=Ai("transitionend"),Ud=new Map,tu="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(" ");tu.push("scrollEnd");function Jn(e,t){Ud.set(e,t),Pn(t,[e])}var ls=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)},Dn=[],ir=0,nu=0;function ss(){for(var e=ir,t=nu=ir=0;t<e;){var a=Dn[t];Dn[t++]=null;var r=Dn[t];Dn[t++]=null;var o=Dn[t];Dn[t++]=null;var u=Dn[t];if(Dn[t++]=null,r!==null&&o!==null){var h=r.pending;h===null?o.next=o:(o.next=h.next,h.next=o),r.pending=o}u!==0&&Ld(a,o,u)}}function os(e,t,a,r){Dn[ir++]=e,Dn[ir++]=t,Dn[ir++]=a,Dn[ir++]=r,nu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function au(e,t,a,r){return os(e,t,a,r),us(e)}function Ci(e,t){return os(e,null,null,t),us(e)}function Ld(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var o=!1,u=e.return;u!==null;)u.childLanes|=a,r=u.alternate,r!==null&&(r.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-kt(a),e=u.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=a|536870912),u):null}function us(e){if(50<vl)throw vl=0,dc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var rr={};function b0(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(e,t,a,r){return new b0(e,t,a,r)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sa(e,t){var a=e.alternate;return a===null?(a=bn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function jd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cs(e,t,a,r,o,u){var h=0;if(r=e,typeof e=="function")iu(e)&&(h=1);else if(typeof e=="string")h=Tb(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case oe:return e=bn(31,a,t,o),e.elementType=oe,e.lanes=u,e;case j:return Oi(a.children,o,u,t);case K:h=8,o|=24;break;case G:return e=bn(12,a,t,o|2),e.elementType=G,e.lanes=u,e;case he:return e=bn(13,a,t,o),e.elementType=he,e.lanes=u,e;case me:return e=bn(19,a,t,o),e.elementType=me,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:h=10;break e;case J:h=9;break e;case ye:h=11;break e;case A:h=14;break e;case V:h=16,r=null;break e}h=29,a=Error(s(130,e===null?"null":typeof e,"")),r=null}return t=bn(h,a,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function Oi(e,t,a,r){return e=bn(7,e,r,t),e.lanes=a,e}function ru(e,t,a){return e=bn(6,e,null,t),e.lanes=a,e}function Bd(e){var t=bn(18,null,null,0);return t.stateNode=e,t}function lu(e,t,a){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qd=new WeakMap;function Nn(e,t){if(typeof e=="object"&&e!==null){var a=qd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:vi(t)},qd.set(e,t),t)}return{value:e,source:t,stack:vi(t)}}var lr=[],sr=0,fs=null,Ir=0,kn=[],zn=0,Qa=null,aa=1,ia="";function wa(e,t){lr[sr++]=Ir,lr[sr++]=fs,fs=e,Ir=t}function Hd(e,t,a){kn[zn++]=aa,kn[zn++]=ia,kn[zn++]=Qa,Qa=e;var r=aa;e=ia;var o=32-kt(r)-1;r&=~(1<<o),a+=1;var u=32-kt(t)+o;if(30<u){var h=o-o%5;u=(r&(1<<h)-1).toString(32),r>>=h,o-=h,aa=1<<32-kt(t)+o|a<<o|r,ia=u+e}else aa=1<<u|a<<o|r,ia=e}function su(e){e.return!==null&&(wa(e,1),Hd(e,1,0))}function ou(e){for(;e===fs;)fs=lr[--sr],lr[sr]=null,Ir=lr[--sr],lr[sr]=null;for(;e===Qa;)Qa=kn[--zn],kn[zn]=null,ia=kn[--zn],kn[zn]=null,aa=kn[--zn],kn[zn]=null}function Qd(e,t){kn[zn++]=aa,kn[zn++]=ia,kn[zn++]=Qa,aa=t.id,ia=t.overflow,Qa=e}var Gt=null,ct=null,Fe=!1,Ya=null,Un=!1,uu=Error(s(519));function Va(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $r(Nn(t,e)),uu}function Yd(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[ne]=e,t[ie]=r,a){case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":case"embed":qe("load",t);break;case"video":case"audio":for(a=0;a<Sl.length;a++)qe(Sl[a],t);break;case"source":qe("error",t);break;case"img":case"image":case"link":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"input":qe("invalid",t),td(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":qe("invalid",t);break;case"textarea":qe("invalid",t),ad(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||rp(t.textContent,a)?(r.popover!=null&&(qe("beforetoggle",t),qe("toggle",t)),r.onScroll!=null&&qe("scroll",t),r.onScrollEnd!=null&&qe("scrollend",t),r.onClick!=null&&(t.onclick=va),t=!0):t=!1,t||Va(e,!0)}function Vd(e){for(Gt=e.return;Gt;)switch(Gt.tag){case 5:case 31:case 13:Un=!1;return;case 27:case 3:Un=!0;return;default:Gt=Gt.return}}function or(e){if(e!==Gt)return!1;if(!Fe)return Vd(e),Fe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ac(e.type,e.memoizedProps)),a=!a),a&&ct&&Va(e),Vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ct=mp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ct=mp(e)}else t===27?(t=ct,ai(e.type)?(e=Nc,Nc=null,ct=e):ct=t):ct=Gt?jn(e.stateNode.nextSibling):null;return!0}function Mi(){ct=Gt=null,Fe=!1}function cu(){var e=Ya;return e!==null&&(fn===null?fn=e:fn.push.apply(fn,e),Ya=null),e}function $r(e){Ya===null?Ya=[e]:Ya.push(e)}var fu=x(null),Di=null,Ea=null;function Ga(e,t,a){B(fu,t._currentValue),t._currentValue=a}function xa(e){e._currentValue=fu.current,H(fu)}function du(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function hu(e,t,a,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var h=o.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=o;for(var w=0;w<t.length;w++)if(v.context===t[w]){u.lanes|=a,v=u.alternate,v!==null&&(v.lanes|=a),du(u.return,a,e),r||(h=null);break e}u=v.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=a,u=h.alternate,u!==null&&(u.lanes|=a),du(h,a,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function ur(e,t,a,r){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var v=o.type;vn(o.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(o===ce.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Rl):e=[Rl])}o=o.return}e!==null&&hu(t,e,a,r),t.flags|=262144}function ds(e){for(e=e.firstContext;e!==null;){if(!vn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ni(e){Di=e,Ea=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Kt(e){return Gd(Di,e)}function hs(e,t){return Di===null&&Ni(e),Gd(e,t)}function Gd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ea===null){if(e===null)throw Error(s(308));Ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ea=Ea.next=t;return a}var S0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},w0=n.unstable_scheduleCallback,E0=n.unstable_NormalPriority,At={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mu(){return{controller:new S0,data:new Map,refCount:0}}function Wr(e){e.refCount--,e.refCount===0&&w0(E0,function(){e.controller.abort()})}var el=null,pu=0,cr=0,fr=null;function x0(e,t){if(el===null){var a=el=[];pu=0,cr=vc(),fr={status:"pending",value:void 0,then:function(r){a.push(r)}}}return pu++,t.then(Kd,Kd),t}function Kd(){if(--pu===0&&el!==null){fr!==null&&(fr.status="fulfilled");var e=el;el=null,cr=0,fr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function T0(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),r}var Xd=C.S;C.S=function(e,t){Om=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&x0(e,t),Xd!==null&&Xd(e,t)};var ki=x(null);function gu(){var e=ki.current;return e!==null?e:rt.pooledCache}function ms(e,t){t===null?B(ki,ki.current):B(ki,t.pool)}function Fd(){var e=gu();return e===null?null:{parent:At._currentValue,pool:e}}var dr=Error(s(460)),yu=Error(s(474)),ps=Error(s(542)),gs={then:function(){}};function Pd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(va,va),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Id(e),e;default:if(typeof t.status=="string")t.then(va,va);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Id(e),e}throw Ui=t,dr}}function zi(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ui=a,dr):a}}var Ui=null;function Jd(){if(Ui===null)throw Error(s(459));var e=Ui;return Ui=null,e}function Id(e){if(e===dr||e===ps)throw Error(s(483))}var hr=null,tl=0;function ys(e){var t=tl;return tl+=1,hr===null&&(hr=[]),Zd(hr,e,t)}function nl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vs(e,t){throw t.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $d(e){function t(O,R){if(e){var D=O.deletions;D===null?(O.deletions=[R],O.flags|=16):D.push(R)}}function a(O,R){if(!e)return null;for(;R!==null;)t(O,R),R=R.sibling;return null}function r(O){for(var R=new Map;O!==null;)O.key!==null?R.set(O.key,O):R.set(O.index,O),O=O.sibling;return R}function o(O,R){return O=Sa(O,R),O.index=0,O.sibling=null,O}function u(O,R,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<R?(O.flags|=67108866,R):D):(O.flags|=67108866,R)):(O.flags|=1048576,R)}function h(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function v(O,R,D,X){return R===null||R.tag!==6?(R=ru(D,O.mode,X),R.return=O,R):(R=o(R,D),R.return=O,R)}function w(O,R,D,X){var Se=D.type;return Se===j?Y(O,R,D.props.children,X,D.key):R!==null&&(R.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===V&&zi(Se)===R.type)?(R=o(R,D.props),nl(R,D),R.return=O,R):(R=cs(D.type,D.key,D.props,null,O.mode,X),nl(R,D),R.return=O,R)}function N(O,R,D,X){return R===null||R.tag!==4||R.stateNode.containerInfo!==D.containerInfo||R.stateNode.implementation!==D.implementation?(R=lu(D,O.mode,X),R.return=O,R):(R=o(R,D.children||[]),R.return=O,R)}function Y(O,R,D,X,Se){return R===null||R.tag!==7?(R=Oi(D,O.mode,X,Se),R.return=O,R):(R=o(R,D),R.return=O,R)}function F(O,R,D){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=ru(""+R,O.mode,D),R.return=O,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return D=cs(R.type,R.key,R.props,null,O.mode,D),nl(D,R),D.return=O,D;case U:return R=lu(R,O.mode,D),R.return=O,R;case V:return R=zi(R),F(O,R,D)}if(we(R)||Te(R))return R=Oi(R,O.mode,D,null),R.return=O,R;if(typeof R.then=="function")return F(O,ys(R),D);if(R.$$typeof===$)return F(O,hs(O,R),D);vs(O,R)}return null}function k(O,R,D,X){var Se=R!==null?R.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return Se!==null?null:v(O,R,""+D,X);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case M:return D.key===Se?w(O,R,D,X):null;case U:return D.key===Se?N(O,R,D,X):null;case V:return D=zi(D),k(O,R,D,X)}if(we(D)||Te(D))return Se!==null?null:Y(O,R,D,X,null);if(typeof D.then=="function")return k(O,R,ys(D),X);if(D.$$typeof===$)return k(O,R,hs(O,D),X);vs(O,D)}return null}function L(O,R,D,X,Se){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return O=O.get(D)||null,v(R,O,""+X,Se);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case M:return O=O.get(X.key===null?D:X.key)||null,w(R,O,X,Se);case U:return O=O.get(X.key===null?D:X.key)||null,N(R,O,X,Se);case V:return X=zi(X),L(O,R,D,X,Se)}if(we(X)||Te(X))return O=O.get(D)||null,Y(R,O,X,Se,null);if(typeof X.then=="function")return L(O,R,D,ys(X),Se);if(X.$$typeof===$)return L(O,R,D,hs(R,X),Se);vs(R,X)}return null}function re(O,R,D,X){for(var Se=null,Ie=null,fe=R,ke=R=0,Qe=null;fe!==null&&ke<D.length;ke++){fe.index>ke?(Qe=fe,fe=null):Qe=fe.sibling;var $e=k(O,fe,D[ke],X);if($e===null){fe===null&&(fe=Qe);break}e&&fe&&$e.alternate===null&&t(O,fe),R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e,fe=Qe}if(ke===D.length)return a(O,fe),Fe&&wa(O,ke),Se;if(fe===null){for(;ke<D.length;ke++)fe=F(O,D[ke],X),fe!==null&&(R=u(fe,R,ke),Ie===null?Se=fe:Ie.sibling=fe,Ie=fe);return Fe&&wa(O,ke),Se}for(fe=r(fe);ke<D.length;ke++)Qe=L(fe,O,ke,D[ke],X),Qe!==null&&(e&&Qe.alternate!==null&&fe.delete(Qe.key===null?ke:Qe.key),R=u(Qe,R,ke),Ie===null?Se=Qe:Ie.sibling=Qe,Ie=Qe);return e&&fe.forEach(function(oi){return t(O,oi)}),Fe&&wa(O,ke),Se}function xe(O,R,D,X){if(D==null)throw Error(s(151));for(var Se=null,Ie=null,fe=R,ke=R=0,Qe=null,$e=D.next();fe!==null&&!$e.done;ke++,$e=D.next()){fe.index>ke?(Qe=fe,fe=null):Qe=fe.sibling;var oi=k(O,fe,$e.value,X);if(oi===null){fe===null&&(fe=Qe);break}e&&fe&&oi.alternate===null&&t(O,fe),R=u(oi,R,ke),Ie===null?Se=oi:Ie.sibling=oi,Ie=oi,fe=Qe}if($e.done)return a(O,fe),Fe&&wa(O,ke),Se;if(fe===null){for(;!$e.done;ke++,$e=D.next())$e=F(O,$e.value,X),$e!==null&&(R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e);return Fe&&wa(O,ke),Se}for(fe=r(fe);!$e.done;ke++,$e=D.next())$e=L(fe,O,ke,$e.value,X),$e!==null&&(e&&$e.alternate!==null&&fe.delete($e.key===null?ke:$e.key),R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e);return e&&fe.forEach(function(Ub){return t(O,Ub)}),Fe&&wa(O,ke),Se}function it(O,R,D,X){if(typeof D=="object"&&D!==null&&D.type===j&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case M:e:{for(var Se=D.key;R!==null;){if(R.key===Se){if(Se=D.type,Se===j){if(R.tag===7){a(O,R.sibling),X=o(R,D.props.children),X.return=O,O=X;break e}}else if(R.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===V&&zi(Se)===R.type){a(O,R.sibling),X=o(R,D.props),nl(X,D),X.return=O,O=X;break e}a(O,R);break}else t(O,R);R=R.sibling}D.type===j?(X=Oi(D.props.children,O.mode,X,D.key),X.return=O,O=X):(X=cs(D.type,D.key,D.props,null,O.mode,X),nl(X,D),X.return=O,O=X)}return h(O);case U:e:{for(Se=D.key;R!==null;){if(R.key===Se)if(R.tag===4&&R.stateNode.containerInfo===D.containerInfo&&R.stateNode.implementation===D.implementation){a(O,R.sibling),X=o(R,D.children||[]),X.return=O,O=X;break e}else{a(O,R);break}else t(O,R);R=R.sibling}X=lu(D,O.mode,X),X.return=O,O=X}return h(O);case V:return D=zi(D),it(O,R,D,X)}if(we(D))return re(O,R,D,X);if(Te(D)){if(Se=Te(D),typeof Se!="function")throw Error(s(150));return D=Se.call(D),xe(O,R,D,X)}if(typeof D.then=="function")return it(O,R,ys(D),X);if(D.$$typeof===$)return it(O,R,hs(O,D),X);vs(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,R!==null&&R.tag===6?(a(O,R.sibling),X=o(R,D),X.return=O,O=X):(a(O,R),X=ru(D,O.mode,X),X.return=O,O=X),h(O)):a(O,R)}return function(O,R,D,X){try{tl=0;var Se=it(O,R,D,X);return hr=null,Se}catch(fe){if(fe===dr||fe===ps)throw fe;var Ie=bn(29,fe,null,O.mode);return Ie.lanes=X,Ie.return=O,Ie}}}var Li=$d(!0),Wd=$d(!1),Ka=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(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 Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(We&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=us(e),Ld(e,null,a),t}return os(e,r,t,a),us(e)}function al(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,S(e,a)}}function Su(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?o=u=h:u=u.next=h,a=a.next}while(a!==null);u===null?o=u=t:u=u.next=t}else o=u=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var wu=!1;function il(){if(wu){var e=fr;if(e!==null)throw e}}function rl(e,t,a,r){wu=!1;var o=e.updateQueue;Ka=!1;var u=o.firstBaseUpdate,h=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var w=v,N=w.next;w.next=null,h===null?u=N:h.next=N,h=w;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,v=Y.lastBaseUpdate,v!==h&&(v===null?Y.firstBaseUpdate=N:v.next=N,Y.lastBaseUpdate=w))}if(u!==null){var F=o.baseState;h=0,Y=N=w=null,v=u;do{var k=v.lane&-536870913,L=k!==v.lane;if(L?(He&k)===k:(r&k)===k){k!==0&&k===cr&&(wu=!0),Y!==null&&(Y=Y.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var re=e,xe=v;k=t;var it=a;switch(xe.tag){case 1:if(re=xe.payload,typeof re=="function"){F=re.call(it,F,k);break e}F=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=xe.payload,k=typeof re=="function"?re.call(it,F,k):re,k==null)break e;F=y({},F,k);break e;case 2:Ka=!0}}k=v.callback,k!==null&&(e.flags|=64,L&&(e.flags|=8192),L=o.callbacks,L===null?o.callbacks=[k]:L.push(k))}else L={lane:k,tag:v.tag,payload:v.payload,callback:v.callback,next:null},Y===null?(N=Y=L,w=F):Y=Y.next=L,h|=k;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;L=v,v=L.next,L.next=null,o.lastBaseUpdate=L,o.shared.pending=null}}while(!0);Y===null&&(w=F),o.baseState=w,o.firstBaseUpdate=N,o.lastBaseUpdate=Y,u===null&&(o.shared.lanes=0),$a|=h,e.lanes=h,e.memoizedState=F}}function eh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function th(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)eh(a[e],t)}var mr=x(null),bs=x(0);function nh(e,t){e=Na,B(bs,e),B(mr,t),Na=e|t.baseLanes}function Eu(){B(bs,Na),B(mr,mr.current)}function xu(){Na=bs.current,H(mr),H(bs)}var Sn=x(null),Ln=null;function Pa(e){var t=e.alternate;B(Tt,Tt.current&1),B(Sn,e),Ln===null&&(t===null||mr.current!==null||t.memoizedState!==null)&&(Ln=e)}function Tu(e){B(Tt,Tt.current),B(Sn,e),Ln===null&&(Ln=e)}function ah(e){e.tag===22?(B(Tt,Tt.current),B(Sn,e),Ln===null&&(Ln=e)):Za()}function Za(){B(Tt,Tt.current),B(Sn,Sn.current)}function wn(e){H(Sn),Ln===e&&(Ln=null),H(Tt)}var Tt=x(0);function Ss(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Mc(a)||Dc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ta=0,De=null,nt=null,Ct=null,ws=!1,pr=!1,ji=!1,Es=0,ll=0,gr=null,R0=0;function bt(){throw Error(s(321))}function Ru(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!vn(e[a],t[a]))return!1;return!0}function _u(e,t,a,r,o,u){return Ta=u,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?Hh:Qu,ji=!1,u=a(r,o),ji=!1,pr&&(u=rh(t,a,r,o)),ih(e),u}function ih(e){C.H=ul;var t=nt!==null&&nt.next!==null;if(Ta=0,Ct=nt=De=null,ws=!1,ll=0,gr=null,t)throw Error(s(300));e===null||Ot||(e=e.dependencies,e!==null&&ds(e)&&(Ot=!0))}function rh(e,t,a,r){De=e;var o=0;do{if(pr&&(gr=null),ll=0,pr=!1,25<=o)throw Error(s(301));if(o+=1,Ct=nt=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}C.H=Qh,u=t(a,r)}while(pr);return u}function _0(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?sl(t):t,e=e.useState()[0],(nt!==null?nt.memoizedState:null)!==e&&(De.flags|=1024),t}function Au(){var e=Es!==0;return Es=0,e}function Cu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ou(e){if(ws){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ws=!1}Ta=0,Ct=nt=De=null,pr=!1,ll=Es=0,gr=null}function en(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ct===null?De.memoizedState=Ct=e:Ct=Ct.next=e,Ct}function Rt(){if(nt===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=Ct===null?De.memoizedState:Ct.next;if(t!==null)Ct=t,nt=e;else{if(e===null)throw De.alternate===null?Error(s(467)):Error(s(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Ct===null?De.memoizedState=Ct=e:Ct=Ct.next=e}return Ct}function xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(e){var t=ll;return ll+=1,gr===null&&(gr=[]),e=Zd(gr,e,t),t=De,(Ct===null?t.memoizedState:Ct.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?Hh:Qu),e}function Ts(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return sl(e);if(e.$$typeof===$)return Kt(e)}throw Error(s(438,String(e)))}function Mu(e){var t=null,a=De.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=De.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=xs(),De.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=Ce;return t.index++,a}function Ra(e,t){return typeof t=="function"?t(e):t}function Rs(e){var t=Rt();return Du(t,nt,e)}function Du(e,t,a){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=a;var o=e.baseQueue,u=r.pending;if(u!==null){if(o!==null){var h=o.next;o.next=u.next,u.next=h}t.baseQueue=o=u,r.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var v=h=null,w=null,N=t,Y=!1;do{var F=N.lane&-536870913;if(F!==N.lane?(He&F)===F:(Ta&F)===F){var k=N.revertLane;if(k===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),F===cr&&(Y=!0);else if((Ta&k)===k){N=N.next,k===cr&&(Y=!0);continue}else F={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(v=w=F,h=u):w=w.next=F,De.lanes|=k,$a|=k;F=N.action,ji&&a(u,F),u=N.hasEagerState?N.eagerState:a(u,F)}else k={lane:F,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(v=w=k,h=u):w=w.next=k,De.lanes|=F,$a|=F;N=N.next}while(N!==null&&N!==t);if(w===null?h=u:w.next=v,!vn(u,e.memoizedState)&&(Ot=!0,Y&&(a=fr,a!==null)))throw a;e.memoizedState=u,e.baseState=h,e.baseQueue=w,r.lastRenderedState=u}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Nu(e){var t=Rt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,u=t.memoizedState;if(o!==null){a.pending=null;var h=o=o.next;do u=e(u,h.action),h=h.next;while(h!==o);vn(u,t.memoizedState)||(Ot=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,r]}function lh(e,t,a){var r=De,o=Rt(),u=Fe;if(u){if(a===void 0)throw Error(s(407));a=a()}else a=t();var h=!vn((nt||o).memoizedState,a);if(h&&(o.memoizedState=a,Ot=!0),o=o.queue,Uu(uh.bind(null,r,o,e),[e]),o.getSnapshot!==t||h||Ct!==null&&Ct.memoizedState.tag&1){if(r.flags|=2048,yr(9,{destroy:void 0},oh.bind(null,r,o,a,t),null),rt===null)throw Error(s(349));u||(Ta&127)!==0||sh(r,t,a)}return a}function sh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=De.updateQueue,t===null?(t=xs(),De.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function oh(e,t,a,r){t.value=a,t.getSnapshot=r,ch(t)&&fh(e)}function uh(e,t,a){return a(function(){ch(t)&&fh(e)})}function ch(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!vn(e,a)}catch{return!0}}function fh(e){var t=Ci(e,2);t!==null&&dn(t,e,2)}function ku(e){var t=en();if(typeof e=="function"){var a=e;if(e=a(),ji){rn(!0);try{a()}finally{rn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:e},t}function dh(e,t,a,r){return e.baseState=a,Du(e,nt,typeof r=="function"?r:Ra)}function A0(e,t,a,r,o){if(Cs(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};C.T!==null?a(!0):u.isTransition=!1,r(u),a=t.pending,a===null?(u.next=t.pending=u,hh(t,u)):(u.next=a.next,t.pending=a.next=u)}}function hh(e,t){var a=t.action,r=t.payload,o=e.state;if(t.isTransition){var u=C.T,h={};C.T=h;try{var v=a(o,r),w=C.S;w!==null&&w(h,v),mh(e,t,v)}catch(N){zu(e,t,N)}finally{u!==null&&h.types!==null&&(u.types=h.types),C.T=u}}else try{u=a(o,r),mh(e,t,u)}catch(N){zu(e,t,N)}}function mh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){ph(e,t,r)},function(r){return zu(e,t,r)}):ph(e,t,a)}function ph(e,t,a){t.status="fulfilled",t.value=a,gh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,hh(e,a)))}function zu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,gh(t),t=t.next;while(t!==r)}e.action=null}function gh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yh(e,t){return t}function vh(e,t){if(Fe){var a=rt.formState;if(a!==null){e:{var r=De;if(Fe){if(ct){t:{for(var o=ct,u=Un;o.nodeType!==8;){if(!u){o=null;break t}if(o=jn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){ct=jn(o.nextSibling),r=o.data==="F!";break e}}Va(r)}r=!1}r&&(t=a[0])}}return a=en(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yh,lastRenderedState:t},a.queue=r,a=jh.bind(null,De,r),r.dispatch=a,r=ku(!1),u=Hu.bind(null,De,!1,r.queue),r=en(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,a=A0.bind(null,De,o,u,a),o.dispatch=a,r.memoizedState=e,[t,a,!1]}function bh(e){var t=Rt();return Sh(t,nt,e)}function Sh(e,t,a){if(t=Du(e,t,yh)[0],e=Rs(Ra)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=sl(t)}catch(h){throw h===dr?ps:h}else r=t;t=Rt();var o=t.queue,u=o.dispatch;return a!==t.memoizedState&&(De.flags|=2048,yr(9,{destroy:void 0},C0.bind(null,o,a),null)),[r,u,e]}function C0(e,t){e.action=t}function wh(e){var t=Rt(),a=nt;if(a!==null)return Sh(t,a,e);Rt(),t=t.memoizedState,a=Rt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function yr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=De.updateQueue,t===null&&(t=xs(),De.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function Eh(){return Rt().memoizedState}function _s(e,t,a,r){var o=en();De.flags|=e,o.memoizedState=yr(1|t,{destroy:void 0},a,r===void 0?null:r)}function As(e,t,a,r){var o=Rt();r=r===void 0?null:r;var u=o.memoizedState.inst;nt!==null&&r!==null&&Ru(r,nt.memoizedState.deps)?o.memoizedState=yr(t,u,a,r):(De.flags|=e,o.memoizedState=yr(1|t,u,a,r))}function xh(e,t){_s(8390656,8,e,t)}function Uu(e,t){As(2048,8,e,t)}function O0(e){De.flags|=4;var t=De.updateQueue;if(t===null)t=xs(),De.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Th(e){var t=Rt().memoizedState;return O0({ref:t,nextImpl:e}),function(){if((We&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Rh(e,t){return As(4,2,e,t)}function _h(e,t){return As(4,4,e,t)}function Ah(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ch(e,t,a){a=a!=null?a.concat([e]):null,As(4,4,Ah.bind(null,t,e),a)}function Lu(){}function Oh(e,t){var a=Rt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&Ru(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Mh(e,t){var a=Rt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&Ru(t,r[1]))return r[0];if(r=e(),ji){rn(!0);try{e()}finally{rn(!1)}}return a.memoizedState=[r,t],r}function ju(e,t,a){return a===void 0||(Ta&1073741824)!==0&&(He&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Dm(),De.lanes|=e,$a|=e,a)}function Dh(e,t,a,r){return vn(a,t)?a:mr.current!==null?(e=ju(e,a,r),vn(e,t)||(Ot=!0),e):(Ta&42)===0||(Ta&1073741824)!==0&&(He&261930)===0?(Ot=!0,e.memoizedState=a):(e=Dm(),De.lanes|=e,$a|=e,t)}function Nh(e,t,a,r,o){var u=P.p;P.p=u!==0&&8>u?u:8;var h=C.T,v={};C.T=v,Hu(e,!1,t,a);try{var w=o(),N=C.S;if(N!==null&&N(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var Y=T0(w,r);ol(e,t,Y,Tn(e))}else ol(e,t,r,Tn(e))}catch(F){ol(e,t,{then:function(){},status:"rejected",reason:F},Tn())}finally{P.p=u,h!==null&&v.types!==null&&(h.types=v.types),C.T=h}}function M0(){}function Bu(e,t,a,r){if(e.tag!==5)throw Error(s(476));var o=kh(e).queue;Nh(e,o,t,q,a===null?M0:function(){return zh(e),a(r)})}function kh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:q},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zh(e){var t=kh(e);t.next===null&&(t=e.alternate.memoizedState),ol(e,t.next.queue,{},Tn())}function qu(){return Kt(Rl)}function Uh(){return Rt().memoizedState}function Lh(){return Rt().memoizedState}function D0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Tn();e=Xa(a);var r=Fa(t,e,a);r!==null&&(dn(r,t,a),al(r,t,a)),t={cache:mu()},e.payload=t;return}t=t.return}}function N0(e,t,a){var r=Tn();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Cs(e)?Bh(t,a):(a=au(e,t,a,r),a!==null&&(dn(a,e,r),qh(a,t,r)))}function jh(e,t,a){var r=Tn();ol(e,t,a,r)}function ol(e,t,a,r){var o={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Cs(e))Bh(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,v=u(h,a);if(o.hasEagerState=!0,o.eagerState=v,vn(v,h))return os(e,t,o,0),rt===null&&ss(),!1}catch{}if(a=au(e,t,o,r),a!==null)return dn(a,e,r),qh(a,t,r),!0}return!1}function Hu(e,t,a,r){if(r={lane:2,revertLane:vc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Cs(e)){if(t)throw Error(s(479))}else t=au(e,a,r,2),t!==null&&dn(t,e,2)}function Cs(e){var t=e.alternate;return e===De||t!==null&&t===De}function Bh(e,t){pr=ws=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function qh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,S(e,a)}}var ul={readContext:Kt,use:Ts,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt};ul.useEffectEvent=bt;var Hh={readContext:Kt,use:Ts,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:xh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,_s(4194308,4,Ah.bind(null,t,e),a)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){_s(4,2,e,t)},useMemo:function(e,t){var a=en();t=t===void 0?null:t;var r=e();if(ji){rn(!0);try{e()}finally{rn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=en();if(a!==void 0){var o=a(t);if(ji){rn(!0);try{a(t)}finally{rn(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=N0.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:function(e){e=ku(e);var t=e.queue,a=jh.bind(null,De,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Lu,useDeferredValue:function(e,t){var a=en();return ju(a,e,t)},useTransition:function(){var e=ku(!1);return e=Nh.bind(null,De,e.queue,!0,!1),en().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=De,o=en();if(Fe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),rt===null)throw Error(s(349));(He&127)!==0||sh(r,t,a)}o.memoizedState=a;var u={value:a,getSnapshot:t};return o.queue=u,xh(uh.bind(null,r,u,e),[e]),r.flags|=2048,yr(9,{destroy:void 0},oh.bind(null,r,u,a,t),null),a},useId:function(){var e=en(),t=rt.identifierPrefix;if(Fe){var a=ia,r=aa;a=(r&~(1<<32-kt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Es++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=R0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qu,useFormState:vh,useActionState:vh,useOptimistic:function(e){var t=en();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Hu.bind(null,De,!0,a),a.dispatch=t,[e,t]},useMemoCache:Mu,useCacheRefresh:function(){return en().memoizedState=D0.bind(null,De)},useEffectEvent:function(e){var t=en(),a={impl:e};return t.memoizedState=a,function(){if((We&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Qu={readContext:Kt,use:Ts,useCallback:Oh,useContext:Kt,useEffect:Uu,useImperativeHandle:Ch,useInsertionEffect:Rh,useLayoutEffect:_h,useMemo:Mh,useReducer:Rs,useRef:Eh,useState:function(){return Rs(Ra)},useDebugValue:Lu,useDeferredValue:function(e,t){var a=Rt();return Dh(a,nt.memoizedState,e,t)},useTransition:function(){var e=Rs(Ra)[0],t=Rt().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:lh,useId:Uh,useHostTransitionStatus:qu,useFormState:bh,useActionState:bh,useOptimistic:function(e,t){var a=Rt();return dh(a,nt,e,t)},useMemoCache:Mu,useCacheRefresh:Lh};Qu.useEffectEvent=Th;var Qh={readContext:Kt,use:Ts,useCallback:Oh,useContext:Kt,useEffect:Uu,useImperativeHandle:Ch,useInsertionEffect:Rh,useLayoutEffect:_h,useMemo:Mh,useReducer:Nu,useRef:Eh,useState:function(){return Nu(Ra)},useDebugValue:Lu,useDeferredValue:function(e,t){var a=Rt();return nt===null?ju(a,e,t):Dh(a,nt.memoizedState,e,t)},useTransition:function(){var e=Nu(Ra)[0],t=Rt().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:lh,useId:Uh,useHostTransitionStatus:qu,useFormState:wh,useActionState:wh,useOptimistic:function(e,t){var a=Rt();return nt!==null?dh(a,nt,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Mu,useCacheRefresh:Lh};Qh.useEffectEvent=Th;function Yu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Vu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Tn(),o=Xa(r);o.payload=t,a!=null&&(o.callback=a),t=Fa(e,o,r),t!==null&&(dn(t,e,r),al(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Tn(),o=Xa(r);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Fa(e,o,r),t!==null&&(dn(t,e,r),al(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Tn(),r=Xa(a);r.tag=2,t!=null&&(r.callback=t),t=Fa(e,r,a),t!==null&&(dn(t,e,a),al(t,e,a))}};function Yh(e,t,a,r,o,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,h):t.prototype&&t.prototype.isPureReactComponent?!Zr(a,r)||!Zr(o,u):!0}function Vh(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Vu.enqueueReplaceState(t,t.state,null)}function Bi(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Gh(e){ls(e)}function Kh(e){console.error(e)}function Xh(e){ls(e)}function Os(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Fh(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Gu(e,t,a){return a=Xa(a),a.tag=3,a.payload={element:null},a.callback=function(){Os(e,t)},a}function Ph(e){return e=Xa(e),e.tag=3,e}function Zh(e,t,a,r){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var u=r.value;e.payload=function(){return o(u)},e.callback=function(){Fh(t,a,r)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Fh(t,a,r),typeof o!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var v=r.stack;this.componentDidCatch(r.value,{componentStack:v!==null?v:""})})}function k0(e,t,a,r,o){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&ur(t,a,o,!0),a=Sn.current,a!==null){switch(a.tag){case 31:case 13:return Ln===null?Qs():a.alternate===null&&St===0&&(St=3),a.flags&=-257,a.flags|=65536,a.lanes=o,r===gs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),pc(e,r,o)),!1;case 22:return a.flags|=65536,r===gs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),pc(e,r,o)),!1}throw Error(s(435,a.tag))}return pc(e,r,o),Qs(),!1}if(Fe)return t=Sn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==uu&&(e=Error(s(422),{cause:r}),$r(Nn(e,a)))):(r!==uu&&(t=Error(s(423),{cause:r}),$r(Nn(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Nn(r,a),o=Gu(e.stateNode,r,o),Su(e,o),St!==4&&(St=2)),!1;var u=Error(s(520),{cause:r});if(u=Nn(u,a),yl===null?yl=[u]:yl.push(u),St!==4&&(St=2),t===null)return!0;r=Nn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Gu(a.stateNode,r,e),Su(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wa===null||!Wa.has(u))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Ph(o),Zh(o,e,a,r),Su(a,o),!1}a=a.return}while(a!==null);return!1}var Ku=Error(s(461)),Ot=!1;function Xt(e,t,a,r){t.child=e===null?Wd(t,null,a,r):Li(t,e.child,a,r)}function Jh(e,t,a,r,o){a=a.render;var u=t.ref;if("ref"in r){var h={};for(var v in r)v!=="ref"&&(h[v]=r[v])}else h=r;return Ni(t),r=_u(e,t,a,h,u,o),v=Au(),e!==null&&!Ot?(Cu(e,t,o),_a(e,t,o)):(Fe&&v&&su(t),t.flags|=1,Xt(e,t,r,o),t.child)}function Ih(e,t,a,r,o){if(e===null){var u=a.type;return typeof u=="function"&&!iu(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,$h(e,t,u,r,o)):(e=cs(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Wu(e,o)){var h=u.memoizedProps;if(a=a.compare,a=a!==null?a:Zr,a(h,r)&&e.ref===t.ref)return _a(e,t,o)}return t.flags|=1,e=Sa(u,r),e.ref=t.ref,e.return=t,t.child=e}function $h(e,t,a,r,o){if(e!==null){var u=e.memoizedProps;if(Zr(u,r)&&e.ref===t.ref)if(Ot=!1,t.pendingProps=r=u,Wu(e,o))(e.flags&131072)!==0&&(Ot=!0);else return t.lanes=e.lanes,_a(e,t,o)}return Xu(e,t,a,r,o)}function Wh(e,t,a,r){var o=r.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~u}else r=0,t.child=null;return em(e,t,u,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ms(t,u!==null?u.cachePool:null),u!==null?nh(t,u):Eu(),ah(t);else return r=t.lanes=536870912,em(e,t,u!==null?u.baseLanes|a:a,a,r)}else u!==null?(ms(t,u.cachePool),nh(t,u),Za(),t.memoizedState=null):(e!==null&&ms(t,null),Eu(),Za());return Xt(e,t,o,a),t.child}function cl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function em(e,t,a,r,o){var u=gu();return u=u===null?null:{parent:At._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&ms(t,null),Eu(),ah(t),e!==null&&ur(e,t,r,!0),t.childLanes=o,null}function Ms(e,t){return t=Ns({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tm(e,t,a){return Li(t,e.child,null,a),e=Ms(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function z0(e,t,a){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Fe){if(r.mode==="hidden")return e=Ms(t,r),t.lanes=536870912,cl(null,e);if(Tu(t),(e=ct)?(e=hp(e,Un),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:aa,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},a=Bd(e),a.return=t,t.child=a,Gt=t,ct=null)):e=null,e===null)throw Va(t);return t.lanes=536870912,null}return Ms(t,r)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if(Tu(t),o)if(t.flags&256)t.flags&=-257,t=tm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ot||ur(e,t,a,!1),o=(a&e.childLanes)!==0,Ot||o){if(r=rt,r!==null&&(h=_(r,a),h!==0&&h!==u.retryLane))throw u.retryLane=h,Ci(e,h),dn(r,e,h),Ku;Qs(),t=tm(e,t,a)}else e=u.treeContext,ct=jn(h.nextSibling),Gt=t,Fe=!0,Ya=null,Un=!1,e!==null&&Qd(t,e),t=Ms(t,r),t.flags|=4096;return t}return e=Sa(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ds(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Xu(e,t,a,r,o){return Ni(t),a=_u(e,t,a,r,void 0,o),r=Au(),e!==null&&!Ot?(Cu(e,t,o),_a(e,t,o)):(Fe&&r&&su(t),t.flags|=1,Xt(e,t,a,o),t.child)}function nm(e,t,a,r,o,u){return Ni(t),t.updateQueue=null,a=rh(t,r,a,o),ih(e),r=Au(),e!==null&&!Ot?(Cu(e,t,u),_a(e,t,u)):(Fe&&r&&su(t),t.flags|=1,Xt(e,t,a,u),t.child)}function am(e,t,a,r,o){if(Ni(t),t.stateNode===null){var u=rr,h=a.contextType;typeof h=="object"&&h!==null&&(u=Kt(h)),u=new a(r,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Vu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=r,u.state=t.memoizedState,u.refs={},vu(t),h=a.contextType,u.context=typeof h=="object"&&h!==null?Kt(h):rr,u.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(Yu(t,a,h,r),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&Vu.enqueueReplaceState(u,u.state,null),rl(t,r,u,o),il(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,w=Bi(a,v);u.props=w;var N=u.context,Y=a.contextType;h=rr,typeof Y=="object"&&Y!==null&&(h=Kt(Y));var F=a.getDerivedStateFromProps;Y=typeof F=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,Y||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||N!==h)&&Vh(t,u,r,h),Ka=!1;var k=t.memoizedState;u.state=k,rl(t,r,u,o),il(),N=t.memoizedState,v||k!==N||Ka?(typeof F=="function"&&(Yu(t,a,F,r),N=t.memoizedState),(w=Ka||Yh(t,a,w,r,k,N,h))?(Y||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=r,t.memoizedState=N),u.props=r,u.state=N,u.context=h,r=w):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,bu(e,t),h=t.memoizedProps,Y=Bi(a,h),u.props=Y,F=t.pendingProps,k=u.context,N=a.contextType,w=rr,typeof N=="object"&&N!==null&&(w=Kt(N)),v=a.getDerivedStateFromProps,(N=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==F||k!==w)&&Vh(t,u,r,w),Ka=!1,k=t.memoizedState,u.state=k,rl(t,r,u,o),il();var L=t.memoizedState;h!==F||k!==L||Ka||e!==null&&e.dependencies!==null&&ds(e.dependencies)?(typeof v=="function"&&(Yu(t,a,v,r),L=t.memoizedState),(Y=Ka||Yh(t,a,Y,r,k,L,w)||e!==null&&e.dependencies!==null&&ds(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,L,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,L,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=L),u.props=r,u.state=L,u.context=w,r=Y):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),r=!1)}return u=r,Ds(e,t),r=(t.flags&128)!==0,u||r?(u=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&r?(t.child=Li(t,e.child,null,o),t.child=Li(t,null,a,o)):Xt(e,t,a,o),t.memoizedState=u.state,e=t.child):e=_a(e,t,o),e}function im(e,t,a,r){return Mi(),t.flags|=256,Xt(e,t,a,r),t.child}var Fu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pu(e){return{baseLanes:e,cachePool:Fd()}}function Zu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=xn),e}function rm(e,t,a){var r=t.pendingProps,o=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(Tt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Fe){if(o?Pa(t):Za(),(e=ct)?(e=hp(e,Un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:aa,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},a=Bd(e),a.return=t,t.child=a,Gt=t,ct=null)):e=null,e===null)throw Va(t);return Dc(e)?t.lanes=32:t.lanes=536870912,null}var v=r.children;return r=r.fallback,o?(Za(),o=t.mode,v=Ns({mode:"hidden",children:v},o),r=Oi(r,o,a,null),v.return=t,r.return=t,v.sibling=r,t.child=v,r=t.child,r.memoizedState=Pu(a),r.childLanes=Zu(e,h,a),t.memoizedState=Fu,cl(null,r)):(Pa(t),Ju(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(u)t.flags&256?(Pa(t),t.flags&=-257,t=Iu(e,t,a)):t.memoizedState!==null?(Za(),t.child=e.child,t.flags|=128,t=null):(Za(),v=r.fallback,o=t.mode,r=Ns({mode:"visible",children:r.children},o),v=Oi(v,o,a,null),v.flags|=2,r.return=t,v.return=t,r.sibling=v,t.child=r,Li(t,e.child,null,a),r=t.child,r.memoizedState=Pu(a),r.childLanes=Zu(e,h,a),t.memoizedState=Fu,t=cl(null,r));else if(Pa(t),Dc(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var N=h.dgst;h=N,r=Error(s(419)),r.stack="",r.digest=h,$r({value:r,source:null,stack:null}),t=Iu(e,t,a)}else if(Ot||ur(e,t,a,!1),h=(a&e.childLanes)!==0,Ot||h){if(h=rt,h!==null&&(r=_(h,a),r!==0&&r!==w.retryLane))throw w.retryLane=r,Ci(e,r),dn(h,e,r),Ku;Mc(v)||Qs(),t=Iu(e,t,a)}else Mc(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,ct=jn(v.nextSibling),Gt=t,Fe=!0,Ya=null,Un=!1,e!==null&&Qd(t,e),t=Ju(t,r.children),t.flags|=4096);return t}return o?(Za(),v=r.fallback,o=t.mode,w=e.child,N=w.sibling,r=Sa(w,{mode:"hidden",children:r.children}),r.subtreeFlags=w.subtreeFlags&65011712,N!==null?v=Sa(N,v):(v=Oi(v,o,a,null),v.flags|=2),v.return=t,r.return=t,r.sibling=v,t.child=r,cl(null,r),r=t.child,v=e.child.memoizedState,v===null?v=Pu(a):(o=v.cachePool,o!==null?(w=At._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Fd(),v={baseLanes:v.baseLanes|a,cachePool:o}),r.memoizedState=v,r.childLanes=Zu(e,h,a),t.memoizedState=Fu,cl(e.child,r)):(Pa(t),a=e.child,e=a.sibling,a=Sa(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function Ju(e,t){return t=Ns({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ns(e,t){return e=bn(22,e,null,t),e.lanes=0,e}function Iu(e,t,a){return Li(t,e.child,null,a),e=Ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lm(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),du(e.return,t,a)}function $u(e,t,a,r,o,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o,treeForkCount:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=r,h.tail=a,h.tailMode=o,h.treeForkCount=u)}function sm(e,t,a){var r=t.pendingProps,o=r.revealOrder,u=r.tail;r=r.children;var h=Tt.current,v=(h&2)!==0;if(v?(h=h&1|2,t.flags|=128):h&=1,B(Tt,h),Xt(e,t,r,a),r=Fe?Ir:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lm(e,a,t);else if(e.tag===19)lm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ss(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),$u(t,!1,o,a,u,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ss(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}$u(t,!0,a,null,u,r);break;case"together":$u(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function _a(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),$a|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ur(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=Sa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Sa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Wu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ds(e)))}function U0(e,t,a){switch(t.tag){case 3:Re(t,t.stateNode.containerInfo),Ga(t,At,e.memoizedState.cache),Mi();break;case 27:case 5:Ht(t);break;case 4:Re(t,t.stateNode.containerInfo);break;case 10:Ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Tu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Pa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?rm(e,t,a):(Pa(t),e=_a(e,t,a),e!==null?e.sibling:null);Pa(t);break;case 19:var o=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(ur(e,t,a,!1),r=(a&t.childLanes)!==0),o){if(r)return sm(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Tt,Tt.current),r)break;return null;case 22:return t.lanes=0,Wh(e,t,a,t.pendingProps);case 24:Ga(t,At,e.memoizedState.cache)}return _a(e,t,a)}function om(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ot=!0;else{if(!Wu(e,a)&&(t.flags&128)===0)return Ot=!1,U0(e,t,a);Ot=(e.flags&131072)!==0}else Ot=!1,Fe&&(t.flags&1048576)!==0&&Hd(t,Ir,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=zi(t.elementType),t.type=e,typeof e=="function")iu(e)?(r=Bi(e,r),t.tag=1,t=am(null,t,e,r,a)):(t.tag=0,t=Xu(null,t,e,r,a));else{if(e!=null){var o=e.$$typeof;if(o===ye){t.tag=11,t=Jh(null,t,e,r,a);break e}else if(o===A){t.tag=14,t=Ih(null,t,e,r,a);break e}}throw t=Le(e)||e,Error(s(306,t,""))}}return t;case 0:return Xu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,o=Bi(r,t.pendingProps),am(e,t,r,o,a);case 3:e:{if(Re(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var u=t.memoizedState;o=u.element,bu(e,t),rl(t,r,null,a);var h=t.memoizedState;if(r=h.cache,Ga(t,At,r),r!==u.cache&&hu(t,[At],a,!0),il(),r=h.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=im(e,t,r,a);break e}else if(r!==o){o=Nn(Error(s(424)),t),$r(o),t=im(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ct=jn(e.firstChild),Gt=t,Fe=!0,Ya=null,Un=!0,a=Wd(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Mi(),r===o){t=_a(e,t,a);break e}Xt(e,t,r,a)}t=t.child}return t;case 26:return Ds(e,t),e===null?(a=bp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Fe||(a=t.type,e=t.pendingProps,r=Ps(ue.current).createElement(a),r[ne]=t,r[ie]=e,Ft(r,a,e),dt(r),t.stateNode=r):t.memoizedState=bp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ht(t),e===null&&Fe&&(r=t.stateNode=gp(t.type,t.pendingProps,ue.current),Gt=t,Un=!0,o=ct,ai(t.type)?(Nc=o,ct=jn(r.firstChild)):ct=o),Xt(e,t,t.pendingProps.children,a),Ds(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Fe&&((o=r=ct)&&(r=fb(r,t.type,t.pendingProps,Un),r!==null?(t.stateNode=r,Gt=t,ct=jn(r.firstChild),Un=!1,o=!0):o=!1),o||Va(t)),Ht(t),o=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,r=u.children,Ac(o,u)?r=null:h!==null&&Ac(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=_u(e,t,_0,null,null,a),Rl._currentValue=o),Ds(e,t),Xt(e,t,r,a),t.child;case 6:return e===null&&Fe&&((e=a=ct)&&(a=db(a,t.pendingProps,Un),a!==null?(t.stateNode=a,Gt=t,ct=null,e=!0):e=!1),e||Va(t)),null;case 13:return rm(e,t,a);case 4:return Re(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Li(t,null,r,a):Xt(e,t,r,a),t.child;case 11:return Jh(e,t,t.type,t.pendingProps,a);case 7:return Xt(e,t,t.pendingProps,a),t.child;case 8:return Xt(e,t,t.pendingProps.children,a),t.child;case 12:return Xt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Ga(t,t.type,r.value),Xt(e,t,r.children,a),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Ni(t),o=Kt(o),r=r(o),t.flags|=1,Xt(e,t,r,a),t.child;case 14:return Ih(e,t,t.type,t.pendingProps,a);case 15:return $h(e,t,t.type,t.pendingProps,a);case 19:return sm(e,t,a);case 31:return z0(e,t,a);case 22:return Wh(e,t,a,t.pendingProps);case 24:return Ni(t),r=Kt(At),e===null?(o=gu(),o===null&&(o=rt,u=mu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=a),o=u),t.memoizedState={parent:r,cache:o},vu(t),Ga(t,At,o)):((e.lanes&a)!==0&&(bu(e,t),rl(t,null,null,a),il()),o=e.memoizedState,u=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ga(t,At,r)):(r=u.cache,Ga(t,At,r),r!==o.cache&&hu(t,[At],a,!0))),Xt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Aa(e){e.flags|=4}function ec(e,t,a,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Um())e.flags|=8192;else throw Ui=gs,yu}else e.flags&=-16777217}function um(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tp(t))if(Um())e.flags|=8192;else throw Ui=gs,yu}function ks(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Et():536870912,e.lanes|=t,wr|=t)}function fl(e,t){if(!Fe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function L0(e,t,a){var r=t.pendingProps;switch(ou(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),xa(At),Ye(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(or(t)?Aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cu())),ft(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Aa(t),u!==null?(ft(t),um(t,u)):(ft(t),ec(t,o,null,r,a))):u?u!==e.memoizedState?(Aa(t),ft(t),um(t,u)):(ft(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Aa(t),ft(t),ec(t,o,e,r,a)),null;case 27:if($t(t),a=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return ft(t),null}e=Z.current,or(t)?Yd(t):(e=gp(o,r,a),t.stateNode=e,Aa(t))}return ft(t),null;case 5:if($t(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return ft(t),null}if(u=Z.current,or(t))Yd(t);else{var h=Ps(ue.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof r.is=="string"?h.createElement("select",{is:r.is}):h.createElement("select"),r.multiple?u.multiple=!0:r.size&&(u.size=r.size);break;default:u=typeof r.is=="string"?h.createElement(o,{is:r.is}):h.createElement(o)}}u[ne]=t,u[ie]=r;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=u;e:switch(Ft(u,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Aa(t)}}return ft(t),ec(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,or(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,o=Gt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ne]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||rp(e.nodeValue,a)),e||Va(t,!0)}else e=Ps(e).createTextNode(r),e[ne]=t,t.stateNode=e}return ft(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=or(t),a!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ne]=t}else Mi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),e=!1}else a=cu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return ft(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=or(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ne]=t}else Mi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),o=!1}else o=cu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==o&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ks(t,t.updateQueue),ft(t),null);case 4:return Ye(),e===null&&Ec(t.stateNode.containerInfo),ft(t),null;case 10:return xa(t.type),ft(t),null;case 19:if(H(Tt),r=t.memoizedState,r===null)return ft(t),null;if(o=(t.flags&128)!==0,u=r.rendering,u===null)if(o)fl(r,!1);else{if(St!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Ss(e),u!==null){for(t.flags|=128,fl(r,!1),e=u.updateQueue,t.updateQueue=e,ks(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)jd(a,e),a=a.sibling;return B(Tt,Tt.current&1|2),Fe&&wa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&mt()>Bs&&(t.flags|=128,o=!0,fl(r,!1),t.lanes=4194304)}else{if(!o)if(e=Ss(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ks(t,e),fl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!u.alternate&&!Fe)return ft(t),null}else 2*mt()-r.renderingStartTime>Bs&&a!==536870912&&(t.flags|=128,o=!0,fl(r,!1),t.lanes=4194304);r.isBackwards?(u.sibling=t.child,t.child=u):(e=r.last,e!==null?e.sibling=u:t.child=u,r.last=u)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=mt(),e.sibling=null,a=Tt.current,B(Tt,o?a&1|2:a&1),Fe&&wa(t,r.treeForkCount),e):(ft(t),null);case 22:case 23:return wn(t),xu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),a=t.updateQueue,a!==null&&ks(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&H(ki),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),xa(At),ft(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function j0(e,t){switch(ou(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xa(At),Ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $t(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(s(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Tt),null;case 4:return Ye(),null;case 10:return xa(t.type),null;case 22:case 23:return wn(t),xu(),e!==null&&H(ki),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xa(At),null;case 25:return null;default:return null}}function cm(e,t){switch(ou(t),t.tag){case 3:xa(At),Ye();break;case 26:case 27:case 5:$t(t);break;case 4:Ye();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:H(Tt);break;case 10:xa(t.type);break;case 22:case 23:wn(t),xu(),e!==null&&H(ki);break;case 24:xa(At)}}function dl(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){r=void 0;var u=a.create,h=a.inst;r=u(),h.destroy=r}a=a.next}while(a!==o)}}catch(v){tt(t,t.return,v)}}function Ja(e,t,a){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var u=o.next;r=u;do{if((r.tag&e)===e){var h=r.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,o=t;var w=a,N=v;try{N()}catch(Y){tt(o,w,Y)}}}r=r.next}while(r!==u)}}catch(Y){tt(t,t.return,Y)}}function fm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{th(t,a)}catch(r){tt(e,e.return,r)}}}function dm(e,t,a){a.props=Bi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){tt(e,t,r)}}function hl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){tt(e,t,o)}}function ra(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(o){tt(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){tt(e,t,o)}else a.current=null}function hm(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(o){tt(e,e.return,o)}}function tc(e,t,a){try{var r=e.stateNode;rb(r,e.type,a,t),r[ie]=t}catch(o){tt(e,e.return,o)}}function mm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ai(e.type)||e.tag===4}function nc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ai(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 ac(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=va));else if(r!==4&&(r===27&&ai(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ac(e,t,a),e=e.sibling;e!==null;)ac(e,t,a),e=e.sibling}function zs(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&ai(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(zs(e,t,a),e=e.sibling;e!==null;)zs(e,t,a),e=e.sibling}function pm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Ft(t,r,a),t[ne]=e,t[ie]=a}catch(u){tt(e,e.return,u)}}var Ca=!1,Mt=!1,ic=!1,gm=typeof WeakSet=="function"?WeakSet:Set,Bt=null;function B0(e,t){if(e=e.containerInfo,Rc=to,e=Cd(e),Io(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var h=0,v=-1,w=-1,N=0,Y=0,F=e,k=null;t:for(;;){for(var L;F!==a||o!==0&&F.nodeType!==3||(v=h+o),F!==u||r!==0&&F.nodeType!==3||(w=h+r),F.nodeType===3&&(h+=F.nodeValue.length),(L=F.firstChild)!==null;)k=F,F=L;for(;;){if(F===e)break t;if(k===a&&++N===o&&(v=h),k===u&&++Y===r&&(w=h),(L=F.nextSibling)!==null)break;F=k,k=F.parentNode}F=L}a=v===-1||w===-1?null:{start:v,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(_c={focusedElem:e,selectionRange:a},to=!1,Bt=t;Bt!==null;)if(t=Bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Bt=e;else for(;Bt!==null;){switch(t=Bt,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(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,o=u.memoizedProps,u=u.memoizedState,r=a.stateNode;try{var re=Bi(a.type,o);e=r.getSnapshotBeforeUpdate(re,u),r.__reactInternalSnapshotBeforeUpdate=e}catch(xe){tt(a,a.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Oc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Oc(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Bt=e;break}Bt=t.return}}function ym(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Ma(e,a),r&4&&dl(5,a);break;case 1:if(Ma(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){tt(a,a.return,h)}else{var o=Bi(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){tt(a,a.return,h)}}r&64&&fm(a),r&512&&hl(a,a.return);break;case 3:if(Ma(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{th(e,t)}catch(h){tt(a,a.return,h)}}break;case 27:t===null&&r&4&&pm(a);case 26:case 5:Ma(e,a),t===null&&r&4&&hm(a),r&512&&hl(a,a.return);break;case 12:Ma(e,a);break;case 31:Ma(e,a),r&4&&Sm(e,a);break;case 13:Ma(e,a),r&4&&wm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=F0.bind(null,a),hb(e,a))));break;case 22:if(r=a.memoizedState!==null||Ca,!r){t=t!==null&&t.memoizedState!==null||Mt,o=Ca;var u=Mt;Ca=r,(Mt=t)&&!u?Da(e,a,(a.subtreeFlags&8772)!==0):Ma(e,a),Ca=o,Mt=u}break;case 30:break;default:Ma(e,a)}}function vm(e){var t=e.alternate;t!==null&&(e.alternate=null,vm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yt(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 ht=null,on=!1;function Oa(e,t,a){for(a=a.child;a!==null;)bm(e,t,a),a=a.sibling}function bm(e,t,a){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(ma,a)}catch{}switch(a.tag){case 26:Mt||ra(a,t),Oa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Mt||ra(a,t);var r=ht,o=on;ai(a.type)&&(ht=a.stateNode,on=!1),Oa(e,t,a),El(a.stateNode),ht=r,on=o;break;case 5:Mt||ra(a,t);case 6:if(r=ht,o=on,ht=null,Oa(e,t,a),ht=r,on=o,ht!==null)if(on)try{(ht.nodeType===9?ht.body:ht.nodeName==="HTML"?ht.ownerDocument.body:ht).removeChild(a.stateNode)}catch(u){tt(a,t,u)}else try{ht.removeChild(a.stateNode)}catch(u){tt(a,t,u)}break;case 18:ht!==null&&(on?(e=ht,fp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Or(e)):fp(ht,a.stateNode));break;case 4:r=ht,o=on,ht=a.stateNode.containerInfo,on=!0,Oa(e,t,a),ht=r,on=o;break;case 0:case 11:case 14:case 15:Ja(2,a,t),Mt||Ja(4,a,t),Oa(e,t,a);break;case 1:Mt||(ra(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&dm(a,t,r)),Oa(e,t,a);break;case 21:Oa(e,t,a);break;case 22:Mt=(r=Mt)||a.memoizedState!==null,Oa(e,t,a),Mt=r;break;default:Oa(e,t,a)}}function Sm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Or(e)}catch(a){tt(t,t.return,a)}}}function wm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Or(e)}catch(a){tt(t,t.return,a)}}function q0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gm),t;default:throw Error(s(435,e.tag))}}function Us(e,t){var a=q0(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var o=P0.bind(null,e,r);r.then(o,o)}})}function un(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r],u=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 27:if(ai(v.type)){ht=v.stateNode,on=!1;break e}break;case 5:ht=v.stateNode,on=!1;break e;case 3:case 4:ht=v.stateNode.containerInfo,on=!0;break e}v=v.return}if(ht===null)throw Error(s(160));bm(u,h,o),ht=null,on=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Em(t,e),t=t.sibling}var In=null;function Em(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:un(t,e),cn(e),r&4&&(Ja(3,e,e.return),dl(3,e),Ja(5,e,e.return));break;case 1:un(t,e),cn(e),r&512&&(Mt||a===null||ra(a,a.return)),r&64&&Ca&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var o=In;if(un(t,e),cn(e),r&512&&(Mt||a===null||ra(a,a.return)),r&4){var u=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":u=o.getElementsByTagName("title")[0],(!u||u[pt]||u[ne]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(r),o.head.insertBefore(u,o.querySelector("head > title"))),Ft(u,r,a),u[ne]=e,dt(u),r=u;break e;case"link":var h=Ep("link","href",o).get(r+(a.href||""));if(h){for(var v=0;v<h.length;v++)if(u=h[v],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(v,1);break t}}u=o.createElement(r),Ft(u,r,a),o.head.appendChild(u);break;case"meta":if(h=Ep("meta","content",o).get(r+(a.content||""))){for(v=0;v<h.length;v++)if(u=h[v],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(v,1);break t}}u=o.createElement(r),Ft(u,r,a),o.head.appendChild(u);break;default:throw Error(s(468,r))}u[ne]=e,dt(u),r=u}e.stateNode=r}else xp(o,e.type,e.stateNode);else e.stateNode=wp(o,r,e.memoizedProps);else u!==r?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,r===null?xp(o,e.type,e.stateNode):wp(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&tc(e,e.memoizedProps,a.memoizedProps)}break;case 27:un(t,e),cn(e),r&512&&(Mt||a===null||ra(a,a.return)),a!==null&&r&4&&tc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(un(t,e),cn(e),r&512&&(Mt||a===null||ra(a,a.return)),e.flags&32){o=e.stateNode;try{$i(o,"")}catch(re){tt(e,e.return,re)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,tc(e,o,a!==null?a.memoizedProps:o)),r&1024&&(ic=!0);break;case 6:if(un(t,e),cn(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(re){tt(e,e.return,re)}}break;case 3:if(Is=null,o=In,In=Zs(t.containerInfo),un(t,e),In=o,cn(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Or(t.containerInfo)}catch(re){tt(e,e.return,re)}ic&&(ic=!1,xm(e));break;case 4:r=In,In=Zs(e.stateNode.containerInfo),un(t,e),cn(e),In=r;break;case 12:un(t,e),cn(e);break;case 31:un(t,e),cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Us(e,r)));break;case 13:un(t,e),cn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(js=mt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Us(e,r)));break;case 22:o=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,N=Ca,Y=Mt;if(Ca=N||o,Mt=Y||w,un(t,e),Mt=Y,Ca=N,cn(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||w||Ca||Mt||qi(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(u=w.stateNode,o)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=w.stateNode;var F=w.memoizedProps.style,k=F!=null&&F.hasOwnProperty("display")?F.display:null;v.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(re){tt(w,w.return,re)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(re){tt(w,w.return,re)}}}else if(t.tag===18){if(a===null){w=t;try{var L=w.stateNode;o?dp(L,!0):dp(w.stateNode,!1)}catch(re){tt(w,w.return,re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Us(e,a))));break;case 19:un(t,e),cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Us(e,r)));break;case 30:break;case 21:break;default:un(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(mm(r)){a=r;break}r=r.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,u=nc(e);zs(e,u,o);break;case 5:var h=a.stateNode;a.flags&32&&($i(h,""),a.flags&=-33);var v=nc(e);zs(e,v,h);break;case 3:case 4:var w=a.stateNode.containerInfo,N=nc(e);ac(e,N,w);break;default:throw Error(s(161))}}catch(Y){tt(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ma(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ym(e,t.alternate,t),t=t.sibling}function qi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ja(4,t,t.return),qi(t);break;case 1:ra(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&dm(t,t.return,a),qi(t);break;case 27:El(t.stateNode);case 26:case 5:ra(t,t.return),qi(t);break;case 22:t.memoizedState===null&&qi(t);break;case 30:qi(t);break;default:qi(t)}e=e.sibling}}function Da(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:Da(o,u,a),dl(4,u);break;case 1:if(Da(o,u,a),r=u,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){tt(r,r.return,N)}if(r=u,o=r.updateQueue,o!==null){var v=r.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)eh(w[o],v)}catch(N){tt(r,r.return,N)}}a&&h&64&&fm(u),hl(u,u.return);break;case 27:pm(u);case 26:case 5:Da(o,u,a),a&&r===null&&h&4&&hm(u),hl(u,u.return);break;case 12:Da(o,u,a);break;case 31:Da(o,u,a),a&&h&4&&Sm(o,u);break;case 13:Da(o,u,a),a&&h&4&&wm(o,u);break;case 22:u.memoizedState===null&&Da(o,u,a),hl(u,u.return);break;case 30:break;default:Da(o,u,a)}t=t.sibling}}function rc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Wr(a))}function lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wr(e))}function $n(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tm(e,t,a,r),t=t.sibling}function Tm(e,t,a,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:$n(e,t,a,r),o&2048&&dl(9,t);break;case 1:$n(e,t,a,r);break;case 3:$n(e,t,a,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wr(e)));break;case 12:if(o&2048){$n(e,t,a,r),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,v=u.onPostCommit;typeof v=="function"&&v(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){tt(t,t.return,w)}}else $n(e,t,a,r);break;case 31:$n(e,t,a,r);break;case 13:$n(e,t,a,r);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?$n(e,t,a,r):ml(e,t):u._visibility&2?$n(e,t,a,r):(u._visibility|=2,vr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&rc(h,t);break;case 24:$n(e,t,a,r),o&2048&&lc(t.alternate,t);break;default:$n(e,t,a,r)}}function vr(e,t,a,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,h=t,v=a,w=r,N=h.flags;switch(h.tag){case 0:case 11:case 15:vr(u,h,v,w,o),dl(8,h);break;case 23:break;case 22:var Y=h.stateNode;h.memoizedState!==null?Y._visibility&2?vr(u,h,v,w,o):ml(u,h):(Y._visibility|=2,vr(u,h,v,w,o)),o&&N&2048&&rc(h.alternate,h);break;case 24:vr(u,h,v,w,o),o&&N&2048&&lc(h.alternate,h);break;default:vr(u,h,v,w,o)}t=t.sibling}}function ml(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,o=r.flags;switch(r.tag){case 22:ml(a,r),o&2048&&rc(r.alternate,r);break;case 24:ml(a,r),o&2048&&lc(r.alternate,r);break;default:ml(a,r)}t=t.sibling}}var pl=8192;function br(e,t,a){if(e.subtreeFlags&pl)for(e=e.child;e!==null;)Rm(e,t,a),e=e.sibling}function Rm(e,t,a){switch(e.tag){case 26:br(e,t,a),e.flags&pl&&e.memoizedState!==null&&Rb(a,In,e.memoizedState,e.memoizedProps);break;case 5:br(e,t,a);break;case 3:case 4:var r=In;In=Zs(e.stateNode.containerInfo),br(e,t,a),In=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=pl,pl=16777216,br(e,t,a),pl=r):br(e,t,a));break;default:br(e,t,a)}}function _m(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 gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Bt=r,Cm(r,e)}_m(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Am(e),e=e.sibling}function Am(e){switch(e.tag){case 0:case 11:case 15:gl(e),e.flags&2048&&Ja(9,e,e.return);break;case 3:gl(e);break;case 12:gl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ls(e)):gl(e);break;default:gl(e)}}function Ls(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Bt=r,Cm(r,e)}_m(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ja(8,t,t.return),Ls(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ls(t));break;default:Ls(t)}e=e.sibling}}function Cm(e,t){for(;Bt!==null;){var a=Bt;switch(a.tag){case 0:case 11:case 15:Ja(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Wr(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,Bt=r;else e:for(a=e;Bt!==null;){r=Bt;var o=r.sibling,u=r.return;if(vm(r),r===a){Bt=null;break e}if(o!==null){o.return=u,Bt=o;break e}Bt=u}}}var H0={getCacheForType:function(e){var t=Kt(At),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Kt(At).controller.signal}},Q0=typeof WeakMap=="function"?WeakMap:Map,We=0,rt=null,Be=null,He=0,et=0,En=null,Ia=!1,Sr=!1,sc=!1,Na=0,St=0,$a=0,Hi=0,oc=0,xn=0,wr=0,yl=null,fn=null,uc=!1,js=0,Om=0,Bs=1/0,qs=null,Wa=null,zt=0,ei=null,Er=null,ka=0,cc=0,fc=null,Mm=null,vl=0,dc=null;function Tn(){return(We&2)!==0&&He!==0?He&-He:C.T!==null?vc():W()}function Dm(){if(xn===0)if((He&536870912)===0||Fe){var e=pa;pa<<=1,(pa&3932160)===0&&(pa=262144),xn=e}else xn=536870912;return e=Sn.current,e!==null&&(e.flags|=32),xn}function dn(e,t,a){(e===rt&&(et===2||et===9)||e.cancelPendingCommit!==null)&&(xr(e,0),ti(e,He,xn,!1)),ot(e,a),((We&2)===0||e!==rt)&&(e===rt&&((We&2)===0&&(Hi|=a),St===4&&ti(e,He,xn,!1)),la(e))}function Nm(e,t,a){if((We&6)!==0)throw Error(s(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||st(e,t),o=r?G0(e,t):mc(e,t,!0),u=r;do{if(o===0){Sr&&!r&&ti(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Y0(a)){o=mc(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var v=e;o=yl;var w=v.current.memoizedState.isDehydrated;if(w&&(xr(v,h).flags|=256),h=mc(v,h,!1),h!==2){if(sc&&!w){v.errorRecoveryDisabledLanes|=u,Hi|=u,o=4;break e}u=fn,fn=o,u!==null&&(fn===null?fn=u:fn.push.apply(fn,u))}o=h}if(u=!1,o!==2)continue}}if(o===1){xr(e,0),ti(e,t,0,!0);break}e:{switch(r=e,u=o,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:ti(r,t,xn,!Ia);break e;case 2:fn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=js+300-mt(),10<o)){if(ti(r,t,xn,!Ia),_e(r,0,!0)!==0)break e;ka=t,r.timeoutHandle=up(km.bind(null,r,a,fn,qs,uc,t,xn,Hi,wr,Ia,u,"Throttled",-0,0),o);break e}km(r,a,fn,qs,uc,t,xn,Hi,wr,Ia,u,null,-0,0)}}break}while(!0);la(e)}function km(e,t,a,r,o,u,h,v,w,N,Y,F,k,L){if(e.timeoutHandle=-1,F=t.subtreeFlags,F&8192||(F&16785408)===16785408){F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:va},Rm(t,u,F);var re=(u&62914560)===u?js-mt():(u&4194048)===u?Om-mt():0;if(re=_b(F,re),re!==null){ka=u,e.cancelPendingCommit=re(Qm.bind(null,e,t,u,a,r,o,h,v,w,Y,F,null,k,L)),ti(e,u,h,!N);return}}Qm(e,t,u,a,r,o,h,v,w)}function Y0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var o=a[r],u=o.getSnapshot;o=o.value;try{if(!vn(u(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ti(e,t,a,r){t&=~oc,t&=~Hi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var u=31-kt(o),h=1<<u;r[u]=-1,o&=~h}a!==0&&ga(e,a,t)}function Hs(){return(We&6)===0?(bl(0),!1):!0}function hc(){if(Be!==null){if(et===0)var e=Be.return;else e=Be,Ea=Di=null,Ou(e),hr=null,tl=0,e=Be;for(;e!==null;)cm(e.alternate,e),e=e.return;Be=null}}function xr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,ob(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ka=0,hc(),rt=e,Be=a=Sa(e.current,null),He=t,et=0,En=null,Ia=!1,Sr=st(e,t),sc=!1,wr=xn=oc=Hi=$a=St=0,fn=yl=null,uc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-kt(r),u=1<<o;t|=e[o],r&=~u}return Na=t,ss(),a}function zm(e,t){De=null,C.H=ul,t===dr||t===ps?(t=Jd(),et=3):t===yu?(t=Jd(),et=4):et=t===Ku?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,En=t,Be===null&&(St=1,Os(e,Nn(t,e.current)))}function Um(){var e=Sn.current;return e===null?!0:(He&4194048)===He?Ln===null:(He&62914560)===He||(He&536870912)!==0?e===Ln:!1}function Lm(){var e=C.H;return C.H=ul,e===null?ul:e}function jm(){var e=C.A;return C.A=H0,e}function Qs(){St=4,Ia||(He&4194048)!==He&&Sn.current!==null||(Sr=!0),($a&134217727)===0&&(Hi&134217727)===0||rt===null||ti(rt,He,xn,!1)}function mc(e,t,a){var r=We;We|=2;var o=Lm(),u=jm();(rt!==e||He!==t)&&(qs=null,xr(e,t)),t=!1;var h=St;e:do try{if(et!==0&&Be!==null){var v=Be,w=En;switch(et){case 8:hc(),h=6;break e;case 3:case 2:case 9:case 6:Sn.current===null&&(t=!0);var N=et;if(et=0,En=null,Tr(e,v,w,N),a&&Sr){h=0;break e}break;default:N=et,et=0,En=null,Tr(e,v,w,N)}}V0(),h=St;break}catch(Y){zm(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Ea=Di=null,We=r,C.H=o,C.A=u,Be===null&&(rt=null,He=0,ss()),h}function V0(){for(;Be!==null;)Bm(Be)}function G0(e,t){var a=We;We|=2;var r=Lm(),o=jm();rt!==e||He!==t?(qs=null,Bs=mt()+500,xr(e,t)):Sr=st(e,t);e:do try{if(et!==0&&Be!==null){t=Be;var u=En;t:switch(et){case 1:et=0,En=null,Tr(e,t,u,1);break;case 2:case 9:if(Pd(u)){et=0,En=null,qm(t);break}t=function(){et!==2&&et!==9||rt!==e||(et=7),la(e)},u.then(t,t);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:Pd(u)?(et=0,En=null,qm(t)):(et=0,En=null,Tr(e,t,u,7));break;case 5:var h=null;switch(Be.tag){case 26:h=Be.memoizedState;case 5:case 27:var v=Be;if(h?Tp(h):v.stateNode.complete){et=0,En=null;var w=v.sibling;if(w!==null)Be=w;else{var N=v.return;N!==null?(Be=N,Ys(N)):Be=null}break t}}et=0,En=null,Tr(e,t,u,5);break;case 6:et=0,En=null,Tr(e,t,u,6);break;case 8:hc(),St=6;break e;default:throw Error(s(462))}}K0();break}catch(Y){zm(e,Y)}while(!0);return Ea=Di=null,C.H=r,C.A=o,We=a,Be!==null?0:(rt=null,He=0,ss(),St)}function K0(){for(;Be!==null&&!Qt();)Bm(Be)}function Bm(e){var t=om(e.alternate,e,Na);e.memoizedProps=e.pendingProps,t===null?Ys(e):Be=t}function qm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=nm(a,t,t.pendingProps,t.type,void 0,He);break;case 11:t=nm(a,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:Ou(t);default:cm(a,t),t=Be=jd(t,Na),t=om(a,t,Na)}e.memoizedProps=e.pendingProps,t===null?Ys(e):Be=t}function Tr(e,t,a,r){Ea=Di=null,Ou(t),hr=null,tl=0;var o=t.return;try{if(k0(e,o,t,a,He)){St=1,Os(e,Nn(a,e.current)),Be=null;return}}catch(u){if(o!==null)throw Be=o,u;St=1,Os(e,Nn(a,e.current)),Be=null;return}t.flags&32768?(Fe||r===1?e=!0:Sr||(He&536870912)!==0?e=!1:(Ia=e=!0,(r===2||r===9||r===3||r===6)&&(r=Sn.current,r!==null&&r.tag===13&&(r.flags|=16384))),Hm(t,e)):Ys(t)}function Ys(e){var t=e;do{if((t.flags&32768)!==0){Hm(t,Ia);return}e=t.return;var a=L0(t.alternate,t,Na);if(a!==null){Be=a;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);St===0&&(St=5)}function Hm(e,t){do{var a=j0(e.alternate,e);if(a!==null){a.flags&=32767,Be=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Be=e;return}Be=e=a}while(e!==null);St=6,Be=null}function Qm(e,t,a,r,o,u,h,v,w){e.cancelPendingCommit=null;do Vs();while(zt!==0);if((We&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=nu,Zt(e,a,u,h,v,w),e===rt&&(Be=rt=null,He=0),Er=t,ei=e,ka=a,cc=u,fc=o,Mm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Z0(Yt,function(){return Xm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=C.T,C.T=null,o=P.p,P.p=2,h=We,We|=4;try{B0(e,t,a)}finally{We=h,P.p=o,C.T=r}}zt=1,Ym(),Vm(),Gm()}}function Ym(){if(zt===1){zt=0;var e=ei,t=Er,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=C.T,C.T=null;var r=P.p;P.p=2;var o=We;We|=4;try{Em(t,e);var u=_c,h=Cd(e.containerInfo),v=u.focusedElem,w=u.selectionRange;if(h!==v&&v&&v.ownerDocument&&Ad(v.ownerDocument.documentElement,v)){if(w!==null&&Io(v)){var N=w.start,Y=w.end;if(Y===void 0&&(Y=N),"selectionStart"in v)v.selectionStart=N,v.selectionEnd=Math.min(Y,v.value.length);else{var F=v.ownerDocument||document,k=F&&F.defaultView||window;if(k.getSelection){var L=k.getSelection(),re=v.textContent.length,xe=Math.min(w.start,re),it=w.end===void 0?xe:Math.min(w.end,re);!L.extend&&xe>it&&(h=it,it=xe,xe=h);var O=_d(v,xe),R=_d(v,it);if(O&&R&&(L.rangeCount!==1||L.anchorNode!==O.node||L.anchorOffset!==O.offset||L.focusNode!==R.node||L.focusOffset!==R.offset)){var D=F.createRange();D.setStart(O.node,O.offset),L.removeAllRanges(),xe>it?(L.addRange(D),L.extend(R.node,R.offset)):(D.setEnd(R.node,R.offset),L.addRange(D))}}}}for(F=[],L=v;L=L.parentNode;)L.nodeType===1&&F.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<F.length;v++){var X=F[v];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}to=!!Rc,_c=Rc=null}finally{We=o,P.p=r,C.T=a}}e.current=t,zt=2}}function Vm(){if(zt===2){zt=0;var e=ei,t=Er,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=C.T,C.T=null;var r=P.p;P.p=2;var o=We;We|=4;try{ym(e,t.alternate,t)}finally{We=o,P.p=r,C.T=a}}zt=3}}function Gm(){if(zt===4||zt===3){zt=0,ta();var e=ei,t=Er,a=ka,r=Mm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?zt=5:(zt=0,Er=ei=null,Km(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Wa=null),I(a),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(ma,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=C.T,o=P.p,P.p=2,C.T=null;try{for(var u=e.onRecoverableError,h=0;h<r.length;h++){var v=r[h];u(v.value,{componentStack:v.stack})}}finally{C.T=t,P.p=o}}(ka&3)!==0&&Vs(),la(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===dc?vl++:(vl=0,dc=e):vl=0,bl(0)}}function Km(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wr(t)))}function Vs(){return Ym(),Vm(),Gm(),Xm()}function Xm(){if(zt!==5)return!1;var e=ei,t=cc;cc=0;var a=I(ka),r=C.T,o=P.p;try{P.p=32>a?32:a,C.T=null,a=fc,fc=null;var u=ei,h=ka;if(zt=0,Er=ei=null,ka=0,(We&6)!==0)throw Error(s(331));var v=We;if(We|=4,Am(u.current),Tm(u,u.current,h,a),We=v,bl(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(ma,u)}catch{}return!0}finally{P.p=o,C.T=r,Km(e,t)}}function Fm(e,t,a){t=Nn(a,t),t=Gu(e.stateNode,t,2),e=Fa(e,t,2),e!==null&&(ot(e,2),la(e))}function tt(e,t,a){if(e.tag===3)Fm(e,e,a);else for(;t!==null;){if(t.tag===3){Fm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wa===null||!Wa.has(r))){e=Nn(a,e),a=Ph(2),r=Fa(t,a,2),r!==null&&(Zh(a,r,t,e),ot(r,2),la(r));break}}t=t.return}}function pc(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new Q0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(sc=!0,o.add(a),e=X0.bind(null,e,t,a),t.then(e,e))}function X0(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,rt===e&&(He&a)===a&&(St===4||St===3&&(He&62914560)===He&&300>mt()-js?(We&2)===0&&xr(e,0):oc|=a,wr===He&&(wr=0)),la(e)}function Pm(e,t){t===0&&(t=Et()),e=Ci(e,t),e!==null&&(ot(e,t),la(e))}function F0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Pm(e,a)}function P0(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Pm(e,a)}function Z0(e,t){return bi(e,t)}var Gs=null,Rr=null,gc=!1,Ks=!1,yc=!1,ni=0;function la(e){e!==Rr&&e.next===null&&(Rr===null?Gs=Rr=e:Rr=Rr.next=e),Ks=!0,gc||(gc=!0,I0())}function bl(e,t){if(!yc&&Ks){yc=!0;do for(var a=!1,r=Gs;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var u=0;else{var h=r.suspendedLanes,v=r.pingedLanes;u=(1<<31-kt(42|e)+1)-1,u&=o&~(h&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,$m(r,u))}else u=He,u=_e(r,r===rt?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(u&3)===0||st(r,u)||(a=!0,$m(r,u));r=r.next}while(a);yc=!1}}function J0(){Zm()}function Zm(){Ks=gc=!1;var e=0;ni!==0&&sb()&&(e=ni);for(var t=mt(),a=null,r=Gs;r!==null;){var o=r.next,u=Jm(r,t);u===0?(r.next=null,a===null?Gs=o:a.next=o,o===null&&(Rr=a)):(a=r,(e!==0||(u&3)!==0)&&(Ks=!0)),r=o}zt!==0&&zt!==5||bl(e),ni!==0&&(ni=0)}function Jm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-kt(u),v=1<<h,w=o[h];w===-1?((v&a)===0||(v&r)!==0)&&(o[h]=wt(v,t)):w<=t&&(e.expiredLanes|=v),u&=~v}if(t=rt,a=He,a=_e(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(et===2||et===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Si(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||st(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Si(r),I(a)){case 2:case 8:a=qa;break;case 32:a=Yt;break;case 268435456:a=_n;break;default:a=Yt}return r=Im.bind(null,e),a=bi(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Si(r),e.callbackPriority=2,e.callbackNode=null,2}function Im(e,t){if(zt!==0&&zt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Vs()&&e.callbackNode!==a)return null;var r=He;return r=_e(e,e===rt?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Nm(e,r,t),Jm(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Im.bind(null,e):null)}function $m(e,t){if(Vs())return null;Nm(e,t,!0)}function I0(){ub(function(){(We&6)!==0?bi(na,J0):Zm()})}function vc(){if(ni===0){var e=cr;e===0&&(e=Kn,Kn<<=1,(Kn&261888)===0&&(Kn=256)),ni=e}return ni}function Wm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wl(""+e)}function ep(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function $0(e,t,a,r,o){if(t==="submit"&&a&&a.stateNode===o){var u=Wm((o[ie]||null).action),h=r.submitter;h&&(t=(t=h[ie]||null)?Wm(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var v=new as("action","action",null,r,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ni!==0){var w=h?ep(o,h):new FormData(o);Bu(a,{pending:!0,data:w,method:o.method,action:u},null,w)}}else typeof u=="function"&&(v.preventDefault(),w=h?ep(o,h):new FormData(o),Bu(a,{pending:!0,data:w,method:o.method,action:u},u,w))},currentTarget:o}]})}}for(var bc=0;bc<tu.length;bc++){var Sc=tu[bc],W0=Sc.toLowerCase(),eb=Sc[0].toUpperCase()+Sc.slice(1);Jn(W0,"on"+eb)}Jn(Dd,"onAnimationEnd"),Jn(Nd,"onAnimationIteration"),Jn(kd,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(g0,"onTransitionRun"),Jn(y0,"onTransitionStart"),Jn(v0,"onTransitionCancel"),Jn(zd,"onTransitionEnd"),On("onMouseEnter",["mouseout","mouseover"]),On("onMouseLeave",["mouseout","mouseover"]),On("onPointerEnter",["pointerout","pointerover"]),On("onPointerLeave",["pointerout","pointerover"]),Pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sl="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(" "),tb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sl));function tp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var h=r.length-1;0<=h;h--){var v=r[h],w=v.instance,N=v.currentTarget;if(v=v.listener,w!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=N;try{u(o)}catch(Y){ls(Y)}o.currentTarget=null,u=w}else for(h=0;h<r.length;h++){if(v=r[h],w=v.instance,N=v.currentTarget,v=v.listener,w!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=N;try{u(o)}catch(Y){ls(Y)}o.currentTarget=null,u=w}}}}function qe(e,t){var a=t[Ee];a===void 0&&(a=t[Ee]=new Set);var r=e+"__bubble";a.has(r)||(np(t,e,2,!1),a.add(r))}function wc(e,t,a){var r=0;t&&(r|=4),np(a,e,r,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function Ec(e){if(!e[Xs]){e[Xs]=!0,Fn.forEach(function(a){a!=="selectionchange"&&(tb.has(a)||wc(a,!1,e),wc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,wc("selectionchange",!1,t))}}function np(e,t,a,r){switch(Dp(t)){case 2:var o=Ob;break;case 8:o=Mb;break;default:o=jc}a=o.bind(null,t,a,e),o=void 0,!Yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function xc(e,t,a,r,o){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var h=r.tag;if(h===3||h===4){var v=r.stateNode.containerInfo;if(v===o)break;if(h===4)for(h=r.return;h!==null;){var w=h.tag;if((w===3||w===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;v!==null;){if(h=vt(v),h===null)return;if(w=h.tag,w===5||w===6||w===26||w===27){r=u=h;continue e}v=v.parentNode}}r=r.return}sd(function(){var N=u,Y=Ho(a),F=[];e:{var k=Ud.get(e);if(k!==void 0){var L=as,re=e;switch(e){case"keypress":if(ts(a)===0)break e;case"keydown":case"keyup":L=Pv;break;case"focusin":re="focus",L=Xo;break;case"focusout":re="blur",L=Xo;break;case"beforeblur":case"afterblur":L=Xo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Lv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Iv;break;case Dd:case Nd:case kd:L=qv;break;case zd:L=Wv;break;case"scroll":case"scrollend":L=zv;break;case"wheel":L=t0;break;case"copy":case"cut":case"paste":L=Qv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=dd;break;case"toggle":case"beforetoggle":L=a0}var xe=(t&4)!==0,it=!xe&&(e==="scroll"||e==="scrollend"),O=xe?k!==null?k+"Capture":null:k;xe=[];for(var R=N,D;R!==null;){var X=R;if(D=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||D===null||O===null||(X=Yr(R,O),X!=null&&xe.push(wl(R,X,D))),it)break;R=R.return}0<xe.length&&(k=new L(k,re,null,a,Y),F.push({event:k,listeners:xe}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",k&&a!==qo&&(re=a.relatedTarget||a.fromElement)&&(vt(re)||re[de]))break e;if((L||k)&&(k=Y.window===Y?Y:(k=Y.ownerDocument)?k.defaultView||k.parentWindow:window,L?(re=a.relatedTarget||a.toElement,L=N,re=re?vt(re):null,re!==null&&(it=f(re),xe=re.tag,re!==it||xe!==5&&xe!==27&&xe!==6)&&(re=null)):(L=null,re=N),L!==re)){if(xe=cd,X="onMouseLeave",O="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(xe=dd,X="onPointerLeave",O="onPointerEnter",R="pointer"),it=L==null?k:jt(L),D=re==null?k:jt(re),k=new xe(X,R+"leave",L,a,Y),k.target=it,k.relatedTarget=D,X=null,vt(Y)===N&&(xe=new xe(O,R+"enter",re,a,Y),xe.target=D,xe.relatedTarget=it,X=xe),it=X,L&&re)t:{for(xe=nb,O=L,R=re,D=0,X=O;X;X=xe(X))D++;X=0;for(var Se=R;Se;Se=xe(Se))X++;for(;0<D-X;)O=xe(O),D--;for(;0<X-D;)R=xe(R),X--;for(;D--;){if(O===R||R!==null&&O===R.alternate){xe=O;break t}O=xe(O),R=xe(R)}xe=null}else xe=null;L!==null&&ap(F,k,L,xe,!1),re!==null&&it!==null&&ap(F,it,re,xe,!0)}}e:{if(k=N?jt(N):window,L=k.nodeName&&k.nodeName.toLowerCase(),L==="select"||L==="input"&&k.type==="file")var Ie=Sd;else if(vd(k))if(wd)Ie=h0;else{Ie=f0;var fe=c0}else L=k.nodeName,!L||L.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?N&&Bo(N.elementType)&&(Ie=Sd):Ie=d0;if(Ie&&(Ie=Ie(e,N))){bd(F,Ie,a,Y);break e}fe&&fe(e,k,N),e==="focusout"&&N&&k.type==="number"&&N.memoizedProps.value!=null&&jo(k,"number",k.value)}switch(fe=N?jt(N):window,e){case"focusin":(vd(fe)||fe.contentEditable==="true")&&(nr=fe,$o=N,Jr=null);break;case"focusout":Jr=$o=nr=null;break;case"mousedown":Wo=!0;break;case"contextmenu":case"mouseup":case"dragend":Wo=!1,Od(F,a,Y);break;case"selectionchange":if(p0)break;case"keydown":case"keyup":Od(F,a,Y)}var ke;if(Po)e:{switch(e){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else tr?gd(e,a)&&(Qe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Qe="onCompositionStart");Qe&&(hd&&a.locale!=="ko"&&(tr||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&tr&&(ke=od()):(Ha=Y,Vo="value"in Ha?Ha.value:Ha.textContent,tr=!0)),fe=Fs(N,Qe),0<fe.length&&(Qe=new fd(Qe,e,null,a,Y),F.push({event:Qe,listeners:fe}),ke?Qe.data=ke:(ke=yd(a),ke!==null&&(Qe.data=ke)))),(ke=r0?l0(e,a):s0(e,a))&&(Qe=Fs(N,"onBeforeInput"),0<Qe.length&&(fe=new fd("onBeforeInput","beforeinput",null,a,Y),F.push({event:fe,listeners:Qe}),fe.data=ke)),$0(F,e,N,a,Y)}tp(F,t)})}function wl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Fs(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Yr(e,a),o!=null&&r.unshift(wl(e,o,u)),o=Yr(e,t),o!=null&&r.push(wl(e,o,u))),e.tag===3)return r;e=e.return}return[]}function nb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ap(e,t,a,r,o){for(var u=t._reactName,h=[];a!==null&&a!==r;){var v=a,w=v.alternate,N=v.stateNode;if(v=v.tag,w!==null&&w===r)break;v!==5&&v!==26&&v!==27||N===null||(w=N,o?(N=Yr(a,u),N!=null&&h.unshift(wl(a,N,w))):o||(N=Yr(a,u),N!=null&&h.push(wl(a,N,w)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var ab=/\r\n?/g,ib=/\u0000|\uFFFD/g;function ip(e){return(typeof e=="string"?e:""+e).replace(ab,`
|
|
10
|
-
`).replace(ib,"")}function rp(e,t){return t=ip(t),ip(e)===t}function at(e,t,a,r,o,u){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||$i(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&$i(e,""+r);break;case"className":Zn(e,"class",r);break;case"tabIndex":Zn(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Zn(e,a,r);break;case"style":rd(e,r,u);break;case"data":if(t!=="object"){Zn(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Wl(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&at(e,t,"name",o.name,o,null),at(e,t,"formEncType",o.formEncType,o,null),at(e,t,"formMethod",o.formMethod,o,null),at(e,t,"formTarget",o.formTarget,o,null)):(at(e,t,"encType",o.encType,o,null),at(e,t,"method",o.method,o,null),at(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Wl(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=va);break;case"onScroll":r!=null&&qe("scroll",e);break;case"onScrollEnd":r!=null&&qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Wl(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":qe("beforetoggle",e),qe("toggle",e),xt(e,"popover",r);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":xt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Nv.get(a)||a,xt(e,a,r))}}function Tc(e,t,a,r,o,u){switch(a){case"style":rd(e,r,u);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof r=="string"?$i(e,r):(typeof r=="number"||typeof r=="bigint")&&$i(e,""+r);break;case"onScroll":r!=null&&qe("scroll",e);break;case"onScrollEnd":r!=null&&qe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=va);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yn.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),u=e[ie]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof r=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,o);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):xt(e,a,r)}}}function Ft(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",e),qe("load",e);var r=!1,o=!1,u;for(u in a)if(a.hasOwnProperty(u)){var h=a[u];if(h!=null)switch(u){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:at(e,t,u,h,a,null)}}o&&at(e,t,"srcSet",a.srcSet,a,null),r&&at(e,t,"src",a.src,a,null);return;case"input":qe("invalid",e);var v=u=h=o=null,w=null,N=null;for(r in a)if(a.hasOwnProperty(r)){var Y=a[r];if(Y!=null)switch(r){case"name":o=Y;break;case"type":h=Y;break;case"checked":w=Y;break;case"defaultChecked":N=Y;break;case"value":u=Y;break;case"defaultValue":v=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,t));break;default:at(e,t,r,Y,a,null)}}td(e,u,v,w,N,h,o,!1);return;case"select":qe("invalid",e),r=h=u=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":u=v;break;case"defaultValue":h=v;break;case"multiple":r=v;default:at(e,t,o,v,a,null)}t=u,a=h,e.multiple=!!r,t!=null?Ii(e,!!r,t,!1):a!=null&&Ii(e,!!r,a,!0);return;case"textarea":qe("invalid",e),u=o=r=null;for(h in a)if(a.hasOwnProperty(h)&&(v=a[h],v!=null))switch(h){case"value":r=v;break;case"defaultValue":o=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:at(e,t,h,v,a,null)}ad(e,r,o,u);return;case"option":for(w in a)a.hasOwnProperty(w)&&(r=a[w],r!=null)&&(w==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":at(e,t,w,r,a,null));return;case"dialog":qe("beforetoggle",e),qe("toggle",e),qe("cancel",e),qe("close",e);break;case"iframe":case"object":qe("load",e);break;case"video":case"audio":for(r=0;r<Sl.length;r++)qe(Sl[r],e);break;case"image":qe("error",e),qe("load",e);break;case"details":qe("toggle",e);break;case"embed":case"source":case"link":qe("error",e),qe("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(N in a)if(a.hasOwnProperty(N)&&(r=a[N],r!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:at(e,t,N,r,a,null)}return;default:if(Bo(t)){for(Y in a)a.hasOwnProperty(Y)&&(r=a[Y],r!==void 0&&Tc(e,t,Y,r,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(r=a[v],r!=null&&at(e,t,v,r,a,null))}function rb(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,h=null,v=null,w=null,N=null,Y=null;for(L in a){var F=a[L];if(a.hasOwnProperty(L)&&F!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":w=F;default:r.hasOwnProperty(L)||at(e,t,L,null,r,F)}}for(var k in r){var L=r[k];if(F=a[k],r.hasOwnProperty(k)&&(L!=null||F!=null))switch(k){case"type":u=L;break;case"name":o=L;break;case"checked":N=L;break;case"defaultChecked":Y=L;break;case"value":h=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:L!==F&&at(e,t,k,L,r,F)}}Lo(e,h,v,w,N,Y,u,o);return;case"select":L=h=v=k=null;for(u in a)if(w=a[u],a.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":L=w;default:r.hasOwnProperty(u)||at(e,t,u,null,r,w)}for(o in r)if(u=r[o],w=a[o],r.hasOwnProperty(o)&&(u!=null||w!=null))switch(o){case"value":k=u;break;case"defaultValue":v=u;break;case"multiple":h=u;default:u!==w&&at(e,t,o,u,r,w)}t=v,a=h,r=L,k!=null?Ii(e,!!a,k,!1):!!r!=!!a&&(t!=null?Ii(e,!!a,t,!0):Ii(e,!!a,a?[]:"",!1));return;case"textarea":L=k=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!r.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:at(e,t,v,null,r,o)}for(h in r)if(o=r[h],u=a[h],r.hasOwnProperty(h)&&(o!=null||u!=null))switch(h){case"value":k=o;break;case"defaultValue":L=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==u&&at(e,t,h,o,r,u)}nd(e,k,L);return;case"option":for(var re in a)k=a[re],a.hasOwnProperty(re)&&k!=null&&!r.hasOwnProperty(re)&&(re==="selected"?e.selected=!1:at(e,t,re,null,r,k));for(w in r)k=r[w],L=a[w],r.hasOwnProperty(w)&&k!==L&&(k!=null||L!=null)&&(w==="selected"?e.selected=k&&typeof k!="function"&&typeof k!="symbol":at(e,t,w,k,r,L));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 xe in a)k=a[xe],a.hasOwnProperty(xe)&&k!=null&&!r.hasOwnProperty(xe)&&at(e,t,xe,null,r,k);for(N in r)if(k=r[N],L=a[N],r.hasOwnProperty(N)&&k!==L&&(k!=null||L!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:at(e,t,N,k,r,L)}return;default:if(Bo(t)){for(var it in a)k=a[it],a.hasOwnProperty(it)&&k!==void 0&&!r.hasOwnProperty(it)&&Tc(e,t,it,void 0,r,k);for(Y in r)k=r[Y],L=a[Y],!r.hasOwnProperty(Y)||k===L||k===void 0&&L===void 0||Tc(e,t,Y,k,r,L);return}}for(var O in a)k=a[O],a.hasOwnProperty(O)&&k!=null&&!r.hasOwnProperty(O)&&at(e,t,O,null,r,k);for(F in r)k=r[F],L=a[F],!r.hasOwnProperty(F)||k===L||k==null&&L==null||at(e,t,F,k,r,L)}function lp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var o=a[r],u=o.transferSize,h=o.initiatorType,v=o.duration;if(u&&v&&lp(h)){for(h=0,v=o.responseEnd,r+=1;r<a.length;r++){var w=a[r],N=w.startTime;if(N>v)break;var Y=w.transferSize,F=w.initiatorType;Y&&lp(F)&&(w=w.responseEnd,h+=Y*(w<v?1:(v-N)/(w-N)))}if(--r,t+=8*(u+h)/(o.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 Rc=null,_c=null;function Ps(e){return e.nodeType===9?e:e.ownerDocument}function sp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function op(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 Ac(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 Cc=null;function sb(){var e=window.event;return e&&e.type==="popstate"?e===Cc?!1:(Cc=e,!0):(Cc=null,!1)}var up=typeof setTimeout=="function"?setTimeout:void 0,ob=typeof clearTimeout=="function"?clearTimeout:void 0,cp=typeof Promise=="function"?Promise:void 0,ub=typeof queueMicrotask=="function"?queueMicrotask:typeof cp<"u"?function(e){return cp.resolve(null).then(e).catch(cb)}:up;function cb(e){setTimeout(function(){throw e})}function ai(e){return e==="head"}function fp(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(o),Or(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")El(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,El(a);for(var u=a.firstChild;u;){var h=u.nextSibling,v=u.nodeName;u[pt]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=h}}else a==="body"&&El(e.ownerDocument.body);a=o}while(a);Or(t)}function dp(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function Oc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Oc(a),yt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function fb(e,t,a,r){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[pt])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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=jn(e.nextSibling),e===null)break}return null}function db(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=jn(e.nextSibling),e===null))return null;return e}function hp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jn(e.nextSibling),e===null))return null;return e}function Mc(e){return e.data==="$?"||e.data==="$~"}function Dc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function jn(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 Nc=null;function mp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return jn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function pp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function gp(e,t,a){switch(t=Ps(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function El(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yt(e)}var Bn=new Map,yp=new Set;function Zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var za=P.d;P.d={f:mb,r:pb,D:gb,C:yb,L:vb,m:bb,X:wb,S:Sb,M:Eb};function mb(){var e=za.f(),t=Hs();return e||t}function pb(e){var t=Ge(e);t!==null&&t.tag===5&&t.type==="form"?zh(t):za.r(e)}var _r=typeof document>"u"?null:document;function vp(e,t,a){var r=_r;if(r&&typeof t=="string"&&t){var o=Mn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),yp.has(o)||(yp.add(o),e={rel:e,crossOrigin:a,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),Ft(t,"link",e),dt(t),r.head.appendChild(t)))}}function gb(e){za.D(e),vp("dns-prefetch",e,null)}function yb(e,t){za.C(e,t),vp("preconnect",e,t)}function vb(e,t,a){za.L(e,t,a);var r=_r;if(r&&e&&t){var o='link[rel="preload"][as="'+Mn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Mn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Mn(a.imageSizes)+'"]')):o+='[href="'+Mn(e)+'"]';var u=o;switch(t){case"style":u=Ar(e);break;case"script":u=Cr(e)}Bn.has(u)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Bn.set(u,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(xl(u))||t==="script"&&r.querySelector(Tl(u))||(t=r.createElement("link"),Ft(t,"link",e),dt(t),r.head.appendChild(t)))}}function bb(e,t){za.m(e,t);var a=_r;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Mn(r)+'"][href="'+Mn(e)+'"]',u=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Cr(e)}if(!Bn.has(u)&&(e=y({rel:"modulepreload",href:e},t),Bn.set(u,e),a.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Tl(u)))return}r=a.createElement("link"),Ft(r,"link",e),dt(r),a.head.appendChild(r)}}}function Sb(e,t,a){za.S(e,t,a);var r=_r;if(r&&e){var o=ln(r).hoistableStyles,u=Ar(e);t=t||"default";var h=o.get(u);if(!h){var v={loading:0,preload:null};if(h=r.querySelector(xl(u)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Bn.get(u))&&kc(e,a);var w=h=r.createElement("link");dt(w),Ft(w,"link",e),w._p=new Promise(function(N,Y){w.onload=N,w.onerror=Y}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Js(h,t,r)}h={type:"stylesheet",instance:h,count:1,state:v},o.set(u,h)}}}function wb(e,t){za.X(e,t);var a=_r;if(a&&e){var r=ln(a).hoistableScripts,o=Cr(e),u=r.get(o);u||(u=a.querySelector(Tl(o)),u||(e=y({src:e,async:!0},t),(t=Bn.get(o))&&zc(e,t),u=a.createElement("script"),dt(u),Ft(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(o,u))}}function Eb(e,t){za.M(e,t);var a=_r;if(a&&e){var r=ln(a).hoistableScripts,o=Cr(e),u=r.get(o);u||(u=a.querySelector(Tl(o)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Bn.get(o))&&zc(e,t),u=a.createElement("script"),dt(u),Ft(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(o,u))}}function bp(e,t,a,r){var o=(o=ue.current)?Zs(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ar(a.href),a=ln(o).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ar(a.href);var u=ln(o).hoistableStyles,h=u.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=o.querySelector(xl(e)))&&!u._p&&(h.instance=u,h.state.loading=5),Bn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Bn.set(e,a),u||xb(o,e,a,h.state))),t&&r===null)throw Error(s(528,""));return h}if(t&&r!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cr(a),a=ln(o).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ar(e){return'href="'+Mn(e)+'"'}function xl(e){return'link[rel="stylesheet"]['+e+"]"}function Sp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function xb(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Ft(t,"link",a),dt(t),e.head.appendChild(t))}function Cr(e){return'[src="'+Mn(e)+'"]'}function Tl(e){return"script[async]"+e}function wp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Mn(a.href)+'"]');if(r)return t.instance=r,dt(r),r;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),dt(r),Ft(r,"style",o),Js(r,a.precedence,e),t.instance=r;case"stylesheet":o=Ar(a.href);var u=e.querySelector(xl(o));if(u)return t.state.loading|=4,t.instance=u,dt(u),u;r=Sp(a),(o=Bn.get(o))&&kc(r,o),u=(e.ownerDocument||e).createElement("link"),dt(u);var h=u;return h._p=new Promise(function(v,w){h.onload=v,h.onerror=w}),Ft(u,"link",r),t.state.loading|=4,Js(u,a.precedence,e),t.instance=u;case"script":return u=Cr(a.src),(o=e.querySelector(Tl(u)))?(t.instance=o,dt(o),o):(r=a,(o=Bn.get(u))&&(r=y({},a),zc(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),dt(o),Ft(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Js(r,a.precedence,e));return t.instance}function Js(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,u=o,h=0;h<r.length;h++){var v=r[h];if(v.dataset.precedence===t)u=v;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Is=null;function Ep(e,t,a){if(Is===null){var r=new Map,o=Is=new Map;o.set(a,r)}else o=Is,r=o.get(a),r||(r=new Map,o.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var u=a[o];if(!(u[pt]||u[ne]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var v=r.get(h);v?v.push(u):r.set(h,[u])}}return r}function xp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Tb(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Tp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rb(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Ar(r.href),u=t.querySelector(xl(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=$s.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,dt(u);return}u=t.ownerDocument||t,r=Sp(r),(o=Bn.get(o))&&kc(r,o),u=u.createElement("link"),dt(u);var h=u;h._p=new Promise(function(v,w){h.onload=v,h.onerror=w}),Ft(u,"link",r),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=$s.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Uc=0;function _b(e,t){return e.stylesheets&&e.count===0&&eo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&eo(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Uc===0&&(Uc=62500*lb());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&eo(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Uc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function $s(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ws=null;function eo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ws=new Map,t.forEach(Ab,e),Ws=null,$s.call(e))}function Ab(e,t){if(!(t.state.loading&4)){var a=Ws.get(e);if(a)var r=a.get(null);else{a=new Map,Ws.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var h=o[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),r=h)}r&&a.set(null,r)}o=t.instance,h=o.getAttribute("data-precedence"),u=a.get(h)||r,u===r&&a.set(null,o),a.set(h,o),this.count++,r=$s.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Rl={$$typeof:$,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function Cb(e,t,a,r,o,u,h,v,w){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=gn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gn(0),this.hiddenUpdates=gn(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Rp(e,t,a,r,o,u,h,v,w,N,Y,F){return e=new Cb(e,t,a,h,w,N,Y,F,v),t=1,u===!0&&(t|=24),u=bn(3,null,null,t),e.current=u,u.stateNode=e,t=mu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:r,isDehydrated:a,cache:t},vu(u),e}function _p(e){return e?(e=rr,e):rr}function Ap(e,t,a,r,o,u){o=_p(o),r.context===null?r.context=o:r.pendingContext=o,r=Xa(t),r.payload={element:a},u=u===void 0?null:u,u!==null&&(r.callback=u),a=Fa(e,r,t),a!==null&&(dn(a,e,t),al(a,e,t))}function Cp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Lc(e,t){Cp(e,t),(e=e.alternate)&&Cp(e,t)}function Op(e){if(e.tag===13||e.tag===31){var t=Ci(e,67108864);t!==null&&dn(t,e,67108864),Lc(e,67108864)}}function Mp(e){if(e.tag===13||e.tag===31){var t=Tn();t=z(t);var a=Ci(e,t);a!==null&&dn(a,e,t),Lc(e,t)}}var to=!0;function Ob(e,t,a,r){var o=C.T;C.T=null;var u=P.p;try{P.p=2,jc(e,t,a,r)}finally{P.p=u,C.T=o}}function Mb(e,t,a,r){var o=C.T;C.T=null;var u=P.p;try{P.p=8,jc(e,t,a,r)}finally{P.p=u,C.T=o}}function jc(e,t,a,r){if(to){var o=Bc(r);if(o===null)xc(e,t,r,no,a),Np(e,r);else if(Nb(o,e,t,a,r))r.stopPropagation();else if(Np(e,r),t&4&&-1<Db.indexOf(e)){for(;o!==null;){var u=Ge(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=Cn(u.pendingLanes);if(h!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var w=1<<31-kt(h);v.entanglements[1]|=w,h&=~w}la(u),(We&6)===0&&(Bs=mt()+500,bl(0))}}break;case 31:case 13:v=Ci(u,2),v!==null&&dn(v,u,2),Hs(),Lc(u,2)}if(u=Bc(r),u===null&&xc(e,t,r,no,a),u===o)break;o=u}o!==null&&r.stopPropagation()}else xc(e,t,r,null,a)}}function Bc(e){return e=Ho(e),qc(e)}var no=null;function qc(e){if(no=null,e=vt(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return no=e,null}function Dp(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(ha()){case na:return 2;case qa:return 8;case Yt:case Wt:return 32;case _n:return 268435456;default:return 32}default:return 32}}var Hc=!1,ii=null,ri=null,li=null,_l=new Map,Al=new Map,si=[],Db="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 Np(e,t){switch(e){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":_l.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Al.delete(t.pointerId)}}function Cl(e,t,a,r,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Ge(t),t!==null&&Op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Nb(e,t,a,r,o){switch(t){case"focusin":return ii=Cl(ii,e,t,a,r,o),!0;case"dragenter":return ri=Cl(ri,e,t,a,r,o),!0;case"mouseover":return li=Cl(li,e,t,a,r,o),!0;case"pointerover":var u=o.pointerId;return _l.set(u,Cl(_l.get(u)||null,e,t,a,r,o)),!0;case"gotpointercapture":return u=o.pointerId,Al.set(u,Cl(Al.get(u)||null,e,t,a,r,o)),!0}return!1}function kp(e){var t=vt(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,pe(e.priority,function(){Mp(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,pe(e.priority,function(){Mp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ao(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Bc(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);qo=r,a.target.dispatchEvent(r),qo=null}else return t=Ge(a),t!==null&&Op(t),e.blockedOn=a,!1;t.shift()}return!0}function zp(e,t,a){ao(e)&&a.delete(t)}function kb(){Hc=!1,ii!==null&&ao(ii)&&(ii=null),ri!==null&&ao(ri)&&(ri=null),li!==null&&ao(li)&&(li=null),_l.forEach(zp),Al.forEach(zp)}function io(e,t){e.blockedOn===t&&(e.blockedOn=null,Hc||(Hc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,kb)))}var ro=null;function Up(e){ro!==e&&(ro=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ro===e&&(ro=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(qc(r||a)===null)continue;break}var u=Ge(a);u!==null&&(e.splice(t,3),t-=3,Bu(u,{pending:!0,data:o,method:a.method,action:r},r,o))}}))}function Or(e){function t(w){return io(w,e)}ii!==null&&io(ii,e),ri!==null&&io(ri,e),li!==null&&io(li,e),_l.forEach(t),Al.forEach(t);for(var a=0;a<si.length;a++){var r=si[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<si.length&&(a=si[0],a.blockedOn===null);)kp(a),a.blockedOn===null&&si.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var o=a[r],u=a[r+1],h=o[ie]||null;if(typeof u=="function")h||Up(a);else if(h){var v=null;if(u&&u.hasAttribute("formAction")){if(o=u,h=u[ie]||null)v=h.formAction;else if(qc(o)!==null)continue}else v=h.action;typeof v=="function"?a[r+1]=v:(a.splice(r,3),r-=3),Up(a)}}}function Lp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(a,20)}function a(){if(!r&&!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 r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Qc(e){this._internalRoot=e}lo.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,r=Tn();Ap(a,r,e,t,null,null)},lo.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ap(e.current,2,null,e,null,null),Hs(),t[de]=null}};function lo(e){this._internalRoot=e}lo.prototype.unstable_scheduleHydration=function(e){if(e){var t=W();e={blockedOn:null,target:e,priority:t};for(var a=0;a<si.length&&t!==0&&t<si[a].priority;a++);si.splice(a,0,e),a===0&&kp(e)}};var jp=i.version;if(jp!=="19.2.4")throw Error(s(527,jp,"19.2.4"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var zb={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var so=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!so.isDisabled&&so.supportsFiber)try{ma=so.inject(zb),ut=so}catch{}}return Ml.createRoot=function(e,t){if(!c(e))throw Error(s(299));var a=!1,r="",o=Gh,u=Kh,h=Xh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Rp(e,1,!1,null,null,a,r,null,o,u,h,Lp),e[de]=t.current,Ec(e),new Qc(t)},Ml.hydrateRoot=function(e,t,a){if(!c(e))throw Error(s(299));var r=!1,o="",u=Gh,h=Kh,v=Xh,w=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=Rp(e,1,!0,t,a??null,r,o,w,u,h,v,Lp),t.context=_p(null),a=t.current,r=Tn(),r=z(r),o=Xa(r),o.callback=null,Fa(a,o,r),a=r,t.current.lanes=a,ot(t,a),la(t),e[de]=t.current,Ec(e),new lo(t)},Ml.version="19.2.4",Ml}var Fp;function Kb(){if(Fp)return Gc.exports;Fp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Gc.exports=Gb(),Gc.exports}var Xb=Kb(),Lr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fb={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},Pb=class{#e=Fb;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,i){return this.#e.setTimeout(n,i)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,i){return this.#e.setInterval(n,i)}clearInterval(n){this.#e.clearInterval(n)}},Yi=new Pb;function Zb(n){setTimeout(n,0)}var Gi=typeof window>"u"||"Deno"in globalThis;function tn(){}function Jb(n,i){return typeof n=="function"?n(i):n}function of(n){return typeof n=="number"&&n>=0&&n!==1/0}function ry(n,i){return Math.max(n+(i||0)-Date.now(),0)}function mi(n,i){return typeof n=="function"?n(i):n}function Hn(n,i){return typeof n=="function"?n(i):n}function Pp(n,i){const{type:l="all",exact:s,fetchStatus:c,predicate:f,queryKey:d,stale:p}=n;if(d){if(s){if(i.queryHash!==Of(d,i.options))return!1}else if(!Ql(i.queryKey,d))return!1}if(l!=="all"){const g=i.isActive();if(l==="active"&&!g||l==="inactive"&&g)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||c&&c!==i.state.fetchStatus||f&&!f(i))}function Zp(n,i){const{exact:l,status:s,predicate:c,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(l){if(Ki(i.options.mutationKey)!==Ki(f))return!1}else if(!Ql(i.options.mutationKey,f))return!1}return!(s&&i.state.status!==s||c&&!c(i))}function Of(n,i){return(i?.queryKeyHashFn||Ki)(n)}function Ki(n){return JSON.stringify(n,(i,l)=>uf(l)?Object.keys(l).sort().reduce((s,c)=>(s[c]=l[c],s),{}):l)}function Ql(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(l=>Ql(n[l],i[l])):!1}var Ib=Object.prototype.hasOwnProperty;function ly(n,i,l=0){if(n===i)return n;if(l>500)return i;const s=Jp(n)&&Jp(i);if(!s&&!(uf(n)&&uf(i)))return i;const f=(s?n:Object.keys(n)).length,d=s?i:Object.keys(i),p=d.length,g=s?new Array(p):{};let m=0;for(let b=0;b<p;b++){const y=s?b:d[b],E=n[y],M=i[y];if(E===M){g[y]=E,(s?b<f:Ib.call(n,y))&&m++;continue}if(E===null||M===null||typeof E!="object"||typeof M!="object"){g[y]=M;continue}const U=ly(E,M,l+1);g[y]=U,U===E&&m++}return f===p&&m===f?n:g}function Co(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const l in n)if(n[l]!==i[l])return!1;return!0}function Jp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function uf(n){if(!Ip(n))return!1;const i=n.constructor;if(i===void 0)return!0;const l=i.prototype;return!(!Ip(l)||!l.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Ip(n){return Object.prototype.toString.call(n)==="[object Object]"}function $b(n){return new Promise(i=>{Yi.setTimeout(i,n)})}function cf(n,i,l){return typeof l.structuralSharing=="function"?l.structuralSharing(n,i):l.structuralSharing!==!1?ly(n,i):i}function Wb(n,i,l=0){const s=[...n,i];return l&&s.length>l?s.slice(1):s}function eS(n,i,l=0){const s=[i,...n];return l&&s.length>l?s.slice(0,-1):s}var Mf=Symbol();function sy(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Mf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Df(n,i){return typeof n=="function"?n(...i):!!n}function tS(n,i,l){let s=!1,c;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(c??=i(),s||(s=!0,c.aborted?l():c.addEventListener("abort",l,{once:!0})),c)}),n}var nS=class extends Lr{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!Gi&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Nf=new nS;function ff(){let n,i;const l=new Promise((c,f)=>{n=c,i=f});l.status="pending",l.catch(()=>{});function s(c){Object.assign(l,c),delete l.resolve,delete l.reject}return l.resolve=c=>{s({status:"fulfilled",value:c}),n(c)},l.reject=c=>{s({status:"rejected",reason:c}),i(c)},l}var aS=Zb;function iS(){let n=[],i=0,l=p=>{p()},s=p=>{p()},c=aS;const f=p=>{i?n.push(p):c(()=>{l(p)})},d=()=>{const p=n;n=[],p.length&&c(()=>{s(()=>{p.forEach(g=>{l(g)})})})};return{batch:p=>{let g;i++;try{g=p()}finally{i--,i||d()}return g},batchCalls:p=>(...g)=>{f(()=>{p(...g)})},schedule:f,setNotifyFunction:p=>{l=p},setBatchNotifyFunction:p=>{s=p},setScheduler:p=>{c=p}}}var Lt=iS(),rS=class extends Lr{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!Gi&&window.addEventListener){const i=()=>n(!0),l=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(l=>{l(n)}))}isOnline(){return this.#e}},Oo=new rS;function lS(n){return Math.min(1e3*2**n,3e4)}function oy(n){return(n??"online")==="online"?Oo.isOnline():!0}var df=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function uy(n){let i=!1,l=0,s;const c=ff(),f=()=>c.status!=="pending",d=j=>{if(!f()){const K=new df(j);E(K),n.onCancel?.(K)}},p=()=>{i=!0},g=()=>{i=!1},m=()=>Nf.isFocused()&&(n.networkMode==="always"||Oo.isOnline())&&n.canRun(),b=()=>oy(n.networkMode)&&n.canRun(),y=j=>{f()||(s?.(),c.resolve(j))},E=j=>{f()||(s?.(),c.reject(j))},M=()=>new Promise(j=>{s=K=>{(f()||m())&&j(K)},n.onPause?.()}).then(()=>{s=void 0,f()||n.onContinue?.()}),U=()=>{if(f())return;let j;const K=l===0?n.initialPromise:void 0;try{j=K??n.fn()}catch(G){j=Promise.reject(G)}Promise.resolve(j).then(y).catch(G=>{if(f())return;const J=n.retry??(Gi?0:3),$=n.retryDelay??lS,ye=typeof $=="function"?$(l,G):$,he=J===!0||typeof J=="number"&&l<J||typeof J=="function"&&J(l,G);if(i||!he){E(G);return}l++,n.onFail?.(l,G),$b(ye).then(()=>m()?void 0:M()).then(()=>{i?E(G):U()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(s?.(),c),cancelRetry:p,continueRetry:g,canStart:b,start:()=>(b()?U():M().then(U),c)}}var cy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),of(this.gcTime)&&(this.#e=Yi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Gi?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Yi.clearTimeout(this.#e),this.#e=void 0)}},sS=class extends cy{#e;#t;#n;#i;#a;#l;#s;constructor(n){super(),this.#s=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#n=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Wp(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Wp(this.options);i.data!==void 0&&(this.setState($p(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const l=cf(this.state.data,n,this.options);return this.#r({data:l,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),l}setState(n,i){this.#r({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#a?.promise;return this.#a?.cancel(n),i?i.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Hn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>mi(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!ry(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}const l=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#s=!0,l.signal)})},c=()=>{const p=sy(this.options,i),m=(()=>{const b={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(b),b})();return this.#s=!1,this.options.persister?this.options.persister(p,m,this):p(m)},d=(()=>{const p={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:c};return s(p),p})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#r({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=uy({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:p=>{p instanceof df&&p.revert&&this.setState({...this.#t,fetchStatus:"idle"}),l.abort()},onFail:(p,g)=>{this.#r({type:"failed",failureCount:p,error:g})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const p=await this.#a.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#n.config.onSuccess?.(p,this),this.#n.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof df){if(p.silent)return this.#a.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#r({type:"error",error:p}),this.#n.config.onError?.(p,this),this.#n.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#r(n){const i=l=>{switch(n.type){case"failed":return{...l,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...fy(l.data,this.options),fetchMeta:n.meta??null};case"success":const s={...l,...$p(n.data,n.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const c=n.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...n.state}}};this.state=i(this.state),Lt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function fy(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oy(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function $p(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wp(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,l=i!==void 0,s=l?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:l?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}var oS=class extends Lr{constructor(n,i){super(),this.options=i,this.#e=n,this.#r=null,this.#s=ff(),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#n=void 0;#i=void 0;#a;#l;#s;#r;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),eg(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#w(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,l=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Hn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),i._defaulted&&!Co(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&tg(this.#t,l,this.options,i)&&this.#f(),this.updateResult(),s&&(this.#t!==l||Hn(this.options.enabled,this.#t)!==Hn(i.enabled,this.#t)||mi(this.options.staleTime,this.#t)!==mi(i.staleTime,this.#t))&&this.#g();const c=this.#y();s&&(this.#t!==l||Hn(this.options.enabled,this.#t)!==Hn(i.enabled,this.#t)||c!==this.#o)&&this.#v(c)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),l=this.createResult(i,n);return cS(this,l)&&(this.#i=l,this.#l=this.options,this.#a=this.#t.state),l}getCurrentResult(){return this.#i}trackResult(n,i){return new Proxy(n,{get:(l,s)=>(this.trackProp(s),i?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),l=this.#e.getQueryCache().build(this.#e,i);return l.fetch().then(()=>this.createResult(l,i))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(n){this.#E();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(tn)),i}#g(){this.#S();const n=mi(this.options.staleTime,this.#t);if(Gi||this.#i.isStale||!of(n))return;const l=ry(this.#i.dataUpdatedAt,n)+1;this.#u=Yi.setTimeout(()=>{this.#i.isStale||this.updateResult()},l)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(n){this.#w(),this.#o=n,!(Gi||Hn(this.options.enabled,this.#t)===!1||!of(this.#o)||this.#o===0)&&(this.#c=Yi.setInterval(()=>{(this.options.refetchIntervalInBackground||Nf.isFocused())&&this.#f()},this.#o))}#b(){this.#g(),this.#v(this.#y())}#S(){this.#u&&(Yi.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(Yi.clearInterval(this.#c),this.#c=void 0)}createResult(n,i){const l=this.#t,s=this.options,c=this.#i,f=this.#a,d=this.#l,g=n!==l?n.state:this.#n,{state:m}=n;let b={...m},y=!1,E;if(i._optimisticResults){const V=this.hasListeners(),oe=!V&&eg(n,i),Ce=V&&tg(n,l,i,s);(oe||Ce)&&(b={...b,...fy(m.data,n.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:M,errorUpdatedAt:U,status:j}=b;E=b.data;let K=!1;if(i.placeholderData!==void 0&&E===void 0&&j==="pending"){let V;c?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(V=c.data,K=!0):V=typeof i.placeholderData=="function"?i.placeholderData(this.#h?.state.data,this.#h):i.placeholderData,V!==void 0&&(j="success",E=cf(c?.data,V,i),y=!0)}if(i.select&&E!==void 0&&!K)if(c&&E===f?.data&&i.select===this.#p)E=this.#d;else try{this.#p=i.select,E=i.select(E),E=cf(c?.data,E,i),this.#d=E,this.#r=null}catch(V){this.#r=V}this.#r&&(M=this.#r,E=this.#d,U=Date.now(),j="error");const G=b.fetchStatus==="fetching",J=j==="pending",$=j==="error",ye=J&&G,he=E!==void 0,A={status:j,fetchStatus:b.fetchStatus,isPending:J,isSuccess:j==="success",isError:$,isInitialLoading:ye,isLoading:ye,data:E,dataUpdatedAt:b.dataUpdatedAt,error:M,errorUpdatedAt:U,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:G,isRefetching:G&&!J,isLoadingError:$&&!he,isPaused:b.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:$&&he,isStale:kf(n,i),refetch:this.refetch,promise:this.#s,isEnabled:Hn(i.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const V=A.data!==void 0,oe=A.status==="error"&&!V,Ce=Ue=>{oe?Ue.reject(A.error):V&&Ue.resolve(A.data)},Ae=()=>{const Ue=this.#s=A.promise=ff();Ce(Ue)},Te=this.#s;switch(Te.status){case"pending":n.queryHash===l.queryHash&&Ce(Te);break;case"fulfilled":(oe||A.data!==Te.value)&&Ae();break;case"rejected":(!oe||A.error!==Te.reason)&&Ae();break}}return A}updateResult(){const n=this.#i,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#l=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Co(i,n))return;this.#i=i;const l=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!this.#m.size)return!0;const f=new Set(c??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#i).some(d=>{const p=d;return this.#i[p]!==n[p]&&f.has(p)})};this.#x({listeners:l()})}#E(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(n){Lt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function uS(n,i){return Hn(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function eg(n,i){return uS(n,i)||n.state.data!==void 0&&hf(n,i,i.refetchOnMount)}function hf(n,i,l){if(Hn(i.enabled,n)!==!1&&mi(i.staleTime,n)!=="static"){const s=typeof l=="function"?l(n):l;return s==="always"||s!==!1&&kf(n,i)}return!1}function tg(n,i,l,s){return(n!==i||Hn(s.enabled,n)===!1)&&(!l.suspense||n.state.status!=="error")&&kf(n,l)}function kf(n,i){return Hn(i.enabled,n)!==!1&&n.isStaleByTime(mi(i.staleTime,n))}function cS(n,i){return!Co(n.getCurrentResult(),i)}function ng(n){return{onFetch:(i,l)=>{const s=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let p={pages:[],pageParams:[]},g=0;const m=async()=>{let b=!1;const y=U=>{tS(U,()=>i.signal,()=>b=!0)},E=sy(i.options,i.fetchOptions),M=async(U,j,K)=>{if(b)return Promise.reject();if(j==null&&U.pages.length)return Promise.resolve(U);const J=(()=>{const me={client:i.client,queryKey:i.queryKey,pageParam:j,direction:K?"backward":"forward",meta:i.options.meta};return y(me),me})(),$=await E(J),{maxPages:ye}=i.options,he=K?eS:Wb;return{pages:he(U.pages,$,ye),pageParams:he(U.pageParams,j,ye)}};if(c&&f.length){const U=c==="backward",j=U?dy:mf,K={pages:f,pageParams:d},G=j(s,K);p=await M(K,G,U)}else{const U=n??f.length;do{const j=g===0?d[0]??s.initialPageParam:mf(s,p);if(g>0&&j==null)break;p=await M(p,j),g++}while(g<U)}return p};i.options.persister?i.fetchFn=()=>i.options.persister?.(m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},l):i.fetchFn=m}}}function mf(n,{pages:i,pageParams:l}){const s=i.length-1;return i.length>0?n.getNextPageParam(i[s],i,l[s],l):void 0}function dy(n,{pages:i,pageParams:l}){return i.length>0?n.getPreviousPageParam?.(i[0],i,l[0],l):void 0}function zR(n,i){return i?mf(n,i)!=null:!1}function UR(n,i){return!i||!n.getPreviousPageParam?!1:dy(n,i)!=null}var fS=class extends cy{#e;#t;#n;#i;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||hy(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(i=>i!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#a({type:"continue"})},l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=uy({fn:()=>this.options.mutationFn?this.options.mutationFn(n,l):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",c=!this.#i.canStart();try{if(s)i();else{this.#a({type:"pending",variables:n,isPaused:c}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,l);const d=await this.options.onMutate?.(n,l);d!==this.state.context&&this.#a({type:"pending",context:d,variables:n,isPaused:c})}const f=await this.#i.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,l),await this.options.onSuccess?.(f,n,this.state.context,l),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(f,null,n,this.state.context,l),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,l)}catch(d){Promise.reject(d)}try{await this.options.onError?.(f,n,this.state.context,l)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,l)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,l)}catch(d){Promise.reject(d)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(n){const i=l=>{switch(n.type){case"failed":return{...l,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...l,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:n.error,failureCount:l.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Lt.batch(()=>{this.#t.forEach(l=>{l.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function hy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var dS=class extends Lr{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,i,l){const s=new fS({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(i),state:l});return this.add(s),s}add(n){this.#e.add(n);const i=oo(n);if(typeof i=="string"){const l=this.#t.get(i);l?l.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=oo(n);if(typeof i=="string"){const l=this.#t.get(i);if(l)if(l.length>1){const s=l.indexOf(n);s!==-1&&l.splice(s,1)}else l[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=oo(n);if(typeof i=="string"){const s=this.#t.get(i)?.find(c=>c.state.status==="pending");return!s||s===n}else return!0}runNext(n){const i=oo(n);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Lt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(l=>Zp(i,l))}findAll(n={}){return this.getAll().filter(i=>Zp(n,i))}notify(n){Lt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return Lt.batch(()=>Promise.all(n.map(i=>i.continue().catch(tn))))}};function oo(n){return n.options.scope?.id}var hS=class extends Lr{#e;#t=void 0;#n;#i;constructor(i,l){super(),this.#e=i,this.setOptions(l),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const l=this.options;this.options=this.#e.defaultMutationOptions(i),Co(this.options,l)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),l?.mutationKey&&this.options.mutationKey&&Ki(l.mutationKey)!==Ki(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#l(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#l()}mutate(i,l){return this.#i=l,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??hy();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#l(i){Lt.batch(()=>{if(this.#i&&this.hasListeners()){const l=this.#t.variables,s=this.#t.context,c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(i?.type==="success"){try{this.#i.onSuccess?.(i.data,l,s,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(i.data,null,l,s,c)}catch(f){Promise.reject(f)}}else if(i?.type==="error"){try{this.#i.onError?.(i.error,l,s,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(void 0,i.error,l,s,c)}catch(f){Promise.reject(f)}}}this.listeners.forEach(l=>{l(this.#t)})})}},mS=class extends Lr{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,l){const s=i.queryKey,c=i.queryHash??Of(s,i);let f=this.get(c);return f||(f=new sS({client:n,queryKey:s,queryHash:c,options:n.defaultQueryOptions(i),state:l,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Lt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(l=>Pp(i,l))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(l=>Pp(n,l)):i}notify(n){Lt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},pS=class{#e;#t;#n;#i;#a;#l;#s;#r;constructor(n={}){this.#e=n.queryCache||new mS,this.#t=n.mutationCache||new dS,this.#n=n.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=Nf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=Oo.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#r?.(),this.#r=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),l=this.#e.build(this,i),s=l.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&l.isStaleByTime(mi(i.staleTime,l))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:l})=>{const s=l.data;return[i,s]})}setQueryData(n,i,l){const s=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(s.queryHash)?.state.data,d=Jb(i,f);if(d!==void 0)return this.#e.build(this,s).setData(d,{...l,manual:!0})}setQueriesData(n,i,l){return Lt.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,i,l)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;Lt.batch(()=>{i.findAll(n).forEach(l=>{i.remove(l)})})}resetQueries(n,i){const l=this.#e;return Lt.batch(()=>(l.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const l={revert:!0,...i},s=Lt.batch(()=>this.#e.findAll(n).map(c=>c.cancel(l)));return Promise.all(s).then(tn).catch(tn)}invalidateQueries(n,i={}){return Lt.batch(()=>(this.#e.findAll(n).forEach(l=>{l.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const l={...i,cancelRefetch:i.cancelRefetch??!0},s=Lt.batch(()=>this.#e.findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,l);return l.throwOnError||(f=f.catch(tn)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(tn)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const l=this.#e.build(this,i);return l.isStaleByTime(mi(i.staleTime,l))?l.fetch(i):Promise.resolve(l.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(tn).catch(tn)}fetchInfiniteQuery(n){return n.behavior=ng(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(tn).catch(tn)}ensureInfiniteQueryData(n){return n.behavior=ng(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Oo.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#i.set(Ki(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#i.values()],l={};return i.forEach(s=>{Ql(n,s.queryKey)&&Object.assign(l,s.defaultOptions)}),l}setMutationDefaults(n,i){this.#a.set(Ki(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#a.values()],l={};return i.forEach(s=>{Ql(n,s.mutationKey)&&Object.assign(l,s.defaultOptions)}),l}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Of(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Mf&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},my=T.createContext(void 0),gt=n=>{const i=T.useContext(my);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},gS=({client:n,children:i})=>(T.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),Q.jsx(my.Provider,{value:n,children:i})),py=T.createContext(!1),yS=()=>T.useContext(py);py.Provider;function vS(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var bS=T.createContext(vS()),SS=()=>T.useContext(bS),wS=(n,i,l)=>{const s=l?.state.error&&typeof n.throwOnError=="function"?Df(n.throwOnError,[l.state.error,l]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(i.isReset()||(n.retryOnMount=!1))},ES=n=>{T.useEffect(()=>{n.clearReset()},[n])},xS=({result:n,errorResetBoundary:i,throwOnError:l,query:s,suspense:c})=>n.isError&&!i.isReset()&&!n.isFetching&&s&&(c&&n.data===void 0||Df(l,[n.error,s])),TS=n=>{if(n.suspense){const l=c=>c==="static"?c:Math.max(c??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...c)=>l(s(...c)):l(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},RS=(n,i)=>n.isLoading&&n.isFetching&&!i,_S=(n,i)=>n?.suspense&&i.isPending,ag=(n,i,l)=>i.fetchOptimistic(n).catch(()=>{l.clearReset()});function AS(n,i,l){const s=yS(),c=SS(),f=gt(),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const p=f.getQueryCache().get(d.queryHash);d._optimisticResults=s?"isRestoring":"optimistic",TS(d),wS(d,c,p),ES(c);const g=!f.getQueryCache().get(d.queryHash),[m]=T.useState(()=>new i(f,d)),b=m.getOptimisticResult(d),y=!s&&n.subscribed!==!1;if(T.useSyncExternalStore(T.useCallback(E=>{const M=y?m.subscribe(Lt.batchCalls(E)):tn;return m.updateResult(),M},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),T.useEffect(()=>{m.setOptions(d)},[d,m]),_S(d,b))throw ag(d,m,c);if(xS({result:b,errorResetBoundary:c,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw b.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,b),d.experimental_prefetchInRender&&!Gi&&RS(b,s)&&(g?ag(d,m,c):p?.promise)?.catch(tn).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?b:m.trackResult(b)}function ja(n,i){return AS(n,oS)}function qt(n,i){const l=gt(),[s]=T.useState(()=>new hS(l,n));T.useEffect(()=>{s.setOptions(n)},[s,n]);const c=T.useSyncExternalStore(T.useCallback(d=>s.subscribe(Lt.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=T.useCallback((d,p)=>{s.mutate(d,p).catch(tn)},[s]);if(c.error&&Df(s.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}var gy=iy();const CS=ay(gy);function OS(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",i.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}const MS=n=>{switch(n){case"success":return kS;case"info":return US;case"warning":return zS;case"error":return LS;default:return null}},DS=Array(12).fill(0),NS=({visible:n,className:i})=>ee.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},ee.createElement("div",{className:"sonner-spinner"},DS.map((l,s)=>ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),kS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),zS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),US=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),LS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),jS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),BS=()=>{const[n,i]=ee.useState(document.hidden);return ee.useEffect(()=>{const l=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),n};let pf=1;class qS{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const l=this.subscribers.indexOf(i);this.subscribers.splice(l,1)}),this.publish=i=>{this.subscribers.forEach(l=>l(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var l;const{message:s,...c}=i,f=typeof i?.id=="number"||((l=i.id)==null?void 0:l.length)>0?i.id:pf++,d=this.toasts.find(g=>g.id===f),p=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(g=>g.id===f?(this.publish({...g,...i,id:f,title:s}),{...g,...i,id:f,dismissible:p,title:s}):g):this.addToast({title:s,...c,dismissible:p,id:f}),f},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(l=>l({id:i,dismiss:!0})))):this.toasts.forEach(l=>{this.subscribers.forEach(s=>s({id:l.id,dismiss:!0}))}),i),this.message=(i,l)=>this.create({...l,message:i}),this.error=(i,l)=>this.create({...l,message:i,type:"error"}),this.success=(i,l)=>this.create({...l,type:"success",message:i}),this.info=(i,l)=>this.create({...l,type:"info",message:i}),this.warning=(i,l)=>this.create({...l,type:"warning",message:i}),this.loading=(i,l)=>this.create({...l,type:"loading",message:i}),this.promise=(i,l)=>{if(!l)return;let s;l.loading!==void 0&&(s=this.create({...l,promise:i,type:"loading",message:l.loading,description:typeof l.description!="function"?l.description:void 0}));const c=Promise.resolve(i instanceof Function?i():i);let f=s!==void 0,d;const p=c.then(async m=>{if(d=["resolve",m],ee.isValidElement(m))f=!1,this.create({id:s,type:"default",message:m});else if(QS(m)&&!m.ok){f=!1;const y=typeof l.error=="function"?await l.error(`HTTP error! status: ${m.status}`):l.error,E=typeof l.description=="function"?await l.description(`HTTP error! status: ${m.status}`):l.description,U=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:E,...U})}else if(m instanceof Error){f=!1;const y=typeof l.error=="function"?await l.error(m):l.error,E=typeof l.description=="function"?await l.description(m):l.description,U=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:E,...U})}else if(l.success!==void 0){f=!1;const y=typeof l.success=="function"?await l.success(m):l.success,E=typeof l.description=="function"?await l.description(m):l.description,U=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:E,...U})}}).catch(async m=>{if(d=["reject",m],l.error!==void 0){f=!1;const b=typeof l.error=="function"?await l.error(m):l.error,y=typeof l.description=="function"?await l.description(m):l.description,M=typeof b=="object"&&!ee.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...M})}}).finally(()=>{f&&(this.dismiss(s),s=void 0),l.finally==null||l.finally.call(l)}),g=()=>new Promise((m,b)=>p.then(()=>d[0]==="reject"?b(d[1]):m(d[1])).catch(b));return typeof s!="string"&&typeof s!="number"?{unwrap:g}:Object.assign(s,{unwrap:g})},this.custom=(i,l)=>{const s=l?.id||pf++;return this.create({jsx:i(s),id:s,...l}),s},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const hn=new qS,HS=(n,i)=>{const l=i?.id||pf++;return hn.addToast({title:n,...i,id:l}),l},QS=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",YS=HS,VS=()=>hn.toasts,GS=()=>hn.getActiveToasts(),KS=Object.assign(YS,{success:hn.success,info:hn.info,warning:hn.warning,error:hn.error,custom:hn.custom,message:hn.message,promise:hn.promise,dismiss:hn.dismiss,loading:hn.loading},{getHistory:VS,getToasts:GS});OS("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function uo(n){return n.label!==void 0}const XS=3,FS="24px",PS="16px",ig=4e3,ZS=356,JS=14,IS=45,$S=200;function sa(...n){return n.filter(Boolean).join(" ")}function WS(n){const[i,l]=n.split("-"),s=[];return i&&s.push(i),l&&s.push(l),s}const e1=n=>{var i,l,s,c,f,d,p,g,m;const{invert:b,toast:y,unstyled:E,interacting:M,setHeights:U,visibleToasts:j,heights:K,index:G,toasts:J,expanded:$,removeToast:ye,defaultRichColors:he,closeButton:me,style:A,cancelButtonStyle:V,actionButtonStyle:oe,className:Ce="",descriptionClassName:Ae="",duration:Te,position:Ue,gap:Le,expandByDefault:we,classNames:C,icons:P,closeButtonAriaLabel:q="Close toast"}=n,[ge,ve]=ee.useState(null),[x,H]=ee.useState(null),[B,Z]=ee.useState(!1),[te,ue]=ee.useState(!1),[ce,Re]=ee.useState(!1),[Ye,Ht]=ee.useState(!1),[$t,Je]=ee.useState(!1),[Gn,nn]=ee.useState(0),[yi,an]=ee.useState(0),da=ee.useRef(y.duration||Te||ig),vi=ee.useRef(null),Pt=ee.useRef(null),bi=G===0,Si=G+1<=j,Qt=y.type,ta=y.dismissible!==!1,mt=y.className||"",ha=y.descriptionClassName||"",na=ee.useMemo(()=>K.findIndex(_e=>_e.toastId===y.id)||0,[K,y.id]),qa=ee.useMemo(()=>{var _e;return(_e=y.closeButton)!=null?_e:me},[y.closeButton,me]),Yt=ee.useMemo(()=>y.duration||Te||ig,[y.duration,Te]),Wt=ee.useRef(0),_n=ee.useRef(0),Zi=ee.useRef(0),An=ee.useRef(null),[ma,ut]=Ue.split("-"),rn=ee.useMemo(()=>K.reduce((_e,st,wt)=>wt>=na?_e:_e+st.height,0),[K,na]),kt=BS(),Ji=y.invert||b,wi=Qt==="loading";_n.current=ee.useMemo(()=>na*Le+rn,[na,rn]),ee.useEffect(()=>{da.current=Yt},[Yt]),ee.useEffect(()=>{Z(!0)},[]),ee.useEffect(()=>{const _e=Pt.current;if(_e){const st=_e.getBoundingClientRect().height;return an(st),U(wt=>[{toastId:y.id,height:st,position:y.position},...wt]),()=>U(wt=>wt.filter(Et=>Et.toastId!==y.id))}},[U,y.id]),ee.useLayoutEffect(()=>{if(!B)return;const _e=Pt.current,st=_e.style.height;_e.style.height="auto";const wt=_e.getBoundingClientRect().height;_e.style.height=st,an(wt),U(Et=>Et.find(ot=>ot.toastId===y.id)?Et.map(ot=>ot.toastId===y.id?{...ot,height:wt}:ot):[{toastId:y.id,height:wt,position:y.position},...Et])},[B,y.title,y.description,U,y.id,y.jsx,y.action,y.cancel]);const pn=ee.useCallback(()=>{ue(!0),nn(_n.current),U(_e=>_e.filter(st=>st.toastId!==y.id)),setTimeout(()=>{ye(y)},$S)},[y,ye,U,_n]);ee.useEffect(()=>{if(y.promise&&Qt==="loading"||y.duration===1/0||y.type==="loading")return;let _e;return $||M||kt?(()=>{if(Zi.current<Wt.current){const Et=new Date().getTime()-Wt.current;da.current=da.current-Et}Zi.current=new Date().getTime()})():da.current!==1/0&&(Wt.current=new Date().getTime(),_e=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),pn()},da.current)),()=>clearTimeout(_e)},[$,M,y,Qt,kt,pn]),ee.useEffect(()=>{y.delete&&(pn(),y.onDismiss==null||y.onDismiss.call(y,y))},[pn,y.delete]);function Kn(){var _e;if(P?.loading){var st;return ee.createElement("div",{className:sa(C?.loader,y==null||(st=y.classNames)==null?void 0:st.loader,"sonner-loader"),"data-visible":Qt==="loading"},P.loading)}return ee.createElement(NS,{className:sa(C?.loader,y==null||(_e=y.classNames)==null?void 0:_e.loader),visible:Qt==="loading"})}const pa=y.icon||P?.[Qt]||MS(Qt);var Xn,Cn;return ee.createElement("li",{tabIndex:0,ref:Pt,className:sa(Ce,mt,C?.toast,y==null||(i=y.classNames)==null?void 0:i.toast,C?.default,C?.[Qt],y==null||(l=y.classNames)==null?void 0:l[Qt]),"data-sonner-toast":"","data-rich-colors":(Xn=y.richColors)!=null?Xn:he,"data-styled":!(y.jsx||y.unstyled||E),"data-mounted":B,"data-promise":!!y.promise,"data-swiped":$t,"data-removed":te,"data-visible":Si,"data-y-position":ma,"data-x-position":ut,"data-index":G,"data-front":bi,"data-swiping":ce,"data-dismissible":ta,"data-type":Qt,"data-invert":Ji,"data-swipe-out":Ye,"data-swipe-direction":x,"data-expanded":!!($||we&&B),"data-testid":y.testId,style:{"--index":G,"--toasts-before":G,"--z-index":J.length-G,"--offset":`${te?Gn:_n.current}px`,"--initial-height":we?"auto":`${yi}px`,...A,...y.style},onDragEnd:()=>{Re(!1),ve(null),An.current=null},onPointerDown:_e=>{_e.button!==2&&(wi||!ta||(vi.current=new Date,nn(_n.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(Re(!0),An.current={x:_e.clientX,y:_e.clientY})))},onPointerUp:()=>{var _e,st,wt;if(Ye||!ta)return;An.current=null;const Et=Number(((_e=Pt.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),gn=Number(((st=Pt.current)==null?void 0:st.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ot=new Date().getTime()-((wt=vi.current)==null?void 0:wt.getTime()),Zt=ge==="x"?Et:gn,ga=Math.abs(Zt)/ot;if(Math.abs(Zt)>=IS||ga>.11){nn(_n.current),y.onDismiss==null||y.onDismiss.call(y,y),H(ge==="x"?Et>0?"right":"left":gn>0?"down":"up"),pn(),Ht(!0);return}else{var S,_;(S=Pt.current)==null||S.style.setProperty("--swipe-amount-x","0px"),(_=Pt.current)==null||_.style.setProperty("--swipe-amount-y","0px")}Je(!1),Re(!1),ve(null)},onPointerMove:_e=>{var st,wt,Et;if(!An.current||!ta||((st=window.getSelection())==null?void 0:st.toString().length)>0)return;const ot=_e.clientY-An.current.y,Zt=_e.clientX-An.current.x;var ga;const S=(ga=n.swipeDirections)!=null?ga:WS(Ue);!ge&&(Math.abs(Zt)>1||Math.abs(ot)>1)&&ve(Math.abs(Zt)>Math.abs(ot)?"x":"y");let _={x:0,y:0};const z=I=>1/(1.5+Math.abs(I)/20);if(ge==="y"){if(S.includes("top")||S.includes("bottom"))if(S.includes("top")&&ot<0||S.includes("bottom")&&ot>0)_.y=ot;else{const I=ot*z(ot);_.y=Math.abs(I)<Math.abs(ot)?I:ot}}else if(ge==="x"&&(S.includes("left")||S.includes("right")))if(S.includes("left")&&Zt<0||S.includes("right")&&Zt>0)_.x=Zt;else{const I=Zt*z(Zt);_.x=Math.abs(I)<Math.abs(Zt)?I:Zt}(Math.abs(_.x)>0||Math.abs(_.y)>0)&&Je(!0),(wt=Pt.current)==null||wt.style.setProperty("--swipe-amount-x",`${_.x}px`),(Et=Pt.current)==null||Et.style.setProperty("--swipe-amount-y",`${_.y}px`)}},qa&&!y.jsx&&Qt!=="loading"?ee.createElement("button",{"aria-label":q,"data-disabled":wi,"data-close-button":!0,onClick:wi||!ta?()=>{}:()=>{pn(),y.onDismiss==null||y.onDismiss.call(y,y)},className:sa(C?.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(Cn=P?.close)!=null?Cn:jS):null,(Qt||y.icon||y.promise)&&y.icon!==null&&(P?.[Qt]!==null||y.icon)?ee.createElement("div",{"data-icon":"",className:sa(C?.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Kn():null,y.type!=="loading"?pa:null):null,ee.createElement("div",{"data-content":"",className:sa(C?.content,y==null||(f=y.classNames)==null?void 0:f.content)},ee.createElement("div",{"data-title":"",className:sa(C?.title,y==null||(d=y.classNames)==null?void 0:d.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?ee.createElement("div",{"data-description":"",className:sa(Ae,ha,C?.description,y==null||(p=y.classNames)==null?void 0:p.description)},typeof y.description=="function"?y.description():y.description):null),ee.isValidElement(y.cancel)?y.cancel:y.cancel&&uo(y.cancel)?ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||V,onClick:_e=>{uo(y.cancel)&&ta&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,_e),pn())},className:sa(C?.cancelButton,y==null||(g=y.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,ee.isValidElement(y.action)?y.action:y.action&&uo(y.action)?ee.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||oe,onClick:_e=>{uo(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,_e),!_e.defaultPrevented&&pn())},className:sa(C?.actionButton,y==null||(m=y.classNames)==null?void 0:m.actionButton)},y.action.label):null)};function rg(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function t1(n,i){const l={};return[n,i].forEach((s,c)=>{const f=c===1,d=f?"--mobile-offset":"--offset",p=f?PS:FS;function g(m){["top","right","bottom","left"].forEach(b=>{l[`${d}-${b}`]=typeof m=="number"?`${m}px`:m})}typeof s=="number"||typeof s=="string"?g(s):typeof s=="object"?["top","right","bottom","left"].forEach(m=>{s[m]===void 0?l[`${d}-${m}`]=p:l[`${d}-${m}`]=typeof s[m]=="number"?`${s[m]}px`:s[m]}):g(p)}),l}const n1=ee.forwardRef(function(i,l){const{id:s,invert:c,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:p,closeButton:g,className:m,offset:b,mobileOffset:y,theme:E="light",richColors:M,duration:U,style:j,visibleToasts:K=XS,toastOptions:G,dir:J=rg(),gap:$=JS,icons:ye,containerAriaLabel:he="Notifications"}=i,[me,A]=ee.useState([]),V=ee.useMemo(()=>s?me.filter(B=>B.toasterId===s):me.filter(B=>!B.toasterId),[me,s]),oe=ee.useMemo(()=>Array.from(new Set([f].concat(V.filter(B=>B.position).map(B=>B.position)))),[V,f]),[Ce,Ae]=ee.useState([]),[Te,Ue]=ee.useState(!1),[Le,we]=ee.useState(!1),[C,P]=ee.useState(E!=="system"?E:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),q=ee.useRef(null),ge=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),ve=ee.useRef(null),x=ee.useRef(!1),H=ee.useCallback(B=>{A(Z=>{var te;return(te=Z.find(ue=>ue.id===B.id))!=null&&te.delete||hn.dismiss(B.id),Z.filter(({id:ue})=>ue!==B.id)})},[]);return ee.useEffect(()=>hn.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{A(Z=>Z.map(te=>te.id===B.id?{...te,delete:!0}:te))});return}setTimeout(()=>{CS.flushSync(()=>{A(Z=>{const te=Z.findIndex(ue=>ue.id===B.id);return te!==-1?[...Z.slice(0,te),{...Z[te],...B},...Z.slice(te+1)]:[B,...Z]})})})}),[me]),ee.useEffect(()=>{if(E!=="system"){P(E);return}if(E==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?P("dark"):P("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:Z})=>{P(Z?"dark":"light")})}catch{B.addListener(({matches:te})=>{try{P(te?"dark":"light")}catch(ue){console.error(ue)}})}},[E]),ee.useEffect(()=>{me.length<=1&&Ue(!1)},[me]),ee.useEffect(()=>{const B=Z=>{var te;if(d.every(Re=>Z[Re]||Z.code===Re)){var ce;Ue(!0),(ce=q.current)==null||ce.focus()}Z.code==="Escape"&&(document.activeElement===q.current||(te=q.current)!=null&&te.contains(document.activeElement))&&Ue(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[d]),ee.useEffect(()=>{if(q.current)return()=>{ve.current&&(ve.current.focus({preventScroll:!0}),ve.current=null,x.current=!1)}},[q.current]),ee.createElement("section",{ref:l,"aria-label":`${he} ${ge}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},oe.map((B,Z)=>{var te;const[ue,ce]=B.split("-");return V.length?ee.createElement("ol",{key:B,dir:J==="auto"?rg():J,tabIndex:-1,ref:q,className:m,"data-sonner-toaster":!0,"data-sonner-theme":C,"data-y-position":ue,"data-x-position":ce,style:{"--front-toast-height":`${((te=Ce[0])==null?void 0:te.height)||0}px`,"--width":`${ZS}px`,"--gap":`${$}px`,...j,...t1(b,y)},onBlur:Re=>{x.current&&!Re.currentTarget.contains(Re.relatedTarget)&&(x.current=!1,ve.current&&(ve.current.focus({preventScroll:!0}),ve.current=null))},onFocus:Re=>{Re.target instanceof HTMLElement&&Re.target.dataset.dismissible==="false"||x.current||(x.current=!0,ve.current=Re.relatedTarget)},onMouseEnter:()=>Ue(!0),onMouseMove:()=>Ue(!0),onMouseLeave:()=>{Le||Ue(!1)},onDragEnd:()=>Ue(!1),onPointerDown:Re=>{Re.target instanceof HTMLElement&&Re.target.dataset.dismissible==="false"||we(!0)},onPointerUp:()=>we(!1)},V.filter(Re=>!Re.position&&Z===0||Re.position===B).map((Re,Ye)=>{var Ht,$t;return ee.createElement(e1,{key:Re.id,icons:ye,index:Ye,toast:Re,defaultRichColors:M,duration:(Ht=G?.duration)!=null?Ht:U,className:G?.className,descriptionClassName:G?.descriptionClassName,invert:c,visibleToasts:K,closeButton:($t=G?.closeButton)!=null?$t:g,interacting:Le,position:B,style:G?.style,unstyled:G?.unstyled,classNames:G?.classNames,cancelButtonStyle:G?.cancelButtonStyle,actionButtonStyle:G?.actionButtonStyle,closeButtonAriaLabel:G?.closeButtonAriaLabel,removeToast:H,toasts:V.filter(Je=>Je.position==Re.position),heights:Ce.filter(Je=>Je.position==Re.position),setHeights:Ae,expandByDefault:p,gap:$,expanded:Te,swipeDirections:i.swipeDirections})})):null}))}),a1=new pS({defaultOptions:{queries:{staleTime:1e3*60,retry:1}}}),i1="modulepreload",r1=function(n){return"/"+n},lg={},Ba=function(i,l,s){let c=Promise.resolve();if(l&&l.length>0){let g=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");c=g(l.map(m=>{if(m=r1(m),m in lg)return;lg[m]=!0;const b=m.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const E=document.createElement("link");if(E.rel=b?"stylesheet":i1,b||(E.as="script"),E.crossOrigin="",E.href=m,p&&E.setAttribute("nonce",p),document.head.appendChild(E),b)return new Promise((M,U)=>{E.addEventListener("load",M),E.addEventListener("error",()=>U(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return c.then(d=>{for(const p of d||[])p.status==="rejected"&&f(p.reason);return i().catch(f)})};var yy=n=>{throw TypeError(n)},l1=(n,i,l)=>i.has(n)||yy("Cannot "+l),Pc=(n,i,l)=>(l1(n,i,"read from private field"),l?l.call(n):i.get(n)),s1=(n,i,l)=>i.has(n)?yy("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,l),sg="popstate";function o1(n={}){function i(s,c){let{pathname:f,search:d,hash:p}=s.location;return Yl("",{pathname:f,search:d,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function l(s,c){return typeof c=="string"?c:ca(c)}return c1(i,l,null,n)}function je(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function Nt(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function u1(){return Math.random().toString(36).substring(2,10)}function og(n,i){return{usr:n.state,key:n.key,idx:i}}function Yl(n,i,l=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?gi(i):i,state:l,key:i&&i.key||s||u1()}}function ca({pathname:n="/",search:i="",hash:l=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function gi(n){let i={};if(n){let l=n.indexOf("#");l>=0&&(i.hash=n.substring(l),n=n.substring(0,l));let s=n.indexOf("?");s>=0&&(i.search=n.substring(s),n=n.substring(0,s)),n&&(i.pathname=n)}return i}function c1(n,i,l,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,d=c.history,p="POP",g=null,m=b();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function b(){return(d.state||{idx:null}).idx}function y(){p="POP";let K=b(),G=K==null?null:K-m;m=K,g&&g({action:p,location:j.location,delta:G})}function E(K,G){p="PUSH";let J=Yl(j.location,K,G);m=b()+1;let $=og(J,m),ye=j.createHref(J);try{d.pushState($,"",ye)}catch(he){if(he instanceof DOMException&&he.name==="DataCloneError")throw he;c.location.assign(ye)}f&&g&&g({action:p,location:j.location,delta:1})}function M(K,G){p="REPLACE";let J=Yl(j.location,K,G);m=b();let $=og(J,m),ye=j.createHref(J);d.replaceState($,"",ye),f&&g&&g({action:p,location:j.location,delta:0})}function U(K){return vy(K)}let j={get action(){return p},get location(){return n(c,d)},listen(K){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(sg,y),g=K,()=>{c.removeEventListener(sg,y),g=null}},createHref(K){return i(c,K)},createURL:U,encodeLocation(K){let G=U(K);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:E,replace:M,go(K){return d.go(K)}};return j}function vy(n,i=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),je(l,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:ca(n);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=l+s),new URL(s,l)}var Ll,ug=class{constructor(n){if(s1(this,Ll,new Map),n)for(let[i,l]of n)this.set(i,l)}get(n){if(Pc(this,Ll).has(n))return Pc(this,Ll).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,i){Pc(this,Ll).set(n,i)}};Ll=new WeakMap;var f1=new Set(["lazy","caseSensitive","path","id","index","children"]);function d1(n){return f1.has(n)}var h1=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function m1(n){return h1.has(n)}function p1(n){return n.index===!0}function Vl(n,i,l=[],s={},c=!1){return n.map((f,d)=>{let p=[...l,String(d)],g=typeof f.id=="string"?f.id:p.join("-");if(je(f.index!==!0||!f.children,"Cannot specify children on an index route"),je(c||!s[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),p1(f)){let m={...f,id:g};return s[g]=cg(m,i(m)),m}else{let m={...f,id:g,children:void 0};return s[g]=cg(m,i(m)),f.children&&(m.children=Vl(f.children,i,p,s,c)),m}})}function cg(n,i){return Object.assign(n,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...n.lazy,...i.lazy}}:{}})}function ci(n,i,l="/"){return jl(n,i,l,!1)}function jl(n,i,l,s){let c=typeof i=="string"?gi(i):i,f=Yn(c.pathname||"/",l);if(f==null)return null;let d=by(n);y1(d);let p=null;for(let g=0;p==null&&g<d.length;++g){let m=C1(f);p=_1(d[g],m,s)}return p}function g1(n,i){let{route:l,pathname:s,params:c}=n;return{id:l.id,pathname:s,params:c,data:i[l.id],loaderData:i[l.id],handle:l.handle}}function by(n,i=[],l=[],s="",c=!1){let f=(d,p,g=c,m)=>{let b={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:p,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&g)return;je(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let y=ua([s,b.relativePath]),E=l.concat(b);d.children&&d.children.length>0&&(je(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),by(d.children,i,E,y,g)),!(d.path==null&&!d.index)&&i.push({path:y,score:T1(y,d.index),routesMeta:E})};return n.forEach((d,p)=>{if(d.path===""||!d.path?.includes("?"))f(d,p);else for(let g of Sy(d.path))f(d,p,!0,g)}),i}function Sy(n){let i=n.split("/");if(i.length===0)return[];let[l,...s]=i,c=l.endsWith("?"),f=l.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let d=Sy(s.join("/")),p=[];return p.push(...d.map(g=>g===""?f:[f,g].join("/"))),c&&p.push(...d),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function y1(n){n.sort((i,l)=>i.score!==l.score?l.score-i.score:R1(i.routesMeta.map(s=>s.childrenIndex),l.routesMeta.map(s=>s.childrenIndex)))}var v1=/^:[\w-]+$/,b1=3,S1=2,w1=1,E1=10,x1=-2,fg=n=>n==="*";function T1(n,i){let l=n.split("/"),s=l.length;return l.some(fg)&&(s+=x1),i&&(s+=S1),l.filter(c=>!fg(c)).reduce((c,f)=>c+(v1.test(f)?b1:f===""?w1:E1),s)}function R1(n,i){return n.length===i.length&&n.slice(0,-1).every((s,c)=>s===i[c])?n[n.length-1]-i[i.length-1]:0}function _1(n,i,l=!1){let{routesMeta:s}=n,c={},f="/",d=[];for(let p=0;p<s.length;++p){let g=s[p],m=p===s.length-1,b=f==="/"?i:i.slice(f.length)||"/",y=Mo({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},b),E=g.route;if(!y&&m&&l&&!s[s.length-1].route.index&&(y=Mo({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!y)return null;Object.assign(c,y.params),d.push({params:c,pathname:ua([f,y.pathname]),pathnameBase:D1(ua([f,y.pathnameBase])),route:E}),y.pathnameBase!=="/"&&(f=ua([f,y.pathnameBase]))}return d}function Mo(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[l,s]=A1(n.path,n.caseSensitive,n.end),c=i.match(l);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),p=c.slice(1);return{params:s.reduce((m,{paramName:b,isOptional:y},E)=>{if(b==="*"){let U=p[E]||"";d=f.slice(0,f.length-U.length).replace(/(.)\/+$/,"$1")}const M=p[E];return y&&!M?m[b]=void 0:m[b]=(M||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:d,pattern:n}}function A1(n,i=!1,l=!0){Nt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,g)=>(s.push({paramName:p,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),s]}function C1(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Nt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Yn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let l=i.endsWith("/")?i.length-1:i.length,s=n.charAt(l);return s&&s!=="/"?null:n.slice(l)||"/"}function O1({basename:n,pathname:i}){return i==="/"?n:ua([n,i])}var wy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zf=n=>wy.test(n);function M1(n,i="/"){let{pathname:l,search:s="",hash:c=""}=typeof n=="string"?gi(n):n,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=dg(l.substring(1),"/"):f=dg(l,i)):f=i,{pathname:f,search:N1(s),hash:k1(c)}}function dg(n,i){let l=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?l.length>1&&l.pop():c!=="."&&l.push(c)}),l.length>1?l.join("/"):"/"}function Zc(n,i,l,s){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ey(n){return n.filter((i,l)=>l===0||i.route.path&&i.route.path.length>0)}function Uf(n){let i=Ey(n);return i.map((l,s)=>s===i.length-1?l.pathname:l.pathnameBase)}function Lf(n,i,l,s=!1){let c;typeof n=="string"?c=gi(n):(c={...n},je(!c.pathname||!c.pathname.includes("?"),Zc("?","pathname","search",c)),je(!c.pathname||!c.pathname.includes("#"),Zc("#","pathname","hash",c)),je(!c.search||!c.search.includes("#"),Zc("#","search","hash",c)));let f=n===""||c.pathname==="",d=f?"/":c.pathname,p;if(d==null)p=l;else{let y=i.length-1;if(!s&&d.startsWith("..")){let E=d.split("/");for(;E[0]==="..";)E.shift(),y-=1;c.pathname=E.join("/")}p=y>=0?i[y]:"/"}let g=M1(c,p),m=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&l.endsWith("/");return!g.pathname.endsWith("/")&&(m||b)&&(g.pathname+="/"),g}var ua=n=>n.join("/").replace(/\/\/+/g,"/"),D1=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),N1=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,k1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Xl=class{constructor(n,i,l,s=!1){this.status=n,this.statusText=i||"",this.internal=s,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function Gl(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Fl(n){return n.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var xy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ty(n,i){let l=n;if(typeof l!="string"||!wy.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let s=l,c=!1;if(xy)try{let f=new URL(window.location.href),d=l.startsWith("//")?new URL(f.protocol+l):new URL(l),p=Yn(d.pathname,i);d.origin===f.origin&&p!=null?l=p+d.search+d.hash:c=!0}catch{Nt(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:l}}var di=Symbol("Uninstrumented");function z1(n,i){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(c=>c({id:i.id,index:i.index,path:i.path,instrument(f){let d=Object.keys(l);for(let p of d)f[p]&&l[p].push(f[p])}}));let s={};if(typeof i.lazy=="function"&&l.lazy.length>0){let c=Nr(l.lazy,i.lazy,()=>{});c&&(s.lazy=c)}if(typeof i.lazy=="object"){let c=i.lazy;["middleware","loader","action"].forEach(f=>{let d=c[f],p=l[`lazy.${f}`];if(typeof d=="function"&&p.length>0){let g=Nr(p,d,()=>{});g&&(s.lazy=Object.assign(s.lazy||{},{[f]:g}))}})}return["loader","action"].forEach(c=>{let f=i[c];if(typeof f=="function"&&l[c].length>0){let d=f[di]??f,p=Nr(l[c],d,(...g)=>hg(g[0]));p&&(c==="loader"&&d.hydrate===!0&&(p.hydrate=!0),p[di]=d,s[c]=p)}}),i.middleware&&i.middleware.length>0&&l.middleware.length>0&&(s.middleware=i.middleware.map(c=>{let f=c[di]??c,d=Nr(l.middleware,f,(...p)=>hg(p[0]));return d?(d[di]=f,d):c})),s}function U1(n,i){let l={navigate:[],fetch:[]};if(i.forEach(s=>s({instrument(c){let f=Object.keys(c);for(let d of f)c[d]&&l[d].push(c[d])}})),l.navigate.length>0){let s=n.navigate[di]??n.navigate,c=Nr(l.navigate,s,(...f)=>{let[d,p]=f;return{to:typeof d=="number"||typeof d=="string"?d:d?ca(d):".",...mg(n,p??{})}});c&&(c[di]=s,n.navigate=c)}if(l.fetch.length>0){let s=n.fetch[di]??n.fetch,c=Nr(l.fetch,s,(...f)=>{let[d,,p,g]=f;return{href:p??".",fetcherKey:d,...mg(n,g??{})}});c&&(c[di]=s,n.fetch=c)}return n}function Nr(n,i,l){return n.length===0?null:async(...s)=>{let c=await Ry(n,l(...s),()=>i(...s),n.length-1);if(c.type==="error")throw c.value;return c.value}}async function Ry(n,i,l,s){let c=n[s],f;if(c){let d,p=async()=>(d?console.error("You cannot call instrumented handlers more than once"):d=Ry(n,i,l,s-1),f=await d,je(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await c(p,i)}catch(g){console.error("An instrumentation function threw an error:",g)}d||await p(),await d}else try{f={type:"success",value:await l()}}catch(d){f={type:"error",value:d}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function hg(n){let{request:i,context:l,params:s,unstable_pattern:c}=n;return{request:L1(i),params:{...s},unstable_pattern:c,context:j1(l)}}function mg(n,i){return{currentUrl:ca(n.state.location),..."formMethod"in i?{formMethod:i.formMethod}:{},..."formEncType"in i?{formEncType:i.formEncType}:{},..."formData"in i?{formData:i.formData}:{},..."body"in i?{body:i.body}:{}}}function L1(n){return{method:n.method,url:n.url,headers:{get:(...i)=>n.headers.get(...i)}}}function j1(n){if(q1(n)){let i={...n};return Object.freeze(i),i}else return{get:i=>n.get(i)}}var B1=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function q1(n){if(n===null||typeof n!="object")return!1;const i=Object.getPrototypeOf(n);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===B1}var _y=["POST","PUT","PATCH","DELETE"],H1=new Set(_y),Q1=["GET",..._y],Y1=new Set(Q1),Ay=new Set([301,302,303,307,308]),V1=new Set([307,308]),Jc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},G1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Dl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},K1=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Cy="remix-router-transitions",Oy=Symbol("ResetLoaderData");function X1(n){const i=n.window?n.window:typeof window<"u"?window:void 0,l=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";je(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=n.hydrationRouteProperties||[],c=n.mapRouteProperties||K1,f=c;if(n.unstable_instrumentations){let S=n.unstable_instrumentations;f=_=>({...c(_),...z1(S.map(z=>z.route).filter(Boolean),_)})}let d={},p=Vl(n.routes,f,void 0,d),g,m=n.basename||"/";m.startsWith("/")||(m=`/${m}`);let b=n.dataStrategy||I1,y={...n.future},E=null,M=new Set,U=null,j=null,K=null,G=n.hydrationData!=null,J=ci(p,n.history.location,m),$=!1,ye=null,he;if(J==null&&!n.patchRoutesOnNavigation){let S=qn(404,{pathname:n.history.location.pathname}),{matches:_,route:z}=co(p);he=!0,J=_,ye={[z.id]:S}}else if(J&&!n.hydrationData&&Et(J,p,n.history.location.pathname).active&&(J=null),J)if(J.some(S=>S.route.lazy))he=!1;else if(!J.some(S=>jf(S.route)))he=!0;else{let S=n.hydrationData?n.hydrationData.loaderData:null,_=n.hydrationData?n.hydrationData.errors:null;if(_){let z=J.findIndex(I=>_[I.route.id]!==void 0);he=J.slice(0,z+1).every(I=>!yf(I.route,S,_))}else he=J.every(z=>!yf(z.route,S,_))}else{he=!1,J=[];let S=Et(null,p,n.history.location.pathname);S.active&&S.matches&&($=!0,J=S.matches)}let me,A={historyAction:n.history.action,location:n.history.location,matches:J,initialized:he,navigation:Jc,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||ye,fetchers:new Map,blockers:new Map},V="POP",oe=null,Ce=!1,Ae,Te=!1,Ue=new Map,Le=null,we=!1,C=!1,P=new Set,q=new Map,ge=0,ve=-1,x=new Map,H=new Set,B=new Map,Z=new Map,te=new Set,ue=new Map,ce,Re=null;function Ye(){if(E=n.history.listen(({action:S,location:_,delta:z})=>{if(ce){ce(),ce=void 0;return}Nt(ue.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=pa({currentLocation:A.location,nextLocation:_,historyAction:S});if(I&&z!=null){let W=new Promise(pe=>{ce=pe});n.history.go(z*-1),Kn(I,{state:"blocked",location:_,proceed(){Kn(I,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),W.then(()=>n.history.go(z))},reset(){let pe=new Map(A.blockers);pe.set(I,Dl),Je({blockers:pe})}}),oe?.resolve(),oe=null;return}return an(S,_)}),l){pw(i,Ue);let S=()=>gw(i,Ue);i.addEventListener("pagehide",S),Le=()=>i.removeEventListener("pagehide",S)}return A.initialized||an("POP",A.location,{initialHydration:!0}),me}function Ht(){E&&E(),Le&&Le(),M.clear(),Ae&&Ae.abort(),A.fetchers.forEach((S,_)=>An(_)),A.blockers.forEach((S,_)=>pn(_))}function $t(S){return M.add(S),()=>M.delete(S)}function Je(S,_={}){S.matches&&(S.matches=S.matches.map(W=>{let pe=d[W.route.id],ae=W.route;return ae.element!==pe.element||ae.errorElement!==pe.errorElement||ae.hydrateFallbackElement!==pe.hydrateFallbackElement?{...W,route:pe}:W})),A={...A,...S};let z=[],I=[];A.fetchers.forEach((W,pe)=>{W.state==="idle"&&(te.has(pe)?z.push(pe):I.push(pe))}),te.forEach(W=>{!A.fetchers.has(W)&&!q.has(W)&&z.push(W)}),[...M].forEach(W=>W(A,{deletedFetchers:z,newErrors:S.errors??null,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),z.forEach(W=>An(W)),I.forEach(W=>A.fetchers.delete(W))}function Gn(S,_,{flushSync:z}={}){let I=A.actionData!=null&&A.navigation.formMethod!=null&&It(A.navigation.formMethod)&&A.navigation.state==="loading"&&S.state?._isRedirect!==!0,W;_.actionData?Object.keys(_.actionData).length>0?W=_.actionData:W=null:I?W=A.actionData:W=null;let pe=_.loaderData?Tg(A.loaderData,_.loaderData,_.matches||[],_.errors):A.loaderData,ae=A.blockers;ae.size>0&&(ae=new Map(ae),ae.forEach((Ee,be)=>ae.set(be,Dl)));let ne=we?!1:wt(S,_.matches||A.matches),ie=Ce===!0||A.navigation.formMethod!=null&&It(A.navigation.formMethod)&&S.state?._isRedirect!==!0;g&&(p=g,g=void 0),we||V==="POP"||(V==="PUSH"?n.history.push(S,S.state):V==="REPLACE"&&n.history.replace(S,S.state));let de;if(V==="POP"){let Ee=Ue.get(A.location.pathname);Ee&&Ee.has(S.pathname)?de={currentLocation:A.location,nextLocation:S}:Ue.has(S.pathname)&&(de={currentLocation:S,nextLocation:A.location})}else if(Te){let Ee=Ue.get(A.location.pathname);Ee?Ee.add(S.pathname):(Ee=new Set([S.pathname]),Ue.set(A.location.pathname,Ee)),de={currentLocation:A.location,nextLocation:S}}Je({..._,actionData:W,loaderData:pe,historyAction:V,location:S,initialized:!0,navigation:Jc,revalidation:"idle",restoreScrollPosition:ne,preventScrollReset:ie,blockers:ae},{viewTransitionOpts:de,flushSync:z===!0}),V="POP",Ce=!1,Te=!1,we=!1,C=!1,oe?.resolve(),oe=null,Re?.resolve(),Re=null}async function nn(S,_){if(oe?.resolve(),oe=null,typeof S=="number"){oe||(oe=Cg());let Ve=oe.promise;return n.history.go(S),Ve}let z=gf(A.location,A.matches,m,S,_?.fromRouteId,_?.relative),{path:I,submission:W,error:pe}=pg(!1,z,_),ae=A.location,ne=Yl(A.location,I,_&&_.state);ne={...ne,...n.history.encodeLocation(ne)};let ie=_&&_.replace!=null?_.replace:void 0,de="PUSH";ie===!0?de="REPLACE":ie===!1||W!=null&&It(W.formMethod)&&W.formAction===A.location.pathname+A.location.search&&(de="REPLACE");let Ee=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,be=(_&&_.flushSync)===!0,Ze=pa({currentLocation:ae,nextLocation:ne,historyAction:de});if(Ze){Kn(Ze,{state:"blocked",location:ne,proceed(){Kn(Ze,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),nn(S,_)},reset(){let Ve=new Map(A.blockers);Ve.set(Ze,Dl),Je({blockers:Ve})}});return}await an(de,ne,{submission:W,pendingError:pe,preventScrollReset:Ee,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:be,callSiteDefaultShouldRevalidate:_&&_.unstable_defaultShouldRevalidate})}function yi(){Re||(Re=Cg()),qa(),Je({revalidation:"loading"});let S=Re.promise;return A.navigation.state==="submitting"?S:A.navigation.state==="idle"?(an(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),S):(an(V||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:Te===!0}),S)}async function an(S,_,z){Ae&&Ae.abort(),Ae=null,V=S,we=(z&&z.startUninterruptedRevalidation)===!0,st(A.location,A.matches),Ce=(z&&z.preventScrollReset)===!0,Te=(z&&z.enableViewTransition)===!0;let I=g||p,W=z&&z.overrideNavigation,pe=z?.initialHydration&&A.matches&&A.matches.length>0&&!$?A.matches:ci(I,_,m),ae=(z&&z.flushSync)===!0;if(pe&&A.initialized&&!C&&rw(A.location,_)&&!(z&&z.submission&&It(z.submission.formMethod))){Gn(_,{matches:pe},{flushSync:ae});return}let ne=Et(pe,I,_.pathname);if(ne.active&&ne.matches&&(pe=ne.matches),!pe){let{error:yt,notFoundMatches:vt,route:Ge}=Xn(_.pathname);Gn(_,{matches:vt,loaderData:{},errors:{[Ge.id]:yt}},{flushSync:ae});return}Ae=new AbortController;let ie=Dr(n.history,_,Ae.signal,z&&z.submission),de=n.getContext?await n.getContext():new ug,Ee;if(z&&z.pendingError)Ee=[fi(pe).route.id,{type:"error",error:z.pendingError}];else if(z&&z.submission&&It(z.submission.formMethod)){let yt=await da(ie,_,z.submission,pe,de,ne.active,z&&z.initialHydration===!0,{replace:z.replace,flushSync:ae});if(yt.shortCircuited)return;if(yt.pendingActionResult){let[vt,Ge]=yt.pendingActionResult;if(Rn(Ge)&&Gl(Ge.error)&&Ge.error.status===404){Ae=null,Gn(_,{matches:yt.matches,loaderData:{},errors:{[vt]:Ge.error}});return}}pe=yt.matches||pe,Ee=yt.pendingActionResult,W=Ic(_,z.submission),ae=!1,ne.active=!1,ie=Dr(n.history,ie.url,ie.signal)}let{shortCircuited:be,matches:Ze,loaderData:Ve,errors:pt}=await vi(ie,_,pe,de,ne.active,W,z&&z.submission,z&&z.fetcherSubmission,z&&z.replace,z&&z.initialHydration===!0,ae,Ee,z&&z.callSiteDefaultShouldRevalidate);be||(Ae=null,Gn(_,{matches:Ze||pe,...Rg(Ee),loaderData:Ve,errors:pt}))}async function da(S,_,z,I,W,pe,ae,ne={}){qa();let ie=hw(_,z);if(Je({navigation:ie},{flushSync:ne.flushSync===!0}),pe){let be=await gn(I,_.pathname,S.signal);if(be.type==="aborted")return{shortCircuited:!0};if(be.type==="error"){if(be.partialMatches.length===0){let{matches:Ve,route:pt}=co(p);return{matches:Ve,pendingActionResult:[pt.id,{type:"error",error:be.error}]}}let Ze=fi(be.partialMatches).route.id;return{matches:be.partialMatches,pendingActionResult:[Ze,{type:"error",error:be.error}]}}else if(be.matches)I=be.matches;else{let{notFoundMatches:Ze,error:Ve,route:pt}=Xn(_.pathname);return{matches:Ze,pendingActionResult:[pt.id,{type:"error",error:Ve}]}}}let de,Ee=bo(I,_);if(!Ee.route.action&&!Ee.route.lazy)de={type:"error",error:qn(405,{method:S.method,pathname:_.pathname,routeId:Ee.route.id})};else{let be=kr(f,d,S,I,Ee,ae?[]:s,W),Ze=await ha(S,be,W,null);if(de=Ze[Ee.route.id],!de){for(let Ve of I)if(Ze[Ve.route.id]){de=Ze[Ve.route.id];break}}if(S.signal.aborted)return{shortCircuited:!0}}if(Vi(de)){let be;return ne&&ne.replace!=null?be=ne.replace:be=wg(de.response.headers.get("Location"),new URL(S.url),m,n.history)===A.location.pathname+A.location.search,await mt(S,de,!0,{submission:z,replace:be}),{shortCircuited:!0}}if(Rn(de)){let be=fi(I,Ee.route.id);return(ne&&ne.replace)!==!0&&(V="PUSH"),{matches:I,pendingActionResult:[be.route.id,de,Ee.route.id]}}return{matches:I,pendingActionResult:[Ee.route.id,de]}}async function vi(S,_,z,I,W,pe,ae,ne,ie,de,Ee,be,Ze){let Ve=pe||Ic(_,ae),pt=ae||ne||Ag(Ve),yt=!we&&!de;if(W){if(yt){let xt=Pt(be);Je({navigation:Ve,...xt!==void 0?{actionData:xt}:{}},{flushSync:Ee})}let Ke=await gn(z,_.pathname,S.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){if(Ke.partialMatches.length===0){let{matches:Zn,route:Vt}=co(p);return{matches:Zn,loaderData:{},errors:{[Vt.id]:Ke.error}}}let xt=fi(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[xt]:Ke.error}}}else if(Ke.matches)z=Ke.matches;else{let{error:xt,notFoundMatches:Zn,route:Vt}=Xn(_.pathname);return{matches:Zn,loaderData:{},errors:{[Vt.id]:xt}}}}let vt=g||p,{dsMatches:Ge,revalidatingFetchers:jt}=gg(S,I,f,d,n.history,A,z,pt,_,de?[]:s,de===!0,C,P,te,B,H,vt,m,n.patchRoutesOnNavigation!=null,be,Ze);if(ve=++ge,!n.dataStrategy&&!Ge.some(Ke=>Ke.shouldLoad)&&!Ge.some(Ke=>Ke.route.middleware&&Ke.route.middleware.length>0)&&jt.length===0){let Ke=kt();return Gn(_,{matches:z,loaderData:{},errors:be&&Rn(be[1])?{[be[0]]:be[1].error}:null,...Rg(be),...Ke?{fetchers:new Map(A.fetchers)}:{}},{flushSync:Ee}),{shortCircuited:!0}}if(yt){let Ke={};if(!W){Ke.navigation=Ve;let xt=Pt(be);xt!==void 0&&(Ke.actionData=xt)}jt.length>0&&(Ke.fetchers=bi(jt)),Je(Ke,{flushSync:Ee})}jt.forEach(Ke=>{ut(Ke.key),Ke.controller&&q.set(Ke.key,Ke.controller)});let ln=()=>jt.forEach(Ke=>ut(Ke.key));Ae&&Ae.signal.addEventListener("abort",ln);let{loaderResults:dt,fetcherResults:Fn}=await na(Ge,jt,S,I);if(S.signal.aborted)return{shortCircuited:!0};Ae&&Ae.signal.removeEventListener("abort",ln),jt.forEach(Ke=>q.delete(Ke.key));let yn=fo(dt);if(yn)return await mt(S,yn.result,!0,{replace:ie}),{shortCircuited:!0};if(yn=fo(Fn),yn)return H.add(yn.key),await mt(S,yn.result,!0,{replace:ie}),{shortCircuited:!0};let{loaderData:Pn,errors:On}=xg(A,z,dt,be,jt,Fn);de&&A.errors&&(On={...A.errors,...On});let ya=kt(),Ei=Ji(ve),xi=ya||Ei||jt.length>0;return{matches:z,loaderData:Pn,errors:On,...xi?{fetchers:new Map(A.fetchers)}:{}}}function Pt(S){if(S&&!Rn(S[1]))return{[S[0]]:S[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function bi(S){return S.forEach(_=>{let z=A.fetchers.get(_.key),I=Nl(void 0,z?z.data:void 0);A.fetchers.set(_.key,I)}),new Map(A.fetchers)}async function Si(S,_,z,I){ut(S);let W=(I&&I.flushSync)===!0,pe=g||p,ae=gf(A.location,A.matches,m,z,_,I?.relative),ne=ci(pe,ae,m),ie=Et(ne,pe,ae);if(ie.active&&ie.matches&&(ne=ie.matches),!ne){Wt(S,_,qn(404,{pathname:ae}),{flushSync:W});return}let{path:de,submission:Ee,error:be}=pg(!0,ae,I);if(be){Wt(S,_,be,{flushSync:W});return}let Ze=n.getContext?await n.getContext():new ug,Ve=(I&&I.preventScrollReset)===!0;if(Ee&&It(Ee.formMethod)){await Qt(S,_,de,ne,Ze,ie.active,W,Ve,Ee,I&&I.unstable_defaultShouldRevalidate);return}B.set(S,{routeId:_,path:de}),await ta(S,_,de,ne,Ze,ie.active,W,Ve,Ee)}async function Qt(S,_,z,I,W,pe,ae,ne,ie,de){qa(),B.delete(S);let Ee=A.fetchers.get(S);Yt(S,mw(ie,Ee),{flushSync:ae});let be=new AbortController,Ze=Dr(n.history,z,be.signal,ie);if(pe){let Xe=await gn(I,new URL(Ze.url).pathname,Ze.signal,S);if(Xe.type==="aborted")return;if(Xe.type==="error"){Wt(S,_,Xe.error,{flushSync:ae});return}else if(Xe.matches)I=Xe.matches;else{Wt(S,_,qn(404,{pathname:z}),{flushSync:ae});return}}let Ve=bo(I,z);if(!Ve.route.action&&!Ve.route.lazy){let Xe=qn(405,{method:ie.formMethod,pathname:z,routeId:_});Wt(S,_,Xe,{flushSync:ae});return}q.set(S,be);let pt=ge,yt=kr(f,d,Ze,I,Ve,s,W),vt=await ha(Ze,yt,W,S),Ge=vt[Ve.route.id];if(!Ge){for(let Xe of yt)if(vt[Xe.route.id]){Ge=vt[Xe.route.id];break}}if(Ze.signal.aborted){q.get(S)===be&&q.delete(S);return}if(te.has(S)){if(Vi(Ge)||Rn(Ge)){Yt(S,La(void 0));return}}else{if(Vi(Ge))if(q.delete(S),ve>pt){Yt(S,La(void 0));return}else return H.add(S),Yt(S,Nl(ie)),mt(Ze,Ge,!1,{fetcherSubmission:ie,preventScrollReset:ne});if(Rn(Ge)){Wt(S,_,Ge.error);return}}let jt=A.navigation.location||A.location,ln=Dr(n.history,jt,be.signal),dt=g||p,Fn=A.navigation.state!=="idle"?ci(dt,A.navigation.location,m):A.matches;je(Fn,"Didn't find any matches after fetcher action");let yn=++ge;x.set(S,yn);let Pn=Nl(ie,Ge.data);A.fetchers.set(S,Pn);let{dsMatches:On,revalidatingFetchers:ya}=gg(ln,W,f,d,n.history,A,Fn,ie,jt,s,!1,C,P,te,B,H,dt,m,n.patchRoutesOnNavigation!=null,[Ve.route.id,Ge],de);ya.filter(Xe=>Xe.key!==S).forEach(Xe=>{let Ti=Xe.key,Il=A.fetchers.get(Ti),Qr=Nl(void 0,Il?Il.data:void 0);A.fetchers.set(Ti,Qr),ut(Ti),Xe.controller&&q.set(Ti,Xe.controller)}),Je({fetchers:new Map(A.fetchers)});let Ei=()=>ya.forEach(Xe=>ut(Xe.key));be.signal.addEventListener("abort",Ei);let{loaderResults:xi,fetcherResults:Ke}=await na(On,ya,ln,W);if(be.signal.aborted)return;if(be.signal.removeEventListener("abort",Ei),x.delete(S),q.delete(S),ya.forEach(Xe=>q.delete(Xe.key)),A.fetchers.has(S)){let Xe=La(Ge.data);A.fetchers.set(S,Xe)}let xt=fo(xi);if(xt)return mt(ln,xt.result,!1,{preventScrollReset:ne});if(xt=fo(Ke),xt)return H.add(xt.key),mt(ln,xt.result,!1,{preventScrollReset:ne});let{loaderData:Zn,errors:Vt}=xg(A,Fn,xi,void 0,ya,Ke);Ji(yn),A.navigation.state==="loading"&&yn>ve?(je(V,"Expected pending action"),Ae&&Ae.abort(),Gn(A.navigation.location,{matches:Fn,loaderData:Zn,errors:Vt,fetchers:new Map(A.fetchers)})):(Je({errors:Vt,loaderData:Tg(A.loaderData,Zn,Fn,Vt),fetchers:new Map(A.fetchers)}),C=!1)}async function ta(S,_,z,I,W,pe,ae,ne,ie){let de=A.fetchers.get(S);Yt(S,Nl(ie,de?de.data:void 0),{flushSync:ae});let Ee=new AbortController,be=Dr(n.history,z,Ee.signal);if(pe){let Ge=await gn(I,new URL(be.url).pathname,be.signal,S);if(Ge.type==="aborted")return;if(Ge.type==="error"){Wt(S,_,Ge.error,{flushSync:ae});return}else if(Ge.matches)I=Ge.matches;else{Wt(S,_,qn(404,{pathname:z}),{flushSync:ae});return}}let Ze=bo(I,z);q.set(S,Ee);let Ve=ge,pt=kr(f,d,be,I,Ze,s,W),vt=(await ha(be,pt,W,S))[Ze.route.id];if(q.get(S)===Ee&&q.delete(S),!be.signal.aborted){if(te.has(S)){Yt(S,La(void 0));return}if(Vi(vt))if(ve>Ve){Yt(S,La(void 0));return}else{H.add(S),await mt(be,vt,!1,{preventScrollReset:ne});return}if(Rn(vt)){Wt(S,_,vt.error);return}Yt(S,La(vt.data))}}async function mt(S,_,z,{submission:I,fetcherSubmission:W,preventScrollReset:pe,replace:ae}={}){z||(oe?.resolve(),oe=null),_.response.headers.has("X-Remix-Revalidate")&&(C=!0);let ne=_.response.headers.get("Location");je(ne,"Expected a Location header on the redirect Response"),ne=wg(ne,new URL(S.url),m,n.history);let ie=Yl(A.location,ne,{_isRedirect:!0});if(l){let pt=!1;if(_.response.headers.has("X-Remix-Reload-Document"))pt=!0;else if(zf(ne)){const yt=vy(ne,!0);pt=yt.origin!==i.location.origin||Yn(yt.pathname,m)==null}if(pt){ae?i.location.replace(ne):i.location.assign(ne);return}}Ae=null;let de=ae===!0||_.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ee,formAction:be,formEncType:Ze}=A.navigation;!I&&!W&&Ee&&be&&Ze&&(I=Ag(A.navigation));let Ve=I||W;if(V1.has(_.response.status)&&Ve&&It(Ve.formMethod))await an(de,ie,{submission:{...Ve,formAction:ne},preventScrollReset:pe||Ce,enableViewTransition:z?Te:void 0});else{let pt=Ic(ie,I);await an(de,ie,{overrideNavigation:pt,fetcherSubmission:W,preventScrollReset:pe||Ce,enableViewTransition:z?Te:void 0})}}async function ha(S,_,z,I){let W,pe={};try{W=await W1(b,S,_,I,z,!1)}catch(ae){return _.filter(ne=>ne.shouldLoad).forEach(ne=>{pe[ne.route.id]={type:"error",error:ae}}),pe}if(S.signal.aborted)return pe;if(!It(S.method))for(let ae of _){if(W[ae.route.id]?.type==="error")break;!W.hasOwnProperty(ae.route.id)&&!A.loaderData.hasOwnProperty(ae.route.id)&&(!A.errors||!A.errors.hasOwnProperty(ae.route.id))&&ae.shouldCallHandler()&&(W[ae.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ae.route.id}`)})}for(let[ae,ne]of Object.entries(W))if(uw(ne)){let ie=ne.result;pe[ae]={type:"redirect",response:aw(ie,S,ae,_,m)}}else pe[ae]=await nw(ne);return pe}async function na(S,_,z,I){let W=ha(z,S,I,null),pe=Promise.all(_.map(async ie=>{if(ie.matches&&ie.match&&ie.request&&ie.controller){let Ee=(await ha(ie.request,ie.matches,I,ie.key))[ie.match.route.id];return{[ie.key]:Ee}}else return Promise.resolve({[ie.key]:{type:"error",error:qn(404,{pathname:ie.path})}})})),ae=await W,ne=(await pe).reduce((ie,de)=>Object.assign(ie,de),{});return{loaderResults:ae,fetcherResults:ne}}function qa(){C=!0,B.forEach((S,_)=>{q.has(_)&&P.add(_),ut(_)})}function Yt(S,_,z={}){A.fetchers.set(S,_),Je({fetchers:new Map(A.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function Wt(S,_,z,I={}){let W=fi(A.matches,_);An(S),Je({errors:{[W.route.id]:z},fetchers:new Map(A.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function _n(S){return Z.set(S,(Z.get(S)||0)+1),te.has(S)&&te.delete(S),A.fetchers.get(S)||G1}function Zi(S,_){ut(S,_?.reason),Yt(S,La(null))}function An(S){let _=A.fetchers.get(S);q.has(S)&&!(_&&_.state==="loading"&&x.has(S))&&ut(S),B.delete(S),x.delete(S),H.delete(S),te.delete(S),P.delete(S),A.fetchers.delete(S)}function ma(S){let _=(Z.get(S)||0)-1;_<=0?(Z.delete(S),te.add(S)):Z.set(S,_),Je({fetchers:new Map(A.fetchers)})}function ut(S,_){let z=q.get(S);z&&(z.abort(_),q.delete(S))}function rn(S){for(let _ of S){let z=_n(_),I=La(z.data);A.fetchers.set(_,I)}}function kt(){let S=[],_=!1;for(let z of H){let I=A.fetchers.get(z);je(I,`Expected fetcher: ${z}`),I.state==="loading"&&(H.delete(z),S.push(z),_=!0)}return rn(S),_}function Ji(S){let _=[];for(let[z,I]of x)if(I<S){let W=A.fetchers.get(z);je(W,`Expected fetcher: ${z}`),W.state==="loading"&&(ut(z),x.delete(z),_.push(z))}return rn(_),_.length>0}function wi(S,_){let z=A.blockers.get(S)||Dl;return ue.get(S)!==_&&ue.set(S,_),z}function pn(S){A.blockers.delete(S),ue.delete(S)}function Kn(S,_){let z=A.blockers.get(S)||Dl;je(z.state==="unblocked"&&_.state==="blocked"||z.state==="blocked"&&_.state==="blocked"||z.state==="blocked"&&_.state==="proceeding"||z.state==="blocked"&&_.state==="unblocked"||z.state==="proceeding"&&_.state==="unblocked",`Invalid blocker state transition: ${z.state} -> ${_.state}`);let I=new Map(A.blockers);I.set(S,_),Je({blockers:I})}function pa({currentLocation:S,nextLocation:_,historyAction:z}){if(ue.size===0)return;ue.size>1&&Nt(!1,"A router only supports one blocker at a time");let I=Array.from(ue.entries()),[W,pe]=I[I.length-1],ae=A.blockers.get(W);if(!(ae&&ae.state==="proceeding")&&pe({currentLocation:S,nextLocation:_,historyAction:z}))return W}function Xn(S){let _=qn(404,{pathname:S}),z=g||p,{matches:I,route:W}=co(z);return{notFoundMatches:I,route:W,error:_}}function Cn(S,_,z){if(U=S,K=_,j=z||null,!G&&A.navigation===Jc){G=!0;let I=wt(A.location,A.matches);I!=null&&Je({restoreScrollPosition:I})}return()=>{U=null,K=null,j=null}}function _e(S,_){return j&&j(S,_.map(I=>g1(I,A.loaderData)))||S.key}function st(S,_){if(U&&K){let z=_e(S,_);U[z]=K()}}function wt(S,_){if(U){let z=_e(S,_),I=U[z];if(typeof I=="number")return I}return null}function Et(S,_,z){if(n.patchRoutesOnNavigation)if(S){if(Object.keys(S[0].params).length>0)return{active:!0,matches:jl(_,z,m,!0)}}else return{active:!0,matches:jl(_,z,m,!0)||[]};return{active:!1,matches:null}}async function gn(S,_,z,I){if(!n.patchRoutesOnNavigation)return{type:"success",matches:S};let W=S;for(;;){let pe=g==null,ae=g||p,ne=d;try{await n.patchRoutesOnNavigation({signal:z,path:_,matches:W,fetcherKey:I,patch:(Ee,be)=>{z.aborted||yg(Ee,be,ae,ne,f,!1)}})}catch(Ee){return{type:"error",error:Ee,partialMatches:W}}finally{pe&&!z.aborted&&(p=[...p])}if(z.aborted)return{type:"aborted"};let ie=ci(ae,_,m),de=null;if(ie){if(Object.keys(ie[0].params).length===0)return{type:"success",matches:ie};if(de=jl(ae,_,m,!0),!(de&&W.length<de.length&&ot(W,de.slice(0,W.length))))return{type:"success",matches:ie}}if(de||(de=jl(ae,_,m,!0)),!de||ot(W,de))return{type:"success",matches:null};W=de}}function ot(S,_){return S.length===_.length&&S.every((z,I)=>z.route.id===_[I].route.id)}function Zt(S){d={},g=Vl(S,f,void 0,d)}function ga(S,_,z=!1){let I=g==null;yg(S,_,g||p,d,f,z),I&&(p=[...p],Je({}))}return me={get basename(){return m},get future(){return y},get state(){return A},get routes(){return p},get window(){return i},initialize:Ye,subscribe:$t,enableScrollRestoration:Cn,navigate:nn,fetch:Si,revalidate:yi,createHref:S=>n.history.createHref(S),encodeLocation:S=>n.history.encodeLocation(S),getFetcher:_n,resetFetcher:Zi,deleteFetcher:ma,dispose:Ht,getBlocker:wi,deleteBlocker:pn,patchRoutes:ga,_internalFetchControllers:q,_internalSetRoutes:Zt,_internalSetStateDoNotUseOrYouWillBreakYourApp(S){Je(S)}},n.unstable_instrumentations&&(me=U1(me,n.unstable_instrumentations.map(S=>S.router).filter(Boolean))),me}function F1(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function gf(n,i,l,s,c,f){let d,p;if(c){d=[];for(let m of i)if(d.push(m),m.route.id===c){p=m;break}}else d=i,p=i[i.length-1];let g=Lf(s||".",Uf(d),Yn(n.pathname,l)||n.pathname,f==="path");if(s==null&&(g.search=n.search,g.hash=n.hash),(s==null||s===""||s===".")&&p){let m=qf(g.search);if(p.route.index&&!m)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!p.route.index&&m){let b=new URLSearchParams(g.search),y=b.getAll("index");b.delete("index"),y.filter(M=>M).forEach(M=>b.append("index",M));let E=b.toString();g.search=E?`?${E}`:""}}return l!=="/"&&(g.pathname=O1({basename:l,pathname:g.pathname})),ca(g)}function pg(n,i,l){if(!l||!F1(l))return{path:i};if(l.formMethod&&!dw(l.formMethod))return{path:i,error:qn(405,{method:l.formMethod})};let s=()=>({path:i,error:qn(400,{type:"invalid-body"})}),f=(l.formMethod||"get").toUpperCase(),d=Uy(i);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!It(f))return s();let y=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((E,[M,U])=>`${E}${M}=${U}
|
|
11
|
-
`,""):String(l.body);return{path:i,submission:{formMethod:f,formAction:d,formEncType:l.formEncType,formData:void 0,json:void 0,text:y}}}else if(l.formEncType==="application/json"){if(!It(f))return s();try{let y=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:i,submission:{formMethod:f,formAction:d,formEncType:l.formEncType,formData:void 0,json:y,text:void 0}}}catch{return s()}}}je(typeof FormData=="function","FormData is not available in this environment");let p,g;if(l.formData)p=bf(l.formData),g=l.formData;else if(l.body instanceof FormData)p=bf(l.body),g=l.body;else if(l.body instanceof URLSearchParams)p=l.body,g=Eg(p);else if(l.body==null)p=new URLSearchParams,g=new FormData;else try{p=new URLSearchParams(l.body),g=Eg(p)}catch{return s()}let m={formMethod:f,formAction:d,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(It(m.formMethod))return{path:i,submission:m};let b=gi(i);return n&&b.search&&qf(b.search)&&p.append("index",""),b.search=`?${p}`,{path:ca(b),submission:m}}function gg(n,i,l,s,c,f,d,p,g,m,b,y,E,M,U,j,K,G,J,$,ye){let he=$?Rn($[1])?$[1].error:$[1].data:void 0,me=c.createURL(f.location),A=c.createURL(g),V;if(b&&f.errors){let we=Object.keys(f.errors)[0];V=d.findIndex(C=>C.route.id===we)}else if($&&Rn($[1])){let we=$[0];V=d.findIndex(C=>C.route.id===we)-1}let oe=$?$[1].statusCode:void 0,Ce=oe&&oe>=400,Ae={currentUrl:me,currentParams:f.matches[0]?.params||{},nextUrl:A,nextParams:d[0].params,...p,actionResult:he,actionStatus:oe},Te=Fl(d),Ue=d.map((we,C)=>{let{route:P}=we,q=null;if(V!=null&&C>V?q=!1:P.lazy?q=!0:jf(P)?b?q=yf(P,f.loaderData,f.errors):P1(f.loaderData,f.matches[C],we)&&(q=!0):q=!1,q!==null)return vf(l,s,n,Te,we,m,i,q);let ge=!1;typeof ye=="boolean"?ge=ye:Ce?ge=!1:(y||me.pathname+me.search===A.pathname+A.search||me.search!==A.search||Z1(f.matches[C],we))&&(ge=!0);let ve={...Ae,defaultShouldRevalidate:ge},x=Hl(we,ve);return vf(l,s,n,Te,we,m,i,x,ve,ye)}),Le=[];return U.forEach((we,C)=>{if(b||!d.some(Z=>Z.route.id===we.routeId)||M.has(C))return;let P=f.fetchers.get(C),q=P&&P.state!=="idle"&&P.data===void 0,ge=ci(K,we.path,G);if(!ge){if(J&&q)return;Le.push({key:C,routeId:we.routeId,path:we.path,matches:null,match:null,request:null,controller:null});return}if(j.has(C))return;let ve=bo(ge,we.path),x=new AbortController,H=Dr(c,we.path,x.signal),B=null;if(E.has(C))E.delete(C),B=kr(l,s,H,ge,ve,m,i);else if(q)y&&(B=kr(l,s,H,ge,ve,m,i));else{let Z;typeof ye=="boolean"?Z=ye:Ce?Z=!1:Z=y;let te={...Ae,defaultShouldRevalidate:Z};Hl(ve,te)&&(B=kr(l,s,H,ge,ve,m,i,te))}B&&Le.push({key:C,routeId:we.routeId,path:we.path,matches:B,match:ve,request:H,controller:x})}),{dsMatches:Ue,revalidatingFetchers:Le}}function jf(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function yf(n,i,l){if(n.lazy)return!0;if(!jf(n))return!1;let s=i!=null&&n.id in i,c=l!=null&&l[n.id]!==void 0;return!s&&c?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!s&&!c}function P1(n,i,l){let s=!i||l.route.id!==i.route.id,c=!n.hasOwnProperty(l.route.id);return s||c}function Z1(n,i){let l=n.route.path;return n.pathname!==i.pathname||l!=null&&l.endsWith("*")&&n.params["*"]!==i.params["*"]}function Hl(n,i){if(n.route.shouldRevalidate){let l=n.route.shouldRevalidate(i);if(typeof l=="boolean")return l}return i.defaultShouldRevalidate}function yg(n,i,l,s,c,f){let d;if(n){let m=s[n];je(m,`No route found to patch children into: routeId = ${n}`),m.children||(m.children=[]),d=m.children}else d=l;let p=[],g=[];if(i.forEach(m=>{let b=d.find(y=>My(m,y));b?g.push({existingRoute:b,newRoute:m}):p.push(m)}),p.length>0){let m=Vl(p,c,[n||"_","patch",String(d?.length||"0")],s);d.push(...m)}if(f&&g.length>0)for(let m=0;m<g.length;m++){let{existingRoute:b,newRoute:y}=g[m],E=b,[M]=Vl([y],c,[],{},!0);Object.assign(E,{element:M.element?M.element:E.element,errorElement:M.errorElement?M.errorElement:E.errorElement,hydrateFallbackElement:M.hydrateFallbackElement?M.hydrateFallbackElement:E.hydrateFallbackElement})}}function My(n,i){return"id"in n&&"id"in i&&n.id===i.id?!0:n.index===i.index&&n.path===i.path&&n.caseSensitive===i.caseSensitive?(!n.children||n.children.length===0)&&(!i.children||i.children.length===0)?!0:n.children.every((l,s)=>i.children?.some(c=>My(l,c))):!1}var vg=new WeakMap,Dy=({key:n,route:i,manifest:l,mapRouteProperties:s})=>{let c=l[i.id];if(je(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let f=c.lazy[n];if(!f)return;let d=vg.get(c);d||(d={},vg.set(c,d));let p=d[n];if(p)return p;let g=(async()=>{let m=d1(n),y=c[n]!==void 0&&n!=="hasErrorBoundary";if(m)Nt(!m,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),d[n]=Promise.resolve();else if(y)Nt(!1,`Route "${c.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let E=await f();E!=null&&(Object.assign(c,{[n]:E}),Object.assign(c,s(c)))}typeof c.lazy=="object"&&(c.lazy[n]=void 0,Object.values(c.lazy).every(E=>E===void 0)&&(c.lazy=void 0))})();return d[n]=g,g},bg=new WeakMap;function J1(n,i,l,s,c){let f=l[n.id];if(je(f,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let b=bg.get(f);if(b)return{lazyRoutePromise:b,lazyHandlerPromise:b};let y=(async()=>{je(typeof n.lazy=="function","No lazy route function found");let E=await n.lazy(),M={};for(let U in E){let j=E[U];if(j===void 0)continue;let K=m1(U),J=f[U]!==void 0&&U!=="hasErrorBoundary";K?Nt(!K,"Route property "+U+" is not a supported property to be returned from a lazy route function. This property will be ignored."):J?Nt(!J,`Route "${f.id}" has a static property "${U}" defined but its lazy function is also returning a value for this property. The lazy route property "${U}" will be ignored.`):M[U]=j}Object.assign(f,M),Object.assign(f,{...s(f),lazy:void 0})})();return bg.set(f,y),y.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:y}}let d=Object.keys(n.lazy),p=[],g;for(let b of d){if(c&&c.includes(b))continue;let y=Dy({key:b,route:n,manifest:l,mapRouteProperties:s});y&&(p.push(y),b===i&&(g=y))}let m=p.length>0?Promise.all(p).then(()=>{}):void 0;return m?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:g}}async function Sg(n){let i=n.matches.filter(c=>c.shouldLoad),l={};return(await Promise.all(i.map(c=>c.resolve()))).forEach((c,f)=>{l[i[f].route.id]=c}),l}async function I1(n){return n.matches.some(i=>i.route.middleware)?Ny(n,()=>Sg(n)):Sg(n)}function Ny(n,i){return $1(n,i,s=>{if(fw(s))throw s;return s},sw,l);function l(s,c,f){if(f)return Promise.resolve(Object.assign(f.value,{[c]:{type:"error",result:s}}));{let{matches:d}=n,p=Math.min(Math.max(d.findIndex(m=>m.route.id===c),0),Math.max(d.findIndex(m=>m.shouldCallHandler()),0)),g=fi(d,d[p].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:s}})}}}async function $1(n,i,l,s,c){let{matches:f,request:d,params:p,context:g,unstable_pattern:m}=n,b=f.flatMap(E=>E.route.middleware?E.route.middleware.map(M=>[E.route.id,M]):[]);return await ky({request:d,params:p,context:g,unstable_pattern:m},b,i,l,s,c)}async function ky(n,i,l,s,c,f,d=0){let{request:p}=n;if(p.signal.aborted)throw p.signal.reason??new Error(`Request aborted: ${p.method} ${p.url}`);let g=i[d];if(!g)return await l();let[m,b]=g,y,E=async()=>{if(y)throw new Error("You may only call `next()` once per middleware");try{return y={value:await ky(n,i,l,s,c,f,d+1)},y.value}catch(M){return y={value:await f(M,m,y)},y.value}};try{let M=await b(n,E),U=M!=null?s(M):void 0;return c(U)?U:y?U??y.value:(y={value:await E()},y.value)}catch(M){return await f(M,m,y)}}function zy(n,i,l,s,c){let f=Dy({key:"middleware",route:s.route,manifest:i,mapRouteProperties:n}),d=J1(s.route,It(l.method)?"action":"loader",i,n,c);return{middleware:f,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function vf(n,i,l,s,c,f,d,p,g=null,m){let b=!1,y=zy(n,i,l,c,f);return{...c,_lazyPromises:y,shouldLoad:p,shouldRevalidateArgs:g,shouldCallHandler(E){return b=!0,g?typeof m=="boolean"?Hl(c,{...g,defaultShouldRevalidate:m}):typeof E=="boolean"?Hl(c,{...g,defaultShouldRevalidate:E}):Hl(c,g):p},resolve(E){let{lazy:M,loader:U,middleware:j}=c.route,K=b||p||E&&!It(l.method)&&(M||U),G=j&&j.length>0&&!U&&!M;return K&&(It(l.method)||!G)?ew({request:l,unstable_pattern:s,match:c,lazyHandlerPromise:y?.handler,lazyRoutePromise:y?.route,handlerOverride:E,scopedContext:d}):Promise.resolve({type:"data",result:void 0})}}}function kr(n,i,l,s,c,f,d,p=null){return s.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:p,shouldCallHandler:()=>!1,_lazyPromises:zy(n,i,l,g,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:vf(n,i,l,Fl(s),g,f,d,!0,p))}async function W1(n,i,l,s,c,f){l.some(m=>m._lazyPromises?.middleware)&&await Promise.all(l.map(m=>m._lazyPromises?.middleware));let d={request:i,unstable_pattern:Fl(l),params:l[0].params,context:c,matches:l},g=await n({...d,fetcherKey:s,runClientMiddleware:m=>{let b=d;return Ny(b,()=>m({...b,fetcherKey:s,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return g}async function ew({request:n,unstable_pattern:i,match:l,lazyHandlerPromise:s,lazyRoutePromise:c,handlerOverride:f,scopedContext:d}){let p,g,m=It(n.method),b=m?"action":"loader",y=E=>{let M,U=new Promise((G,J)=>M=J);g=()=>M(),n.signal.addEventListener("abort",g);let j=G=>typeof E!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${b}" [routeId: ${l.route.id}]`)):E({request:n,unstable_pattern:i,params:l.params,context:d},...G!==void 0?[G]:[]),K=(async()=>{try{return{type:"data",result:await(f?f(J=>j(J)):j())}}catch(G){return{type:"error",result:G}}})();return Promise.race([K,U])};try{let E=m?l.route.action:l.route.loader;if(s||c)if(E){let M,[U]=await Promise.all([y(E).catch(j=>{M=j}),s,c]);if(M!==void 0)throw M;p=U}else{await s;let M=m?l.route.action:l.route.loader;if(M)[p]=await Promise.all([y(M),c]);else if(b==="action"){let U=new URL(n.url),j=U.pathname+U.search;throw qn(405,{method:n.method,pathname:j,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(E)p=await y(E);else{let M=new URL(n.url),U=M.pathname+M.search;throw qn(404,{pathname:U})}}catch(E){return{type:"error",result:E}}finally{g&&n.signal.removeEventListener("abort",g)}return p}async function tw(n){let i=n.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?n.body==null?null:n.json():n.text()}async function nw(n){let{result:i,type:l}=n;if(Bf(i)){let s;try{s=await tw(i)}catch(c){return{type:"error",error:c}}return l==="error"?{type:"error",error:new Xl(i.status,i.statusText,s),statusCode:i.status,headers:i.headers}:{type:"data",data:s,statusCode:i.status,headers:i.headers}}return l==="error"?_g(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:lw(i),statusCode:Gl(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:Gl(i)?i.status:void 0}:_g(i)?{type:"data",data:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function aw(n,i,l,s,c){let f=n.headers.get("Location");if(je(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!zf(f)){let d=s.slice(0,s.findIndex(p=>p.route.id===l)+1);f=gf(new URL(i.url),d,c,f),n.headers.set("Location",f)}return n}function wg(n,i,l,s){let c=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(zf(n)){let f=n,d=f.startsWith("//")?new URL(i.protocol+f):new URL(f);if(c.includes(d.protocol))throw new Error("Invalid redirect location");let p=Yn(d.pathname,l)!=null;if(d.origin===i.origin&&p)return d.pathname+d.search+d.hash}try{let f=s.createURL(n);if(c.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return n}function Dr(n,i,l,s){let c=n.createURL(Uy(i)).toString(),f={signal:l};if(s&&It(s.formMethod)){let{formMethod:d,formEncType:p}=s;f.method=d.toUpperCase(),p==="application/json"?(f.headers=new Headers({"Content-Type":p}),f.body=JSON.stringify(s.json)):p==="text/plain"?f.body=s.text:p==="application/x-www-form-urlencoded"&&s.formData?f.body=bf(s.formData):f.body=s.formData}return new Request(c,f)}function bf(n){let i=new URLSearchParams;for(let[l,s]of n.entries())i.append(l,typeof s=="string"?s:s.name);return i}function Eg(n){let i=new FormData;for(let[l,s]of n.entries())i.append(l,s);return i}function iw(n,i,l,s=!1,c=!1){let f={},d=null,p,g=!1,m={},b=l&&Rn(l[1])?l[1].error:void 0;return n.forEach(y=>{if(!(y.route.id in i))return;let E=y.route.id,M=i[E];if(je(!Vi(M),"Cannot handle redirect results in processLoaderData"),Rn(M)){let U=M.error;if(b!==void 0&&(U=b,b=void 0),d=d||{},c)d[E]=U;else{let j=fi(n,E);d[j.route.id]==null&&(d[j.route.id]=U)}s||(f[E]=Oy),g||(g=!0,p=Gl(M.error)?M.error.status:500),M.headers&&(m[E]=M.headers)}else f[E]=M.data,M.statusCode&&M.statusCode!==200&&!g&&(p=M.statusCode),M.headers&&(m[E]=M.headers)}),b!==void 0&&l&&(d={[l[0]]:b},l[2]&&(f[l[2]]=void 0)),{loaderData:f,errors:d,statusCode:p||200,loaderHeaders:m}}function xg(n,i,l,s,c,f){let{loaderData:d,errors:p}=iw(i,l,s);return c.filter(g=>!g.matches||g.matches.some(m=>m.shouldLoad)).forEach(g=>{let{key:m,match:b,controller:y}=g;if(y&&y.signal.aborted)return;let E=f[m];if(je(E,"Did not find corresponding fetcher result"),Rn(E)){let M=fi(n.matches,b?.route.id);p&&p[M.route.id]||(p={...p,[M.route.id]:E.error}),n.fetchers.delete(m)}else if(Vi(E))je(!1,"Unhandled fetcher revalidation redirect");else{let M=La(E.data);n.fetchers.set(m,M)}}),{loaderData:d,errors:p}}function Tg(n,i,l,s){let c=Object.entries(i).filter(([,f])=>f!==Oy).reduce((f,[d,p])=>(f[d]=p,f),{});for(let f of l){let d=f.route.id;if(!i.hasOwnProperty(d)&&n.hasOwnProperty(d)&&f.route.loader&&(c[d]=n[d]),s&&s.hasOwnProperty(d))break}return c}function Rg(n){return n?Rn(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function fi(n,i){return(i?n.slice(0,n.findIndex(s=>s.route.id===i)+1):[...n]).reverse().find(s=>s.route.hasErrorBoundary===!0)||n[0]}function co(n){let i=n.length===1?n[0]:n.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function qn(n,{pathname:i,routeId:l,method:s,type:c,message:f}={}){let d="Unknown Server Error",p="Unknown @remix-run/router error";return n===400?(d="Bad Request",s&&i&&l?p=`You made a ${s} request to "${i}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:c==="invalid-body"&&(p="Unable to encode submission body")):n===403?(d="Forbidden",p=`Route "${l}" does not match URL "${i}"`):n===404?(d="Not Found",p=`No route matches URL "${i}"`):n===405&&(d="Method Not Allowed",s&&i&&l?p=`You made a ${s.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:s&&(p=`Invalid request method "${s.toUpperCase()}"`)),new Xl(n||500,d,new Error(p),!0)}function fo(n){let i=Object.entries(n);for(let l=i.length-1;l>=0;l--){let[s,c]=i[l];if(Vi(c))return{key:s,result:c}}}function Uy(n){let i=typeof n=="string"?gi(n):n;return ca({...i,hash:""})}function rw(n,i){return n.pathname!==i.pathname||n.search!==i.search?!1:n.hash===""?i.hash!=="":n.hash===i.hash?!0:i.hash!==""}function lw(n){return new Xl(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)}function sw(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([i,l])=>typeof i=="string"&&ow(l))}function ow(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function uw(n){return Bf(n.result)&&Ay.has(n.result.status)}function Rn(n){return n.type==="error"}function Vi(n){return(n&&n.type)==="redirect"}function _g(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function Bf(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function cw(n){return Ay.has(n)}function fw(n){return Bf(n)&&cw(n.status)&&n.headers.has("Location")}function dw(n){return Y1.has(n.toUpperCase())}function It(n){return H1.has(n.toUpperCase())}function qf(n){return new URLSearchParams(n).getAll("index").some(i=>i==="")}function bo(n,i){let l=typeof i=="string"?gi(i).search:i.search;if(n[n.length-1].route.index&&qf(l||""))return n[n.length-1];let s=Ey(n);return s[s.length-1]}function Ag(n){let{formMethod:i,formAction:l,formEncType:s,text:c,formData:f,json:d}=n;if(!(!i||!l||!s)){if(c!=null)return{formMethod:i,formAction:l,formEncType:s,formData:void 0,json:void 0,text:c};if(f!=null)return{formMethod:i,formAction:l,formEncType:s,formData:f,json:void 0,text:void 0};if(d!==void 0)return{formMethod:i,formAction:l,formEncType:s,formData:void 0,json:d,text:void 0}}}function Ic(n,i){return i?{state:"loading",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function hw(n,i){return{state:"submitting",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function Nl(n,i){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function mw(n,i){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i?i.data:void 0}}function La(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function pw(n,i){try{let l=n.sessionStorage.getItem(Cy);if(l){let s=JSON.parse(l);for(let[c,f]of Object.entries(s||{}))f&&Array.isArray(f)&&i.set(c,new Set(f||[]))}}catch{}}function gw(n,i){if(i.size>0){let l={};for(let[s,c]of i)l[s]=[...c];try{n.sessionStorage.setItem(Cy,JSON.stringify(l))}catch(s){Nt(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function Cg(){let n,i,l=new Promise((s,c)=>{n=async f=>{s(f);try{await l}catch{}},i=async f=>{c(f);try{await l}catch{}}});return{promise:l,resolve:n,reject:i}}var Xi=T.createContext(null);Xi.displayName="DataRouter";var Pl=T.createContext(null);Pl.displayName="DataRouterState";var Ly=T.createContext(!1);function yw(){return T.useContext(Ly)}var Hf=T.createContext({isTransitioning:!1});Hf.displayName="ViewTransition";var jy=T.createContext(new Map);jy.displayName="Fetchers";var vw=T.createContext(null);vw.displayName="Await";var Vn=T.createContext(null);Vn.displayName="Navigation";var No=T.createContext(null);No.displayName="Location";var ea=T.createContext({outlet:null,matches:[],isDataRoute:!1});ea.displayName="Route";var Qf=T.createContext(null);Qf.displayName="RouteError";var By="REACT_ROUTER_ERROR",bw="REDIRECT",Sw="ROUTE_ERROR_RESPONSE";function ww(n){if(n.startsWith(`${By}:${bw}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Ew(n){if(n.startsWith(`${By}:${Sw}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Xl(i.status,i.statusText,i.data)}catch{}}function xw(n,{relative:i}={}){je(Zl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:s}=T.useContext(Vn),{hash:c,pathname:f,search:d}=Jl(n,{relative:i}),p=f;return l!=="/"&&(p=f==="/"?l:ua([l,f])),s.createHref({pathname:p,search:d,hash:c})}function Zl(){return T.useContext(No)!=null}function Fi(){return je(Zl(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(No).location}var qy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hy(n){T.useContext(Vn).static||T.useLayoutEffect(n)}function Qy(){let{isDataRoute:n}=T.useContext(ea);return n?qw():Tw()}function Tw(){je(Zl(),"useNavigate() may be used only in the context of a <Router> component.");let n=T.useContext(Xi),{basename:i,navigator:l}=T.useContext(Vn),{matches:s}=T.useContext(ea),{pathname:c}=Fi(),f=JSON.stringify(Uf(s)),d=T.useRef(!1);return Hy(()=>{d.current=!0}),T.useCallback((g,m={})=>{if(Nt(d.current,qy),!d.current)return;if(typeof g=="number"){l.go(g);return}let b=Lf(g,JSON.parse(f),c,m.relative==="path");n==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:ua([i,b.pathname])),(m.replace?l.replace:l.push)(b,m.state,m)},[i,l,f,c,n])}var Rw=T.createContext(null);function _w(n){let i=T.useContext(ea).outlet;return T.useMemo(()=>i&&T.createElement(Rw.Provider,{value:n},i),[i,n])}function Aw(){let{matches:n}=T.useContext(ea),i=n[n.length-1];return i?i.params:{}}function Jl(n,{relative:i}={}){let{matches:l}=T.useContext(ea),{pathname:s}=Fi(),c=JSON.stringify(Uf(l));return T.useMemo(()=>Lf(n,JSON.parse(c),s,i==="path"),[n,c,s,i])}function Cw(n,i,l,s,c){je(Zl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=T.useContext(Vn),{matches:d}=T.useContext(ea),p=d[d.length-1],g=p?p.params:{},m=p?p.pathname:"/",b=p?p.pathnameBase:"/",y=p&&p.route;{let J=y&&y.path||"";Vy(m,!y||J.endsWith("*")||J.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${J}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
9
|
+
`+r.stack}}var Ft=Object.prototype.hasOwnProperty,Si=n.unstable_scheduleCallback,wi=n.unstable_cancelCallback,Qt=n.unstable_shouldYield,ta=n.unstable_requestPaint,mt=n.unstable_now,ma=n.unstable_getCurrentPriorityLevel,na=n.unstable_ImmediatePriority,qa=n.unstable_UserBlockingPriority,Vt=n.unstable_NormalPriority,Wt=n.unstable_LowPriority,_n=n.unstable_IdlePriority,Zi=n.log,Cn=n.unstable_setDisableYieldValue,pa=null,ut=null;function rn(e){if(typeof Zi=="function"&&Cn(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(pa,e)}catch{}}var kt=Math.clz32?Math.clz32:pn,Ji=Math.log,Ei=Math.LN2;function pn(e){return e>>>=0,e===0?32:31-(Ji(e)/Ei|0)|0}var Kn=256,ga=262144,Xn=4194304;function An(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 _e(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var o=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=r&134217727;return v!==0?(r=v&~u,r!==0?o=An(r):(h&=v,h!==0?o=An(h):a||(a=v&~e,a!==0&&(o=An(a))))):(v=r&~u,v!==0?o=An(v):h!==0?o=An(h):a||(a=r&~e,a!==0&&(o=An(a)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:o}function st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wt(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 Et(){var e=Xn;return Xn<<=1,(Xn&62914560)===0&&(Xn=4194304),e}function gn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zt(e,t,a,r,o,u){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,w=e.expirationTimes,N=e.hiddenUpdates;for(a=h&~a;0<a;){var V=31-kt(a),P=1<<V;v[V]=0,w[V]=-1;var k=N[V];if(k!==null)for(N[V]=null,V=0;V<k.length;V++){var L=k[V];L!==null&&(L.lane&=-536870913)}a&=~P}r!==0&&ya(e,r,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function ya(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-kt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function S(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-kt(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}function _(e,t){var a=t&-t;return a=(a&42)!==0?1:z(a),(a&(e.suspendedLanes|t))!==0?0:a}function z(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 I(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function W(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Dp(e.type))}function pe(e,t){var a=F.p;try{return F.p=e,t()}finally{F.p=a}}var ae=Math.random().toString(36).slice(2),ne="__reactFiber$"+ae,ie="__reactProps$"+ae,de="__reactContainer$"+ae,Ee="__reactEvents$"+ae,be="__reactListeners$"+ae,Ze="__reactHandles$"+ae,Ye="__reactResources$"+ae,pt="__reactMarker$"+ae;function yt(e){delete e[ne],delete e[ie],delete e[Ee],delete e[be],delete e[Ze]}function vt(e){var t=e[ne];if(t)return t;for(var a=e.parentNode;a;){if(t=a[de]||a[ne]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=pp(e);e!==null;){if(a=e[ne])return a;e=pp(e)}return t}e=a,a=e.parentNode}return null}function Ge(e){if(e=e[ne]||e[de]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ln(e){var t=e[Ye];return t||(t=e[Ye]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[pt]=!0}var Pn=new Set,yn={};function Fn(e,t){On(e,t),On(e+"Capture",t)}function On(e,t){for(yn[e]=t,e=0;e<t.length;e++)Pn.add(t[e])}var va=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]*$"),xi={},Ti={};function Ke(e){return Ft.call(Ti,e)?!0:Ft.call(xi,e)?!1:va.test(e)?Ti[e]=!0:(xi[e]=!0,!1)}function xt(e,t,a){if(Ke(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Zn(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Yt(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function Xe(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ri(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Il(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,u=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){a=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qr(e){if(!e._valueTracker){var t=Ri(e)?"checked":"value";e._valueTracker=Il(e,t,""+e[t])}}function ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Ri(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function $l(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 Mv=/[\n"\\]/g;function Mn(e){return e.replace(Mv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lo(e,t,a,r,o,u,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xe(t)):e.value!==""+Xe(t)&&(e.value=""+Xe(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?jo(e,h,Xe(t)):a!=null?jo(e,h,Xe(a)):r!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Xe(v):e.removeAttribute("name")}function td(e,t,a,r,o,u,h,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Qr(e);return}a=a!=null?""+Xe(a):"",t=t!=null?""+Xe(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=v?e.checked:!!r,e.defaultChecked=!!r,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Qr(e)}function jo(e,t,a){t==="number"&&$l(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ii(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Xe(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function nd(e,t,a){if(t!=null&&(t=""+Xe(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Xe(a):""}function ad(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(s(92));if(we(r)){if(1<r.length)throw Error(s(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=Xe(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),Qr(e)}function $i(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Dv=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 id(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||Dv.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function rd(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&a[o]!==r&&id(e,o,r)}else for(var u in t)t.hasOwnProperty(u)&&id(e,u,t[u])}function Bo(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 Nv=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"]]),kv=/^[\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 Wl(e){return kv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ba(){}var qo=null;function Ho(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wi=null,er=null;function ld(e){var t=Ge(e);if(t&&(e=t.stateNode)){var a=e[ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Mn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=r[ie]||null;if(!o)throw Error(s(90));Lo(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&ed(r)}break e;case"textarea":nd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ii(e,!!a.multiple,t,!1)}}}var Qo=!1;function sd(e,t,a){if(Qo)return e(t,a);Qo=!0;try{var r=e(t);return r}finally{if(Qo=!1,(Wi!==null||er!==null)&&(Hs(),Wi&&(t=Wi,e=er,er=Wi=null,ld(t),e)))for(t=0;t<e.length;t++)ld(e[t])}}function Vr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[ie]||null;if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vo=!1;if(Sa)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){Vo=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Vo=!1}var Ha=null,Yo=null,es=null;function od(){if(es)return es;var e,t=Yo,a=t.length,r,o="value"in Ha?Ha.value:Ha.textContent,u=o.length;for(e=0;e<a&&t[e]===o[e];e++);var h=a-e;for(r=1;r<=h&&t[a-r]===o[u-r];r++);return es=o.slice(e,1<r?1-r:void 0)}function ts(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ns(){return!0}function ud(){return!1}function sn(e){function t(a,r,o,u,h){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ns:ud,this.isPropagationStopped=ud,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ns)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),t}var _i={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},as=sn(_i),Gr=y({},_i,{view:0,detail:0}),zv=sn(Gr),Go,Ko,Kr,is=y({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Po,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!==Kr&&(Kr&&e.type==="mousemove"?(Go=e.screenX-Kr.screenX,Ko=e.screenY-Kr.screenY):Ko=Go=0,Kr=e),Go)},movementY:function(e){return"movementY"in e?e.movementY:Ko}}),cd=sn(is),Uv=y({},is,{dataTransfer:0}),Lv=sn(Uv),jv=y({},Gr,{relatedTarget:0}),Xo=sn(jv),Bv=y({},_i,{animationName:0,elapsedTime:0,pseudoElement:0}),qv=sn(Bv),Hv=y({},_i,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qv=sn(Hv),Vv=y({},_i,{data:0}),fd=sn(Vv),Yv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gv={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 Xv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kv[e])?!!t[e]:!1}function Po(){return Xv}var Pv=y({},Gr,{key:function(e){if(e.key){var t=Yv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Gv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Po,charCode:function(e){return e.type==="keypress"?ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fv=sn(Pv),Zv=y({},is,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dd=sn(Zv),Jv=y({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Po}),Iv=sn(Jv),$v=y({},_i,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wv=sn($v),e0=y({},is,{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}),t0=sn(e0),n0=y({},_i,{newState:0,oldState:0}),a0=sn(n0),i0=[9,13,27,32],Fo=Sa&&"CompositionEvent"in window,Xr=null;Sa&&"documentMode"in document&&(Xr=document.documentMode);var r0=Sa&&"TextEvent"in window&&!Xr,hd=Sa&&(!Fo||Xr&&8<Xr&&11>=Xr),md=" ",pd=!1;function gd(e,t){switch(e){case"keyup":return i0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function l0(e,t){switch(e){case"compositionend":return yd(t);case"keypress":return t.which!==32?null:(pd=!0,md);case"textInput":return e=t.data,e===md&&pd?null:e;default:return null}}function s0(e,t){if(tr)return e==="compositionend"||!Fo&&gd(e,t)?(e=od(),es=Yo=Ha=null,tr=!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 hd&&t.locale!=="ko"?null:t.data;default:return null}}var o0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!o0[e.type]:t==="textarea"}function bd(e,t,a,r){Wi?er?er.push(r):er=[r]:Wi=r,t=Ps(t,"onChange"),0<t.length&&(a=new as("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Pr=null,Fr=null;function u0(e){tp(e,0)}function rs(e){var t=jt(e);if(ed(t))return e}function Sd(e,t){if(e==="change")return t}var wd=!1;if(Sa){var Zo;if(Sa){var Jo="oninput"in document;if(!Jo){var Ed=document.createElement("div");Ed.setAttribute("oninput","return;"),Jo=typeof Ed.oninput=="function"}Zo=Jo}else Zo=!1;wd=Zo&&(!document.documentMode||9<document.documentMode)}function xd(){Pr&&(Pr.detachEvent("onpropertychange",Td),Fr=Pr=null)}function Td(e){if(e.propertyName==="value"&&rs(Fr)){var t=[];bd(t,Fr,e,Ho(e)),sd(u0,t)}}function c0(e,t,a){e==="focusin"?(xd(),Pr=t,Fr=a,Pr.attachEvent("onpropertychange",Td)):e==="focusout"&&xd()}function f0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rs(Fr)}function d0(e,t){if(e==="click")return rs(t)}function h0(e,t){if(e==="input"||e==="change")return rs(t)}function m0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vn=typeof Object.is=="function"?Object.is:m0;function Zr(e,t){if(vn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!Ft.call(t,o)||!vn(e[o],t[o]))return!1}return!0}function Rd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _d(e,t){var a=Rd(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Rd(a)}}function Cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ad(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$l(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=$l(e.document)}return t}function Io(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 p0=Sa&&"documentMode"in document&&11>=document.documentMode,nr=null,$o=null,Jr=null,Wo=!1;function Od(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Wo||nr==null||nr!==$l(r)||(r=nr,"selectionStart"in r&&Io(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jr&&Zr(Jr,r)||(Jr=r,r=Ps($o,"onSelect"),0<r.length&&(t=new as("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=nr)))}function Ci(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ar={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionrun:Ci("Transition","TransitionRun"),transitionstart:Ci("Transition","TransitionStart"),transitioncancel:Ci("Transition","TransitionCancel"),transitionend:Ci("Transition","TransitionEnd")},eu={},Md={};Sa&&(Md=document.createElement("div").style,"AnimationEvent"in window||(delete ar.animationend.animation,delete ar.animationiteration.animation,delete ar.animationstart.animation),"TransitionEvent"in window||delete ar.transitionend.transition);function Ai(e){if(eu[e])return eu[e];if(!ar[e])return e;var t=ar[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Md)return eu[e]=t[a];return e}var Dd=Ai("animationend"),Nd=Ai("animationiteration"),kd=Ai("animationstart"),g0=Ai("transitionrun"),y0=Ai("transitionstart"),v0=Ai("transitioncancel"),zd=Ai("transitionend"),Ud=new Map,tu="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(" ");tu.push("scrollEnd");function Jn(e,t){Ud.set(e,t),Fn(t,[e])}var ls=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)},Dn=[],ir=0,nu=0;function ss(){for(var e=ir,t=nu=ir=0;t<e;){var a=Dn[t];Dn[t++]=null;var r=Dn[t];Dn[t++]=null;var o=Dn[t];Dn[t++]=null;var u=Dn[t];if(Dn[t++]=null,r!==null&&o!==null){var h=r.pending;h===null?o.next=o:(o.next=h.next,h.next=o),r.pending=o}u!==0&&Ld(a,o,u)}}function os(e,t,a,r){Dn[ir++]=e,Dn[ir++]=t,Dn[ir++]=a,Dn[ir++]=r,nu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function au(e,t,a,r){return os(e,t,a,r),us(e)}function Oi(e,t){return os(e,null,null,t),us(e)}function Ld(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var o=!1,u=e.return;u!==null;)u.childLanes|=a,r=u.alternate,r!==null&&(r.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-kt(a),e=u.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=a|536870912),u):null}function us(e){if(50<vl)throw vl=0,dc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var rr={};function b0(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(e,t,a,r){return new b0(e,t,a,r)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wa(e,t){var a=e.alternate;return a===null?(a=bn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function jd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cs(e,t,a,r,o,u){var h=0;if(r=e,typeof e=="function")iu(e)&&(h=1);else if(typeof e=="string")h=Tb(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case oe:return e=bn(31,a,t,o),e.elementType=oe,e.lanes=u,e;case j:return Mi(a.children,o,u,t);case K:h=8,o|=24;break;case G:return e=bn(12,a,t,o|2),e.elementType=G,e.lanes=u,e;case he:return e=bn(13,a,t,o),e.elementType=he,e.lanes=u,e;case me:return e=bn(19,a,t,o),e.elementType=me,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:h=10;break e;case J:h=9;break e;case ye:h=11;break e;case C:h=14;break e;case Y:h=16,r=null;break e}h=29,a=Error(s(130,e===null?"null":typeof e,"")),r=null}return t=bn(h,a,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function Mi(e,t,a,r){return e=bn(7,e,r,t),e.lanes=a,e}function ru(e,t,a){return e=bn(6,e,null,t),e.lanes=a,e}function Bd(e){var t=bn(18,null,null,0);return t.stateNode=e,t}function lu(e,t,a){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qd=new WeakMap;function Nn(e,t){if(typeof e=="object"&&e!==null){var a=qd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:bi(t)},qd.set(e,t),t)}return{value:e,source:t,stack:bi(t)}}var lr=[],sr=0,fs=null,Ir=0,kn=[],zn=0,Qa=null,aa=1,ia="";function Ea(e,t){lr[sr++]=Ir,lr[sr++]=fs,fs=e,Ir=t}function Hd(e,t,a){kn[zn++]=aa,kn[zn++]=ia,kn[zn++]=Qa,Qa=e;var r=aa;e=ia;var o=32-kt(r)-1;r&=~(1<<o),a+=1;var u=32-kt(t)+o;if(30<u){var h=o-o%5;u=(r&(1<<h)-1).toString(32),r>>=h,o-=h,aa=1<<32-kt(t)+o|a<<o|r,ia=u+e}else aa=1<<u|a<<o|r,ia=e}function su(e){e.return!==null&&(Ea(e,1),Hd(e,1,0))}function ou(e){for(;e===fs;)fs=lr[--sr],lr[sr]=null,Ir=lr[--sr],lr[sr]=null;for(;e===Qa;)Qa=kn[--zn],kn[zn]=null,ia=kn[--zn],kn[zn]=null,aa=kn[--zn],kn[zn]=null}function Qd(e,t){kn[zn++]=aa,kn[zn++]=ia,kn[zn++]=Qa,aa=t.id,ia=t.overflow,Qa=e}var Gt=null,ct=null,Pe=!1,Va=null,Un=!1,uu=Error(s(519));function Ya(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $r(Nn(t,e)),uu}function Vd(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[ne]=e,t[ie]=r,a){case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":case"embed":qe("load",t);break;case"video":case"audio":for(a=0;a<Sl.length;a++)qe(Sl[a],t);break;case"source":qe("error",t);break;case"img":case"image":case"link":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"input":qe("invalid",t),td(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":qe("invalid",t);break;case"textarea":qe("invalid",t),ad(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||rp(t.textContent,a)?(r.popover!=null&&(qe("beforetoggle",t),qe("toggle",t)),r.onScroll!=null&&qe("scroll",t),r.onScrollEnd!=null&&qe("scrollend",t),r.onClick!=null&&(t.onclick=ba),t=!0):t=!1,t||Ya(e,!0)}function Yd(e){for(Gt=e.return;Gt;)switch(Gt.tag){case 5:case 31:case 13:Un=!1;return;case 27:case 3:Un=!0;return;default:Gt=Gt.return}}function or(e){if(e!==Gt)return!1;if(!Pe)return Yd(e),Pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Cc(e.type,e.memoizedProps)),a=!a),a&&ct&&Ya(e),Yd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ct=mp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ct=mp(e)}else t===27?(t=ct,ai(e.type)?(e=Nc,Nc=null,ct=e):ct=t):ct=Gt?jn(e.stateNode.nextSibling):null;return!0}function Di(){ct=Gt=null,Pe=!1}function cu(){var e=Va;return e!==null&&(fn===null?fn=e:fn.push.apply(fn,e),Va=null),e}function $r(e){Va===null?Va=[e]:Va.push(e)}var fu=x(null),Ni=null,xa=null;function Ga(e,t,a){B(fu,t._currentValue),t._currentValue=a}function Ta(e){e._currentValue=fu.current,H(fu)}function du(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function hu(e,t,a,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var h=o.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=o;for(var w=0;w<t.length;w++)if(v.context===t[w]){u.lanes|=a,v=u.alternate,v!==null&&(v.lanes|=a),du(u.return,a,e),r||(h=null);break e}u=v.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=a,u=h.alternate,u!==null&&(u.lanes|=a),du(h,a,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function ur(e,t,a,r){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var v=o.type;vn(o.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(o===ce.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Rl):e=[Rl])}o=o.return}e!==null&&hu(t,e,a,r),t.flags|=262144}function ds(e){for(e=e.firstContext;e!==null;){if(!vn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ki(e){Ni=e,xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Kt(e){return Gd(Ni,e)}function hs(e,t){return Ni===null&&ki(e),Gd(e,t)}function Gd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},xa===null){if(e===null)throw Error(s(308));xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xa=xa.next=t;return a}var S0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},w0=n.unstable_scheduleCallback,E0=n.unstable_NormalPriority,Ct={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mu(){return{controller:new S0,data:new Map,refCount:0}}function Wr(e){e.refCount--,e.refCount===0&&w0(E0,function(){e.controller.abort()})}var el=null,pu=0,cr=0,fr=null;function x0(e,t){if(el===null){var a=el=[];pu=0,cr=vc(),fr={status:"pending",value:void 0,then:function(r){a.push(r)}}}return pu++,t.then(Kd,Kd),t}function Kd(){if(--pu===0&&el!==null){fr!==null&&(fr.status="fulfilled");var e=el;el=null,cr=0,fr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function T0(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),r}var Xd=A.S;A.S=function(e,t){Om=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&x0(e,t),Xd!==null&&Xd(e,t)};var zi=x(null);function gu(){var e=zi.current;return e!==null?e:rt.pooledCache}function ms(e,t){t===null?B(zi,zi.current):B(zi,t.pool)}function Pd(){var e=gu();return e===null?null:{parent:Ct._currentValue,pool:e}}var dr=Error(s(460)),yu=Error(s(474)),ps=Error(s(542)),gs={then:function(){}};function Fd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ba,ba),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Id(e),e;default:if(typeof t.status=="string")t.then(ba,ba);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Id(e),e}throw Li=t,dr}}function Ui(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Li=a,dr):a}}var Li=null;function Jd(){if(Li===null)throw Error(s(459));var e=Li;return Li=null,e}function Id(e){if(e===dr||e===ps)throw Error(s(483))}var hr=null,tl=0;function ys(e){var t=tl;return tl+=1,hr===null&&(hr=[]),Zd(hr,e,t)}function nl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vs(e,t){throw t.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $d(e){function t(O,R){if(e){var D=O.deletions;D===null?(O.deletions=[R],O.flags|=16):D.push(R)}}function a(O,R){if(!e)return null;for(;R!==null;)t(O,R),R=R.sibling;return null}function r(O){for(var R=new Map;O!==null;)O.key!==null?R.set(O.key,O):R.set(O.index,O),O=O.sibling;return R}function o(O,R){return O=wa(O,R),O.index=0,O.sibling=null,O}function u(O,R,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<R?(O.flags|=67108866,R):D):(O.flags|=67108866,R)):(O.flags|=1048576,R)}function h(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function v(O,R,D,X){return R===null||R.tag!==6?(R=ru(D,O.mode,X),R.return=O,R):(R=o(R,D),R.return=O,R)}function w(O,R,D,X){var Se=D.type;return Se===j?V(O,R,D.props.children,X,D.key):R!==null&&(R.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===Y&&Ui(Se)===R.type)?(R=o(R,D.props),nl(R,D),R.return=O,R):(R=cs(D.type,D.key,D.props,null,O.mode,X),nl(R,D),R.return=O,R)}function N(O,R,D,X){return R===null||R.tag!==4||R.stateNode.containerInfo!==D.containerInfo||R.stateNode.implementation!==D.implementation?(R=lu(D,O.mode,X),R.return=O,R):(R=o(R,D.children||[]),R.return=O,R)}function V(O,R,D,X,Se){return R===null||R.tag!==7?(R=Mi(D,O.mode,X,Se),R.return=O,R):(R=o(R,D),R.return=O,R)}function P(O,R,D){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=ru(""+R,O.mode,D),R.return=O,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return D=cs(R.type,R.key,R.props,null,O.mode,D),nl(D,R),D.return=O,D;case U:return R=lu(R,O.mode,D),R.return=O,R;case Y:return R=Ui(R),P(O,R,D)}if(we(R)||Te(R))return R=Mi(R,O.mode,D,null),R.return=O,R;if(typeof R.then=="function")return P(O,ys(R),D);if(R.$$typeof===$)return P(O,hs(O,R),D);vs(O,R)}return null}function k(O,R,D,X){var Se=R!==null?R.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return Se!==null?null:v(O,R,""+D,X);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case M:return D.key===Se?w(O,R,D,X):null;case U:return D.key===Se?N(O,R,D,X):null;case Y:return D=Ui(D),k(O,R,D,X)}if(we(D)||Te(D))return Se!==null?null:V(O,R,D,X,null);if(typeof D.then=="function")return k(O,R,ys(D),X);if(D.$$typeof===$)return k(O,R,hs(O,D),X);vs(O,D)}return null}function L(O,R,D,X,Se){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return O=O.get(D)||null,v(R,O,""+X,Se);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case M:return O=O.get(X.key===null?D:X.key)||null,w(R,O,X,Se);case U:return O=O.get(X.key===null?D:X.key)||null,N(R,O,X,Se);case Y:return X=Ui(X),L(O,R,D,X,Se)}if(we(X)||Te(X))return O=O.get(D)||null,V(R,O,X,Se,null);if(typeof X.then=="function")return L(O,R,D,ys(X),Se);if(X.$$typeof===$)return L(O,R,D,hs(R,X),Se);vs(R,X)}return null}function re(O,R,D,X){for(var Se=null,Ie=null,fe=R,ke=R=0,Qe=null;fe!==null&&ke<D.length;ke++){fe.index>ke?(Qe=fe,fe=null):Qe=fe.sibling;var $e=k(O,fe,D[ke],X);if($e===null){fe===null&&(fe=Qe);break}e&&fe&&$e.alternate===null&&t(O,fe),R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e,fe=Qe}if(ke===D.length)return a(O,fe),Pe&&Ea(O,ke),Se;if(fe===null){for(;ke<D.length;ke++)fe=P(O,D[ke],X),fe!==null&&(R=u(fe,R,ke),Ie===null?Se=fe:Ie.sibling=fe,Ie=fe);return Pe&&Ea(O,ke),Se}for(fe=r(fe);ke<D.length;ke++)Qe=L(fe,O,ke,D[ke],X),Qe!==null&&(e&&Qe.alternate!==null&&fe.delete(Qe.key===null?ke:Qe.key),R=u(Qe,R,ke),Ie===null?Se=Qe:Ie.sibling=Qe,Ie=Qe);return e&&fe.forEach(function(oi){return t(O,oi)}),Pe&&Ea(O,ke),Se}function xe(O,R,D,X){if(D==null)throw Error(s(151));for(var Se=null,Ie=null,fe=R,ke=R=0,Qe=null,$e=D.next();fe!==null&&!$e.done;ke++,$e=D.next()){fe.index>ke?(Qe=fe,fe=null):Qe=fe.sibling;var oi=k(O,fe,$e.value,X);if(oi===null){fe===null&&(fe=Qe);break}e&&fe&&oi.alternate===null&&t(O,fe),R=u(oi,R,ke),Ie===null?Se=oi:Ie.sibling=oi,Ie=oi,fe=Qe}if($e.done)return a(O,fe),Pe&&Ea(O,ke),Se;if(fe===null){for(;!$e.done;ke++,$e=D.next())$e=P(O,$e.value,X),$e!==null&&(R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e);return Pe&&Ea(O,ke),Se}for(fe=r(fe);!$e.done;ke++,$e=D.next())$e=L(fe,O,ke,$e.value,X),$e!==null&&(e&&$e.alternate!==null&&fe.delete($e.key===null?ke:$e.key),R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e);return e&&fe.forEach(function(Ub){return t(O,Ub)}),Pe&&Ea(O,ke),Se}function it(O,R,D,X){if(typeof D=="object"&&D!==null&&D.type===j&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case M:e:{for(var Se=D.key;R!==null;){if(R.key===Se){if(Se=D.type,Se===j){if(R.tag===7){a(O,R.sibling),X=o(R,D.props.children),X.return=O,O=X;break e}}else if(R.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===Y&&Ui(Se)===R.type){a(O,R.sibling),X=o(R,D.props),nl(X,D),X.return=O,O=X;break e}a(O,R);break}else t(O,R);R=R.sibling}D.type===j?(X=Mi(D.props.children,O.mode,X,D.key),X.return=O,O=X):(X=cs(D.type,D.key,D.props,null,O.mode,X),nl(X,D),X.return=O,O=X)}return h(O);case U:e:{for(Se=D.key;R!==null;){if(R.key===Se)if(R.tag===4&&R.stateNode.containerInfo===D.containerInfo&&R.stateNode.implementation===D.implementation){a(O,R.sibling),X=o(R,D.children||[]),X.return=O,O=X;break e}else{a(O,R);break}else t(O,R);R=R.sibling}X=lu(D,O.mode,X),X.return=O,O=X}return h(O);case Y:return D=Ui(D),it(O,R,D,X)}if(we(D))return re(O,R,D,X);if(Te(D)){if(Se=Te(D),typeof Se!="function")throw Error(s(150));return D=Se.call(D),xe(O,R,D,X)}if(typeof D.then=="function")return it(O,R,ys(D),X);if(D.$$typeof===$)return it(O,R,hs(O,D),X);vs(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,R!==null&&R.tag===6?(a(O,R.sibling),X=o(R,D),X.return=O,O=X):(a(O,R),X=ru(D,O.mode,X),X.return=O,O=X),h(O)):a(O,R)}return function(O,R,D,X){try{tl=0;var Se=it(O,R,D,X);return hr=null,Se}catch(fe){if(fe===dr||fe===ps)throw fe;var Ie=bn(29,fe,null,O.mode);return Ie.lanes=X,Ie.return=O,Ie}}}var ji=$d(!0),Wd=$d(!1),Ka=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(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 Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(We&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=us(e),Ld(e,null,a),t}return os(e,r,t,a),us(e)}function al(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,S(e,a)}}function Su(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?o=u=h:u=u.next=h,a=a.next}while(a!==null);u===null?o=u=t:u=u.next=t}else o=u=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var wu=!1;function il(){if(wu){var e=fr;if(e!==null)throw e}}function rl(e,t,a,r){wu=!1;var o=e.updateQueue;Ka=!1;var u=o.firstBaseUpdate,h=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var w=v,N=w.next;w.next=null,h===null?u=N:h.next=N,h=w;var V=e.alternate;V!==null&&(V=V.updateQueue,v=V.lastBaseUpdate,v!==h&&(v===null?V.firstBaseUpdate=N:v.next=N,V.lastBaseUpdate=w))}if(u!==null){var P=o.baseState;h=0,V=N=w=null,v=u;do{var k=v.lane&-536870913,L=k!==v.lane;if(L?(He&k)===k:(r&k)===k){k!==0&&k===cr&&(wu=!0),V!==null&&(V=V.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var re=e,xe=v;k=t;var it=a;switch(xe.tag){case 1:if(re=xe.payload,typeof re=="function"){P=re.call(it,P,k);break e}P=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=xe.payload,k=typeof re=="function"?re.call(it,P,k):re,k==null)break e;P=y({},P,k);break e;case 2:Ka=!0}}k=v.callback,k!==null&&(e.flags|=64,L&&(e.flags|=8192),L=o.callbacks,L===null?o.callbacks=[k]:L.push(k))}else L={lane:k,tag:v.tag,payload:v.payload,callback:v.callback,next:null},V===null?(N=V=L,w=P):V=V.next=L,h|=k;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;L=v,v=L.next,L.next=null,o.lastBaseUpdate=L,o.shared.pending=null}}while(!0);V===null&&(w=P),o.baseState=w,o.firstBaseUpdate=N,o.lastBaseUpdate=V,u===null&&(o.shared.lanes=0),$a|=h,e.lanes=h,e.memoizedState=P}}function eh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function th(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)eh(a[e],t)}var mr=x(null),bs=x(0);function nh(e,t){e=ka,B(bs,e),B(mr,t),ka=e|t.baseLanes}function Eu(){B(bs,ka),B(mr,mr.current)}function xu(){ka=bs.current,H(mr),H(bs)}var Sn=x(null),Ln=null;function Fa(e){var t=e.alternate;B(Tt,Tt.current&1),B(Sn,e),Ln===null&&(t===null||mr.current!==null||t.memoizedState!==null)&&(Ln=e)}function Tu(e){B(Tt,Tt.current),B(Sn,e),Ln===null&&(Ln=e)}function ah(e){e.tag===22?(B(Tt,Tt.current),B(Sn,e),Ln===null&&(Ln=e)):Za()}function Za(){B(Tt,Tt.current),B(Sn,Sn.current)}function wn(e){H(Sn),Ln===e&&(Ln=null),H(Tt)}var Tt=x(0);function Ss(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Mc(a)||Dc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ra=0,De=null,nt=null,At=null,ws=!1,pr=!1,Bi=!1,Es=0,ll=0,gr=null,R0=0;function bt(){throw Error(s(321))}function Ru(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!vn(e[a],t[a]))return!1;return!0}function _u(e,t,a,r,o,u){return Ra=u,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Hh:Qu,Bi=!1,u=a(r,o),Bi=!1,pr&&(u=rh(t,a,r,o)),ih(e),u}function ih(e){A.H=ul;var t=nt!==null&&nt.next!==null;if(Ra=0,At=nt=De=null,ws=!1,ll=0,gr=null,t)throw Error(s(300));e===null||Ot||(e=e.dependencies,e!==null&&ds(e)&&(Ot=!0))}function rh(e,t,a,r){De=e;var o=0;do{if(pr&&(gr=null),ll=0,pr=!1,25<=o)throw Error(s(301));if(o+=1,At=nt=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}A.H=Qh,u=t(a,r)}while(pr);return u}function _0(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?sl(t):t,e=e.useState()[0],(nt!==null?nt.memoizedState:null)!==e&&(De.flags|=1024),t}function Cu(){var e=Es!==0;return Es=0,e}function Au(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ou(e){if(ws){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ws=!1}Ra=0,At=nt=De=null,pr=!1,ll=Es=0,gr=null}function en(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?De.memoizedState=At=e:At=At.next=e,At}function Rt(){if(nt===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=At===null?De.memoizedState:At.next;if(t!==null)At=t,nt=e;else{if(e===null)throw De.alternate===null?Error(s(467)):Error(s(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},At===null?De.memoizedState=At=e:At=At.next=e}return At}function xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(e){var t=ll;return ll+=1,gr===null&&(gr=[]),e=Zd(gr,e,t),t=De,(At===null?t.memoizedState:At.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Hh:Qu),e}function Ts(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return sl(e);if(e.$$typeof===$)return Kt(e)}throw Error(s(438,String(e)))}function Mu(e){var t=null,a=De.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=De.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=xs(),De.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=Ae;return t.index++,a}function _a(e,t){return typeof t=="function"?t(e):t}function Rs(e){var t=Rt();return Du(t,nt,e)}function Du(e,t,a){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=a;var o=e.baseQueue,u=r.pending;if(u!==null){if(o!==null){var h=o.next;o.next=u.next,u.next=h}t.baseQueue=o=u,r.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var v=h=null,w=null,N=t,V=!1;do{var P=N.lane&-536870913;if(P!==N.lane?(He&P)===P:(Ra&P)===P){var k=N.revertLane;if(k===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),P===cr&&(V=!0);else if((Ra&k)===k){N=N.next,k===cr&&(V=!0);continue}else P={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(v=w=P,h=u):w=w.next=P,De.lanes|=k,$a|=k;P=N.action,Bi&&a(u,P),u=N.hasEagerState?N.eagerState:a(u,P)}else k={lane:P,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(v=w=k,h=u):w=w.next=k,De.lanes|=P,$a|=P;N=N.next}while(N!==null&&N!==t);if(w===null?h=u:w.next=v,!vn(u,e.memoizedState)&&(Ot=!0,V&&(a=fr,a!==null)))throw a;e.memoizedState=u,e.baseState=h,e.baseQueue=w,r.lastRenderedState=u}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Nu(e){var t=Rt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,u=t.memoizedState;if(o!==null){a.pending=null;var h=o=o.next;do u=e(u,h.action),h=h.next;while(h!==o);vn(u,t.memoizedState)||(Ot=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,r]}function lh(e,t,a){var r=De,o=Rt(),u=Pe;if(u){if(a===void 0)throw Error(s(407));a=a()}else a=t();var h=!vn((nt||o).memoizedState,a);if(h&&(o.memoizedState=a,Ot=!0),o=o.queue,Uu(uh.bind(null,r,o,e),[e]),o.getSnapshot!==t||h||At!==null&&At.memoizedState.tag&1){if(r.flags|=2048,yr(9,{destroy:void 0},oh.bind(null,r,o,a,t),null),rt===null)throw Error(s(349));u||(Ra&127)!==0||sh(r,t,a)}return a}function sh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=De.updateQueue,t===null?(t=xs(),De.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function oh(e,t,a,r){t.value=a,t.getSnapshot=r,ch(t)&&fh(e)}function uh(e,t,a){return a(function(){ch(t)&&fh(e)})}function ch(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!vn(e,a)}catch{return!0}}function fh(e){var t=Oi(e,2);t!==null&&dn(t,e,2)}function ku(e){var t=en();if(typeof e=="function"){var a=e;if(e=a(),Bi){rn(!0);try{a()}finally{rn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t}function dh(e,t,a,r){return e.baseState=a,Du(e,nt,typeof r=="function"?r:_a)}function C0(e,t,a,r,o){if(As(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};A.T!==null?a(!0):u.isTransition=!1,r(u),a=t.pending,a===null?(u.next=t.pending=u,hh(t,u)):(u.next=a.next,t.pending=a.next=u)}}function hh(e,t){var a=t.action,r=t.payload,o=e.state;if(t.isTransition){var u=A.T,h={};A.T=h;try{var v=a(o,r),w=A.S;w!==null&&w(h,v),mh(e,t,v)}catch(N){zu(e,t,N)}finally{u!==null&&h.types!==null&&(u.types=h.types),A.T=u}}else try{u=a(o,r),mh(e,t,u)}catch(N){zu(e,t,N)}}function mh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){ph(e,t,r)},function(r){return zu(e,t,r)}):ph(e,t,a)}function ph(e,t,a){t.status="fulfilled",t.value=a,gh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,hh(e,a)))}function zu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,gh(t),t=t.next;while(t!==r)}e.action=null}function gh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yh(e,t){return t}function vh(e,t){if(Pe){var a=rt.formState;if(a!==null){e:{var r=De;if(Pe){if(ct){t:{for(var o=ct,u=Un;o.nodeType!==8;){if(!u){o=null;break t}if(o=jn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){ct=jn(o.nextSibling),r=o.data==="F!";break e}}Ya(r)}r=!1}r&&(t=a[0])}}return a=en(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yh,lastRenderedState:t},a.queue=r,a=jh.bind(null,De,r),r.dispatch=a,r=ku(!1),u=Hu.bind(null,De,!1,r.queue),r=en(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,a=C0.bind(null,De,o,u,a),o.dispatch=a,r.memoizedState=e,[t,a,!1]}function bh(e){var t=Rt();return Sh(t,nt,e)}function Sh(e,t,a){if(t=Du(e,t,yh)[0],e=Rs(_a)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=sl(t)}catch(h){throw h===dr?ps:h}else r=t;t=Rt();var o=t.queue,u=o.dispatch;return a!==t.memoizedState&&(De.flags|=2048,yr(9,{destroy:void 0},A0.bind(null,o,a),null)),[r,u,e]}function A0(e,t){e.action=t}function wh(e){var t=Rt(),a=nt;if(a!==null)return Sh(t,a,e);Rt(),t=t.memoizedState,a=Rt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function yr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=De.updateQueue,t===null&&(t=xs(),De.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function Eh(){return Rt().memoizedState}function _s(e,t,a,r){var o=en();De.flags|=e,o.memoizedState=yr(1|t,{destroy:void 0},a,r===void 0?null:r)}function Cs(e,t,a,r){var o=Rt();r=r===void 0?null:r;var u=o.memoizedState.inst;nt!==null&&r!==null&&Ru(r,nt.memoizedState.deps)?o.memoizedState=yr(t,u,a,r):(De.flags|=e,o.memoizedState=yr(1|t,u,a,r))}function xh(e,t){_s(8390656,8,e,t)}function Uu(e,t){Cs(2048,8,e,t)}function O0(e){De.flags|=4;var t=De.updateQueue;if(t===null)t=xs(),De.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Th(e){var t=Rt().memoizedState;return O0({ref:t,nextImpl:e}),function(){if((We&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Rh(e,t){return Cs(4,2,e,t)}function _h(e,t){return Cs(4,4,e,t)}function Ch(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ah(e,t,a){a=a!=null?a.concat([e]):null,Cs(4,4,Ch.bind(null,t,e),a)}function Lu(){}function Oh(e,t){var a=Rt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&Ru(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Mh(e,t){var a=Rt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&Ru(t,r[1]))return r[0];if(r=e(),Bi){rn(!0);try{e()}finally{rn(!1)}}return a.memoizedState=[r,t],r}function ju(e,t,a){return a===void 0||(Ra&1073741824)!==0&&(He&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Dm(),De.lanes|=e,$a|=e,a)}function Dh(e,t,a,r){return vn(a,t)?a:mr.current!==null?(e=ju(e,a,r),vn(e,t)||(Ot=!0),e):(Ra&42)===0||(Ra&1073741824)!==0&&(He&261930)===0?(Ot=!0,e.memoizedState=a):(e=Dm(),De.lanes|=e,$a|=e,t)}function Nh(e,t,a,r,o){var u=F.p;F.p=u!==0&&8>u?u:8;var h=A.T,v={};A.T=v,Hu(e,!1,t,a);try{var w=o(),N=A.S;if(N!==null&&N(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var V=T0(w,r);ol(e,t,V,Tn(e))}else ol(e,t,r,Tn(e))}catch(P){ol(e,t,{then:function(){},status:"rejected",reason:P},Tn())}finally{F.p=u,h!==null&&v.types!==null&&(h.types=v.types),A.T=h}}function M0(){}function Bu(e,t,a,r){if(e.tag!==5)throw Error(s(476));var o=kh(e).queue;Nh(e,o,t,q,a===null?M0:function(){return zh(e),a(r)})}function kh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:q},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zh(e){var t=kh(e);t.next===null&&(t=e.alternate.memoizedState),ol(e,t.next.queue,{},Tn())}function qu(){return Kt(Rl)}function Uh(){return Rt().memoizedState}function Lh(){return Rt().memoizedState}function D0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Tn();e=Xa(a);var r=Pa(t,e,a);r!==null&&(dn(r,t,a),al(r,t,a)),t={cache:mu()},e.payload=t;return}t=t.return}}function N0(e,t,a){var r=Tn();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},As(e)?Bh(t,a):(a=au(e,t,a,r),a!==null&&(dn(a,e,r),qh(a,t,r)))}function jh(e,t,a){var r=Tn();ol(e,t,a,r)}function ol(e,t,a,r){var o={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(As(e))Bh(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,v=u(h,a);if(o.hasEagerState=!0,o.eagerState=v,vn(v,h))return os(e,t,o,0),rt===null&&ss(),!1}catch{}if(a=au(e,t,o,r),a!==null)return dn(a,e,r),qh(a,t,r),!0}return!1}function Hu(e,t,a,r){if(r={lane:2,revertLane:vc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},As(e)){if(t)throw Error(s(479))}else t=au(e,a,r,2),t!==null&&dn(t,e,2)}function As(e){var t=e.alternate;return e===De||t!==null&&t===De}function Bh(e,t){pr=ws=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function qh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,S(e,a)}}var ul={readContext:Kt,use:Ts,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt};ul.useEffectEvent=bt;var Hh={readContext:Kt,use:Ts,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:xh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,_s(4194308,4,Ch.bind(null,t,e),a)},useLayoutEffect:function(e,t){return _s(4194308,4,e,t)},useInsertionEffect:function(e,t){_s(4,2,e,t)},useMemo:function(e,t){var a=en();t=t===void 0?null:t;var r=e();if(Bi){rn(!0);try{e()}finally{rn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=en();if(a!==void 0){var o=a(t);if(Bi){rn(!0);try{a(t)}finally{rn(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=N0.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:function(e){e=ku(e);var t=e.queue,a=jh.bind(null,De,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Lu,useDeferredValue:function(e,t){var a=en();return ju(a,e,t)},useTransition:function(){var e=ku(!1);return e=Nh.bind(null,De,e.queue,!0,!1),en().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=De,o=en();if(Pe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),rt===null)throw Error(s(349));(He&127)!==0||sh(r,t,a)}o.memoizedState=a;var u={value:a,getSnapshot:t};return o.queue=u,xh(uh.bind(null,r,u,e),[e]),r.flags|=2048,yr(9,{destroy:void 0},oh.bind(null,r,u,a,t),null),a},useId:function(){var e=en(),t=rt.identifierPrefix;if(Pe){var a=ia,r=aa;a=(r&~(1<<32-kt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Es++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=R0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qu,useFormState:vh,useActionState:vh,useOptimistic:function(e){var t=en();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Hu.bind(null,De,!0,a),a.dispatch=t,[e,t]},useMemoCache:Mu,useCacheRefresh:function(){return en().memoizedState=D0.bind(null,De)},useEffectEvent:function(e){var t=en(),a={impl:e};return t.memoizedState=a,function(){if((We&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Qu={readContext:Kt,use:Ts,useCallback:Oh,useContext:Kt,useEffect:Uu,useImperativeHandle:Ah,useInsertionEffect:Rh,useLayoutEffect:_h,useMemo:Mh,useReducer:Rs,useRef:Eh,useState:function(){return Rs(_a)},useDebugValue:Lu,useDeferredValue:function(e,t){var a=Rt();return Dh(a,nt.memoizedState,e,t)},useTransition:function(){var e=Rs(_a)[0],t=Rt().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:lh,useId:Uh,useHostTransitionStatus:qu,useFormState:bh,useActionState:bh,useOptimistic:function(e,t){var a=Rt();return dh(a,nt,e,t)},useMemoCache:Mu,useCacheRefresh:Lh};Qu.useEffectEvent=Th;var Qh={readContext:Kt,use:Ts,useCallback:Oh,useContext:Kt,useEffect:Uu,useImperativeHandle:Ah,useInsertionEffect:Rh,useLayoutEffect:_h,useMemo:Mh,useReducer:Nu,useRef:Eh,useState:function(){return Nu(_a)},useDebugValue:Lu,useDeferredValue:function(e,t){var a=Rt();return nt===null?ju(a,e,t):Dh(a,nt.memoizedState,e,t)},useTransition:function(){var e=Nu(_a)[0],t=Rt().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:lh,useId:Uh,useHostTransitionStatus:qu,useFormState:wh,useActionState:wh,useOptimistic:function(e,t){var a=Rt();return nt!==null?dh(a,nt,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Mu,useCacheRefresh:Lh};Qh.useEffectEvent=Th;function Vu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Yu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Tn(),o=Xa(r);o.payload=t,a!=null&&(o.callback=a),t=Pa(e,o,r),t!==null&&(dn(t,e,r),al(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Tn(),o=Xa(r);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Pa(e,o,r),t!==null&&(dn(t,e,r),al(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Tn(),r=Xa(a);r.tag=2,t!=null&&(r.callback=t),t=Pa(e,r,a),t!==null&&(dn(t,e,a),al(t,e,a))}};function Vh(e,t,a,r,o,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,h):t.prototype&&t.prototype.isPureReactComponent?!Zr(a,r)||!Zr(o,u):!0}function Yh(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Yu.enqueueReplaceState(t,t.state,null)}function qi(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Gh(e){ls(e)}function Kh(e){console.error(e)}function Xh(e){ls(e)}function Os(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Ph(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Gu(e,t,a){return a=Xa(a),a.tag=3,a.payload={element:null},a.callback=function(){Os(e,t)},a}function Fh(e){return e=Xa(e),e.tag=3,e}function Zh(e,t,a,r){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var u=r.value;e.payload=function(){return o(u)},e.callback=function(){Ph(t,a,r)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Ph(t,a,r),typeof o!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var v=r.stack;this.componentDidCatch(r.value,{componentStack:v!==null?v:""})})}function k0(e,t,a,r,o){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&ur(t,a,o,!0),a=Sn.current,a!==null){switch(a.tag){case 31:case 13:return Ln===null?Qs():a.alternate===null&&St===0&&(St=3),a.flags&=-257,a.flags|=65536,a.lanes=o,r===gs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),pc(e,r,o)),!1;case 22:return a.flags|=65536,r===gs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),pc(e,r,o)),!1}throw Error(s(435,a.tag))}return pc(e,r,o),Qs(),!1}if(Pe)return t=Sn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==uu&&(e=Error(s(422),{cause:r}),$r(Nn(e,a)))):(r!==uu&&(t=Error(s(423),{cause:r}),$r(Nn(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Nn(r,a),o=Gu(e.stateNode,r,o),Su(e,o),St!==4&&(St=2)),!1;var u=Error(s(520),{cause:r});if(u=Nn(u,a),yl===null?yl=[u]:yl.push(u),St!==4&&(St=2),t===null)return!0;r=Nn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Gu(a.stateNode,r,e),Su(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wa===null||!Wa.has(u))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Fh(o),Zh(o,e,a,r),Su(a,o),!1}a=a.return}while(a!==null);return!1}var Ku=Error(s(461)),Ot=!1;function Xt(e,t,a,r){t.child=e===null?Wd(t,null,a,r):ji(t,e.child,a,r)}function Jh(e,t,a,r,o){a=a.render;var u=t.ref;if("ref"in r){var h={};for(var v in r)v!=="ref"&&(h[v]=r[v])}else h=r;return ki(t),r=_u(e,t,a,h,u,o),v=Cu(),e!==null&&!Ot?(Au(e,t,o),Ca(e,t,o)):(Pe&&v&&su(t),t.flags|=1,Xt(e,t,r,o),t.child)}function Ih(e,t,a,r,o){if(e===null){var u=a.type;return typeof u=="function"&&!iu(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,$h(e,t,u,r,o)):(e=cs(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Wu(e,o)){var h=u.memoizedProps;if(a=a.compare,a=a!==null?a:Zr,a(h,r)&&e.ref===t.ref)return Ca(e,t,o)}return t.flags|=1,e=wa(u,r),e.ref=t.ref,e.return=t,t.child=e}function $h(e,t,a,r,o){if(e!==null){var u=e.memoizedProps;if(Zr(u,r)&&e.ref===t.ref)if(Ot=!1,t.pendingProps=r=u,Wu(e,o))(e.flags&131072)!==0&&(Ot=!0);else return t.lanes=e.lanes,Ca(e,t,o)}return Xu(e,t,a,r,o)}function Wh(e,t,a,r){var o=r.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~u}else r=0,t.child=null;return em(e,t,u,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ms(t,u!==null?u.cachePool:null),u!==null?nh(t,u):Eu(),ah(t);else return r=t.lanes=536870912,em(e,t,u!==null?u.baseLanes|a:a,a,r)}else u!==null?(ms(t,u.cachePool),nh(t,u),Za(),t.memoizedState=null):(e!==null&&ms(t,null),Eu(),Za());return Xt(e,t,o,a),t.child}function cl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function em(e,t,a,r,o){var u=gu();return u=u===null?null:{parent:Ct._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&ms(t,null),Eu(),ah(t),e!==null&&ur(e,t,r,!0),t.childLanes=o,null}function Ms(e,t){return t=Ns({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tm(e,t,a){return ji(t,e.child,null,a),e=Ms(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function z0(e,t,a){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Pe){if(r.mode==="hidden")return e=Ms(t,r),t.lanes=536870912,cl(null,e);if(Tu(t),(e=ct)?(e=hp(e,Un),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:aa,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},a=Bd(e),a.return=t,t.child=a,Gt=t,ct=null)):e=null,e===null)throw Ya(t);return t.lanes=536870912,null}return Ms(t,r)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if(Tu(t),o)if(t.flags&256)t.flags&=-257,t=tm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ot||ur(e,t,a,!1),o=(a&e.childLanes)!==0,Ot||o){if(r=rt,r!==null&&(h=_(r,a),h!==0&&h!==u.retryLane))throw u.retryLane=h,Oi(e,h),dn(r,e,h),Ku;Qs(),t=tm(e,t,a)}else e=u.treeContext,ct=jn(h.nextSibling),Gt=t,Pe=!0,Va=null,Un=!1,e!==null&&Qd(t,e),t=Ms(t,r),t.flags|=4096;return t}return e=wa(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ds(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Xu(e,t,a,r,o){return ki(t),a=_u(e,t,a,r,void 0,o),r=Cu(),e!==null&&!Ot?(Au(e,t,o),Ca(e,t,o)):(Pe&&r&&su(t),t.flags|=1,Xt(e,t,a,o),t.child)}function nm(e,t,a,r,o,u){return ki(t),t.updateQueue=null,a=rh(t,r,a,o),ih(e),r=Cu(),e!==null&&!Ot?(Au(e,t,u),Ca(e,t,u)):(Pe&&r&&su(t),t.flags|=1,Xt(e,t,a,u),t.child)}function am(e,t,a,r,o){if(ki(t),t.stateNode===null){var u=rr,h=a.contextType;typeof h=="object"&&h!==null&&(u=Kt(h)),u=new a(r,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Yu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=r,u.state=t.memoizedState,u.refs={},vu(t),h=a.contextType,u.context=typeof h=="object"&&h!==null?Kt(h):rr,u.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(Vu(t,a,h,r),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&Yu.enqueueReplaceState(u,u.state,null),rl(t,r,u,o),il(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,w=qi(a,v);u.props=w;var N=u.context,V=a.contextType;h=rr,typeof V=="object"&&V!==null&&(h=Kt(V));var P=a.getDerivedStateFromProps;V=typeof P=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,V||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||N!==h)&&Yh(t,u,r,h),Ka=!1;var k=t.memoizedState;u.state=k,rl(t,r,u,o),il(),N=t.memoizedState,v||k!==N||Ka?(typeof P=="function"&&(Vu(t,a,P,r),N=t.memoizedState),(w=Ka||Vh(t,a,w,r,k,N,h))?(V||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=r,t.memoizedState=N),u.props=r,u.state=N,u.context=h,r=w):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,bu(e,t),h=t.memoizedProps,V=qi(a,h),u.props=V,P=t.pendingProps,k=u.context,N=a.contextType,w=rr,typeof N=="object"&&N!==null&&(w=Kt(N)),v=a.getDerivedStateFromProps,(N=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==P||k!==w)&&Yh(t,u,r,w),Ka=!1,k=t.memoizedState,u.state=k,rl(t,r,u,o),il();var L=t.memoizedState;h!==P||k!==L||Ka||e!==null&&e.dependencies!==null&&ds(e.dependencies)?(typeof v=="function"&&(Vu(t,a,v,r),L=t.memoizedState),(V=Ka||Vh(t,a,V,r,k,L,w)||e!==null&&e.dependencies!==null&&ds(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,L,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,L,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=L),u.props=r,u.state=L,u.context=w,r=V):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),r=!1)}return u=r,Ds(e,t),r=(t.flags&128)!==0,u||r?(u=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&r?(t.child=ji(t,e.child,null,o),t.child=ji(t,null,a,o)):Xt(e,t,a,o),t.memoizedState=u.state,e=t.child):e=Ca(e,t,o),e}function im(e,t,a,r){return Di(),t.flags|=256,Xt(e,t,a,r),t.child}var Pu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fu(e){return{baseLanes:e,cachePool:Pd()}}function Zu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=xn),e}function rm(e,t,a){var r=t.pendingProps,o=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(Tt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Pe){if(o?Fa(t):Za(),(e=ct)?(e=hp(e,Un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:aa,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},a=Bd(e),a.return=t,t.child=a,Gt=t,ct=null)):e=null,e===null)throw Ya(t);return Dc(e)?t.lanes=32:t.lanes=536870912,null}var v=r.children;return r=r.fallback,o?(Za(),o=t.mode,v=Ns({mode:"hidden",children:v},o),r=Mi(r,o,a,null),v.return=t,r.return=t,v.sibling=r,t.child=v,r=t.child,r.memoizedState=Fu(a),r.childLanes=Zu(e,h,a),t.memoizedState=Pu,cl(null,r)):(Fa(t),Ju(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(u)t.flags&256?(Fa(t),t.flags&=-257,t=Iu(e,t,a)):t.memoizedState!==null?(Za(),t.child=e.child,t.flags|=128,t=null):(Za(),v=r.fallback,o=t.mode,r=Ns({mode:"visible",children:r.children},o),v=Mi(v,o,a,null),v.flags|=2,r.return=t,v.return=t,r.sibling=v,t.child=r,ji(t,e.child,null,a),r=t.child,r.memoizedState=Fu(a),r.childLanes=Zu(e,h,a),t.memoizedState=Pu,t=cl(null,r));else if(Fa(t),Dc(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var N=h.dgst;h=N,r=Error(s(419)),r.stack="",r.digest=h,$r({value:r,source:null,stack:null}),t=Iu(e,t,a)}else if(Ot||ur(e,t,a,!1),h=(a&e.childLanes)!==0,Ot||h){if(h=rt,h!==null&&(r=_(h,a),r!==0&&r!==w.retryLane))throw w.retryLane=r,Oi(e,r),dn(h,e,r),Ku;Mc(v)||Qs(),t=Iu(e,t,a)}else Mc(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,ct=jn(v.nextSibling),Gt=t,Pe=!0,Va=null,Un=!1,e!==null&&Qd(t,e),t=Ju(t,r.children),t.flags|=4096);return t}return o?(Za(),v=r.fallback,o=t.mode,w=e.child,N=w.sibling,r=wa(w,{mode:"hidden",children:r.children}),r.subtreeFlags=w.subtreeFlags&65011712,N!==null?v=wa(N,v):(v=Mi(v,o,a,null),v.flags|=2),v.return=t,r.return=t,r.sibling=v,t.child=r,cl(null,r),r=t.child,v=e.child.memoizedState,v===null?v=Fu(a):(o=v.cachePool,o!==null?(w=Ct._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Pd(),v={baseLanes:v.baseLanes|a,cachePool:o}),r.memoizedState=v,r.childLanes=Zu(e,h,a),t.memoizedState=Pu,cl(e.child,r)):(Fa(t),a=e.child,e=a.sibling,a=wa(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function Ju(e,t){return t=Ns({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ns(e,t){return e=bn(22,e,null,t),e.lanes=0,e}function Iu(e,t,a){return ji(t,e.child,null,a),e=Ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lm(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),du(e.return,t,a)}function $u(e,t,a,r,o,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o,treeForkCount:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=r,h.tail=a,h.tailMode=o,h.treeForkCount=u)}function sm(e,t,a){var r=t.pendingProps,o=r.revealOrder,u=r.tail;r=r.children;var h=Tt.current,v=(h&2)!==0;if(v?(h=h&1|2,t.flags|=128):h&=1,B(Tt,h),Xt(e,t,r,a),r=Pe?Ir:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lm(e,a,t);else if(e.tag===19)lm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ss(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),$u(t,!1,o,a,u,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ss(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}$u(t,!0,a,null,u,r);break;case"together":$u(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ca(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),$a|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ur(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=wa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=wa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Wu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ds(e)))}function U0(e,t,a){switch(t.tag){case 3:Re(t,t.stateNode.containerInfo),Ga(t,Ct,e.memoizedState.cache),Di();break;case 27:case 5:Ht(t);break;case 4:Re(t,t.stateNode.containerInfo);break;case 10:Ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Tu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Fa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?rm(e,t,a):(Fa(t),e=Ca(e,t,a),e!==null?e.sibling:null);Fa(t);break;case 19:var o=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(ur(e,t,a,!1),r=(a&t.childLanes)!==0),o){if(r)return sm(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Tt,Tt.current),r)break;return null;case 22:return t.lanes=0,Wh(e,t,a,t.pendingProps);case 24:Ga(t,Ct,e.memoizedState.cache)}return Ca(e,t,a)}function om(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ot=!0;else{if(!Wu(e,a)&&(t.flags&128)===0)return Ot=!1,U0(e,t,a);Ot=(e.flags&131072)!==0}else Ot=!1,Pe&&(t.flags&1048576)!==0&&Hd(t,Ir,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Ui(t.elementType),t.type=e,typeof e=="function")iu(e)?(r=qi(e,r),t.tag=1,t=am(null,t,e,r,a)):(t.tag=0,t=Xu(null,t,e,r,a));else{if(e!=null){var o=e.$$typeof;if(o===ye){t.tag=11,t=Jh(null,t,e,r,a);break e}else if(o===C){t.tag=14,t=Ih(null,t,e,r,a);break e}}throw t=Le(e)||e,Error(s(306,t,""))}}return t;case 0:return Xu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,o=qi(r,t.pendingProps),am(e,t,r,o,a);case 3:e:{if(Re(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var u=t.memoizedState;o=u.element,bu(e,t),rl(t,r,null,a);var h=t.memoizedState;if(r=h.cache,Ga(t,Ct,r),r!==u.cache&&hu(t,[Ct],a,!0),il(),r=h.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=im(e,t,r,a);break e}else if(r!==o){o=Nn(Error(s(424)),t),$r(o),t=im(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ct=jn(e.firstChild),Gt=t,Pe=!0,Va=null,Un=!0,a=Wd(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Di(),r===o){t=Ca(e,t,a);break e}Xt(e,t,r,a)}t=t.child}return t;case 26:return Ds(e,t),e===null?(a=bp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Pe||(a=t.type,e=t.pendingProps,r=Fs(ue.current).createElement(a),r[ne]=t,r[ie]=e,Pt(r,a,e),dt(r),t.stateNode=r):t.memoizedState=bp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ht(t),e===null&&Pe&&(r=t.stateNode=gp(t.type,t.pendingProps,ue.current),Gt=t,Un=!0,o=ct,ai(t.type)?(Nc=o,ct=jn(r.firstChild)):ct=o),Xt(e,t,t.pendingProps.children,a),Ds(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pe&&((o=r=ct)&&(r=fb(r,t.type,t.pendingProps,Un),r!==null?(t.stateNode=r,Gt=t,ct=jn(r.firstChild),Un=!1,o=!0):o=!1),o||Ya(t)),Ht(t),o=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,r=u.children,Cc(o,u)?r=null:h!==null&&Cc(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=_u(e,t,_0,null,null,a),Rl._currentValue=o),Ds(e,t),Xt(e,t,r,a),t.child;case 6:return e===null&&Pe&&((e=a=ct)&&(a=db(a,t.pendingProps,Un),a!==null?(t.stateNode=a,Gt=t,ct=null,e=!0):e=!1),e||Ya(t)),null;case 13:return rm(e,t,a);case 4:return Re(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ji(t,null,r,a):Xt(e,t,r,a),t.child;case 11:return Jh(e,t,t.type,t.pendingProps,a);case 7:return Xt(e,t,t.pendingProps,a),t.child;case 8:return Xt(e,t,t.pendingProps.children,a),t.child;case 12:return Xt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Ga(t,t.type,r.value),Xt(e,t,r.children,a),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,ki(t),o=Kt(o),r=r(o),t.flags|=1,Xt(e,t,r,a),t.child;case 14:return Ih(e,t,t.type,t.pendingProps,a);case 15:return $h(e,t,t.type,t.pendingProps,a);case 19:return sm(e,t,a);case 31:return z0(e,t,a);case 22:return Wh(e,t,a,t.pendingProps);case 24:return ki(t),r=Kt(Ct),e===null?(o=gu(),o===null&&(o=rt,u=mu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=a),o=u),t.memoizedState={parent:r,cache:o},vu(t),Ga(t,Ct,o)):((e.lanes&a)!==0&&(bu(e,t),rl(t,null,null,a),il()),o=e.memoizedState,u=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ga(t,Ct,r)):(r=u.cache,Ga(t,Ct,r),r!==o.cache&&hu(t,[Ct],a,!0))),Xt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Aa(e){e.flags|=4}function ec(e,t,a,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Um())e.flags|=8192;else throw Li=gs,yu}else e.flags&=-16777217}function um(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tp(t))if(Um())e.flags|=8192;else throw Li=gs,yu}function ks(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Et():536870912,e.lanes|=t,wr|=t)}function fl(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function L0(e,t,a){var r=t.pendingProps;switch(ou(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ta(Ct),Ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(or(t)?Aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cu())),ft(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Aa(t),u!==null?(ft(t),um(t,u)):(ft(t),ec(t,o,null,r,a))):u?u!==e.memoizedState?(Aa(t),ft(t),um(t,u)):(ft(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Aa(t),ft(t),ec(t,o,e,r,a)),null;case 27:if($t(t),a=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return ft(t),null}e=Z.current,or(t)?Vd(t):(e=gp(o,r,a),t.stateNode=e,Aa(t))}return ft(t),null;case 5:if($t(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return ft(t),null}if(u=Z.current,or(t))Vd(t);else{var h=Fs(ue.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof r.is=="string"?h.createElement("select",{is:r.is}):h.createElement("select"),r.multiple?u.multiple=!0:r.size&&(u.size=r.size);break;default:u=typeof r.is=="string"?h.createElement(o,{is:r.is}):h.createElement(o)}}u[ne]=t,u[ie]=r;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=u;e:switch(Pt(u,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Aa(t)}}return ft(t),ec(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,or(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,o=Gt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ne]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||rp(e.nodeValue,a)),e||Ya(t,!0)}else e=Fs(e).createTextNode(r),e[ne]=t,t.stateNode=e}return ft(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=or(t),a!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ne]=t}else Di(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),e=!1}else a=cu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return ft(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=or(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ne]=t}else Di(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),o=!1}else o=cu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==o&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ks(t,t.updateQueue),ft(t),null);case 4:return Ve(),e===null&&Ec(t.stateNode.containerInfo),ft(t),null;case 10:return Ta(t.type),ft(t),null;case 19:if(H(Tt),r=t.memoizedState,r===null)return ft(t),null;if(o=(t.flags&128)!==0,u=r.rendering,u===null)if(o)fl(r,!1);else{if(St!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Ss(e),u!==null){for(t.flags|=128,fl(r,!1),e=u.updateQueue,t.updateQueue=e,ks(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)jd(a,e),a=a.sibling;return B(Tt,Tt.current&1|2),Pe&&Ea(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&mt()>Bs&&(t.flags|=128,o=!0,fl(r,!1),t.lanes=4194304)}else{if(!o)if(e=Ss(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ks(t,e),fl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!u.alternate&&!Pe)return ft(t),null}else 2*mt()-r.renderingStartTime>Bs&&a!==536870912&&(t.flags|=128,o=!0,fl(r,!1),t.lanes=4194304);r.isBackwards?(u.sibling=t.child,t.child=u):(e=r.last,e!==null?e.sibling=u:t.child=u,r.last=u)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=mt(),e.sibling=null,a=Tt.current,B(Tt,o?a&1|2:a&1),Pe&&Ea(t,r.treeForkCount),e):(ft(t),null);case 22:case 23:return wn(t),xu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),a=t.updateQueue,a!==null&&ks(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&H(zi),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ta(Ct),ft(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function j0(e,t){switch(ou(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ta(Ct),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $t(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(s(340));Di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Tt),null;case 4:return Ve(),null;case 10:return Ta(t.type),null;case 22:case 23:return wn(t),xu(),e!==null&&H(zi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ta(Ct),null;case 25:return null;default:return null}}function cm(e,t){switch(ou(t),t.tag){case 3:Ta(Ct),Ve();break;case 26:case 27:case 5:$t(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:H(Tt);break;case 10:Ta(t.type);break;case 22:case 23:wn(t),xu(),e!==null&&H(zi);break;case 24:Ta(Ct)}}function dl(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){r=void 0;var u=a.create,h=a.inst;r=u(),h.destroy=r}a=a.next}while(a!==o)}}catch(v){tt(t,t.return,v)}}function Ja(e,t,a){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var u=o.next;r=u;do{if((r.tag&e)===e){var h=r.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,o=t;var w=a,N=v;try{N()}catch(V){tt(o,w,V)}}}r=r.next}while(r!==u)}}catch(V){tt(t,t.return,V)}}function fm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{th(t,a)}catch(r){tt(e,e.return,r)}}}function dm(e,t,a){a.props=qi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){tt(e,t,r)}}function hl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){tt(e,t,o)}}function ra(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(o){tt(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){tt(e,t,o)}else a.current=null}function hm(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(o){tt(e,e.return,o)}}function tc(e,t,a){try{var r=e.stateNode;rb(r,e.type,a,t),r[ie]=t}catch(o){tt(e,e.return,o)}}function mm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ai(e.type)||e.tag===4}function nc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ai(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 ac(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ba));else if(r!==4&&(r===27&&ai(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ac(e,t,a),e=e.sibling;e!==null;)ac(e,t,a),e=e.sibling}function zs(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&ai(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(zs(e,t,a),e=e.sibling;e!==null;)zs(e,t,a),e=e.sibling}function pm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Pt(t,r,a),t[ne]=e,t[ie]=a}catch(u){tt(e,e.return,u)}}var Oa=!1,Mt=!1,ic=!1,gm=typeof WeakSet=="function"?WeakSet:Set,Bt=null;function B0(e,t){if(e=e.containerInfo,Rc=to,e=Ad(e),Io(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var h=0,v=-1,w=-1,N=0,V=0,P=e,k=null;t:for(;;){for(var L;P!==a||o!==0&&P.nodeType!==3||(v=h+o),P!==u||r!==0&&P.nodeType!==3||(w=h+r),P.nodeType===3&&(h+=P.nodeValue.length),(L=P.firstChild)!==null;)k=P,P=L;for(;;){if(P===e)break t;if(k===a&&++N===o&&(v=h),k===u&&++V===r&&(w=h),(L=P.nextSibling)!==null)break;P=k,k=P.parentNode}P=L}a=v===-1||w===-1?null:{start:v,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(_c={focusedElem:e,selectionRange:a},to=!1,Bt=t;Bt!==null;)if(t=Bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Bt=e;else for(;Bt!==null;){switch(t=Bt,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(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,o=u.memoizedProps,u=u.memoizedState,r=a.stateNode;try{var re=qi(a.type,o);e=r.getSnapshotBeforeUpdate(re,u),r.__reactInternalSnapshotBeforeUpdate=e}catch(xe){tt(a,a.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Oc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Oc(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Bt=e;break}Bt=t.return}}function ym(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Da(e,a),r&4&&dl(5,a);break;case 1:if(Da(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){tt(a,a.return,h)}else{var o=qi(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){tt(a,a.return,h)}}r&64&&fm(a),r&512&&hl(a,a.return);break;case 3:if(Da(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{th(e,t)}catch(h){tt(a,a.return,h)}}break;case 27:t===null&&r&4&&pm(a);case 26:case 5:Da(e,a),t===null&&r&4&&hm(a),r&512&&hl(a,a.return);break;case 12:Da(e,a);break;case 31:Da(e,a),r&4&&Sm(e,a);break;case 13:Da(e,a),r&4&&wm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=P0.bind(null,a),hb(e,a))));break;case 22:if(r=a.memoizedState!==null||Oa,!r){t=t!==null&&t.memoizedState!==null||Mt,o=Oa;var u=Mt;Oa=r,(Mt=t)&&!u?Na(e,a,(a.subtreeFlags&8772)!==0):Da(e,a),Oa=o,Mt=u}break;case 30:break;default:Da(e,a)}}function vm(e){var t=e.alternate;t!==null&&(e.alternate=null,vm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yt(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 ht=null,on=!1;function Ma(e,t,a){for(a=a.child;a!==null;)bm(e,t,a),a=a.sibling}function bm(e,t,a){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(pa,a)}catch{}switch(a.tag){case 26:Mt||ra(a,t),Ma(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Mt||ra(a,t);var r=ht,o=on;ai(a.type)&&(ht=a.stateNode,on=!1),Ma(e,t,a),El(a.stateNode),ht=r,on=o;break;case 5:Mt||ra(a,t);case 6:if(r=ht,o=on,ht=null,Ma(e,t,a),ht=r,on=o,ht!==null)if(on)try{(ht.nodeType===9?ht.body:ht.nodeName==="HTML"?ht.ownerDocument.body:ht).removeChild(a.stateNode)}catch(u){tt(a,t,u)}else try{ht.removeChild(a.stateNode)}catch(u){tt(a,t,u)}break;case 18:ht!==null&&(on?(e=ht,fp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Or(e)):fp(ht,a.stateNode));break;case 4:r=ht,o=on,ht=a.stateNode.containerInfo,on=!0,Ma(e,t,a),ht=r,on=o;break;case 0:case 11:case 14:case 15:Ja(2,a,t),Mt||Ja(4,a,t),Ma(e,t,a);break;case 1:Mt||(ra(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&dm(a,t,r)),Ma(e,t,a);break;case 21:Ma(e,t,a);break;case 22:Mt=(r=Mt)||a.memoizedState!==null,Ma(e,t,a),Mt=r;break;default:Ma(e,t,a)}}function Sm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Or(e)}catch(a){tt(t,t.return,a)}}}function wm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Or(e)}catch(a){tt(t,t.return,a)}}function q0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gm),t;default:throw Error(s(435,e.tag))}}function Us(e,t){var a=q0(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var o=F0.bind(null,e,r);r.then(o,o)}})}function un(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r],u=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 27:if(ai(v.type)){ht=v.stateNode,on=!1;break e}break;case 5:ht=v.stateNode,on=!1;break e;case 3:case 4:ht=v.stateNode.containerInfo,on=!0;break e}v=v.return}if(ht===null)throw Error(s(160));bm(u,h,o),ht=null,on=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Em(t,e),t=t.sibling}var In=null;function Em(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:un(t,e),cn(e),r&4&&(Ja(3,e,e.return),dl(3,e),Ja(5,e,e.return));break;case 1:un(t,e),cn(e),r&512&&(Mt||a===null||ra(a,a.return)),r&64&&Oa&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var o=In;if(un(t,e),cn(e),r&512&&(Mt||a===null||ra(a,a.return)),r&4){var u=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":u=o.getElementsByTagName("title")[0],(!u||u[pt]||u[ne]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(r),o.head.insertBefore(u,o.querySelector("head > title"))),Pt(u,r,a),u[ne]=e,dt(u),r=u;break e;case"link":var h=Ep("link","href",o).get(r+(a.href||""));if(h){for(var v=0;v<h.length;v++)if(u=h[v],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(v,1);break t}}u=o.createElement(r),Pt(u,r,a),o.head.appendChild(u);break;case"meta":if(h=Ep("meta","content",o).get(r+(a.content||""))){for(v=0;v<h.length;v++)if(u=h[v],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(v,1);break t}}u=o.createElement(r),Pt(u,r,a),o.head.appendChild(u);break;default:throw Error(s(468,r))}u[ne]=e,dt(u),r=u}e.stateNode=r}else xp(o,e.type,e.stateNode);else e.stateNode=wp(o,r,e.memoizedProps);else u!==r?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,r===null?xp(o,e.type,e.stateNode):wp(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&tc(e,e.memoizedProps,a.memoizedProps)}break;case 27:un(t,e),cn(e),r&512&&(Mt||a===null||ra(a,a.return)),a!==null&&r&4&&tc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(un(t,e),cn(e),r&512&&(Mt||a===null||ra(a,a.return)),e.flags&32){o=e.stateNode;try{$i(o,"")}catch(re){tt(e,e.return,re)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,tc(e,o,a!==null?a.memoizedProps:o)),r&1024&&(ic=!0);break;case 6:if(un(t,e),cn(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(re){tt(e,e.return,re)}}break;case 3:if(Is=null,o=In,In=Zs(t.containerInfo),un(t,e),In=o,cn(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Or(t.containerInfo)}catch(re){tt(e,e.return,re)}ic&&(ic=!1,xm(e));break;case 4:r=In,In=Zs(e.stateNode.containerInfo),un(t,e),cn(e),In=r;break;case 12:un(t,e),cn(e);break;case 31:un(t,e),cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Us(e,r)));break;case 13:un(t,e),cn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(js=mt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Us(e,r)));break;case 22:o=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,N=Oa,V=Mt;if(Oa=N||o,Mt=V||w,un(t,e),Mt=V,Oa=N,cn(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||w||Oa||Mt||Hi(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(u=w.stateNode,o)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=w.stateNode;var P=w.memoizedProps.style,k=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(re){tt(w,w.return,re)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(re){tt(w,w.return,re)}}}else if(t.tag===18){if(a===null){w=t;try{var L=w.stateNode;o?dp(L,!0):dp(w.stateNode,!1)}catch(re){tt(w,w.return,re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Us(e,a))));break;case 19:un(t,e),cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Us(e,r)));break;case 30:break;case 21:break;default:un(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(mm(r)){a=r;break}r=r.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,u=nc(e);zs(e,u,o);break;case 5:var h=a.stateNode;a.flags&32&&($i(h,""),a.flags&=-33);var v=nc(e);zs(e,v,h);break;case 3:case 4:var w=a.stateNode.containerInfo,N=nc(e);ac(e,N,w);break;default:throw Error(s(161))}}catch(V){tt(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ym(e,t.alternate,t),t=t.sibling}function Hi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ja(4,t,t.return),Hi(t);break;case 1:ra(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&dm(t,t.return,a),Hi(t);break;case 27:El(t.stateNode);case 26:case 5:ra(t,t.return),Hi(t);break;case 22:t.memoizedState===null&&Hi(t);break;case 30:Hi(t);break;default:Hi(t)}e=e.sibling}}function Na(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:Na(o,u,a),dl(4,u);break;case 1:if(Na(o,u,a),r=u,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){tt(r,r.return,N)}if(r=u,o=r.updateQueue,o!==null){var v=r.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)eh(w[o],v)}catch(N){tt(r,r.return,N)}}a&&h&64&&fm(u),hl(u,u.return);break;case 27:pm(u);case 26:case 5:Na(o,u,a),a&&r===null&&h&4&&hm(u),hl(u,u.return);break;case 12:Na(o,u,a);break;case 31:Na(o,u,a),a&&h&4&&Sm(o,u);break;case 13:Na(o,u,a),a&&h&4&&wm(o,u);break;case 22:u.memoizedState===null&&Na(o,u,a),hl(u,u.return);break;case 30:break;default:Na(o,u,a)}t=t.sibling}}function rc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Wr(a))}function lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wr(e))}function $n(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tm(e,t,a,r),t=t.sibling}function Tm(e,t,a,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:$n(e,t,a,r),o&2048&&dl(9,t);break;case 1:$n(e,t,a,r);break;case 3:$n(e,t,a,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wr(e)));break;case 12:if(o&2048){$n(e,t,a,r),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,v=u.onPostCommit;typeof v=="function"&&v(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){tt(t,t.return,w)}}else $n(e,t,a,r);break;case 31:$n(e,t,a,r);break;case 13:$n(e,t,a,r);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?$n(e,t,a,r):ml(e,t):u._visibility&2?$n(e,t,a,r):(u._visibility|=2,vr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&rc(h,t);break;case 24:$n(e,t,a,r),o&2048&&lc(t.alternate,t);break;default:$n(e,t,a,r)}}function vr(e,t,a,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,h=t,v=a,w=r,N=h.flags;switch(h.tag){case 0:case 11:case 15:vr(u,h,v,w,o),dl(8,h);break;case 23:break;case 22:var V=h.stateNode;h.memoizedState!==null?V._visibility&2?vr(u,h,v,w,o):ml(u,h):(V._visibility|=2,vr(u,h,v,w,o)),o&&N&2048&&rc(h.alternate,h);break;case 24:vr(u,h,v,w,o),o&&N&2048&&lc(h.alternate,h);break;default:vr(u,h,v,w,o)}t=t.sibling}}function ml(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,o=r.flags;switch(r.tag){case 22:ml(a,r),o&2048&&rc(r.alternate,r);break;case 24:ml(a,r),o&2048&&lc(r.alternate,r);break;default:ml(a,r)}t=t.sibling}}var pl=8192;function br(e,t,a){if(e.subtreeFlags&pl)for(e=e.child;e!==null;)Rm(e,t,a),e=e.sibling}function Rm(e,t,a){switch(e.tag){case 26:br(e,t,a),e.flags&pl&&e.memoizedState!==null&&Rb(a,In,e.memoizedState,e.memoizedProps);break;case 5:br(e,t,a);break;case 3:case 4:var r=In;In=Zs(e.stateNode.containerInfo),br(e,t,a),In=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=pl,pl=16777216,br(e,t,a),pl=r):br(e,t,a));break;default:br(e,t,a)}}function _m(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 gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Bt=r,Am(r,e)}_m(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cm(e),e=e.sibling}function Cm(e){switch(e.tag){case 0:case 11:case 15:gl(e),e.flags&2048&&Ja(9,e,e.return);break;case 3:gl(e);break;case 12:gl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ls(e)):gl(e);break;default:gl(e)}}function Ls(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Bt=r,Am(r,e)}_m(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ja(8,t,t.return),Ls(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ls(t));break;default:Ls(t)}e=e.sibling}}function Am(e,t){for(;Bt!==null;){var a=Bt;switch(a.tag){case 0:case 11:case 15:Ja(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Wr(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,Bt=r;else e:for(a=e;Bt!==null;){r=Bt;var o=r.sibling,u=r.return;if(vm(r),r===a){Bt=null;break e}if(o!==null){o.return=u,Bt=o;break e}Bt=u}}}var H0={getCacheForType:function(e){var t=Kt(Ct),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Kt(Ct).controller.signal}},Q0=typeof WeakMap=="function"?WeakMap:Map,We=0,rt=null,Be=null,He=0,et=0,En=null,Ia=!1,Sr=!1,sc=!1,ka=0,St=0,$a=0,Qi=0,oc=0,xn=0,wr=0,yl=null,fn=null,uc=!1,js=0,Om=0,Bs=1/0,qs=null,Wa=null,zt=0,ei=null,Er=null,za=0,cc=0,fc=null,Mm=null,vl=0,dc=null;function Tn(){return(We&2)!==0&&He!==0?He&-He:A.T!==null?vc():W()}function Dm(){if(xn===0)if((He&536870912)===0||Pe){var e=ga;ga<<=1,(ga&3932160)===0&&(ga=262144),xn=e}else xn=536870912;return e=Sn.current,e!==null&&(e.flags|=32),xn}function dn(e,t,a){(e===rt&&(et===2||et===9)||e.cancelPendingCommit!==null)&&(xr(e,0),ti(e,He,xn,!1)),ot(e,a),((We&2)===0||e!==rt)&&(e===rt&&((We&2)===0&&(Qi|=a),St===4&&ti(e,He,xn,!1)),la(e))}function Nm(e,t,a){if((We&6)!==0)throw Error(s(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||st(e,t),o=r?G0(e,t):mc(e,t,!0),u=r;do{if(o===0){Sr&&!r&&ti(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!V0(a)){o=mc(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var v=e;o=yl;var w=v.current.memoizedState.isDehydrated;if(w&&(xr(v,h).flags|=256),h=mc(v,h,!1),h!==2){if(sc&&!w){v.errorRecoveryDisabledLanes|=u,Qi|=u,o=4;break e}u=fn,fn=o,u!==null&&(fn===null?fn=u:fn.push.apply(fn,u))}o=h}if(u=!1,o!==2)continue}}if(o===1){xr(e,0),ti(e,t,0,!0);break}e:{switch(r=e,u=o,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:ti(r,t,xn,!Ia);break e;case 2:fn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=js+300-mt(),10<o)){if(ti(r,t,xn,!Ia),_e(r,0,!0)!==0)break e;za=t,r.timeoutHandle=up(km.bind(null,r,a,fn,qs,uc,t,xn,Qi,wr,Ia,u,"Throttled",-0,0),o);break e}km(r,a,fn,qs,uc,t,xn,Qi,wr,Ia,u,null,-0,0)}}break}while(!0);la(e)}function km(e,t,a,r,o,u,h,v,w,N,V,P,k,L){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ba},Rm(t,u,P);var re=(u&62914560)===u?js-mt():(u&4194048)===u?Om-mt():0;if(re=_b(P,re),re!==null){za=u,e.cancelPendingCommit=re(Qm.bind(null,e,t,u,a,r,o,h,v,w,V,P,null,k,L)),ti(e,u,h,!N);return}}Qm(e,t,u,a,r,o,h,v,w)}function V0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var o=a[r],u=o.getSnapshot;o=o.value;try{if(!vn(u(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ti(e,t,a,r){t&=~oc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var u=31-kt(o),h=1<<u;r[u]=-1,o&=~h}a!==0&&ya(e,a,t)}function Hs(){return(We&6)===0?(bl(0),!1):!0}function hc(){if(Be!==null){if(et===0)var e=Be.return;else e=Be,xa=Ni=null,Ou(e),hr=null,tl=0,e=Be;for(;e!==null;)cm(e.alternate,e),e=e.return;Be=null}}function xr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,ob(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),za=0,hc(),rt=e,Be=a=wa(e.current,null),He=t,et=0,En=null,Ia=!1,Sr=st(e,t),sc=!1,wr=xn=oc=Qi=$a=St=0,fn=yl=null,uc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-kt(r),u=1<<o;t|=e[o],r&=~u}return ka=t,ss(),a}function zm(e,t){De=null,A.H=ul,t===dr||t===ps?(t=Jd(),et=3):t===yu?(t=Jd(),et=4):et=t===Ku?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,En=t,Be===null&&(St=1,Os(e,Nn(t,e.current)))}function Um(){var e=Sn.current;return e===null?!0:(He&4194048)===He?Ln===null:(He&62914560)===He||(He&536870912)!==0?e===Ln:!1}function Lm(){var e=A.H;return A.H=ul,e===null?ul:e}function jm(){var e=A.A;return A.A=H0,e}function Qs(){St=4,Ia||(He&4194048)!==He&&Sn.current!==null||(Sr=!0),($a&134217727)===0&&(Qi&134217727)===0||rt===null||ti(rt,He,xn,!1)}function mc(e,t,a){var r=We;We|=2;var o=Lm(),u=jm();(rt!==e||He!==t)&&(qs=null,xr(e,t)),t=!1;var h=St;e:do try{if(et!==0&&Be!==null){var v=Be,w=En;switch(et){case 8:hc(),h=6;break e;case 3:case 2:case 9:case 6:Sn.current===null&&(t=!0);var N=et;if(et=0,En=null,Tr(e,v,w,N),a&&Sr){h=0;break e}break;default:N=et,et=0,En=null,Tr(e,v,w,N)}}Y0(),h=St;break}catch(V){zm(e,V)}while(!0);return t&&e.shellSuspendCounter++,xa=Ni=null,We=r,A.H=o,A.A=u,Be===null&&(rt=null,He=0,ss()),h}function Y0(){for(;Be!==null;)Bm(Be)}function G0(e,t){var a=We;We|=2;var r=Lm(),o=jm();rt!==e||He!==t?(qs=null,Bs=mt()+500,xr(e,t)):Sr=st(e,t);e:do try{if(et!==0&&Be!==null){t=Be;var u=En;t:switch(et){case 1:et=0,En=null,Tr(e,t,u,1);break;case 2:case 9:if(Fd(u)){et=0,En=null,qm(t);break}t=function(){et!==2&&et!==9||rt!==e||(et=7),la(e)},u.then(t,t);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:Fd(u)?(et=0,En=null,qm(t)):(et=0,En=null,Tr(e,t,u,7));break;case 5:var h=null;switch(Be.tag){case 26:h=Be.memoizedState;case 5:case 27:var v=Be;if(h?Tp(h):v.stateNode.complete){et=0,En=null;var w=v.sibling;if(w!==null)Be=w;else{var N=v.return;N!==null?(Be=N,Vs(N)):Be=null}break t}}et=0,En=null,Tr(e,t,u,5);break;case 6:et=0,En=null,Tr(e,t,u,6);break;case 8:hc(),St=6;break e;default:throw Error(s(462))}}K0();break}catch(V){zm(e,V)}while(!0);return xa=Ni=null,A.H=r,A.A=o,We=a,Be!==null?0:(rt=null,He=0,ss(),St)}function K0(){for(;Be!==null&&!Qt();)Bm(Be)}function Bm(e){var t=om(e.alternate,e,ka);e.memoizedProps=e.pendingProps,t===null?Vs(e):Be=t}function qm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=nm(a,t,t.pendingProps,t.type,void 0,He);break;case 11:t=nm(a,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:Ou(t);default:cm(a,t),t=Be=jd(t,ka),t=om(a,t,ka)}e.memoizedProps=e.pendingProps,t===null?Vs(e):Be=t}function Tr(e,t,a,r){xa=Ni=null,Ou(t),hr=null,tl=0;var o=t.return;try{if(k0(e,o,t,a,He)){St=1,Os(e,Nn(a,e.current)),Be=null;return}}catch(u){if(o!==null)throw Be=o,u;St=1,Os(e,Nn(a,e.current)),Be=null;return}t.flags&32768?(Pe||r===1?e=!0:Sr||(He&536870912)!==0?e=!1:(Ia=e=!0,(r===2||r===9||r===3||r===6)&&(r=Sn.current,r!==null&&r.tag===13&&(r.flags|=16384))),Hm(t,e)):Vs(t)}function Vs(e){var t=e;do{if((t.flags&32768)!==0){Hm(t,Ia);return}e=t.return;var a=L0(t.alternate,t,ka);if(a!==null){Be=a;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);St===0&&(St=5)}function Hm(e,t){do{var a=j0(e.alternate,e);if(a!==null){a.flags&=32767,Be=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Be=e;return}Be=e=a}while(e!==null);St=6,Be=null}function Qm(e,t,a,r,o,u,h,v,w){e.cancelPendingCommit=null;do Ys();while(zt!==0);if((We&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=nu,Zt(e,a,u,h,v,w),e===rt&&(Be=rt=null,He=0),Er=t,ei=e,za=a,cc=u,fc=o,Mm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Z0(Vt,function(){return Xm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=A.T,A.T=null,o=F.p,F.p=2,h=We,We|=4;try{B0(e,t,a)}finally{We=h,F.p=o,A.T=r}}zt=1,Vm(),Ym(),Gm()}}function Vm(){if(zt===1){zt=0;var e=ei,t=Er,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=A.T,A.T=null;var r=F.p;F.p=2;var o=We;We|=4;try{Em(t,e);var u=_c,h=Ad(e.containerInfo),v=u.focusedElem,w=u.selectionRange;if(h!==v&&v&&v.ownerDocument&&Cd(v.ownerDocument.documentElement,v)){if(w!==null&&Io(v)){var N=w.start,V=w.end;if(V===void 0&&(V=N),"selectionStart"in v)v.selectionStart=N,v.selectionEnd=Math.min(V,v.value.length);else{var P=v.ownerDocument||document,k=P&&P.defaultView||window;if(k.getSelection){var L=k.getSelection(),re=v.textContent.length,xe=Math.min(w.start,re),it=w.end===void 0?xe:Math.min(w.end,re);!L.extend&&xe>it&&(h=it,it=xe,xe=h);var O=_d(v,xe),R=_d(v,it);if(O&&R&&(L.rangeCount!==1||L.anchorNode!==O.node||L.anchorOffset!==O.offset||L.focusNode!==R.node||L.focusOffset!==R.offset)){var D=P.createRange();D.setStart(O.node,O.offset),L.removeAllRanges(),xe>it?(L.addRange(D),L.extend(R.node,R.offset)):(D.setEnd(R.node,R.offset),L.addRange(D))}}}}for(P=[],L=v;L=L.parentNode;)L.nodeType===1&&P.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var X=P[v];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}to=!!Rc,_c=Rc=null}finally{We=o,F.p=r,A.T=a}}e.current=t,zt=2}}function Ym(){if(zt===2){zt=0;var e=ei,t=Er,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=A.T,A.T=null;var r=F.p;F.p=2;var o=We;We|=4;try{ym(e,t.alternate,t)}finally{We=o,F.p=r,A.T=a}}zt=3}}function Gm(){if(zt===4||zt===3){zt=0,ta();var e=ei,t=Er,a=za,r=Mm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?zt=5:(zt=0,Er=ei=null,Km(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Wa=null),I(a),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(pa,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=A.T,o=F.p,F.p=2,A.T=null;try{for(var u=e.onRecoverableError,h=0;h<r.length;h++){var v=r[h];u(v.value,{componentStack:v.stack})}}finally{A.T=t,F.p=o}}(za&3)!==0&&Ys(),la(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===dc?vl++:(vl=0,dc=e):vl=0,bl(0)}}function Km(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wr(t)))}function Ys(){return Vm(),Ym(),Gm(),Xm()}function Xm(){if(zt!==5)return!1;var e=ei,t=cc;cc=0;var a=I(za),r=A.T,o=F.p;try{F.p=32>a?32:a,A.T=null,a=fc,fc=null;var u=ei,h=za;if(zt=0,Er=ei=null,za=0,(We&6)!==0)throw Error(s(331));var v=We;if(We|=4,Cm(u.current),Tm(u,u.current,h,a),We=v,bl(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(pa,u)}catch{}return!0}finally{F.p=o,A.T=r,Km(e,t)}}function Pm(e,t,a){t=Nn(a,t),t=Gu(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(ot(e,2),la(e))}function tt(e,t,a){if(e.tag===3)Pm(e,e,a);else for(;t!==null;){if(t.tag===3){Pm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wa===null||!Wa.has(r))){e=Nn(a,e),a=Fh(2),r=Pa(t,a,2),r!==null&&(Zh(a,r,t,e),ot(r,2),la(r));break}}t=t.return}}function pc(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new Q0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(sc=!0,o.add(a),e=X0.bind(null,e,t,a),t.then(e,e))}function X0(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,rt===e&&(He&a)===a&&(St===4||St===3&&(He&62914560)===He&&300>mt()-js?(We&2)===0&&xr(e,0):oc|=a,wr===He&&(wr=0)),la(e)}function Fm(e,t){t===0&&(t=Et()),e=Oi(e,t),e!==null&&(ot(e,t),la(e))}function P0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Fm(e,a)}function F0(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Fm(e,a)}function Z0(e,t){return Si(e,t)}var Gs=null,Rr=null,gc=!1,Ks=!1,yc=!1,ni=0;function la(e){e!==Rr&&e.next===null&&(Rr===null?Gs=Rr=e:Rr=Rr.next=e),Ks=!0,gc||(gc=!0,I0())}function bl(e,t){if(!yc&&Ks){yc=!0;do for(var a=!1,r=Gs;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var u=0;else{var h=r.suspendedLanes,v=r.pingedLanes;u=(1<<31-kt(42|e)+1)-1,u&=o&~(h&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,$m(r,u))}else u=He,u=_e(r,r===rt?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(u&3)===0||st(r,u)||(a=!0,$m(r,u));r=r.next}while(a);yc=!1}}function J0(){Zm()}function Zm(){Ks=gc=!1;var e=0;ni!==0&&sb()&&(e=ni);for(var t=mt(),a=null,r=Gs;r!==null;){var o=r.next,u=Jm(r,t);u===0?(r.next=null,a===null?Gs=o:a.next=o,o===null&&(Rr=a)):(a=r,(e!==0||(u&3)!==0)&&(Ks=!0)),r=o}zt!==0&&zt!==5||bl(e),ni!==0&&(ni=0)}function Jm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-kt(u),v=1<<h,w=o[h];w===-1?((v&a)===0||(v&r)!==0)&&(o[h]=wt(v,t)):w<=t&&(e.expiredLanes|=v),u&=~v}if(t=rt,a=He,a=_e(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(et===2||et===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&wi(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||st(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&wi(r),I(a)){case 2:case 8:a=qa;break;case 32:a=Vt;break;case 268435456:a=_n;break;default:a=Vt}return r=Im.bind(null,e),a=Si(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&wi(r),e.callbackPriority=2,e.callbackNode=null,2}function Im(e,t){if(zt!==0&&zt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ys()&&e.callbackNode!==a)return null;var r=He;return r=_e(e,e===rt?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Nm(e,r,t),Jm(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Im.bind(null,e):null)}function $m(e,t){if(Ys())return null;Nm(e,t,!0)}function I0(){ub(function(){(We&6)!==0?Si(na,J0):Zm()})}function vc(){if(ni===0){var e=cr;e===0&&(e=Kn,Kn<<=1,(Kn&261888)===0&&(Kn=256)),ni=e}return ni}function Wm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wl(""+e)}function ep(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function $0(e,t,a,r,o){if(t==="submit"&&a&&a.stateNode===o){var u=Wm((o[ie]||null).action),h=r.submitter;h&&(t=(t=h[ie]||null)?Wm(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var v=new as("action","action",null,r,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ni!==0){var w=h?ep(o,h):new FormData(o);Bu(a,{pending:!0,data:w,method:o.method,action:u},null,w)}}else typeof u=="function"&&(v.preventDefault(),w=h?ep(o,h):new FormData(o),Bu(a,{pending:!0,data:w,method:o.method,action:u},u,w))},currentTarget:o}]})}}for(var bc=0;bc<tu.length;bc++){var Sc=tu[bc],W0=Sc.toLowerCase(),eb=Sc[0].toUpperCase()+Sc.slice(1);Jn(W0,"on"+eb)}Jn(Dd,"onAnimationEnd"),Jn(Nd,"onAnimationIteration"),Jn(kd,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(g0,"onTransitionRun"),Jn(y0,"onTransitionStart"),Jn(v0,"onTransitionCancel"),Jn(zd,"onTransitionEnd"),On("onMouseEnter",["mouseout","mouseover"]),On("onMouseLeave",["mouseout","mouseover"]),On("onPointerEnter",["pointerout","pointerover"]),On("onPointerLeave",["pointerout","pointerover"]),Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sl="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(" "),tb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sl));function tp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var h=r.length-1;0<=h;h--){var v=r[h],w=v.instance,N=v.currentTarget;if(v=v.listener,w!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=N;try{u(o)}catch(V){ls(V)}o.currentTarget=null,u=w}else for(h=0;h<r.length;h++){if(v=r[h],w=v.instance,N=v.currentTarget,v=v.listener,w!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=N;try{u(o)}catch(V){ls(V)}o.currentTarget=null,u=w}}}}function qe(e,t){var a=t[Ee];a===void 0&&(a=t[Ee]=new Set);var r=e+"__bubble";a.has(r)||(np(t,e,2,!1),a.add(r))}function wc(e,t,a){var r=0;t&&(r|=4),np(a,e,r,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function Ec(e){if(!e[Xs]){e[Xs]=!0,Pn.forEach(function(a){a!=="selectionchange"&&(tb.has(a)||wc(a,!1,e),wc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,wc("selectionchange",!1,t))}}function np(e,t,a,r){switch(Dp(t)){case 2:var o=Ob;break;case 8:o=Mb;break;default:o=jc}a=o.bind(null,t,a,e),o=void 0,!Vo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function xc(e,t,a,r,o){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var h=r.tag;if(h===3||h===4){var v=r.stateNode.containerInfo;if(v===o)break;if(h===4)for(h=r.return;h!==null;){var w=h.tag;if((w===3||w===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;v!==null;){if(h=vt(v),h===null)return;if(w=h.tag,w===5||w===6||w===26||w===27){r=u=h;continue e}v=v.parentNode}}r=r.return}sd(function(){var N=u,V=Ho(a),P=[];e:{var k=Ud.get(e);if(k!==void 0){var L=as,re=e;switch(e){case"keypress":if(ts(a)===0)break e;case"keydown":case"keyup":L=Fv;break;case"focusin":re="focus",L=Xo;break;case"focusout":re="blur",L=Xo;break;case"beforeblur":case"afterblur":L=Xo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Lv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Iv;break;case Dd:case Nd:case kd:L=qv;break;case zd:L=Wv;break;case"scroll":case"scrollend":L=zv;break;case"wheel":L=t0;break;case"copy":case"cut":case"paste":L=Qv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=dd;break;case"toggle":case"beforetoggle":L=a0}var xe=(t&4)!==0,it=!xe&&(e==="scroll"||e==="scrollend"),O=xe?k!==null?k+"Capture":null:k;xe=[];for(var R=N,D;R!==null;){var X=R;if(D=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||D===null||O===null||(X=Vr(R,O),X!=null&&xe.push(wl(R,X,D))),it)break;R=R.return}0<xe.length&&(k=new L(k,re,null,a,V),P.push({event:k,listeners:xe}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",k&&a!==qo&&(re=a.relatedTarget||a.fromElement)&&(vt(re)||re[de]))break e;if((L||k)&&(k=V.window===V?V:(k=V.ownerDocument)?k.defaultView||k.parentWindow:window,L?(re=a.relatedTarget||a.toElement,L=N,re=re?vt(re):null,re!==null&&(it=f(re),xe=re.tag,re!==it||xe!==5&&xe!==27&&xe!==6)&&(re=null)):(L=null,re=N),L!==re)){if(xe=cd,X="onMouseLeave",O="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(xe=dd,X="onPointerLeave",O="onPointerEnter",R="pointer"),it=L==null?k:jt(L),D=re==null?k:jt(re),k=new xe(X,R+"leave",L,a,V),k.target=it,k.relatedTarget=D,X=null,vt(V)===N&&(xe=new xe(O,R+"enter",re,a,V),xe.target=D,xe.relatedTarget=it,X=xe),it=X,L&&re)t:{for(xe=nb,O=L,R=re,D=0,X=O;X;X=xe(X))D++;X=0;for(var Se=R;Se;Se=xe(Se))X++;for(;0<D-X;)O=xe(O),D--;for(;0<X-D;)R=xe(R),X--;for(;D--;){if(O===R||R!==null&&O===R.alternate){xe=O;break t}O=xe(O),R=xe(R)}xe=null}else xe=null;L!==null&&ap(P,k,L,xe,!1),re!==null&&it!==null&&ap(P,it,re,xe,!0)}}e:{if(k=N?jt(N):window,L=k.nodeName&&k.nodeName.toLowerCase(),L==="select"||L==="input"&&k.type==="file")var Ie=Sd;else if(vd(k))if(wd)Ie=h0;else{Ie=f0;var fe=c0}else L=k.nodeName,!L||L.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?N&&Bo(N.elementType)&&(Ie=Sd):Ie=d0;if(Ie&&(Ie=Ie(e,N))){bd(P,Ie,a,V);break e}fe&&fe(e,k,N),e==="focusout"&&N&&k.type==="number"&&N.memoizedProps.value!=null&&jo(k,"number",k.value)}switch(fe=N?jt(N):window,e){case"focusin":(vd(fe)||fe.contentEditable==="true")&&(nr=fe,$o=N,Jr=null);break;case"focusout":Jr=$o=nr=null;break;case"mousedown":Wo=!0;break;case"contextmenu":case"mouseup":case"dragend":Wo=!1,Od(P,a,V);break;case"selectionchange":if(p0)break;case"keydown":case"keyup":Od(P,a,V)}var ke;if(Fo)e:{switch(e){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else tr?gd(e,a)&&(Qe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Qe="onCompositionStart");Qe&&(hd&&a.locale!=="ko"&&(tr||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&tr&&(ke=od()):(Ha=V,Yo="value"in Ha?Ha.value:Ha.textContent,tr=!0)),fe=Ps(N,Qe),0<fe.length&&(Qe=new fd(Qe,e,null,a,V),P.push({event:Qe,listeners:fe}),ke?Qe.data=ke:(ke=yd(a),ke!==null&&(Qe.data=ke)))),(ke=r0?l0(e,a):s0(e,a))&&(Qe=Ps(N,"onBeforeInput"),0<Qe.length&&(fe=new fd("onBeforeInput","beforeinput",null,a,V),P.push({event:fe,listeners:Qe}),fe.data=ke)),$0(P,e,N,a,V)}tp(P,t)})}function wl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ps(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Vr(e,a),o!=null&&r.unshift(wl(e,o,u)),o=Vr(e,t),o!=null&&r.push(wl(e,o,u))),e.tag===3)return r;e=e.return}return[]}function nb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ap(e,t,a,r,o){for(var u=t._reactName,h=[];a!==null&&a!==r;){var v=a,w=v.alternate,N=v.stateNode;if(v=v.tag,w!==null&&w===r)break;v!==5&&v!==26&&v!==27||N===null||(w=N,o?(N=Vr(a,u),N!=null&&h.unshift(wl(a,N,w))):o||(N=Vr(a,u),N!=null&&h.push(wl(a,N,w)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var ab=/\r\n?/g,ib=/\u0000|\uFFFD/g;function ip(e){return(typeof e=="string"?e:""+e).replace(ab,`
|
|
10
|
+
`).replace(ib,"")}function rp(e,t){return t=ip(t),ip(e)===t}function at(e,t,a,r,o,u){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||$i(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&$i(e,""+r);break;case"className":Zn(e,"class",r);break;case"tabIndex":Zn(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Zn(e,a,r);break;case"style":rd(e,r,u);break;case"data":if(t!=="object"){Zn(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Wl(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&at(e,t,"name",o.name,o,null),at(e,t,"formEncType",o.formEncType,o,null),at(e,t,"formMethod",o.formMethod,o,null),at(e,t,"formTarget",o.formTarget,o,null)):(at(e,t,"encType",o.encType,o,null),at(e,t,"method",o.method,o,null),at(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Wl(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=ba);break;case"onScroll":r!=null&&qe("scroll",e);break;case"onScrollEnd":r!=null&&qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Wl(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":qe("beforetoggle",e),qe("toggle",e),xt(e,"popover",r);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":xt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Nv.get(a)||a,xt(e,a,r))}}function Tc(e,t,a,r,o,u){switch(a){case"style":rd(e,r,u);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof r=="string"?$i(e,r):(typeof r=="number"||typeof r=="bigint")&&$i(e,""+r);break;case"onScroll":r!=null&&qe("scroll",e);break;case"onScrollEnd":r!=null&&qe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=ba);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yn.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),u=e[ie]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof r=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,o);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):xt(e,a,r)}}}function Pt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",e),qe("load",e);var r=!1,o=!1,u;for(u in a)if(a.hasOwnProperty(u)){var h=a[u];if(h!=null)switch(u){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:at(e,t,u,h,a,null)}}o&&at(e,t,"srcSet",a.srcSet,a,null),r&&at(e,t,"src",a.src,a,null);return;case"input":qe("invalid",e);var v=u=h=o=null,w=null,N=null;for(r in a)if(a.hasOwnProperty(r)){var V=a[r];if(V!=null)switch(r){case"name":o=V;break;case"type":h=V;break;case"checked":w=V;break;case"defaultChecked":N=V;break;case"value":u=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:at(e,t,r,V,a,null)}}td(e,u,v,w,N,h,o,!1);return;case"select":qe("invalid",e),r=h=u=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":u=v;break;case"defaultValue":h=v;break;case"multiple":r=v;default:at(e,t,o,v,a,null)}t=u,a=h,e.multiple=!!r,t!=null?Ii(e,!!r,t,!1):a!=null&&Ii(e,!!r,a,!0);return;case"textarea":qe("invalid",e),u=o=r=null;for(h in a)if(a.hasOwnProperty(h)&&(v=a[h],v!=null))switch(h){case"value":r=v;break;case"defaultValue":o=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:at(e,t,h,v,a,null)}ad(e,r,o,u);return;case"option":for(w in a)a.hasOwnProperty(w)&&(r=a[w],r!=null)&&(w==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":at(e,t,w,r,a,null));return;case"dialog":qe("beforetoggle",e),qe("toggle",e),qe("cancel",e),qe("close",e);break;case"iframe":case"object":qe("load",e);break;case"video":case"audio":for(r=0;r<Sl.length;r++)qe(Sl[r],e);break;case"image":qe("error",e),qe("load",e);break;case"details":qe("toggle",e);break;case"embed":case"source":case"link":qe("error",e),qe("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(N in a)if(a.hasOwnProperty(N)&&(r=a[N],r!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:at(e,t,N,r,a,null)}return;default:if(Bo(t)){for(V in a)a.hasOwnProperty(V)&&(r=a[V],r!==void 0&&Tc(e,t,V,r,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(r=a[v],r!=null&&at(e,t,v,r,a,null))}function rb(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,h=null,v=null,w=null,N=null,V=null;for(L in a){var P=a[L];if(a.hasOwnProperty(L)&&P!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":w=P;default:r.hasOwnProperty(L)||at(e,t,L,null,r,P)}}for(var k in r){var L=r[k];if(P=a[k],r.hasOwnProperty(k)&&(L!=null||P!=null))switch(k){case"type":u=L;break;case"name":o=L;break;case"checked":N=L;break;case"defaultChecked":V=L;break;case"value":h=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:L!==P&&at(e,t,k,L,r,P)}}Lo(e,h,v,w,N,V,u,o);return;case"select":L=h=v=k=null;for(u in a)if(w=a[u],a.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":L=w;default:r.hasOwnProperty(u)||at(e,t,u,null,r,w)}for(o in r)if(u=r[o],w=a[o],r.hasOwnProperty(o)&&(u!=null||w!=null))switch(o){case"value":k=u;break;case"defaultValue":v=u;break;case"multiple":h=u;default:u!==w&&at(e,t,o,u,r,w)}t=v,a=h,r=L,k!=null?Ii(e,!!a,k,!1):!!r!=!!a&&(t!=null?Ii(e,!!a,t,!0):Ii(e,!!a,a?[]:"",!1));return;case"textarea":L=k=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!r.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:at(e,t,v,null,r,o)}for(h in r)if(o=r[h],u=a[h],r.hasOwnProperty(h)&&(o!=null||u!=null))switch(h){case"value":k=o;break;case"defaultValue":L=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==u&&at(e,t,h,o,r,u)}nd(e,k,L);return;case"option":for(var re in a)k=a[re],a.hasOwnProperty(re)&&k!=null&&!r.hasOwnProperty(re)&&(re==="selected"?e.selected=!1:at(e,t,re,null,r,k));for(w in r)k=r[w],L=a[w],r.hasOwnProperty(w)&&k!==L&&(k!=null||L!=null)&&(w==="selected"?e.selected=k&&typeof k!="function"&&typeof k!="symbol":at(e,t,w,k,r,L));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 xe in a)k=a[xe],a.hasOwnProperty(xe)&&k!=null&&!r.hasOwnProperty(xe)&&at(e,t,xe,null,r,k);for(N in r)if(k=r[N],L=a[N],r.hasOwnProperty(N)&&k!==L&&(k!=null||L!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:at(e,t,N,k,r,L)}return;default:if(Bo(t)){for(var it in a)k=a[it],a.hasOwnProperty(it)&&k!==void 0&&!r.hasOwnProperty(it)&&Tc(e,t,it,void 0,r,k);for(V in r)k=r[V],L=a[V],!r.hasOwnProperty(V)||k===L||k===void 0&&L===void 0||Tc(e,t,V,k,r,L);return}}for(var O in a)k=a[O],a.hasOwnProperty(O)&&k!=null&&!r.hasOwnProperty(O)&&at(e,t,O,null,r,k);for(P in r)k=r[P],L=a[P],!r.hasOwnProperty(P)||k===L||k==null&&L==null||at(e,t,P,k,r,L)}function lp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var o=a[r],u=o.transferSize,h=o.initiatorType,v=o.duration;if(u&&v&&lp(h)){for(h=0,v=o.responseEnd,r+=1;r<a.length;r++){var w=a[r],N=w.startTime;if(N>v)break;var V=w.transferSize,P=w.initiatorType;V&&lp(P)&&(w=w.responseEnd,h+=V*(w<v?1:(v-N)/(w-N)))}if(--r,t+=8*(u+h)/(o.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 Rc=null,_c=null;function Fs(e){return e.nodeType===9?e:e.ownerDocument}function sp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function op(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 Cc(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 Ac=null;function sb(){var e=window.event;return e&&e.type==="popstate"?e===Ac?!1:(Ac=e,!0):(Ac=null,!1)}var up=typeof setTimeout=="function"?setTimeout:void 0,ob=typeof clearTimeout=="function"?clearTimeout:void 0,cp=typeof Promise=="function"?Promise:void 0,ub=typeof queueMicrotask=="function"?queueMicrotask:typeof cp<"u"?function(e){return cp.resolve(null).then(e).catch(cb)}:up;function cb(e){setTimeout(function(){throw e})}function ai(e){return e==="head"}function fp(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(o),Or(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")El(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,El(a);for(var u=a.firstChild;u;){var h=u.nextSibling,v=u.nodeName;u[pt]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=h}}else a==="body"&&El(e.ownerDocument.body);a=o}while(a);Or(t)}function dp(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function Oc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Oc(a),yt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function fb(e,t,a,r){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[pt])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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=jn(e.nextSibling),e===null)break}return null}function db(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=jn(e.nextSibling),e===null))return null;return e}function hp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jn(e.nextSibling),e===null))return null;return e}function Mc(e){return e.data==="$?"||e.data==="$~"}function Dc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function jn(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 Nc=null;function mp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return jn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function pp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function gp(e,t,a){switch(t=Fs(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function El(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yt(e)}var Bn=new Map,yp=new Set;function Zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ua=F.d;F.d={f:mb,r:pb,D:gb,C:yb,L:vb,m:bb,X:wb,S:Sb,M:Eb};function mb(){var e=Ua.f(),t=Hs();return e||t}function pb(e){var t=Ge(e);t!==null&&t.tag===5&&t.type==="form"?zh(t):Ua.r(e)}var _r=typeof document>"u"?null:document;function vp(e,t,a){var r=_r;if(r&&typeof t=="string"&&t){var o=Mn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),yp.has(o)||(yp.add(o),e={rel:e,crossOrigin:a,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),Pt(t,"link",e),dt(t),r.head.appendChild(t)))}}function gb(e){Ua.D(e),vp("dns-prefetch",e,null)}function yb(e,t){Ua.C(e,t),vp("preconnect",e,t)}function vb(e,t,a){Ua.L(e,t,a);var r=_r;if(r&&e&&t){var o='link[rel="preload"][as="'+Mn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Mn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Mn(a.imageSizes)+'"]')):o+='[href="'+Mn(e)+'"]';var u=o;switch(t){case"style":u=Cr(e);break;case"script":u=Ar(e)}Bn.has(u)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Bn.set(u,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(xl(u))||t==="script"&&r.querySelector(Tl(u))||(t=r.createElement("link"),Pt(t,"link",e),dt(t),r.head.appendChild(t)))}}function bb(e,t){Ua.m(e,t);var a=_r;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Mn(r)+'"][href="'+Mn(e)+'"]',u=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ar(e)}if(!Bn.has(u)&&(e=y({rel:"modulepreload",href:e},t),Bn.set(u,e),a.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Tl(u)))return}r=a.createElement("link"),Pt(r,"link",e),dt(r),a.head.appendChild(r)}}}function Sb(e,t,a){Ua.S(e,t,a);var r=_r;if(r&&e){var o=ln(r).hoistableStyles,u=Cr(e);t=t||"default";var h=o.get(u);if(!h){var v={loading:0,preload:null};if(h=r.querySelector(xl(u)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Bn.get(u))&&kc(e,a);var w=h=r.createElement("link");dt(w),Pt(w,"link",e),w._p=new Promise(function(N,V){w.onload=N,w.onerror=V}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Js(h,t,r)}h={type:"stylesheet",instance:h,count:1,state:v},o.set(u,h)}}}function wb(e,t){Ua.X(e,t);var a=_r;if(a&&e){var r=ln(a).hoistableScripts,o=Ar(e),u=r.get(o);u||(u=a.querySelector(Tl(o)),u||(e=y({src:e,async:!0},t),(t=Bn.get(o))&&zc(e,t),u=a.createElement("script"),dt(u),Pt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(o,u))}}function Eb(e,t){Ua.M(e,t);var a=_r;if(a&&e){var r=ln(a).hoistableScripts,o=Ar(e),u=r.get(o);u||(u=a.querySelector(Tl(o)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Bn.get(o))&&zc(e,t),u=a.createElement("script"),dt(u),Pt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(o,u))}}function bp(e,t,a,r){var o=(o=ue.current)?Zs(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Cr(a.href),a=ln(o).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Cr(a.href);var u=ln(o).hoistableStyles,h=u.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=o.querySelector(xl(e)))&&!u._p&&(h.instance=u,h.state.loading=5),Bn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Bn.set(e,a),u||xb(o,e,a,h.state))),t&&r===null)throw Error(s(528,""));return h}if(t&&r!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ar(a),a=ln(o).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Cr(e){return'href="'+Mn(e)+'"'}function xl(e){return'link[rel="stylesheet"]['+e+"]"}function Sp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function xb(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Pt(t,"link",a),dt(t),e.head.appendChild(t))}function Ar(e){return'[src="'+Mn(e)+'"]'}function Tl(e){return"script[async]"+e}function wp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Mn(a.href)+'"]');if(r)return t.instance=r,dt(r),r;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),dt(r),Pt(r,"style",o),Js(r,a.precedence,e),t.instance=r;case"stylesheet":o=Cr(a.href);var u=e.querySelector(xl(o));if(u)return t.state.loading|=4,t.instance=u,dt(u),u;r=Sp(a),(o=Bn.get(o))&&kc(r,o),u=(e.ownerDocument||e).createElement("link"),dt(u);var h=u;return h._p=new Promise(function(v,w){h.onload=v,h.onerror=w}),Pt(u,"link",r),t.state.loading|=4,Js(u,a.precedence,e),t.instance=u;case"script":return u=Ar(a.src),(o=e.querySelector(Tl(u)))?(t.instance=o,dt(o),o):(r=a,(o=Bn.get(u))&&(r=y({},a),zc(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),dt(o),Pt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Js(r,a.precedence,e));return t.instance}function Js(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,u=o,h=0;h<r.length;h++){var v=r[h];if(v.dataset.precedence===t)u=v;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Is=null;function Ep(e,t,a){if(Is===null){var r=new Map,o=Is=new Map;o.set(a,r)}else o=Is,r=o.get(a),r||(r=new Map,o.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var u=a[o];if(!(u[pt]||u[ne]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var v=r.get(h);v?v.push(u):r.set(h,[u])}}return r}function xp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Tb(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Tp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rb(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Cr(r.href),u=t.querySelector(xl(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=$s.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,dt(u);return}u=t.ownerDocument||t,r=Sp(r),(o=Bn.get(o))&&kc(r,o),u=u.createElement("link"),dt(u);var h=u;h._p=new Promise(function(v,w){h.onload=v,h.onerror=w}),Pt(u,"link",r),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=$s.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Uc=0;function _b(e,t){return e.stylesheets&&e.count===0&&eo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&eo(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Uc===0&&(Uc=62500*lb());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&eo(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Uc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function $s(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ws=null;function eo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ws=new Map,t.forEach(Cb,e),Ws=null,$s.call(e))}function Cb(e,t){if(!(t.state.loading&4)){var a=Ws.get(e);if(a)var r=a.get(null);else{a=new Map,Ws.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var h=o[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),r=h)}r&&a.set(null,r)}o=t.instance,h=o.getAttribute("data-precedence"),u=a.get(h)||r,u===r&&a.set(null,o),a.set(h,o),this.count++,r=$s.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Rl={$$typeof:$,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function Ab(e,t,a,r,o,u,h,v,w){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=gn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gn(0),this.hiddenUpdates=gn(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Rp(e,t,a,r,o,u,h,v,w,N,V,P){return e=new Ab(e,t,a,h,w,N,V,P,v),t=1,u===!0&&(t|=24),u=bn(3,null,null,t),e.current=u,u.stateNode=e,t=mu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:r,isDehydrated:a,cache:t},vu(u),e}function _p(e){return e?(e=rr,e):rr}function Cp(e,t,a,r,o,u){o=_p(o),r.context===null?r.context=o:r.pendingContext=o,r=Xa(t),r.payload={element:a},u=u===void 0?null:u,u!==null&&(r.callback=u),a=Pa(e,r,t),a!==null&&(dn(a,e,t),al(a,e,t))}function Ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Lc(e,t){Ap(e,t),(e=e.alternate)&&Ap(e,t)}function Op(e){if(e.tag===13||e.tag===31){var t=Oi(e,67108864);t!==null&&dn(t,e,67108864),Lc(e,67108864)}}function Mp(e){if(e.tag===13||e.tag===31){var t=Tn();t=z(t);var a=Oi(e,t);a!==null&&dn(a,e,t),Lc(e,t)}}var to=!0;function Ob(e,t,a,r){var o=A.T;A.T=null;var u=F.p;try{F.p=2,jc(e,t,a,r)}finally{F.p=u,A.T=o}}function Mb(e,t,a,r){var o=A.T;A.T=null;var u=F.p;try{F.p=8,jc(e,t,a,r)}finally{F.p=u,A.T=o}}function jc(e,t,a,r){if(to){var o=Bc(r);if(o===null)xc(e,t,r,no,a),Np(e,r);else if(Nb(o,e,t,a,r))r.stopPropagation();else if(Np(e,r),t&4&&-1<Db.indexOf(e)){for(;o!==null;){var u=Ge(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=An(u.pendingLanes);if(h!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var w=1<<31-kt(h);v.entanglements[1]|=w,h&=~w}la(u),(We&6)===0&&(Bs=mt()+500,bl(0))}}break;case 31:case 13:v=Oi(u,2),v!==null&&dn(v,u,2),Hs(),Lc(u,2)}if(u=Bc(r),u===null&&xc(e,t,r,no,a),u===o)break;o=u}o!==null&&r.stopPropagation()}else xc(e,t,r,null,a)}}function Bc(e){return e=Ho(e),qc(e)}var no=null;function qc(e){if(no=null,e=vt(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return no=e,null}function Dp(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(ma()){case na:return 2;case qa:return 8;case Vt:case Wt:return 32;case _n:return 268435456;default:return 32}default:return 32}}var Hc=!1,ii=null,ri=null,li=null,_l=new Map,Cl=new Map,si=[],Db="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 Np(e,t){switch(e){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":_l.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cl.delete(t.pointerId)}}function Al(e,t,a,r,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Ge(t),t!==null&&Op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Nb(e,t,a,r,o){switch(t){case"focusin":return ii=Al(ii,e,t,a,r,o),!0;case"dragenter":return ri=Al(ri,e,t,a,r,o),!0;case"mouseover":return li=Al(li,e,t,a,r,o),!0;case"pointerover":var u=o.pointerId;return _l.set(u,Al(_l.get(u)||null,e,t,a,r,o)),!0;case"gotpointercapture":return u=o.pointerId,Cl.set(u,Al(Cl.get(u)||null,e,t,a,r,o)),!0}return!1}function kp(e){var t=vt(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,pe(e.priority,function(){Mp(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,pe(e.priority,function(){Mp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ao(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Bc(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);qo=r,a.target.dispatchEvent(r),qo=null}else return t=Ge(a),t!==null&&Op(t),e.blockedOn=a,!1;t.shift()}return!0}function zp(e,t,a){ao(e)&&a.delete(t)}function kb(){Hc=!1,ii!==null&&ao(ii)&&(ii=null),ri!==null&&ao(ri)&&(ri=null),li!==null&&ao(li)&&(li=null),_l.forEach(zp),Cl.forEach(zp)}function io(e,t){e.blockedOn===t&&(e.blockedOn=null,Hc||(Hc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,kb)))}var ro=null;function Up(e){ro!==e&&(ro=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ro===e&&(ro=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(qc(r||a)===null)continue;break}var u=Ge(a);u!==null&&(e.splice(t,3),t-=3,Bu(u,{pending:!0,data:o,method:a.method,action:r},r,o))}}))}function Or(e){function t(w){return io(w,e)}ii!==null&&io(ii,e),ri!==null&&io(ri,e),li!==null&&io(li,e),_l.forEach(t),Cl.forEach(t);for(var a=0;a<si.length;a++){var r=si[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<si.length&&(a=si[0],a.blockedOn===null);)kp(a),a.blockedOn===null&&si.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var o=a[r],u=a[r+1],h=o[ie]||null;if(typeof u=="function")h||Up(a);else if(h){var v=null;if(u&&u.hasAttribute("formAction")){if(o=u,h=u[ie]||null)v=h.formAction;else if(qc(o)!==null)continue}else v=h.action;typeof v=="function"?a[r+1]=v:(a.splice(r,3),r-=3),Up(a)}}}function Lp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(a,20)}function a(){if(!r&&!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 r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Qc(e){this._internalRoot=e}lo.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,r=Tn();Cp(a,r,e,t,null,null)},lo.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cp(e.current,2,null,e,null,null),Hs(),t[de]=null}};function lo(e){this._internalRoot=e}lo.prototype.unstable_scheduleHydration=function(e){if(e){var t=W();e={blockedOn:null,target:e,priority:t};for(var a=0;a<si.length&&t!==0&&t<si[a].priority;a++);si.splice(a,0,e),a===0&&kp(e)}};var jp=i.version;if(jp!=="19.2.4")throw Error(s(527,jp,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var zb={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var so=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!so.isDisabled&&so.supportsFiber)try{pa=so.inject(zb),ut=so}catch{}}return Ml.createRoot=function(e,t){if(!c(e))throw Error(s(299));var a=!1,r="",o=Gh,u=Kh,h=Xh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Rp(e,1,!1,null,null,a,r,null,o,u,h,Lp),e[de]=t.current,Ec(e),new Qc(t)},Ml.hydrateRoot=function(e,t,a){if(!c(e))throw Error(s(299));var r=!1,o="",u=Gh,h=Kh,v=Xh,w=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=Rp(e,1,!0,t,a??null,r,o,w,u,h,v,Lp),t.context=_p(null),a=t.current,r=Tn(),r=z(r),o=Xa(r),o.callback=null,Pa(a,o,r),a=r,t.current.lanes=a,ot(t,a),la(t),e[de]=t.current,Ec(e),new lo(t)},Ml.version="19.2.4",Ml}var Pp;function Kb(){if(Pp)return Gc.exports;Pp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Gc.exports=Gb(),Gc.exports}var Xb=Kb(),Lr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Pb={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},Fb=class{#e=Pb;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,i){return this.#e.setTimeout(n,i)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,i){return this.#e.setInterval(n,i)}clearInterval(n){this.#e.clearInterval(n)}},Yi=new Fb;function Zb(n){setTimeout(n,0)}var Ki=typeof window>"u"||"Deno"in globalThis;function tn(){}function Jb(n,i){return typeof n=="function"?n(i):n}function of(n){return typeof n=="number"&&n>=0&&n!==1/0}function ry(n,i){return Math.max(n+(i||0)-Date.now(),0)}function mi(n,i){return typeof n=="function"?n(i):n}function Hn(n,i){return typeof n=="function"?n(i):n}function Fp(n,i){const{type:l="all",exact:s,fetchStatus:c,predicate:f,queryKey:d,stale:p}=n;if(d){if(s){if(i.queryHash!==Of(d,i.options))return!1}else if(!Ql(i.queryKey,d))return!1}if(l!=="all"){const g=i.isActive();if(l==="active"&&!g||l==="inactive"&&g)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||c&&c!==i.state.fetchStatus||f&&!f(i))}function Zp(n,i){const{exact:l,status:s,predicate:c,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(l){if(Xi(i.options.mutationKey)!==Xi(f))return!1}else if(!Ql(i.options.mutationKey,f))return!1}return!(s&&i.state.status!==s||c&&!c(i))}function Of(n,i){return(i?.queryKeyHashFn||Xi)(n)}function Xi(n){return JSON.stringify(n,(i,l)=>uf(l)?Object.keys(l).sort().reduce((s,c)=>(s[c]=l[c],s),{}):l)}function Ql(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(l=>Ql(n[l],i[l])):!1}var Ib=Object.prototype.hasOwnProperty;function ly(n,i,l=0){if(n===i)return n;if(l>500)return i;const s=Jp(n)&&Jp(i);if(!s&&!(uf(n)&&uf(i)))return i;const f=(s?n:Object.keys(n)).length,d=s?i:Object.keys(i),p=d.length,g=s?new Array(p):{};let m=0;for(let b=0;b<p;b++){const y=s?b:d[b],E=n[y],M=i[y];if(E===M){g[y]=E,(s?b<f:Ib.call(n,y))&&m++;continue}if(E===null||M===null||typeof E!="object"||typeof M!="object"){g[y]=M;continue}const U=ly(E,M,l+1);g[y]=U,U===E&&m++}return f===p&&m===f?n:g}function Ao(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const l in n)if(n[l]!==i[l])return!1;return!0}function Jp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function uf(n){if(!Ip(n))return!1;const i=n.constructor;if(i===void 0)return!0;const l=i.prototype;return!(!Ip(l)||!l.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Ip(n){return Object.prototype.toString.call(n)==="[object Object]"}function $b(n){return new Promise(i=>{Yi.setTimeout(i,n)})}function cf(n,i,l){return typeof l.structuralSharing=="function"?l.structuralSharing(n,i):l.structuralSharing!==!1?ly(n,i):i}function Wb(n,i,l=0){const s=[...n,i];return l&&s.length>l?s.slice(1):s}function eS(n,i,l=0){const s=[i,...n];return l&&s.length>l?s.slice(0,-1):s}var Mf=Symbol();function sy(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Mf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Df(n,i){return typeof n=="function"?n(...i):!!n}function tS(n,i,l){let s=!1,c;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(c??=i(),s||(s=!0,c.aborted?l():c.addEventListener("abort",l,{once:!0})),c)}),n}var nS=class extends Lr{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!Ki&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Nf=new nS;function ff(){let n,i;const l=new Promise((c,f)=>{n=c,i=f});l.status="pending",l.catch(()=>{});function s(c){Object.assign(l,c),delete l.resolve,delete l.reject}return l.resolve=c=>{s({status:"fulfilled",value:c}),n(c)},l.reject=c=>{s({status:"rejected",reason:c}),i(c)},l}var aS=Zb;function iS(){let n=[],i=0,l=p=>{p()},s=p=>{p()},c=aS;const f=p=>{i?n.push(p):c(()=>{l(p)})},d=()=>{const p=n;n=[],p.length&&c(()=>{s(()=>{p.forEach(g=>{l(g)})})})};return{batch:p=>{let g;i++;try{g=p()}finally{i--,i||d()}return g},batchCalls:p=>(...g)=>{f(()=>{p(...g)})},schedule:f,setNotifyFunction:p=>{l=p},setBatchNotifyFunction:p=>{s=p},setScheduler:p=>{c=p}}}var Lt=iS(),rS=class extends Lr{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!Ki&&window.addEventListener){const i=()=>n(!0),l=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(l=>{l(n)}))}isOnline(){return this.#e}},Oo=new rS;function lS(n){return Math.min(1e3*2**n,3e4)}function oy(n){return(n??"online")==="online"?Oo.isOnline():!0}var df=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function uy(n){let i=!1,l=0,s;const c=ff(),f=()=>c.status!=="pending",d=j=>{if(!f()){const K=new df(j);E(K),n.onCancel?.(K)}},p=()=>{i=!0},g=()=>{i=!1},m=()=>Nf.isFocused()&&(n.networkMode==="always"||Oo.isOnline())&&n.canRun(),b=()=>oy(n.networkMode)&&n.canRun(),y=j=>{f()||(s?.(),c.resolve(j))},E=j=>{f()||(s?.(),c.reject(j))},M=()=>new Promise(j=>{s=K=>{(f()||m())&&j(K)},n.onPause?.()}).then(()=>{s=void 0,f()||n.onContinue?.()}),U=()=>{if(f())return;let j;const K=l===0?n.initialPromise:void 0;try{j=K??n.fn()}catch(G){j=Promise.reject(G)}Promise.resolve(j).then(y).catch(G=>{if(f())return;const J=n.retry??(Ki?0:3),$=n.retryDelay??lS,ye=typeof $=="function"?$(l,G):$,he=J===!0||typeof J=="number"&&l<J||typeof J=="function"&&J(l,G);if(i||!he){E(G);return}l++,n.onFail?.(l,G),$b(ye).then(()=>m()?void 0:M()).then(()=>{i?E(G):U()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(s?.(),c),cancelRetry:p,continueRetry:g,canStart:b,start:()=>(b()?U():M().then(U),c)}}var cy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),of(this.gcTime)&&(this.#e=Yi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ki?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Yi.clearTimeout(this.#e),this.#e=void 0)}},sS=class extends cy{#e;#t;#n;#i;#a;#l;#s;constructor(n){super(),this.#s=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#n=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Wp(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Wp(this.options);i.data!==void 0&&(this.setState($p(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const l=cf(this.state.data,n,this.options);return this.#r({data:l,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),l}setState(n,i){this.#r({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#a?.promise;return this.#a?.cancel(n),i?i.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Hn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>mi(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!ry(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}const l=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#s=!0,l.signal)})},c=()=>{const p=sy(this.options,i),m=(()=>{const b={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(b),b})();return this.#s=!1,this.options.persister?this.options.persister(p,m,this):p(m)},d=(()=>{const p={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:c};return s(p),p})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#r({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=uy({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:p=>{p instanceof df&&p.revert&&this.setState({...this.#t,fetchStatus:"idle"}),l.abort()},onFail:(p,g)=>{this.#r({type:"failed",failureCount:p,error:g})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const p=await this.#a.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#n.config.onSuccess?.(p,this),this.#n.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof df){if(p.silent)return this.#a.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#r({type:"error",error:p}),this.#n.config.onError?.(p,this),this.#n.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#r(n){const i=l=>{switch(n.type){case"failed":return{...l,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...fy(l.data,this.options),fetchMeta:n.meta??null};case"success":const s={...l,...$p(n.data,n.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const c=n.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...n.state}}};this.state=i(this.state),Lt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function fy(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oy(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function $p(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wp(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,l=i!==void 0,s=l?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:l?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}var oS=class extends Lr{constructor(n,i){super(),this.options=i,this.#e=n,this.#r=null,this.#s=ff(),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#n=void 0;#i=void 0;#a;#l;#s;#r;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),eg(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#w(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,l=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Hn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),i._defaulted&&!Ao(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&tg(this.#t,l,this.options,i)&&this.#f(),this.updateResult(),s&&(this.#t!==l||Hn(this.options.enabled,this.#t)!==Hn(i.enabled,this.#t)||mi(this.options.staleTime,this.#t)!==mi(i.staleTime,this.#t))&&this.#g();const c=this.#y();s&&(this.#t!==l||Hn(this.options.enabled,this.#t)!==Hn(i.enabled,this.#t)||c!==this.#o)&&this.#v(c)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),l=this.createResult(i,n);return cS(this,l)&&(this.#i=l,this.#l=this.options,this.#a=this.#t.state),l}getCurrentResult(){return this.#i}trackResult(n,i){return new Proxy(n,{get:(l,s)=>(this.trackProp(s),i?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),l=this.#e.getQueryCache().build(this.#e,i);return l.fetch().then(()=>this.createResult(l,i))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(n){this.#E();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(tn)),i}#g(){this.#S();const n=mi(this.options.staleTime,this.#t);if(Ki||this.#i.isStale||!of(n))return;const l=ry(this.#i.dataUpdatedAt,n)+1;this.#u=Yi.setTimeout(()=>{this.#i.isStale||this.updateResult()},l)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(n){this.#w(),this.#o=n,!(Ki||Hn(this.options.enabled,this.#t)===!1||!of(this.#o)||this.#o===0)&&(this.#c=Yi.setInterval(()=>{(this.options.refetchIntervalInBackground||Nf.isFocused())&&this.#f()},this.#o))}#b(){this.#g(),this.#v(this.#y())}#S(){this.#u&&(Yi.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(Yi.clearInterval(this.#c),this.#c=void 0)}createResult(n,i){const l=this.#t,s=this.options,c=this.#i,f=this.#a,d=this.#l,g=n!==l?n.state:this.#n,{state:m}=n;let b={...m},y=!1,E;if(i._optimisticResults){const Y=this.hasListeners(),oe=!Y&&eg(n,i),Ae=Y&&tg(n,l,i,s);(oe||Ae)&&(b={...b,...fy(m.data,n.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:M,errorUpdatedAt:U,status:j}=b;E=b.data;let K=!1;if(i.placeholderData!==void 0&&E===void 0&&j==="pending"){let Y;c?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(Y=c.data,K=!0):Y=typeof i.placeholderData=="function"?i.placeholderData(this.#h?.state.data,this.#h):i.placeholderData,Y!==void 0&&(j="success",E=cf(c?.data,Y,i),y=!0)}if(i.select&&E!==void 0&&!K)if(c&&E===f?.data&&i.select===this.#p)E=this.#d;else try{this.#p=i.select,E=i.select(E),E=cf(c?.data,E,i),this.#d=E,this.#r=null}catch(Y){this.#r=Y}this.#r&&(M=this.#r,E=this.#d,U=Date.now(),j="error");const G=b.fetchStatus==="fetching",J=j==="pending",$=j==="error",ye=J&&G,he=E!==void 0,C={status:j,fetchStatus:b.fetchStatus,isPending:J,isSuccess:j==="success",isError:$,isInitialLoading:ye,isLoading:ye,data:E,dataUpdatedAt:b.dataUpdatedAt,error:M,errorUpdatedAt:U,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:G,isRefetching:G&&!J,isLoadingError:$&&!he,isPaused:b.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:$&&he,isStale:kf(n,i),refetch:this.refetch,promise:this.#s,isEnabled:Hn(i.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const Y=C.data!==void 0,oe=C.status==="error"&&!Y,Ae=Ue=>{oe?Ue.reject(C.error):Y&&Ue.resolve(C.data)},Ce=()=>{const Ue=this.#s=C.promise=ff();Ae(Ue)},Te=this.#s;switch(Te.status){case"pending":n.queryHash===l.queryHash&&Ae(Te);break;case"fulfilled":(oe||C.data!==Te.value)&&Ce();break;case"rejected":(!oe||C.error!==Te.reason)&&Ce();break}}return C}updateResult(){const n=this.#i,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#l=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Ao(i,n))return;this.#i=i;const l=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!this.#m.size)return!0;const f=new Set(c??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#i).some(d=>{const p=d;return this.#i[p]!==n[p]&&f.has(p)})};this.#x({listeners:l()})}#E(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(n){Lt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function uS(n,i){return Hn(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function eg(n,i){return uS(n,i)||n.state.data!==void 0&&hf(n,i,i.refetchOnMount)}function hf(n,i,l){if(Hn(i.enabled,n)!==!1&&mi(i.staleTime,n)!=="static"){const s=typeof l=="function"?l(n):l;return s==="always"||s!==!1&&kf(n,i)}return!1}function tg(n,i,l,s){return(n!==i||Hn(s.enabled,n)===!1)&&(!l.suspense||n.state.status!=="error")&&kf(n,l)}function kf(n,i){return Hn(i.enabled,n)!==!1&&n.isStaleByTime(mi(i.staleTime,n))}function cS(n,i){return!Ao(n.getCurrentResult(),i)}function ng(n){return{onFetch:(i,l)=>{const s=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let p={pages:[],pageParams:[]},g=0;const m=async()=>{let b=!1;const y=U=>{tS(U,()=>i.signal,()=>b=!0)},E=sy(i.options,i.fetchOptions),M=async(U,j,K)=>{if(b)return Promise.reject();if(j==null&&U.pages.length)return Promise.resolve(U);const J=(()=>{const me={client:i.client,queryKey:i.queryKey,pageParam:j,direction:K?"backward":"forward",meta:i.options.meta};return y(me),me})(),$=await E(J),{maxPages:ye}=i.options,he=K?eS:Wb;return{pages:he(U.pages,$,ye),pageParams:he(U.pageParams,j,ye)}};if(c&&f.length){const U=c==="backward",j=U?dy:mf,K={pages:f,pageParams:d},G=j(s,K);p=await M(K,G,U)}else{const U=n??f.length;do{const j=g===0?d[0]??s.initialPageParam:mf(s,p);if(g>0&&j==null)break;p=await M(p,j),g++}while(g<U)}return p};i.options.persister?i.fetchFn=()=>i.options.persister?.(m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},l):i.fetchFn=m}}}function mf(n,{pages:i,pageParams:l}){const s=i.length-1;return i.length>0?n.getNextPageParam(i[s],i,l[s],l):void 0}function dy(n,{pages:i,pageParams:l}){return i.length>0?n.getPreviousPageParam?.(i[0],i,l[0],l):void 0}function jR(n,i){return i?mf(n,i)!=null:!1}function BR(n,i){return!i||!n.getPreviousPageParam?!1:dy(n,i)!=null}var fS=class extends cy{#e;#t;#n;#i;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||hy(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(i=>i!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#a({type:"continue"})},l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=uy({fn:()=>this.options.mutationFn?this.options.mutationFn(n,l):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",c=!this.#i.canStart();try{if(s)i();else{this.#a({type:"pending",variables:n,isPaused:c}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,l);const d=await this.options.onMutate?.(n,l);d!==this.state.context&&this.#a({type:"pending",context:d,variables:n,isPaused:c})}const f=await this.#i.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,l),await this.options.onSuccess?.(f,n,this.state.context,l),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(f,null,n,this.state.context,l),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,l)}catch(d){Promise.reject(d)}try{await this.options.onError?.(f,n,this.state.context,l)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,l)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,l)}catch(d){Promise.reject(d)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(n){const i=l=>{switch(n.type){case"failed":return{...l,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...l,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:n.error,failureCount:l.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Lt.batch(()=>{this.#t.forEach(l=>{l.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function hy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var dS=class extends Lr{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,i,l){const s=new fS({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(i),state:l});return this.add(s),s}add(n){this.#e.add(n);const i=oo(n);if(typeof i=="string"){const l=this.#t.get(i);l?l.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=oo(n);if(typeof i=="string"){const l=this.#t.get(i);if(l)if(l.length>1){const s=l.indexOf(n);s!==-1&&l.splice(s,1)}else l[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=oo(n);if(typeof i=="string"){const s=this.#t.get(i)?.find(c=>c.state.status==="pending");return!s||s===n}else return!0}runNext(n){const i=oo(n);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Lt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(l=>Zp(i,l))}findAll(n={}){return this.getAll().filter(i=>Zp(n,i))}notify(n){Lt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return Lt.batch(()=>Promise.all(n.map(i=>i.continue().catch(tn))))}};function oo(n){return n.options.scope?.id}var hS=class extends Lr{#e;#t=void 0;#n;#i;constructor(i,l){super(),this.#e=i,this.setOptions(l),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const l=this.options;this.options=this.#e.defaultMutationOptions(i),Ao(this.options,l)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),l?.mutationKey&&this.options.mutationKey&&Xi(l.mutationKey)!==Xi(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#l(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#l()}mutate(i,l){return this.#i=l,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??hy();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#l(i){Lt.batch(()=>{if(this.#i&&this.hasListeners()){const l=this.#t.variables,s=this.#t.context,c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(i?.type==="success"){try{this.#i.onSuccess?.(i.data,l,s,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(i.data,null,l,s,c)}catch(f){Promise.reject(f)}}else if(i?.type==="error"){try{this.#i.onError?.(i.error,l,s,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(void 0,i.error,l,s,c)}catch(f){Promise.reject(f)}}}this.listeners.forEach(l=>{l(this.#t)})})}},mS=class extends Lr{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,l){const s=i.queryKey,c=i.queryHash??Of(s,i);let f=this.get(c);return f||(f=new sS({client:n,queryKey:s,queryHash:c,options:n.defaultQueryOptions(i),state:l,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Lt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(l=>Fp(i,l))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(l=>Fp(n,l)):i}notify(n){Lt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},pS=class{#e;#t;#n;#i;#a;#l;#s;#r;constructor(n={}){this.#e=n.queryCache||new mS,this.#t=n.mutationCache||new dS,this.#n=n.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=Nf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=Oo.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#r?.(),this.#r=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),l=this.#e.build(this,i),s=l.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&l.isStaleByTime(mi(i.staleTime,l))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:l})=>{const s=l.data;return[i,s]})}setQueryData(n,i,l){const s=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(s.queryHash)?.state.data,d=Jb(i,f);if(d!==void 0)return this.#e.build(this,s).setData(d,{...l,manual:!0})}setQueriesData(n,i,l){return Lt.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,i,l)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;Lt.batch(()=>{i.findAll(n).forEach(l=>{i.remove(l)})})}resetQueries(n,i){const l=this.#e;return Lt.batch(()=>(l.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const l={revert:!0,...i},s=Lt.batch(()=>this.#e.findAll(n).map(c=>c.cancel(l)));return Promise.all(s).then(tn).catch(tn)}invalidateQueries(n,i={}){return Lt.batch(()=>(this.#e.findAll(n).forEach(l=>{l.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const l={...i,cancelRefetch:i.cancelRefetch??!0},s=Lt.batch(()=>this.#e.findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,l);return l.throwOnError||(f=f.catch(tn)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(tn)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const l=this.#e.build(this,i);return l.isStaleByTime(mi(i.staleTime,l))?l.fetch(i):Promise.resolve(l.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(tn).catch(tn)}fetchInfiniteQuery(n){return n.behavior=ng(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(tn).catch(tn)}ensureInfiniteQueryData(n){return n.behavior=ng(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Oo.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#i.set(Xi(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#i.values()],l={};return i.forEach(s=>{Ql(n,s.queryKey)&&Object.assign(l,s.defaultOptions)}),l}setMutationDefaults(n,i){this.#a.set(Xi(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#a.values()],l={};return i.forEach(s=>{Ql(n,s.mutationKey)&&Object.assign(l,s.defaultOptions)}),l}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Of(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Mf&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},my=T.createContext(void 0),gt=n=>{const i=T.useContext(my);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},gS=({client:n,children:i})=>(T.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),Q.jsx(my.Provider,{value:n,children:i})),py=T.createContext(!1),yS=()=>T.useContext(py);py.Provider;function vS(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var bS=T.createContext(vS()),SS=()=>T.useContext(bS),wS=(n,i,l)=>{const s=l?.state.error&&typeof n.throwOnError=="function"?Df(n.throwOnError,[l.state.error,l]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(i.isReset()||(n.retryOnMount=!1))},ES=n=>{T.useEffect(()=>{n.clearReset()},[n])},xS=({result:n,errorResetBoundary:i,throwOnError:l,query:s,suspense:c})=>n.isError&&!i.isReset()&&!n.isFetching&&s&&(c&&n.data===void 0||Df(l,[n.error,s])),TS=n=>{if(n.suspense){const l=c=>c==="static"?c:Math.max(c??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...c)=>l(s(...c)):l(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},RS=(n,i)=>n.isLoading&&n.isFetching&&!i,_S=(n,i)=>n?.suspense&&i.isPending,ag=(n,i,l)=>i.fetchOptimistic(n).catch(()=>{l.clearReset()});function CS(n,i,l){const s=yS(),c=SS(),f=gt(),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const p=f.getQueryCache().get(d.queryHash);d._optimisticResults=s?"isRestoring":"optimistic",TS(d),wS(d,c,p),ES(c);const g=!f.getQueryCache().get(d.queryHash),[m]=T.useState(()=>new i(f,d)),b=m.getOptimisticResult(d),y=!s&&n.subscribed!==!1;if(T.useSyncExternalStore(T.useCallback(E=>{const M=y?m.subscribe(Lt.batchCalls(E)):tn;return m.updateResult(),M},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),T.useEffect(()=>{m.setOptions(d)},[d,m]),_S(d,b))throw ag(d,m,c);if(xS({result:b,errorResetBoundary:c,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw b.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,b),d.experimental_prefetchInRender&&!Ki&&RS(b,s)&&(g?ag(d,m,c):p?.promise)?.catch(tn).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?b:m.trackResult(b)}function Ba(n,i){return CS(n,oS)}function qt(n,i){const l=gt(),[s]=T.useState(()=>new hS(l,n));T.useEffect(()=>{s.setOptions(n)},[s,n]);const c=T.useSyncExternalStore(T.useCallback(d=>s.subscribe(Lt.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=T.useCallback((d,p)=>{s.mutate(d,p).catch(tn)},[s]);if(c.error&&Df(s.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}var gy=iy();const AS=ay(gy);function OS(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",i.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}const MS=n=>{switch(n){case"success":return kS;case"info":return US;case"warning":return zS;case"error":return LS;default:return null}},DS=Array(12).fill(0),NS=({visible:n,className:i})=>ee.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},ee.createElement("div",{className:"sonner-spinner"},DS.map((l,s)=>ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),kS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),zS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),US=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),LS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),jS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),BS=()=>{const[n,i]=ee.useState(document.hidden);return ee.useEffect(()=>{const l=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),n};let pf=1;class qS{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const l=this.subscribers.indexOf(i);this.subscribers.splice(l,1)}),this.publish=i=>{this.subscribers.forEach(l=>l(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var l;const{message:s,...c}=i,f=typeof i?.id=="number"||((l=i.id)==null?void 0:l.length)>0?i.id:pf++,d=this.toasts.find(g=>g.id===f),p=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(g=>g.id===f?(this.publish({...g,...i,id:f,title:s}),{...g,...i,id:f,dismissible:p,title:s}):g):this.addToast({title:s,...c,dismissible:p,id:f}),f},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(l=>l({id:i,dismiss:!0})))):this.toasts.forEach(l=>{this.subscribers.forEach(s=>s({id:l.id,dismiss:!0}))}),i),this.message=(i,l)=>this.create({...l,message:i}),this.error=(i,l)=>this.create({...l,message:i,type:"error"}),this.success=(i,l)=>this.create({...l,type:"success",message:i}),this.info=(i,l)=>this.create({...l,type:"info",message:i}),this.warning=(i,l)=>this.create({...l,type:"warning",message:i}),this.loading=(i,l)=>this.create({...l,type:"loading",message:i}),this.promise=(i,l)=>{if(!l)return;let s;l.loading!==void 0&&(s=this.create({...l,promise:i,type:"loading",message:l.loading,description:typeof l.description!="function"?l.description:void 0}));const c=Promise.resolve(i instanceof Function?i():i);let f=s!==void 0,d;const p=c.then(async m=>{if(d=["resolve",m],ee.isValidElement(m))f=!1,this.create({id:s,type:"default",message:m});else if(QS(m)&&!m.ok){f=!1;const y=typeof l.error=="function"?await l.error(`HTTP error! status: ${m.status}`):l.error,E=typeof l.description=="function"?await l.description(`HTTP error! status: ${m.status}`):l.description,U=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:E,...U})}else if(m instanceof Error){f=!1;const y=typeof l.error=="function"?await l.error(m):l.error,E=typeof l.description=="function"?await l.description(m):l.description,U=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:E,...U})}else if(l.success!==void 0){f=!1;const y=typeof l.success=="function"?await l.success(m):l.success,E=typeof l.description=="function"?await l.description(m):l.description,U=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:E,...U})}}).catch(async m=>{if(d=["reject",m],l.error!==void 0){f=!1;const b=typeof l.error=="function"?await l.error(m):l.error,y=typeof l.description=="function"?await l.description(m):l.description,M=typeof b=="object"&&!ee.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...M})}}).finally(()=>{f&&(this.dismiss(s),s=void 0),l.finally==null||l.finally.call(l)}),g=()=>new Promise((m,b)=>p.then(()=>d[0]==="reject"?b(d[1]):m(d[1])).catch(b));return typeof s!="string"&&typeof s!="number"?{unwrap:g}:Object.assign(s,{unwrap:g})},this.custom=(i,l)=>{const s=l?.id||pf++;return this.create({jsx:i(s),id:s,...l}),s},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const hn=new qS,HS=(n,i)=>{const l=i?.id||pf++;return hn.addToast({title:n,...i,id:l}),l},QS=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",VS=HS,YS=()=>hn.toasts,GS=()=>hn.getActiveToasts(),KS=Object.assign(VS,{success:hn.success,info:hn.info,warning:hn.warning,error:hn.error,custom:hn.custom,message:hn.message,promise:hn.promise,dismiss:hn.dismiss,loading:hn.loading},{getHistory:YS,getToasts:GS});OS("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function uo(n){return n.label!==void 0}const XS=3,PS="24px",FS="16px",ig=4e3,ZS=356,JS=14,IS=45,$S=200;function sa(...n){return n.filter(Boolean).join(" ")}function WS(n){const[i,l]=n.split("-"),s=[];return i&&s.push(i),l&&s.push(l),s}const e1=n=>{var i,l,s,c,f,d,p,g,m;const{invert:b,toast:y,unstyled:E,interacting:M,setHeights:U,visibleToasts:j,heights:K,index:G,toasts:J,expanded:$,removeToast:ye,defaultRichColors:he,closeButton:me,style:C,cancelButtonStyle:Y,actionButtonStyle:oe,className:Ae="",descriptionClassName:Ce="",duration:Te,position:Ue,gap:Le,expandByDefault:we,classNames:A,icons:F,closeButtonAriaLabel:q="Close toast"}=n,[ge,ve]=ee.useState(null),[x,H]=ee.useState(null),[B,Z]=ee.useState(!1),[te,ue]=ee.useState(!1),[ce,Re]=ee.useState(!1),[Ve,Ht]=ee.useState(!1),[$t,Je]=ee.useState(!1),[Gn,nn]=ee.useState(0),[vi,an]=ee.useState(0),ha=ee.useRef(y.duration||Te||ig),bi=ee.useRef(null),Ft=ee.useRef(null),Si=G===0,wi=G+1<=j,Qt=y.type,ta=y.dismissible!==!1,mt=y.className||"",ma=y.descriptionClassName||"",na=ee.useMemo(()=>K.findIndex(_e=>_e.toastId===y.id)||0,[K,y.id]),qa=ee.useMemo(()=>{var _e;return(_e=y.closeButton)!=null?_e:me},[y.closeButton,me]),Vt=ee.useMemo(()=>y.duration||Te||ig,[y.duration,Te]),Wt=ee.useRef(0),_n=ee.useRef(0),Zi=ee.useRef(0),Cn=ee.useRef(null),[pa,ut]=Ue.split("-"),rn=ee.useMemo(()=>K.reduce((_e,st,wt)=>wt>=na?_e:_e+st.height,0),[K,na]),kt=BS(),Ji=y.invert||b,Ei=Qt==="loading";_n.current=ee.useMemo(()=>na*Le+rn,[na,rn]),ee.useEffect(()=>{ha.current=Vt},[Vt]),ee.useEffect(()=>{Z(!0)},[]),ee.useEffect(()=>{const _e=Ft.current;if(_e){const st=_e.getBoundingClientRect().height;return an(st),U(wt=>[{toastId:y.id,height:st,position:y.position},...wt]),()=>U(wt=>wt.filter(Et=>Et.toastId!==y.id))}},[U,y.id]),ee.useLayoutEffect(()=>{if(!B)return;const _e=Ft.current,st=_e.style.height;_e.style.height="auto";const wt=_e.getBoundingClientRect().height;_e.style.height=st,an(wt),U(Et=>Et.find(ot=>ot.toastId===y.id)?Et.map(ot=>ot.toastId===y.id?{...ot,height:wt}:ot):[{toastId:y.id,height:wt,position:y.position},...Et])},[B,y.title,y.description,U,y.id,y.jsx,y.action,y.cancel]);const pn=ee.useCallback(()=>{ue(!0),nn(_n.current),U(_e=>_e.filter(st=>st.toastId!==y.id)),setTimeout(()=>{ye(y)},$S)},[y,ye,U,_n]);ee.useEffect(()=>{if(y.promise&&Qt==="loading"||y.duration===1/0||y.type==="loading")return;let _e;return $||M||kt?(()=>{if(Zi.current<Wt.current){const Et=new Date().getTime()-Wt.current;ha.current=ha.current-Et}Zi.current=new Date().getTime()})():ha.current!==1/0&&(Wt.current=new Date().getTime(),_e=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),pn()},ha.current)),()=>clearTimeout(_e)},[$,M,y,Qt,kt,pn]),ee.useEffect(()=>{y.delete&&(pn(),y.onDismiss==null||y.onDismiss.call(y,y))},[pn,y.delete]);function Kn(){var _e;if(F?.loading){var st;return ee.createElement("div",{className:sa(A?.loader,y==null||(st=y.classNames)==null?void 0:st.loader,"sonner-loader"),"data-visible":Qt==="loading"},F.loading)}return ee.createElement(NS,{className:sa(A?.loader,y==null||(_e=y.classNames)==null?void 0:_e.loader),visible:Qt==="loading"})}const ga=y.icon||F?.[Qt]||MS(Qt);var Xn,An;return ee.createElement("li",{tabIndex:0,ref:Ft,className:sa(Ae,mt,A?.toast,y==null||(i=y.classNames)==null?void 0:i.toast,A?.default,A?.[Qt],y==null||(l=y.classNames)==null?void 0:l[Qt]),"data-sonner-toast":"","data-rich-colors":(Xn=y.richColors)!=null?Xn:he,"data-styled":!(y.jsx||y.unstyled||E),"data-mounted":B,"data-promise":!!y.promise,"data-swiped":$t,"data-removed":te,"data-visible":wi,"data-y-position":pa,"data-x-position":ut,"data-index":G,"data-front":Si,"data-swiping":ce,"data-dismissible":ta,"data-type":Qt,"data-invert":Ji,"data-swipe-out":Ve,"data-swipe-direction":x,"data-expanded":!!($||we&&B),"data-testid":y.testId,style:{"--index":G,"--toasts-before":G,"--z-index":J.length-G,"--offset":`${te?Gn:_n.current}px`,"--initial-height":we?"auto":`${vi}px`,...C,...y.style},onDragEnd:()=>{Re(!1),ve(null),Cn.current=null},onPointerDown:_e=>{_e.button!==2&&(Ei||!ta||(bi.current=new Date,nn(_n.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(Re(!0),Cn.current={x:_e.clientX,y:_e.clientY})))},onPointerUp:()=>{var _e,st,wt;if(Ve||!ta)return;Cn.current=null;const Et=Number(((_e=Ft.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),gn=Number(((st=Ft.current)==null?void 0:st.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ot=new Date().getTime()-((wt=bi.current)==null?void 0:wt.getTime()),Zt=ge==="x"?Et:gn,ya=Math.abs(Zt)/ot;if(Math.abs(Zt)>=IS||ya>.11){nn(_n.current),y.onDismiss==null||y.onDismiss.call(y,y),H(ge==="x"?Et>0?"right":"left":gn>0?"down":"up"),pn(),Ht(!0);return}else{var S,_;(S=Ft.current)==null||S.style.setProperty("--swipe-amount-x","0px"),(_=Ft.current)==null||_.style.setProperty("--swipe-amount-y","0px")}Je(!1),Re(!1),ve(null)},onPointerMove:_e=>{var st,wt,Et;if(!Cn.current||!ta||((st=window.getSelection())==null?void 0:st.toString().length)>0)return;const ot=_e.clientY-Cn.current.y,Zt=_e.clientX-Cn.current.x;var ya;const S=(ya=n.swipeDirections)!=null?ya:WS(Ue);!ge&&(Math.abs(Zt)>1||Math.abs(ot)>1)&&ve(Math.abs(Zt)>Math.abs(ot)?"x":"y");let _={x:0,y:0};const z=I=>1/(1.5+Math.abs(I)/20);if(ge==="y"){if(S.includes("top")||S.includes("bottom"))if(S.includes("top")&&ot<0||S.includes("bottom")&&ot>0)_.y=ot;else{const I=ot*z(ot);_.y=Math.abs(I)<Math.abs(ot)?I:ot}}else if(ge==="x"&&(S.includes("left")||S.includes("right")))if(S.includes("left")&&Zt<0||S.includes("right")&&Zt>0)_.x=Zt;else{const I=Zt*z(Zt);_.x=Math.abs(I)<Math.abs(Zt)?I:Zt}(Math.abs(_.x)>0||Math.abs(_.y)>0)&&Je(!0),(wt=Ft.current)==null||wt.style.setProperty("--swipe-amount-x",`${_.x}px`),(Et=Ft.current)==null||Et.style.setProperty("--swipe-amount-y",`${_.y}px`)}},qa&&!y.jsx&&Qt!=="loading"?ee.createElement("button",{"aria-label":q,"data-disabled":Ei,"data-close-button":!0,onClick:Ei||!ta?()=>{}:()=>{pn(),y.onDismiss==null||y.onDismiss.call(y,y)},className:sa(A?.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(An=F?.close)!=null?An:jS):null,(Qt||y.icon||y.promise)&&y.icon!==null&&(F?.[Qt]!==null||y.icon)?ee.createElement("div",{"data-icon":"",className:sa(A?.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Kn():null,y.type!=="loading"?ga:null):null,ee.createElement("div",{"data-content":"",className:sa(A?.content,y==null||(f=y.classNames)==null?void 0:f.content)},ee.createElement("div",{"data-title":"",className:sa(A?.title,y==null||(d=y.classNames)==null?void 0:d.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?ee.createElement("div",{"data-description":"",className:sa(Ce,ma,A?.description,y==null||(p=y.classNames)==null?void 0:p.description)},typeof y.description=="function"?y.description():y.description):null),ee.isValidElement(y.cancel)?y.cancel:y.cancel&&uo(y.cancel)?ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||Y,onClick:_e=>{uo(y.cancel)&&ta&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,_e),pn())},className:sa(A?.cancelButton,y==null||(g=y.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,ee.isValidElement(y.action)?y.action:y.action&&uo(y.action)?ee.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||oe,onClick:_e=>{uo(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,_e),!_e.defaultPrevented&&pn())},className:sa(A?.actionButton,y==null||(m=y.classNames)==null?void 0:m.actionButton)},y.action.label):null)};function rg(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function t1(n,i){const l={};return[n,i].forEach((s,c)=>{const f=c===1,d=f?"--mobile-offset":"--offset",p=f?FS:PS;function g(m){["top","right","bottom","left"].forEach(b=>{l[`${d}-${b}`]=typeof m=="number"?`${m}px`:m})}typeof s=="number"||typeof s=="string"?g(s):typeof s=="object"?["top","right","bottom","left"].forEach(m=>{s[m]===void 0?l[`${d}-${m}`]=p:l[`${d}-${m}`]=typeof s[m]=="number"?`${s[m]}px`:s[m]}):g(p)}),l}const n1=ee.forwardRef(function(i,l){const{id:s,invert:c,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:p,closeButton:g,className:m,offset:b,mobileOffset:y,theme:E="light",richColors:M,duration:U,style:j,visibleToasts:K=XS,toastOptions:G,dir:J=rg(),gap:$=JS,icons:ye,containerAriaLabel:he="Notifications"}=i,[me,C]=ee.useState([]),Y=ee.useMemo(()=>s?me.filter(B=>B.toasterId===s):me.filter(B=>!B.toasterId),[me,s]),oe=ee.useMemo(()=>Array.from(new Set([f].concat(Y.filter(B=>B.position).map(B=>B.position)))),[Y,f]),[Ae,Ce]=ee.useState([]),[Te,Ue]=ee.useState(!1),[Le,we]=ee.useState(!1),[A,F]=ee.useState(E!=="system"?E:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),q=ee.useRef(null),ge=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),ve=ee.useRef(null),x=ee.useRef(!1),H=ee.useCallback(B=>{C(Z=>{var te;return(te=Z.find(ue=>ue.id===B.id))!=null&&te.delete||hn.dismiss(B.id),Z.filter(({id:ue})=>ue!==B.id)})},[]);return ee.useEffect(()=>hn.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{C(Z=>Z.map(te=>te.id===B.id?{...te,delete:!0}:te))});return}setTimeout(()=>{AS.flushSync(()=>{C(Z=>{const te=Z.findIndex(ue=>ue.id===B.id);return te!==-1?[...Z.slice(0,te),{...Z[te],...B},...Z.slice(te+1)]:[B,...Z]})})})}),[me]),ee.useEffect(()=>{if(E!=="system"){F(E);return}if(E==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:Z})=>{F(Z?"dark":"light")})}catch{B.addListener(({matches:te})=>{try{F(te?"dark":"light")}catch(ue){console.error(ue)}})}},[E]),ee.useEffect(()=>{me.length<=1&&Ue(!1)},[me]),ee.useEffect(()=>{const B=Z=>{var te;if(d.every(Re=>Z[Re]||Z.code===Re)){var ce;Ue(!0),(ce=q.current)==null||ce.focus()}Z.code==="Escape"&&(document.activeElement===q.current||(te=q.current)!=null&&te.contains(document.activeElement))&&Ue(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[d]),ee.useEffect(()=>{if(q.current)return()=>{ve.current&&(ve.current.focus({preventScroll:!0}),ve.current=null,x.current=!1)}},[q.current]),ee.createElement("section",{ref:l,"aria-label":`${he} ${ge}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},oe.map((B,Z)=>{var te;const[ue,ce]=B.split("-");return Y.length?ee.createElement("ol",{key:B,dir:J==="auto"?rg():J,tabIndex:-1,ref:q,className:m,"data-sonner-toaster":!0,"data-sonner-theme":A,"data-y-position":ue,"data-x-position":ce,style:{"--front-toast-height":`${((te=Ae[0])==null?void 0:te.height)||0}px`,"--width":`${ZS}px`,"--gap":`${$}px`,...j,...t1(b,y)},onBlur:Re=>{x.current&&!Re.currentTarget.contains(Re.relatedTarget)&&(x.current=!1,ve.current&&(ve.current.focus({preventScroll:!0}),ve.current=null))},onFocus:Re=>{Re.target instanceof HTMLElement&&Re.target.dataset.dismissible==="false"||x.current||(x.current=!0,ve.current=Re.relatedTarget)},onMouseEnter:()=>Ue(!0),onMouseMove:()=>Ue(!0),onMouseLeave:()=>{Le||Ue(!1)},onDragEnd:()=>Ue(!1),onPointerDown:Re=>{Re.target instanceof HTMLElement&&Re.target.dataset.dismissible==="false"||we(!0)},onPointerUp:()=>we(!1)},Y.filter(Re=>!Re.position&&Z===0||Re.position===B).map((Re,Ve)=>{var Ht,$t;return ee.createElement(e1,{key:Re.id,icons:ye,index:Ve,toast:Re,defaultRichColors:M,duration:(Ht=G?.duration)!=null?Ht:U,className:G?.className,descriptionClassName:G?.descriptionClassName,invert:c,visibleToasts:K,closeButton:($t=G?.closeButton)!=null?$t:g,interacting:Le,position:B,style:G?.style,unstyled:G?.unstyled,classNames:G?.classNames,cancelButtonStyle:G?.cancelButtonStyle,actionButtonStyle:G?.actionButtonStyle,closeButtonAriaLabel:G?.closeButtonAriaLabel,removeToast:H,toasts:Y.filter(Je=>Je.position==Re.position),heights:Ae.filter(Je=>Je.position==Re.position),setHeights:Ce,expandByDefault:p,gap:$,expanded:Te,swipeDirections:i.swipeDirections})})):null}))}),a1=new pS({defaultOptions:{queries:{staleTime:1e3*60,retry:1}}}),i1="modulepreload",r1=function(n){return"/"+n},lg={},da=function(i,l,s){let c=Promise.resolve();if(l&&l.length>0){let g=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");c=g(l.map(m=>{if(m=r1(m),m in lg)return;lg[m]=!0;const b=m.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const E=document.createElement("link");if(E.rel=b?"stylesheet":i1,b||(E.as="script"),E.crossOrigin="",E.href=m,p&&E.setAttribute("nonce",p),document.head.appendChild(E),b)return new Promise((M,U)=>{E.addEventListener("load",M),E.addEventListener("error",()=>U(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return c.then(d=>{for(const p of d||[])p.status==="rejected"&&f(p.reason);return i().catch(f)})};var yy=n=>{throw TypeError(n)},l1=(n,i,l)=>i.has(n)||yy("Cannot "+l),Fc=(n,i,l)=>(l1(n,i,"read from private field"),l?l.call(n):i.get(n)),s1=(n,i,l)=>i.has(n)?yy("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,l),sg="popstate";function o1(n={}){function i(s,c){let{pathname:f,search:d,hash:p}=s.location;return Vl("",{pathname:f,search:d,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function l(s,c){return typeof c=="string"?c:ca(c)}return c1(i,l,null,n)}function je(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function Nt(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function u1(){return Math.random().toString(36).substring(2,10)}function og(n,i){return{usr:n.state,key:n.key,idx:i}}function Vl(n,i,l=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?gi(i):i,state:l,key:i&&i.key||s||u1()}}function ca({pathname:n="/",search:i="",hash:l=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function gi(n){let i={};if(n){let l=n.indexOf("#");l>=0&&(i.hash=n.substring(l),n=n.substring(0,l));let s=n.indexOf("?");s>=0&&(i.search=n.substring(s),n=n.substring(0,s)),n&&(i.pathname=n)}return i}function c1(n,i,l,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,d=c.history,p="POP",g=null,m=b();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function b(){return(d.state||{idx:null}).idx}function y(){p="POP";let K=b(),G=K==null?null:K-m;m=K,g&&g({action:p,location:j.location,delta:G})}function E(K,G){p="PUSH";let J=Vl(j.location,K,G);m=b()+1;let $=og(J,m),ye=j.createHref(J);try{d.pushState($,"",ye)}catch(he){if(he instanceof DOMException&&he.name==="DataCloneError")throw he;c.location.assign(ye)}f&&g&&g({action:p,location:j.location,delta:1})}function M(K,G){p="REPLACE";let J=Vl(j.location,K,G);m=b();let $=og(J,m),ye=j.createHref(J);d.replaceState($,"",ye),f&&g&&g({action:p,location:j.location,delta:0})}function U(K){return vy(K)}let j={get action(){return p},get location(){return n(c,d)},listen(K){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(sg,y),g=K,()=>{c.removeEventListener(sg,y),g=null}},createHref(K){return i(c,K)},createURL:U,encodeLocation(K){let G=U(K);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:E,replace:M,go(K){return d.go(K)}};return j}function vy(n,i=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),je(l,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:ca(n);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=l+s),new URL(s,l)}var Ll,ug=class{constructor(n){if(s1(this,Ll,new Map),n)for(let[i,l]of n)this.set(i,l)}get(n){if(Fc(this,Ll).has(n))return Fc(this,Ll).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,i){Fc(this,Ll).set(n,i)}};Ll=new WeakMap;var f1=new Set(["lazy","caseSensitive","path","id","index","children"]);function d1(n){return f1.has(n)}var h1=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function m1(n){return h1.has(n)}function p1(n){return n.index===!0}function Yl(n,i,l=[],s={},c=!1){return n.map((f,d)=>{let p=[...l,String(d)],g=typeof f.id=="string"?f.id:p.join("-");if(je(f.index!==!0||!f.children,"Cannot specify children on an index route"),je(c||!s[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),p1(f)){let m={...f,id:g};return s[g]=cg(m,i(m)),m}else{let m={...f,id:g,children:void 0};return s[g]=cg(m,i(m)),f.children&&(m.children=Yl(f.children,i,p,s,c)),m}})}function cg(n,i){return Object.assign(n,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...n.lazy,...i.lazy}}:{}})}function ci(n,i,l="/"){return jl(n,i,l,!1)}function jl(n,i,l,s){let c=typeof i=="string"?gi(i):i,f=Vn(c.pathname||"/",l);if(f==null)return null;let d=by(n);y1(d);let p=null;for(let g=0;p==null&&g<d.length;++g){let m=A1(f);p=_1(d[g],m,s)}return p}function g1(n,i){let{route:l,pathname:s,params:c}=n;return{id:l.id,pathname:s,params:c,data:i[l.id],loaderData:i[l.id],handle:l.handle}}function by(n,i=[],l=[],s="",c=!1){let f=(d,p,g=c,m)=>{let b={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:p,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&g)return;je(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let y=ua([s,b.relativePath]),E=l.concat(b);d.children&&d.children.length>0&&(je(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),by(d.children,i,E,y,g)),!(d.path==null&&!d.index)&&i.push({path:y,score:T1(y,d.index),routesMeta:E})};return n.forEach((d,p)=>{if(d.path===""||!d.path?.includes("?"))f(d,p);else for(let g of Sy(d.path))f(d,p,!0,g)}),i}function Sy(n){let i=n.split("/");if(i.length===0)return[];let[l,...s]=i,c=l.endsWith("?"),f=l.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let d=Sy(s.join("/")),p=[];return p.push(...d.map(g=>g===""?f:[f,g].join("/"))),c&&p.push(...d),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function y1(n){n.sort((i,l)=>i.score!==l.score?l.score-i.score:R1(i.routesMeta.map(s=>s.childrenIndex),l.routesMeta.map(s=>s.childrenIndex)))}var v1=/^:[\w-]+$/,b1=3,S1=2,w1=1,E1=10,x1=-2,fg=n=>n==="*";function T1(n,i){let l=n.split("/"),s=l.length;return l.some(fg)&&(s+=x1),i&&(s+=S1),l.filter(c=>!fg(c)).reduce((c,f)=>c+(v1.test(f)?b1:f===""?w1:E1),s)}function R1(n,i){return n.length===i.length&&n.slice(0,-1).every((s,c)=>s===i[c])?n[n.length-1]-i[i.length-1]:0}function _1(n,i,l=!1){let{routesMeta:s}=n,c={},f="/",d=[];for(let p=0;p<s.length;++p){let g=s[p],m=p===s.length-1,b=f==="/"?i:i.slice(f.length)||"/",y=Mo({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},b),E=g.route;if(!y&&m&&l&&!s[s.length-1].route.index&&(y=Mo({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!y)return null;Object.assign(c,y.params),d.push({params:c,pathname:ua([f,y.pathname]),pathnameBase:D1(ua([f,y.pathnameBase])),route:E}),y.pathnameBase!=="/"&&(f=ua([f,y.pathnameBase]))}return d}function Mo(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[l,s]=C1(n.path,n.caseSensitive,n.end),c=i.match(l);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),p=c.slice(1);return{params:s.reduce((m,{paramName:b,isOptional:y},E)=>{if(b==="*"){let U=p[E]||"";d=f.slice(0,f.length-U.length).replace(/(.)\/+$/,"$1")}const M=p[E];return y&&!M?m[b]=void 0:m[b]=(M||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:d,pattern:n}}function C1(n,i=!1,l=!0){Nt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,g)=>(s.push({paramName:p,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),s]}function A1(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Nt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Vn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let l=i.endsWith("/")?i.length-1:i.length,s=n.charAt(l);return s&&s!=="/"?null:n.slice(l)||"/"}function O1({basename:n,pathname:i}){return i==="/"?n:ua([n,i])}var wy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zf=n=>wy.test(n);function M1(n,i="/"){let{pathname:l,search:s="",hash:c=""}=typeof n=="string"?gi(n):n,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=dg(l.substring(1),"/"):f=dg(l,i)):f=i,{pathname:f,search:N1(s),hash:k1(c)}}function dg(n,i){let l=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?l.length>1&&l.pop():c!=="."&&l.push(c)}),l.length>1?l.join("/"):"/"}function Zc(n,i,l,s){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ey(n){return n.filter((i,l)=>l===0||i.route.path&&i.route.path.length>0)}function Uf(n){let i=Ey(n);return i.map((l,s)=>s===i.length-1?l.pathname:l.pathnameBase)}function Lf(n,i,l,s=!1){let c;typeof n=="string"?c=gi(n):(c={...n},je(!c.pathname||!c.pathname.includes("?"),Zc("?","pathname","search",c)),je(!c.pathname||!c.pathname.includes("#"),Zc("#","pathname","hash",c)),je(!c.search||!c.search.includes("#"),Zc("#","search","hash",c)));let f=n===""||c.pathname==="",d=f?"/":c.pathname,p;if(d==null)p=l;else{let y=i.length-1;if(!s&&d.startsWith("..")){let E=d.split("/");for(;E[0]==="..";)E.shift(),y-=1;c.pathname=E.join("/")}p=y>=0?i[y]:"/"}let g=M1(c,p),m=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&l.endsWith("/");return!g.pathname.endsWith("/")&&(m||b)&&(g.pathname+="/"),g}var ua=n=>n.join("/").replace(/\/\/+/g,"/"),D1=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),N1=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,k1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Xl=class{constructor(n,i,l,s=!1){this.status=n,this.statusText=i||"",this.internal=s,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function Gl(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Pl(n){return n.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var xy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ty(n,i){let l=n;if(typeof l!="string"||!wy.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let s=l,c=!1;if(xy)try{let f=new URL(window.location.href),d=l.startsWith("//")?new URL(f.protocol+l):new URL(l),p=Vn(d.pathname,i);d.origin===f.origin&&p!=null?l=p+d.search+d.hash:c=!0}catch{Nt(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:l}}var di=Symbol("Uninstrumented");function z1(n,i){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(c=>c({id:i.id,index:i.index,path:i.path,instrument(f){let d=Object.keys(l);for(let p of d)f[p]&&l[p].push(f[p])}}));let s={};if(typeof i.lazy=="function"&&l.lazy.length>0){let c=Nr(l.lazy,i.lazy,()=>{});c&&(s.lazy=c)}if(typeof i.lazy=="object"){let c=i.lazy;["middleware","loader","action"].forEach(f=>{let d=c[f],p=l[`lazy.${f}`];if(typeof d=="function"&&p.length>0){let g=Nr(p,d,()=>{});g&&(s.lazy=Object.assign(s.lazy||{},{[f]:g}))}})}return["loader","action"].forEach(c=>{let f=i[c];if(typeof f=="function"&&l[c].length>0){let d=f[di]??f,p=Nr(l[c],d,(...g)=>hg(g[0]));p&&(c==="loader"&&d.hydrate===!0&&(p.hydrate=!0),p[di]=d,s[c]=p)}}),i.middleware&&i.middleware.length>0&&l.middleware.length>0&&(s.middleware=i.middleware.map(c=>{let f=c[di]??c,d=Nr(l.middleware,f,(...p)=>hg(p[0]));return d?(d[di]=f,d):c})),s}function U1(n,i){let l={navigate:[],fetch:[]};if(i.forEach(s=>s({instrument(c){let f=Object.keys(c);for(let d of f)c[d]&&l[d].push(c[d])}})),l.navigate.length>0){let s=n.navigate[di]??n.navigate,c=Nr(l.navigate,s,(...f)=>{let[d,p]=f;return{to:typeof d=="number"||typeof d=="string"?d:d?ca(d):".",...mg(n,p??{})}});c&&(c[di]=s,n.navigate=c)}if(l.fetch.length>0){let s=n.fetch[di]??n.fetch,c=Nr(l.fetch,s,(...f)=>{let[d,,p,g]=f;return{href:p??".",fetcherKey:d,...mg(n,g??{})}});c&&(c[di]=s,n.fetch=c)}return n}function Nr(n,i,l){return n.length===0?null:async(...s)=>{let c=await Ry(n,l(...s),()=>i(...s),n.length-1);if(c.type==="error")throw c.value;return c.value}}async function Ry(n,i,l,s){let c=n[s],f;if(c){let d,p=async()=>(d?console.error("You cannot call instrumented handlers more than once"):d=Ry(n,i,l,s-1),f=await d,je(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await c(p,i)}catch(g){console.error("An instrumentation function threw an error:",g)}d||await p(),await d}else try{f={type:"success",value:await l()}}catch(d){f={type:"error",value:d}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function hg(n){let{request:i,context:l,params:s,unstable_pattern:c}=n;return{request:L1(i),params:{...s},unstable_pattern:c,context:j1(l)}}function mg(n,i){return{currentUrl:ca(n.state.location),..."formMethod"in i?{formMethod:i.formMethod}:{},..."formEncType"in i?{formEncType:i.formEncType}:{},..."formData"in i?{formData:i.formData}:{},..."body"in i?{body:i.body}:{}}}function L1(n){return{method:n.method,url:n.url,headers:{get:(...i)=>n.headers.get(...i)}}}function j1(n){if(q1(n)){let i={...n};return Object.freeze(i),i}else return{get:i=>n.get(i)}}var B1=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function q1(n){if(n===null||typeof n!="object")return!1;const i=Object.getPrototypeOf(n);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===B1}var _y=["POST","PUT","PATCH","DELETE"],H1=new Set(_y),Q1=["GET",..._y],V1=new Set(Q1),Cy=new Set([301,302,303,307,308]),Y1=new Set([307,308]),Jc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},G1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Dl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},K1=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Ay="remix-router-transitions",Oy=Symbol("ResetLoaderData");function X1(n){const i=n.window?n.window:typeof window<"u"?window:void 0,l=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";je(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=n.hydrationRouteProperties||[],c=n.mapRouteProperties||K1,f=c;if(n.unstable_instrumentations){let S=n.unstable_instrumentations;f=_=>({...c(_),...z1(S.map(z=>z.route).filter(Boolean),_)})}let d={},p=Yl(n.routes,f,void 0,d),g,m=n.basename||"/";m.startsWith("/")||(m=`/${m}`);let b=n.dataStrategy||I1,y={...n.future},E=null,M=new Set,U=null,j=null,K=null,G=n.hydrationData!=null,J=ci(p,n.history.location,m),$=!1,ye=null,he;if(J==null&&!n.patchRoutesOnNavigation){let S=qn(404,{pathname:n.history.location.pathname}),{matches:_,route:z}=co(p);he=!0,J=_,ye={[z.id]:S}}else if(J&&!n.hydrationData&&Et(J,p,n.history.location.pathname).active&&(J=null),J)if(J.some(S=>S.route.lazy))he=!1;else if(!J.some(S=>jf(S.route)))he=!0;else{let S=n.hydrationData?n.hydrationData.loaderData:null,_=n.hydrationData?n.hydrationData.errors:null;if(_){let z=J.findIndex(I=>_[I.route.id]!==void 0);he=J.slice(0,z+1).every(I=>!yf(I.route,S,_))}else he=J.every(z=>!yf(z.route,S,_))}else{he=!1,J=[];let S=Et(null,p,n.history.location.pathname);S.active&&S.matches&&($=!0,J=S.matches)}let me,C={historyAction:n.history.action,location:n.history.location,matches:J,initialized:he,navigation:Jc,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||ye,fetchers:new Map,blockers:new Map},Y="POP",oe=null,Ae=!1,Ce,Te=!1,Ue=new Map,Le=null,we=!1,A=!1,F=new Set,q=new Map,ge=0,ve=-1,x=new Map,H=new Set,B=new Map,Z=new Map,te=new Set,ue=new Map,ce,Re=null;function Ve(){if(E=n.history.listen(({action:S,location:_,delta:z})=>{if(ce){ce(),ce=void 0;return}Nt(ue.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=ga({currentLocation:C.location,nextLocation:_,historyAction:S});if(I&&z!=null){let W=new Promise(pe=>{ce=pe});n.history.go(z*-1),Kn(I,{state:"blocked",location:_,proceed(){Kn(I,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),W.then(()=>n.history.go(z))},reset(){let pe=new Map(C.blockers);pe.set(I,Dl),Je({blockers:pe})}}),oe?.resolve(),oe=null;return}return an(S,_)}),l){pw(i,Ue);let S=()=>gw(i,Ue);i.addEventListener("pagehide",S),Le=()=>i.removeEventListener("pagehide",S)}return C.initialized||an("POP",C.location,{initialHydration:!0}),me}function Ht(){E&&E(),Le&&Le(),M.clear(),Ce&&Ce.abort(),C.fetchers.forEach((S,_)=>Cn(_)),C.blockers.forEach((S,_)=>pn(_))}function $t(S){return M.add(S),()=>M.delete(S)}function Je(S,_={}){S.matches&&(S.matches=S.matches.map(W=>{let pe=d[W.route.id],ae=W.route;return ae.element!==pe.element||ae.errorElement!==pe.errorElement||ae.hydrateFallbackElement!==pe.hydrateFallbackElement?{...W,route:pe}:W})),C={...C,...S};let z=[],I=[];C.fetchers.forEach((W,pe)=>{W.state==="idle"&&(te.has(pe)?z.push(pe):I.push(pe))}),te.forEach(W=>{!C.fetchers.has(W)&&!q.has(W)&&z.push(W)}),[...M].forEach(W=>W(C,{deletedFetchers:z,newErrors:S.errors??null,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),z.forEach(W=>Cn(W)),I.forEach(W=>C.fetchers.delete(W))}function Gn(S,_,{flushSync:z}={}){let I=C.actionData!=null&&C.navigation.formMethod!=null&&It(C.navigation.formMethod)&&C.navigation.state==="loading"&&S.state?._isRedirect!==!0,W;_.actionData?Object.keys(_.actionData).length>0?W=_.actionData:W=null:I?W=C.actionData:W=null;let pe=_.loaderData?Tg(C.loaderData,_.loaderData,_.matches||[],_.errors):C.loaderData,ae=C.blockers;ae.size>0&&(ae=new Map(ae),ae.forEach((Ee,be)=>ae.set(be,Dl)));let ne=we?!1:wt(S,_.matches||C.matches),ie=Ae===!0||C.navigation.formMethod!=null&&It(C.navigation.formMethod)&&S.state?._isRedirect!==!0;g&&(p=g,g=void 0),we||Y==="POP"||(Y==="PUSH"?n.history.push(S,S.state):Y==="REPLACE"&&n.history.replace(S,S.state));let de;if(Y==="POP"){let Ee=Ue.get(C.location.pathname);Ee&&Ee.has(S.pathname)?de={currentLocation:C.location,nextLocation:S}:Ue.has(S.pathname)&&(de={currentLocation:S,nextLocation:C.location})}else if(Te){let Ee=Ue.get(C.location.pathname);Ee?Ee.add(S.pathname):(Ee=new Set([S.pathname]),Ue.set(C.location.pathname,Ee)),de={currentLocation:C.location,nextLocation:S}}Je({..._,actionData:W,loaderData:pe,historyAction:Y,location:S,initialized:!0,navigation:Jc,revalidation:"idle",restoreScrollPosition:ne,preventScrollReset:ie,blockers:ae},{viewTransitionOpts:de,flushSync:z===!0}),Y="POP",Ae=!1,Te=!1,we=!1,A=!1,oe?.resolve(),oe=null,Re?.resolve(),Re=null}async function nn(S,_){if(oe?.resolve(),oe=null,typeof S=="number"){oe||(oe=Ag());let Ye=oe.promise;return n.history.go(S),Ye}let z=gf(C.location,C.matches,m,S,_?.fromRouteId,_?.relative),{path:I,submission:W,error:pe}=pg(!1,z,_),ae=C.location,ne=Vl(C.location,I,_&&_.state);ne={...ne,...n.history.encodeLocation(ne)};let ie=_&&_.replace!=null?_.replace:void 0,de="PUSH";ie===!0?de="REPLACE":ie===!1||W!=null&&It(W.formMethod)&&W.formAction===C.location.pathname+C.location.search&&(de="REPLACE");let Ee=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,be=(_&&_.flushSync)===!0,Ze=ga({currentLocation:ae,nextLocation:ne,historyAction:de});if(Ze){Kn(Ze,{state:"blocked",location:ne,proceed(){Kn(Ze,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),nn(S,_)},reset(){let Ye=new Map(C.blockers);Ye.set(Ze,Dl),Je({blockers:Ye})}});return}await an(de,ne,{submission:W,pendingError:pe,preventScrollReset:Ee,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:be,callSiteDefaultShouldRevalidate:_&&_.unstable_defaultShouldRevalidate})}function vi(){Re||(Re=Ag()),qa(),Je({revalidation:"loading"});let S=Re.promise;return C.navigation.state==="submitting"?S:C.navigation.state==="idle"?(an(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),S):(an(Y||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:Te===!0}),S)}async function an(S,_,z){Ce&&Ce.abort(),Ce=null,Y=S,we=(z&&z.startUninterruptedRevalidation)===!0,st(C.location,C.matches),Ae=(z&&z.preventScrollReset)===!0,Te=(z&&z.enableViewTransition)===!0;let I=g||p,W=z&&z.overrideNavigation,pe=z?.initialHydration&&C.matches&&C.matches.length>0&&!$?C.matches:ci(I,_,m),ae=(z&&z.flushSync)===!0;if(pe&&C.initialized&&!A&&rw(C.location,_)&&!(z&&z.submission&&It(z.submission.formMethod))){Gn(_,{matches:pe},{flushSync:ae});return}let ne=Et(pe,I,_.pathname);if(ne.active&&ne.matches&&(pe=ne.matches),!pe){let{error:yt,notFoundMatches:vt,route:Ge}=Xn(_.pathname);Gn(_,{matches:vt,loaderData:{},errors:{[Ge.id]:yt}},{flushSync:ae});return}Ce=new AbortController;let ie=Dr(n.history,_,Ce.signal,z&&z.submission),de=n.getContext?await n.getContext():new ug,Ee;if(z&&z.pendingError)Ee=[fi(pe).route.id,{type:"error",error:z.pendingError}];else if(z&&z.submission&&It(z.submission.formMethod)){let yt=await ha(ie,_,z.submission,pe,de,ne.active,z&&z.initialHydration===!0,{replace:z.replace,flushSync:ae});if(yt.shortCircuited)return;if(yt.pendingActionResult){let[vt,Ge]=yt.pendingActionResult;if(Rn(Ge)&&Gl(Ge.error)&&Ge.error.status===404){Ce=null,Gn(_,{matches:yt.matches,loaderData:{},errors:{[vt]:Ge.error}});return}}pe=yt.matches||pe,Ee=yt.pendingActionResult,W=Ic(_,z.submission),ae=!1,ne.active=!1,ie=Dr(n.history,ie.url,ie.signal)}let{shortCircuited:be,matches:Ze,loaderData:Ye,errors:pt}=await bi(ie,_,pe,de,ne.active,W,z&&z.submission,z&&z.fetcherSubmission,z&&z.replace,z&&z.initialHydration===!0,ae,Ee,z&&z.callSiteDefaultShouldRevalidate);be||(Ce=null,Gn(_,{matches:Ze||pe,...Rg(Ee),loaderData:Ye,errors:pt}))}async function ha(S,_,z,I,W,pe,ae,ne={}){qa();let ie=hw(_,z);if(Je({navigation:ie},{flushSync:ne.flushSync===!0}),pe){let be=await gn(I,_.pathname,S.signal);if(be.type==="aborted")return{shortCircuited:!0};if(be.type==="error"){if(be.partialMatches.length===0){let{matches:Ye,route:pt}=co(p);return{matches:Ye,pendingActionResult:[pt.id,{type:"error",error:be.error}]}}let Ze=fi(be.partialMatches).route.id;return{matches:be.partialMatches,pendingActionResult:[Ze,{type:"error",error:be.error}]}}else if(be.matches)I=be.matches;else{let{notFoundMatches:Ze,error:Ye,route:pt}=Xn(_.pathname);return{matches:Ze,pendingActionResult:[pt.id,{type:"error",error:Ye}]}}}let de,Ee=bo(I,_);if(!Ee.route.action&&!Ee.route.lazy)de={type:"error",error:qn(405,{method:S.method,pathname:_.pathname,routeId:Ee.route.id})};else{let be=kr(f,d,S,I,Ee,ae?[]:s,W),Ze=await ma(S,be,W,null);if(de=Ze[Ee.route.id],!de){for(let Ye of I)if(Ze[Ye.route.id]){de=Ze[Ye.route.id];break}}if(S.signal.aborted)return{shortCircuited:!0}}if(Gi(de)){let be;return ne&&ne.replace!=null?be=ne.replace:be=wg(de.response.headers.get("Location"),new URL(S.url),m,n.history)===C.location.pathname+C.location.search,await mt(S,de,!0,{submission:z,replace:be}),{shortCircuited:!0}}if(Rn(de)){let be=fi(I,Ee.route.id);return(ne&&ne.replace)!==!0&&(Y="PUSH"),{matches:I,pendingActionResult:[be.route.id,de,Ee.route.id]}}return{matches:I,pendingActionResult:[Ee.route.id,de]}}async function bi(S,_,z,I,W,pe,ae,ne,ie,de,Ee,be,Ze){let Ye=pe||Ic(_,ae),pt=ae||ne||Cg(Ye),yt=!we&&!de;if(W){if(yt){let xt=Ft(be);Je({navigation:Ye,...xt!==void 0?{actionData:xt}:{}},{flushSync:Ee})}let Ke=await gn(z,_.pathname,S.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){if(Ke.partialMatches.length===0){let{matches:Zn,route:Yt}=co(p);return{matches:Zn,loaderData:{},errors:{[Yt.id]:Ke.error}}}let xt=fi(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[xt]:Ke.error}}}else if(Ke.matches)z=Ke.matches;else{let{error:xt,notFoundMatches:Zn,route:Yt}=Xn(_.pathname);return{matches:Zn,loaderData:{},errors:{[Yt.id]:xt}}}}let vt=g||p,{dsMatches:Ge,revalidatingFetchers:jt}=gg(S,I,f,d,n.history,C,z,pt,_,de?[]:s,de===!0,A,F,te,B,H,vt,m,n.patchRoutesOnNavigation!=null,be,Ze);if(ve=++ge,!n.dataStrategy&&!Ge.some(Ke=>Ke.shouldLoad)&&!Ge.some(Ke=>Ke.route.middleware&&Ke.route.middleware.length>0)&&jt.length===0){let Ke=kt();return Gn(_,{matches:z,loaderData:{},errors:be&&Rn(be[1])?{[be[0]]:be[1].error}:null,...Rg(be),...Ke?{fetchers:new Map(C.fetchers)}:{}},{flushSync:Ee}),{shortCircuited:!0}}if(yt){let Ke={};if(!W){Ke.navigation=Ye;let xt=Ft(be);xt!==void 0&&(Ke.actionData=xt)}jt.length>0&&(Ke.fetchers=Si(jt)),Je(Ke,{flushSync:Ee})}jt.forEach(Ke=>{ut(Ke.key),Ke.controller&&q.set(Ke.key,Ke.controller)});let ln=()=>jt.forEach(Ke=>ut(Ke.key));Ce&&Ce.signal.addEventListener("abort",ln);let{loaderResults:dt,fetcherResults:Pn}=await na(Ge,jt,S,I);if(S.signal.aborted)return{shortCircuited:!0};Ce&&Ce.signal.removeEventListener("abort",ln),jt.forEach(Ke=>q.delete(Ke.key));let yn=fo(dt);if(yn)return await mt(S,yn.result,!0,{replace:ie}),{shortCircuited:!0};if(yn=fo(Pn),yn)return H.add(yn.key),await mt(S,yn.result,!0,{replace:ie}),{shortCircuited:!0};let{loaderData:Fn,errors:On}=xg(C,z,dt,be,jt,Pn);de&&C.errors&&(On={...C.errors,...On});let va=kt(),xi=Ji(ve),Ti=va||xi||jt.length>0;return{matches:z,loaderData:Fn,errors:On,...Ti?{fetchers:new Map(C.fetchers)}:{}}}function Ft(S){if(S&&!Rn(S[1]))return{[S[0]]:S[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Si(S){return S.forEach(_=>{let z=C.fetchers.get(_.key),I=Nl(void 0,z?z.data:void 0);C.fetchers.set(_.key,I)}),new Map(C.fetchers)}async function wi(S,_,z,I){ut(S);let W=(I&&I.flushSync)===!0,pe=g||p,ae=gf(C.location,C.matches,m,z,_,I?.relative),ne=ci(pe,ae,m),ie=Et(ne,pe,ae);if(ie.active&&ie.matches&&(ne=ie.matches),!ne){Wt(S,_,qn(404,{pathname:ae}),{flushSync:W});return}let{path:de,submission:Ee,error:be}=pg(!0,ae,I);if(be){Wt(S,_,be,{flushSync:W});return}let Ze=n.getContext?await n.getContext():new ug,Ye=(I&&I.preventScrollReset)===!0;if(Ee&&It(Ee.formMethod)){await Qt(S,_,de,ne,Ze,ie.active,W,Ye,Ee,I&&I.unstable_defaultShouldRevalidate);return}B.set(S,{routeId:_,path:de}),await ta(S,_,de,ne,Ze,ie.active,W,Ye,Ee)}async function Qt(S,_,z,I,W,pe,ae,ne,ie,de){qa(),B.delete(S);let Ee=C.fetchers.get(S);Vt(S,mw(ie,Ee),{flushSync:ae});let be=new AbortController,Ze=Dr(n.history,z,be.signal,ie);if(pe){let Xe=await gn(I,new URL(Ze.url).pathname,Ze.signal,S);if(Xe.type==="aborted")return;if(Xe.type==="error"){Wt(S,_,Xe.error,{flushSync:ae});return}else if(Xe.matches)I=Xe.matches;else{Wt(S,_,qn(404,{pathname:z}),{flushSync:ae});return}}let Ye=bo(I,z);if(!Ye.route.action&&!Ye.route.lazy){let Xe=qn(405,{method:ie.formMethod,pathname:z,routeId:_});Wt(S,_,Xe,{flushSync:ae});return}q.set(S,be);let pt=ge,yt=kr(f,d,Ze,I,Ye,s,W),vt=await ma(Ze,yt,W,S),Ge=vt[Ye.route.id];if(!Ge){for(let Xe of yt)if(vt[Xe.route.id]){Ge=vt[Xe.route.id];break}}if(Ze.signal.aborted){q.get(S)===be&&q.delete(S);return}if(te.has(S)){if(Gi(Ge)||Rn(Ge)){Vt(S,ja(void 0));return}}else{if(Gi(Ge))if(q.delete(S),ve>pt){Vt(S,ja(void 0));return}else return H.add(S),Vt(S,Nl(ie)),mt(Ze,Ge,!1,{fetcherSubmission:ie,preventScrollReset:ne});if(Rn(Ge)){Wt(S,_,Ge.error);return}}let jt=C.navigation.location||C.location,ln=Dr(n.history,jt,be.signal),dt=g||p,Pn=C.navigation.state!=="idle"?ci(dt,C.navigation.location,m):C.matches;je(Pn,"Didn't find any matches after fetcher action");let yn=++ge;x.set(S,yn);let Fn=Nl(ie,Ge.data);C.fetchers.set(S,Fn);let{dsMatches:On,revalidatingFetchers:va}=gg(ln,W,f,d,n.history,C,Pn,ie,jt,s,!1,A,F,te,B,H,dt,m,n.patchRoutesOnNavigation!=null,[Ye.route.id,Ge],de);va.filter(Xe=>Xe.key!==S).forEach(Xe=>{let Ri=Xe.key,Il=C.fetchers.get(Ri),Qr=Nl(void 0,Il?Il.data:void 0);C.fetchers.set(Ri,Qr),ut(Ri),Xe.controller&&q.set(Ri,Xe.controller)}),Je({fetchers:new Map(C.fetchers)});let xi=()=>va.forEach(Xe=>ut(Xe.key));be.signal.addEventListener("abort",xi);let{loaderResults:Ti,fetcherResults:Ke}=await na(On,va,ln,W);if(be.signal.aborted)return;if(be.signal.removeEventListener("abort",xi),x.delete(S),q.delete(S),va.forEach(Xe=>q.delete(Xe.key)),C.fetchers.has(S)){let Xe=ja(Ge.data);C.fetchers.set(S,Xe)}let xt=fo(Ti);if(xt)return mt(ln,xt.result,!1,{preventScrollReset:ne});if(xt=fo(Ke),xt)return H.add(xt.key),mt(ln,xt.result,!1,{preventScrollReset:ne});let{loaderData:Zn,errors:Yt}=xg(C,Pn,Ti,void 0,va,Ke);Ji(yn),C.navigation.state==="loading"&&yn>ve?(je(Y,"Expected pending action"),Ce&&Ce.abort(),Gn(C.navigation.location,{matches:Pn,loaderData:Zn,errors:Yt,fetchers:new Map(C.fetchers)})):(Je({errors:Yt,loaderData:Tg(C.loaderData,Zn,Pn,Yt),fetchers:new Map(C.fetchers)}),A=!1)}async function ta(S,_,z,I,W,pe,ae,ne,ie){let de=C.fetchers.get(S);Vt(S,Nl(ie,de?de.data:void 0),{flushSync:ae});let Ee=new AbortController,be=Dr(n.history,z,Ee.signal);if(pe){let Ge=await gn(I,new URL(be.url).pathname,be.signal,S);if(Ge.type==="aborted")return;if(Ge.type==="error"){Wt(S,_,Ge.error,{flushSync:ae});return}else if(Ge.matches)I=Ge.matches;else{Wt(S,_,qn(404,{pathname:z}),{flushSync:ae});return}}let Ze=bo(I,z);q.set(S,Ee);let Ye=ge,pt=kr(f,d,be,I,Ze,s,W),vt=(await ma(be,pt,W,S))[Ze.route.id];if(q.get(S)===Ee&&q.delete(S),!be.signal.aborted){if(te.has(S)){Vt(S,ja(void 0));return}if(Gi(vt))if(ve>Ye){Vt(S,ja(void 0));return}else{H.add(S),await mt(be,vt,!1,{preventScrollReset:ne});return}if(Rn(vt)){Wt(S,_,vt.error);return}Vt(S,ja(vt.data))}}async function mt(S,_,z,{submission:I,fetcherSubmission:W,preventScrollReset:pe,replace:ae}={}){z||(oe?.resolve(),oe=null),_.response.headers.has("X-Remix-Revalidate")&&(A=!0);let ne=_.response.headers.get("Location");je(ne,"Expected a Location header on the redirect Response"),ne=wg(ne,new URL(S.url),m,n.history);let ie=Vl(C.location,ne,{_isRedirect:!0});if(l){let pt=!1;if(_.response.headers.has("X-Remix-Reload-Document"))pt=!0;else if(zf(ne)){const yt=vy(ne,!0);pt=yt.origin!==i.location.origin||Vn(yt.pathname,m)==null}if(pt){ae?i.location.replace(ne):i.location.assign(ne);return}}Ce=null;let de=ae===!0||_.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ee,formAction:be,formEncType:Ze}=C.navigation;!I&&!W&&Ee&&be&&Ze&&(I=Cg(C.navigation));let Ye=I||W;if(Y1.has(_.response.status)&&Ye&&It(Ye.formMethod))await an(de,ie,{submission:{...Ye,formAction:ne},preventScrollReset:pe||Ae,enableViewTransition:z?Te:void 0});else{let pt=Ic(ie,I);await an(de,ie,{overrideNavigation:pt,fetcherSubmission:W,preventScrollReset:pe||Ae,enableViewTransition:z?Te:void 0})}}async function ma(S,_,z,I){let W,pe={};try{W=await W1(b,S,_,I,z,!1)}catch(ae){return _.filter(ne=>ne.shouldLoad).forEach(ne=>{pe[ne.route.id]={type:"error",error:ae}}),pe}if(S.signal.aborted)return pe;if(!It(S.method))for(let ae of _){if(W[ae.route.id]?.type==="error")break;!W.hasOwnProperty(ae.route.id)&&!C.loaderData.hasOwnProperty(ae.route.id)&&(!C.errors||!C.errors.hasOwnProperty(ae.route.id))&&ae.shouldCallHandler()&&(W[ae.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ae.route.id}`)})}for(let[ae,ne]of Object.entries(W))if(uw(ne)){let ie=ne.result;pe[ae]={type:"redirect",response:aw(ie,S,ae,_,m)}}else pe[ae]=await nw(ne);return pe}async function na(S,_,z,I){let W=ma(z,S,I,null),pe=Promise.all(_.map(async ie=>{if(ie.matches&&ie.match&&ie.request&&ie.controller){let Ee=(await ma(ie.request,ie.matches,I,ie.key))[ie.match.route.id];return{[ie.key]:Ee}}else return Promise.resolve({[ie.key]:{type:"error",error:qn(404,{pathname:ie.path})}})})),ae=await W,ne=(await pe).reduce((ie,de)=>Object.assign(ie,de),{});return{loaderResults:ae,fetcherResults:ne}}function qa(){A=!0,B.forEach((S,_)=>{q.has(_)&&F.add(_),ut(_)})}function Vt(S,_,z={}){C.fetchers.set(S,_),Je({fetchers:new Map(C.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function Wt(S,_,z,I={}){let W=fi(C.matches,_);Cn(S),Je({errors:{[W.route.id]:z},fetchers:new Map(C.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function _n(S){return Z.set(S,(Z.get(S)||0)+1),te.has(S)&&te.delete(S),C.fetchers.get(S)||G1}function Zi(S,_){ut(S,_?.reason),Vt(S,ja(null))}function Cn(S){let _=C.fetchers.get(S);q.has(S)&&!(_&&_.state==="loading"&&x.has(S))&&ut(S),B.delete(S),x.delete(S),H.delete(S),te.delete(S),F.delete(S),C.fetchers.delete(S)}function pa(S){let _=(Z.get(S)||0)-1;_<=0?(Z.delete(S),te.add(S)):Z.set(S,_),Je({fetchers:new Map(C.fetchers)})}function ut(S,_){let z=q.get(S);z&&(z.abort(_),q.delete(S))}function rn(S){for(let _ of S){let z=_n(_),I=ja(z.data);C.fetchers.set(_,I)}}function kt(){let S=[],_=!1;for(let z of H){let I=C.fetchers.get(z);je(I,`Expected fetcher: ${z}`),I.state==="loading"&&(H.delete(z),S.push(z),_=!0)}return rn(S),_}function Ji(S){let _=[];for(let[z,I]of x)if(I<S){let W=C.fetchers.get(z);je(W,`Expected fetcher: ${z}`),W.state==="loading"&&(ut(z),x.delete(z),_.push(z))}return rn(_),_.length>0}function Ei(S,_){let z=C.blockers.get(S)||Dl;return ue.get(S)!==_&&ue.set(S,_),z}function pn(S){C.blockers.delete(S),ue.delete(S)}function Kn(S,_){let z=C.blockers.get(S)||Dl;je(z.state==="unblocked"&&_.state==="blocked"||z.state==="blocked"&&_.state==="blocked"||z.state==="blocked"&&_.state==="proceeding"||z.state==="blocked"&&_.state==="unblocked"||z.state==="proceeding"&&_.state==="unblocked",`Invalid blocker state transition: ${z.state} -> ${_.state}`);let I=new Map(C.blockers);I.set(S,_),Je({blockers:I})}function ga({currentLocation:S,nextLocation:_,historyAction:z}){if(ue.size===0)return;ue.size>1&&Nt(!1,"A router only supports one blocker at a time");let I=Array.from(ue.entries()),[W,pe]=I[I.length-1],ae=C.blockers.get(W);if(!(ae&&ae.state==="proceeding")&&pe({currentLocation:S,nextLocation:_,historyAction:z}))return W}function Xn(S){let _=qn(404,{pathname:S}),z=g||p,{matches:I,route:W}=co(z);return{notFoundMatches:I,route:W,error:_}}function An(S,_,z){if(U=S,K=_,j=z||null,!G&&C.navigation===Jc){G=!0;let I=wt(C.location,C.matches);I!=null&&Je({restoreScrollPosition:I})}return()=>{U=null,K=null,j=null}}function _e(S,_){return j&&j(S,_.map(I=>g1(I,C.loaderData)))||S.key}function st(S,_){if(U&&K){let z=_e(S,_);U[z]=K()}}function wt(S,_){if(U){let z=_e(S,_),I=U[z];if(typeof I=="number")return I}return null}function Et(S,_,z){if(n.patchRoutesOnNavigation)if(S){if(Object.keys(S[0].params).length>0)return{active:!0,matches:jl(_,z,m,!0)}}else return{active:!0,matches:jl(_,z,m,!0)||[]};return{active:!1,matches:null}}async function gn(S,_,z,I){if(!n.patchRoutesOnNavigation)return{type:"success",matches:S};let W=S;for(;;){let pe=g==null,ae=g||p,ne=d;try{await n.patchRoutesOnNavigation({signal:z,path:_,matches:W,fetcherKey:I,patch:(Ee,be)=>{z.aborted||yg(Ee,be,ae,ne,f,!1)}})}catch(Ee){return{type:"error",error:Ee,partialMatches:W}}finally{pe&&!z.aborted&&(p=[...p])}if(z.aborted)return{type:"aborted"};let ie=ci(ae,_,m),de=null;if(ie){if(Object.keys(ie[0].params).length===0)return{type:"success",matches:ie};if(de=jl(ae,_,m,!0),!(de&&W.length<de.length&&ot(W,de.slice(0,W.length))))return{type:"success",matches:ie}}if(de||(de=jl(ae,_,m,!0)),!de||ot(W,de))return{type:"success",matches:null};W=de}}function ot(S,_){return S.length===_.length&&S.every((z,I)=>z.route.id===_[I].route.id)}function Zt(S){d={},g=Yl(S,f,void 0,d)}function ya(S,_,z=!1){let I=g==null;yg(S,_,g||p,d,f,z),I&&(p=[...p],Je({}))}return me={get basename(){return m},get future(){return y},get state(){return C},get routes(){return p},get window(){return i},initialize:Ve,subscribe:$t,enableScrollRestoration:An,navigate:nn,fetch:wi,revalidate:vi,createHref:S=>n.history.createHref(S),encodeLocation:S=>n.history.encodeLocation(S),getFetcher:_n,resetFetcher:Zi,deleteFetcher:pa,dispose:Ht,getBlocker:Ei,deleteBlocker:pn,patchRoutes:ya,_internalFetchControllers:q,_internalSetRoutes:Zt,_internalSetStateDoNotUseOrYouWillBreakYourApp(S){Je(S)}},n.unstable_instrumentations&&(me=U1(me,n.unstable_instrumentations.map(S=>S.router).filter(Boolean))),me}function P1(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function gf(n,i,l,s,c,f){let d,p;if(c){d=[];for(let m of i)if(d.push(m),m.route.id===c){p=m;break}}else d=i,p=i[i.length-1];let g=Lf(s||".",Uf(d),Vn(n.pathname,l)||n.pathname,f==="path");if(s==null&&(g.search=n.search,g.hash=n.hash),(s==null||s===""||s===".")&&p){let m=qf(g.search);if(p.route.index&&!m)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!p.route.index&&m){let b=new URLSearchParams(g.search),y=b.getAll("index");b.delete("index"),y.filter(M=>M).forEach(M=>b.append("index",M));let E=b.toString();g.search=E?`?${E}`:""}}return l!=="/"&&(g.pathname=O1({basename:l,pathname:g.pathname})),ca(g)}function pg(n,i,l){if(!l||!P1(l))return{path:i};if(l.formMethod&&!dw(l.formMethod))return{path:i,error:qn(405,{method:l.formMethod})};let s=()=>({path:i,error:qn(400,{type:"invalid-body"})}),f=(l.formMethod||"get").toUpperCase(),d=Uy(i);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!It(f))return s();let y=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((E,[M,U])=>`${E}${M}=${U}
|
|
11
|
+
`,""):String(l.body);return{path:i,submission:{formMethod:f,formAction:d,formEncType:l.formEncType,formData:void 0,json:void 0,text:y}}}else if(l.formEncType==="application/json"){if(!It(f))return s();try{let y=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:i,submission:{formMethod:f,formAction:d,formEncType:l.formEncType,formData:void 0,json:y,text:void 0}}}catch{return s()}}}je(typeof FormData=="function","FormData is not available in this environment");let p,g;if(l.formData)p=bf(l.formData),g=l.formData;else if(l.body instanceof FormData)p=bf(l.body),g=l.body;else if(l.body instanceof URLSearchParams)p=l.body,g=Eg(p);else if(l.body==null)p=new URLSearchParams,g=new FormData;else try{p=new URLSearchParams(l.body),g=Eg(p)}catch{return s()}let m={formMethod:f,formAction:d,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(It(m.formMethod))return{path:i,submission:m};let b=gi(i);return n&&b.search&&qf(b.search)&&p.append("index",""),b.search=`?${p}`,{path:ca(b),submission:m}}function gg(n,i,l,s,c,f,d,p,g,m,b,y,E,M,U,j,K,G,J,$,ye){let he=$?Rn($[1])?$[1].error:$[1].data:void 0,me=c.createURL(f.location),C=c.createURL(g),Y;if(b&&f.errors){let we=Object.keys(f.errors)[0];Y=d.findIndex(A=>A.route.id===we)}else if($&&Rn($[1])){let we=$[0];Y=d.findIndex(A=>A.route.id===we)-1}let oe=$?$[1].statusCode:void 0,Ae=oe&&oe>=400,Ce={currentUrl:me,currentParams:f.matches[0]?.params||{},nextUrl:C,nextParams:d[0].params,...p,actionResult:he,actionStatus:oe},Te=Pl(d),Ue=d.map((we,A)=>{let{route:F}=we,q=null;if(Y!=null&&A>Y?q=!1:F.lazy?q=!0:jf(F)?b?q=yf(F,f.loaderData,f.errors):F1(f.loaderData,f.matches[A],we)&&(q=!0):q=!1,q!==null)return vf(l,s,n,Te,we,m,i,q);let ge=!1;typeof ye=="boolean"?ge=ye:Ae?ge=!1:(y||me.pathname+me.search===C.pathname+C.search||me.search!==C.search||Z1(f.matches[A],we))&&(ge=!0);let ve={...Ce,defaultShouldRevalidate:ge},x=Hl(we,ve);return vf(l,s,n,Te,we,m,i,x,ve,ye)}),Le=[];return U.forEach((we,A)=>{if(b||!d.some(Z=>Z.route.id===we.routeId)||M.has(A))return;let F=f.fetchers.get(A),q=F&&F.state!=="idle"&&F.data===void 0,ge=ci(K,we.path,G);if(!ge){if(J&&q)return;Le.push({key:A,routeId:we.routeId,path:we.path,matches:null,match:null,request:null,controller:null});return}if(j.has(A))return;let ve=bo(ge,we.path),x=new AbortController,H=Dr(c,we.path,x.signal),B=null;if(E.has(A))E.delete(A),B=kr(l,s,H,ge,ve,m,i);else if(q)y&&(B=kr(l,s,H,ge,ve,m,i));else{let Z;typeof ye=="boolean"?Z=ye:Ae?Z=!1:Z=y;let te={...Ce,defaultShouldRevalidate:Z};Hl(ve,te)&&(B=kr(l,s,H,ge,ve,m,i,te))}B&&Le.push({key:A,routeId:we.routeId,path:we.path,matches:B,match:ve,request:H,controller:x})}),{dsMatches:Ue,revalidatingFetchers:Le}}function jf(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function yf(n,i,l){if(n.lazy)return!0;if(!jf(n))return!1;let s=i!=null&&n.id in i,c=l!=null&&l[n.id]!==void 0;return!s&&c?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!s&&!c}function F1(n,i,l){let s=!i||l.route.id!==i.route.id,c=!n.hasOwnProperty(l.route.id);return s||c}function Z1(n,i){let l=n.route.path;return n.pathname!==i.pathname||l!=null&&l.endsWith("*")&&n.params["*"]!==i.params["*"]}function Hl(n,i){if(n.route.shouldRevalidate){let l=n.route.shouldRevalidate(i);if(typeof l=="boolean")return l}return i.defaultShouldRevalidate}function yg(n,i,l,s,c,f){let d;if(n){let m=s[n];je(m,`No route found to patch children into: routeId = ${n}`),m.children||(m.children=[]),d=m.children}else d=l;let p=[],g=[];if(i.forEach(m=>{let b=d.find(y=>My(m,y));b?g.push({existingRoute:b,newRoute:m}):p.push(m)}),p.length>0){let m=Yl(p,c,[n||"_","patch",String(d?.length||"0")],s);d.push(...m)}if(f&&g.length>0)for(let m=0;m<g.length;m++){let{existingRoute:b,newRoute:y}=g[m],E=b,[M]=Yl([y],c,[],{},!0);Object.assign(E,{element:M.element?M.element:E.element,errorElement:M.errorElement?M.errorElement:E.errorElement,hydrateFallbackElement:M.hydrateFallbackElement?M.hydrateFallbackElement:E.hydrateFallbackElement})}}function My(n,i){return"id"in n&&"id"in i&&n.id===i.id?!0:n.index===i.index&&n.path===i.path&&n.caseSensitive===i.caseSensitive?(!n.children||n.children.length===0)&&(!i.children||i.children.length===0)?!0:n.children.every((l,s)=>i.children?.some(c=>My(l,c))):!1}var vg=new WeakMap,Dy=({key:n,route:i,manifest:l,mapRouteProperties:s})=>{let c=l[i.id];if(je(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let f=c.lazy[n];if(!f)return;let d=vg.get(c);d||(d={},vg.set(c,d));let p=d[n];if(p)return p;let g=(async()=>{let m=d1(n),y=c[n]!==void 0&&n!=="hasErrorBoundary";if(m)Nt(!m,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),d[n]=Promise.resolve();else if(y)Nt(!1,`Route "${c.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let E=await f();E!=null&&(Object.assign(c,{[n]:E}),Object.assign(c,s(c)))}typeof c.lazy=="object"&&(c.lazy[n]=void 0,Object.values(c.lazy).every(E=>E===void 0)&&(c.lazy=void 0))})();return d[n]=g,g},bg=new WeakMap;function J1(n,i,l,s,c){let f=l[n.id];if(je(f,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let b=bg.get(f);if(b)return{lazyRoutePromise:b,lazyHandlerPromise:b};let y=(async()=>{je(typeof n.lazy=="function","No lazy route function found");let E=await n.lazy(),M={};for(let U in E){let j=E[U];if(j===void 0)continue;let K=m1(U),J=f[U]!==void 0&&U!=="hasErrorBoundary";K?Nt(!K,"Route property "+U+" is not a supported property to be returned from a lazy route function. This property will be ignored."):J?Nt(!J,`Route "${f.id}" has a static property "${U}" defined but its lazy function is also returning a value for this property. The lazy route property "${U}" will be ignored.`):M[U]=j}Object.assign(f,M),Object.assign(f,{...s(f),lazy:void 0})})();return bg.set(f,y),y.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:y}}let d=Object.keys(n.lazy),p=[],g;for(let b of d){if(c&&c.includes(b))continue;let y=Dy({key:b,route:n,manifest:l,mapRouteProperties:s});y&&(p.push(y),b===i&&(g=y))}let m=p.length>0?Promise.all(p).then(()=>{}):void 0;return m?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:g}}async function Sg(n){let i=n.matches.filter(c=>c.shouldLoad),l={};return(await Promise.all(i.map(c=>c.resolve()))).forEach((c,f)=>{l[i[f].route.id]=c}),l}async function I1(n){return n.matches.some(i=>i.route.middleware)?Ny(n,()=>Sg(n)):Sg(n)}function Ny(n,i){return $1(n,i,s=>{if(fw(s))throw s;return s},sw,l);function l(s,c,f){if(f)return Promise.resolve(Object.assign(f.value,{[c]:{type:"error",result:s}}));{let{matches:d}=n,p=Math.min(Math.max(d.findIndex(m=>m.route.id===c),0),Math.max(d.findIndex(m=>m.shouldCallHandler()),0)),g=fi(d,d[p].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:s}})}}}async function $1(n,i,l,s,c){let{matches:f,request:d,params:p,context:g,unstable_pattern:m}=n,b=f.flatMap(E=>E.route.middleware?E.route.middleware.map(M=>[E.route.id,M]):[]);return await ky({request:d,params:p,context:g,unstable_pattern:m},b,i,l,s,c)}async function ky(n,i,l,s,c,f,d=0){let{request:p}=n;if(p.signal.aborted)throw p.signal.reason??new Error(`Request aborted: ${p.method} ${p.url}`);let g=i[d];if(!g)return await l();let[m,b]=g,y,E=async()=>{if(y)throw new Error("You may only call `next()` once per middleware");try{return y={value:await ky(n,i,l,s,c,f,d+1)},y.value}catch(M){return y={value:await f(M,m,y)},y.value}};try{let M=await b(n,E),U=M!=null?s(M):void 0;return c(U)?U:y?U??y.value:(y={value:await E()},y.value)}catch(M){return await f(M,m,y)}}function zy(n,i,l,s,c){let f=Dy({key:"middleware",route:s.route,manifest:i,mapRouteProperties:n}),d=J1(s.route,It(l.method)?"action":"loader",i,n,c);return{middleware:f,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function vf(n,i,l,s,c,f,d,p,g=null,m){let b=!1,y=zy(n,i,l,c,f);return{...c,_lazyPromises:y,shouldLoad:p,shouldRevalidateArgs:g,shouldCallHandler(E){return b=!0,g?typeof m=="boolean"?Hl(c,{...g,defaultShouldRevalidate:m}):typeof E=="boolean"?Hl(c,{...g,defaultShouldRevalidate:E}):Hl(c,g):p},resolve(E){let{lazy:M,loader:U,middleware:j}=c.route,K=b||p||E&&!It(l.method)&&(M||U),G=j&&j.length>0&&!U&&!M;return K&&(It(l.method)||!G)?ew({request:l,unstable_pattern:s,match:c,lazyHandlerPromise:y?.handler,lazyRoutePromise:y?.route,handlerOverride:E,scopedContext:d}):Promise.resolve({type:"data",result:void 0})}}}function kr(n,i,l,s,c,f,d,p=null){return s.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:p,shouldCallHandler:()=>!1,_lazyPromises:zy(n,i,l,g,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:vf(n,i,l,Pl(s),g,f,d,!0,p))}async function W1(n,i,l,s,c,f){l.some(m=>m._lazyPromises?.middleware)&&await Promise.all(l.map(m=>m._lazyPromises?.middleware));let d={request:i,unstable_pattern:Pl(l),params:l[0].params,context:c,matches:l},g=await n({...d,fetcherKey:s,runClientMiddleware:m=>{let b=d;return Ny(b,()=>m({...b,fetcherKey:s,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return g}async function ew({request:n,unstable_pattern:i,match:l,lazyHandlerPromise:s,lazyRoutePromise:c,handlerOverride:f,scopedContext:d}){let p,g,m=It(n.method),b=m?"action":"loader",y=E=>{let M,U=new Promise((G,J)=>M=J);g=()=>M(),n.signal.addEventListener("abort",g);let j=G=>typeof E!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${b}" [routeId: ${l.route.id}]`)):E({request:n,unstable_pattern:i,params:l.params,context:d},...G!==void 0?[G]:[]),K=(async()=>{try{return{type:"data",result:await(f?f(J=>j(J)):j())}}catch(G){return{type:"error",result:G}}})();return Promise.race([K,U])};try{let E=m?l.route.action:l.route.loader;if(s||c)if(E){let M,[U]=await Promise.all([y(E).catch(j=>{M=j}),s,c]);if(M!==void 0)throw M;p=U}else{await s;let M=m?l.route.action:l.route.loader;if(M)[p]=await Promise.all([y(M),c]);else if(b==="action"){let U=new URL(n.url),j=U.pathname+U.search;throw qn(405,{method:n.method,pathname:j,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(E)p=await y(E);else{let M=new URL(n.url),U=M.pathname+M.search;throw qn(404,{pathname:U})}}catch(E){return{type:"error",result:E}}finally{g&&n.signal.removeEventListener("abort",g)}return p}async function tw(n){let i=n.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?n.body==null?null:n.json():n.text()}async function nw(n){let{result:i,type:l}=n;if(Bf(i)){let s;try{s=await tw(i)}catch(c){return{type:"error",error:c}}return l==="error"?{type:"error",error:new Xl(i.status,i.statusText,s),statusCode:i.status,headers:i.headers}:{type:"data",data:s,statusCode:i.status,headers:i.headers}}return l==="error"?_g(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:lw(i),statusCode:Gl(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:Gl(i)?i.status:void 0}:_g(i)?{type:"data",data:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function aw(n,i,l,s,c){let f=n.headers.get("Location");if(je(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!zf(f)){let d=s.slice(0,s.findIndex(p=>p.route.id===l)+1);f=gf(new URL(i.url),d,c,f),n.headers.set("Location",f)}return n}function wg(n,i,l,s){let c=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(zf(n)){let f=n,d=f.startsWith("//")?new URL(i.protocol+f):new URL(f);if(c.includes(d.protocol))throw new Error("Invalid redirect location");let p=Vn(d.pathname,l)!=null;if(d.origin===i.origin&&p)return d.pathname+d.search+d.hash}try{let f=s.createURL(n);if(c.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return n}function Dr(n,i,l,s){let c=n.createURL(Uy(i)).toString(),f={signal:l};if(s&&It(s.formMethod)){let{formMethod:d,formEncType:p}=s;f.method=d.toUpperCase(),p==="application/json"?(f.headers=new Headers({"Content-Type":p}),f.body=JSON.stringify(s.json)):p==="text/plain"?f.body=s.text:p==="application/x-www-form-urlencoded"&&s.formData?f.body=bf(s.formData):f.body=s.formData}return new Request(c,f)}function bf(n){let i=new URLSearchParams;for(let[l,s]of n.entries())i.append(l,typeof s=="string"?s:s.name);return i}function Eg(n){let i=new FormData;for(let[l,s]of n.entries())i.append(l,s);return i}function iw(n,i,l,s=!1,c=!1){let f={},d=null,p,g=!1,m={},b=l&&Rn(l[1])?l[1].error:void 0;return n.forEach(y=>{if(!(y.route.id in i))return;let E=y.route.id,M=i[E];if(je(!Gi(M),"Cannot handle redirect results in processLoaderData"),Rn(M)){let U=M.error;if(b!==void 0&&(U=b,b=void 0),d=d||{},c)d[E]=U;else{let j=fi(n,E);d[j.route.id]==null&&(d[j.route.id]=U)}s||(f[E]=Oy),g||(g=!0,p=Gl(M.error)?M.error.status:500),M.headers&&(m[E]=M.headers)}else f[E]=M.data,M.statusCode&&M.statusCode!==200&&!g&&(p=M.statusCode),M.headers&&(m[E]=M.headers)}),b!==void 0&&l&&(d={[l[0]]:b},l[2]&&(f[l[2]]=void 0)),{loaderData:f,errors:d,statusCode:p||200,loaderHeaders:m}}function xg(n,i,l,s,c,f){let{loaderData:d,errors:p}=iw(i,l,s);return c.filter(g=>!g.matches||g.matches.some(m=>m.shouldLoad)).forEach(g=>{let{key:m,match:b,controller:y}=g;if(y&&y.signal.aborted)return;let E=f[m];if(je(E,"Did not find corresponding fetcher result"),Rn(E)){let M=fi(n.matches,b?.route.id);p&&p[M.route.id]||(p={...p,[M.route.id]:E.error}),n.fetchers.delete(m)}else if(Gi(E))je(!1,"Unhandled fetcher revalidation redirect");else{let M=ja(E.data);n.fetchers.set(m,M)}}),{loaderData:d,errors:p}}function Tg(n,i,l,s){let c=Object.entries(i).filter(([,f])=>f!==Oy).reduce((f,[d,p])=>(f[d]=p,f),{});for(let f of l){let d=f.route.id;if(!i.hasOwnProperty(d)&&n.hasOwnProperty(d)&&f.route.loader&&(c[d]=n[d]),s&&s.hasOwnProperty(d))break}return c}function Rg(n){return n?Rn(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function fi(n,i){return(i?n.slice(0,n.findIndex(s=>s.route.id===i)+1):[...n]).reverse().find(s=>s.route.hasErrorBoundary===!0)||n[0]}function co(n){let i=n.length===1?n[0]:n.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function qn(n,{pathname:i,routeId:l,method:s,type:c,message:f}={}){let d="Unknown Server Error",p="Unknown @remix-run/router error";return n===400?(d="Bad Request",s&&i&&l?p=`You made a ${s} request to "${i}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:c==="invalid-body"&&(p="Unable to encode submission body")):n===403?(d="Forbidden",p=`Route "${l}" does not match URL "${i}"`):n===404?(d="Not Found",p=`No route matches URL "${i}"`):n===405&&(d="Method Not Allowed",s&&i&&l?p=`You made a ${s.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:s&&(p=`Invalid request method "${s.toUpperCase()}"`)),new Xl(n||500,d,new Error(p),!0)}function fo(n){let i=Object.entries(n);for(let l=i.length-1;l>=0;l--){let[s,c]=i[l];if(Gi(c))return{key:s,result:c}}}function Uy(n){let i=typeof n=="string"?gi(n):n;return ca({...i,hash:""})}function rw(n,i){return n.pathname!==i.pathname||n.search!==i.search?!1:n.hash===""?i.hash!=="":n.hash===i.hash?!0:i.hash!==""}function lw(n){return new Xl(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)}function sw(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([i,l])=>typeof i=="string"&&ow(l))}function ow(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function uw(n){return Bf(n.result)&&Cy.has(n.result.status)}function Rn(n){return n.type==="error"}function Gi(n){return(n&&n.type)==="redirect"}function _g(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function Bf(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function cw(n){return Cy.has(n)}function fw(n){return Bf(n)&&cw(n.status)&&n.headers.has("Location")}function dw(n){return V1.has(n.toUpperCase())}function It(n){return H1.has(n.toUpperCase())}function qf(n){return new URLSearchParams(n).getAll("index").some(i=>i==="")}function bo(n,i){let l=typeof i=="string"?gi(i).search:i.search;if(n[n.length-1].route.index&&qf(l||""))return n[n.length-1];let s=Ey(n);return s[s.length-1]}function Cg(n){let{formMethod:i,formAction:l,formEncType:s,text:c,formData:f,json:d}=n;if(!(!i||!l||!s)){if(c!=null)return{formMethod:i,formAction:l,formEncType:s,formData:void 0,json:void 0,text:c};if(f!=null)return{formMethod:i,formAction:l,formEncType:s,formData:f,json:void 0,text:void 0};if(d!==void 0)return{formMethod:i,formAction:l,formEncType:s,formData:void 0,json:d,text:void 0}}}function Ic(n,i){return i?{state:"loading",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function hw(n,i){return{state:"submitting",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function Nl(n,i){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function mw(n,i){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i?i.data:void 0}}function ja(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function pw(n,i){try{let l=n.sessionStorage.getItem(Ay);if(l){let s=JSON.parse(l);for(let[c,f]of Object.entries(s||{}))f&&Array.isArray(f)&&i.set(c,new Set(f||[]))}}catch{}}function gw(n,i){if(i.size>0){let l={};for(let[s,c]of i)l[s]=[...c];try{n.sessionStorage.setItem(Ay,JSON.stringify(l))}catch(s){Nt(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function Ag(){let n,i,l=new Promise((s,c)=>{n=async f=>{s(f);try{await l}catch{}},i=async f=>{c(f);try{await l}catch{}}});return{promise:l,resolve:n,reject:i}}var Pi=T.createContext(null);Pi.displayName="DataRouter";var Fl=T.createContext(null);Fl.displayName="DataRouterState";var Ly=T.createContext(!1);function yw(){return T.useContext(Ly)}var Hf=T.createContext({isTransitioning:!1});Hf.displayName="ViewTransition";var jy=T.createContext(new Map);jy.displayName="Fetchers";var vw=T.createContext(null);vw.displayName="Await";var Yn=T.createContext(null);Yn.displayName="Navigation";var No=T.createContext(null);No.displayName="Location";var ea=T.createContext({outlet:null,matches:[],isDataRoute:!1});ea.displayName="Route";var Qf=T.createContext(null);Qf.displayName="RouteError";var By="REACT_ROUTER_ERROR",bw="REDIRECT",Sw="ROUTE_ERROR_RESPONSE";function ww(n){if(n.startsWith(`${By}:${bw}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Ew(n){if(n.startsWith(`${By}:${Sw}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Xl(i.status,i.statusText,i.data)}catch{}}function xw(n,{relative:i}={}){je(Zl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:s}=T.useContext(Yn),{hash:c,pathname:f,search:d}=Jl(n,{relative:i}),p=f;return l!=="/"&&(p=f==="/"?l:ua([l,f])),s.createHref({pathname:p,search:d,hash:c})}function Zl(){return T.useContext(No)!=null}function Fi(){return je(Zl(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(No).location}var qy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hy(n){T.useContext(Yn).static||T.useLayoutEffect(n)}function Qy(){let{isDataRoute:n}=T.useContext(ea);return n?qw():Tw()}function Tw(){je(Zl(),"useNavigate() may be used only in the context of a <Router> component.");let n=T.useContext(Pi),{basename:i,navigator:l}=T.useContext(Yn),{matches:s}=T.useContext(ea),{pathname:c}=Fi(),f=JSON.stringify(Uf(s)),d=T.useRef(!1);return Hy(()=>{d.current=!0}),T.useCallback((g,m={})=>{if(Nt(d.current,qy),!d.current)return;if(typeof g=="number"){l.go(g);return}let b=Lf(g,JSON.parse(f),c,m.relative==="path");n==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:ua([i,b.pathname])),(m.replace?l.replace:l.push)(b,m.state,m)},[i,l,f,c,n])}var Rw=T.createContext(null);function _w(n){let i=T.useContext(ea).outlet;return T.useMemo(()=>i&&T.createElement(Rw.Provider,{value:n},i),[i,n])}function Cw(){let{matches:n}=T.useContext(ea),i=n[n.length-1];return i?i.params:{}}function Jl(n,{relative:i}={}){let{matches:l}=T.useContext(ea),{pathname:s}=Fi(),c=JSON.stringify(Uf(l));return T.useMemo(()=>Lf(n,JSON.parse(c),s,i==="path"),[n,c,s,i])}function Aw(n,i,l,s,c){je(Zl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=T.useContext(Yn),{matches:d}=T.useContext(ea),p=d[d.length-1],g=p?p.params:{},m=p?p.pathname:"/",b=p?p.pathnameBase:"/",y=p&&p.route;{let J=y&&y.path||"";Yy(m,!y||J.endsWith("*")||J.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${J}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
12
12
|
|
|
13
|
-
Please change the parent <Route path="${J}"> to <Route path="${J==="/"?"*":`${J}/*`}">.`)}let E=Fi(),M;M=E;let U=M.pathname||"/",j=U;if(b!=="/"){let J=b.replace(/^\//,"").split("/");j="/"+U.replace(/^\//,"").split("/").slice(J.length).join("/")}let K=ci(n,{pathname:j});return Nt(y||K!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),Nt(K==null||K[K.length-1].route.element!==void 0||K[K.length-1].route.Component!==void 0||K[K.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),kw(K&&K.map(J=>Object.assign({},J,{params:Object.assign({},g,J.params),pathname:ua([b,f.encodeLocation?f.encodeLocation(J.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:J.pathname]),pathnameBase:J.pathnameBase==="/"?b:ua([b,f.encodeLocation?f.encodeLocation(J.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:J.pathnameBase])})),d,l,s,c)}function Ow(){let n=Bw(),i=Gl(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},i),l?T.createElement("pre",{style:c},l):null,d)}var Mw=T.createElement(Ow,null),Yy=class extends T.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const l=Ew(n.digest);l&&(n=l)}let i=n!==void 0?T.createElement(ea.Provider,{value:this.props.routeContext},T.createElement(Qf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?T.createElement(Dw,{error:n},i):i}};Yy.contextType=Ly;var $c=new WeakMap;function Dw({children:n,error:i}){let{basename:l}=T.useContext(Vn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=ww(i.digest);if(s){let c=$c.get(i);if(c)throw c;let f=Ty(s.location,l);if(xy&&!$c.get(i))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw $c.set(i,d),d}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function Nw({routeContext:n,match:i,children:l}){let s=T.useContext(Xi);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),T.createElement(ea.Provider,{value:n},l)}function kw(n,i=[],l=null,s=null,c=null){if(n==null){if(!l)return null;if(l.errors)n=l.matches;else if(i.length===0&&!l.initialized&&l.matches.length>0)n=l.matches;else return null}let f=n,d=l?.errors;if(d!=null){let b=f.findIndex(y=>y.route.id&&d?.[y.route.id]!==void 0);je(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let p=!1,g=-1;if(l)for(let b=0;b<f.length;b++){let y=f[b];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=b),y.route.id){let{loaderData:E,errors:M}=l,U=y.route.loader&&!E.hasOwnProperty(y.route.id)&&(!M||M[y.route.id]===void 0);if(y.route.lazy||U){p=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}let m=l&&s?(b,y)=>{s(b,{location:l.location,params:l.matches?.[0]?.params??{},unstable_pattern:Fl(l.matches),errorInfo:y})}:void 0;return f.reduceRight((b,y,E)=>{let M,U=!1,j=null,K=null;l&&(M=d&&y.route.id?d[y.route.id]:void 0,j=y.route.errorElement||Mw,p&&(g<0&&E===0?(Vy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),U=!0,K=null):g===E&&(U=!0,K=y.route.hydrateFallbackElement||null)));let G=i.concat(f.slice(0,E+1)),J=()=>{let $;return M?$=j:U?$=K:y.route.Component?$=T.createElement(y.route.Component,null):y.route.element?$=y.route.element:$=b,T.createElement(Nw,{match:y,routeContext:{outlet:b,matches:G,isDataRoute:l!=null},children:$})};return l&&(y.route.ErrorBoundary||y.route.errorElement||E===0)?T.createElement(Yy,{location:l.location,revalidation:l.revalidation,component:j,error:M,children:J(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:m}):J()},null)}function Yf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zw(n){let i=T.useContext(Xi);return je(i,Yf(n)),i}function Uw(n){let i=T.useContext(Pl);return je(i,Yf(n)),i}function Lw(n){let i=T.useContext(ea);return je(i,Yf(n)),i}function Vf(n){let i=Lw(n),l=i.matches[i.matches.length-1];return je(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function jw(){return Vf("useRouteId")}function Bw(){let n=T.useContext(Qf),i=Uw("useRouteError"),l=Vf("useRouteError");return n!==void 0?n:i.errors?.[l]}function qw(){let{router:n}=zw("useNavigate"),i=Vf("useNavigate"),l=T.useRef(!1);return Hy(()=>{l.current=!0}),T.useCallback(async(c,f={})=>{Nt(l.current,qy),l.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:i,...f}))},[n,i])}var Og={};function Vy(n,i,l){!i&&!Og[n]&&(Og[n]=!0,Nt(!1,l))}var Mg={};function Dg(n,i){!n&&!Mg[i]&&(Mg[i]=!0,console.warn(i))}var Hw="useOptimistic",Ng=Hb[Hw],Qw=()=>{};function Yw(n){return Ng?Ng(n):[n,Qw]}function Vw(n){let i={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&Nt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:T.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&Nt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:T.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&Nt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:T.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),i}var Gw=["HydrateFallback","hydrateFallbackElement"],Kw=class{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",n(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",i(l))}})}};function Xw({router:n,flushSync:i,onError:l,unstable_useTransitions:s}){s=yw()||s;let[f,d]=T.useState(n.state),[p,g]=Yw(f),[m,b]=T.useState(),[y,E]=T.useState({isTransitioning:!1}),[M,U]=T.useState(),[j,K]=T.useState(),[G,J]=T.useState(),$=T.useRef(new Map),ye=T.useCallback((V,{deletedFetchers:oe,newErrors:Ce,flushSync:Ae,viewTransitionOpts:Te})=>{Ce&&l&&Object.values(Ce).forEach(Le=>l(Le,{location:V.location,params:V.matches[0]?.params??{},unstable_pattern:Fl(V.matches)})),V.fetchers.forEach((Le,we)=>{Le.data!==void 0&&$.current.set(we,Le.data)}),oe.forEach(Le=>$.current.delete(Le)),Dg(Ae===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Ue=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(Dg(Te==null||Ue,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Te||!Ue){i&&Ae?i(()=>d(V)):s===!1?d(V):T.startTransition(()=>{s===!0&&g(Le=>kg(Le,V)),d(V)});return}if(i&&Ae){i(()=>{j&&(M?.resolve(),j.skipTransition()),E({isTransitioning:!0,flushSync:!0,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation})});let Le=n.window.document.startViewTransition(()=>{i(()=>d(V))});Le.finished.finally(()=>{i(()=>{U(void 0),K(void 0),b(void 0),E({isTransitioning:!1})})}),i(()=>K(Le));return}j?(M?.resolve(),j.skipTransition(),J({state:V,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation})):(b(V),E({isTransitioning:!0,flushSync:!1,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation}))},[n.window,i,j,M,s,g,l]);T.useLayoutEffect(()=>n.subscribe(ye),[n,ye]),T.useEffect(()=>{y.isTransitioning&&!y.flushSync&&U(new Kw)},[y]),T.useEffect(()=>{if(M&&m&&n.window){let V=m,oe=M.promise,Ce=n.window.document.startViewTransition(async()=>{s===!1?d(V):T.startTransition(()=>{s===!0&&g(Ae=>kg(Ae,V)),d(V)}),await oe});Ce.finished.finally(()=>{U(void 0),K(void 0),b(void 0),E({isTransitioning:!1})}),K(Ce)}},[m,M,n.window,s,g]),T.useEffect(()=>{M&&m&&p.location.key===m.location.key&&M.resolve()},[M,j,p.location,m]),T.useEffect(()=>{!y.isTransitioning&&G&&(b(G.state),E({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}),J(void 0))},[y.isTransitioning,G]);let he=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:V=>n.navigate(V),push:(V,oe,Ce)=>n.navigate(V,{state:oe,preventScrollReset:Ce?.preventScrollReset}),replace:(V,oe,Ce)=>n.navigate(V,{replace:!0,state:oe,preventScrollReset:Ce?.preventScrollReset})}),[n]),me=n.basename||"/",A=T.useMemo(()=>({router:n,navigator:he,static:!1,basename:me,onError:l}),[n,he,me,l]);return T.createElement(T.Fragment,null,T.createElement(Xi.Provider,{value:A},T.createElement(Pl.Provider,{value:p},T.createElement(jy.Provider,{value:$.current},T.createElement(Hf.Provider,{value:y},T.createElement(Jw,{basename:me,location:p.location,navigationType:p.historyAction,navigator:he,unstable_useTransitions:s},T.createElement(Fw,{routes:n.routes,future:n.future,state:p,onError:l})))))),null)}function kg(n,i){return{...n,navigation:i.navigation.state!=="idle"?i.navigation:n.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:n.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:n.actionData,fetchers:i.fetchers}}var Fw=T.memo(Pw);function Pw({routes:n,future:i,state:l,onError:s}){return Cw(n,void 0,l,s,i)}function Zw(n){return _w(n.context)}function Jw({basename:n="/",children:i=null,location:l,navigationType:s="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){je(!Zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),g=T.useMemo(()=>({basename:p,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[p,c,f,d]);typeof l=="string"&&(l=gi(l));let{pathname:m="/",search:b="",hash:y="",state:E=null,key:M="default"}=l,U=T.useMemo(()=>{let j=Yn(m,p);return j==null?null:{location:{pathname:j,search:b,hash:y,state:E,key:M},navigationType:s}},[p,m,b,y,E,M,s]);return Nt(U!=null,`<Router basename="${p}"> is not able to match the URL "${m}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),U==null?null:T.createElement(Vn.Provider,{value:g},T.createElement(No.Provider,{children:i,value:U}))}var So="get",wo="application/x-www-form-urlencoded";function ko(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Iw(n){return ko(n)&&n.tagName.toLowerCase()==="button"}function $w(n){return ko(n)&&n.tagName.toLowerCase()==="form"}function Ww(n){return ko(n)&&n.tagName.toLowerCase()==="input"}function eE(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function tE(n,i){return n.button===0&&(!i||i==="_self")&&!eE(n)}var ho=null;function nE(){if(ho===null)try{new FormData(document.createElement("form"),0),ho=!1}catch{ho=!0}return ho}var aE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wc(n){return n!=null&&!aE.has(n)?(Nt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wo}"`),null):n}function iE(n,i){let l,s,c,f,d;if($w(n)){let p=n.getAttribute("action");s=p?Yn(p,i):null,l=n.getAttribute("method")||So,c=Wc(n.getAttribute("enctype"))||wo,f=new FormData(n)}else if(Iw(n)||Ww(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||p.getAttribute("action");if(s=g?Yn(g,i):null,l=n.getAttribute("formmethod")||p.getAttribute("method")||So,c=Wc(n.getAttribute("formenctype"))||Wc(p.getAttribute("enctype"))||wo,f=new FormData(p,n),!nE()){let{name:m,type:b,value:y}=n;if(b==="image"){let E=m?`${m}.`:"";f.append(`${E}x`,"0"),f.append(`${E}y`,"0")}else m&&f.append(m,y)}}else{if(ko(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=So,s=null,c=wo,d=n}return f&&c==="text/plain"&&(d=f,f=void 0),{action:s,method:l.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Gf(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function rE(n,i,l,s){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return l?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:i&&Yn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${s}`,c}async function lE(n,i){if(n.id in i)return i[n.id];try{let l=await import(n.module);return i[n.id]=l,l}catch(l){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sE(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function oE(n,i,l){let s=await Promise.all(n.map(async c=>{let f=i.routes[c.route.id];if(f){let d=await lE(f,l);return d.links?d.links():[]}return[]}));return dE(s.flat(1).filter(sE).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function zg(n,i,l,s,c,f){let d=(g,m)=>l[m]?g.route.id!==l[m].route.id:!0,p=(g,m)=>l[m].pathname!==g.pathname||l[m].route.path?.endsWith("*")&&l[m].params["*"]!==g.params["*"];return f==="assets"?i.filter((g,m)=>d(g,m)||p(g,m)):f==="data"?i.filter((g,m)=>{let b=s.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(d(g,m)||p(g,m))return!0;if(g.route.shouldRevalidate){let y=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function uE(n,i,{includeHydrateFallback:l}={}){return cE(n.map(s=>{let c=i.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),l&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function cE(n){return[...new Set(n)]}function fE(n){let i={},l=Object.keys(n).sort();for(let s of l)i[s]=n[s];return i}function dE(n,i){let l=new Set;return new Set(i),n.reduce((s,c)=>{let f=JSON.stringify(fE(c));return l.has(f)||(l.add(f),s.push({key:f,link:c})),s},[])}function Gy(){let n=T.useContext(Xi);return Gf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function hE(){let n=T.useContext(Pl);return Gf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Kf=T.createContext(void 0);Kf.displayName="FrameworkContext";function Ky(){let n=T.useContext(Kf);return Gf(n,"You must render this element inside a <HydratedRouter> element"),n}function mE(n,i){let l=T.useContext(Kf),[s,c]=T.useState(!1),[f,d]=T.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:b,onTouchStart:y}=i,E=T.useRef(null);T.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let j=G=>{G.forEach(J=>{d(J.isIntersecting)})},K=new IntersectionObserver(j,{threshold:.5});return E.current&&K.observe(E.current),()=>{K.disconnect()}}},[n]),T.useEffect(()=>{if(s){let j=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(j)}}},[s]);let M=()=>{c(!0)},U=()=>{c(!1),d(!1)};return l?n!=="intent"?[f,E,{}]:[f,E,{onFocus:kl(p,M),onBlur:kl(g,U),onMouseEnter:kl(m,M),onMouseLeave:kl(b,U),onTouchStart:kl(y,M)}]:[!1,E,{}]}function kl(n,i){return l=>{n&&n(l),l.defaultPrevented||i(l)}}function pE({page:n,...i}){let{router:l}=Gy(),s=T.useMemo(()=>ci(l.routes,n,l.basename),[l.routes,n,l.basename]);return s?T.createElement(yE,{page:n,matches:s,...i}):null}function gE(n){let{manifest:i,routeModules:l}=Ky(),[s,c]=T.useState([]);return T.useEffect(()=>{let f=!1;return oE(n,i,l).then(d=>{f||c(d)}),()=>{f=!0}},[n,i,l]),s}function yE({page:n,matches:i,...l}){let s=Fi(),{future:c,manifest:f,routeModules:d}=Ky(),{basename:p}=Gy(),{loaderData:g,matches:m}=hE(),b=T.useMemo(()=>zg(n,i,m,f,s,"data"),[n,i,m,f,s]),y=T.useMemo(()=>zg(n,i,m,f,s,"assets"),[n,i,m,f,s]),E=T.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let j=new Set,K=!1;if(i.forEach(J=>{let $=f.routes[J.route.id];!$||!$.hasLoader||(!b.some(ye=>ye.route.id===J.route.id)&&J.route.id in g&&d[J.route.id]?.shouldRevalidate||$.hasClientLoader?K=!0:j.add(J.route.id))}),j.size===0)return[];let G=rE(n,p,c.unstable_trailingSlashAwareDataRequests,"data");return K&&j.size>0&&G.searchParams.set("_routes",i.filter(J=>j.has(J.route.id)).map(J=>J.route.id).join(",")),[G.pathname+G.search]},[p,c.unstable_trailingSlashAwareDataRequests,g,s,f,b,i,n,d]),M=T.useMemo(()=>uE(y,f),[y,f]),U=gE(y);return T.createElement(T.Fragment,null,E.map(j=>T.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...l})),M.map(j=>T.createElement("link",{key:j,rel:"modulepreload",href:j,...l})),U.map(({key:j,link:K})=>T.createElement("link",{key:j,nonce:l.nonce,...K,crossOrigin:K.crossOrigin??l.crossOrigin})))}function vE(...n){return i=>{n.forEach(l=>{typeof l=="function"?l(i):l!=null&&(l.current=i)})}}var bE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{bE&&(window.__reactRouterVersion="7.13.0")}catch{}function SE(n,i){return X1({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:o1({window:i?.window}),hydrationData:wE(),routes:n,mapRouteProperties:Vw,hydrationRouteProperties:Gw,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function wE(){let n=window?.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:EE(n.errors)}),n}function EE(n){if(!n)return null;let i=Object.entries(n),l={};for(let[s,c]of i)if(c&&c.__type==="RouteErrorResponse")l[s]=new Xl(c.status,c.statusText,c.data,c.internal===!0);else if(c&&c.__type==="Error"){if(c.__subType){let f=window[c.__subType];if(typeof f=="function")try{let d=new f(c.message);d.stack="",l[s]=d}catch{}}if(l[s]==null){let f=new Error(c.message);f.stack="",l[s]=f}}else l[s]=c;return l}var Xy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fy=T.forwardRef(function({onClick:i,discover:l="render",prefetch:s="none",relative:c,reloadDocument:f,replace:d,state:p,target:g,to:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E,...M},U){let{basename:j,unstable_useTransitions:K}=T.useContext(Vn),G=typeof m=="string"&&Xy.test(m),J=Ty(m,j);m=J.to;let $=xw(m,{relative:c}),[ye,he,me]=mE(s,M),A=_E(m,{replace:d,state:p,target:g,preventScrollReset:b,relative:c,viewTransition:y,unstable_defaultShouldRevalidate:E,unstable_useTransitions:K});function V(Ce){i&&i(Ce),Ce.defaultPrevented||A(Ce)}let oe=T.createElement("a",{...M,...me,href:J.absoluteURL||$,onClick:J.isExternal||f?i:V,ref:vE(U,he),target:g,"data-discover":!G&&l==="render"?"true":void 0});return ye&&!G?T.createElement(T.Fragment,null,oe,T.createElement(pE,{page:$})):oe});Fy.displayName="Link";var xE=T.forwardRef(function({"aria-current":i="page",caseSensitive:l=!1,className:s="",end:c=!1,style:f,to:d,viewTransition:p,children:g,...m},b){let y=Jl(d,{relative:m.relative}),E=Fi(),M=T.useContext(Pl),{navigator:U,basename:j}=T.useContext(Vn),K=M!=null&&DE(y)&&p===!0,G=U.encodeLocation?U.encodeLocation(y).pathname:y.pathname,J=E.pathname,$=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;l||(J=J.toLowerCase(),$=$?$.toLowerCase():null,G=G.toLowerCase()),$&&j&&($=Yn($,j)||$);const ye=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let he=J===G||!c&&J.startsWith(G)&&J.charAt(ye)==="/",me=$!=null&&($===G||!c&&$.startsWith(G)&&$.charAt(G.length)==="/"),A={isActive:he,isPending:me,isTransitioning:K},V=he?i:void 0,oe;typeof s=="function"?oe=s(A):oe=[s,he?"active":null,me?"pending":null,K?"transitioning":null].filter(Boolean).join(" ");let Ce=typeof f=="function"?f(A):f;return T.createElement(Fy,{...m,"aria-current":V,className:oe,ref:b,style:Ce,to:d,viewTransition:p},typeof g=="function"?g(A):g)});xE.displayName="NavLink";var TE=T.forwardRef(({discover:n="render",fetcherKey:i,navigate:l,reloadDocument:s,replace:c,state:f,method:d=So,action:p,onSubmit:g,relative:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E,...M},U)=>{let{unstable_useTransitions:j}=T.useContext(Vn),K=OE(),G=ME(p,{relative:m}),J=d.toLowerCase()==="get"?"get":"post",$=typeof p=="string"&&Xy.test(p),ye=he=>{if(g&&g(he),he.defaultPrevented)return;he.preventDefault();let me=he.nativeEvent.submitter,A=me?.getAttribute("formmethod")||d,V=()=>K(me||he.currentTarget,{fetcherKey:i,method:A,navigate:l,replace:c,state:f,relative:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E});j&&l!==!1?T.startTransition(()=>V()):V()};return T.createElement("form",{ref:U,method:J,action:G,onSubmit:s?g:ye,...M,"data-discover":!$&&n==="render"?"true":void 0})});TE.displayName="Form";function RE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Py(n){let i=T.useContext(Xi);return je(i,RE(n)),i}function _E(n,{target:i,replace:l,state:s,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let m=Qy(),b=Fi(),y=Jl(n,{relative:f});return T.useCallback(E=>{if(tE(E,i)){E.preventDefault();let M=l!==void 0?l:ca(b)===ca(y),U=()=>m(n,{replace:M,state:s,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:p});g?T.startTransition(()=>U()):U()}},[b,m,y,l,s,i,n,c,f,d,p,g])}var AE=0,CE=()=>`__${String(++AE)}__`;function OE(){let{router:n}=Py("useSubmit"),{basename:i}=T.useContext(Vn),l=jw(),s=n.fetch,c=n.navigate;return T.useCallback(async(f,d={})=>{let{action:p,method:g,encType:m,formData:b,body:y}=iE(f,i);if(d.navigate===!1){let E=d.fetcherKey||CE();await s(E,l,d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:y,formMethod:d.method||g,formEncType:d.encType||m,flushSync:d.flushSync})}else await c(d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:y,formMethod:d.method||g,formEncType:d.encType||m,replace:d.replace,state:d.state,fromRouteId:l,flushSync:d.flushSync,viewTransition:d.viewTransition})},[s,c,i,l])}function ME(n,{relative:i}={}){let{basename:l}=T.useContext(Vn),s=T.useContext(ea);je(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...Jl(n||".",{relative:i})},d=Fi();if(n==null){f.search=d.search;let p=new URLSearchParams(f.search),g=p.getAll("index");if(g.some(b=>b==="")){p.delete("index"),g.filter(y=>y).forEach(y=>p.append("index",y));let b=p.toString();f.search=b?`?${b}`:""}}return(!n||n===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(f.pathname=f.pathname==="/"?l:ua([l,f.pathname])),ca(f)}function DE(n,{relative:i}={}){let l=T.useContext(Hf);je(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Py("useViewTransitionState"),c=Jl(n,{relative:i});if(!l.isTransitioning)return!1;let f=Yn(l.currentLocation.pathname,s)||l.currentLocation.pathname,d=Yn(l.nextLocation.pathname,s)||l.nextLocation.pathname;return Mo(c.pathname,d)!=null||Mo(c.pathname,f)!=null}function NE(n){return T.createElement(Xw,{flushSync:gy.flushSync,...n})}const Zy=(...n)=>n.filter((i,l,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===l).join(" ").trim();const kE=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const zE=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,s)=>s?s.toUpperCase():l.toLowerCase());const Ug=n=>{const i=zE(n);return i.charAt(0).toUpperCase()+i.slice(1)};var UE={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 LE=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const jE=T.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:d,...p},g)=>T.createElement("svg",{ref:g,...UE,width:i,height:i,stroke:n,strokeWidth:s?Number(l)*24/Number(i):l,className:Zy("lucide",c),...!f&&!LE(p)&&{"aria-hidden":"true"},...p},[...d.map(([m,b])=>T.createElement(m,b)),...Array.isArray(f)?f:[f]]));const Pi=(n,i)=>{const l=T.forwardRef(({className:s,...c},f)=>T.createElement(jE,{ref:f,iconNode:i,className:Zy(`lucide-${kE(Ug(n))}`,`lucide-${n}`,s),...c}));return l.displayName=Ug(n),l};const BE=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],qE=Pi("bell",BE);const HE=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],QE=Pi("cpu",HE);const YE=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],VE=Pi("folder-git-2",YE);const GE=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],KE=Pi("languages",GE);const XE=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],FE=Pi("settings",XE);const PE=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],ZE=Pi("users",PE);const JE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],IE=Pi("x",JE),Lg=n=>{let i;const l=new Set,s=(m,b)=>{const y=typeof m=="function"?m(i):m;if(!Object.is(y,i)){const E=i;i=b??(typeof y!="object"||y===null)?y:Object.assign({},i,y),l.forEach(M=>M(i,E))}},c=()=>i,p={setState:s,getState:c,getInitialState:()=>g,subscribe:m=>(l.add(m),()=>l.delete(m))},g=i=n(s,c,p);return p},$E=(n=>n?Lg(n):Lg),WE=n=>n;function ex(n,i=WE){const l=ee.useSyncExternalStore(n.subscribe,ee.useCallback(()=>i(n.getState()),[n,i]),ee.useCallback(()=>i(n.getInitialState()),[n,i]));return ee.useDebugValue(l),l}const jg=n=>{const i=$E(n),l=s=>ex(i,s);return Object.assign(l,i),l},Jy=(n=>n?jg(n):jg),Bl=Jy(n=>({sidebarOpen:!0,theme:"system",settingsOpen:!1,settingsTab:"general",toggleSidebar:()=>n(i=>({sidebarOpen:!i.sidebarOpen})),setSidebarOpen:i=>n({sidebarOpen:i}),setTheme:i=>n({theme:i}),openSettings:i=>n({settingsOpen:!0,...i?{settingsTab:i}:{}}),closeSettings:()=>n({settingsOpen:!1}),setSettingsTab:i=>n({settingsTab:i})})),tx="/api";class nx{baseUrl;constructor(i){this.baseUrl=i}async request(i,l={}){const{params:s,...c}=l;let f=`${this.baseUrl}${i}`;if(s){const g=new URLSearchParams(s);f+=`?${g.toString()}`}const d={...c.headers};c.body!==void 0&&(d["Content-Type"]="application/json");const p=await fetch(f,{...c,headers:d});if(!p.ok){const g=await p.json().catch(()=>({}));throw new Xf(p.status,typeof g.message=="string"?g.message:typeof g.error=="string"?g.error:"Request failed",g)}if(p.status!==204)return p.json()}get(i,l){return this.request(i,{...l,method:"GET"})}post(i,l,s){return this.request(i,{...s,method:"POST",body:l?JSON.stringify(l):void 0})}put(i,l,s){return this.request(i,{...s,method:"PUT",body:l?JSON.stringify(l):void 0})}patch(i,l,s){return this.request(i,{...s,method:"PATCH",body:l?JSON.stringify(l):void 0})}delete(i,l){return this.request(i,{...l,method:"DELETE"})}}class Xf extends Error{status;details;constructor(i,l,s={}){super(l),this.name="ApiError",this.status=i,this.details=s}}const lt=new nx(tx),Ne={projects:{all:["projects"],list:n=>["projects","list",n],detail:n=>["projects","detail",n]},tasks:{all:["tasks"],list:(n,i)=>["tasks","list",n,i],detail:n=>["tasks","detail",n],body:n=>["tasks","body",n],stats:n=>["tasks","stats",n]},workspaces:{all:["workspaces"],list:n=>["workspaces","list",n],detail:n=>["workspaces","detail",n],diff:n=>["workspaces","diff",n],gitStatus:n=>["workspaces","gitStatus",n]},previews:{all:["previews"],status:n=>["previews","status",n]},sessions:{all:["sessions"],detail:n=>["sessions","detail",n]},files:{all:["files"],tree:(n,i)=>["files","tree",n,i],content:(n,i)=>["files","content",n,i]},git:{all:["git"],changes:n=>["git","changes",n],diff:(n,i,l)=>["git","diff",n,i,l],log:n=>["git","log",n],commitFiles:(n,i)=>["git","commitFiles",n,i],commitDiff:(n,i,l)=>["git","commitDiff",n,i,l]},profiles:{all:["profiles"],defaults:["profiles","defaults"],agent:n=>["profiles","agent",n],variant:(n,i)=>["profiles","variant",n,i]},providers:{all:["providers"],detail:n=>["providers","detail",n]},tunnel:{status:["tunnel","status"]},notifications:{settings:["notifications","settings"]},appSettings:{detail:["app-settings"]},system:{cursorAgentModels:["system","cursor-agent-models"],slashCommandCatalog:(n,i)=>["system","slash-command-catalog",n??null,i??null],skillCatalog:(n,i)=>["system","skill-catalog",n??null,i??null]}};function ax(){return ja({queryKey:Ne.appSettings.detail,queryFn:()=>lt.get("/app-settings")})}function ix(){const n=gt();return qt({mutationFn:i=>lt.put("/app-settings",i),onSuccess:()=>{n.invalidateQueries({queryKey:Ne.appSettings.detail})}})}function jR(){return ja({queryKey:[...Ne.appSettings.detail,"commit-message-defaults"],queryFn:()=>lt.get("/app-settings/commit-message-defaults")})}const rx={"zh-CN":{Settings:"设置",General:"通用",Back:"返回","Loading...":"加载中...","No options":"暂无选项","Processing...":"处理中...",Confirm:"确认",Cancel:"取消","General Settings":"通用设置","Display Language":"显示语言","Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.":"选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。",English:"English","Simplified Chinese":"简体中文","Language setting":"语言设置","Language setting could not be saved":"语言设置保存失败","Browse and select a Git repository, or type a path and press Enter":"浏览并选择一个 Git 仓库,或输入路径后按 Enter","Browse and select a directory, or type a path and press Enter":"浏览并选择一个目录,或输入路径后按 Enter","Select Current":"选择当前目录","Agent 配置":"Agent 配置",项目配置:"项目配置",通知:"通知",通用:"通用","AI Agent Task Management Dashboard":"AI Agent 任务管理面板","Project Management":"项目管理","Manage your AI agent projects":"管理你的 AI Agent 项目","View Projects":"查看项目","Task Board":"任务看板","Kanban-style task management":"Kanban 风格的任务管理","Open Board":"打开看板",Workspace:"工作区","Git worktree isolated environments":"Git Worktree 隔离环境","Manage Workspaces":"管理工作区","Move to":"移动到","Delete Task":"删除任务","Drop into {title}":"放入 {title}","Drop here":"拖到此处","No tasks":"暂无任务","All Projects":"所有项目",Projects:"项目","Select View":"选择视图","Create New Project...":"创建新项目...","New Task":"新任务","New Project":"新项目",Search:"搜索","Search tasks...":"搜索任务...","Recent tasks":"近期任务","No matching tasks":"没有匹配的任务","{count} tasks":"{count} 个任务","Clear filter":"清除筛选",Review:"待审查",Running:"进行中",Pending:"待开始",Done:"已完成",Cancelled:"已取消",Changes:"变更",History:"历史",Editor:"编辑器",Terminal:"终端",Preview:"预览","Coming soon...":"即将推出...",Modified:"已修改",Added:"已新增",Deleted:"已删除",Renamed:"已重命名","Loading diff...":"正在加载差异...","Failed to load diff.":"加载差异失败。","No diff content available.":"没有可显示的差异内容。","No workspace selected.":"未选择工作区。","Loading changes...":"正在加载变更...","Failed to load changes.":"加载变更失败。","No pending changes":"暂无待处理变更",Uncommitted:"未提交",Committed:"已提交","Select a file to view diff":"选择一个文件以查看差异","{count}s ago":"{count} 秒前","{count}m ago":"{count} 分钟前","{count}h ago":"{count} 小时前","{count}d ago":"{count} 天前","Loading files...":"正在加载文件列表...","No files changed":"没有文件变更","Loading history...":"正在加载历史记录...","Failed to load history.":"加载历史记录失败。","No commit history":"暂无提交历史","Load more":"加载更多","Select a commit to view changes":"选择一个提交以查看变更","Zoom out":"缩小","Reset zoom":"重置缩放","Zoom in":"放大","Fit to view":"适应视图","Failed to load image.":"加载图片失败。","Close tab":"关闭标签页",Close:"关闭","Expand file tree":"展开文件树","No open files":"暂无打开文件",Saving:"保存中",Unsaved:"未保存","Select a file from the tree to open.":"从文件树中选择一个文件以打开。","Loading file...":"正在加载文件...","Failed to load file":"加载文件失败","Failed to load":"加载失败",Files:"文件","No working directory":"未选择工作目录","Refresh file tree":"刷新文件树","Collapse file tree":"收起文件树","Shell {count}":"终端 {count}","New Terminal":"新终端","No terminals open":"暂无打开终端",Disconnected:"未连接","Connecting...":"连接中...",Connected:"已连接","No active session":"暂无活动会话","Create a workspace and start a session to see terminal output.":"创建工作区并启动会话后即可查看终端输出。","Process exited with code {code}":"进程已退出,退出码 {code}","Error: {message}":"错误: {message}","Session: {id}":"会话: {id}","Tunnel active":"隧道已启用","Share via tunnel":"通过隧道分享","Tunnel Active":"隧道已启用","Tunnel healthy":"隧道健康","Tunnel needs attention":"隧道需要注意","Tunnel unavailable":"隧道不可用","Tunnel starting":"隧道启动中","Tunnel is off":"隧道未开启","Checking tunnel health":"正在检查隧道健康","Observing original link":"正在观察原链接","Local service unavailable":"本地服务不可用","Tunnel process exited":"隧道进程已退出","Tunnel error":"隧道错误","New link generated":"新链接已生成","Use Agent Tower on your phone":"在手机上使用 Agent Tower","After enabling the tunnel, you can scan a QR code with your phone to visit this Agent Tower instance, assign tasks, and check agent status.":"开启隧道后,可以用手机扫码访问本机的 Agent Tower,用手机派任务、查看 Agent 状态。","Enable phone access":"开启手机访问","Starting tunnel...":"正在开启隧道...","Start a temporary Quick Tunnel when you need to share this Agent Tower session.":"需要分享当前 Agent Tower 会话时,可以启动一个临时 Quick Tunnel。","The Cloudflare tunnel is running and the local Agent Tower health check passed.":"Cloudflare 隧道正在运行,且本地 Agent Tower 健康检查已通过。","The Cloudflare tunnel is running. Agent Tower is waiting for the first local health check.":"Cloudflare 隧道正在运行,Agent Tower 正在等待首次本地健康检查。","The original public URL is currently unreachable. Agent Tower is watching for it to recover and will not generate a new link automatically.":"原公网链接当前不可访问。Agent Tower 正在观察它是否恢复,不会自动生成新链接。","The local Agent Tower target is not responding, so the tunnel cannot be considered healthy.":"本地 Agent Tower 目标没有响应,因此隧道不能视为健康。","The tunnel process has exited. The old Quick Tunnel link is unlikely to recover.":"隧道进程已退出,旧 Quick Tunnel 链接大概率无法恢复。","The tunnel reported an error. Check the diagnostics before generating a new link.":"隧道报告了错误。生成新链接前请先查看诊断信息。","A new Quick Tunnel link was generated. The old link and token are no longer valid.":"已生成新的 Quick Tunnel 链接。旧链接和 token 已失效。","Agent Tower is asking Cloudflare Quick Tunnel for a temporary public URL.":"Agent Tower 正在向 Cloudflare Quick Tunnel 申请临时公网链接。","Last checked":"上次检查","Last healthy":"上次健康",Never:"从未","Agent Tower is keeping the same URL and waiting for Cloudflare Quick Tunnel to recover.":"Agent Tower 会保留同一个 URL,并等待 Cloudflare Quick Tunnel 自行恢复。","The previous tunnel link and token are no longer valid.":"之前的隧道链接和 token 已不再有效。","Generating a new link will invalidate the current link. People using the old URL must receive the new one.":"生成新链接会使当前链接失效。正在使用旧 URL 的人需要收到新链接。","Regenerate link":"重新生成链接","Generating...":"生成中...","Token protected":"受 Token 保护","Copy shareable link":"复制分享链接","No tunnel link available":"暂无可用隧道链接","Hide token":"隐藏 Token","Show token":"显示 Token","Copy token":"复制 Token","Stopping...":"停止中...","Stop Tunnel":"停止隧道","Create & Start":"创建并启动","Create TeamRun":"创建 TeamRun","Creating TeamRun...":"正在创建 TeamRun...","Team Status":"团队状态","Team mode":"团队模式","Review reason":"审查原因",Members:"成员","No members":"暂无成员",Queue:"队列","No queued work requests":"暂无排队中的工作请求","Active invocations":"活动调用","No active invocations":"暂无活动调用","Recently completed":"最近完成","No completed invocations":"暂无已完成调用","New session per request":"每次新会话","Resume last session":"复用上次会话",Latest:"最新","Invocation history":"调用历史","No invocation history":"暂无调用历史","No invocations yet":"暂无调用记录","All members idle":"所有成员空闲",Log:"日志",Details:"详情",Workspaces:"工作区",Owner:"所有者",Parent:"父级",Selected:"已选",Select:"选择","View workspace":"查看工作区",Invocation:"调用",Session:"会话","View log":"查看日志","View details":"查看详情","Team room":"团队房间","No room messages yet":"暂无房间消息",Messages:"消息","Work requests":"工作请求","Active work":"进行中的工作",Working:"正在工作","Queued...":"排队中...","Waiting reply...":"等待回复...",running:"进行中",queued:"排队",waiting:"等待",ended:"已结束",Elapsed:"耗时",Failed:"失败","Session ended":"会话已结束","Failed to send room message":"发送房间消息失败",selected:"已选择","Back to bottom":"回到底部","Expand full message":"展开全部","Collapse message":"收起","Invocation details":"调用详情","Back to room":"返回群聊","Pending approval":"待审批","Tool Calls":"工具调用","No pending approvals":"暂无待审批项",Requester:"发起者",User:"用户",System:"系统","Waiting room reply":"等待房间回复",Queued:"排队中",Idle:"空闲","Queue if busy":"忙碌时排队","Cancel current if busy":"忙碌时取消当前并开始","Cancel queued":"取消排队",Approve:"批准",Approving:"批准中...",Reject:"拒绝",Rejecting:"拒绝中...",Cancelling:"取消中...","Failed to update work request":"更新工作请求失败","Failed to cancel work request":"取消工作请求失败",Stop:"停止","Stop running work?":"停止正在运行的工作?","Stop only":"仅停止","Stop + clear queue":"停止并清空队列",Stopping:"停止中...","Failed to stop member work":"停止成员工作失败",Yes:"是",No:"否","Creating Task...":"正在创建任务...","Creating Workspace...":"正在创建工作区...","Creating Session...":"正在创建会话...","Starting Agent...":"正在启动 Agent...","启动 Agent 失败":"Failed to start Agent","重试启动 Agent":"Retry Start Agent","Create New Project":"创建新项目","Creating...":"创建中...","Checking...":"检查中...",Create:"创建","Create Project":"创建项目","Initialize Git repository?":"初始化 Git 仓库?","Initialize and Create":"初始化并创建","This directory is empty and does not have Git version control yet. Agent Tower can initialize Git and create the initial commit before creating the project.":"该目录为空且尚未启用 Git 版本管理。Agent Tower 可以先初始化 Git 并创建初始提交,然后再创建项目。","The selected directory is not a Git repository and is not empty. Initialize Git manually and make an initial commit, then create the project.":"所选目录不是 Git 仓库且不为空。请手动初始化 Git 并完成首次提交,然后再创建项目。","Selected path is not a valid directory":"所选路径不是有效目录","Could not check repository path":"无法检查仓库路径","Project Name":"项目名称","e.g., Agent Tower":"例如:Agent Tower","Repository Path":"仓库路径","Create New Task":"创建新任务",Execution:"执行方式","Solo Agent":"Solo Agent",Project:"项目",Provider:"Provider",Agent:"Agent","Select project...":"选择项目...","Select provider...":"选择 Provider...","Task Title":"任务标题","e.g., Implement login flow":"例如:实现登录流程",Description:"描述","Optional...":"可选...","Optional description...":"可选描述...","Drop files here":"将文件拖到这里","Attach files":"添加文件","or paste files":"或粘贴文件","or paste/drag files":"或粘贴/拖拽文件","Drag to resize":"拖动以调整大小","Failed to create task":"创建任务失败","Failed to create project":"创建项目失败","Select a task from the sidebar to view logs, monitor execution, or interact with an agent.":"从侧边栏选择一个任务,以查看日志、监控执行过程,或与 Agent 交互。","Open in IDE":"在 IDE 中打开","Toggle Workspace":"切换工作区面板","More actions":"更多操作","No description":"暂无描述","Setup ({current}/{total}): {command}":"Setup({current}/{total}):{command}","Loading logs...":"正在加载日志...","Waiting for agent output...":"等待 Agent 输出...","No logs recorded for this session.":"当前会话暂无日志记录。","Scroll to bottom":"滚动到底部","Drop files here...":"将文件拖到这里...","Continue conversation...":"继续对话...","Message Agent...":"给 Agent 发送消息...","Upload file":"上传文件","Uploading...":"上传中...","Describe your task...":"描述你的任务...","Switch to TeamRun":"切换到 TeamRun","Switch to Solo Agent":"切换到单 Agent"," (unavailable)":"(不可用)","Manage Team Members":"管理团队成员","Add member":"添加成员","Save member":"保存成员","Edit member":"编辑成员","Remove member":"移除成员",Remove:"移除","Member added":"成员已添加","Member updated":"成员已更新","Member removed":"成员已移除","Failed to save member":"保存成员失败","Failed to remove member":"移除成员失败","Name, provider, and role prompt are required":"名称、Provider 和角色提示词不能为空","No active members":"暂无活跃成员","Add member from preset":"从预设添加成员","Choose a saved preset to add a ready-to-run member snapshot.":"选择已保存的预设,添加一个可直接工作的成员快照。","Custom member":"自定义成员",Custom:"自定义","Use preset":"使用预设",Preset:"预设","Select a member":"选择成员","Choose a member on the left to edit its future TeamRun configuration.":"从左侧选择成员,编辑其后续 TeamRun 配置。","Provider, role, workspace, and session changes apply to future work only.":"Provider、角色、工作区和会话变更只影响后续工作。","Create a one-off member snapshot for this TeamRun.":"为当前 TeamRun 创建一次性的成员快照。","Create a custom member for this TeamRun, or add presets from Team Collaboration Settings.":"可以为当前 TeamRun 创建自定义成员,或先在团队协作设置中添加预设。","Remove this member from future TeamRun work?":"将该成员从后续 TeamRun 工作中移除?",Name:"名称",Aliases:"别名",Avatar:"头像","Workspace policy":"工作区策略","Trigger policy":"触发策略","Session policy":"会话策略","Queue policy":"队列策略","Role prompt":"角色提示词",Capabilities:"能力","Comma separated":"用逗号分隔","No member presets":"暂无成员预设",active:"活跃",working:"工作中"},en:{设置:"Settings",通用:"General",返回:"Back","加载中...":"Loading...",暂无选项:"No options","处理中...":"Processing...",确认:"Confirm",取消:"Cancel",工具调用:"Tool Calls","失败 {count}":"Failed {count}",通用设置:"General Settings",显示语言:"Display Language","选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。":"Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.",简体中文:"Simplified Chinese",语言设置:"Language setting",语言设置保存失败:"Language setting could not be saved","Agent 配置":"Agent Settings",项目配置:"Project Settings",通知:"Notifications","暂无项目,请先创建项目":"No projects yet. Create one first.",选择项目:"Select Project","选择项目...":"Select project...",自动复制文件:"Auto-copy Files","创建 worktree 时自动从主仓库复制的文件或目录。支持 glob 模式。":"Files or directories to copy from the main repository when creating a worktree. Glob patterns are supported.","适用于不在 git 管理中但启动必需的文件,如 .env、node_modules、数据库文件等":"Useful for required startup files that are not tracked by git, such as .env, node_modules, or database files.","Setup 脚本":"Setup Script","创建 worktree 后自动执行的命令,每行一条,按顺序执行。":"Commands to run automatically after creating the worktree, one per line in order.","命令在 worktree 目录下执行,单条命令超时 5 分钟,失败不会阻断后续命令":"Commands run inside the worktree directory. Each command times out after 5 minutes, and a failure does not block later commands.",常用命令:"Quick Commands","在终端中可快速执行的命令,不会自动运行。":"Commands that can be run quickly in the terminal. They are not executed automatically.","保存中...":"Saving...",保存:"Save",有未保存的更改:"You have unsaved changes",系统通知:"System Notifications",任务完成时弹出桌面通知:"Show a desktop notification when a task finishes.",第三方通知:"Third-party Notifications",选择一个第三方渠道接收通知:"Choose a third-party channel to receive notifications.",无:"None",飞书:"Feishu",测试发送:"Send Test",发送成功:"Sent successfully",发送失败:"Send failed","跳转地址(用于生成任务链接)":"Base URL (used to generate task links)",'通知卡片中的"查看任务"按钮将跳转到 {path}':'The "View Task" button in the notification card will open {path}',通知模板:"Notification Templates","支持变量: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}":"Supported variables: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}",标题模板:"Title Template",内容模板:"Body Template",'✅ "{taskTitle}" 已完成,等待审查':'✅ "{taskTitle}" is complete and ready for review',保存所有更改:"Save All Changes","启动失败: {message}":"Start failed: {message}",未知错误:"Unknown error",会话已停止:"Session stopped","Agent 交互演示":"Agent Interaction Demo","选择 Agent":"Select Agent","输入你的问题或任务...":"Enter your question or task...","启动中...":"Starting...",开始:"Start",对话:"Conversation",已连接:"Connected","连接中...":"Connecting...",未连接:"Disconnected",停止:"Stop","选择 Agent 并输入问题开始对话":"Select an agent and enter a prompt to start chatting.",你:"You","发送后续消息...":"Send a follow-up message...",发送:"Send",新会话:"New Session",未选择:"Not selected",连接:"Connection","Profiles 设置":"Profile Settings","配置变体 (Profile Variant)":"Profile Variant",输入任务:"Task Input","等待 Agent 响应...":"Waiting for agent output...","发送消息给 Agent...":"Send a message to the agent...","启动失败,请重试":"Failed to start. Please try again.",启动:"Start","创建工作空间...":"Creating workspace...","创建会话...":"Creating session...","启动 Agent...":"Starting agent...","启动 Agent":"Start Agent","选择 Provider":"Select Provider"," (不可用)":" (Unavailable)",任务描述:"Task Description","描述你想让 Agent 完成的任务...":"Describe the task you want the agent to complete...","输入文件路径...":"Enter a file path...",添加:"Add",添加此目录:"Add this directory",名称:"Name",命令:"Command",切换渠道:"Switch Provider","(默认)":"(Default)","留空为 auto;或直接输入模型 ID(与 cursor-agent --model 一致)":"Leave empty for auto, or enter a model ID directly (same as cursor-agent --model).","正在加载 cursor-agent 模型列表…":"Loading cursor-agent model list...",收起列表:"Collapse List","从本机 cursor-agent 选择({count} 个)":"Choose from local cursor-agent ({count})","筛选模型…":"Filter models...","默认 (auto)":"Default (auto)",无匹配项:"No matches",请求失败:"Request failed","无法从本机加载模型列表({error})。仍可手动输入;或在安装 cursor-agent 的机器上运行":"Could not load models from the local machine ({error}). You can still enter one manually, or run","查看 ID。":"to inspect available IDs.","JSON 格式错误":"Invalid JSON format","删除 Profile Variant":"Delete Profile Variant","确定删除 {agentType} / {variant}?":"Delete {agentType} / {variant}?",新增:"New",内置:"Built-in","新增 Variant — {agentType}":"New Variant — {agentType}","编辑 {variant}":"Edit {variant}","Variant 名称":"Variant Name","例如: CUSTOM":"e.g. CUSTOM","配置 (JSON)":"Configuration (JSON)","状态变更失败,该操作不被允许":"Status change failed. This action is not allowed.","Git 操作":"Git Operations",删除任务:"Delete Task","Setup 完成":"Setup complete","Setup 失败: {error}":"Setup failed: {error}","尚未启动 Agent":"No agent started yet","选择一个 Agent 来执行此任务":"Choose an agent to execute this task.","选择一个 Agent 来执行此任务,Agent 将自动创建工作空间并开始工作。":"Choose an agent to execute this task. The agent will create a workspace automatically and start working.",回到底部:"Back to Bottom","代码已合并,以上为历史沟通记录":"The code has been merged. The conversation above is historical.","启动新 Agent":"Start New Agent","确认删除任务「{title}」?此操作不可撤销。":'Delete task "{title}"? This action cannot be undone.',删除:"Delete","正在运行的 Agent 将被停止":"The running agent will be stopped.",分支上未合并的变更将丢失:"Unmerged changes on the branch will be lost.","关联的工作目录(worktree)将被清理":"The associated worktree directory will be cleaned up.","{opLabel} 冲突 — {count} 个文件":"{opLabel} conflicts — {count} files",中止操作:"Abort Operation",解决冲突:"Resolve Conflicts","解决 {opLabel} 冲突":"Resolve {opLabel} Conflicts","在 IDE 中打开":"Open in IDE","发送中...":"Sending...","AI 辅助解决":"Resolve with AI","冲突文件({count})":"Conflicted Files ({count})","选择 Session(AI 辅助解决)":"Choose Session (Resolve with AI)","选择一个 Session...":"Select a session...","没有可用的 Session,请在 IDE 中手动解决冲突。":"No session is available. Please resolve the conflicts manually in your IDE.","TeamRun 模式下会把处理冲突请求发送到 Team Room,由团队调度处理。":"In TeamRun mode, the conflict request will be sent to Team Room for team scheduling.","已发送到 Team Room":"Sent to Team Room",快捷命令:"Quick Commands",待办:"Todos","上下文: {used} / {max} tokens":"Context: {used} / {max} tokens","已使用: {used} tokens":"Used: {used} tokens",可用:"Available",不可用:"Unavailable",该类型暂无运行配置:"No runtime configuration is available for this type.","追加 Prompt":"Append Prompt","追加到每次 prompt 末尾的文本":"Text appended to the end of every prompt.",跳过权限确认:"Skip Permission Confirmation",模型:"Model",强制执行:"Force Execution",跳过所有确认和沙盒:"Skip All Confirmations and Sandbox",Profile:"Profile","~/.codex/config.toml 中的 profile 名称":"Profile name in ~/.codex/config.toml",是:"Yes",否:"No",覆盖:"Overwrite",跳过:"Skip","JSON 语法错误":"Invalid JSON syntax","TOML 语法错误: {message}":"Invalid TOML syntax: {message}","编辑 Provider":"Edit Provider","新建 Provider":"New Provider","例如: Claude Code (官方)":"e.g. Claude Code (Official)","Agent 类型":"Agent Type","选择 Agent 类型":"Select Agent Type","设为该类型的默认 Provider":"Set as the default provider for this agent type",运行配置:"Runtime Configuration",环境变量:"Environment Variables","注入到 Agent 进程的环境变量。Codex 的":"Environment variables injected into the agent process. Codex","指定的是变量名,实际值需在此处设置。":"specifies the variable name in env_key, and the actual value must be set here.","变量名,如 AZURE_OPENAI_API_KEY":"Variable name, e.g. AZURE_OPENAI_API_KEY",值:"Value",添加变量:"Add Variable","CLI 原生配置 (config.toml)":"Native CLI Config (config.toml)","CLI 原生配置 (settings.json)":"Native CLI Config (settings.json)","直接填写 Codex":"Enter a Codex","格式的配置片段,通过":"configuration snippet directly and inject it via","参数注入。不会修改你的":". It will not modify your","文件。":"file.","对应 Claude Code 的":"This corresponds to Claude Code",通过:"and is injected through","参数注入。在":". Configure","中设置 ANTHROPIC_API_KEY、ANTHROPIC_BASE_URL 等。":"inside env, such as ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL.","导出 Provider 备份":"Export Provider Backup","导出中...":"Exporting...",导出备份:"Export Backup","导出的备份文件将包含完整的 Provider 配置,包括环境变量、CLI settings 等敏感信息。任何拿到文件的人都可能直接使用这些 Provider。":"The exported backup file contains the full provider configuration, including sensitive information such as environment variables and CLI settings. Anyone with this file may be able to use those providers directly.","这个功能用于备份和迁移,不用于分享配置。":"This feature is for backup and migration, not for sharing configuration.","导出内容只包含用户层配置:自定义 Provider,以及对内置 Provider 的覆盖。":"The export only contains user-level configuration: custom providers and overrides of built-in providers.","我已知晓该备份文件包含敏感信息,只会保存在安全位置。":"I understand that this backup contains sensitive information and will only store it in a secure location.","导入 Provider 备份":"Import Provider Backup","导入中...":"Importing...","确认导入 {count} 项":"Import {count} item(s)","导出时间:{value}":"Exported at: {value}","模式:完整备份(含敏感信息)":"Mode: Full backup (contains sensitive data)","文件内 Provider 数量:{count}":"Providers in file: {count}","将覆盖当前已有的 Provider:{name}":"This will overwrite the existing provider: {name}","当前同 ID Provider 配置一致,本次不会重复写入。":"The provider with the same ID is already identical. It will not be written again.","当前不存在同 ID Provider,将直接新增。":"No provider with the same ID exists. It will be created directly.","系统内置 Provider 不可删除":"Built-in providers cannot be deleted.","已恢复默认 Provider 配置":"Default provider configuration restored.","Provider 已删除":"Provider deleted.","删除 Provider 失败":"Failed to delete provider.","Provider 备份已导出":"Provider backup exported.","导出 Provider 备份失败":"Failed to export provider backup.","备份文件不是有效的 JSON":"The backup file is not valid JSON.",导入预览失败:"Failed to preview import.","导入完成,当前配置无需变更":"Import complete. No changes were needed.","导入完成:新增 {create},覆盖 {overwrite},跳过 {skip}":"Import complete: created {create}, overwritten {overwrite}, skipped {skip}","导入 Provider 备份失败":"Failed to import provider backup.","Provider 配置":"Provider Configuration","管理 AI Agent 的连接配置和运行参数":"Manage AI agent connection settings and runtime parameters.",导入备份:"Import Backup","暂无 Provider 配置":"No providers configured yet.",默认:"Default","CLI 配置:":"CLI Config:",已配置:"Configured","环境变量:":"Environment Variables:",编辑:"Edit",删除自定义覆盖并恢复默认:"Delete custom override and restore default","恢复默认 Provider":"Restore Default Provider",'确定删除 "{name}" 的自定义覆盖,并恢复系统默认配置?':'Delete the custom override for "{name}" and restore the system default configuration?','确定删除 "{name}"?此操作不可撤销。':'Delete "{name}"? This action cannot be undone.',恢复默认:"Restore Default","{count} 个未提交变更":"{count} uncommitted changes","{count} 个冲突文件":"{count} conflicted files",变基进行中:"Rebase in progress",合并进行中:"Merge in progress","领先 {count} 个提交":"{count} commits ahead","落后 {count} 个提交":"{count} commits behind",已是最新:"Up to date","工作区有未提交的变更,请先让 Agent 提交或手动处理后再执行 Rebase / Merge 操作。":"The workspace has uncommitted changes. Ask the agent to commit them or handle them manually before running Rebase / Merge.",变基失败:"Rebase failed",合并失败:"Merge failed",确认合并:"Confirm Merge","加载分支状态...":"Loading branch status...","变基中...":"Rebasing...","变基 (Rebase)":"Rebase","将当前分支变基到最新的 {targetBranch}":"Rebase the current branch onto the latest {targetBranch}","合并 (Merge)":"Merge","合并中...":"Merging...","Squash merge 到 {targetBranch}":"Squash merge into {targetBranch}",提交消息:"Commit Message","输入提交消息...":"Enter commit message...",留空将使用默认消息:"Leave blank to use the default message.","Git Commit Message":"Git Commit Message","配置自动生成 commit message 时使用的 Agent 渠道和提示词。":"Configure the agent provider and prompt used for auto-generating commit messages.","Agent 渠道":"Agent Provider",跟随任务:"Follow Task",'"跟随任务"表示使用当前任务所用的 Agent 渠道。选择具体渠道可使用更经济的模型。':'"Follow Task" uses the same provider as the current task. Select a specific provider to use a more cost-effective model.',提示词模板:"Prompt Template","自定义生成 commit message 的提示词。留空则使用内置默认模板。":"Custom prompt for generating commit messages. Leave empty to use the built-in default template.",保存失败:"Save failed",已保存:"Saved",已创建:"Created",创建:"Create",单人:"Solo",团队:"Team",团队协作:"Team Collaboration",团队协作设置:"Team Collaboration Settings","管理成员预设与团队模板。":"Manage member presets and team templates.",成员预设:"Member Presets",团队模板:"Team Templates","点击列表项可编辑。":"Click an item to edit it.",当前没有成员预设:"No member presets yet.",当前没有团队模板:"No team templates yet.",创建新成员预设:"Create a new member preset",编辑成员预设:"Edit member preset",创建新团队模板:"Create a new team template",编辑团队模板:"Edit team template",成员预设名称:"Member preset name",成员预设别名:"Member preset aliases",成员预设头像:"Member preset avatar",成员预设角色提示词:"Member preset role prompt",团队模板名称:"Team template name",别名:"Aliases",头像:"Avatar",角色提示词:"Role Prompt",可用能力:"Capabilities",工作区策略:"Workspace Policy",触发策略:"Trigger Policy",共享:"Shared",独占:"Dedicated",仅提及:"Mention only",所有用户消息:"All user messages",读房间:"Read room",发房间消息:"Post room message",提及成员:"Mention members",停止成员工作:"Stop member work",标记可审查:"Mark ready for review",读文件:"Read files",写文件:"Write files",运行命令:"Run commands","读 diff":"Read diff",合并工作区:"Merge workspace","{count} 个成员":"{count} member(s)","Provider 列表加载失败":"Failed to load providers","Provider 列表加载失败,无法创建或修改成员预设。":"Failed to load providers. Member presets cannot be created or updated.",成员预设加载失败:"Failed to load member presets",团队模板加载失败:"Failed to load team templates","请稍后重试。":"Please try again later.",重试:"Retry","暂无可用 Provider,请先在 Agent 配置中创建。":"No available provider. Create one in Agent Settings first.","alice, a, reviewer":"alice, a, reviewer","选择顺序即保存顺序。":"Selection order is the saved order.",已选成员:"Selected Members","上移下移后即为保存顺序。":"Use up/down to change the saved order.",尚未选择成员预设:"No member presets selected yet.","先创建成员预设,再配置团队模板。":"Create member presets first, then configure a team template.",删除失败:"Delete failed",上移:"Move up",下移:"Move down","创建 TeamRun":"Create TeamRun",TeamRun:"TeamRun",模式:"Mode",执行模式:"Execution mode","TeamRun 模式":"TeamRun mode",确认模式:"Confirm mode",自动模式:"Auto mode","默认使用自动模式,团队消息会直接排队执行。":"Auto mode is the default. Team messages are queued for execution directly.","模板成员会先加入,随后按顺序追加所选成员。":"Template members are added first, then the selected members are appended in order.","请选择至少一个团队模板或成员预设。":"Select at least one team template or member preset.","该任务已经存在 TeamRun。请刷新后再试。":"This task already has a TeamRun. Refresh and try again.","创建 TeamRun 失败":"Failed to create TeamRun","TeamRun 创建失败,请检查团队配置后重试":"TeamRun creation failed. Please check team config and retry.","前往 /settings/team 创建":"Go to /settings/team to create one","欢迎使用 Agent Tower":"Welcome to Agent Tower","需要我帮你做点什么?":"What can I help you with?","描述任务,选择 Agent 或团队,即刻开始":"Describe a task, pick an Agent or team, and start right away","描述一个任务,AI Agent 将为你开始工作":"Describe a task and an AI agent will start working on it.","TeamRun 协作配置":"TeamRun Configuration",团队协作配置:"Team Collaboration Config","切换回单 Agent":"Switch to Solo Agent",追加成员:"Additional Members","{count} 个追加成员":"{count} additional member(s)",去创建:"Create",请选择团队模板或追加成员:"Select a team template or add members",收起:"Collapse","没有可用项目,请先创建或恢复项目":"No available projects. Please create or restore a project first.","任务已创建,但启动 Agent 失败,可在详情中重试":"Task created, but failed to start Agent. You can retry from the task detail.",冲突:"Conflict",变基中:"Rebasing",合并中:"Merging","{count} 未提交":"{count} uncommitted","落后 {count}":"Behind {count}",可合并:"Mergeable",查看变更详情:"View changes","分支落后 {count} 个提交,建议先执行变基 (Rebase) 同步最新代码。":"The branch is {count} commits behind. Consider rebasing to sync the latest code.","合并到 {target}":"Merge into {target}",需要先变基同步最新代码:"Rebase required to sync latest code",请先处理未提交变更:"Handle uncommitted changes first","中止中...":"Aborting...","正在检查工作区状态...":"Checking workspace status...",当前分支还没有任何变更:"No changes on this branch yet","{count} 个本地改动未处理,需要先整理后再继续":"{count} local changes pending — clean them up before continuing","{count} 个文件存在冲突,需要处理后继续":"{count} files have conflicts — resolve them to continue","正在同步源分支更新...":"Syncing updates from source branch...","正在提交变更...":"Submitting changes...","源分支 {branch} 有 {count} 个更新":"Source branch {branch} has {count} updates","{count} 个文件变更,可以安全提交":"{count} file changes, safe to submit",同步更新:"Sync updates","正在同步...":"Syncing...",提交变更:"Submit changes",需要先同步源分支更新:"Sync source branch updates first","更新失败,请稍后重试":"Update failed. Please try again later.","提交失败,请稍后重试":"Submit failed. Please try again later.","正在提交...":"Submitting...",确认提交:"Confirm Submit",请描述本次修改的内容:"Describe the changes in this submission","建议以 feat、fix、docs、refactor、chore 开头,保持提交记录清晰。feat 新增功能,fix 修复问题,docs 文档更新,refactor 代码重构,chore 日常维护。":"Start with feat (new feature), fix (bug fix), docs (documentation), refactor (restructure), or chore (maintenance) to keep the history clean.",需要先处理本地改动:"Handle local changes first",处理冲突:"Resolve conflicts","正在撤销...":"Undoing...",撤销操作:"Undo operation",确认后会停止当前工作并取消队列:"Confirming will stop the current work and clear the queue",每次新会话:"New session per request",复用上次会话:"Resume last session",仅自己队列:"Own queue only",全队列待处理:"Team pending queue",代码审查:"Review","{count} 个文件":"{count} files",未选择工作区:"No workspace selected",没有可显示的差异内容:"No diff content available","还有 {count} 行变更被折叠,点击展开全部":"{count} more lines collapsed — click to expand all","正在加载差异...":"Loading diff...",差异加载失败:"Failed to load diff",变更加载失败:"Failed to load changes",没有匹配筛选条件的文件:"No files match the filter",该提交没有文件变更:"No file changes in this commit",没有待审查的变更:"No changes to review",未提交:"Uncommitted",已提交:"Committed","筛选文件...":"Filter files...",无匹配文件:"No matching files",暂无变更文件:"No changed files",提交记录:"Commits",全部变更:"All changes","正在加载提交记录...":"Loading commits...",暂无提交记录:"No commits yet",加载更多提交:"Load more commits","正在加载...":"Loading..."}},Iy=T.createContext(null);function lx(n){return n?n==="en"?"en":n==="zh-CN"?"zh-CN":null:null}function sx(){return typeof navigator>"u"||navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en"}function ox(n,i){if(!i)return n;let l=n;for(const[s,c]of Object.entries(i))l=l.replaceAll(`{${s}}`,String(c??""));return l}let Sf="zh-CN";function $y(n,i,l){const s=rx[n][i]??i;return ox(s,l)}function ux(n,i){return $y(Sf,n,i)}function cx({children:n}){const i=T.useRef(sx()),[l,s]=T.useState(i.current),{data:c}=ax(),f=ix(),d=T.useRef(!1),p=T.useCallback(b=>{Sf=b,s(b),document.documentElement.lang=b},[]);T.useEffect(()=>{const b=lx(c?.locale)??i.current;p(b),c&&c.locale===null&&!d.current&&(d.current=!0,f.mutate({locale:b}))},[c,p,f]);const g=T.useCallback(b=>{const y=Sf;p(b),f.mutate({locale:b},{onError:()=>{p(y),KS.error(ux("语言设置保存失败"))}})},[p,f]),m=T.useMemo(()=>({locale:l,setLocale:g,t:(b,y)=>$y(l,b,y)}),[l,g]);return Q.jsx(Iy.Provider,{value:m,children:n})}function Ff(){const n=T.useContext(Iy);if(!n)throw new Error("useI18n must be used within I18nProvider");return n}function Wy(n){var i,l,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(i=0;i<c;i++)n[i]&&(l=Wy(n[i]))&&(s&&(s+=" "),s+=l)}else for(l in n)n[l]&&(s&&(s+=" "),s+=l);return s}function ev(){for(var n,i,l=0,s="",c=arguments.length;l<c;l++)(n=arguments[l])&&(i=Wy(n))&&(s&&(s+=" "),s+=i);return s}const fx=(n,i)=>{const l=new Array(n.length+i.length);for(let s=0;s<n.length;s++)l[s]=n[s];for(let s=0;s<i.length;s++)l[n.length+s]=i[s];return l},dx=(n,i)=>({classGroupId:n,validator:i}),tv=(n=new Map,i=null,l)=>({nextPart:n,validators:i,classGroupId:l}),Do="-",Bg=[],hx="arbitrary..",mx=n=>{const i=gx(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return px(d);const p=d.split(Do),g=p[0]===""&&p.length>1?1:0;return nv(p,g,i)},getConflictingClassGroupIds:(d,p)=>{if(p){const g=s[d],m=l[d];return g?m?fx(m,g):g:m||Bg}return l[d]||Bg}}},nv=(n,i,l)=>{if(n.length-i===0)return l.classGroupId;const c=n[i],f=l.nextPart.get(c);if(f){const m=nv(n,i+1,f);if(m)return m}const d=l.validators;if(d===null)return;const p=i===0?n.join(Do):n.slice(i).join(Do),g=d.length;for(let m=0;m<g;m++){const b=d[m];if(b.validator(p))return b.classGroupId}},px=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),l=i.indexOf(":"),s=i.slice(0,l);return s?hx+s:void 0})(),gx=n=>{const{theme:i,classGroups:l}=n;return yx(l,i)},yx=(n,i)=>{const l=tv();for(const s in n){const c=n[s];Pf(c,l,s,i)}return l},Pf=(n,i,l,s)=>{const c=n.length;for(let f=0;f<c;f++){const d=n[f];vx(d,i,l,s)}},vx=(n,i,l,s)=>{if(typeof n=="string"){bx(n,i,l);return}if(typeof n=="function"){Sx(n,i,l,s);return}wx(n,i,l,s)},bx=(n,i,l)=>{const s=n===""?i:av(i,n);s.classGroupId=l},Sx=(n,i,l,s)=>{if(Ex(n)){Pf(n(s),i,l,s);return}i.validators===null&&(i.validators=[]),i.validators.push(dx(l,n))},wx=(n,i,l,s)=>{const c=Object.entries(n),f=c.length;for(let d=0;d<f;d++){const[p,g]=c[d];Pf(g,av(i,p),l,s)}},av=(n,i)=>{let l=n;const s=i.split(Do),c=s.length;for(let f=0;f<c;f++){const d=s[f];let p=l.nextPart.get(d);p||(p=tv(),l.nextPart.set(d,p)),l=p}return l},Ex=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,xx=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),s=Object.create(null);const c=(f,d)=>{l[f]=d,i++,i>n&&(i=0,s=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=s[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},wf="!",qg=":",Tx=[],Hg=(n,i,l,s,c)=>({modifiers:n,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:s,isExternal:c}),Rx=n=>{const{prefix:i,experimentalParseClassName:l}=n;let s=c=>{const f=[];let d=0,p=0,g=0,m;const b=c.length;for(let j=0;j<b;j++){const K=c[j];if(d===0&&p===0){if(K===qg){f.push(c.slice(g,j)),g=j+1;continue}if(K==="/"){m=j;continue}}K==="["?d++:K==="]"?d--:K==="("?p++:K===")"&&p--}const y=f.length===0?c:c.slice(g);let E=y,M=!1;y.endsWith(wf)?(E=y.slice(0,-1),M=!0):y.startsWith(wf)&&(E=y.slice(1),M=!0);const U=m&&m>g?m-g:void 0;return Hg(f,M,E,U)};if(i){const c=i+qg,f=s;s=d=>d.startsWith(c)?f(d.slice(c.length)):Hg(Tx,!1,d,void 0,!0)}if(l){const c=s;s=f=>l({className:f,parseClassName:c})}return s},_x=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((l,s)=>{i.set(l,1e6+s)}),l=>{const s=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],p=d[0]==="[",g=i.has(d);p||g?(c.length>0&&(c.sort(),s.push(...c),c=[]),s.push(d)):c.push(d)}return c.length>0&&(c.sort(),s.push(...c)),s}},Ax=n=>({cache:xx(n.cacheSize),parseClassName:Rx(n),sortModifiers:_x(n),...mx(n)}),Cx=/\s+/,Ox=(n,i)=>{const{parseClassName:l,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:f}=i,d=[],p=n.trim().split(Cx);let g="";for(let m=p.length-1;m>=0;m-=1){const b=p[m],{isExternal:y,modifiers:E,hasImportantModifier:M,baseClassName:U,maybePostfixModifierPosition:j}=l(b);if(y){g=b+(g.length>0?" "+g:g);continue}let K=!!j,G=s(K?U.substring(0,j):U);if(!G){if(!K){g=b+(g.length>0?" "+g:g);continue}if(G=s(U),!G){g=b+(g.length>0?" "+g:g);continue}K=!1}const J=E.length===0?"":E.length===1?E[0]:f(E).join(":"),$=M?J+wf:J,ye=$+G;if(d.indexOf(ye)>-1)continue;d.push(ye);const he=c(G,K);for(let me=0;me<he.length;++me){const A=he[me];d.push($+A)}g=b+(g.length>0?" "+g:g)}return g},Mx=(...n)=>{let i=0,l,s,c="";for(;i<n.length;)(l=n[i++])&&(s=iv(l))&&(c&&(c+=" "),c+=s);return c},iv=n=>{if(typeof n=="string")return n;let i,l="";for(let s=0;s<n.length;s++)n[s]&&(i=iv(n[s]))&&(l&&(l+=" "),l+=i);return l},Dx=(n,...i)=>{let l,s,c,f;const d=g=>{const m=i.reduce((b,y)=>y(b),n());return l=Ax(m),s=l.cache.get,c=l.cache.set,f=p,p(g)},p=g=>{const m=s(g);if(m)return m;const b=Ox(g,l);return c(g,b),b};return f=d,(...g)=>f(Mx(...g))},Nx=[],Ut=n=>{const i=l=>l[n]||Nx;return i.isThemeGetter=!0,i},rv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kx=/^\d+\/\d+$/,zx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ux=/\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$/,Lx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mr=n=>kx.test(n),ze=n=>!!n&&!Number.isNaN(Number(n)),ui=n=>!!n&&Number.isInteger(Number(n)),ef=n=>n.endsWith("%")&&ze(n.slice(0,-1)),Ua=n=>zx.test(n),qx=()=>!0,Hx=n=>Ux.test(n)&&!Lx.test(n),sv=()=>!1,Qx=n=>jx.test(n),Yx=n=>Bx.test(n),Vx=n=>!le(n)&&!se(n),Gx=n=>jr(n,cv,sv),le=n=>rv.test(n),Qi=n=>jr(n,fv,Hx),tf=n=>jr(n,Zx,ze),Qg=n=>jr(n,ov,sv),Kx=n=>jr(n,uv,Yx),mo=n=>jr(n,dv,Qx),se=n=>lv.test(n),zl=n=>Br(n,fv),Xx=n=>Br(n,Jx),Yg=n=>Br(n,ov),Fx=n=>Br(n,cv),Px=n=>Br(n,uv),po=n=>Br(n,dv,!0),jr=(n,i,l)=>{const s=rv.exec(n);return s?s[1]?i(s[1]):l(s[2]):!1},Br=(n,i,l=!1)=>{const s=lv.exec(n);return s?s[1]?i(s[1]):l:!1},ov=n=>n==="position"||n==="percentage",uv=n=>n==="image"||n==="url",cv=n=>n==="length"||n==="size"||n==="bg-size",fv=n=>n==="length",Zx=n=>n==="number",Jx=n=>n==="family-name",dv=n=>n==="shadow",Ix=()=>{const n=Ut("color"),i=Ut("font"),l=Ut("text"),s=Ut("font-weight"),c=Ut("tracking"),f=Ut("leading"),d=Ut("breakpoint"),p=Ut("container"),g=Ut("spacing"),m=Ut("radius"),b=Ut("shadow"),y=Ut("inset-shadow"),E=Ut("text-shadow"),M=Ut("drop-shadow"),U=Ut("blur"),j=Ut("perspective"),K=Ut("aspect"),G=Ut("ease"),J=Ut("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],he=()=>[...ye(),se,le],me=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],V=()=>[se,le,g],oe=()=>[Mr,"full","auto",...V()],Ce=()=>[ui,"none","subgrid",se,le],Ae=()=>["auto",{span:["full",ui,se,le]},ui,se,le],Te=()=>[ui,"auto",se,le],Ue=()=>["auto","min","max","fr",se,le],Le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],we=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...V()],P=()=>[Mr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],q=()=>[n,se,le],ge=()=>[...ye(),Yg,Qg,{position:[se,le]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],x=()=>["auto","cover","contain",Fx,Gx,{size:[se,le]}],H=()=>[ef,zl,Qi],B=()=>["","none","full",m,se,le],Z=()=>["",ze,zl,Qi],te=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[ze,ef,Yg,Qg],Re=()=>["","none",U,se,le],Ye=()=>["none",ze,se,le],Ht=()=>["none",ze,se,le],$t=()=>[ze,se,le],Je=()=>[Mr,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ua],breakpoint:[Ua],color:[qx],container:[Ua],"drop-shadow":[Ua],ease:["in","out","in-out"],font:[Vx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ua],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ua],shadow:[Ua],spacing:["px",ze],text:[Ua],"text-shadow":[Ua],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mr,le,se,K]}],container:["container"],columns:[{columns:[ze,le,se,p]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:he()}],overflow:[{overflow:me()}],"overflow-x":[{"overflow-x":me()}],"overflow-y":[{"overflow-y":me()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:oe()}],"inset-x":[{"inset-x":oe()}],"inset-y":[{"inset-y":oe()}],start:[{start:oe()}],end:[{end:oe()}],top:[{top:oe()}],right:[{right:oe()}],bottom:[{bottom:oe()}],left:[{left:oe()}],visibility:["visible","invisible","collapse"],z:[{z:[ui,"auto",se,le]}],basis:[{basis:[Mr,"full","auto",p,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,Mr,"auto","initial","none",le]}],grow:[{grow:["",ze,se,le]}],shrink:[{shrink:["",ze,se,le]}],order:[{order:[ui,"first","last","none",se,le]}],"grid-cols":[{"grid-cols":Ce()}],"col-start-end":[{col:Ae()}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":Ce()}],"row-start-end":[{row:Ae()}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ue()}],"auto-rows":[{"auto-rows":Ue()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...Le(),"normal"]}],"justify-items":[{"justify-items":[...we(),"normal"]}],"justify-self":[{"justify-self":["auto",...we()]}],"align-content":[{content:["normal",...Le()]}],"align-items":[{items:[...we(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...we(),{baseline:["","last"]}]}],"place-content":[{"place-content":Le()}],"place-items":[{"place-items":[...we(),"baseline"]}],"place-self":[{"place-self":["auto",...we()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[p,"screen",...P()]}],"min-w":[{"min-w":[p,"screen","none",...P()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",l,zl,Qi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,se,tf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ef,le]}],"font-family":[{font:[Xx,le,i]}],"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,se,le]}],"line-clamp":[{"line-clamp":[ze,"none",se,tf]}],leading:[{leading:[f,...V()]}],"list-image":[{"list-image":["none",se,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",se,Qi]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[ze,"auto",se,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,le]}],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",se,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:x()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ui,se,le],radial:["",se,le],conic:[ui,se,le]},Px,Kx]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,se,le]}],"outline-w":[{outline:["",ze,zl,Qi]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",b,po,mo]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",y,po,mo]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[ze,Qi]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",E,po,mo]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[ze,se,le]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"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":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[se,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"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":ye()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:x()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,le]}],filter:[{filter:["","none",se,le]}],blur:[{blur:Re()}],brightness:[{brightness:[ze,se,le]}],contrast:[{contrast:[ze,se,le]}],"drop-shadow":[{"drop-shadow":["","none",M,po,mo]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",ze,se,le]}],"hue-rotate":[{"hue-rotate":[ze,se,le]}],invert:[{invert:["",ze,se,le]}],saturate:[{saturate:[ze,se,le]}],sepia:[{sepia:["",ze,se,le]}],"backdrop-filter":[{"backdrop-filter":["","none",se,le]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[ze,se,le]}],"backdrop-contrast":[{"backdrop-contrast":[ze,se,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,se,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,se,le]}],"backdrop-invert":[{"backdrop-invert":["",ze,se,le]}],"backdrop-opacity":[{"backdrop-opacity":[ze,se,le]}],"backdrop-saturate":[{"backdrop-saturate":[ze,se,le]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,se,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",se,le]}],ease:[{ease:["linear","initial",G,se,le]}],delay:[{delay:[ze,se,le]}],animate:[{animate:["none",J,se,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,se,le]}],"perspective-origin":[{"perspective-origin":he()}],rotate:[{rotate:Ye()}],"rotate-x":[{"rotate-x":Ye()}],"rotate-y":[{"rotate-y":Ye()}],"rotate-z":[{"rotate-z":Ye()}],scale:[{scale:Ht()}],"scale-x":[{"scale-x":Ht()}],"scale-y":[{"scale-y":Ht()}],"scale-z":[{"scale-z":Ht()}],"scale-3d":["scale-3d"],skew:[{skew:$t()}],"skew-x":[{"skew-x":$t()}],"skew-y":[{"skew-y":$t()}],transform:[{transform:[se,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:he()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Je()}],"translate-x":[{"translate-x":Je()}],"translate-y":[{"translate-y":Je()}],"translate-z":[{"translate-z":Je()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"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",se,le]}],"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":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",se,le]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[ze,zl,Qi,tf]}],stroke:[{stroke:["none",...q()]}],"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"]}},$x=Dx(Ix);function mn(...n){return $x(ev(n))}function nf(n){let i=0;for(const l of n){const s=l.codePointAt(0);s>=19968&&s<=40959||s>=13312&&s<=19903||s>=65280&&s<=65376||s>=12288&&s<=12351?i+=2:i+=1}return i}function BR(n,i){if(nf(n)<=i)return n;const l=i-1,s=Math.ceil(l/2),c=Math.floor(l/2);let f="",d=0;for(const b of n){const y=nf(b);if(d+y>s)break;f+=b,d+=y}const p=[...n];let g="",m=0;for(let b=p.length-1;b>=0;b--){const y=nf(p[b]);if(m+y>c)break;g=p[b]+g,m+=y}return f+"…"+g}let zr=0;function Wx(){zr++,zr===1&&(document.body.style.overflow="hidden")}function Vg(){zr=Math.max(0,zr-1),zr===0&&(document.body.style.overflow="")}function eT(){return zr}const Gg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Kg=ev,tT=(n,i)=>l=>{var s;if(i?.variants==null)return Kg(n,l?.class,l?.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(m=>{const b=l?.[m],y=f?.[m];if(b===null)return null;const E=Gg(b)||Gg(y);return c[m][E]}),p=l&&Object.entries(l).reduce((m,b)=>{let[y,E]=b;return E===void 0||(m[y]=E),m},{}),g=i==null||(s=i.compoundVariants)===null||s===void 0?void 0:s.reduce((m,b)=>{let{class:y,className:E,...M}=b;return Object.entries(M).every(U=>{let[j,K]=U;return Array.isArray(K)?K.includes({...f,...p}[j]):{...f,...p}[j]===K})?[...m,y,E]:m},[]);return Kg(n,d,g,l?.class,l?.className)};function Xg(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function nT(...n){return i=>{let l=!1;const s=n.map(c=>{const f=Xg(c,i);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<s.length;c++){const f=s[c];typeof f=="function"?f():Xg(n[c],null)}}}}function aT(n){const i=rT(n),l=T.forwardRef((s,c)=>{const{children:f,...d}=s,p=T.Children.toArray(f),g=p.find(sT);if(g){const m=g.props.children,b=p.map(y=>y===g?T.Children.count(m)>1?T.Children.only(null):T.isValidElement(m)?m.props.children:null:y);return Q.jsx(i,{...d,ref:c,children:T.isValidElement(m)?T.cloneElement(m,void 0,b):null})}return Q.jsx(i,{...d,ref:c,children:f})});return l.displayName=`${n}.Slot`,l}var iT=aT("Slot");function rT(n){const i=T.forwardRef((l,s)=>{const{children:c,...f}=l;if(T.isValidElement(c)){const d=uT(c),p=oT(f,c.props);return c.type!==T.Fragment&&(p.ref=s?nT(s,d):d),T.cloneElement(c,p)}return T.Children.count(c)>1?T.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var lT=Symbol("radix.slottable");function sT(n){return T.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===lT}function oT(n,i){const l={...i};for(const s in i){const c=n[s],f=i[s];/^on[A-Z]/.test(s)?c&&f?l[s]=(...p)=>{const g=f(...p);return c(...p),g}:c&&(l[s]=c):s==="style"?l[s]={...c,...f}:s==="className"&&(l[s]=[c,f].filter(Boolean).join(" "))}return{...n,...l}}function uT(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning;return l?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}const cT=tT("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-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-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Fg({className:n,variant:i="default",size:l="default",asChild:s=!1,...c}){const f=s?iT:"button";return Q.jsx(f,{"data-slot":"button","data-variant":i,"data-size":l,className:mn(cT({variant:i,size:l,className:n})),...c})}function _t({className:n,...i}){return Q.jsx("div",{"data-slot":"skeleton","aria-hidden":"true",className:mn("animate-pulse rounded-md bg-muted motion-reduce:animate-none",n),...i})}function fT({children:n,className:i}){return Q.jsx("div",{className:mn("mx-auto w-full max-w-4xl px-5 py-5 sm:px-8 sm:py-6",i),children:n})}function qR({title:n,description:i,actions:l,className:s}){return Q.jsxs("div",{className:mn("mb-5 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",s),children:[Q.jsxs("div",{className:"min-w-0",children:[Q.jsx("h2",{className:"text-xl font-semibold tracking-tight text-foreground",children:n}),i&&Q.jsx("p",{className:"mt-1 text-[13px] leading-relaxed text-muted-foreground",children:i})]}),l&&Q.jsx("div",{className:"flex flex-wrap items-center gap-2 shrink-0",children:l})]})}function HR({children:n,className:i}){return Q.jsx("h3",{className:mn("text-[12px] font-semibold uppercase tracking-wide text-muted-foreground",i),children:n})}function QR({label:n,description:i,icon:l,children:s,align:c="start",controlWidth:f="fixed",className:d}){return Q.jsxs("div",{className:mn("flex flex-col gap-3 py-5 sm:flex-row sm:justify-between sm:gap-8",c==="center"?"sm:items-center":"sm:items-start",d),children:[Q.jsxs("div",{className:"flex min-w-0 items-start gap-3 sm:max-w-[360px]",children:[l&&Q.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground","aria-hidden":"true",children:Q.jsx(l,{size:15})}),Q.jsxs("div",{className:"min-w-0",children:[Q.jsx("div",{className:"text-[13px] font-medium text-foreground",children:n}),i&&Q.jsx("p",{className:"mt-0.5 text-xs leading-relaxed text-muted-foreground",children:i})]})]}),Q.jsx("div",{className:mn("shrink-0",f==="fixed"?"w-full sm:w-[260px]":"w-auto"),children:s})]})}function YR({label:n,description:i,children:l,className:s,htmlFor:c}){return Q.jsxs("div",{className:mn("space-y-1.5",s),children:[Q.jsxs("div",{children:[Q.jsx("label",{htmlFor:c,className:"block text-[13px] font-medium text-foreground",children:n}),i&&Q.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground",children:i})]}),l]})}function VR({icon:n,message:i,action:l,className:s}){return Q.jsxs("div",{className:mn("rounded-xl border border-dashed border-border bg-muted/30 py-14 text-center",s),children:[n&&Q.jsx(n,{size:48,strokeWidth:1.25,className:"mx-auto mb-3 text-muted-foreground/40","aria-hidden":"true"}),Q.jsx("p",{className:"text-sm text-muted-foreground",children:i}),l&&Q.jsx("div",{className:"mt-4 flex justify-center",children:l})]})}function GR({saving:n,onSave:i,onCancel:l,className:s}){const{t:c}=Ff();return Q.jsx("div",{className:mn("sticky bottom-0 z-10 -mx-5 border-t border-border/60 bg-background/90 px-5 py-3 backdrop-blur sm:-mx-8 sm:px-8",s),children:Q.jsxs("div",{className:"flex items-center justify-between gap-3",children:[Q.jsx("span",{className:"text-xs text-muted-foreground",children:c("有未保存的更改")}),Q.jsxs("div",{className:"flex items-center gap-2",children:[l&&Q.jsx(Fg,{size:"sm",variant:"ghost",onClick:l,disabled:n,children:c("取消")}),Q.jsx(Fg,{size:"sm",onClick:i,disabled:n,children:c(n?"保存中...":"保存")})]})]})})}function dT({rows:n=3}){return Q.jsxs("div",{role:"status","aria-label":"Loading",children:[Q.jsx(_t,{className:"h-7 w-36"}),Q.jsx("div",{className:"mt-6 divide-y divide-border/60",children:Array.from({length:n}).map((i,l)=>Q.jsxs("div",{className:"flex items-start justify-between gap-8 py-5",children:[Q.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[Q.jsx(_t,{className:"h-4 w-32"}),Q.jsx(_t,{className:"h-3 w-64 max-w-full"})]}),Q.jsx(_t,{className:"h-9 w-[260px] shrink-0 rounded-lg"})]},l))})]})}function KR(){return Q.jsxs("div",{role:"status","aria-label":"Loading",children:[Q.jsx(_t,{className:"h-7 w-36"}),Q.jsxs("div",{className:"mt-6 grid gap-5 lg:grid-cols-[240px_minmax(0,1fr)]",children:[Q.jsx("div",{className:"space-y-1",children:Array.from({length:5}).map((n,i)=>Q.jsxs("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",children:[Q.jsx(_t,{className:"h-2 w-2 rounded-full"}),Q.jsxs("div",{className:"flex-1 space-y-1.5",children:[Q.jsx(_t,{className:"h-3.5 w-3/4"}),Q.jsx(_t,{className:"h-2.5 w-1/2"})]})]},i))}),Q.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[Q.jsxs("div",{className:"flex items-start justify-between gap-4",children:[Q.jsxs("div",{className:"space-y-2",children:[Q.jsx(_t,{className:"h-5 w-44"}),Q.jsx(_t,{className:"h-3 w-28"})]}),Q.jsx(_t,{className:"h-8 w-24 rounded-md"})]}),Q.jsxs("div",{className:"mt-8 space-y-3",children:[Q.jsx(_t,{className:"h-3 w-20"}),Q.jsx(_t,{className:"h-24 w-full rounded-lg"}),Q.jsx(_t,{className:"h-3 w-20"}),Q.jsx(_t,{className:"h-16 w-full rounded-lg"})]})]})]})]})}function XR({cards:n=6}){return Q.jsxs("div",{role:"status","aria-label":"Loading",children:[Q.jsxs("div",{className:"flex items-center justify-between gap-4",children:[Q.jsx(_t,{className:"h-7 w-36"}),Q.jsx(_t,{className:"h-8 w-44 rounded-lg"})]}),Q.jsx("div",{className:"mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:n}).map((i,l)=>Q.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-border bg-card p-4",children:[Q.jsx(_t,{className:"h-10 w-10 shrink-0 rounded-full"}),Q.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[Q.jsx(_t,{className:"h-4 w-2/3"}),Q.jsx(_t,{className:"h-3 w-1/2"}),Q.jsx(_t,{className:"h-3 w-3/4"})]})]},l))})]})}const hT=T.lazy(()=>Ba(()=>import("./GeneralSettingsPage-C5KUTpFg.js"),__vite__mapDeps([0,1,2,3,4,5])).then(n=>({default:n.GeneralSettingsPage}))),mT=T.lazy(()=>Ba(()=>import("./ProviderSettingsPage-BbruFhJJ.js"),__vite__mapDeps([6,5,7,8,9,1,2,3,10,4,11,12,13,14,15,16])).then(n=>({default:n.ProviderSettingsPage}))),pT=T.lazy(()=>Ba(()=>import("./TeamSettingsPage-B3dBegBu.js"),__vite__mapDeps([17,7,8,1,2,3,18,5,13,19])).then(n=>({default:n.TeamSettingsPage}))),gT=T.lazy(()=>Ba(()=>import("./ProjectSettingsPage-DpewUnnG.js"),__vite__mapDeps([20,21,22,23,3,8,12,13,16])).then(n=>({default:n.ProjectSettingsPage}))),yT=T.lazy(()=>Ba(()=>import("./NotificationSettingsPage-Dl2nJ6Kj.js"),__vite__mapDeps([24,1,2,3,9,10,25,23])).then(n=>({default:n.NotificationSettingsPage}))),vT=T.lazy(()=>Ba(()=>import("./ProfileSettingsPage-D_YQBJqm.js"),__vite__mapDeps([26,27,8,7,9,4,28,2,15])).then(n=>({default:n.ProfileSettingsPage}))),Pg=[{id:"general",label:"通用",icon:KE},{id:"agents",label:"Agent 配置",icon:QE},{id:"team",label:"团队协作",icon:ZE},{id:"projects",label:"项目配置",icon:VE},{id:"notifications",label:"通知",icon:qE}];function bT({tab:n}){switch(n){case"general":return Q.jsx(hT,{});case"agents":return Q.jsx(mT,{});case"team":return Q.jsx(pT,{});case"projects":return Q.jsx(gT,{});case"notifications":return Q.jsx(yT,{});case"agents-legacy":return Q.jsx(vT,{})}}function ST(){return Q.jsx(fT,{children:Q.jsx(dT,{rows:3})})}function wT(){const{t:n}=Ff(),i=Bl(m=>m.settingsOpen),l=Bl(m=>m.settingsTab),s=Bl(m=>m.closeSettings),c=Bl(m=>m.setSettingsTab),[f,d]=T.useState(!1),p=T.useRef(!1),g=T.useRef(null);return T.useEffect(()=>{if(i)d(!0),p.current||(Wx(),p.current=!0),requestAnimationFrame(()=>g.current?.focus());else{const m=setTimeout(()=>d(!1),200);return p.current&&(Vg(),p.current=!1),()=>clearTimeout(m)}},[i]),T.useEffect(()=>()=>{p.current&&(Vg(),p.current=!1)},[]),T.useEffect(()=>{if(!i)return;const m=b=>{b.key==="Escape"&&eT()===1&&s()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[i,s]),!f&&!i?null:Q.jsxs("div",{className:mn("fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6 transition-opacity duration-200 motion-reduce:transition-none",i?"opacity-100":"opacity-0 pointer-events-none"),children:[Q.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm",onClick:s,"aria-hidden":"true"}),Q.jsxs("div",{ref:g,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":n("设置"),className:mn("relative flex w-full max-w-[1100px] flex-col overflow-hidden rounded-2xl bg-background shadow-[0_12px_16px_-4px_rgba(36,36,36,0.08)] ring-1 ring-foreground/5 transform transition-all duration-200 outline-none motion-reduce:transition-none","h-[min(calc(100vh-1.5rem),840px)] sm:h-[min(calc(100vh-3rem),840px)]",i?"scale-100 translate-y-0":"scale-[0.97] translate-y-1"),children:[Q.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-border/60 bg-muted/40 px-5 py-3 sm:px-6",children:[Q.jsxs("div",{className:"flex items-center gap-2.5",children:[Q.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-lg bg-primary text-primary-foreground","aria-hidden":"true",children:Q.jsx(FE,{size:14})}),Q.jsx("h2",{className:"text-[15px] font-semibold text-foreground",children:n("设置")})]}),Q.jsx("button",{onClick:s,"aria-label":n("取消"),className:"flex h-7 w-7 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",children:Q.jsx(IE,{size:15})})]}),Q.jsx("div",{className:"sm:hidden flex shrink-0 border-b border-border/60 bg-background overflow-x-auto scrollbar-none",role:"tablist",children:Pg.map(m=>Q.jsxs("button",{role:"tab","aria-selected":l===m.id,onClick:()=>c(m.id),className:mn("flex items-center gap-1.5 px-4 py-2.5 text-xs whitespace-nowrap transition-colors border-b-2 -mb-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset",l===m.id?"border-primary text-foreground font-medium":"border-transparent text-muted-foreground hover:text-foreground"),children:[Q.jsx(m.icon,{size:13,"aria-hidden":"true"}),Q.jsx("span",{children:n(m.label)})]},m.id))}),Q.jsxs("div",{className:"flex flex-1 min-h-0",children:[Q.jsx("nav",{"aria-label":n("设置"),className:"hidden sm:flex w-[180px] shrink-0 flex-col gap-0.5 border-r border-border/60 bg-muted/30 p-3 overflow-y-auto scrollbar-app-thin",children:Pg.map(m=>Q.jsxs("button",{"aria-current":l===m.id?"page":void 0,onClick:()=>c(m.id),className:mn("flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",l===m.id?"bg-background text-foreground font-medium shadow-[0_1px_2px_rgba(0,0,0,0.05)] ring-1 ring-foreground/[0.04]":"text-muted-foreground hover:text-foreground hover:bg-background/60"),children:[Q.jsx(m.icon,{size:15,className:"shrink-0","aria-hidden":"true"}),Q.jsx("span",{children:n(m.label)})]},m.id))}),Q.jsx("div",{className:"flex-1 min-w-0 overflow-y-auto scrollbar-app-thin bg-background",children:Q.jsx(T.Suspense,{fallback:Q.jsx(ST,{}),children:Q.jsx(bT,{tab:l})})})]})]})]})}function ET(){return Q.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[Q.jsx(Zw,{}),Q.jsx(wT,{})]})}const xT=T.lazy(()=>Ba(()=>import("./ProjectKanbanPage-D2_609qP.js"),__vite__mapDeps([29,11,7,8,30,22,2,3,31,21,23,28,18,19,1,5,25,14,13,16,32])).then(n=>({default:n.ProjectKanbanPage}))),TT=T.lazy(()=>Ba(()=>import("./DemoPage-Ck0jATn9.js"),[]).then(n=>({default:n.DemoPage}))),RT=T.lazy(()=>Ba(()=>import("./AgentDemoPage-BIMA7LtG.js"),__vite__mapDeps([33,30,11,22,2,3,31,27,19])).then(n=>({default:n.AgentDemoPage})));function af(){const{t:n}=Ff();return Q.jsx("div",{className:"p-8",children:n("Loading...")})}const _T=new Set(["general","agents","team","projects","notifications","agents-legacy"]);function Zg(){const n=Qy(),{tab:i}=Aw();return T.useEffect(()=>{const l=i&&_T.has(i)?i:"general";Bl.getState().openSettings(l),n("/",{replace:!0})},[n,i]),null}const AT=SE([{path:"/",element:Q.jsx(ET,{}),children:[{index:!0,element:Q.jsx(T.Suspense,{fallback:Q.jsx(af,{}),children:Q.jsx(xT,{})})},{path:"demo",element:Q.jsx(T.Suspense,{fallback:Q.jsx(af,{}),children:Q.jsx(TT,{})})},{path:"agent-demo",element:Q.jsx(T.Suspense,{fallback:Q.jsx(af,{}),children:Q.jsx(RT,{})})},{path:"settings",element:Q.jsx(Zg,{})},{path:"settings/:tab",element:Q.jsx(Zg,{})}]}]);function CT(){return Q.jsx(NE,{router:AT})}const fa=Object.create(null);fa.open="0";fa.close="1";fa.ping="2";fa.pong="3";fa.message="4";fa.upgrade="5";fa.noop="6";const Eo=Object.create(null);Object.keys(fa).forEach(n=>{Eo[fa[n]]=n});const Ef={type:"error",data:"parser error"},hv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mv=typeof ArrayBuffer=="function",pv=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Zf=({type:n,data:i},l,s)=>hv&&i instanceof Blob?l?s(i):Jg(i,s):mv&&(i instanceof ArrayBuffer||pv(i))?l?s(i):Jg(new Blob([i]),s):s(fa[n]+(i||"")),Jg=(n,i)=>{const l=new FileReader;return l.onload=function(){const s=l.result.split(",")[1];i("b"+(s||""))},l.readAsDataURL(n)};function Ig(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let rf;function OT(n,i){if(hv&&n.data instanceof Blob)return n.data.arrayBuffer().then(Ig).then(i);if(mv&&(n.data instanceof ArrayBuffer||pv(n.data)))return i(Ig(n.data));Zf(n,!1,l=>{rf||(rf=new TextEncoder),i(rf.encode(l))})}const $g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ql=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<$g.length;n++)ql[$g.charCodeAt(n)]=n;const MT=n=>{let i=n.length*.75,l=n.length,s,c=0,f,d,p,g;n[n.length-1]==="="&&(i--,n[n.length-2]==="="&&i--);const m=new ArrayBuffer(i),b=new Uint8Array(m);for(s=0;s<l;s+=4)f=ql[n.charCodeAt(s)],d=ql[n.charCodeAt(s+1)],p=ql[n.charCodeAt(s+2)],g=ql[n.charCodeAt(s+3)],b[c++]=f<<2|d>>4,b[c++]=(d&15)<<4|p>>2,b[c++]=(p&3)<<6|g&63;return m},DT=typeof ArrayBuffer=="function",Jf=(n,i)=>{if(typeof n!="string")return{type:"message",data:gv(n,i)};const l=n.charAt(0);return l==="b"?{type:"message",data:NT(n.substring(1),i)}:Eo[l]?n.length>1?{type:Eo[l],data:n.substring(1)}:{type:Eo[l]}:Ef},NT=(n,i)=>{if(DT){const l=MT(n);return gv(l,i)}else return{base64:!0,data:n}},gv=(n,i)=>i==="blob"?n instanceof Blob?n:new Blob([n]):n instanceof ArrayBuffer?n:n.buffer,yv="",kT=(n,i)=>{const l=n.length,s=new Array(l);let c=0;n.forEach((f,d)=>{Zf(f,!1,p=>{s[d]=p,++c===l&&i(s.join(yv))})})},zT=(n,i)=>{const l=n.split(yv),s=[];for(let c=0;c<l.length;c++){const f=Jf(l[c],i);if(s.push(f),f.type==="error")break}return s};function UT(){return new TransformStream({transform(n,i){OT(n,l=>{const s=l.length;let c;if(s<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,s);else if(s<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,s)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(c[0]|=128),i.enqueue(c),i.enqueue(l)})}})}let lf;function go(n){return n.reduce((i,l)=>i+l.length,0)}function yo(n,i){if(n[0].length===i)return n.shift();const l=new Uint8Array(i);let s=0;for(let c=0;c<i;c++)l[c]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),l}function LT(n,i){lf||(lf=new TextDecoder);const l=[];let s=0,c=-1,f=!1;return new TransformStream({transform(d,p){for(l.push(d);;){if(s===0){if(go(l)<1)break;const g=yo(l,1);f=(g[0]&128)===128,c=g[0]&127,c<126?s=3:c===126?s=1:s=2}else if(s===1){if(go(l)<2)break;const g=yo(l,2);c=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),s=3}else if(s===2){if(go(l)<8)break;const g=yo(l,8),m=new DataView(g.buffer,g.byteOffset,g.length),b=m.getUint32(0);if(b>Math.pow(2,21)-1){p.enqueue(Ef);break}c=b*Math.pow(2,32)+m.getUint32(4),s=3}else{if(go(l)<c)break;const g=yo(l,c);p.enqueue(Jf(f?g:lf.decode(g),i)),s=0}if(c===0||c>n){p.enqueue(Ef);break}}}})}const vv=4;function Dt(n){if(n)return jT(n)}function jT(n){for(var i in Dt.prototype)n[i]=Dt.prototype[i];return n}Dt.prototype.on=Dt.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this};Dt.prototype.once=function(n,i){function l(){this.off(n,l),i.apply(this,arguments)}return l.fn=i,this.on(n,l),this};Dt.prototype.off=Dt.prototype.removeListener=Dt.prototype.removeAllListeners=Dt.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var l=this._callbacks["$"+n];if(!l)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,c=0;c<l.length;c++)if(s=l[c],s===i||s.fn===i){l.splice(c,1);break}return l.length===0&&delete this._callbacks["$"+n],this};Dt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),l=this._callbacks["$"+n],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(l){l=l.slice(0);for(var s=0,c=l.length;s<c;++s)l[s].apply(this,i)}return this};Dt.prototype.emitReserved=Dt.prototype.emit;Dt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Dt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const zo=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,l)=>l(i,0),Qn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),BT="arraybuffer";function bv(n,...i){return i.reduce((l,s)=>(n.hasOwnProperty(s)&&(l[s]=n[s]),l),{})}const qT=Qn.setTimeout,HT=Qn.clearTimeout;function Uo(n,i){i.useNativeTimers?(n.setTimeoutFn=qT.bind(Qn),n.clearTimeoutFn=HT.bind(Qn)):(n.setTimeoutFn=Qn.setTimeout.bind(Qn),n.clearTimeoutFn=Qn.clearTimeout.bind(Qn))}const QT=1.33;function YT(n){return typeof n=="string"?VT(n):Math.ceil((n.byteLength||n.size)*QT)}function VT(n){let i=0,l=0;for(let s=0,c=n.length;s<c;s++)i=n.charCodeAt(s),i<128?l+=1:i<2048?l+=2:i<55296||i>=57344?l+=3:(s++,l+=4);return l}function Sv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function GT(n){let i="";for(let l in n)n.hasOwnProperty(l)&&(i.length&&(i+="&"),i+=encodeURIComponent(l)+"="+encodeURIComponent(n[l]));return i}function KT(n){let i={},l=n.split("&");for(let s=0,c=l.length;s<c;s++){let f=l[s].split("=");i[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return i}class XT extends Error{constructor(i,l,s){super(i),this.description=l,this.context=s,this.type="TransportError"}}class If extends Dt{constructor(i){super(),this.writable=!1,Uo(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,l,s){return super.emitReserved("error",new XT(i,l,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const l=Jf(i,this.socket.binaryType);this.onPacket(l)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,l={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(l)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const l=GT(i);return l.length?"?"+l:""}}class FT extends If{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const l=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||l()})),this.writable||(s++,this.once("drain",function(){--s||l()}))}else l()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const l=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};zT(i,this.socket.binaryType).forEach(l),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,kT(i,l=>{this.doWrite(l,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",l=this.query||{};return this.opts.timestampRequests!==!1&&(l[this.opts.timestampParam]=Sv()),!this.supportsBinary&&!l.sid&&(l.b64=1),this.createUri(i,l)}}let wv=!1;try{wv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const PT=wv;function ZT(){}class JT extends FT{constructor(i){if(super(i),typeof location<"u"){const l=location.protocol==="https:";let s=location.port;s||(s=l?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,l){const s=this.request({method:"POST",data:i});s.on("success",l),s.on("error",(c,f)=>{this.onError("xhr post error",c,f)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(l,s)=>{this.onError("xhr poll error",l,s)}),this.pollXhr=i}}let Ur=class xo extends Dt{constructor(i,l,s){super(),this.createRequest=i,Uo(this,s),this._opts=s,this._method=s.method||"GET",this._uri=l,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var i;const l=bv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");l.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(l);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&s.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var c;s.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=xo.requestsCount++,xo.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=ZT,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete xo.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ur.requestsCount=0;Ur.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Wg);else if(typeof addEventListener=="function"){const n="onpagehide"in Qn?"pagehide":"unload";addEventListener(n,Wg,!1)}}function Wg(){for(let n in Ur.requests)Ur.requests.hasOwnProperty(n)&&Ur.requests[n].abort()}const IT=(function(){const n=Ev({xdomain:!1});return n&&n.responseType!==null})();class $T extends JT{constructor(i){super(i);const l=i&&i.forceBase64;this.supportsBinary=IT&&!l}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Ur(Ev,this.uri(),i)}}function Ev(n){const i=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||PT))return new XMLHttpRequest}catch{}if(!i)try{return new Qn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const xv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WT extends If{get name(){return"websocket"}doOpen(){const i=this.uri(),l=this.opts.protocols,s=xv?{}:bv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,l,s)}catch(c){return this.emitReserved("error",c)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let l=0;l<i.length;l++){const s=i[l],c=l===i.length-1;Zf(s,this.supportsBinary,f=>{try{this.doWrite(s,f)}catch{}c&&zo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",l=this.query||{};return this.opts.timestampRequests&&(l[this.opts.timestampParam]=Sv()),this.supportsBinary||(l.b64=1),this.createUri(i,l)}}const sf=Qn.WebSocket||Qn.MozWebSocket;class eR extends WT{createSocket(i,l,s){return xv?new sf(i,l,s):l?new sf(i,l):new sf(i)}doWrite(i,l){this.ws.send(l)}}class tR extends If{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const l=LT(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=i.readable.pipeThrough(l).getReader(),c=UT();c.readable.pipeTo(i.writable),this._writer=c.writable.getWriter();const f=()=>{s.read().then(({done:p,value:g})=>{p||(this.onPacket(g),f())}).catch(p=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let l=0;l<i.length;l++){const s=i[l],c=l===i.length-1;this._writer.write(s).then(()=>{c&&zo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const nR={websocket:eR,webtransport:tR,polling:$T},aR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,iR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function xf(n){if(n.length>8e3)throw"URI too long";const i=n,l=n.indexOf("["),s=n.indexOf("]");l!=-1&&s!=-1&&(n=n.substring(0,l)+n.substring(l,s).replace(/:/g,";")+n.substring(s,n.length));let c=aR.exec(n||""),f={},d=14;for(;d--;)f[iR[d]]=c[d]||"";return l!=-1&&s!=-1&&(f.source=i,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=rR(f,f.path),f.queryKey=lR(f,f.query),f}function rR(n,i){const l=/\/{2,9}/g,s=i.replace(l,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function lR(n,i){const l={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,c,f){c&&(l[c]=f)}),l}const Tf=typeof addEventListener=="function"&&typeof removeEventListener=="function",To=[];Tf&&addEventListener("offline",()=>{To.forEach(n=>n())},!1);class pi extends Dt{constructor(i,l){if(super(),this.binaryType=BT,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(l=i,i=null),i){const s=xf(i);l.hostname=s.host,l.secure=s.protocol==="https"||s.protocol==="wss",l.port=s.port,s.query&&(l.query=s.query)}else l.host&&(l.hostname=xf(l.host).host);Uo(this,l),this.secure=l.secure!=null?l.secure:typeof location<"u"&&location.protocol==="https:",l.hostname&&!l.port&&(l.port=this.secure?"443":"80"),this.hostname=l.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=l.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},l.transports.forEach(s=>{const c=s.prototype.name;this.transports.push(c),this._transportsByName[c]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},l),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=KT(this.opts.query)),Tf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},To.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const l=Object.assign({},this.opts.query);l.EIO=vv,l.transport=i,this.id&&(l.sid=this.id);const s=Object.assign({},this.opts,{query:l,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&pi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const l=this.createTransport(i);l.open(),this.setTransport(l)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",l=>this._onClose("transport close",l))}onOpen(){this.readyState="open",pi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const l=new Error("server error");l.code=i.data,this._onError(l);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let l=1;for(let s=0;s<this.writeBuffer.length;s++){const c=this.writeBuffer[s].data;if(c&&(l+=YT(c)),s>0&&l>this._maxPayload)return this.writeBuffer.slice(0,s);l+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,zo(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,l,s){return this._sendPacket("message",i,l,s),this}send(i,l,s){return this._sendPacket("message",i,l,s),this}_sendPacket(i,l,s,c){if(typeof l=="function"&&(c=l,l=void 0),typeof s=="function"&&(c=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const f={type:i,data:l,options:s};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),c&&this.once("flush",c),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},l=()=>{this.off("upgrade",l),this.off("upgradeError",l),i()},s=()=>{this.once("upgrade",l),this.once("upgradeError",l)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():i()}):this.upgrading?s():i()),this}_onError(i){if(pi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Tf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=To.indexOf(this._offlineEventListener);s!==-1&&To.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,l),this.writeBuffer=[],this._prevBufferLen=0}}}pi.protocol=vv;class sR extends pi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let l=this.createTransport(i),s=!1;pi.priorWebsocketSuccess=!1;const c=()=>{s||(l.send([{type:"ping",data:"probe"}]),l.once("packet",y=>{if(!s)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",l),!l)return;pi.priorWebsocketSuccess=l.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(l),l.send([{type:"upgrade"}]),this.emitReserved("upgrade",l),l=null,this.upgrading=!1,this.flush())})}else{const E=new Error("probe error");E.transport=l.name,this.emitReserved("upgradeError",E)}}))};function f(){s||(s=!0,b(),l.close(),l=null)}const d=y=>{const E=new Error("probe error: "+y);E.transport=l.name,f(),this.emitReserved("upgradeError",E)};function p(){d("transport closed")}function g(){d("socket closed")}function m(y){l&&y.name!==l.name&&f()}const b=()=>{l.removeListener("open",c),l.removeListener("error",d),l.removeListener("close",p),this.off("close",g),this.off("upgrading",m)};l.once("open",c),l.once("error",d),l.once("close",p),this.once("close",g),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||l.open()},200):l.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const l=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&l.push(i[s]);return l}}let oR=class extends sR{constructor(i,l={}){const s=typeof i=="object"?i:l;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(c=>nR[c]).filter(c=>!!c)),super(i,s)}};function uR(n,i="",l){let s=n;l=l||typeof location<"u"&&location,n==null&&(n=l.protocol+"//"+l.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=l.protocol+n:n=l.host+n),/^(https?|wss?):\/\//.test(n)||(typeof l<"u"?n=l.protocol+"//"+n:n="https://"+n),s=xf(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const f=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+f+":"+s.port+i,s.href=s.protocol+"://"+f+(l&&l.port===s.port?"":":"+s.port),s}const cR=typeof ArrayBuffer=="function",fR=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Tv=Object.prototype.toString,dR=typeof Blob=="function"||typeof Blob<"u"&&Tv.call(Blob)==="[object BlobConstructor]",hR=typeof File=="function"||typeof File<"u"&&Tv.call(File)==="[object FileConstructor]";function $f(n){return cR&&(n instanceof ArrayBuffer||fR(n))||dR&&n instanceof Blob||hR&&n instanceof File}function Ro(n,i){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let l=0,s=n.length;l<s;l++)if(Ro(n[l]))return!0;return!1}if($f(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Ro(n.toJSON(),!0);for(const l in n)if(Object.prototype.hasOwnProperty.call(n,l)&&Ro(n[l]))return!0;return!1}function mR(n){const i=[],l=n.data,s=n;return s.data=Rf(l,i),s.attachments=i.length,{packet:s,buffers:i}}function Rf(n,i){if(!n)return n;if($f(n)){const l={_placeholder:!0,num:i.length};return i.push(n),l}else if(Array.isArray(n)){const l=new Array(n.length);for(let s=0;s<n.length;s++)l[s]=Rf(n[s],i);return l}else if(typeof n=="object"&&!(n instanceof Date)){const l={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(l[s]=Rf(n[s],i));return l}return n}function pR(n,i){return n.data=_f(n.data,i),delete n.attachments,n}function _f(n,i){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<i.length)return i[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let l=0;l<n.length;l++)n[l]=_f(n[l],i);else if(typeof n=="object")for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(n[l]=_f(n[l],i));return n}const gR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Pe;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Pe||(Pe={}));class yR{constructor(i){this.replacer=i}encode(i){return(i.type===Pe.EVENT||i.type===Pe.ACK)&&Ro(i)?this.encodeAsBinary({type:i.type===Pe.EVENT?Pe.BINARY_EVENT:Pe.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let l=""+i.type;return(i.type===Pe.BINARY_EVENT||i.type===Pe.BINARY_ACK)&&(l+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(l+=i.nsp+","),i.id!=null&&(l+=i.id),i.data!=null&&(l+=JSON.stringify(i.data,this.replacer)),l}encodeAsBinary(i){const l=mR(i),s=this.encodeAsString(l.packet),c=l.buffers;return c.unshift(s),c}}class Wf extends Dt{constructor(i){super(),this.reviver=i}add(i){let l;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");l=this.decodeString(i);const s=l.type===Pe.BINARY_EVENT;s||l.type===Pe.BINARY_ACK?(l.type=s?Pe.EVENT:Pe.ACK,this.reconstructor=new vR(l),l.attachments===0&&super.emitReserved("decoded",l)):super.emitReserved("decoded",l)}else if($f(i)||i.base64)if(this.reconstructor)l=this.reconstructor.takeBinaryData(i),l&&(this.reconstructor=null,super.emitReserved("decoded",l));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let l=0;const s={type:Number(i.charAt(0))};if(Pe[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Pe.BINARY_EVENT||s.type===Pe.BINARY_ACK){const f=l+1;for(;i.charAt(++l)!=="-"&&l!=i.length;);const d=i.substring(f,l);if(d!=Number(d)||i.charAt(l)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(i.charAt(l+1)==="/"){const f=l+1;for(;++l&&!(i.charAt(l)===","||l===i.length););s.nsp=i.substring(f,l)}else s.nsp="/";const c=i.charAt(l+1);if(c!==""&&Number(c)==c){const f=l+1;for(;++l;){const d=i.charAt(l);if(d==null||Number(d)!=d){--l;break}if(l===i.length)break}s.id=Number(i.substring(f,l+1))}if(i.charAt(++l)){const f=this.tryParse(i.substr(l));if(Wf.isPayloadValid(s.type,f))s.data=f;else throw new Error("invalid payload")}return s}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,l){switch(i){case Pe.CONNECT:return ey(l);case Pe.DISCONNECT:return l===void 0;case Pe.CONNECT_ERROR:return typeof l=="string"||ey(l);case Pe.EVENT:case Pe.BINARY_EVENT:return Array.isArray(l)&&(typeof l[0]=="number"||typeof l[0]=="string"&&gR.indexOf(l[0])===-1);case Pe.ACK:case Pe.BINARY_ACK:return Array.isArray(l)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class vR{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const l=pR(this.reconPack,this.buffers);return this.finishedReconstruction(),l}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ey(n){return Object.prototype.toString.call(n)==="[object Object]"}const bR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Wf,Encoder:yR,get PacketType(){return Pe}},Symbol.toStringTag,{value:"Module"}));function Wn(n,i,l){return n.on(i,l),function(){n.off(i,l)}}const SR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Rv extends Dt{constructor(i,l,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=l,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Wn(i,"open",this.onopen.bind(this)),Wn(i,"packet",this.onpacket.bind(this)),Wn(i,"error",this.onerror.bind(this)),Wn(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...l){var s,c,f;if(SR.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(l.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(l),this;const d={type:Pe.EVENT,data:l};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof l[l.length-1]=="function"){const b=this.ids++,y=l.pop();this._registerAckCallback(b,y),d.id=b}const p=(c=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||c===void 0?void 0:c.writable,g=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!p||(g?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(i,l){var s;const c=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(c===void 0){this.acks[i]=l;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===i&&this.sendBuffer.splice(p,1);l.call(this,new Error("operation has timed out"))},c),d=(...p)=>{this.io.clearTimeoutFn(f),l.apply(this,p)};d.withError=!0,this.acks[i]=d}emitWithAck(i,...l){return new Promise((s,c)=>{const f=(d,p)=>d?c(d):s(p);f.withError=!0,l.push(f),this.emit(i,...l)})}_addToQueue(i){let l;typeof i[i.length-1]=="function"&&(l=i.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((c,...f)=>(this._queue[0],c!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),l&&l(c)):(this._queue.shift(),l&&l(null,...f)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const l=this._queue[0];l.pending&&!i||(l.pending=!0,l.tryCount++,this.flags=l.flags,this.emit.apply(this,l.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:Pe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,l){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,l),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(s=>String(s.id)===i)){const s=this.acks[i];delete this.acks[i],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case Pe.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Pe.EVENT:case Pe.BINARY_EVENT:this.onevent(i);break;case Pe.ACK:case Pe.BINARY_ACK:this.onack(i);break;case Pe.DISCONNECT:this.ondisconnect();break;case Pe.CONNECT_ERROR:this.destroy();const s=new Error(i.data.message);s.data=i.data.data,this.emitReserved("connect_error",s);break}}onevent(i){const l=i.data||[];i.id!=null&&l.push(this.ack(i.id)),this.connected?this.emitEvent(l):this.receiveBuffer.push(Object.freeze(l))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const l=this._anyListeners.slice();for(const s of l)s.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const l=this;let s=!1;return function(...c){s||(s=!0,l.packet({type:Pe.ACK,id:i,data:c}))}}onack(i){const l=this.acks[i.id];typeof l=="function"&&(delete this.acks[i.id],l.withError&&i.data.unshift(null),l.apply(this,i.data))}onconnect(i,l){this.id=i,this.recovered=l&&this._pid===l,this._pid=l,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Pe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const l=this._anyListeners;for(let s=0;s<l.length;s++)if(i===l[s])return l.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const l=this._anyOutgoingListeners;for(let s=0;s<l.length;s++)if(i===l[s])return l.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const l=this._anyOutgoingListeners.slice();for(const s of l)s.apply(this,i.data)}}}function qr(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}qr.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),l=Math.floor(i*this.jitter*n);n=(Math.floor(i*10)&1)==0?n-l:n+l}return Math.min(n,this.max)|0};qr.prototype.reset=function(){this.attempts=0};qr.prototype.setMin=function(n){this.ms=n};qr.prototype.setMax=function(n){this.max=n};qr.prototype.setJitter=function(n){this.jitter=n};class Af extends Dt{constructor(i,l){var s;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(l=i,i=void 0),l=l||{},l.path=l.path||"/socket.io",this.opts=l,Uo(this,l),this.reconnection(l.reconnection!==!1),this.reconnectionAttempts(l.reconnectionAttempts||1/0),this.reconnectionDelay(l.reconnectionDelay||1e3),this.reconnectionDelayMax(l.reconnectionDelayMax||5e3),this.randomizationFactor((s=l.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new qr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(l.timeout==null?2e4:l.timeout),this._readyState="closed",this.uri=i;const c=l.parser||bR;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=l.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var l;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(l=this.backoff)===null||l===void 0||l.setMin(i),this)}randomizationFactor(i){var l;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(l=this.backoff)===null||l===void 0||l.setJitter(i),this)}reconnectionDelayMax(i){var l;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(l=this.backoff)===null||l===void 0||l.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new oR(this.uri,this.opts);const l=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const c=Wn(l,"open",function(){s.onopen(),i&&i()}),f=p=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",p),i?i(p):this.maybeReconnectOnOpen()},d=Wn(l,"error",f);if(this._timeout!==!1){const p=this._timeout,g=this.setTimeoutFn(()=>{c(),f(new Error("timeout")),l.close()},p);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(c),this.subs.push(d),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Wn(i,"ping",this.onping.bind(this)),Wn(i,"data",this.ondata.bind(this)),Wn(i,"error",this.onerror.bind(this)),Wn(i,"close",this.onclose.bind(this)),Wn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(l){this.onclose("parse error",l)}}ondecoded(i){zo(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,l){let s=this.nsps[i];return s?this._autoConnect&&!s.active&&s.connect():(s=new Rv(this,i,l),this.nsps[i]=s),s}_destroy(i){const l=Object.keys(this.nsps);for(const s of l)if(this.nsps[s].active)return;this._close()}_packet(i){const l=this.encoder.encode(i);for(let s=0;s<l.length;s++)this.engine.write(l[s],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,l){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,l),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const l=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(c=>{c?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",c)):i.onreconnect()}))},l);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Ul={};function _o(n,i){typeof n=="object"&&(i=n,n=void 0),i=i||{};const l=uR(n,i.path||"/socket.io"),s=l.source,c=l.id,f=l.path,d=Ul[c]&&f in Ul[c].nsps,p=i.forceNew||i["force new connection"]||i.multiplex===!1||d;let g;return p?g=new Af(s,i):(Ul[c]||(Ul[c]=new Af(s,i)),g=Ul[c]),l.query&&!i.query&&(i.query=l.queryKey),g.socket(l.path,i)}Object.assign(_o,{Manager:Af,Socket:Rv,io:_o,connect:_o});const vo="/events",PR={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",INPUT:"input",RESIZE:"resize",TERMINAL_INPUT:"terminal:input",TERMINAL_RESIZE:"terminal:resize"},hi={SESSION_STDOUT:"session:stdout",SESSION_PATCH:"session:patch",SESSION_EXIT:"session:exit",SESSION_COMPLETED:"session:completed",SESSION_ID:"session:sessionId",SESSION_ERROR:"session:error",TASK_UPDATED:"task:updated",TASK_DELETED:"task:deleted",TERMINAL_STDOUT:"terminal:stdout",TERMINAL_EXIT:"terminal:exit",TERMINAL_SUBSCRIBED:"terminal:subscribed",TERMINAL_UNSUBSCRIBED:"terminal:unsubscribed",WORKSPACE_SETUP_PROGRESS:"workspace:setup_progress",WORKSPACE_COMMIT_MESSAGE_UPDATED:"workspace:commit_message_updated",WORKSPACE_HIBERNATED:"workspace:hibernated",WORKSPACE_GIT_CHANGED:"workspace:git_changed",TEAM_RUN_INVALIDATED:"team-run:invalidated"};class wR{socket=null;baseUrl;visibilityHandler=null;constructor(){this.baseUrl=""}getSocket(){return this.socket||(this.socket=_o(`${this.baseUrl}${vo}`,{autoConnect:!1,transports:["websocket"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:1e4}),this.socket.on("connect",()=>{console.log(`[Socket] Connected to ${vo} t=${Date.now()}`)}),this.socket.on("disconnect",i=>{console.log(`[Socket] Disconnected from ${vo}: t=${Date.now()}`,i)}),this.socket.on("connect_error",i=>{console.error(`[Socket] Connection error on ${vo}: t=${Date.now()}`,i.message)})),this.socket}connect(){const i=this.getSocket();return i.connected||i.connect(),this.visibilityHandler||(this.visibilityHandler=()=>{document.visibilityState==="visible"&&this.socket&&!this.socket.connected&&(console.log("[Socket] Page became visible, socket disconnected — reconnecting"),this.socket.connect())},document.addEventListener("visibilitychange",this.visibilityHandler)),i}disconnect(){this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.socket&&(this.socket.disconnect(),this.socket=null)}isConnected(){return this.socket?.connected??!1}}const Kl=new wR;function _v(n,i,l){const s=f=>Ao(f.queryKey,l),c=n.getQueriesData({predicate:s});return n.setQueriesData({predicate:s},f=>{if(!f||!Array.isArray(f.data))return f;const d=f.data.filter(p=>p.id!==i);return d.length===f.data.length?f:{...f,data:d,total:Math.max(0,f.total-(f.data.length-d.length))}}),n.removeQueries({queryKey:Ne.tasks.detail(i),exact:!0}),n.removeQueries({queryKey:Ne.tasks.body(i),exact:!0}),c}function Ao(n,i){return!Array.isArray(n)||n[0]!=="tasks"||n[1]!=="list"?!1:i?n[2]===i:!0}function ER(n,i){for(const[l,s]of i)n.setQueryData(l,s)}function ZR(n,i){const l={};return i?.status!=null&&(l.status=i.status),i?.page!=null&&(l.page=String(i.page)),i?.limit!=null&&(l.limit=String(i.limit)),ja({queryKey:Ne.tasks.list(n,i),queryFn:()=>lt.get(`/projects/${n}/tasks`,{params:l}),enabled:!!n})}function JR(n,i=!0){return ja({queryKey:Ne.tasks.body(n),queryFn:()=>lt.get(`/tasks/${n}/body`),enabled:!!n&&i})}function IR(){const n=gt();return qt({mutationFn:({id:i,status:l})=>lt.patch(`/tasks/${i}/status`,{status:l}),onSuccess:i=>{n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.tasks.detail(i.id)})}})}function $R(){const n=gt();return qt({mutationFn:i=>lt.delete(`/tasks/${i}`),onMutate:async i=>(await n.cancelQueries({queryKey:Ne.tasks.all}),{snapshots:_v(n,i)}),onError:(i,l,s)=>{s?.snapshots&&ER(n,s.snapshots)},onSuccess:()=>{n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.projects.all})}})}function WR(){const n=gt();return qt({mutationFn:i=>lt.post(`/tasks/${i}/retry`,{}),onSuccess:i=>{n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.workspaces.all}),n.invalidateQueries({queryKey:Ne.tasks.detail(i.id)}),n.invalidateQueries({queryKey:Ne.tasks.body(i.id)})}})}function xR(){const n=gt();T.useEffect(()=>{const i=Kl.connect(),l=()=>{n.invalidateQueries({queryKey:Ne.tasks.all})},s=async f=>{await n.cancelQueries({predicate:d=>Ao(d.queryKey,f.projectId)}),n.invalidateQueries({predicate:d=>Ao(d.queryKey,f.projectId)}),n.invalidateQueries({queryKey:Ne.tasks.detail(f.taskId)})},c=f=>{_v(n,f.taskId,f.projectId),n.invalidateQueries({predicate:d=>Ao(d.queryKey,f.projectId)}),n.invalidateQueries({queryKey:Ne.projects.all})};return i.on("connect",l),i.on(hi.TASK_UPDATED,s),i.on(hi.TASK_DELETED,c),()=>{i.off("connect",l),i.off(hi.TASK_UPDATED,s),i.off(hi.TASK_DELETED,c)}},[n])}const Me={all:["team-runs"],memberPresets:["member-presets"],memberPresetDetail:n=>["member-presets","detail",n],teamTemplates:["team-templates"],teamTemplateDetail:n=>["team-templates","detail",n],task:n=>["team-runs","task",n],detail:n=>["team-runs","detail",n],messages:n=>["team-runs","messages",n],messageDetail:(n,i)=>["team-runs","messages",n,i],workRequests:n=>["team-runs","work-requests",n],invocations:n=>["team-runs","invocations",n]},Av=5e3;function Cv(n,i){const l=n??[],s=l.findIndex(c=>c.id===i.id);return s>=0?l.map((c,f)=>f===s?i:c):[...l,i]}function ty(n,i){return!n||n.id!==i.teamRunId?n:{...n,messages:Cv(n.messages,i)}}function Ov(n,i){const l=n.getQueryData(Me.detail(i));if(l?.taskId)return l.taskId;const s=n.getQueriesData({queryKey:Me.all});for(const[,c]of s)if(c?.id===i&&c.taskId)return c.taskId}function Hr(n,i){const l=Ov(n,i);n.invalidateQueries({queryKey:Me.all}),n.invalidateQueries({queryKey:Me.detail(i)}),n.invalidateQueries({queryKey:Me.workRequests(i)}),n.invalidateQueries({queryKey:Me.invocations(i)}),n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.workspaces.all}),l&&(n.invalidateQueries({queryKey:Ne.tasks.detail(l)}),n.invalidateQueries({queryKey:Me.task(l)}),n.invalidateQueries({queryKey:Ne.workspaces.list(l)}))}function e2(){return ja({queryKey:Me.memberPresets,queryFn:()=>lt.get("/member-presets")})}function t2(){const n=gt();return qt({mutationFn:i=>lt.post("/member-presets",i),onSuccess:()=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function n2(){const n=gt();return qt({mutationFn:({id:i,data:l})=>lt.patch(`/member-presets/${i}`,l),onSuccess:(i,l)=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.memberPresetDetail(l.id)}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function a2(){const n=gt();return qt({mutationFn:i=>lt.delete(`/member-presets/${i}`),onSuccess:()=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function i2(){return ja({queryKey:Me.teamTemplates,queryFn:()=>lt.get("/team-templates")})}function r2(){const n=gt();return qt({mutationFn:i=>lt.post("/team-templates",i),onSuccess:()=>{n.invalidateQueries({queryKey:Me.teamTemplates})}})}function l2(){const n=gt();return qt({mutationFn:({id:i,data:l})=>lt.patch(`/team-templates/${i}`,l),onSuccess:(i,l)=>{n.invalidateQueries({queryKey:Me.teamTemplates}),n.invalidateQueries({queryKey:Me.teamTemplateDetail(l.id)})}})}function s2(){const n=gt();return qt({mutationFn:i=>lt.delete(`/team-templates/${i}`),onSuccess:()=>{n.invalidateQueries({queryKey:Me.teamTemplates})}})}function o2(){const n=gt();return qt({mutationFn:({taskId:i,...l})=>lt.post(`/tasks/${i}/team-runs`,l),onSuccess:(i,l)=>{n.setQueryData(Me.task(l.taskId),i),n.setQueryData(Me.detail(i.id),i),n.setQueryData(Me.messages(i.id),i.messages??[]),n.setQueryData(Me.workRequests(i.id),i.workRequests??[]),n.setQueryData(Me.invocations(i.id),i.invocations??[]),n.invalidateQueries({queryKey:Me.task(l.taskId)}),n.invalidateQueries({queryKey:Me.all}),n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.tasks.detail(l.taskId)}),n.invalidateQueries({queryKey:Ne.workspaces.all}),n.invalidateQueries({queryKey:Ne.workspaces.list(l.taskId)})},onError:(i,l)=>{n.invalidateQueries({queryKey:Me.task(l.taskId)}),n.invalidateQueries({queryKey:Me.all})}})}function u2(n){return ja({queryKey:Me.task(n),queryFn:async()=>{try{return await lt.get(`/tasks/${n}/team-run`)}catch(i){if(i instanceof Xf&&i.status===404)return null;throw i}},enabled:!!n,retry:!1,refetchInterval:i=>i.state.data?Av:!1})}function c2(n){return ja({queryKey:Me.messages(n),queryFn:async()=>{try{return await lt.get(`/team-runs/${n}/messages`)}catch(i){if(i instanceof Xf&&i.status===404)return[];throw i}},enabled:!!n,retry:!1,refetchInterval:Av})}function f2(n,i,l=!1){return ja({queryKey:Me.messageDetail(n,i),queryFn:()=>lt.get(`/team-runs/${n}/messages/${i}`),enabled:!!(n&&i&&l),retry:!1})}function d2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/${n}/messages`,l),onSuccess:l=>{i.setQueryData(Me.messages(n),c=>Cv(c,l)),i.setQueryData(Me.detail(n),c=>ty(c,l));const s=Ov(i,n);s&&i.setQueryData(Me.task(s),c=>ty(c,l)),i.invalidateQueries({queryKey:Me.all}),i.invalidateQueries({queryKey:["tasks"]}),i.invalidateQueries({queryKey:Ne.workspaces.all})}})}function h2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/${n}/members`,l),onSuccess:()=>{Hr(i,n)}})}function m2(n){const i=gt();return qt({mutationFn:({memberId:l,data:s})=>lt.patch(`/team-runs/${n}/members/${l}`,s),onSuccess:()=>{Hr(i,n)}})}function p2(n){const i=gt();return qt({mutationFn:({memberId:l,stopActive:s=!0,cancelQueued:c=!0})=>lt.post(`/team-runs/${n}/members/${l}/remove`,{stopActive:s,cancelQueued:c}),onSuccess:()=>{Hr(i,n)}})}function g2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/work-requests/${l}/approve`),onSuccess:()=>{Hr(i,n)}})}function y2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/work-requests/${l}/reject`),onSuccess:()=>{Hr(i,n)}})}function v2(n){const i=gt();return qt({mutationFn:({memberId:l,cancelQueued:s})=>lt.post(`/team-runs/${n}/members/${l}/stop`,{cancelQueued:s}),onSuccess:()=>{Hr(i,n)}})}function oa(n,i){return n.scopes.includes(i)}function TR(){const n=gt();T.useEffect(()=>{const i=Kl.connect(),l=f=>{if(!f){n.invalidateQueries({queryKey:Me.all});return}n.invalidateQueries({queryKey:Me.detail(f.teamRunId)}),(oa(f,"team-run")||oa(f,"team-members"))&&n.invalidateQueries({queryKey:Me.all}),oa(f,"room-messages")&&n.invalidateQueries({queryKey:Me.messages(f.teamRunId)}),oa(f,"work-requests")&&n.invalidateQueries({queryKey:Me.workRequests(f.teamRunId)}),oa(f,"agent-invocations")&&n.invalidateQueries({queryKey:Me.invocations(f.teamRunId)}),f.taskId&&n.invalidateQueries({queryKey:Me.task(f.taskId)}),f.taskId&&(oa(f,"task")||oa(f,"team-run"))&&n.invalidateQueries({queryKey:Ne.tasks.detail(f.taskId)}),f.projectId&&(oa(f,"task")||oa(f,"team-run"))&&n.invalidateQueries({queryKey:Ne.tasks.list(f.projectId)}),oa(f,"workspaces")&&(n.invalidateQueries({queryKey:Ne.workspaces.all}),f.taskId&&n.invalidateQueries({queryKey:Ne.workspaces.list(f.taskId)}))},s=()=>l(),c=f=>l(f);return i.on("connect",s),i.on(hi.TEAM_RUN_INVALIDATED,c),()=>{i.off("connect",s),i.off(hi.TEAM_RUN_INVALIDATED,c)}},[n])}const RR=Jy(n=>({visibleContext:null,setVisibleContext:i=>n({visibleContext:i})}));function _R(n){n.invalidateQueries({queryKey:Ne.git.all,refetchType:"none"}),n.invalidateQueries({queryKey:["workspaces","gitStatus"],refetchType:"none"}),n.invalidateQueries({queryKey:["workspaces","diff"],refetchType:"none"})}function AR(n,i){i.workingDir&&(n.invalidateQueries({queryKey:Ne.git.changes(i.workingDir),refetchType:"none"}),n.invalidateQueries({queryKey:Ne.git.log(i.workingDir),refetchType:"none"})),i.workspaceId&&n.invalidateQueries({queryKey:Ne.workspaces.gitStatus(i.workspaceId),refetchType:"none"})}function ny(n,i,l){if(!(!i?.workspaceId||!i?.workingDir)){if(!l||l.workspaceId!==i.workspaceId||l.workingDir!==i.workingDir){AR(n,i);return}if(l.tab==="changes"){n.invalidateQueries({queryKey:Ne.git.changes(i.workingDir)}),n.invalidateQueries({queryKey:Ne.workspaces.gitStatus(i.workspaceId)}),n.invalidateQueries({queryKey:Ne.git.log(i.workingDir),refetchType:"none"});return}n.invalidateQueries({queryKey:Ne.git.log(i.workingDir)}),n.invalidateQueries({queryKey:Ne.git.changes(i.workingDir),refetchType:"none"}),n.invalidateQueries({queryKey:Ne.workspaces.gitStatus(i.workspaceId),refetchType:"none"})}}function CR(){const n=gt(),i=RR(l=>l.visibleContext);T.useEffect(()=>{const l=Kl.connect(),s=()=>{_R(n),i&&ny(n,{workspaceId:i.workspaceId,workingDir:i.workingDir},i)},c=f=>{ny(n,f,i)};return l.on("connect",s),l.on(hi.WORKSPACE_GIT_CHANGED,c),()=>{l.off("connect",s),l.off(hi.WORKSPACE_GIT_CHANGED,c)}},[n,i])}function OR(){return xR(),TR(),CR(),null}function MR(){return T.useEffect(()=>(Kl.connect(),()=>Kl.disconnect()),[]),Q.jsx(gS,{client:a1,children:Q.jsxs(cx,{children:[Q.jsx(OR,{}),Q.jsx(CT,{}),Q.jsx(n1,{position:"top-center",toastOptions:{className:"text-sm",style:{fontFamily:"inherit"},classNames:{error:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",success:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",default:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg"}}})]})})}const DR="/api/tunnel/bootstrap";async function NR(){const n=new URL(window.location.href),i=n.searchParams.get("token");if(!i)return;const l=await fetch(`${DR}?token=${encodeURIComponent(i)}`,{method:"POST",credentials:"same-origin"});if(!l.ok)throw new Error(`Tunnel bootstrap failed (${l.status})`);n.searchParams.delete("token"),window.history.replaceState({},"",n.toString())}async function kR(){try{await NR()}catch(n){console.error("[Tunnel] Failed to bootstrap tunnel session",n)}Xb.createRoot(document.getElementById("root")).render(Q.jsx(T.StrictMode,{children:Q.jsx(MR,{})}))}kR();export{Co as $,l2 as A,Fg as B,s2 as C,XR as D,Kl as E,hi as F,PR as G,FE as H,KR as I,GR as J,dT as K,Fy as L,qE as M,Wx as N,Vg as O,gy as P,VE as Q,QE as R,fT as S,ux as T,oS as U,ng as V,UR as W,IE as X,zR as Y,Lr as Z,Lt as _,ax as a,ly as a0,yS as a1,SS as a2,TS as a3,wS as a4,ES as a5,tn as a6,_S as a7,ag as a8,RS as a9,$x as aA,ev as aB,Ba as aC,Jy as aD,xS as aa,AS as ab,ee as ac,g2 as ad,y2 as ae,v2 as af,ZE as ag,f2 as ah,h2 as ai,m2 as aj,p2 as ak,Xf as al,RR as am,BR as an,o2 as ao,d2 as ap,u2 as aq,c2 as ar,JR as as,WR as at,Me as au,ZR as av,$R as aw,IR as ax,Bl as ay,ay as az,jR as b,ix as c,qR as d,QR as e,HR as f,mn as g,Pi as h,ja as i,Q as j,gt as k,qt as l,lt as m,VR as n,YR as o,_t as p,Ne as q,T as r,e2 as s,KS as t,Ff as u,i2 as v,t2 as w,n2 as x,a2 as y,r2 as z};
|
|
13
|
+
Please change the parent <Route path="${J}"> to <Route path="${J==="/"?"*":`${J}/*`}">.`)}let E=Fi(),M;M=E;let U=M.pathname||"/",j=U;if(b!=="/"){let J=b.replace(/^\//,"").split("/");j="/"+U.replace(/^\//,"").split("/").slice(J.length).join("/")}let K=ci(n,{pathname:j});return Nt(y||K!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),Nt(K==null||K[K.length-1].route.element!==void 0||K[K.length-1].route.Component!==void 0||K[K.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),kw(K&&K.map(J=>Object.assign({},J,{params:Object.assign({},g,J.params),pathname:ua([b,f.encodeLocation?f.encodeLocation(J.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:J.pathname]),pathnameBase:J.pathnameBase==="/"?b:ua([b,f.encodeLocation?f.encodeLocation(J.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:J.pathnameBase])})),d,l,s,c)}function Ow(){let n=Bw(),i=Gl(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},i),l?T.createElement("pre",{style:c},l):null,d)}var Mw=T.createElement(Ow,null),Vy=class extends T.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const l=Ew(n.digest);l&&(n=l)}let i=n!==void 0?T.createElement(ea.Provider,{value:this.props.routeContext},T.createElement(Qf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?T.createElement(Dw,{error:n},i):i}};Vy.contextType=Ly;var $c=new WeakMap;function Dw({children:n,error:i}){let{basename:l}=T.useContext(Yn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=ww(i.digest);if(s){let c=$c.get(i);if(c)throw c;let f=Ty(s.location,l);if(xy&&!$c.get(i))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw $c.set(i,d),d}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function Nw({routeContext:n,match:i,children:l}){let s=T.useContext(Pi);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),T.createElement(ea.Provider,{value:n},l)}function kw(n,i=[],l=null,s=null,c=null){if(n==null){if(!l)return null;if(l.errors)n=l.matches;else if(i.length===0&&!l.initialized&&l.matches.length>0)n=l.matches;else return null}let f=n,d=l?.errors;if(d!=null){let b=f.findIndex(y=>y.route.id&&d?.[y.route.id]!==void 0);je(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let p=!1,g=-1;if(l)for(let b=0;b<f.length;b++){let y=f[b];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=b),y.route.id){let{loaderData:E,errors:M}=l,U=y.route.loader&&!E.hasOwnProperty(y.route.id)&&(!M||M[y.route.id]===void 0);if(y.route.lazy||U){p=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}let m=l&&s?(b,y)=>{s(b,{location:l.location,params:l.matches?.[0]?.params??{},unstable_pattern:Pl(l.matches),errorInfo:y})}:void 0;return f.reduceRight((b,y,E)=>{let M,U=!1,j=null,K=null;l&&(M=d&&y.route.id?d[y.route.id]:void 0,j=y.route.errorElement||Mw,p&&(g<0&&E===0?(Yy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),U=!0,K=null):g===E&&(U=!0,K=y.route.hydrateFallbackElement||null)));let G=i.concat(f.slice(0,E+1)),J=()=>{let $;return M?$=j:U?$=K:y.route.Component?$=T.createElement(y.route.Component,null):y.route.element?$=y.route.element:$=b,T.createElement(Nw,{match:y,routeContext:{outlet:b,matches:G,isDataRoute:l!=null},children:$})};return l&&(y.route.ErrorBoundary||y.route.errorElement||E===0)?T.createElement(Vy,{location:l.location,revalidation:l.revalidation,component:j,error:M,children:J(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:m}):J()},null)}function Vf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zw(n){let i=T.useContext(Pi);return je(i,Vf(n)),i}function Uw(n){let i=T.useContext(Fl);return je(i,Vf(n)),i}function Lw(n){let i=T.useContext(ea);return je(i,Vf(n)),i}function Yf(n){let i=Lw(n),l=i.matches[i.matches.length-1];return je(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function jw(){return Yf("useRouteId")}function Bw(){let n=T.useContext(Qf),i=Uw("useRouteError"),l=Yf("useRouteError");return n!==void 0?n:i.errors?.[l]}function qw(){let{router:n}=zw("useNavigate"),i=Yf("useNavigate"),l=T.useRef(!1);return Hy(()=>{l.current=!0}),T.useCallback(async(c,f={})=>{Nt(l.current,qy),l.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:i,...f}))},[n,i])}var Og={};function Yy(n,i,l){!i&&!Og[n]&&(Og[n]=!0,Nt(!1,l))}var Mg={};function Dg(n,i){!n&&!Mg[i]&&(Mg[i]=!0,console.warn(i))}var Hw="useOptimistic",Ng=Hb[Hw],Qw=()=>{};function Vw(n){return Ng?Ng(n):[n,Qw]}function Yw(n){let i={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&Nt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:T.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&Nt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:T.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&Nt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:T.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),i}var Gw=["HydrateFallback","hydrateFallbackElement"],Kw=class{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",n(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",i(l))}})}};function Xw({router:n,flushSync:i,onError:l,unstable_useTransitions:s}){s=yw()||s;let[f,d]=T.useState(n.state),[p,g]=Vw(f),[m,b]=T.useState(),[y,E]=T.useState({isTransitioning:!1}),[M,U]=T.useState(),[j,K]=T.useState(),[G,J]=T.useState(),$=T.useRef(new Map),ye=T.useCallback((Y,{deletedFetchers:oe,newErrors:Ae,flushSync:Ce,viewTransitionOpts:Te})=>{Ae&&l&&Object.values(Ae).forEach(Le=>l(Le,{location:Y.location,params:Y.matches[0]?.params??{},unstable_pattern:Pl(Y.matches)})),Y.fetchers.forEach((Le,we)=>{Le.data!==void 0&&$.current.set(we,Le.data)}),oe.forEach(Le=>$.current.delete(Le)),Dg(Ce===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Ue=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(Dg(Te==null||Ue,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Te||!Ue){i&&Ce?i(()=>d(Y)):s===!1?d(Y):T.startTransition(()=>{s===!0&&g(Le=>kg(Le,Y)),d(Y)});return}if(i&&Ce){i(()=>{j&&(M?.resolve(),j.skipTransition()),E({isTransitioning:!0,flushSync:!0,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation})});let Le=n.window.document.startViewTransition(()=>{i(()=>d(Y))});Le.finished.finally(()=>{i(()=>{U(void 0),K(void 0),b(void 0),E({isTransitioning:!1})})}),i(()=>K(Le));return}j?(M?.resolve(),j.skipTransition(),J({state:Y,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation})):(b(Y),E({isTransitioning:!0,flushSync:!1,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation}))},[n.window,i,j,M,s,g,l]);T.useLayoutEffect(()=>n.subscribe(ye),[n,ye]),T.useEffect(()=>{y.isTransitioning&&!y.flushSync&&U(new Kw)},[y]),T.useEffect(()=>{if(M&&m&&n.window){let Y=m,oe=M.promise,Ae=n.window.document.startViewTransition(async()=>{s===!1?d(Y):T.startTransition(()=>{s===!0&&g(Ce=>kg(Ce,Y)),d(Y)}),await oe});Ae.finished.finally(()=>{U(void 0),K(void 0),b(void 0),E({isTransitioning:!1})}),K(Ae)}},[m,M,n.window,s,g]),T.useEffect(()=>{M&&m&&p.location.key===m.location.key&&M.resolve()},[M,j,p.location,m]),T.useEffect(()=>{!y.isTransitioning&&G&&(b(G.state),E({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}),J(void 0))},[y.isTransitioning,G]);let he=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:Y=>n.navigate(Y),push:(Y,oe,Ae)=>n.navigate(Y,{state:oe,preventScrollReset:Ae?.preventScrollReset}),replace:(Y,oe,Ae)=>n.navigate(Y,{replace:!0,state:oe,preventScrollReset:Ae?.preventScrollReset})}),[n]),me=n.basename||"/",C=T.useMemo(()=>({router:n,navigator:he,static:!1,basename:me,onError:l}),[n,he,me,l]);return T.createElement(T.Fragment,null,T.createElement(Pi.Provider,{value:C},T.createElement(Fl.Provider,{value:p},T.createElement(jy.Provider,{value:$.current},T.createElement(Hf.Provider,{value:y},T.createElement(Jw,{basename:me,location:p.location,navigationType:p.historyAction,navigator:he,unstable_useTransitions:s},T.createElement(Pw,{routes:n.routes,future:n.future,state:p,onError:l})))))),null)}function kg(n,i){return{...n,navigation:i.navigation.state!=="idle"?i.navigation:n.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:n.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:n.actionData,fetchers:i.fetchers}}var Pw=T.memo(Fw);function Fw({routes:n,future:i,state:l,onError:s}){return Aw(n,void 0,l,s,i)}function Zw(n){return _w(n.context)}function Jw({basename:n="/",children:i=null,location:l,navigationType:s="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){je(!Zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),g=T.useMemo(()=>({basename:p,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[p,c,f,d]);typeof l=="string"&&(l=gi(l));let{pathname:m="/",search:b="",hash:y="",state:E=null,key:M="default"}=l,U=T.useMemo(()=>{let j=Vn(m,p);return j==null?null:{location:{pathname:j,search:b,hash:y,state:E,key:M},navigationType:s}},[p,m,b,y,E,M,s]);return Nt(U!=null,`<Router basename="${p}"> is not able to match the URL "${m}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),U==null?null:T.createElement(Yn.Provider,{value:g},T.createElement(No.Provider,{children:i,value:U}))}var So="get",wo="application/x-www-form-urlencoded";function ko(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Iw(n){return ko(n)&&n.tagName.toLowerCase()==="button"}function $w(n){return ko(n)&&n.tagName.toLowerCase()==="form"}function Ww(n){return ko(n)&&n.tagName.toLowerCase()==="input"}function eE(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function tE(n,i){return n.button===0&&(!i||i==="_self")&&!eE(n)}var ho=null;function nE(){if(ho===null)try{new FormData(document.createElement("form"),0),ho=!1}catch{ho=!0}return ho}var aE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wc(n){return n!=null&&!aE.has(n)?(Nt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wo}"`),null):n}function iE(n,i){let l,s,c,f,d;if($w(n)){let p=n.getAttribute("action");s=p?Vn(p,i):null,l=n.getAttribute("method")||So,c=Wc(n.getAttribute("enctype"))||wo,f=new FormData(n)}else if(Iw(n)||Ww(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||p.getAttribute("action");if(s=g?Vn(g,i):null,l=n.getAttribute("formmethod")||p.getAttribute("method")||So,c=Wc(n.getAttribute("formenctype"))||Wc(p.getAttribute("enctype"))||wo,f=new FormData(p,n),!nE()){let{name:m,type:b,value:y}=n;if(b==="image"){let E=m?`${m}.`:"";f.append(`${E}x`,"0"),f.append(`${E}y`,"0")}else m&&f.append(m,y)}}else{if(ko(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=So,s=null,c=wo,d=n}return f&&c==="text/plain"&&(d=f,f=void 0),{action:s,method:l.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Gf(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function rE(n,i,l,s){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return l?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:i&&Vn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${s}`,c}async function lE(n,i){if(n.id in i)return i[n.id];try{let l=await import(n.module);return i[n.id]=l,l}catch(l){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sE(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function oE(n,i,l){let s=await Promise.all(n.map(async c=>{let f=i.routes[c.route.id];if(f){let d=await lE(f,l);return d.links?d.links():[]}return[]}));return dE(s.flat(1).filter(sE).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function zg(n,i,l,s,c,f){let d=(g,m)=>l[m]?g.route.id!==l[m].route.id:!0,p=(g,m)=>l[m].pathname!==g.pathname||l[m].route.path?.endsWith("*")&&l[m].params["*"]!==g.params["*"];return f==="assets"?i.filter((g,m)=>d(g,m)||p(g,m)):f==="data"?i.filter((g,m)=>{let b=s.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(d(g,m)||p(g,m))return!0;if(g.route.shouldRevalidate){let y=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function uE(n,i,{includeHydrateFallback:l}={}){return cE(n.map(s=>{let c=i.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),l&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function cE(n){return[...new Set(n)]}function fE(n){let i={},l=Object.keys(n).sort();for(let s of l)i[s]=n[s];return i}function dE(n,i){let l=new Set;return new Set(i),n.reduce((s,c)=>{let f=JSON.stringify(fE(c));return l.has(f)||(l.add(f),s.push({key:f,link:c})),s},[])}function Gy(){let n=T.useContext(Pi);return Gf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function hE(){let n=T.useContext(Fl);return Gf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Kf=T.createContext(void 0);Kf.displayName="FrameworkContext";function Ky(){let n=T.useContext(Kf);return Gf(n,"You must render this element inside a <HydratedRouter> element"),n}function mE(n,i){let l=T.useContext(Kf),[s,c]=T.useState(!1),[f,d]=T.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:b,onTouchStart:y}=i,E=T.useRef(null);T.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let j=G=>{G.forEach(J=>{d(J.isIntersecting)})},K=new IntersectionObserver(j,{threshold:.5});return E.current&&K.observe(E.current),()=>{K.disconnect()}}},[n]),T.useEffect(()=>{if(s){let j=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(j)}}},[s]);let M=()=>{c(!0)},U=()=>{c(!1),d(!1)};return l?n!=="intent"?[f,E,{}]:[f,E,{onFocus:kl(p,M),onBlur:kl(g,U),onMouseEnter:kl(m,M),onMouseLeave:kl(b,U),onTouchStart:kl(y,M)}]:[!1,E,{}]}function kl(n,i){return l=>{n&&n(l),l.defaultPrevented||i(l)}}function pE({page:n,...i}){let{router:l}=Gy(),s=T.useMemo(()=>ci(l.routes,n,l.basename),[l.routes,n,l.basename]);return s?T.createElement(yE,{page:n,matches:s,...i}):null}function gE(n){let{manifest:i,routeModules:l}=Ky(),[s,c]=T.useState([]);return T.useEffect(()=>{let f=!1;return oE(n,i,l).then(d=>{f||c(d)}),()=>{f=!0}},[n,i,l]),s}function yE({page:n,matches:i,...l}){let s=Fi(),{future:c,manifest:f,routeModules:d}=Ky(),{basename:p}=Gy(),{loaderData:g,matches:m}=hE(),b=T.useMemo(()=>zg(n,i,m,f,s,"data"),[n,i,m,f,s]),y=T.useMemo(()=>zg(n,i,m,f,s,"assets"),[n,i,m,f,s]),E=T.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let j=new Set,K=!1;if(i.forEach(J=>{let $=f.routes[J.route.id];!$||!$.hasLoader||(!b.some(ye=>ye.route.id===J.route.id)&&J.route.id in g&&d[J.route.id]?.shouldRevalidate||$.hasClientLoader?K=!0:j.add(J.route.id))}),j.size===0)return[];let G=rE(n,p,c.unstable_trailingSlashAwareDataRequests,"data");return K&&j.size>0&&G.searchParams.set("_routes",i.filter(J=>j.has(J.route.id)).map(J=>J.route.id).join(",")),[G.pathname+G.search]},[p,c.unstable_trailingSlashAwareDataRequests,g,s,f,b,i,n,d]),M=T.useMemo(()=>uE(y,f),[y,f]),U=gE(y);return T.createElement(T.Fragment,null,E.map(j=>T.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...l})),M.map(j=>T.createElement("link",{key:j,rel:"modulepreload",href:j,...l})),U.map(({key:j,link:K})=>T.createElement("link",{key:j,nonce:l.nonce,...K,crossOrigin:K.crossOrigin??l.crossOrigin})))}function vE(...n){return i=>{n.forEach(l=>{typeof l=="function"?l(i):l!=null&&(l.current=i)})}}var bE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{bE&&(window.__reactRouterVersion="7.13.0")}catch{}function SE(n,i){return X1({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:o1({window:i?.window}),hydrationData:wE(),routes:n,mapRouteProperties:Yw,hydrationRouteProperties:Gw,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function wE(){let n=window?.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:EE(n.errors)}),n}function EE(n){if(!n)return null;let i=Object.entries(n),l={};for(let[s,c]of i)if(c&&c.__type==="RouteErrorResponse")l[s]=new Xl(c.status,c.statusText,c.data,c.internal===!0);else if(c&&c.__type==="Error"){if(c.__subType){let f=window[c.__subType];if(typeof f=="function")try{let d=new f(c.message);d.stack="",l[s]=d}catch{}}if(l[s]==null){let f=new Error(c.message);f.stack="",l[s]=f}}else l[s]=c;return l}var Xy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Py=T.forwardRef(function({onClick:i,discover:l="render",prefetch:s="none",relative:c,reloadDocument:f,replace:d,state:p,target:g,to:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E,...M},U){let{basename:j,unstable_useTransitions:K}=T.useContext(Yn),G=typeof m=="string"&&Xy.test(m),J=Ty(m,j);m=J.to;let $=xw(m,{relative:c}),[ye,he,me]=mE(s,M),C=_E(m,{replace:d,state:p,target:g,preventScrollReset:b,relative:c,viewTransition:y,unstable_defaultShouldRevalidate:E,unstable_useTransitions:K});function Y(Ae){i&&i(Ae),Ae.defaultPrevented||C(Ae)}let oe=T.createElement("a",{...M,...me,href:J.absoluteURL||$,onClick:J.isExternal||f?i:Y,ref:vE(U,he),target:g,"data-discover":!G&&l==="render"?"true":void 0});return ye&&!G?T.createElement(T.Fragment,null,oe,T.createElement(pE,{page:$})):oe});Py.displayName="Link";var xE=T.forwardRef(function({"aria-current":i="page",caseSensitive:l=!1,className:s="",end:c=!1,style:f,to:d,viewTransition:p,children:g,...m},b){let y=Jl(d,{relative:m.relative}),E=Fi(),M=T.useContext(Fl),{navigator:U,basename:j}=T.useContext(Yn),K=M!=null&&DE(y)&&p===!0,G=U.encodeLocation?U.encodeLocation(y).pathname:y.pathname,J=E.pathname,$=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;l||(J=J.toLowerCase(),$=$?$.toLowerCase():null,G=G.toLowerCase()),$&&j&&($=Vn($,j)||$);const ye=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let he=J===G||!c&&J.startsWith(G)&&J.charAt(ye)==="/",me=$!=null&&($===G||!c&&$.startsWith(G)&&$.charAt(G.length)==="/"),C={isActive:he,isPending:me,isTransitioning:K},Y=he?i:void 0,oe;typeof s=="function"?oe=s(C):oe=[s,he?"active":null,me?"pending":null,K?"transitioning":null].filter(Boolean).join(" ");let Ae=typeof f=="function"?f(C):f;return T.createElement(Py,{...m,"aria-current":Y,className:oe,ref:b,style:Ae,to:d,viewTransition:p},typeof g=="function"?g(C):g)});xE.displayName="NavLink";var TE=T.forwardRef(({discover:n="render",fetcherKey:i,navigate:l,reloadDocument:s,replace:c,state:f,method:d=So,action:p,onSubmit:g,relative:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E,...M},U)=>{let{unstable_useTransitions:j}=T.useContext(Yn),K=OE(),G=ME(p,{relative:m}),J=d.toLowerCase()==="get"?"get":"post",$=typeof p=="string"&&Xy.test(p),ye=he=>{if(g&&g(he),he.defaultPrevented)return;he.preventDefault();let me=he.nativeEvent.submitter,C=me?.getAttribute("formmethod")||d,Y=()=>K(me||he.currentTarget,{fetcherKey:i,method:C,navigate:l,replace:c,state:f,relative:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E});j&&l!==!1?T.startTransition(()=>Y()):Y()};return T.createElement("form",{ref:U,method:J,action:G,onSubmit:s?g:ye,...M,"data-discover":!$&&n==="render"?"true":void 0})});TE.displayName="Form";function RE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fy(n){let i=T.useContext(Pi);return je(i,RE(n)),i}function _E(n,{target:i,replace:l,state:s,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let m=Qy(),b=Fi(),y=Jl(n,{relative:f});return T.useCallback(E=>{if(tE(E,i)){E.preventDefault();let M=l!==void 0?l:ca(b)===ca(y),U=()=>m(n,{replace:M,state:s,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:p});g?T.startTransition(()=>U()):U()}},[b,m,y,l,s,i,n,c,f,d,p,g])}var CE=0,AE=()=>`__${String(++CE)}__`;function OE(){let{router:n}=Fy("useSubmit"),{basename:i}=T.useContext(Yn),l=jw(),s=n.fetch,c=n.navigate;return T.useCallback(async(f,d={})=>{let{action:p,method:g,encType:m,formData:b,body:y}=iE(f,i);if(d.navigate===!1){let E=d.fetcherKey||AE();await s(E,l,d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:y,formMethod:d.method||g,formEncType:d.encType||m,flushSync:d.flushSync})}else await c(d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:y,formMethod:d.method||g,formEncType:d.encType||m,replace:d.replace,state:d.state,fromRouteId:l,flushSync:d.flushSync,viewTransition:d.viewTransition})},[s,c,i,l])}function ME(n,{relative:i}={}){let{basename:l}=T.useContext(Yn),s=T.useContext(ea);je(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...Jl(n||".",{relative:i})},d=Fi();if(n==null){f.search=d.search;let p=new URLSearchParams(f.search),g=p.getAll("index");if(g.some(b=>b==="")){p.delete("index"),g.filter(y=>y).forEach(y=>p.append("index",y));let b=p.toString();f.search=b?`?${b}`:""}}return(!n||n===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(f.pathname=f.pathname==="/"?l:ua([l,f.pathname])),ca(f)}function DE(n,{relative:i}={}){let l=T.useContext(Hf);je(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Fy("useViewTransitionState"),c=Jl(n,{relative:i});if(!l.isTransitioning)return!1;let f=Vn(l.currentLocation.pathname,s)||l.currentLocation.pathname,d=Vn(l.nextLocation.pathname,s)||l.nextLocation.pathname;return Mo(c.pathname,d)!=null||Mo(c.pathname,f)!=null}function NE(n){return T.createElement(Xw,{flushSync:gy.flushSync,...n})}const Zy=(...n)=>n.filter((i,l,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===l).join(" ").trim();const kE=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const zE=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,s)=>s?s.toUpperCase():l.toLowerCase());const Ug=n=>{const i=zE(n);return i.charAt(0).toUpperCase()+i.slice(1)};var UE={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 LE=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const jE=T.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:d,...p},g)=>T.createElement("svg",{ref:g,...UE,width:i,height:i,stroke:n,strokeWidth:s?Number(l)*24/Number(i):l,className:Zy("lucide",c),...!f&&!LE(p)&&{"aria-hidden":"true"},...p},[...d.map(([m,b])=>T.createElement(m,b)),...Array.isArray(f)?f:[f]]));const yi=(n,i)=>{const l=T.forwardRef(({className:s,...c},f)=>T.createElement(jE,{ref:f,iconNode:i,className:Zy(`lucide-${kE(Ug(n))}`,`lucide-${n}`,s),...c}));return l.displayName=Ug(n),l};const BE=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],qE=yi("bell",BE);const HE=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],QE=yi("cable",HE);const VE=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],YE=yi("cpu",VE);const GE=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],KE=yi("folder-git-2",GE);const XE=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],PE=yi("languages",XE);const FE=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ZE=yi("settings",FE);const JE=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],IE=yi("users",JE);const $E=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],WE=yi("x",$E),Lg=n=>{let i;const l=new Set,s=(m,b)=>{const y=typeof m=="function"?m(i):m;if(!Object.is(y,i)){const E=i;i=b??(typeof y!="object"||y===null)?y:Object.assign({},i,y),l.forEach(M=>M(i,E))}},c=()=>i,p={setState:s,getState:c,getInitialState:()=>g,subscribe:m=>(l.add(m),()=>l.delete(m))},g=i=n(s,c,p);return p},ex=(n=>n?Lg(n):Lg),tx=n=>n;function nx(n,i=tx){const l=ee.useSyncExternalStore(n.subscribe,ee.useCallback(()=>i(n.getState()),[n,i]),ee.useCallback(()=>i(n.getInitialState()),[n,i]));return ee.useDebugValue(l),l}const jg=n=>{const i=ex(n),l=s=>nx(i,s);return Object.assign(l,i),l},Jy=(n=>n?jg(n):jg),Bl=Jy(n=>({sidebarOpen:!0,theme:"system",settingsOpen:!1,settingsTab:"general",toggleSidebar:()=>n(i=>({sidebarOpen:!i.sidebarOpen})),setSidebarOpen:i=>n({sidebarOpen:i}),setTheme:i=>n({theme:i}),openSettings:i=>n({settingsOpen:!0,...i?{settingsTab:i}:{}}),closeSettings:()=>n({settingsOpen:!1}),setSettingsTab:i=>n({settingsTab:i})})),ax="/api";class ix{baseUrl;constructor(i){this.baseUrl=i}async request(i,l={}){const{params:s,...c}=l;let f=`${this.baseUrl}${i}`;if(s){const g=new URLSearchParams(s);f+=`?${g.toString()}`}const d={...c.headers};c.body!==void 0&&(d["Content-Type"]="application/json");const p=await fetch(f,{...c,headers:d});if(!p.ok){const g=await p.json().catch(()=>({}));throw new Xf(p.status,typeof g.message=="string"?g.message:typeof g.error=="string"?g.error:"Request failed",g)}if(p.status!==204)return p.json()}get(i,l){return this.request(i,{...l,method:"GET"})}post(i,l,s){return this.request(i,{...s,method:"POST",body:l?JSON.stringify(l):void 0})}put(i,l,s){return this.request(i,{...s,method:"PUT",body:l?JSON.stringify(l):void 0})}patch(i,l,s){return this.request(i,{...s,method:"PATCH",body:l?JSON.stringify(l):void 0})}delete(i,l){return this.request(i,{...l,method:"DELETE"})}}class Xf extends Error{status;details;constructor(i,l,s={}){super(l),this.name="ApiError",this.status=i,this.details=s}}const lt=new ix(ax),Ne={projects:{all:["projects"],list:n=>["projects","list",n],detail:n=>["projects","detail",n]},tasks:{all:["tasks"],list:(n,i)=>["tasks","list",n,i],detail:n=>["tasks","detail",n],body:n=>["tasks","body",n],stats:n=>["tasks","stats",n]},workspaces:{all:["workspaces"],list:n=>["workspaces","list",n],detail:n=>["workspaces","detail",n],diff:n=>["workspaces","diff",n],gitStatus:n=>["workspaces","gitStatus",n]},previews:{all:["previews"],status:n=>["previews","status",n]},sessions:{all:["sessions"],detail:n=>["sessions","detail",n]},files:{all:["files"],tree:(n,i)=>["files","tree",n,i],content:(n,i)=>["files","content",n,i]},git:{all:["git"],changes:n=>["git","changes",n],diff:(n,i,l)=>["git","diff",n,i,l],log:n=>["git","log",n],commitFiles:(n,i)=>["git","commitFiles",n,i],commitDiff:(n,i,l)=>["git","commitDiff",n,i,l]},profiles:{all:["profiles"],defaults:["profiles","defaults"],agent:n=>["profiles","agent",n],variant:(n,i)=>["profiles","variant",n,i]},providers:{all:["providers"],detail:n=>["providers","detail",n]},tunnel:{status:["tunnel","status"]},notifications:{settings:["notifications","settings"]},appSettings:{detail:["app-settings"]},system:{cursorAgentModels:["system","cursor-agent-models"],mcpConfig:["system","mcp-config"],slashCommandCatalog:(n,i)=>["system","slash-command-catalog",n??null,i??null],skillCatalog:(n,i)=>["system","skill-catalog",n??null,i??null]}};function rx(){return Ba({queryKey:Ne.appSettings.detail,queryFn:()=>lt.get("/app-settings")})}function lx(){const n=gt();return qt({mutationFn:i=>lt.put("/app-settings",i),onSuccess:()=>{n.invalidateQueries({queryKey:Ne.appSettings.detail})}})}function HR(){return Ba({queryKey:[...Ne.appSettings.detail,"commit-message-defaults"],queryFn:()=>lt.get("/app-settings/commit-message-defaults")})}const sx={"zh-CN":{Settings:"设置",General:"通用",Back:"返回","Loading...":"加载中...","No options":"暂无选项","Processing...":"处理中...",Confirm:"确认",Cancel:"取消","General Settings":"通用设置","Display Language":"显示语言","Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.":"选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。",English:"English","Simplified Chinese":"简体中文","Language setting":"语言设置","Language setting could not be saved":"语言设置保存失败","Browse and select a Git repository, or type a path and press Enter":"浏览并选择一个 Git 仓库,或输入路径后按 Enter","Browse and select a directory, or type a path and press Enter":"浏览并选择一个目录,或输入路径后按 Enter","Select Current":"选择当前目录","Agent 配置":"Agent 配置",项目配置:"项目配置",通知:"通知",通用:"通用","AI Agent Task Management Dashboard":"AI Agent 任务管理面板","Project Management":"项目管理","Manage your AI agent projects":"管理你的 AI Agent 项目","View Projects":"查看项目","Task Board":"任务看板","Kanban-style task management":"Kanban 风格的任务管理","Open Board":"打开看板",Workspace:"工作区","Git worktree isolated environments":"Git Worktree 隔离环境","Manage Workspaces":"管理工作区","Move to":"移动到","Delete Task":"删除任务","Drop into {title}":"放入 {title}","Drop here":"拖到此处","No tasks":"暂无任务","All Projects":"所有项目",Projects:"项目","Select View":"选择视图","Create New Project...":"创建新项目...","New Task":"新任务","New Project":"新项目",Search:"搜索","Search tasks...":"搜索任务...","Recent tasks":"近期任务","No matching tasks":"没有匹配的任务","{count} tasks":"{count} 个任务","Clear filter":"清除筛选",Review:"待审查",Running:"进行中",Pending:"待开始",Done:"已完成",Cancelled:"已取消",Changes:"变更",History:"历史",Editor:"编辑器",Terminal:"终端",Preview:"预览","Coming soon...":"即将推出...",Modified:"已修改",Added:"已新增",Deleted:"已删除",Renamed:"已重命名","Loading diff...":"正在加载差异...","Failed to load diff.":"加载差异失败。","No diff content available.":"没有可显示的差异内容。","No workspace selected.":"未选择工作区。","Loading changes...":"正在加载变更...","Failed to load changes.":"加载变更失败。","No pending changes":"暂无待处理变更",Uncommitted:"未提交",Committed:"已提交","Select a file to view diff":"选择一个文件以查看差异","{count}s ago":"{count} 秒前","{count}m ago":"{count} 分钟前","{count}h ago":"{count} 小时前","{count}d ago":"{count} 天前","Loading files...":"正在加载文件列表...","No files changed":"没有文件变更","Loading history...":"正在加载历史记录...","Failed to load history.":"加载历史记录失败。","No commit history":"暂无提交历史","Load more":"加载更多","Select a commit to view changes":"选择一个提交以查看变更","Zoom out":"缩小","Reset zoom":"重置缩放","Zoom in":"放大","Fit to view":"适应视图","Failed to load image.":"加载图片失败。","Close tab":"关闭标签页",Close:"关闭","Expand file tree":"展开文件树","No open files":"暂无打开文件",Saving:"保存中",Unsaved:"未保存","Select a file from the tree to open.":"从文件树中选择一个文件以打开。","Loading file...":"正在加载文件...","Failed to load file":"加载文件失败","Failed to load":"加载失败",Files:"文件","No working directory":"未选择工作目录","Refresh file tree":"刷新文件树","Collapse file tree":"收起文件树","Shell {count}":"终端 {count}","New Terminal":"新终端","No terminals open":"暂无打开终端",Disconnected:"未连接","Connecting...":"连接中...",Connected:"已连接","No active session":"暂无活动会话","Create a workspace and start a session to see terminal output.":"创建工作区并启动会话后即可查看终端输出。","Process exited with code {code}":"进程已退出,退出码 {code}","Error: {message}":"错误: {message}","Session: {id}":"会话: {id}","Tunnel active":"隧道已启用","Share via tunnel":"通过隧道分享","Tunnel Active":"隧道已启用","Tunnel healthy":"隧道健康","Tunnel needs attention":"隧道需要注意","Tunnel unavailable":"隧道不可用","Tunnel starting":"隧道启动中","Tunnel is off":"隧道未开启","Checking tunnel health":"正在检查隧道健康","Observing original link":"正在观察原链接","Local service unavailable":"本地服务不可用","Tunnel process exited":"隧道进程已退出","Tunnel error":"隧道错误","New link generated":"新链接已生成","Use Agent Tower on your phone":"在手机上使用 Agent Tower","After enabling the tunnel, you can scan a QR code with your phone to visit this Agent Tower instance, assign tasks, and check agent status.":"开启隧道后,可以用手机扫码访问本机的 Agent Tower,用手机派任务、查看 Agent 状态。","Enable phone access":"开启手机访问","Starting tunnel...":"正在开启隧道...","Start a temporary Quick Tunnel when you need to share this Agent Tower session.":"需要分享当前 Agent Tower 会话时,可以启动一个临时 Quick Tunnel。","The Cloudflare tunnel is running and the local Agent Tower health check passed.":"Cloudflare 隧道正在运行,且本地 Agent Tower 健康检查已通过。","The Cloudflare tunnel is running. Agent Tower is waiting for the first local health check.":"Cloudflare 隧道正在运行,Agent Tower 正在等待首次本地健康检查。","The original public URL is currently unreachable. Agent Tower is watching for it to recover and will not generate a new link automatically.":"原公网链接当前不可访问。Agent Tower 正在观察它是否恢复,不会自动生成新链接。","The local Agent Tower target is not responding, so the tunnel cannot be considered healthy.":"本地 Agent Tower 目标没有响应,因此隧道不能视为健康。","The tunnel process has exited. The old Quick Tunnel link is unlikely to recover.":"隧道进程已退出,旧 Quick Tunnel 链接大概率无法恢复。","The tunnel reported an error. Check the diagnostics before generating a new link.":"隧道报告了错误。生成新链接前请先查看诊断信息。","A new Quick Tunnel link was generated. The old link and token are no longer valid.":"已生成新的 Quick Tunnel 链接。旧链接和 token 已失效。","Agent Tower is asking Cloudflare Quick Tunnel for a temporary public URL.":"Agent Tower 正在向 Cloudflare Quick Tunnel 申请临时公网链接。","Last checked":"上次检查","Last healthy":"上次健康",Never:"从未","Agent Tower is keeping the same URL and waiting for Cloudflare Quick Tunnel to recover.":"Agent Tower 会保留同一个 URL,并等待 Cloudflare Quick Tunnel 自行恢复。","The previous tunnel link and token are no longer valid.":"之前的隧道链接和 token 已不再有效。","Generating a new link will invalidate the current link. People using the old URL must receive the new one.":"生成新链接会使当前链接失效。正在使用旧 URL 的人需要收到新链接。","Regenerate link":"重新生成链接","Generating...":"生成中...","Token protected":"受 Token 保护","Copy shareable link":"复制分享链接","No tunnel link available":"暂无可用隧道链接","Hide token":"隐藏 Token","Show token":"显示 Token","Copy token":"复制 Token","Stopping...":"停止中...","Stop Tunnel":"停止隧道","Create & Start":"创建并启动","Create TeamRun":"创建 TeamRun","Creating TeamRun...":"正在创建 TeamRun...","Team Status":"团队状态","Team mode":"团队模式","Review reason":"审查原因",Members:"成员","No members":"暂无成员",Queue:"队列","No queued work requests":"暂无排队中的工作请求","Active invocations":"活动调用","No active invocations":"暂无活动调用","Recently completed":"最近完成","No completed invocations":"暂无已完成调用","New session per request":"每次新会话","Resume last session":"复用上次会话",Latest:"最新","Invocation history":"调用历史","No invocation history":"暂无调用历史","No invocations yet":"暂无调用记录","All members idle":"所有成员空闲",Log:"日志",Details:"详情",Workspaces:"工作区",Owner:"所有者",Parent:"父级",Selected:"已选",Select:"选择","View workspace":"查看工作区",Invocation:"调用",Session:"会话","View log":"查看日志","View details":"查看详情","Team room":"团队房间","No room messages yet":"暂无房间消息",Messages:"消息","Work requests":"工作请求","Active work":"进行中的工作",Working:"正在工作","Queued...":"排队中...","Waiting reply...":"等待回复...",running:"进行中",queued:"排队",waiting:"等待",ended:"已结束",Elapsed:"耗时",Failed:"失败","Session ended":"会话已结束","Failed to send room message":"发送房间消息失败",selected:"已选择","Back to bottom":"回到底部","Expand full message":"展开全部","Collapse message":"收起","Invocation details":"调用详情","Back to room":"返回群聊","Pending approval":"待审批","Tool Calls":"工具调用","No pending approvals":"暂无待审批项",Requester:"发起者",User:"用户",System:"系统","Waiting room reply":"等待房间回复",Queued:"排队中",Idle:"空闲","Queue if busy":"忙碌时排队","Cancel current if busy":"忙碌时取消当前并开始","Cancel queued":"取消排队",Approve:"批准",Approving:"批准中...",Reject:"拒绝",Rejecting:"拒绝中...",Cancelling:"取消中...","Failed to update work request":"更新工作请求失败","Failed to cancel work request":"取消工作请求失败",Stop:"停止","Stop running work?":"停止正在运行的工作?","Stop only":"仅停止","Stop + clear queue":"停止并清空队列",Stopping:"停止中...","Failed to stop member work":"停止成员工作失败",Yes:"是",No:"否","Creating Task...":"正在创建任务...","Creating Workspace...":"正在创建工作区...","Creating Session...":"正在创建会话...","Starting Agent...":"正在启动 Agent...","启动 Agent 失败":"Failed to start Agent","重试启动 Agent":"Retry Start Agent","Create New Project":"创建新项目","Creating...":"创建中...","Checking...":"检查中...",Create:"创建","Create Project":"创建项目","Initialize Git repository?":"初始化 Git 仓库?","Initialize and Create":"初始化并创建","This directory is empty and does not have Git version control yet. Agent Tower can initialize Git and create the initial commit before creating the project.":"该目录为空且尚未启用 Git 版本管理。Agent Tower 可以先初始化 Git 并创建初始提交,然后再创建项目。","The selected directory is not a Git repository and is not empty. Initialize Git manually and make an initial commit, then create the project.":"所选目录不是 Git 仓库且不为空。请手动初始化 Git 并完成首次提交,然后再创建项目。","Selected path is not a valid directory":"所选路径不是有效目录","Could not check repository path":"无法检查仓库路径","Project Name":"项目名称","e.g., Agent Tower":"例如:Agent Tower","Repository Path":"仓库路径","Create New Task":"创建新任务",Execution:"执行方式","Solo Agent":"Solo Agent",Project:"项目",Provider:"Provider",Agent:"Agent","Select project...":"选择项目...","Select provider...":"选择 Provider...","Task Title":"任务标题","e.g., Implement login flow":"例如:实现登录流程",Description:"描述","Optional...":"可选...","Optional description...":"可选描述...","Drop files here":"将文件拖到这里","Attach files":"添加文件","or paste files":"或粘贴文件","or paste/drag files":"或粘贴/拖拽文件","Drag to resize":"拖动以调整大小","Failed to create task":"创建任务失败","Failed to create project":"创建项目失败","Select a task from the sidebar to view logs, monitor execution, or interact with an agent.":"从侧边栏选择一个任务,以查看日志、监控执行过程,或与 Agent 交互。","Open in IDE":"在 IDE 中打开","Toggle Workspace":"切换工作区面板","More actions":"更多操作","No description":"暂无描述","Setup ({current}/{total}): {command}":"Setup({current}/{total}):{command}","Loading logs...":"正在加载日志...","Waiting for agent output...":"等待 Agent 输出...","No logs recorded for this session.":"当前会话暂无日志记录。","Scroll to bottom":"滚动到底部","Drop files here...":"将文件拖到这里...","Continue conversation...":"继续对话...","Message Agent...":"给 Agent 发送消息...","Upload file":"上传文件","Uploading...":"上传中...","Describe your task...":"描述你的任务...","Switch to TeamRun":"切换到 TeamRun","Switch to Solo Agent":"切换到单 Agent"," (unavailable)":"(不可用)","Manage Team Members":"管理团队成员","Add member":"添加成员","Save member":"保存成员","Edit member":"编辑成员","Remove member":"移除成员",Remove:"移除","Member added":"成员已添加","Member updated":"成员已更新","Member removed":"成员已移除","Failed to save member":"保存成员失败","Failed to remove member":"移除成员失败","Name, provider, and role prompt are required":"名称、Provider 和角色提示词不能为空","No active members":"暂无活跃成员","Add member from preset":"从预设添加成员","Choose a saved preset to add a ready-to-run member snapshot.":"选择已保存的预设,添加一个可直接工作的成员快照。","Custom member":"自定义成员",Custom:"自定义","Use preset":"使用预设",Preset:"预设","Select a member":"选择成员","Choose a member on the left to edit its future TeamRun configuration.":"从左侧选择成员,编辑其后续 TeamRun 配置。","Provider, role, workspace, and session changes apply to future work only.":"Provider、角色、工作区和会话变更只影响后续工作。","Create a one-off member snapshot for this TeamRun.":"为当前 TeamRun 创建一次性的成员快照。","Create a custom member for this TeamRun, or add presets from Team Collaboration Settings.":"可以为当前 TeamRun 创建自定义成员,或先在团队协作设置中添加预设。","Remove this member from future TeamRun work?":"将该成员从后续 TeamRun 工作中移除?",Name:"名称",Aliases:"别名",Avatar:"头像","Workspace policy":"工作区策略","Trigger policy":"触发策略","Session policy":"会话策略","Queue policy":"队列策略","Role prompt":"角色提示词",Capabilities:"能力","Comma separated":"用逗号分隔","No member presets":"暂无成员预设",active:"活跃",working:"工作中"},en:{设置:"Settings",通用:"General",返回:"Back","加载中...":"Loading...",暂无选项:"No options","处理中...":"Processing...",确认:"Confirm",取消:"Cancel",工具调用:"Tool Calls","失败 {count}":"Failed {count}",通用设置:"General Settings",显示语言:"Display Language","选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。":"Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.",简体中文:"Simplified Chinese",语言设置:"Language setting",语言设置保存失败:"Language setting could not be saved","Agent 配置":"Agent Settings",项目配置:"Project Settings",通知:"Notifications","MCP 配置":"MCP Config","复制下面的 JSON 到支持 MCP 的客户端配置中。桌面打包版使用 App 内置 runtime,不需要全局安装 agent-tower。":"Copy this JSON into an MCP-capable client config. The packaged desktop app uses the bundled runtime and does not require a global agent-tower install.",复制配置:"Copy Config","MCP 配置已复制":"MCP config copied","复制 MCP 配置失败":"Failed to copy MCP config","MCP 配置加载失败":"Failed to load MCP config","无需全局 CLI":"No global CLI needed","桌面打包 runtime":"Desktop packaged runtime","工作区 runtime":"Workspace runtime","当前版本只生成通用 MCP 配置,不会自动修改 Claude、Codex 或其他第三方客户端配置文件。":"This version only generates generic MCP config and does not modify Claude, Codex, or other third-party client config files automatically.","暂无项目,请先创建项目":"No projects yet. Create one first.",选择项目:"Select Project","选择项目...":"Select project...",自动复制文件:"Auto-copy Files","创建 worktree 时自动从主仓库复制的文件或目录。支持 glob 模式。":"Files or directories to copy from the main repository when creating a worktree. Glob patterns are supported.","适用于不在 git 管理中但启动必需的文件,如 .env、node_modules、数据库文件等":"Useful for required startup files that are not tracked by git, such as .env, node_modules, or database files.","Setup 脚本":"Setup Script","创建 worktree 后自动执行的命令,每行一条,按顺序执行。":"Commands to run automatically after creating the worktree, one per line in order.","命令在 worktree 目录下执行,单条命令超时 5 分钟,失败不会阻断后续命令":"Commands run inside the worktree directory. Each command times out after 5 minutes, and a failure does not block later commands.",常用命令:"Quick Commands","在终端中可快速执行的命令,不会自动运行。":"Commands that can be run quickly in the terminal. They are not executed automatically.","保存中...":"Saving...",保存:"Save",有未保存的更改:"You have unsaved changes",系统通知:"System Notifications",任务完成时弹出桌面通知:"Show a desktop notification when a task finishes.",第三方通知:"Third-party Notifications",选择一个第三方渠道接收通知:"Choose a third-party channel to receive notifications.",无:"None",飞书:"Feishu",测试发送:"Send Test",发送成功:"Sent successfully",发送失败:"Send failed","跳转地址(用于生成任务链接)":"Base URL (used to generate task links)",'通知卡片中的"查看任务"按钮将跳转到 {path}':'The "View Task" button in the notification card will open {path}',通知模板:"Notification Templates","支持变量: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}":"Supported variables: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}",标题模板:"Title Template",内容模板:"Body Template",'✅ "{taskTitle}" 已完成,等待审查':'✅ "{taskTitle}" is complete and ready for review',保存所有更改:"Save All Changes","启动失败: {message}":"Start failed: {message}",未知错误:"Unknown error",会话已停止:"Session stopped","Agent 交互演示":"Agent Interaction Demo","选择 Agent":"Select Agent","输入你的问题或任务...":"Enter your question or task...","启动中...":"Starting...",开始:"Start",对话:"Conversation",已连接:"Connected","连接中...":"Connecting...",未连接:"Disconnected",停止:"Stop","选择 Agent 并输入问题开始对话":"Select an agent and enter a prompt to start chatting.",你:"You","发送后续消息...":"Send a follow-up message...",发送:"Send",新会话:"New Session",未选择:"Not selected",连接:"Connection","Profiles 设置":"Profile Settings","配置变体 (Profile Variant)":"Profile Variant",输入任务:"Task Input","等待 Agent 响应...":"Waiting for agent output...","发送消息给 Agent...":"Send a message to the agent...","启动失败,请重试":"Failed to start. Please try again.",启动:"Start","创建工作空间...":"Creating workspace...","创建会话...":"Creating session...","启动 Agent...":"Starting agent...","启动 Agent":"Start Agent","选择 Provider":"Select Provider"," (不可用)":" (Unavailable)",任务描述:"Task Description","描述你想让 Agent 完成的任务...":"Describe the task you want the agent to complete...","输入文件路径...":"Enter a file path...",添加:"Add",添加此目录:"Add this directory",名称:"Name",命令:"Command",切换渠道:"Switch Provider","(默认)":"(Default)","留空为 auto;或直接输入模型 ID(与 cursor-agent --model 一致)":"Leave empty for auto, or enter a model ID directly (same as cursor-agent --model).","正在加载 cursor-agent 模型列表…":"Loading cursor-agent model list...",收起列表:"Collapse List","从本机 cursor-agent 选择({count} 个)":"Choose from local cursor-agent ({count})","筛选模型…":"Filter models...","默认 (auto)":"Default (auto)",无匹配项:"No matches",请求失败:"Request failed","无法从本机加载模型列表({error})。仍可手动输入;或在安装 cursor-agent 的机器上运行":"Could not load models from the local machine ({error}). You can still enter one manually, or run","查看 ID。":"to inspect available IDs.","JSON 格式错误":"Invalid JSON format","删除 Profile Variant":"Delete Profile Variant","确定删除 {agentType} / {variant}?":"Delete {agentType} / {variant}?",新增:"New",内置:"Built-in","新增 Variant — {agentType}":"New Variant — {agentType}","编辑 {variant}":"Edit {variant}","Variant 名称":"Variant Name","例如: CUSTOM":"e.g. CUSTOM","配置 (JSON)":"Configuration (JSON)","状态变更失败,该操作不被允许":"Status change failed. This action is not allowed.","Git 操作":"Git Operations",删除任务:"Delete Task","Setup 完成":"Setup complete","Setup 失败: {error}":"Setup failed: {error}","尚未启动 Agent":"No agent started yet","选择一个 Agent 来执行此任务":"Choose an agent to execute this task.","选择一个 Agent 来执行此任务,Agent 将自动创建工作空间并开始工作。":"Choose an agent to execute this task. The agent will create a workspace automatically and start working.",回到底部:"Back to Bottom","代码已合并,以上为历史沟通记录":"The code has been merged. The conversation above is historical.","启动新 Agent":"Start New Agent","确认删除任务「{title}」?此操作不可撤销。":'Delete task "{title}"? This action cannot be undone.',删除:"Delete","正在运行的 Agent 将被停止":"The running agent will be stopped.",分支上未合并的变更将丢失:"Unmerged changes on the branch will be lost.","关联的工作目录(worktree)将被清理":"The associated worktree directory will be cleaned up.","{opLabel} 冲突 — {count} 个文件":"{opLabel} conflicts — {count} files",中止操作:"Abort Operation",解决冲突:"Resolve Conflicts","解决 {opLabel} 冲突":"Resolve {opLabel} Conflicts","在 IDE 中打开":"Open in IDE","发送中...":"Sending...","AI 辅助解决":"Resolve with AI","冲突文件({count})":"Conflicted Files ({count})","选择 Session(AI 辅助解决)":"Choose Session (Resolve with AI)","选择一个 Session...":"Select a session...","没有可用的 Session,请在 IDE 中手动解决冲突。":"No session is available. Please resolve the conflicts manually in your IDE.","TeamRun 模式下会把处理冲突请求发送到 Team Room,由团队调度处理。":"In TeamRun mode, the conflict request will be sent to Team Room for team scheduling.","已发送到 Team Room":"Sent to Team Room",快捷命令:"Quick Commands",待办:"Todos","上下文: {used} / {max} tokens":"Context: {used} / {max} tokens","已使用: {used} tokens":"Used: {used} tokens",可用:"Available",不可用:"Unavailable",该类型暂无运行配置:"No runtime configuration is available for this type.","追加 Prompt":"Append Prompt","追加到每次 prompt 末尾的文本":"Text appended to the end of every prompt.",跳过权限确认:"Skip Permission Confirmation",模型:"Model",强制执行:"Force Execution",跳过所有确认和沙盒:"Skip All Confirmations and Sandbox",Profile:"Profile","~/.codex/config.toml 中的 profile 名称":"Profile name in ~/.codex/config.toml",是:"Yes",否:"No",覆盖:"Overwrite",跳过:"Skip","JSON 语法错误":"Invalid JSON syntax","TOML 语法错误: {message}":"Invalid TOML syntax: {message}","编辑 Provider":"Edit Provider","新建 Provider":"New Provider","例如: Claude Code (官方)":"e.g. Claude Code (Official)","Agent 类型":"Agent Type","选择 Agent 类型":"Select Agent Type","设为该类型的默认 Provider":"Set as the default provider for this agent type",运行配置:"Runtime Configuration",环境变量:"Environment Variables","注入到 Agent 进程的环境变量。Codex 的":"Environment variables injected into the agent process. Codex","指定的是变量名,实际值需在此处设置。":"specifies the variable name in env_key, and the actual value must be set here.","变量名,如 AZURE_OPENAI_API_KEY":"Variable name, e.g. AZURE_OPENAI_API_KEY",值:"Value",添加变量:"Add Variable","CLI 原生配置 (config.toml)":"Native CLI Config (config.toml)","CLI 原生配置 (settings.json)":"Native CLI Config (settings.json)","直接填写 Codex":"Enter a Codex","格式的配置片段,通过":"configuration snippet directly and inject it via","参数注入。不会修改你的":". It will not modify your","文件。":"file.","对应 Claude Code 的":"This corresponds to Claude Code",通过:"and is injected through","参数注入。在":". Configure","中设置 ANTHROPIC_API_KEY、ANTHROPIC_BASE_URL 等。":"inside env, such as ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL.","导出 Provider 备份":"Export Provider Backup","导出中...":"Exporting...",导出备份:"Export Backup","导出的备份文件将包含完整的 Provider 配置,包括环境变量、CLI settings 等敏感信息。任何拿到文件的人都可能直接使用这些 Provider。":"The exported backup file contains the full provider configuration, including sensitive information such as environment variables and CLI settings. Anyone with this file may be able to use those providers directly.","这个功能用于备份和迁移,不用于分享配置。":"This feature is for backup and migration, not for sharing configuration.","导出内容只包含用户层配置:自定义 Provider,以及对内置 Provider 的覆盖。":"The export only contains user-level configuration: custom providers and overrides of built-in providers.","我已知晓该备份文件包含敏感信息,只会保存在安全位置。":"I understand that this backup contains sensitive information and will only store it in a secure location.","导入 Provider 备份":"Import Provider Backup","导入中...":"Importing...","确认导入 {count} 项":"Import {count} item(s)","导出时间:{value}":"Exported at: {value}","模式:完整备份(含敏感信息)":"Mode: Full backup (contains sensitive data)","文件内 Provider 数量:{count}":"Providers in file: {count}","将覆盖当前已有的 Provider:{name}":"This will overwrite the existing provider: {name}","当前同 ID Provider 配置一致,本次不会重复写入。":"The provider with the same ID is already identical. It will not be written again.","当前不存在同 ID Provider,将直接新增。":"No provider with the same ID exists. It will be created directly.","系统内置 Provider 不可删除":"Built-in providers cannot be deleted.","已恢复默认 Provider 配置":"Default provider configuration restored.","Provider 已删除":"Provider deleted.","删除 Provider 失败":"Failed to delete provider.","Provider 备份已导出":"Provider backup exported.","导出 Provider 备份失败":"Failed to export provider backup.","备份文件不是有效的 JSON":"The backup file is not valid JSON.",导入预览失败:"Failed to preview import.","导入完成,当前配置无需变更":"Import complete. No changes were needed.","导入完成:新增 {create},覆盖 {overwrite},跳过 {skip}":"Import complete: created {create}, overwritten {overwrite}, skipped {skip}","导入 Provider 备份失败":"Failed to import provider backup.","Provider 配置":"Provider Configuration","管理 AI Agent 的连接配置和运行参数":"Manage AI agent connection settings and runtime parameters.",导入备份:"Import Backup","暂无 Provider 配置":"No providers configured yet.",默认:"Default","CLI 配置:":"CLI Config:",已配置:"Configured","环境变量:":"Environment Variables:",编辑:"Edit",删除自定义覆盖并恢复默认:"Delete custom override and restore default","恢复默认 Provider":"Restore Default Provider",'确定删除 "{name}" 的自定义覆盖,并恢复系统默认配置?':'Delete the custom override for "{name}" and restore the system default configuration?','确定删除 "{name}"?此操作不可撤销。':'Delete "{name}"? This action cannot be undone.',恢复默认:"Restore Default","{count} 个未提交变更":"{count} uncommitted changes","{count} 个冲突文件":"{count} conflicted files",变基进行中:"Rebase in progress",合并进行中:"Merge in progress","领先 {count} 个提交":"{count} commits ahead","落后 {count} 个提交":"{count} commits behind",已是最新:"Up to date","工作区有未提交的变更,请先让 Agent 提交或手动处理后再执行 Rebase / Merge 操作。":"The workspace has uncommitted changes. Ask the agent to commit them or handle them manually before running Rebase / Merge.",变基失败:"Rebase failed",合并失败:"Merge failed",确认合并:"Confirm Merge","加载分支状态...":"Loading branch status...","变基中...":"Rebasing...","变基 (Rebase)":"Rebase","将当前分支变基到最新的 {targetBranch}":"Rebase the current branch onto the latest {targetBranch}","合并 (Merge)":"Merge","合并中...":"Merging...","Squash merge 到 {targetBranch}":"Squash merge into {targetBranch}",提交消息:"Commit Message","输入提交消息...":"Enter commit message...",留空将使用默认消息:"Leave blank to use the default message.","Git Commit Message":"Git Commit Message","配置自动生成 commit message 时使用的 Agent 渠道和提示词。":"Configure the agent provider and prompt used for auto-generating commit messages.","Agent 渠道":"Agent Provider",跟随任务:"Follow Task",'"跟随任务"表示使用当前任务所用的 Agent 渠道。选择具体渠道可使用更经济的模型。':'"Follow Task" uses the same provider as the current task. Select a specific provider to use a more cost-effective model.',提示词模板:"Prompt Template","自定义生成 commit message 的提示词。留空则使用内置默认模板。":"Custom prompt for generating commit messages. Leave empty to use the built-in default template.",保存失败:"Save failed",已保存:"Saved",已创建:"Created",创建:"Create",单人:"Solo",团队:"Team",团队协作:"Team Collaboration",团队协作设置:"Team Collaboration Settings","管理成员预设与团队模板。":"Manage member presets and team templates.",成员预设:"Member Presets",团队模板:"Team Templates","点击列表项可编辑。":"Click an item to edit it.",当前没有成员预设:"No member presets yet.",当前没有团队模板:"No team templates yet.",创建新成员预设:"Create a new member preset",编辑成员预设:"Edit member preset",创建新团队模板:"Create a new team template",编辑团队模板:"Edit team template",成员预设名称:"Member preset name",成员预设别名:"Member preset aliases",成员预设头像:"Member preset avatar",成员预设角色提示词:"Member preset role prompt",团队模板名称:"Team template name",别名:"Aliases",头像:"Avatar",角色提示词:"Role Prompt",可用能力:"Capabilities",工作区策略:"Workspace Policy",触发策略:"Trigger Policy",共享:"Shared",独占:"Dedicated",仅提及:"Mention only",所有用户消息:"All user messages",读房间:"Read room",发房间消息:"Post room message",提及成员:"Mention members",停止成员工作:"Stop member work",标记可审查:"Mark ready for review",读文件:"Read files",写文件:"Write files",运行命令:"Run commands","读 diff":"Read diff",合并工作区:"Merge workspace","{count} 个成员":"{count} member(s)","Provider 列表加载失败":"Failed to load providers","Provider 列表加载失败,无法创建或修改成员预设。":"Failed to load providers. Member presets cannot be created or updated.",成员预设加载失败:"Failed to load member presets",团队模板加载失败:"Failed to load team templates","请稍后重试。":"Please try again later.",重试:"Retry","暂无可用 Provider,请先在 Agent 配置中创建。":"No available provider. Create one in Agent Settings first.","alice, a, reviewer":"alice, a, reviewer","选择顺序即保存顺序。":"Selection order is the saved order.",已选成员:"Selected Members","上移下移后即为保存顺序。":"Use up/down to change the saved order.",尚未选择成员预设:"No member presets selected yet.","先创建成员预设,再配置团队模板。":"Create member presets first, then configure a team template.",删除失败:"Delete failed",上移:"Move up",下移:"Move down","创建 TeamRun":"Create TeamRun",TeamRun:"TeamRun",模式:"Mode",执行模式:"Execution mode","TeamRun 模式":"TeamRun mode",确认模式:"Confirm mode",自动模式:"Auto mode","默认使用自动模式,团队消息会直接排队执行。":"Auto mode is the default. Team messages are queued for execution directly.","模板成员会先加入,随后按顺序追加所选成员。":"Template members are added first, then the selected members are appended in order.","请选择至少一个团队模板或成员预设。":"Select at least one team template or member preset.","该任务已经存在 TeamRun。请刷新后再试。":"This task already has a TeamRun. Refresh and try again.","创建 TeamRun 失败":"Failed to create TeamRun","TeamRun 创建失败,请检查团队配置后重试":"TeamRun creation failed. Please check team config and retry.","前往 /settings/team 创建":"Go to /settings/team to create one","欢迎使用 Agent Tower":"Welcome to Agent Tower","需要我帮你做点什么?":"What can I help you with?","描述任务,选择 Agent 或团队,即刻开始":"Describe a task, pick an Agent or team, and start right away","描述一个任务,AI Agent 将为你开始工作":"Describe a task and an AI agent will start working on it.","TeamRun 协作配置":"TeamRun Configuration",团队协作配置:"Team Collaboration Config","切换回单 Agent":"Switch to Solo Agent",追加成员:"Additional Members","{count} 个追加成员":"{count} additional member(s)",去创建:"Create",请选择团队模板或追加成员:"Select a team template or add members",收起:"Collapse","没有可用项目,请先创建或恢复项目":"No available projects. Please create or restore a project first.","任务已创建,但启动 Agent 失败,可在详情中重试":"Task created, but failed to start Agent. You can retry from the task detail.",冲突:"Conflict",变基中:"Rebasing",合并中:"Merging","{count} 未提交":"{count} uncommitted","落后 {count}":"Behind {count}",可合并:"Mergeable",查看变更详情:"View changes","分支落后 {count} 个提交,建议先执行变基 (Rebase) 同步最新代码。":"The branch is {count} commits behind. Consider rebasing to sync the latest code.","合并到 {target}":"Merge into {target}",需要先变基同步最新代码:"Rebase required to sync latest code",请先处理未提交变更:"Handle uncommitted changes first","中止中...":"Aborting...","正在检查工作区状态...":"Checking workspace status...",当前分支还没有任何变更:"No changes on this branch yet",调整工作区宽度:"Resize workspace panel","{files} 个文件 · {lines} 行":"{files} files · {lines} lines",更新:"Update",合并:"Merge","{count} 个本地改动未处理,需要先整理后再继续":"{count} local changes pending — clean them up before continuing","{count} 个文件存在冲突,需要处理后继续":"{count} files have conflicts — resolve them to continue","正在同步源分支更新...":"Syncing updates from source branch...","正在提交变更...":"Submitting changes...","源分支 {branch} 有 {count} 个更新":"Source branch {branch} has {count} updates","{count} 个文件变更,可以安全提交":"{count} file changes, safe to submit",同步更新:"Sync updates","正在同步...":"Syncing...",提交变更:"Submit changes",需要先同步源分支更新:"Sync source branch updates first","更新失败,请稍后重试":"Update failed. Please try again later.","提交失败,请稍后重试":"Submit failed. Please try again later.","正在提交...":"Submitting...",确认提交:"Confirm Submit",请描述本次修改的内容:"Describe the changes in this submission","建议以 feat、fix、docs、refactor、chore 开头,保持提交记录清晰。feat 新增功能,fix 修复问题,docs 文档更新,refactor 代码重构,chore 日常维护。":"Start with feat (new feature), fix (bug fix), docs (documentation), refactor (restructure), or chore (maintenance) to keep the history clean.",需要先处理本地改动:"Handle local changes first",处理冲突:"Resolve conflicts","正在撤销...":"Undoing...",撤销操作:"Undo operation",确认后会停止当前工作并取消队列:"Confirming will stop the current work and clear the queue",每次新会话:"New session per request",复用上次会话:"Resume last session",仅自己队列:"Own queue only",全队列待处理:"Team pending queue",代码审查:"Review","{count} 个文件":"{count} files",未选择工作区:"No workspace selected",没有可显示的差异内容:"No diff content available","还有 {count} 行变更被折叠,点击展开全部":"{count} more lines collapsed — click to expand all","正在加载差异...":"Loading diff...",差异加载失败:"Failed to load diff",变更加载失败:"Failed to load changes",没有匹配筛选条件的文件:"No files match the filter",该提交没有文件变更:"No file changes in this commit",没有待审查的变更:"No changes to review",未提交:"Uncommitted",已提交:"Committed","筛选文件...":"Filter files...",无匹配文件:"No matching files",暂无变更文件:"No changed files",提交记录:"Commits",全部变更:"All changes","正在加载提交记录...":"Loading commits...",暂无提交记录:"No commits yet",加载更多提交:"Load more commits","正在加载...":"Loading..."}},Iy=T.createContext(null);function ox(n){return n?n==="en"?"en":n==="zh-CN"?"zh-CN":null:null}function ux(){return typeof navigator>"u"||navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en"}function cx(n,i){if(!i)return n;let l=n;for(const[s,c]of Object.entries(i))l=l.replaceAll(`{${s}}`,String(c??""));return l}let Sf="zh-CN";function $y(n,i,l){const s=sx[n][i]??i;return cx(s,l)}function fx(n,i){return $y(Sf,n,i)}function dx({children:n}){const i=T.useRef(ux()),[l,s]=T.useState(i.current),{data:c}=rx(),f=lx(),d=T.useRef(!1),p=T.useCallback(b=>{Sf=b,s(b),document.documentElement.lang=b},[]);T.useEffect(()=>{const b=ox(c?.locale)??i.current;p(b),c&&c.locale===null&&!d.current&&(d.current=!0,f.mutate({locale:b}))},[c,p,f]);const g=T.useCallback(b=>{const y=Sf;p(b),f.mutate({locale:b},{onError:()=>{p(y),KS.error(fx("语言设置保存失败"))}})},[p,f]),m=T.useMemo(()=>({locale:l,setLocale:g,t:(b,y)=>$y(l,b,y)}),[l,g]);return Q.jsx(Iy.Provider,{value:m,children:n})}function Pf(){const n=T.useContext(Iy);if(!n)throw new Error("useI18n must be used within I18nProvider");return n}function Wy(n){var i,l,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(i=0;i<c;i++)n[i]&&(l=Wy(n[i]))&&(s&&(s+=" "),s+=l)}else for(l in n)n[l]&&(s&&(s+=" "),s+=l);return s}function ev(){for(var n,i,l=0,s="",c=arguments.length;l<c;l++)(n=arguments[l])&&(i=Wy(n))&&(s&&(s+=" "),s+=i);return s}const hx=(n,i)=>{const l=new Array(n.length+i.length);for(let s=0;s<n.length;s++)l[s]=n[s];for(let s=0;s<i.length;s++)l[n.length+s]=i[s];return l},mx=(n,i)=>({classGroupId:n,validator:i}),tv=(n=new Map,i=null,l)=>({nextPart:n,validators:i,classGroupId:l}),Do="-",Bg=[],px="arbitrary..",gx=n=>{const i=vx(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return yx(d);const p=d.split(Do),g=p[0]===""&&p.length>1?1:0;return nv(p,g,i)},getConflictingClassGroupIds:(d,p)=>{if(p){const g=s[d],m=l[d];return g?m?hx(m,g):g:m||Bg}return l[d]||Bg}}},nv=(n,i,l)=>{if(n.length-i===0)return l.classGroupId;const c=n[i],f=l.nextPart.get(c);if(f){const m=nv(n,i+1,f);if(m)return m}const d=l.validators;if(d===null)return;const p=i===0?n.join(Do):n.slice(i).join(Do),g=d.length;for(let m=0;m<g;m++){const b=d[m];if(b.validator(p))return b.classGroupId}},yx=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),l=i.indexOf(":"),s=i.slice(0,l);return s?px+s:void 0})(),vx=n=>{const{theme:i,classGroups:l}=n;return bx(l,i)},bx=(n,i)=>{const l=tv();for(const s in n){const c=n[s];Ff(c,l,s,i)}return l},Ff=(n,i,l,s)=>{const c=n.length;for(let f=0;f<c;f++){const d=n[f];Sx(d,i,l,s)}},Sx=(n,i,l,s)=>{if(typeof n=="string"){wx(n,i,l);return}if(typeof n=="function"){Ex(n,i,l,s);return}xx(n,i,l,s)},wx=(n,i,l)=>{const s=n===""?i:av(i,n);s.classGroupId=l},Ex=(n,i,l,s)=>{if(Tx(n)){Ff(n(s),i,l,s);return}i.validators===null&&(i.validators=[]),i.validators.push(mx(l,n))},xx=(n,i,l,s)=>{const c=Object.entries(n),f=c.length;for(let d=0;d<f;d++){const[p,g]=c[d];Ff(g,av(i,p),l,s)}},av=(n,i)=>{let l=n;const s=i.split(Do),c=s.length;for(let f=0;f<c;f++){const d=s[f];let p=l.nextPart.get(d);p||(p=tv(),l.nextPart.set(d,p)),l=p}return l},Tx=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,Rx=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),s=Object.create(null);const c=(f,d)=>{l[f]=d,i++,i>n&&(i=0,s=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=s[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},wf="!",qg=":",_x=[],Hg=(n,i,l,s,c)=>({modifiers:n,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:s,isExternal:c}),Cx=n=>{const{prefix:i,experimentalParseClassName:l}=n;let s=c=>{const f=[];let d=0,p=0,g=0,m;const b=c.length;for(let j=0;j<b;j++){const K=c[j];if(d===0&&p===0){if(K===qg){f.push(c.slice(g,j)),g=j+1;continue}if(K==="/"){m=j;continue}}K==="["?d++:K==="]"?d--:K==="("?p++:K===")"&&p--}const y=f.length===0?c:c.slice(g);let E=y,M=!1;y.endsWith(wf)?(E=y.slice(0,-1),M=!0):y.startsWith(wf)&&(E=y.slice(1),M=!0);const U=m&&m>g?m-g:void 0;return Hg(f,M,E,U)};if(i){const c=i+qg,f=s;s=d=>d.startsWith(c)?f(d.slice(c.length)):Hg(_x,!1,d,void 0,!0)}if(l){const c=s;s=f=>l({className:f,parseClassName:c})}return s},Ax=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((l,s)=>{i.set(l,1e6+s)}),l=>{const s=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],p=d[0]==="[",g=i.has(d);p||g?(c.length>0&&(c.sort(),s.push(...c),c=[]),s.push(d)):c.push(d)}return c.length>0&&(c.sort(),s.push(...c)),s}},Ox=n=>({cache:Rx(n.cacheSize),parseClassName:Cx(n),sortModifiers:Ax(n),...gx(n)}),Mx=/\s+/,Dx=(n,i)=>{const{parseClassName:l,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:f}=i,d=[],p=n.trim().split(Mx);let g="";for(let m=p.length-1;m>=0;m-=1){const b=p[m],{isExternal:y,modifiers:E,hasImportantModifier:M,baseClassName:U,maybePostfixModifierPosition:j}=l(b);if(y){g=b+(g.length>0?" "+g:g);continue}let K=!!j,G=s(K?U.substring(0,j):U);if(!G){if(!K){g=b+(g.length>0?" "+g:g);continue}if(G=s(U),!G){g=b+(g.length>0?" "+g:g);continue}K=!1}const J=E.length===0?"":E.length===1?E[0]:f(E).join(":"),$=M?J+wf:J,ye=$+G;if(d.indexOf(ye)>-1)continue;d.push(ye);const he=c(G,K);for(let me=0;me<he.length;++me){const C=he[me];d.push($+C)}g=b+(g.length>0?" "+g:g)}return g},Nx=(...n)=>{let i=0,l,s,c="";for(;i<n.length;)(l=n[i++])&&(s=iv(l))&&(c&&(c+=" "),c+=s);return c},iv=n=>{if(typeof n=="string")return n;let i,l="";for(let s=0;s<n.length;s++)n[s]&&(i=iv(n[s]))&&(l&&(l+=" "),l+=i);return l},kx=(n,...i)=>{let l,s,c,f;const d=g=>{const m=i.reduce((b,y)=>y(b),n());return l=Ox(m),s=l.cache.get,c=l.cache.set,f=p,p(g)},p=g=>{const m=s(g);if(m)return m;const b=Dx(g,l);return c(g,b),b};return f=d,(...g)=>f(Nx(...g))},zx=[],Ut=n=>{const i=l=>l[n]||zx;return i.isThemeGetter=!0,i},rv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ux=/^\d+\/\d+$/,Lx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jx=/\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$/,Bx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mr=n=>Ux.test(n),ze=n=>!!n&&!Number.isNaN(Number(n)),ui=n=>!!n&&Number.isInteger(Number(n)),ef=n=>n.endsWith("%")&&ze(n.slice(0,-1)),La=n=>Lx.test(n),Qx=()=>!0,Vx=n=>jx.test(n)&&!Bx.test(n),sv=()=>!1,Yx=n=>qx.test(n),Gx=n=>Hx.test(n),Kx=n=>!le(n)&&!se(n),Xx=n=>jr(n,cv,sv),le=n=>rv.test(n),Vi=n=>jr(n,fv,Vx),tf=n=>jr(n,Ix,ze),Qg=n=>jr(n,ov,sv),Px=n=>jr(n,uv,Gx),mo=n=>jr(n,dv,Yx),se=n=>lv.test(n),zl=n=>Br(n,fv),Fx=n=>Br(n,$x),Vg=n=>Br(n,ov),Zx=n=>Br(n,cv),Jx=n=>Br(n,uv),po=n=>Br(n,dv,!0),jr=(n,i,l)=>{const s=rv.exec(n);return s?s[1]?i(s[1]):l(s[2]):!1},Br=(n,i,l=!1)=>{const s=lv.exec(n);return s?s[1]?i(s[1]):l:!1},ov=n=>n==="position"||n==="percentage",uv=n=>n==="image"||n==="url",cv=n=>n==="length"||n==="size"||n==="bg-size",fv=n=>n==="length",Ix=n=>n==="number",$x=n=>n==="family-name",dv=n=>n==="shadow",Wx=()=>{const n=Ut("color"),i=Ut("font"),l=Ut("text"),s=Ut("font-weight"),c=Ut("tracking"),f=Ut("leading"),d=Ut("breakpoint"),p=Ut("container"),g=Ut("spacing"),m=Ut("radius"),b=Ut("shadow"),y=Ut("inset-shadow"),E=Ut("text-shadow"),M=Ut("drop-shadow"),U=Ut("blur"),j=Ut("perspective"),K=Ut("aspect"),G=Ut("ease"),J=Ut("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],he=()=>[...ye(),se,le],me=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],Y=()=>[se,le,g],oe=()=>[Mr,"full","auto",...Y()],Ae=()=>[ui,"none","subgrid",se,le],Ce=()=>["auto",{span:["full",ui,se,le]},ui,se,le],Te=()=>[ui,"auto",se,le],Ue=()=>["auto","min","max","fr",se,le],Le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],we=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...Y()],F=()=>[Mr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],q=()=>[n,se,le],ge=()=>[...ye(),Vg,Qg,{position:[se,le]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],x=()=>["auto","cover","contain",Zx,Xx,{size:[se,le]}],H=()=>[ef,zl,Vi],B=()=>["","none","full",m,se,le],Z=()=>["",ze,zl,Vi],te=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[ze,ef,Vg,Qg],Re=()=>["","none",U,se,le],Ve=()=>["none",ze,se,le],Ht=()=>["none",ze,se,le],$t=()=>[ze,se,le],Je=()=>[Mr,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[La],breakpoint:[La],color:[Qx],container:[La],"drop-shadow":[La],ease:["in","out","in-out"],font:[Kx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[La],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[La],shadow:[La],spacing:["px",ze],text:[La],"text-shadow":[La],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mr,le,se,K]}],container:["container"],columns:[{columns:[ze,le,se,p]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:he()}],overflow:[{overflow:me()}],"overflow-x":[{"overflow-x":me()}],"overflow-y":[{"overflow-y":me()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:oe()}],"inset-x":[{"inset-x":oe()}],"inset-y":[{"inset-y":oe()}],start:[{start:oe()}],end:[{end:oe()}],top:[{top:oe()}],right:[{right:oe()}],bottom:[{bottom:oe()}],left:[{left:oe()}],visibility:["visible","invisible","collapse"],z:[{z:[ui,"auto",se,le]}],basis:[{basis:[Mr,"full","auto",p,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,Mr,"auto","initial","none",le]}],grow:[{grow:["",ze,se,le]}],shrink:[{shrink:["",ze,se,le]}],order:[{order:[ui,"first","last","none",se,le]}],"grid-cols":[{"grid-cols":Ae()}],"col-start-end":[{col:Ce()}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":Ae()}],"row-start-end":[{row:Ce()}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ue()}],"auto-rows":[{"auto-rows":Ue()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...Le(),"normal"]}],"justify-items":[{"justify-items":[...we(),"normal"]}],"justify-self":[{"justify-self":["auto",...we()]}],"align-content":[{content:["normal",...Le()]}],"align-items":[{items:[...we(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...we(),{baseline:["","last"]}]}],"place-content":[{"place-content":Le()}],"place-items":[{"place-items":[...we(),"baseline"]}],"place-self":[{"place-self":["auto",...we()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[p,"screen",...F()]}],"min-w":[{"min-w":[p,"screen","none",...F()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",l,zl,Vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,se,tf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ef,le]}],"font-family":[{font:[Fx,le,i]}],"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,se,le]}],"line-clamp":[{"line-clamp":[ze,"none",se,tf]}],leading:[{leading:[f,...Y()]}],"list-image":[{"list-image":["none",se,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",se,Vi]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[ze,"auto",se,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,le]}],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",se,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:x()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ui,se,le],radial:["",se,le],conic:[ui,se,le]},Jx,Px]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,se,le]}],"outline-w":[{outline:["",ze,zl,Vi]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",b,po,mo]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",y,po,mo]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[ze,Vi]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",E,po,mo]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[ze,se,le]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"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":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[se,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"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":ye()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:x()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,le]}],filter:[{filter:["","none",se,le]}],blur:[{blur:Re()}],brightness:[{brightness:[ze,se,le]}],contrast:[{contrast:[ze,se,le]}],"drop-shadow":[{"drop-shadow":["","none",M,po,mo]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",ze,se,le]}],"hue-rotate":[{"hue-rotate":[ze,se,le]}],invert:[{invert:["",ze,se,le]}],saturate:[{saturate:[ze,se,le]}],sepia:[{sepia:["",ze,se,le]}],"backdrop-filter":[{"backdrop-filter":["","none",se,le]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[ze,se,le]}],"backdrop-contrast":[{"backdrop-contrast":[ze,se,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,se,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,se,le]}],"backdrop-invert":[{"backdrop-invert":["",ze,se,le]}],"backdrop-opacity":[{"backdrop-opacity":[ze,se,le]}],"backdrop-saturate":[{"backdrop-saturate":[ze,se,le]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,se,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",se,le]}],ease:[{ease:["linear","initial",G,se,le]}],delay:[{delay:[ze,se,le]}],animate:[{animate:["none",J,se,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,se,le]}],"perspective-origin":[{"perspective-origin":he()}],rotate:[{rotate:Ve()}],"rotate-x":[{"rotate-x":Ve()}],"rotate-y":[{"rotate-y":Ve()}],"rotate-z":[{"rotate-z":Ve()}],scale:[{scale:Ht()}],"scale-x":[{"scale-x":Ht()}],"scale-y":[{"scale-y":Ht()}],"scale-z":[{"scale-z":Ht()}],"scale-3d":["scale-3d"],skew:[{skew:$t()}],"skew-x":[{"skew-x":$t()}],"skew-y":[{"skew-y":$t()}],transform:[{transform:[se,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:he()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Je()}],"translate-x":[{"translate-x":Je()}],"translate-y":[{"translate-y":Je()}],"translate-z":[{"translate-z":Je()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"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",se,le]}],"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":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"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",se,le]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[ze,zl,Vi,tf]}],stroke:[{stroke:["none",...q()]}],"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"]}},eT=kx(Wx);function mn(...n){return eT(ev(n))}function nf(n){let i=0;for(const l of n){const s=l.codePointAt(0);s>=19968&&s<=40959||s>=13312&&s<=19903||s>=65280&&s<=65376||s>=12288&&s<=12351?i+=2:i+=1}return i}function QR(n,i){if(nf(n)<=i)return n;const l=i-1,s=Math.ceil(l/2),c=Math.floor(l/2);let f="",d=0;for(const b of n){const y=nf(b);if(d+y>s)break;f+=b,d+=y}const p=[...n];let g="",m=0;for(let b=p.length-1;b>=0;b--){const y=nf(p[b]);if(m+y>c)break;g=p[b]+g,m+=y}return f+"…"+g}let zr=0;function tT(){zr++,zr===1&&(document.body.style.overflow="hidden")}function Yg(){zr=Math.max(0,zr-1),zr===0&&(document.body.style.overflow="")}function nT(){return zr}const Gg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Kg=ev,aT=(n,i)=>l=>{var s;if(i?.variants==null)return Kg(n,l?.class,l?.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(m=>{const b=l?.[m],y=f?.[m];if(b===null)return null;const E=Gg(b)||Gg(y);return c[m][E]}),p=l&&Object.entries(l).reduce((m,b)=>{let[y,E]=b;return E===void 0||(m[y]=E),m},{}),g=i==null||(s=i.compoundVariants)===null||s===void 0?void 0:s.reduce((m,b)=>{let{class:y,className:E,...M}=b;return Object.entries(M).every(U=>{let[j,K]=U;return Array.isArray(K)?K.includes({...f,...p}[j]):{...f,...p}[j]===K})?[...m,y,E]:m},[]);return Kg(n,d,g,l?.class,l?.className)};function Xg(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function iT(...n){return i=>{let l=!1;const s=n.map(c=>{const f=Xg(c,i);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<s.length;c++){const f=s[c];typeof f=="function"?f():Xg(n[c],null)}}}}function rT(n){const i=sT(n),l=T.forwardRef((s,c)=>{const{children:f,...d}=s,p=T.Children.toArray(f),g=p.find(uT);if(g){const m=g.props.children,b=p.map(y=>y===g?T.Children.count(m)>1?T.Children.only(null):T.isValidElement(m)?m.props.children:null:y);return Q.jsx(i,{...d,ref:c,children:T.isValidElement(m)?T.cloneElement(m,void 0,b):null})}return Q.jsx(i,{...d,ref:c,children:f})});return l.displayName=`${n}.Slot`,l}var lT=rT("Slot");function sT(n){const i=T.forwardRef((l,s)=>{const{children:c,...f}=l;if(T.isValidElement(c)){const d=fT(c),p=cT(f,c.props);return c.type!==T.Fragment&&(p.ref=s?iT(s,d):d),T.cloneElement(c,p)}return T.Children.count(c)>1?T.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var oT=Symbol("radix.slottable");function uT(n){return T.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===oT}function cT(n,i){const l={...i};for(const s in i){const c=n[s],f=i[s];/^on[A-Z]/.test(s)?c&&f?l[s]=(...p)=>{const g=f(...p);return c(...p),g}:c&&(l[s]=c):s==="style"?l[s]={...c,...f}:s==="className"&&(l[s]=[c,f].filter(Boolean).join(" "))}return{...n,...l}}function fT(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning;return l?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}const dT=aT("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-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-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Pg({className:n,variant:i="default",size:l="default",asChild:s=!1,...c}){const f=s?lT:"button";return Q.jsx(f,{"data-slot":"button","data-variant":i,"data-size":l,className:mn(dT({variant:i,size:l,className:n})),...c})}function _t({className:n,...i}){return Q.jsx("div",{"data-slot":"skeleton","aria-hidden":"true",className:mn("animate-pulse rounded-md bg-muted motion-reduce:animate-none",n),...i})}function hT({children:n,className:i}){return Q.jsx("div",{className:mn("mx-auto w-full max-w-4xl px-5 py-5 sm:px-8 sm:py-6",i),children:n})}function VR({title:n,description:i,actions:l,className:s}){return Q.jsxs("div",{className:mn("mb-5 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",s),children:[Q.jsxs("div",{className:"min-w-0",children:[Q.jsx("h2",{className:"text-xl font-semibold tracking-tight text-foreground",children:n}),i&&Q.jsx("p",{className:"mt-1 text-[13px] leading-relaxed text-muted-foreground",children:i})]}),l&&Q.jsx("div",{className:"flex flex-wrap items-center gap-2 shrink-0",children:l})]})}function YR({children:n,className:i}){return Q.jsx("h3",{className:mn("text-[12px] font-semibold uppercase tracking-wide text-muted-foreground",i),children:n})}function GR({label:n,description:i,icon:l,children:s,align:c="start",controlWidth:f="fixed",className:d}){return Q.jsxs("div",{className:mn("flex flex-col gap-3 py-5 sm:flex-row sm:justify-between sm:gap-8",c==="center"?"sm:items-center":"sm:items-start",d),children:[Q.jsxs("div",{className:"flex min-w-0 items-start gap-3 sm:max-w-[360px]",children:[l&&Q.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground","aria-hidden":"true",children:Q.jsx(l,{size:15})}),Q.jsxs("div",{className:"min-w-0",children:[Q.jsx("div",{className:"text-[13px] font-medium text-foreground",children:n}),i&&Q.jsx("p",{className:"mt-0.5 text-xs leading-relaxed text-muted-foreground",children:i})]})]}),Q.jsx("div",{className:mn("shrink-0",f==="fixed"?"w-full sm:w-[260px]":"w-auto"),children:s})]})}function KR({label:n,description:i,children:l,className:s,htmlFor:c}){return Q.jsxs("div",{className:mn("space-y-1.5",s),children:[Q.jsxs("div",{children:[Q.jsx("label",{htmlFor:c,className:"block text-[13px] font-medium text-foreground",children:n}),i&&Q.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground",children:i})]}),l]})}function XR({icon:n,message:i,action:l,className:s}){return Q.jsxs("div",{className:mn("rounded-xl border border-dashed border-border bg-muted/30 py-14 text-center",s),children:[n&&Q.jsx(n,{size:48,strokeWidth:1.25,className:"mx-auto mb-3 text-muted-foreground/40","aria-hidden":"true"}),Q.jsx("p",{className:"text-sm text-muted-foreground",children:i}),l&&Q.jsx("div",{className:"mt-4 flex justify-center",children:l})]})}function PR({saving:n,onSave:i,onCancel:l,className:s}){const{t:c}=Pf();return Q.jsx("div",{className:mn("sticky bottom-0 z-10 -mx-5 border-t border-border/60 bg-background/90 px-5 py-3 backdrop-blur sm:-mx-8 sm:px-8",s),children:Q.jsxs("div",{className:"flex items-center justify-between gap-3",children:[Q.jsx("span",{className:"text-xs text-muted-foreground",children:c("有未保存的更改")}),Q.jsxs("div",{className:"flex items-center gap-2",children:[l&&Q.jsx(Pg,{size:"sm",variant:"ghost",onClick:l,disabled:n,children:c("取消")}),Q.jsx(Pg,{size:"sm",onClick:i,disabled:n,children:c(n?"保存中...":"保存")})]})]})})}function mT({rows:n=3}){return Q.jsxs("div",{role:"status","aria-label":"Loading",children:[Q.jsx(_t,{className:"h-7 w-36"}),Q.jsx("div",{className:"mt-6 divide-y divide-border/60",children:Array.from({length:n}).map((i,l)=>Q.jsxs("div",{className:"flex items-start justify-between gap-8 py-5",children:[Q.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[Q.jsx(_t,{className:"h-4 w-32"}),Q.jsx(_t,{className:"h-3 w-64 max-w-full"})]}),Q.jsx(_t,{className:"h-9 w-[260px] shrink-0 rounded-lg"})]},l))})]})}function FR(){return Q.jsxs("div",{role:"status","aria-label":"Loading",children:[Q.jsx(_t,{className:"h-7 w-36"}),Q.jsxs("div",{className:"mt-6 grid gap-5 lg:grid-cols-[240px_minmax(0,1fr)]",children:[Q.jsx("div",{className:"space-y-1",children:Array.from({length:5}).map((n,i)=>Q.jsxs("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",children:[Q.jsx(_t,{className:"h-2 w-2 rounded-full"}),Q.jsxs("div",{className:"flex-1 space-y-1.5",children:[Q.jsx(_t,{className:"h-3.5 w-3/4"}),Q.jsx(_t,{className:"h-2.5 w-1/2"})]})]},i))}),Q.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[Q.jsxs("div",{className:"flex items-start justify-between gap-4",children:[Q.jsxs("div",{className:"space-y-2",children:[Q.jsx(_t,{className:"h-5 w-44"}),Q.jsx(_t,{className:"h-3 w-28"})]}),Q.jsx(_t,{className:"h-8 w-24 rounded-md"})]}),Q.jsxs("div",{className:"mt-8 space-y-3",children:[Q.jsx(_t,{className:"h-3 w-20"}),Q.jsx(_t,{className:"h-24 w-full rounded-lg"}),Q.jsx(_t,{className:"h-3 w-20"}),Q.jsx(_t,{className:"h-16 w-full rounded-lg"})]})]})]})]})}function ZR({cards:n=6}){return Q.jsxs("div",{role:"status","aria-label":"Loading",children:[Q.jsxs("div",{className:"flex items-center justify-between gap-4",children:[Q.jsx(_t,{className:"h-7 w-36"}),Q.jsx(_t,{className:"h-8 w-44 rounded-lg"})]}),Q.jsx("div",{className:"mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:n}).map((i,l)=>Q.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-border bg-card p-4",children:[Q.jsx(_t,{className:"h-10 w-10 shrink-0 rounded-full"}),Q.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[Q.jsx(_t,{className:"h-4 w-2/3"}),Q.jsx(_t,{className:"h-3 w-1/2"}),Q.jsx(_t,{className:"h-3 w-3/4"})]})]},l))})]})}const pT=T.lazy(()=>da(()=>import("./GeneralSettingsPage-DWKl6BHA.js"),__vite__mapDeps([0,1,2,3,4,5])).then(n=>({default:n.GeneralSettingsPage}))),gT=T.lazy(()=>da(()=>import("./ProviderSettingsPage-DQ_IDUUZ.js"),__vite__mapDeps([6,5,7,8,9,1,2,3,10,4,11,12,13,14,15,16])).then(n=>({default:n.ProviderSettingsPage}))),yT=T.lazy(()=>da(()=>import("./TeamSettingsPage-BHE2x82g.js"),__vite__mapDeps([17,7,8,1,2,3,18,5,13,19])).then(n=>({default:n.TeamSettingsPage}))),vT=T.lazy(()=>da(()=>import("./ProjectSettingsPage-CP3V8oAJ.js"),__vite__mapDeps([20,21,22,23,24,3,8,12,13,16])).then(n=>({default:n.ProjectSettingsPage}))),bT=T.lazy(()=>da(()=>import("./NotificationSettingsPage-C2KeYegv.js"),__vite__mapDeps([25,1,2,3,9,10,26,23,24])).then(n=>({default:n.NotificationSettingsPage}))),ST=T.lazy(()=>da(()=>import("./McpSettingsPage-BHEMUq7Z.js"),__vite__mapDeps([27,23,28,3])).then(n=>({default:n.McpSettingsPage}))),wT=T.lazy(()=>da(()=>import("./ProfileSettingsPage-CVOCVwVK.js"),__vite__mapDeps([29,30,8,7,9,4,31,2,15])).then(n=>({default:n.ProfileSettingsPage}))),Fg=[{id:"general",label:"通用",icon:PE},{id:"agents",label:"Agent 配置",icon:YE},{id:"team",label:"团队协作",icon:IE},{id:"projects",label:"项目配置",icon:KE},{id:"notifications",label:"通知",icon:qE},{id:"mcp",label:"MCP 配置",icon:QE}];function ET({tab:n}){switch(n){case"general":return Q.jsx(pT,{});case"agents":return Q.jsx(gT,{});case"team":return Q.jsx(yT,{});case"projects":return Q.jsx(vT,{});case"notifications":return Q.jsx(bT,{});case"mcp":return Q.jsx(ST,{});case"agents-legacy":return Q.jsx(wT,{})}}function xT(){return Q.jsx(hT,{children:Q.jsx(mT,{rows:3})})}function TT(){const{t:n}=Pf(),i=Bl(m=>m.settingsOpen),l=Bl(m=>m.settingsTab),s=Bl(m=>m.closeSettings),c=Bl(m=>m.setSettingsTab),[f,d]=T.useState(!1),p=T.useRef(!1),g=T.useRef(null);return T.useEffect(()=>{if(i)d(!0),p.current||(tT(),p.current=!0),requestAnimationFrame(()=>g.current?.focus());else{const m=setTimeout(()=>d(!1),200);return p.current&&(Yg(),p.current=!1),()=>clearTimeout(m)}},[i]),T.useEffect(()=>()=>{p.current&&(Yg(),p.current=!1)},[]),T.useEffect(()=>{if(!i)return;const m=b=>{b.key==="Escape"&&nT()===1&&s()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[i,s]),!f&&!i?null:Q.jsxs("div",{className:mn("fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6 transition-opacity duration-200 motion-reduce:transition-none",i?"opacity-100":"opacity-0 pointer-events-none"),children:[Q.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm",onClick:s,"aria-hidden":"true"}),Q.jsxs("div",{ref:g,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":n("设置"),className:mn("relative flex w-full max-w-[1100px] flex-col overflow-hidden rounded-2xl bg-background shadow-[0_12px_16px_-4px_rgba(36,36,36,0.08)] ring-1 ring-foreground/5 transform transition-all duration-200 outline-none motion-reduce:transition-none","h-[min(calc(100vh-1.5rem),840px)] sm:h-[min(calc(100vh-3rem),840px)]",i?"scale-100 translate-y-0":"scale-[0.97] translate-y-1"),children:[Q.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-border/60 bg-muted/40 px-5 py-3 sm:px-6",children:[Q.jsxs("div",{className:"flex items-center gap-2.5",children:[Q.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-lg bg-primary text-primary-foreground","aria-hidden":"true",children:Q.jsx(ZE,{size:14})}),Q.jsx("h2",{className:"text-[15px] font-semibold text-foreground",children:n("设置")})]}),Q.jsx("button",{onClick:s,"aria-label":n("取消"),className:"flex h-7 w-7 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",children:Q.jsx(WE,{size:15})})]}),Q.jsx("div",{className:"sm:hidden flex shrink-0 border-b border-border/60 bg-background overflow-x-auto scrollbar-none",role:"tablist",children:Fg.map(m=>Q.jsxs("button",{role:"tab","aria-selected":l===m.id,onClick:()=>c(m.id),className:mn("flex items-center gap-1.5 px-4 py-2.5 text-xs whitespace-nowrap transition-colors border-b-2 -mb-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset",l===m.id?"border-primary text-foreground font-medium":"border-transparent text-muted-foreground hover:text-foreground"),children:[Q.jsx(m.icon,{size:13,"aria-hidden":"true"}),Q.jsx("span",{children:n(m.label)})]},m.id))}),Q.jsxs("div",{className:"flex flex-1 min-h-0",children:[Q.jsx("nav",{"aria-label":n("设置"),className:"hidden sm:flex w-[180px] shrink-0 flex-col gap-0.5 border-r border-border/60 bg-muted/30 p-3 overflow-y-auto scrollbar-app-thin",children:Fg.map(m=>Q.jsxs("button",{"aria-current":l===m.id?"page":void 0,onClick:()=>c(m.id),className:mn("flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",l===m.id?"bg-background text-foreground font-medium shadow-[0_1px_2px_rgba(0,0,0,0.05)] ring-1 ring-foreground/[0.04]":"text-muted-foreground hover:text-foreground hover:bg-background/60"),children:[Q.jsx(m.icon,{size:15,className:"shrink-0","aria-hidden":"true"}),Q.jsx("span",{children:n(m.label)})]},m.id))}),Q.jsx("div",{className:"flex-1 min-w-0 overflow-y-auto scrollbar-app-thin bg-background",children:Q.jsx(T.Suspense,{fallback:Q.jsx(xT,{}),children:Q.jsx(ET,{tab:l})})})]})]})]})}function RT(){return Q.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[Q.jsx(Zw,{}),Q.jsx(TT,{})]})}const _T=T.lazy(()=>da(()=>import("./ProjectKanbanPage-J_5GxZQ7.js"),__vite__mapDeps([32,11,7,8,33,22,2,3,34,21,23,24,31,18,19,1,5,26,28,14,13,16,35])).then(n=>({default:n.ProjectKanbanPage}))),CT=T.lazy(()=>da(()=>import("./DemoPage-Xc4QRNUj.js"),[]).then(n=>({default:n.DemoPage}))),AT=T.lazy(()=>da(()=>import("./AgentDemoPage-DAdN5g19.js"),__vite__mapDeps([36,33,11,22,2,3,34,30,19])).then(n=>({default:n.AgentDemoPage})));function af(){const{t:n}=Pf();return Q.jsx("div",{className:"p-8",children:n("Loading...")})}const OT=new Set(["general","agents","team","projects","notifications","mcp","agents-legacy"]);function Zg(){const n=Qy(),{tab:i}=Cw();return T.useEffect(()=>{const l=i&&OT.has(i)?i:"general";Bl.getState().openSettings(l),n("/",{replace:!0})},[n,i]),null}const MT=SE([{path:"/",element:Q.jsx(RT,{}),children:[{index:!0,element:Q.jsx(T.Suspense,{fallback:Q.jsx(af,{}),children:Q.jsx(_T,{})})},{path:"demo",element:Q.jsx(T.Suspense,{fallback:Q.jsx(af,{}),children:Q.jsx(CT,{})})},{path:"agent-demo",element:Q.jsx(T.Suspense,{fallback:Q.jsx(af,{}),children:Q.jsx(AT,{})})},{path:"settings",element:Q.jsx(Zg,{})},{path:"settings/:tab",element:Q.jsx(Zg,{})}]}]);function DT(){return Q.jsx(NE,{router:MT})}const fa=Object.create(null);fa.open="0";fa.close="1";fa.ping="2";fa.pong="3";fa.message="4";fa.upgrade="5";fa.noop="6";const Eo=Object.create(null);Object.keys(fa).forEach(n=>{Eo[fa[n]]=n});const Ef={type:"error",data:"parser error"},hv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mv=typeof ArrayBuffer=="function",pv=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Zf=({type:n,data:i},l,s)=>hv&&i instanceof Blob?l?s(i):Jg(i,s):mv&&(i instanceof ArrayBuffer||pv(i))?l?s(i):Jg(new Blob([i]),s):s(fa[n]+(i||"")),Jg=(n,i)=>{const l=new FileReader;return l.onload=function(){const s=l.result.split(",")[1];i("b"+(s||""))},l.readAsDataURL(n)};function Ig(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let rf;function NT(n,i){if(hv&&n.data instanceof Blob)return n.data.arrayBuffer().then(Ig).then(i);if(mv&&(n.data instanceof ArrayBuffer||pv(n.data)))return i(Ig(n.data));Zf(n,!1,l=>{rf||(rf=new TextEncoder),i(rf.encode(l))})}const $g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ql=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<$g.length;n++)ql[$g.charCodeAt(n)]=n;const kT=n=>{let i=n.length*.75,l=n.length,s,c=0,f,d,p,g;n[n.length-1]==="="&&(i--,n[n.length-2]==="="&&i--);const m=new ArrayBuffer(i),b=new Uint8Array(m);for(s=0;s<l;s+=4)f=ql[n.charCodeAt(s)],d=ql[n.charCodeAt(s+1)],p=ql[n.charCodeAt(s+2)],g=ql[n.charCodeAt(s+3)],b[c++]=f<<2|d>>4,b[c++]=(d&15)<<4|p>>2,b[c++]=(p&3)<<6|g&63;return m},zT=typeof ArrayBuffer=="function",Jf=(n,i)=>{if(typeof n!="string")return{type:"message",data:gv(n,i)};const l=n.charAt(0);return l==="b"?{type:"message",data:UT(n.substring(1),i)}:Eo[l]?n.length>1?{type:Eo[l],data:n.substring(1)}:{type:Eo[l]}:Ef},UT=(n,i)=>{if(zT){const l=kT(n);return gv(l,i)}else return{base64:!0,data:n}},gv=(n,i)=>i==="blob"?n instanceof Blob?n:new Blob([n]):n instanceof ArrayBuffer?n:n.buffer,yv="",LT=(n,i)=>{const l=n.length,s=new Array(l);let c=0;n.forEach((f,d)=>{Zf(f,!1,p=>{s[d]=p,++c===l&&i(s.join(yv))})})},jT=(n,i)=>{const l=n.split(yv),s=[];for(let c=0;c<l.length;c++){const f=Jf(l[c],i);if(s.push(f),f.type==="error")break}return s};function BT(){return new TransformStream({transform(n,i){NT(n,l=>{const s=l.length;let c;if(s<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,s);else if(s<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,s)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(c[0]|=128),i.enqueue(c),i.enqueue(l)})}})}let lf;function go(n){return n.reduce((i,l)=>i+l.length,0)}function yo(n,i){if(n[0].length===i)return n.shift();const l=new Uint8Array(i);let s=0;for(let c=0;c<i;c++)l[c]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),l}function qT(n,i){lf||(lf=new TextDecoder);const l=[];let s=0,c=-1,f=!1;return new TransformStream({transform(d,p){for(l.push(d);;){if(s===0){if(go(l)<1)break;const g=yo(l,1);f=(g[0]&128)===128,c=g[0]&127,c<126?s=3:c===126?s=1:s=2}else if(s===1){if(go(l)<2)break;const g=yo(l,2);c=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),s=3}else if(s===2){if(go(l)<8)break;const g=yo(l,8),m=new DataView(g.buffer,g.byteOffset,g.length),b=m.getUint32(0);if(b>Math.pow(2,21)-1){p.enqueue(Ef);break}c=b*Math.pow(2,32)+m.getUint32(4),s=3}else{if(go(l)<c)break;const g=yo(l,c);p.enqueue(Jf(f?g:lf.decode(g),i)),s=0}if(c===0||c>n){p.enqueue(Ef);break}}}})}const vv=4;function Dt(n){if(n)return HT(n)}function HT(n){for(var i in Dt.prototype)n[i]=Dt.prototype[i];return n}Dt.prototype.on=Dt.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this};Dt.prototype.once=function(n,i){function l(){this.off(n,l),i.apply(this,arguments)}return l.fn=i,this.on(n,l),this};Dt.prototype.off=Dt.prototype.removeListener=Dt.prototype.removeAllListeners=Dt.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var l=this._callbacks["$"+n];if(!l)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,c=0;c<l.length;c++)if(s=l[c],s===i||s.fn===i){l.splice(c,1);break}return l.length===0&&delete this._callbacks["$"+n],this};Dt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),l=this._callbacks["$"+n],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(l){l=l.slice(0);for(var s=0,c=l.length;s<c;++s)l[s].apply(this,i)}return this};Dt.prototype.emitReserved=Dt.prototype.emit;Dt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Dt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const zo=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,l)=>l(i,0),Qn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),QT="arraybuffer";function bv(n,...i){return i.reduce((l,s)=>(n.hasOwnProperty(s)&&(l[s]=n[s]),l),{})}const VT=Qn.setTimeout,YT=Qn.clearTimeout;function Uo(n,i){i.useNativeTimers?(n.setTimeoutFn=VT.bind(Qn),n.clearTimeoutFn=YT.bind(Qn)):(n.setTimeoutFn=Qn.setTimeout.bind(Qn),n.clearTimeoutFn=Qn.clearTimeout.bind(Qn))}const GT=1.33;function KT(n){return typeof n=="string"?XT(n):Math.ceil((n.byteLength||n.size)*GT)}function XT(n){let i=0,l=0;for(let s=0,c=n.length;s<c;s++)i=n.charCodeAt(s),i<128?l+=1:i<2048?l+=2:i<55296||i>=57344?l+=3:(s++,l+=4);return l}function Sv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function PT(n){let i="";for(let l in n)n.hasOwnProperty(l)&&(i.length&&(i+="&"),i+=encodeURIComponent(l)+"="+encodeURIComponent(n[l]));return i}function FT(n){let i={},l=n.split("&");for(let s=0,c=l.length;s<c;s++){let f=l[s].split("=");i[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return i}class ZT extends Error{constructor(i,l,s){super(i),this.description=l,this.context=s,this.type="TransportError"}}class If extends Dt{constructor(i){super(),this.writable=!1,Uo(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,l,s){return super.emitReserved("error",new ZT(i,l,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const l=Jf(i,this.socket.binaryType);this.onPacket(l)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,l={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(l)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const l=PT(i);return l.length?"?"+l:""}}class JT extends If{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const l=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||l()})),this.writable||(s++,this.once("drain",function(){--s||l()}))}else l()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const l=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};jT(i,this.socket.binaryType).forEach(l),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,LT(i,l=>{this.doWrite(l,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",l=this.query||{};return this.opts.timestampRequests!==!1&&(l[this.opts.timestampParam]=Sv()),!this.supportsBinary&&!l.sid&&(l.b64=1),this.createUri(i,l)}}let wv=!1;try{wv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const IT=wv;function $T(){}class WT extends JT{constructor(i){if(super(i),typeof location<"u"){const l=location.protocol==="https:";let s=location.port;s||(s=l?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,l){const s=this.request({method:"POST",data:i});s.on("success",l),s.on("error",(c,f)=>{this.onError("xhr post error",c,f)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(l,s)=>{this.onError("xhr poll error",l,s)}),this.pollXhr=i}}let Ur=class xo extends Dt{constructor(i,l,s){super(),this.createRequest=i,Uo(this,s),this._opts=s,this._method=s.method||"GET",this._uri=l,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var i;const l=bv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");l.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(l);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&s.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var c;s.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=xo.requestsCount++,xo.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$T,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete xo.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ur.requestsCount=0;Ur.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Wg);else if(typeof addEventListener=="function"){const n="onpagehide"in Qn?"pagehide":"unload";addEventListener(n,Wg,!1)}}function Wg(){for(let n in Ur.requests)Ur.requests.hasOwnProperty(n)&&Ur.requests[n].abort()}const eR=(function(){const n=Ev({xdomain:!1});return n&&n.responseType!==null})();class tR extends WT{constructor(i){super(i);const l=i&&i.forceBase64;this.supportsBinary=eR&&!l}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Ur(Ev,this.uri(),i)}}function Ev(n){const i=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||IT))return new XMLHttpRequest}catch{}if(!i)try{return new Qn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const xv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class nR extends If{get name(){return"websocket"}doOpen(){const i=this.uri(),l=this.opts.protocols,s=xv?{}:bv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,l,s)}catch(c){return this.emitReserved("error",c)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let l=0;l<i.length;l++){const s=i[l],c=l===i.length-1;Zf(s,this.supportsBinary,f=>{try{this.doWrite(s,f)}catch{}c&&zo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",l=this.query||{};return this.opts.timestampRequests&&(l[this.opts.timestampParam]=Sv()),this.supportsBinary||(l.b64=1),this.createUri(i,l)}}const sf=Qn.WebSocket||Qn.MozWebSocket;class aR extends nR{createSocket(i,l,s){return xv?new sf(i,l,s):l?new sf(i,l):new sf(i)}doWrite(i,l){this.ws.send(l)}}class iR extends If{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const l=qT(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=i.readable.pipeThrough(l).getReader(),c=BT();c.readable.pipeTo(i.writable),this._writer=c.writable.getWriter();const f=()=>{s.read().then(({done:p,value:g})=>{p||(this.onPacket(g),f())}).catch(p=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let l=0;l<i.length;l++){const s=i[l],c=l===i.length-1;this._writer.write(s).then(()=>{c&&zo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const rR={websocket:aR,webtransport:iR,polling:tR},lR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,sR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function xf(n){if(n.length>8e3)throw"URI too long";const i=n,l=n.indexOf("["),s=n.indexOf("]");l!=-1&&s!=-1&&(n=n.substring(0,l)+n.substring(l,s).replace(/:/g,";")+n.substring(s,n.length));let c=lR.exec(n||""),f={},d=14;for(;d--;)f[sR[d]]=c[d]||"";return l!=-1&&s!=-1&&(f.source=i,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=oR(f,f.path),f.queryKey=uR(f,f.query),f}function oR(n,i){const l=/\/{2,9}/g,s=i.replace(l,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function uR(n,i){const l={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,c,f){c&&(l[c]=f)}),l}const Tf=typeof addEventListener=="function"&&typeof removeEventListener=="function",To=[];Tf&&addEventListener("offline",()=>{To.forEach(n=>n())},!1);class pi extends Dt{constructor(i,l){if(super(),this.binaryType=QT,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(l=i,i=null),i){const s=xf(i);l.hostname=s.host,l.secure=s.protocol==="https"||s.protocol==="wss",l.port=s.port,s.query&&(l.query=s.query)}else l.host&&(l.hostname=xf(l.host).host);Uo(this,l),this.secure=l.secure!=null?l.secure:typeof location<"u"&&location.protocol==="https:",l.hostname&&!l.port&&(l.port=this.secure?"443":"80"),this.hostname=l.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=l.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},l.transports.forEach(s=>{const c=s.prototype.name;this.transports.push(c),this._transportsByName[c]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},l),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=FT(this.opts.query)),Tf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},To.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const l=Object.assign({},this.opts.query);l.EIO=vv,l.transport=i,this.id&&(l.sid=this.id);const s=Object.assign({},this.opts,{query:l,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&pi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const l=this.createTransport(i);l.open(),this.setTransport(l)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",l=>this._onClose("transport close",l))}onOpen(){this.readyState="open",pi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const l=new Error("server error");l.code=i.data,this._onError(l);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let l=1;for(let s=0;s<this.writeBuffer.length;s++){const c=this.writeBuffer[s].data;if(c&&(l+=KT(c)),s>0&&l>this._maxPayload)return this.writeBuffer.slice(0,s);l+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,zo(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,l,s){return this._sendPacket("message",i,l,s),this}send(i,l,s){return this._sendPacket("message",i,l,s),this}_sendPacket(i,l,s,c){if(typeof l=="function"&&(c=l,l=void 0),typeof s=="function"&&(c=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const f={type:i,data:l,options:s};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),c&&this.once("flush",c),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},l=()=>{this.off("upgrade",l),this.off("upgradeError",l),i()},s=()=>{this.once("upgrade",l),this.once("upgradeError",l)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():i()}):this.upgrading?s():i()),this}_onError(i){if(pi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Tf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=To.indexOf(this._offlineEventListener);s!==-1&&To.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,l),this.writeBuffer=[],this._prevBufferLen=0}}}pi.protocol=vv;class cR extends pi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let l=this.createTransport(i),s=!1;pi.priorWebsocketSuccess=!1;const c=()=>{s||(l.send([{type:"ping",data:"probe"}]),l.once("packet",y=>{if(!s)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",l),!l)return;pi.priorWebsocketSuccess=l.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(l),l.send([{type:"upgrade"}]),this.emitReserved("upgrade",l),l=null,this.upgrading=!1,this.flush())})}else{const E=new Error("probe error");E.transport=l.name,this.emitReserved("upgradeError",E)}}))};function f(){s||(s=!0,b(),l.close(),l=null)}const d=y=>{const E=new Error("probe error: "+y);E.transport=l.name,f(),this.emitReserved("upgradeError",E)};function p(){d("transport closed")}function g(){d("socket closed")}function m(y){l&&y.name!==l.name&&f()}const b=()=>{l.removeListener("open",c),l.removeListener("error",d),l.removeListener("close",p),this.off("close",g),this.off("upgrading",m)};l.once("open",c),l.once("error",d),l.once("close",p),this.once("close",g),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||l.open()},200):l.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const l=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&l.push(i[s]);return l}}let fR=class extends cR{constructor(i,l={}){const s=typeof i=="object"?i:l;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(c=>rR[c]).filter(c=>!!c)),super(i,s)}};function dR(n,i="",l){let s=n;l=l||typeof location<"u"&&location,n==null&&(n=l.protocol+"//"+l.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=l.protocol+n:n=l.host+n),/^(https?|wss?):\/\//.test(n)||(typeof l<"u"?n=l.protocol+"//"+n:n="https://"+n),s=xf(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const f=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+f+":"+s.port+i,s.href=s.protocol+"://"+f+(l&&l.port===s.port?"":":"+s.port),s}const hR=typeof ArrayBuffer=="function",mR=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Tv=Object.prototype.toString,pR=typeof Blob=="function"||typeof Blob<"u"&&Tv.call(Blob)==="[object BlobConstructor]",gR=typeof File=="function"||typeof File<"u"&&Tv.call(File)==="[object FileConstructor]";function $f(n){return hR&&(n instanceof ArrayBuffer||mR(n))||pR&&n instanceof Blob||gR&&n instanceof File}function Ro(n,i){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let l=0,s=n.length;l<s;l++)if(Ro(n[l]))return!0;return!1}if($f(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Ro(n.toJSON(),!0);for(const l in n)if(Object.prototype.hasOwnProperty.call(n,l)&&Ro(n[l]))return!0;return!1}function yR(n){const i=[],l=n.data,s=n;return s.data=Rf(l,i),s.attachments=i.length,{packet:s,buffers:i}}function Rf(n,i){if(!n)return n;if($f(n)){const l={_placeholder:!0,num:i.length};return i.push(n),l}else if(Array.isArray(n)){const l=new Array(n.length);for(let s=0;s<n.length;s++)l[s]=Rf(n[s],i);return l}else if(typeof n=="object"&&!(n instanceof Date)){const l={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(l[s]=Rf(n[s],i));return l}return n}function vR(n,i){return n.data=_f(n.data,i),delete n.attachments,n}function _f(n,i){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<i.length)return i[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let l=0;l<n.length;l++)n[l]=_f(n[l],i);else if(typeof n=="object")for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(n[l]=_f(n[l],i));return n}const bR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Fe;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Fe||(Fe={}));class SR{constructor(i){this.replacer=i}encode(i){return(i.type===Fe.EVENT||i.type===Fe.ACK)&&Ro(i)?this.encodeAsBinary({type:i.type===Fe.EVENT?Fe.BINARY_EVENT:Fe.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let l=""+i.type;return(i.type===Fe.BINARY_EVENT||i.type===Fe.BINARY_ACK)&&(l+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(l+=i.nsp+","),i.id!=null&&(l+=i.id),i.data!=null&&(l+=JSON.stringify(i.data,this.replacer)),l}encodeAsBinary(i){const l=yR(i),s=this.encodeAsString(l.packet),c=l.buffers;return c.unshift(s),c}}class Wf extends Dt{constructor(i){super(),this.reviver=i}add(i){let l;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");l=this.decodeString(i);const s=l.type===Fe.BINARY_EVENT;s||l.type===Fe.BINARY_ACK?(l.type=s?Fe.EVENT:Fe.ACK,this.reconstructor=new wR(l),l.attachments===0&&super.emitReserved("decoded",l)):super.emitReserved("decoded",l)}else if($f(i)||i.base64)if(this.reconstructor)l=this.reconstructor.takeBinaryData(i),l&&(this.reconstructor=null,super.emitReserved("decoded",l));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let l=0;const s={type:Number(i.charAt(0))};if(Fe[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Fe.BINARY_EVENT||s.type===Fe.BINARY_ACK){const f=l+1;for(;i.charAt(++l)!=="-"&&l!=i.length;);const d=i.substring(f,l);if(d!=Number(d)||i.charAt(l)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(i.charAt(l+1)==="/"){const f=l+1;for(;++l&&!(i.charAt(l)===","||l===i.length););s.nsp=i.substring(f,l)}else s.nsp="/";const c=i.charAt(l+1);if(c!==""&&Number(c)==c){const f=l+1;for(;++l;){const d=i.charAt(l);if(d==null||Number(d)!=d){--l;break}if(l===i.length)break}s.id=Number(i.substring(f,l+1))}if(i.charAt(++l)){const f=this.tryParse(i.substr(l));if(Wf.isPayloadValid(s.type,f))s.data=f;else throw new Error("invalid payload")}return s}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,l){switch(i){case Fe.CONNECT:return ey(l);case Fe.DISCONNECT:return l===void 0;case Fe.CONNECT_ERROR:return typeof l=="string"||ey(l);case Fe.EVENT:case Fe.BINARY_EVENT:return Array.isArray(l)&&(typeof l[0]=="number"||typeof l[0]=="string"&&bR.indexOf(l[0])===-1);case Fe.ACK:case Fe.BINARY_ACK:return Array.isArray(l)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class wR{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const l=vR(this.reconPack,this.buffers);return this.finishedReconstruction(),l}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ey(n){return Object.prototype.toString.call(n)==="[object Object]"}const ER=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Wf,Encoder:SR,get PacketType(){return Fe}},Symbol.toStringTag,{value:"Module"}));function Wn(n,i,l){return n.on(i,l),function(){n.off(i,l)}}const xR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Rv extends Dt{constructor(i,l,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=l,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Wn(i,"open",this.onopen.bind(this)),Wn(i,"packet",this.onpacket.bind(this)),Wn(i,"error",this.onerror.bind(this)),Wn(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...l){var s,c,f;if(xR.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(l.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(l),this;const d={type:Fe.EVENT,data:l};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof l[l.length-1]=="function"){const b=this.ids++,y=l.pop();this._registerAckCallback(b,y),d.id=b}const p=(c=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||c===void 0?void 0:c.writable,g=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!p||(g?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(i,l){var s;const c=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(c===void 0){this.acks[i]=l;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===i&&this.sendBuffer.splice(p,1);l.call(this,new Error("operation has timed out"))},c),d=(...p)=>{this.io.clearTimeoutFn(f),l.apply(this,p)};d.withError=!0,this.acks[i]=d}emitWithAck(i,...l){return new Promise((s,c)=>{const f=(d,p)=>d?c(d):s(p);f.withError=!0,l.push(f),this.emit(i,...l)})}_addToQueue(i){let l;typeof i[i.length-1]=="function"&&(l=i.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((c,...f)=>(this._queue[0],c!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),l&&l(c)):(this._queue.shift(),l&&l(null,...f)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const l=this._queue[0];l.pending&&!i||(l.pending=!0,l.tryCount++,this.flags=l.flags,this.emit.apply(this,l.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:Fe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,l){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,l),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(s=>String(s.id)===i)){const s=this.acks[i];delete this.acks[i],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case Fe.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Fe.EVENT:case Fe.BINARY_EVENT:this.onevent(i);break;case Fe.ACK:case Fe.BINARY_ACK:this.onack(i);break;case Fe.DISCONNECT:this.ondisconnect();break;case Fe.CONNECT_ERROR:this.destroy();const s=new Error(i.data.message);s.data=i.data.data,this.emitReserved("connect_error",s);break}}onevent(i){const l=i.data||[];i.id!=null&&l.push(this.ack(i.id)),this.connected?this.emitEvent(l):this.receiveBuffer.push(Object.freeze(l))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const l=this._anyListeners.slice();for(const s of l)s.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const l=this;let s=!1;return function(...c){s||(s=!0,l.packet({type:Fe.ACK,id:i,data:c}))}}onack(i){const l=this.acks[i.id];typeof l=="function"&&(delete this.acks[i.id],l.withError&&i.data.unshift(null),l.apply(this,i.data))}onconnect(i,l){this.id=i,this.recovered=l&&this._pid===l,this._pid=l,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Fe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const l=this._anyListeners;for(let s=0;s<l.length;s++)if(i===l[s])return l.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const l=this._anyOutgoingListeners;for(let s=0;s<l.length;s++)if(i===l[s])return l.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const l=this._anyOutgoingListeners.slice();for(const s of l)s.apply(this,i.data)}}}function qr(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}qr.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),l=Math.floor(i*this.jitter*n);n=(Math.floor(i*10)&1)==0?n-l:n+l}return Math.min(n,this.max)|0};qr.prototype.reset=function(){this.attempts=0};qr.prototype.setMin=function(n){this.ms=n};qr.prototype.setMax=function(n){this.max=n};qr.prototype.setJitter=function(n){this.jitter=n};class Cf extends Dt{constructor(i,l){var s;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(l=i,i=void 0),l=l||{},l.path=l.path||"/socket.io",this.opts=l,Uo(this,l),this.reconnection(l.reconnection!==!1),this.reconnectionAttempts(l.reconnectionAttempts||1/0),this.reconnectionDelay(l.reconnectionDelay||1e3),this.reconnectionDelayMax(l.reconnectionDelayMax||5e3),this.randomizationFactor((s=l.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new qr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(l.timeout==null?2e4:l.timeout),this._readyState="closed",this.uri=i;const c=l.parser||ER;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=l.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var l;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(l=this.backoff)===null||l===void 0||l.setMin(i),this)}randomizationFactor(i){var l;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(l=this.backoff)===null||l===void 0||l.setJitter(i),this)}reconnectionDelayMax(i){var l;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(l=this.backoff)===null||l===void 0||l.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new fR(this.uri,this.opts);const l=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const c=Wn(l,"open",function(){s.onopen(),i&&i()}),f=p=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",p),i?i(p):this.maybeReconnectOnOpen()},d=Wn(l,"error",f);if(this._timeout!==!1){const p=this._timeout,g=this.setTimeoutFn(()=>{c(),f(new Error("timeout")),l.close()},p);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(c),this.subs.push(d),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Wn(i,"ping",this.onping.bind(this)),Wn(i,"data",this.ondata.bind(this)),Wn(i,"error",this.onerror.bind(this)),Wn(i,"close",this.onclose.bind(this)),Wn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(l){this.onclose("parse error",l)}}ondecoded(i){zo(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,l){let s=this.nsps[i];return s?this._autoConnect&&!s.active&&s.connect():(s=new Rv(this,i,l),this.nsps[i]=s),s}_destroy(i){const l=Object.keys(this.nsps);for(const s of l)if(this.nsps[s].active)return;this._close()}_packet(i){const l=this.encoder.encode(i);for(let s=0;s<l.length;s++)this.engine.write(l[s],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,l){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,l),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const l=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(c=>{c?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",c)):i.onreconnect()}))},l);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Ul={};function _o(n,i){typeof n=="object"&&(i=n,n=void 0),i=i||{};const l=dR(n,i.path||"/socket.io"),s=l.source,c=l.id,f=l.path,d=Ul[c]&&f in Ul[c].nsps,p=i.forceNew||i["force new connection"]||i.multiplex===!1||d;let g;return p?g=new Cf(s,i):(Ul[c]||(Ul[c]=new Cf(s,i)),g=Ul[c]),l.query&&!i.query&&(i.query=l.queryKey),g.socket(l.path,i)}Object.assign(_o,{Manager:Cf,Socket:Rv,io:_o,connect:_o});const vo="/events",IR={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",INPUT:"input",RESIZE:"resize",TERMINAL_INPUT:"terminal:input",TERMINAL_RESIZE:"terminal:resize"},hi={SESSION_STDOUT:"session:stdout",SESSION_PATCH:"session:patch",SESSION_EXIT:"session:exit",SESSION_COMPLETED:"session:completed",SESSION_ID:"session:sessionId",SESSION_ERROR:"session:error",TASK_UPDATED:"task:updated",TASK_DELETED:"task:deleted",TERMINAL_STDOUT:"terminal:stdout",TERMINAL_EXIT:"terminal:exit",TERMINAL_SUBSCRIBED:"terminal:subscribed",TERMINAL_UNSUBSCRIBED:"terminal:unsubscribed",WORKSPACE_SETUP_PROGRESS:"workspace:setup_progress",WORKSPACE_COMMIT_MESSAGE_UPDATED:"workspace:commit_message_updated",WORKSPACE_HIBERNATED:"workspace:hibernated",WORKSPACE_GIT_CHANGED:"workspace:git_changed",TEAM_RUN_INVALIDATED:"team-run:invalidated"};class TR{socket=null;baseUrl;visibilityHandler=null;constructor(){this.baseUrl=""}getSocket(){return this.socket||(this.socket=_o(`${this.baseUrl}${vo}`,{autoConnect:!1,transports:["websocket"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:1e4}),this.socket.on("connect",()=>{console.log(`[Socket] Connected to ${vo} t=${Date.now()}`)}),this.socket.on("disconnect",i=>{console.log(`[Socket] Disconnected from ${vo}: t=${Date.now()}`,i)}),this.socket.on("connect_error",i=>{console.error(`[Socket] Connection error on ${vo}: t=${Date.now()}`,i.message)})),this.socket}connect(){const i=this.getSocket();return i.connected||i.connect(),this.visibilityHandler||(this.visibilityHandler=()=>{document.visibilityState==="visible"&&this.socket&&!this.socket.connected&&(console.log("[Socket] Page became visible, socket disconnected — reconnecting"),this.socket.connect())},document.addEventListener("visibilitychange",this.visibilityHandler)),i}disconnect(){this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.socket&&(this.socket.disconnect(),this.socket=null)}isConnected(){return this.socket?.connected??!1}}const Kl=new TR;function _v(n,i,l){const s=f=>Co(f.queryKey,l),c=n.getQueriesData({predicate:s});return n.setQueriesData({predicate:s},f=>{if(!f||!Array.isArray(f.data))return f;const d=f.data.filter(p=>p.id!==i);return d.length===f.data.length?f:{...f,data:d,total:Math.max(0,f.total-(f.data.length-d.length))}}),n.removeQueries({queryKey:Ne.tasks.detail(i),exact:!0}),n.removeQueries({queryKey:Ne.tasks.body(i),exact:!0}),c}function Co(n,i){return!Array.isArray(n)||n[0]!=="tasks"||n[1]!=="list"?!1:i?n[2]===i:!0}function RR(n,i){for(const[l,s]of i)n.setQueryData(l,s)}function $R(n,i){const l={};return i?.status!=null&&(l.status=i.status),i?.page!=null&&(l.page=String(i.page)),i?.limit!=null&&(l.limit=String(i.limit)),Ba({queryKey:Ne.tasks.list(n,i),queryFn:()=>lt.get(`/projects/${n}/tasks`,{params:l}),enabled:!!n})}function WR(n,i=!0){return Ba({queryKey:Ne.tasks.body(n),queryFn:()=>lt.get(`/tasks/${n}/body`),enabled:!!n&&i})}function e2(){const n=gt();return qt({mutationFn:({id:i,status:l})=>lt.patch(`/tasks/${i}/status`,{status:l}),onSuccess:i=>{n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.tasks.detail(i.id)})}})}function t2(){const n=gt();return qt({mutationFn:i=>lt.delete(`/tasks/${i}`),onMutate:async i=>(await n.cancelQueries({queryKey:Ne.tasks.all}),{snapshots:_v(n,i)}),onError:(i,l,s)=>{s?.snapshots&&RR(n,s.snapshots)},onSuccess:()=>{n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.projects.all})}})}function n2(){const n=gt();return qt({mutationFn:i=>lt.post(`/tasks/${i}/retry`,{}),onSuccess:i=>{n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.workspaces.all}),n.invalidateQueries({queryKey:Ne.tasks.detail(i.id)}),n.invalidateQueries({queryKey:Ne.tasks.body(i.id)})}})}function _R(){const n=gt();T.useEffect(()=>{const i=Kl.connect(),l=()=>{n.invalidateQueries({queryKey:Ne.tasks.all})},s=async f=>{await n.cancelQueries({predicate:d=>Co(d.queryKey,f.projectId)}),n.invalidateQueries({predicate:d=>Co(d.queryKey,f.projectId)}),n.invalidateQueries({queryKey:Ne.tasks.detail(f.taskId)})},c=f=>{_v(n,f.taskId,f.projectId),n.invalidateQueries({predicate:d=>Co(d.queryKey,f.projectId)}),n.invalidateQueries({queryKey:Ne.projects.all})};return i.on("connect",l),i.on(hi.TASK_UPDATED,s),i.on(hi.TASK_DELETED,c),()=>{i.off("connect",l),i.off(hi.TASK_UPDATED,s),i.off(hi.TASK_DELETED,c)}},[n])}const Me={all:["team-runs"],memberPresets:["member-presets"],memberPresetDetail:n=>["member-presets","detail",n],teamTemplates:["team-templates"],teamTemplateDetail:n=>["team-templates","detail",n],task:n=>["team-runs","task",n],detail:n=>["team-runs","detail",n],messages:n=>["team-runs","messages",n],messageDetail:(n,i)=>["team-runs","messages",n,i],workRequests:n=>["team-runs","work-requests",n],invocations:n=>["team-runs","invocations",n]},Cv=5e3;function Av(n,i){const l=n??[],s=l.findIndex(c=>c.id===i.id);return s>=0?l.map((c,f)=>f===s?i:c):[...l,i]}function ty(n,i){return!n||n.id!==i.teamRunId?n:{...n,messages:Av(n.messages,i)}}function Ov(n,i){const l=n.getQueryData(Me.detail(i));if(l?.taskId)return l.taskId;const s=n.getQueriesData({queryKey:Me.all});for(const[,c]of s)if(c?.id===i&&c.taskId)return c.taskId}function Hr(n,i){const l=Ov(n,i);n.invalidateQueries({queryKey:Me.all}),n.invalidateQueries({queryKey:Me.detail(i)}),n.invalidateQueries({queryKey:Me.workRequests(i)}),n.invalidateQueries({queryKey:Me.invocations(i)}),n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.workspaces.all}),l&&(n.invalidateQueries({queryKey:Ne.tasks.detail(l)}),n.invalidateQueries({queryKey:Me.task(l)}),n.invalidateQueries({queryKey:Ne.workspaces.list(l)}))}function a2(){return Ba({queryKey:Me.memberPresets,queryFn:()=>lt.get("/member-presets")})}function i2(){const n=gt();return qt({mutationFn:i=>lt.post("/member-presets",i),onSuccess:()=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function r2(){const n=gt();return qt({mutationFn:({id:i,data:l})=>lt.patch(`/member-presets/${i}`,l),onSuccess:(i,l)=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.memberPresetDetail(l.id)}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function l2(){const n=gt();return qt({mutationFn:i=>lt.delete(`/member-presets/${i}`),onSuccess:()=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function s2(){return Ba({queryKey:Me.teamTemplates,queryFn:()=>lt.get("/team-templates")})}function o2(){const n=gt();return qt({mutationFn:i=>lt.post("/team-templates",i),onSuccess:()=>{n.invalidateQueries({queryKey:Me.teamTemplates})}})}function u2(){const n=gt();return qt({mutationFn:({id:i,data:l})=>lt.patch(`/team-templates/${i}`,l),onSuccess:(i,l)=>{n.invalidateQueries({queryKey:Me.teamTemplates}),n.invalidateQueries({queryKey:Me.teamTemplateDetail(l.id)})}})}function c2(){const n=gt();return qt({mutationFn:i=>lt.delete(`/team-templates/${i}`),onSuccess:()=>{n.invalidateQueries({queryKey:Me.teamTemplates})}})}function f2(){const n=gt();return qt({mutationFn:({taskId:i,...l})=>lt.post(`/tasks/${i}/team-runs`,l),onSuccess:(i,l)=>{n.setQueryData(Me.task(l.taskId),i),n.setQueryData(Me.detail(i.id),i),n.setQueryData(Me.messages(i.id),i.messages??[]),n.setQueryData(Me.workRequests(i.id),i.workRequests??[]),n.setQueryData(Me.invocations(i.id),i.invocations??[]),n.invalidateQueries({queryKey:Me.task(l.taskId)}),n.invalidateQueries({queryKey:Me.all}),n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.tasks.detail(l.taskId)}),n.invalidateQueries({queryKey:Ne.workspaces.all}),n.invalidateQueries({queryKey:Ne.workspaces.list(l.taskId)})},onError:(i,l)=>{n.invalidateQueries({queryKey:Me.task(l.taskId)}),n.invalidateQueries({queryKey:Me.all})}})}function d2(n){return Ba({queryKey:Me.task(n),queryFn:async()=>{try{return await lt.get(`/tasks/${n}/team-run`)}catch(i){if(i instanceof Xf&&i.status===404)return null;throw i}},enabled:!!n,retry:!1,refetchInterval:i=>i.state.data?Cv:!1})}function h2(n){return Ba({queryKey:Me.messages(n),queryFn:async()=>{try{return await lt.get(`/team-runs/${n}/messages`)}catch(i){if(i instanceof Xf&&i.status===404)return[];throw i}},enabled:!!n,retry:!1,refetchInterval:Cv})}function m2(n,i,l=!1){return Ba({queryKey:Me.messageDetail(n,i),queryFn:()=>lt.get(`/team-runs/${n}/messages/${i}`),enabled:!!(n&&i&&l),retry:!1})}function p2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/${n}/messages`,l),onSuccess:l=>{i.setQueryData(Me.messages(n),c=>Av(c,l)),i.setQueryData(Me.detail(n),c=>ty(c,l));const s=Ov(i,n);s&&i.setQueryData(Me.task(s),c=>ty(c,l)),i.invalidateQueries({queryKey:Me.all}),i.invalidateQueries({queryKey:["tasks"]}),i.invalidateQueries({queryKey:Ne.workspaces.all})}})}function g2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/${n}/members`,l),onSuccess:()=>{Hr(i,n)}})}function y2(n){const i=gt();return qt({mutationFn:({memberId:l,data:s})=>lt.patch(`/team-runs/${n}/members/${l}`,s),onSuccess:()=>{Hr(i,n)}})}function v2(n){const i=gt();return qt({mutationFn:({memberId:l,stopActive:s=!0,cancelQueued:c=!0})=>lt.post(`/team-runs/${n}/members/${l}/remove`,{stopActive:s,cancelQueued:c}),onSuccess:()=>{Hr(i,n)}})}function b2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/work-requests/${l}/approve`),onSuccess:()=>{Hr(i,n)}})}function S2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/work-requests/${l}/reject`),onSuccess:()=>{Hr(i,n)}})}function w2(n){const i=gt();return qt({mutationFn:({memberId:l,cancelQueued:s})=>lt.post(`/team-runs/${n}/members/${l}/stop`,{cancelQueued:s}),onSuccess:()=>{Hr(i,n)}})}function oa(n,i){return n.scopes.includes(i)}function CR(){const n=gt();T.useEffect(()=>{const i=Kl.connect(),l=f=>{if(!f){n.invalidateQueries({queryKey:Me.all});return}n.invalidateQueries({queryKey:Me.detail(f.teamRunId)}),(oa(f,"team-run")||oa(f,"team-members"))&&n.invalidateQueries({queryKey:Me.all}),oa(f,"room-messages")&&n.invalidateQueries({queryKey:Me.messages(f.teamRunId)}),oa(f,"work-requests")&&n.invalidateQueries({queryKey:Me.workRequests(f.teamRunId)}),oa(f,"agent-invocations")&&n.invalidateQueries({queryKey:Me.invocations(f.teamRunId)}),f.taskId&&n.invalidateQueries({queryKey:Me.task(f.taskId)}),f.taskId&&(oa(f,"task")||oa(f,"team-run"))&&n.invalidateQueries({queryKey:Ne.tasks.detail(f.taskId)}),f.projectId&&(oa(f,"task")||oa(f,"team-run"))&&n.invalidateQueries({queryKey:Ne.tasks.list(f.projectId)}),oa(f,"workspaces")&&(n.invalidateQueries({queryKey:Ne.workspaces.all}),f.taskId&&n.invalidateQueries({queryKey:Ne.workspaces.list(f.taskId)}))},s=()=>l(),c=f=>l(f);return i.on("connect",s),i.on(hi.TEAM_RUN_INVALIDATED,c),()=>{i.off("connect",s),i.off(hi.TEAM_RUN_INVALIDATED,c)}},[n])}const AR=Jy(n=>({visibleContext:null,setVisibleContext:i=>n({visibleContext:i})}));function OR(n){n.invalidateQueries({queryKey:Ne.git.all,refetchType:"none"}),n.invalidateQueries({queryKey:["workspaces","gitStatus"],refetchType:"none"}),n.invalidateQueries({queryKey:["workspaces","diff"],refetchType:"none"})}function MR(n,i){i.workingDir&&(n.invalidateQueries({queryKey:Ne.git.changes(i.workingDir),refetchType:"none"}),n.invalidateQueries({queryKey:Ne.git.log(i.workingDir),refetchType:"none"})),i.workspaceId&&n.invalidateQueries({queryKey:Ne.workspaces.gitStatus(i.workspaceId),refetchType:"none"})}function ny(n,i,l){if(!(!i?.workspaceId||!i?.workingDir)){if(!l||l.workspaceId!==i.workspaceId||l.workingDir!==i.workingDir){MR(n,i);return}if(l.tab==="changes"){n.invalidateQueries({queryKey:Ne.git.changes(i.workingDir)}),n.invalidateQueries({queryKey:Ne.workspaces.gitStatus(i.workspaceId)}),n.invalidateQueries({queryKey:Ne.git.log(i.workingDir),refetchType:"none"});return}n.invalidateQueries({queryKey:Ne.git.log(i.workingDir)}),n.invalidateQueries({queryKey:Ne.git.changes(i.workingDir),refetchType:"none"}),n.invalidateQueries({queryKey:Ne.workspaces.gitStatus(i.workspaceId),refetchType:"none"})}}function DR(){const n=gt(),i=AR(l=>l.visibleContext);T.useEffect(()=>{const l=Kl.connect(),s=()=>{OR(n),i&&ny(n,{workspaceId:i.workspaceId,workingDir:i.workingDir},i)},c=f=>{ny(n,f,i)};return l.on("connect",s),l.on(hi.WORKSPACE_GIT_CHANGED,c),()=>{l.off("connect",s),l.off(hi.WORKSPACE_GIT_CHANGED,c)}},[n,i])}function NR(){return _R(),CR(),DR(),null}function kR(){return T.useEffect(()=>(Kl.connect(),()=>Kl.disconnect()),[]),Q.jsx(gS,{client:a1,children:Q.jsxs(dx,{children:[Q.jsx(NR,{}),Q.jsx(DT,{}),Q.jsx(n1,{position:"top-center",toastOptions:{className:"text-sm",style:{fontFamily:"inherit"},classNames:{error:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",success:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",default:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg"}}})]})})}const zR="/api/tunnel/bootstrap";async function UR(){const n=new URL(window.location.href),i=n.searchParams.get("token");if(!i)return;const l=await fetch(`${zR}?token=${encodeURIComponent(i)}`,{method:"POST",credentials:"same-origin"});if(!l.ok)throw new Error(`Tunnel bootstrap failed (${l.status})`);n.searchParams.delete("token"),window.history.replaceState({},"",n.toString())}async function LR(){try{await UR()}catch(n){console.error("[Tunnel] Failed to bootstrap tunnel session",n)}Xb.createRoot(document.getElementById("root")).render(Q.jsx(T.StrictMode,{children:Q.jsx(kR,{})}))}LR();export{Lt as $,u2 as A,Pg as B,c2 as C,ZR as D,Kl as E,hi as F,IR as G,ZE as H,FR as I,PR as J,mT as K,Py as L,qE as M,tT as N,Yg as O,gy as P,KE as Q,ay as R,hT as S,YE as T,fx as U,oS as V,ng as W,WE as X,BR as Y,jR as Z,Lr as _,rx as a,Ao as a0,ly as a1,yS as a2,SS as a3,TS as a4,wS as a5,ES as a6,tn as a7,_S as a8,ag as a9,Bl as aA,eT as aB,ev as aC,Jy as aD,RS as aa,xS as ab,CS as ac,ee as ad,b2 as ae,S2 as af,w2 as ag,IE as ah,m2 as ai,da as aj,g2 as ak,y2 as al,v2 as am,Xf as an,AR as ao,QR as ap,f2 as aq,p2 as ar,d2 as as,h2 as at,WR as au,n2 as av,Me as aw,$R as ax,t2 as ay,e2 as az,HR as b,lx as c,VR as d,GR as e,YR as f,mn as g,yi as h,Ba as i,Q as j,gt as k,qt as l,lt as m,XR as n,KR as o,_t as p,Ne as q,T as r,a2 as s,KS as t,Pf as u,s2 as v,i2 as w,r2 as x,l2 as y,o2 as z};
|